Created
October 22, 2021 04:05
-
-
Save anthonynorth/303b1a0c9033b5ab65bc57d6704e9299 to your computer and use it in GitHub Desktop.
jgm/pandoc: data-uris crash devtools
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang xml:lang> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="generator" content="pandoc" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> | |
<title>deck.gl</title> | |
<style> | |
html { | |
line-height: 1.5; | |
font-family: Georgia, serif; | |
font-size: 20px; | |
color: #1a1a1a; | |
background-color: #fdfdfd; | |
} | |
body { | |
margin: 0 auto; | |
max-width: 36em; | |
padding-left: 50px; | |
padding-right: 50px; | |
padding-top: 50px; | |
padding-bottom: 50px; | |
hyphens: auto; | |
word-wrap: break-word; | |
text-rendering: optimizeLegibility; | |
font-kerning: normal; | |
} | |
@media (max-width: 600px) { | |
body { | |
font-size: 0.9em; | |
padding: 1em; | |
} | |
} | |
@media print { | |
body { | |
background-color: transparent; | |
color: black; | |
font-size: 12pt; | |
} | |
p, h2, h3 { | |
orphans: 3; | |
widows: 3; | |
} | |
h2, h3, h4 { | |
page-break-after: avoid; | |
} | |
} | |
p { | |
margin: 1em 0; | |
} | |
a { | |
color: #1a1a1a; | |
} | |
a:visited { | |
color: #1a1a1a; | |
} | |
img { | |
max-width: 100%; | |
} | |
h1, h2, h3, h4, h5, h6 { | |
margin-top: 1.4em; | |
} | |
h5, h6 { | |
font-size: 1em; | |
font-style: italic; | |
} | |
h6 { | |
font-weight: normal; | |
} | |
ol, ul { | |
padding-left: 1.7em; | |
margin-top: 1em; | |
} | |
li > ol, li > ul { | |
margin-top: 0; | |
} | |
blockquote { | |
margin: 1em 0 1em 1.7em; | |
padding-left: 1em; | |
border-left: 2px solid #e6e6e6; | |
color: #606060; | |
} | |
code { | |
font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace; | |
font-size: 85%; | |
margin: 0; | |
} | |
pre { | |
margin: 1em 0; | |
overflow: auto; | |
} | |
pre code { | |
padding: 0; | |
overflow: visible; | |
} | |
.sourceCode { | |
background-color: transparent; | |
overflow: visible; | |
} | |
hr { | |
background-color: #1a1a1a; | |
border: none; | |
height: 1px; | |
margin: 1em 0; | |
} | |
table { | |
margin: 1em 0; | |
border-collapse: collapse; | |
width: 100%; | |
overflow-x: auto; | |
display: block; | |
font-variant-numeric: lining-nums tabular-nums; | |
} | |
table caption { | |
margin-bottom: 0.75em; | |
} | |
tbody { | |
margin-top: 0.5em; | |
border-top: 1px solid #1a1a1a; | |
border-bottom: 1px solid #1a1a1a; | |
} | |
th { | |
border-top: 1px solid #1a1a1a; | |
padding: 0.25em 0.5em 0.25em 0.5em; | |
} | |
td { | |
padding: 0.125em 0.5em 0.25em 0.5em; | |
} | |
header { | |
margin-bottom: 4em; | |
text-align: center; | |
} | |
#TOC li { | |
list-style: none; | |
} | |
#TOC a:not(:hover) { | |
text-decoration: none; | |
} | |
code{white-space: pre-wrap;} | |
span.smallcaps{font-variant: small-caps;} | |
span.underline{text-decoration: underline;} | |
div.column{display: inline-block; vertical-align: top; width: 50%;} | |
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} | |
ul.task-list{list-style: none;} | |
.display.math{display: block; text-align: center; margin: 0.5rem auto;} | |
</style> | |
<!--[if lt IE 9]> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> | |
<![endif]--> | |
</head> | |
<body> | |
<style type="text/css">.mapboxgl-map { | |
font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif; | |
overflow: hidden; | |
position: relative; | |
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | |
} | |
.mapboxgl-map:-webkit-full-screen { | |
width: 100%; | |
height: 100%; | |
} | |
.mapboxgl-canary { | |
background-color: salmon; | |
} | |
.mapboxgl-canvas-container.mapboxgl-interactive, | |
.mapboxgl-ctrl-group > button.mapboxgl-ctrl-compass { | |
cursor: -webkit-grab; | |
cursor: -moz-grab; | |
cursor: grab; | |
-moz-user-select: none; | |
-webkit-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} | |
.mapboxgl-canvas-container.mapboxgl-interactive:active, | |
.mapboxgl-ctrl-group > button.mapboxgl-ctrl-compass:active { | |
cursor: -webkit-grabbing; | |
cursor: -moz-grabbing; | |
cursor: grabbing; | |
} | |
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate, | |
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas { | |
touch-action: pan-x pan-y; | |
} | |
.mapboxgl-canvas-container.mapboxgl-touch-drag-pan, | |
.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas { | |
touch-action: pinch-zoom; | |
} | |
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan, | |
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas { | |
touch-action: none; | |
} | |
.mapboxgl-ctrl-top-left, | |
.mapboxgl-ctrl-top-right, | |
.mapboxgl-ctrl-bottom-left, | |
.mapboxgl-ctrl-bottom-right { position: absolute; pointer-events: none; z-index: 2; } | |
.mapboxgl-ctrl-top-left { top: 0; left: 0; } | |
.mapboxgl-ctrl-top-right { top: 0; right: 0; } | |
.mapboxgl-ctrl-bottom-left { bottom: 0; left: 0; } | |
.mapboxgl-ctrl-bottom-right { right: 0; bottom: 0; } | |
.mapboxgl-ctrl { clear: both; pointer-events: auto; } | |
.mapboxgl-ctrl-top-left .mapboxgl-ctrl { margin: 10px 0 0 10px; float: left; } | |
.mapboxgl-ctrl-top-right .mapboxgl-ctrl { margin: 10px 10px 0 0; float: right; } | |
.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl { margin: 0 0 10px 10px; float: left; } | |
.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl { margin: 0 10px 10px 0; float: right; } | |
.mapboxgl-ctrl-group { | |
border-radius: 4px; | |
overflow: hidden; | |
background: #fff; | |
} | |
.mapboxgl-ctrl-group:not(:empty) { | |
-moz-box-shadow: 0 0 2px rgba(0, 0, 0, 0.1); | |
-webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.1); | |
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); | |
} | |
.mapboxgl-ctrl-group > button { | |
width: 30px; | |
height: 30px; | |
display: block; | |
padding: 0; | |
outline: none; | |
border: 0; | |
box-sizing: border-box; | |
background-color: transparent; | |
cursor: pointer; | |
} | |
.mapboxgl-ctrl-group > button + button { | |
border-top: 1px solid #ddd; | |
} | |
.mapboxgl-ctrl > button::-moz-focus-inner { | |
border: 0; | |
padding: 0; | |
} | |
.mapboxgl-ctrl > button:hover { | |
background-color: rgba(0, 0, 0, 0.05); | |
} | |
.mapboxgl-ctrl-icon, | |
.mapboxgl-ctrl-icon > .mapboxgl-ctrl-compass-arrow { | |
speak: none; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
.mapboxgl-ctrl-icon { | |
padding: 5px; | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-out { | |
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 style='fill:%23333333;' d='m 7,9 c -0.554,0 -1,0.446 -1,1 0,0.554 0.446,1 1,1 l 6,0 c 0.554,0 1,-0.446 1,-1 0,-0.554 -0.446,-1 -1,-1 z'/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-in { | |
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 style='fill:%23333333;' d='M 10 6 C 9.446 6 9 6.4459904 9 7 L 9 9 L 7 9 C 6.446 9 6 9.446 6 10 C 6 10.554 6.446 11 7 11 L 9 11 L 9 13 C 9 13.55401 9.446 14 10 14 C 10.554 14 11 13.55401 11 13 L 11 11 L 13 11 C 13.554 11 14 10.554 14 10 C 14 9.446 13.554 9 13 9 L 11 9 L 11 7 C 11 6.4459904 10.554 6 10 6 z'/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate { | |
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E %3Cpath d='M10 4C9 4 9 5 9 5L9 5.1A5 5 0 0 0 5.1 9L5 9C5 9 4 9 4 10 4 11 5 11 5 11L5.1 11A5 5 0 0 0 9 14.9L9 15C9 15 9 16 10 16 11 16 11 15 11 15L11 14.9A5 5 0 0 0 14.9 11L15 11C15 11 16 11 16 10 16 9 15 9 15 9L14.9 9A5 5 0 0 0 11 5.1L11 5C11 5 11 4 10 4zM10 6.5A3.5 3.5 0 0 1 13.5 10 3.5 3.5 0 0 1 10 13.5 3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zM10 8.3A1.8 1.8 0 0 0 8.3 10 1.8 1.8 0 0 0 10 11.8 1.8 1.8 0 0 0 11.8 10 1.8 1.8 0 0 0 10 8.3z'/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate:disabled { | |
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E %3Cpath d='M10 4C9 4 9 5 9 5L9 5.1A5 5 0 0 0 5.1 9L5 9C5 9 4 9 4 10 4 11 5 11 5 11L5.1 11A5 5 0 0 0 9 14.9L9 15C9 15 9 16 10 16 11 16 11 15 11 15L11 14.9A5 5 0 0 0 14.9 11L15 11C15 11 16 11 16 10 16 9 15 9 15 9L14.9 9A5 5 0 0 0 11 5.1L11 5C11 5 11 4 10 4zM10 6.5A3.5 3.5 0 0 1 13.5 10 3.5 3.5 0 0 1 10 13.5 3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zM10 8.3A1.8 1.8 0 0 0 8.3 10 1.8 1.8 0 0 0 10 11.8 1.8 1.8 0 0 0 11.8 10 1.8 1.8 0 0 0 10 8.3z'/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active { | |
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E %3Cpath d='M10 4C9 4 9 5 9 5L9 5.1A5 5 0 0 0 5.1 9L5 9C5 9 4 9 4 10 4 11 5 11 5 11L5.1 11A5 5 0 0 0 9 14.9L9 15C9 15 9 16 10 16 11 16 11 15 11 15L11 14.9A5 5 0 0 0 14.9 11L15 11C15 11 16 11 16 10 16 9 15 9 15 9L14.9 9A5 5 0 0 0 11 5.1L11 5C11 5 11 4 10 4zM10 6.5A3.5 3.5 0 0 1 13.5 10 3.5 3.5 0 0 1 10 13.5 3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zM10 8.3A1.8 1.8 0 0 0 8.3 10 1.8 1.8 0 0 0 10 11.8 1.8 1.8 0 0 0 11.8 10 1.8 1.8 0 0 0 10 8.3z'/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error { | |
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E %3Cpath d='M10 4C9 4 9 5 9 5L9 5.1A5 5 0 0 0 5.1 9L5 9C5 9 4 9 4 10 4 11 5 11 5 11L5.1 11A5 5 0 0 0 9 14.9L9 15C9 15 9 16 10 16 11 16 11 15 11 15L11 14.9A5 5 0 0 0 14.9 11L15 11C15 11 16 11 16 10 16 9 15 9 15 9L14.9 9A5 5 0 0 0 11 5.1L11 5C11 5 11 4 10 4zM10 6.5A3.5 3.5 0 0 1 13.5 10 3.5 3.5 0 0 1 10 13.5 3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zM10 8.3A1.8 1.8 0 0 0 8.3 10 1.8 1.8 0 0 0 10 11.8 1.8 1.8 0 0 0 11.8 10 1.8 1.8 0 0 0 10 8.3z'/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background { | |
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E %3Cpath d='M 10,4 C 9,4 9,5 9,5 L 9,5.1 C 7.0357113,5.5006048 5.5006048,7.0357113 5.1,9 L 5,9 c 0,0 -1,0 -1,1 0,1 1,1 1,1 l 0.1,0 c 0.4006048,1.964289 1.9357113,3.499395 3.9,3.9 L 9,15 c 0,0 0,1 1,1 1,0 1,-1 1,-1 l 0,-0.1 c 1.964289,-0.400605 3.499395,-1.935711 3.9,-3.9 l 0.1,0 c 0,0 1,0 1,-1 C 16,9 15,9 15,9 L 14.9,9 C 14.499395,7.0357113 12.964289,5.5006048 11,5.1 L 11,5 c 0,0 0,-1 -1,-1 z m 0,2.5 c 1.932997,0 3.5,1.5670034 3.5,3.5 0,1.932997 -1.567003,3.5 -3.5,3.5 C 8.0670034,13.5 6.5,11.932997 6.5,10 6.5,8.0670034 8.0670034,6.5 10,6.5 Z'/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error { | |
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E %3Cpath d='M 10,4 C 9,4 9,5 9,5 L 9,5.1 C 7.0357113,5.5006048 5.5006048,7.0357113 5.1,9 L 5,9 c 0,0 -1,0 -1,1 0,1 1,1 1,1 l 0.1,0 c 0.4006048,1.964289 1.9357113,3.499395 3.9,3.9 L 9,15 c 0,0 0,1 1,1 1,0 1,-1 1,-1 l 0,-0.1 c 1.964289,-0.400605 3.499395,-1.935711 3.9,-3.9 l 0.1,0 c 0,0 1,0 1,-1 C 16,9 15,9 15,9 L 14.9,9 C 14.499395,7.0357113 12.964289,5.5006048 11,5.1 L 11,5 c 0,0 0,-1 -1,-1 z m 0,2.5 c 1.932997,0 3.5,1.5670034 3.5,3.5 0,1.932997 -1.567003,3.5 -3.5,3.5 C 8.0670034,13.5 6.5,11.932997 6.5,10 6.5,8.0670034 8.0670034,6.5 10,6.5 Z'/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting { | |
-webkit-animation: mapboxgl-spin 2s infinite linear; | |
-moz-animation: mapboxgl-spin 2s infinite linear; | |
-o-animation: mapboxgl-spin 2s infinite linear; | |
-ms-animation: mapboxgl-spin 2s infinite linear; | |
animation: mapboxgl-spin 2s infinite linear; | |
} | |
@-webkit-keyframes mapboxgl-spin { | |
0% { -webkit-transform: rotate(0deg); } | |
100% { -webkit-transform: rotate(360deg); } | |
} | |
@-moz-keyframes mapboxgl-spin { | |
0% { -moz-transform: rotate(0deg); } | |
100% { -moz-transform: rotate(360deg); } | |
} | |
@-o-keyframes mapboxgl-spin { | |
0% { -o-transform: rotate(0deg); } | |
100% { -o-transform: rotate(360deg); } | |
} | |
@-ms-keyframes mapboxgl-spin { | |
0% { -ms-transform: rotate(0deg); } | |
100% { -ms-transform: rotate(360deg); } | |
} | |
@keyframes mapboxgl-spin { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(360deg); } | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-fullscreen { | |
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 d='M 5 4 C 4.5 4 4 4.5 4 5 L 4 6 L 4 9 L 4.5 9 L 5.7773438 7.296875 C 6.7771319 8.0602131 7.835765 8.9565728 8.890625 10 C 7.8257121 11.0633 6.7761791 11.951675 5.78125 12.707031 L 4.5 11 L 4 11 L 4 15 C 4 15.5 4.5 16 5 16 L 9 16 L 9 15.5 L 7.2734375 14.205078 C 8.0428931 13.187886 8.9395441 12.133481 9.9609375 11.068359 C 11.042371 12.14699 11.942093 13.2112 12.707031 14.21875 L 11 15.5 L 11 16 L 14 16 L 15 16 C 15.5 16 16 15.5 16 15 L 16 14 L 16 11 L 15.5 11 L 14.205078 12.726562 C 13.177985 11.949617 12.112718 11.043577 11.037109 10.009766 C 12.151856 8.981061 13.224345 8.0798624 14.228516 7.3046875 L 15.5 9 L 16 9 L 16 5 C 16 4.5 15.5 4 15 4 L 11 4 L 11 4.5 L 12.703125 5.7773438 C 11.932647 6.7864834 11.026693 7.8554712 9.9707031 8.9199219 C 8.9584739 7.8204943 8.0698767 6.7627188 7.3046875 5.7714844 L 9 4.5 L 9 4 L 6 4 L 5 4 z '/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-shrink { | |
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 style='fill:%23000000;' d='M 4.2421875 3.4921875 A 0.750075 0.750075 0 0 0 3.71875 4.78125 L 5.9648438 7.0273438 L 4 8.5 L 4 9 L 8 9 C 8.500001 8.9999988 9 8.4999992 9 8 L 9 4 L 8.5 4 L 7.0175781 5.9550781 L 4.78125 3.71875 A 0.750075 0.750075 0 0 0 4.2421875 3.4921875 z M 15.734375 3.4921875 A 0.750075 0.750075 0 0 0 15.21875 3.71875 L 12.984375 5.953125 L 11.5 4 L 11 4 L 11 8 C 11 8.4999992 11.499999 8.9999988 12 9 L 16 9 L 16 8.5 L 14.035156 7.0273438 L 16.28125 4.78125 A 0.750075 0.750075 0 0 0 15.734375 3.4921875 z M 4 11 L 4 11.5 L 5.9648438 12.972656 L 3.71875 15.21875 A 0.75130096 0.75130096 0 1 0 4.78125 16.28125 L 7.0273438 14.035156 L 8.5 16 L 9 16 L 9 12 C 9 11.500001 8.500001 11.000001 8 11 L 4 11 z M 12 11 C 11.499999 11.000001 11 11.500001 11 12 L 11 16 L 11.5 16 L 12.972656 14.035156 L 15.21875 16.28125 A 0.75130096 0.75130096 0 1 0 16.28125 15.21875 L 14.035156 12.972656 L 16 11.5 L 16 11 L 12 11 z '/%3E %3C/svg%3E"); | |
} | |
.mapboxgl-ctrl-icon.mapboxgl-ctrl-compass > .mapboxgl-ctrl-compass-arrow { | |
width: 20px; | |
height: 20px; | |
margin: 5px; | |
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E %3Cpolygon fill='%23333333' points='6,9 10,1 14,9'/%3E %3Cpolygon fill='%23CCCCCC' points='6,11 10,19 14,11 '/%3E %3C/svg%3E"); | |
background-repeat: no-repeat; | |
display: inline-block; | |
} | |
a.mapboxgl-ctrl-logo { | |
width: 85px; | |
height: 21px; | |
margin: 0 0 -3px -3px; | |
display: block; | |
background-repeat: no-repeat; | |
cursor: pointer; | |
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 84.49 21' style='enable-background:new 0 0 84.49 21;' xml:space='preserve'%3E%3Cg%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M83.25,14.26c0,0.12-0.09,0.21-0.21,0.21h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39l-1.44,2.39 c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.06-0.28l0,0l2.43-3.68L76.2,6.84 c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.4-2.35 c0.06-0.11,0.18-0.17,0.3-0.17H83c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.37,3.63l2.43,3.67 C83.24,14.18,83.25,14.22,83.25,14.26z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M66.24,9.59c-0.39-1.88-1.96-3.28-3.84-3.28c-1.03,0-2.03,0.42-2.73,1.18V3.51c0-0.13-0.1-0.23-0.23-0.23h-1.4 c-0.13,0-0.23,0.11-0.23,0.23v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.11,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.73,1.18 c1.88,0,3.45-1.41,3.84-3.29C66.37,10.79,66.37,10.18,66.24,9.59L66.24,9.59z M62.08,13c-1.32,0-2.39-1.11-2.41-2.48v-0.06 c0.02-1.38,1.09-2.48,2.41-2.48s2.42,1.12,2.42,2.51S63.41,13,62.08,13z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M71.67,6.32c-1.98-0.01-3.72,1.35-4.16,3.29c-0.13,0.59-0.13,1.19,0,1.77c0.44,1.94,2.17,3.32,4.17,3.3 c2.35,0,4.26-1.87,4.26-4.19S74.04,6.32,71.67,6.32z M71.65,13.01c-1.33,0-2.42-1.12-2.42-2.51s1.08-2.52,2.42-2.52 c1.33,0,2.42,1.12,2.42,2.51S72.99,13,71.65,13.01L71.65,13.01z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M62.08,7.98c-1.32,0-2.39,1.11-2.41,2.48v0.06C59.68,11.9,60.75,13,62.08,13s2.42-1.12,2.42-2.51 S63.41,7.98,62.08,7.98z M62.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25 c0.63,0,1.17,0.57,1.17,1.27C63.24,11.2,62.73,11.76,62.08,11.76z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M71.65,7.98c-1.33,0-2.42,1.12-2.42,2.51S70.32,13,71.65,13s2.42-1.12,2.42-2.51S72.99,7.98,71.65,7.98z M71.65,11.76c-0.64,0-1.17-0.57-1.17-1.27c0-0.7,0.53-1.26,1.17-1.26s1.17,0.57,1.17,1.27C72.82,11.21,72.29,11.76,71.65,11.76z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M45.74,6.53h-1.4c-0.13,0-0.23,0.11-0.23,0.23v0.73c-0.71-0.75-1.7-1.18-2.73-1.18 c-2.17,0-3.94,1.87-3.94,4.19s1.77,4.19,3.94,4.19c1.04,0,2.03-0.43,2.73-1.19v0.73c0,0.13,0.1,0.23,0.23,0.23h1.4 c0.13,0,0.23-0.11,0.23-0.23V6.74c0-0.12-0.09-0.22-0.22-0.22C45.75,6.53,45.75,6.53,45.74,6.53z M44.12,10.53 C44.11,11.9,43.03,13,41.71,13s-2.42-1.12-2.42-2.51s1.08-2.52,2.4-2.52c1.33,0,2.39,1.11,2.41,2.48L44.12,10.53z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M41.71,7.98c-1.33,0-2.42,1.12-2.42,2.51S40.37,13,41.71,13s2.39-1.11,2.41-2.48v-0.06 C44.1,9.09,43.03,7.98,41.71,7.98z M40.55,10.49c0-0.7,0.52-1.27,1.17-1.27c0.64,0,1.14,0.56,1.17,1.25v0.04 c-0.01,0.68-0.53,1.24-1.17,1.24C41.08,11.75,40.55,11.19,40.55,10.49z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M52.41,6.32c-1.03,0-2.03,0.42-2.73,1.18V6.75c0-0.13-0.1-0.23-0.23-0.23h-1.4c-0.13,0-0.23,0.11-0.23,0.23 v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.1,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.74,1.18c2.17,0,3.94-1.87,3.94-4.19 S54.58,6.32,52.41,6.32z M52.08,13.01c-1.32,0-2.39-1.11-2.42-2.48v-0.07c0.02-1.38,1.09-2.49,2.4-2.49c1.32,0,2.41,1.12,2.41,2.51 S53.4,13,52.08,13.01L52.08,13.01z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M52.08,7.98c-1.32,0-2.39,1.11-2.42,2.48v0.06c0.03,1.38,1.1,2.48,2.42,2.48s2.41-1.12,2.41-2.51 S53.4,7.98,52.08,7.98z M52.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25c0.63,0,1.17,0.58,1.17,1.27 S52.72,11.76,52.08,11.76z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M36.08,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68c0-0.98-0.74-1.71-1.62-1.71 c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.11,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V6.74 c0.01-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03c1.09,0,2.09,0.6,2.6,1.55 c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78L36.08,14.24z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M84.34,13.59l-0.07-0.13l-1.96-2.99l1.94-2.95c0.44-0.67,0.26-1.56-0.41-2.02c-0.02,0-0.03,0-0.04-0.01 c-0.23-0.15-0.5-0.22-0.78-0.22h-1.61c-0.56,0-1.08,0.29-1.37,0.78L79.72,6.6l-0.34-0.56C79.09,5.56,78.57,5.27,78,5.27h-1.6 c-0.6,0-1.13,0.37-1.35,0.92c-2.19-1.66-5.28-1.47-7.26,0.45c-0.35,0.34-0.65,0.72-0.89,1.14c-0.9-1.62-2.58-2.72-4.5-2.72 c-0.5,0-1.01,0.07-1.48,0.23V3.51c0-0.82-0.66-1.48-1.47-1.48h-1.4c-0.81,0-1.47,0.66-1.47,1.47v3.75 c-0.95-1.36-2.5-2.18-4.17-2.19c-0.74,0-1.46,0.16-2.12,0.47c-0.24-0.17-0.54-0.26-0.84-0.26h-1.4c-0.45,0-0.87,0.21-1.15,0.56 c-0.02-0.03-0.04-0.05-0.07-0.08c-0.28-0.3-0.68-0.47-1.09-0.47h-1.39c-0.3,0-0.6,0.09-0.84,0.26c-0.67-0.3-1.39-0.46-2.12-0.46 c-1.83,0-3.43,1-4.37,2.5c-0.2-0.46-0.48-0.89-0.83-1.25c-0.8-0.81-1.89-1.25-3.02-1.25h-0.01c-0.89,0.01-1.75,0.33-2.46,0.88 c-0.74-0.57-1.64-0.88-2.57-0.88H28.1c-0.29,0-0.58,0.03-0.86,0.11c-0.28,0.06-0.56,0.16-0.82,0.28c-0.21-0.12-0.45-0.18-0.7-0.18 h-1.4c-0.82,0-1.47,0.66-1.47,1.47v7.5c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.48-0.66,1.48-1.48l0,0V9.79 c0.03-0.36,0.23-0.59,0.36-0.59c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41c0.82,0,1.47-0.66,1.47-1.47 l-0.01-4.57c0.06-0.32,0.25-0.47,0.35-0.47c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41 c0.82,0,1.47-0.66,1.47-1.47v-0.38c0.96,1.29,2.46,2.06,4.06,2.06c0.74,0,1.46-0.16,2.12-0.47c0.24,0.17,0.54,0.26,0.84,0.26h1.39 c0.3,0,0.6-0.09,0.84-0.26v2.01c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.47-0.66,1.47-1.47v-1.77c0.48,0.15,0.99,0.23,1.49,0.22 c1.7,0,3.22-0.87,4.17-2.2v0.52c0,0.82,0.66,1.47,1.47,1.47h1.4c0.3,0,0.6-0.09,0.84-0.26c0.66,0.31,1.39,0.47,2.12,0.47 c1.92,0,3.6-1.1,4.49-2.73c1.54,2.65,4.95,3.53,7.58,1.98c0.18-0.11,0.36-0.22,0.53-0.36c0.22,0.55,0.76,0.91,1.35,0.9H78 c0.56,0,1.08-0.29,1.37-0.78l0.37-0.61l0.37,0.61c0.29,0.48,0.81,0.78,1.38,0.78h1.6c0.81,0,1.46-0.66,1.45-1.46 C84.49,14.02,84.44,13.8,84.34,13.59L84.34,13.59z M35.86,14.47h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23 V9.68c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23 V6.74c0.01-0.13,0.11-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03 c1.09,0,2.09,0.6,2.6,1.55c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78l0.01,5.16C36.09,14.36,35.98,14.46,35.86,14.47 L35.86,14.47z M45.97,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V13.5c-0.7,0.76-1.69,1.18-2.72,1.18 c-2.17,0-3.94-1.87-3.94-4.19s1.77-4.19,3.94-4.19c1.03,0,2.02,0.43,2.73,1.18V6.74c0-0.13,0.1-0.23,0.23-0.23h1.4 c0.12-0.01,0.22,0.08,0.23,0.21c0,0.01,0,0.01,0,0.02v7.51h-0.01V14.24z M52.41,14.67c-1.03,0-2.02-0.43-2.73-1.18v3.97 c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.1-0.23-0.23V6.75c0-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.23,0.11,0.23,0.23v0.73 c0.71-0.76,1.7-1.18,2.73-1.18c2.17,0,3.94,1.86,3.94,4.18S54.58,14.67,52.41,14.67z M66.24,11.39c-0.39,1.87-1.96,3.29-3.84,3.29 c-1.03,0-2.02-0.43-2.73-1.18v0.73c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V3.51c0-0.13,0.1-0.23,0.23-0.23 h1.4c0.13,0,0.23,0.11,0.23,0.23v3.97c0.71-0.75,1.7-1.18,2.73-1.17c1.88,0,3.45,1.4,3.84,3.28C66.37,10.19,66.37,10.8,66.24,11.39 L66.24,11.39L66.24,11.39z M71.67,14.68c-2,0.01-3.73-1.35-4.17-3.3c-0.13-0.59-0.13-1.19,0-1.77c0.44-1.94,2.17-3.31,4.17-3.3 c2.36,0,4.26,1.87,4.26,4.19S74.03,14.68,71.67,14.68L71.67,14.68z M83.04,14.47h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39 l-1.44,2.39c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.06-0.28l0,0l2.43-3.68 L76.2,6.84c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.41-2.36 c0.06-0.11,0.18-0.17,0.3-0.17h1.61c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.38,3.64l2.43,3.67 c0.02,0.03,0.03,0.07,0.03,0.12C83.25,14.38,83.16,14.47,83.04,14.47L83.04,14.47L83.04,14.47z'/%3E %3Cpath class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' d='M10.5,1.24c-5.11,0-9.25,4.15-9.25,9.25s4.15,9.25,9.25,9.25s9.25-4.15,9.25-9.25 C19.75,5.38,15.61,1.24,10.5,1.24z M14.89,12.77c-1.93,1.93-4.78,2.31-6.7,2.31c-0.7,0-1.41-0.05-2.1-0.16c0,0-1.02-5.64,2.14-8.81 c0.83-0.83,1.95-1.28,3.13-1.28c1.27,0,2.49,0.51,3.39,1.42C16.59,8.09,16.64,11,14.89,12.77z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M10.5-0.01C4.7-0.01,0,4.7,0,10.49s4.7,10.5,10.5,10.5S21,16.29,21,10.49C20.99,4.7,16.3-0.01,10.5-0.01z M10.5,19.74c-5.11,0-9.25-4.15-9.25-9.25s4.14-9.26,9.25-9.26s9.25,4.15,9.25,9.25C19.75,15.61,15.61,19.74,10.5,19.74z'/%3E %3Cpath class='st1' style='opacity:0.35; enable-background:new;' d='M14.74,6.25C12.9,4.41,9.98,4.35,8.23,6.1c-3.16,3.17-2.14,8.81-2.14,8.81s5.64,1.02,8.81-2.14 C16.64,11,16.59,8.09,14.74,6.25z M12.47,10.34l-0.91,1.87l-0.9-1.87L8.8,9.43l1.86-0.9l0.9-1.87l0.91,1.87l1.86,0.9L12.47,10.34z'/%3E %3Cpolygon class='st0' style='opacity:0.9; fill: %23FFFFFF; enable-background: new;' points='14.33,9.43 12.47,10.34 11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 '/%3E%3C/g%3E%3C/svg%3E"); | |
} | |
a.mapboxgl-ctrl-logo.mapboxgl-compact { | |
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"); | |
} | |
.mapboxgl-ctrl.mapboxgl-ctrl-attrib { | |
padding: 0 5px; | |
background-color: rgba(255, 255, 255, 0.5); | |
margin: 0; | |
} | |
@media screen { | |
.mapboxgl-ctrl-attrib.mapboxgl-compact { | |
margin: 10px; | |
position: relative; | |
background-color: #fff; | |
border-radius: 3px 12px 12px 3px; | |
} | |
.mapboxgl-ctrl-attrib.mapboxgl-compact:hover { | |
padding: 2px 24px 2px 4px; | |
visibility: visible; | |
} | |
.mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:hover, | |
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:hover { | |
padding: 2px 4px 2px 24px; | |
border-radius: 12px 3px 3px 12px; | |
} | |
.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner { | |
display: none; | |
} | |
.mapboxgl-ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner { | |
display: block; | |
} | |
.mapboxgl-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; | |
} | |
.mapboxgl-ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after { | |
bottom: 0; | |
right: 0; | |
} | |
.mapboxgl-ctrl-top-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after { | |
top: 0; | |
right: 0; | |
} | |
.mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after { | |
top: 0; | |
left: 0; | |
} | |
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after { | |
bottom: 0; | |
left: 0; | |
} | |
} | |
.mapboxgl-ctrl-attrib a { | |
color: rgba(0, 0, 0, 0.75); | |
text-decoration: none; | |
} | |
.mapboxgl-ctrl-attrib a:hover { | |
color: inherit; | |
text-decoration: underline; | |
} | |
.mapboxgl-ctrl-attrib .mapbox-improve-map { | |
font-weight: bold; | |
margin-left: 2px; | |
} | |
.mapboxgl-attrib-empty { | |
display: none; | |
} | |
.mapboxgl-ctrl-scale { | |
background-color: rgba(255, 255, 255, 0.75); | |
font-size: 10px; | |
border-width: medium 2px 2px; | |
border-style: none solid solid; | |
border-color: #333; | |
padding: 0 5px; | |
color: #333; | |
box-sizing: border-box; | |
} | |
.mapboxgl-popup { | |
position: absolute; | |
top: 0; | |
left: 0; | |
display: -webkit-flex; | |
display: flex; | |
will-change: transform; | |
pointer-events: none; | |
} | |
.mapboxgl-popup-anchor-top, | |
.mapboxgl-popup-anchor-top-left, | |
.mapboxgl-popup-anchor-top-right { | |
-webkit-flex-direction: column; | |
flex-direction: column; | |
} | |
.mapboxgl-popup-anchor-bottom, | |
.mapboxgl-popup-anchor-bottom-left, | |
.mapboxgl-popup-anchor-bottom-right { | |
-webkit-flex-direction: column-reverse; | |
flex-direction: column-reverse; | |
} | |
.mapboxgl-popup-anchor-left { | |
-webkit-flex-direction: row; | |
flex-direction: row; | |
} | |
.mapboxgl-popup-anchor-right { | |
-webkit-flex-direction: row-reverse; | |
flex-direction: row-reverse; | |
} | |
.mapboxgl-popup-tip { | |
width: 0; | |
height: 0; | |
border: 10px solid transparent; | |
z-index: 1; | |
} | |
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip { | |
-webkit-align-self: center; | |
align-self: center; | |
border-top: none; | |
border-bottom-color: #fff; | |
} | |
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip { | |
-webkit-align-self: flex-start; | |
align-self: flex-start; | |
border-top: none; | |
border-left: none; | |
border-bottom-color: #fff; | |
} | |
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip { | |
-webkit-align-self: flex-end; | |
align-self: flex-end; | |
border-top: none; | |
border-right: none; | |
border-bottom-color: #fff; | |
} | |
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip { | |
-webkit-align-self: center; | |
align-self: center; | |
border-bottom: none; | |
border-top-color: #fff; | |
} | |
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip { | |
-webkit-align-self: flex-start; | |
align-self: flex-start; | |
border-bottom: none; | |
border-left: none; | |
border-top-color: #fff; | |
} | |
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip { | |
-webkit-align-self: flex-end; | |
align-self: flex-end; | |
border-bottom: none; | |
border-right: none; | |
border-top-color: #fff; | |
} | |
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip { | |
-webkit-align-self: center; | |
align-self: center; | |
border-left: none; | |
border-right-color: #fff; | |
} | |
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip { | |
-webkit-align-self: center; | |
align-self: center; | |
border-right: none; | |
border-left-color: #fff; | |
} | |
.mapboxgl-popup-close-button { | |
position: absolute; | |
right: 0; | |
top: 0; | |
border: 0; | |
border-radius: 0 3px 0 0; | |
cursor: pointer; | |
background-color: transparent; | |
} | |
.mapboxgl-popup-close-button:hover { | |
background-color: rgba(0, 0, 0, 0.05); | |
} | |
.mapboxgl-popup-content { | |
position: relative; | |
background: #fff; | |
border-radius: 3px; | |
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); | |
padding: 10px 10px 15px; | |
pointer-events: auto; | |
} | |
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content { | |
border-top-left-radius: 0; | |
} | |
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content { | |
border-top-right-radius: 0; | |
} | |
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content { | |
border-bottom-left-radius: 0; | |
} | |
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content { | |
border-bottom-right-radius: 0; | |
} | |
.mapboxgl-marker { | |
position: absolute; | |
top: 0; | |
left: 0; | |
will-change: transform; | |
} | |
.mapboxgl-user-location-dot { | |
background-color: #1da1f2; | |
width: 15px; | |
height: 15px; | |
border-radius: 50%; | |
box-shadow: 0 0 2px rgba(0, 0, 0, 0.25); | |
} | |
.mapboxgl-user-location-dot::before { | |
background-color: #1da1f2; | |
content: ''; | |
width: 15px; | |
height: 15px; | |
border-radius: 50%; | |
position: absolute; | |
-webkit-animation: mapboxgl-user-location-dot-pulse 2s infinite; | |
-moz-animation: mapboxgl-user-location-dot-pulse 2s infinite; | |
-ms-animation: mapboxgl-user-location-dot-pulse 2s infinite; | |
animation: mapboxgl-user-location-dot-pulse 2s infinite; | |
} | |
.mapboxgl-user-location-dot::after { | |
border-radius: 50%; | |
border: 2px solid #fff; | |
content: ''; | |
height: 19px; | |
left: -2px; | |
position: absolute; | |
top: -2px; | |
width: 19px; | |
box-sizing: border-box; | |
} | |
@-webkit-keyframes mapboxgl-user-location-dot-pulse { | |
0% { -webkit-transform: scale(1); opacity: 1; } | |
70% { -webkit-transform: scale(3); opacity: 0; } | |
100% { -webkit-transform: scale(1); opacity: 0; } | |
} | |
@-ms-keyframes mapboxgl-user-location-dot-pulse { | |
0% { -ms-transform: scale(1); opacity: 1; } | |
70% { -ms-transform: scale(3); opacity: 0; } | |
100% { -ms-transform: scale(1); opacity: 0; } | |
} | |
@keyframes mapboxgl-user-location-dot-pulse { | |
0% { transform: scale(1); opacity: 1; } | |
70% { transform: scale(3); opacity: 0; } | |
100% { transform: scale(1); opacity: 0; } | |
} | |
.mapboxgl-user-location-dot-stale { | |
background-color: #aaa; | |
} | |
.mapboxgl-user-location-dot-stale::after { | |
display: none; | |
} | |
.mapboxgl-crosshair, | |
.mapboxgl-crosshair .mapboxgl-interactive, | |
.mapboxgl-crosshair .mapboxgl-interactive:active { | |
cursor: crosshair; | |
} | |
.mapboxgl-boxzoom { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 0; | |
height: 0; | |
background: #fff; | |
border: 2px dotted #202020; | |
opacity: 0.5; | |
} | |
@media print { | |
.mapbox-improve-map { | |
display: none; | |
} | |
} | |
</style> | |
<script>!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("h3")):"function"==typeof define&&define.amd?define(["h3"],e):"object"==typeof exports?exports.deck=e(require("h3")):t.deck=e(t.h3)}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=247)}([function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){t.exports=n(266)},function(t,e,n){var r=n(196);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){var r=n(15),i=n(28);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?i(t):e}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,u,"next",t)}function u(t){n(a,i,o,s,u,"throw",t)}s(void 0)}))}}},function(t,e,n){var r=n(265);function i(e,n,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=i=Reflect.get:t.exports=i=function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}},i(e,n,o||e)}t.exports=i},function(t,e,n){"use strict";var r=new(n(302).a)({id:"luma.gl"});function i(t,e){if(!t)throw new Error(e||"luma.gl: assertion failed.")}function o(t){return"undefined"!=typeof WebGLRenderingContext&&t instanceof WebGLRenderingContext||("undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||Boolean(t&&Number.isFinite(t._version)))}function a(t){return"undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||Boolean(t&&2===t._version)}function s(t){return a(t)?t:null}function u(t){return i(o(t),"Invalid WebGLRenderingContext"),t}function c(t){return i(a(t),"Requires WebGL2"),t}var l=n(30),f={};function h(t,e){var n;f[t]=!0,void 0!==e&&(n=e,l.global.console&&l.global.console.error&&l.global.console.error(n))}var d=function t(e){var n=e.gl;this.ext=e,this.isAlive=!0,this.hasBeenBound=!1,this.elementArrayBuffer=null,this.attribs=new Array(e.maxVertexAttribs);for(var r=0;r<this.attribs.length;r++){var i=new t.VertexAttrib(n);this.attribs[r]=i}this.maxAttrib=0};(d.VertexAttrib=function(t){this.enabled=!1,this.buffer=null,this.size=4,this.type=5126,this.normalized=!1,this.stride=16,this.offset=0,this.cached="",this.recache()}).prototype.recache=function(){this.cached=[this.size,this.type,this.normalized,this.stride,this.offset].join(":")};var p=function(t){var e=this;this.gl=t,function(t){var e=t.getError;t.getError=function(){var n;do{0!==(n=e.apply(t))&&(f[n]=!0)}while(0!==n);for(n in f)if(f[n])return delete f[n],parseInt(n,10);return 0}}(t);var n=this.original={getParameter:t.getParameter,enableVertexAttribArray:t.enableVertexAttribArray,disableVertexAttribArray:t.disableVertexAttribArray,bindBuffer:t.bindBuffer,getVertexAttrib:t.getVertexAttrib,vertexAttribPointer:t.vertexAttribPointer};t.getParameter=function(t){return t===e.VERTEX_ARRAY_BINDING_OES?e.currentVertexArrayObject===e.defaultVertexArrayObject?null:e.currentVertexArrayObject:n.getParameter.apply(this,arguments)},t.enableVertexAttribArray=function(t){var r=e.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,t);var i=r.attribs[t];return i.enabled=!0,n.enableVertexAttribArray.apply(this,arguments)},t.disableVertexAttribArray=function(t){var r=e.currentVertexArrayObject;r.maxAttrib=Math.max(r.maxAttrib,t);var i=r.attribs[t];return i.enabled=!1,n.disableVertexAttribArray.apply(this,arguments)},t.bindBuffer=function(t,r){switch(t){case 34962:e.currentArrayBuffer=r;break;case 34963:e.currentVertexArrayObject.elementArrayBuffer=r}return n.bindBuffer.apply(this,arguments)},t.getVertexAttrib=function(t,r){var i=e.currentVertexArrayObject,o=i.attribs[t];switch(r){case 34975:return o.buffer;case 34338:return o.enabled;case 34339:return o.size;case 34340:return o.stride;case 34341:return o.type;case 34922:return o.normalized;default:return n.getVertexAttrib.apply(this,arguments)}},t.vertexAttribPointer=function(t,r,i,o,a,s){var u=e.currentVertexArrayObject;u.maxAttrib=Math.max(u.maxAttrib,t);var c=u.attribs[t];return c.buffer=e.currentArrayBuffer,c.size=r,c.type=i,c.normalized=o,c.stride=a,c.offset=s,c.recache(),n.vertexAttribPointer.apply(this,arguments)},t.instrumentExtension&&t.instrumentExtension(this,"OES_vertex_array_object"),t.canvas&&t.canvas.addEventListener("webglcontextrestored",(function(){var t;t="OESVertexArrayObject emulation library context restored",l.global.console&&l.global.console.log&&l.global.console.log(t),e.reset_()}),!0),this.reset_()};p.prototype.VERTEX_ARRAY_BINDING_OES=34229,p.prototype.reset_=function(){if(void 0!==this.vertexArrayObjects)for(var t=0;t<this.vertexArrayObjects.length;++t)this.vertexArrayObjects.isAlive=!1;var e=this.gl;this.maxVertexAttribs=e.getParameter(34921),this.defaultVertexArrayObject=new d(this),this.currentVertexArrayObject=null,this.currentArrayBuffer=null,this.vertexArrayObjects=[this.defaultVertexArrayObject],this.bindVertexArrayOES(null)},p.prototype.createVertexArrayOES=function(){var t=new d(this);return this.vertexArrayObjects.push(t),t},p.prototype.deleteVertexArrayOES=function(t){t.isAlive=!1,this.vertexArrayObjects.splice(this.vertexArrayObjects.indexOf(t),1),this.currentVertexArrayObject===t&&this.bindVertexArrayOES(null)},p.prototype.isVertexArrayOES=function(t){return!!(t&&t instanceof d&&t.hasBeenBound&&t.ext===this)},p.prototype.bindVertexArrayOES=function(t){var e=this.gl;if(!t||t.isAlive){var n=this.original,r=this.currentVertexArrayObject;this.currentVertexArrayObject=t||this.defaultVertexArrayObject,this.currentVertexArrayObject.hasBeenBound=!0;var i=this.currentVertexArrayObject;if(r!==i){r&&i.elementArrayBuffer===r.elementArrayBuffer||n.bindBuffer.call(e,34963,i.elementArrayBuffer);for(var o=this.currentArrayBuffer,a=Math.max(r?r.maxAttrib:0,i.maxAttrib),s=0;s<=a;s++){var u=i.attribs[s],c=r?r.attribs[s]:null;if(r&&u.enabled===c.enabled||(u.enabled?n.enableVertexAttribArray.call(e,s):n.disableVertexAttribArray.call(e,s)),u.enabled){var l=!1;r&&u.buffer===c.buffer||(o!==u.buffer&&(n.bindBuffer.call(e,34962,u.buffer),o=u.buffer),l=!0),(l||u.cached!==c.cached)&&n.vertexAttribPointer.call(e,s,u.size,u.type,u.normalized,u.stride,u.offset)}}this.currentArrayBuffer!==o&&n.bindBuffer.call(e,34962,this.currentArrayBuffer)}}else h(1282,"bindVertexArrayOES: attempt to bind deleted arrayObject")};var v,g,y=n(0),m=n.n(y),b=function(t){return a(t)?void 0:0},_=(v={},m()(v,3074,(function(t){return a(t)?void 0:36064})),m()(v,35723,(function(t){return a(t)?void 0:4352})),m()(v,35977,b),m()(v,32937,b),m()(v,36795,(function(t,e){var n=a(t)?t.getExtension("EXT_disjoint_timer_query_webgl2"):t.getExtension("EXT_disjoint_timer_query");return n&&n.GPU_DISJOINT_EXT?e(n.GPU_DISJOINT_EXT):0})),m()(v,37445,(function(t,e){var n=t.getExtension("WEBGL_debug_renderer_info");return e(n&&n.UNMASKED_VENDOR_WEBGL||7936)})),m()(v,37446,(function(t,e){var n=t.getExtension("WEBGL_debug_renderer_info");return e(n&&n.UNMASKED_RENDERER_WEBGL||7937)})),m()(v,34047,(function(t,e){var n=t.luma.extensions.EXT_texture_filter_anisotropic;return n?e(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1})),m()(v,32883,b),m()(v,35071,b),m()(v,37447,b),m()(v,36063,(function(t,e){if(!a(t)){var n=t.getExtension("WEBGL_draw_buffers");return n?e(n.MAX_COLOR_ATTACHMENTS_WEBGL):0}})),m()(v,35379,b),m()(v,35374,b),m()(v,35377,b),m()(v,34852,(function(t){if(!a(t)){var e=t.getExtension("WEBGL_draw_buffers");return e?e.MAX_DRAW_BUFFERS_WEBGL:0}})),m()(v,36203,(function(t){return t.getExtension("OES_element_index")?2147483647:65535})),m()(v,33001,(function(t){return t.getExtension("OES_element_index")?16777216:65535})),m()(v,33e3,(function(t){return 16777216})),m()(v,37157,b),m()(v,35373,b),m()(v,35657,b),m()(v,36183,b),m()(v,37137,b),m()(v,34045,b),m()(v,35978,b),m()(v,35979,b),m()(v,35968,b),m()(v,35376,b),m()(v,35375,b),m()(v,35659,b),m()(v,37154,b),m()(v,35371,b),m()(v,35658,b),m()(v,35076,b),m()(v,35077,b),m()(v,35380,b),v);var w=(g={},m()(g,"OES_vertex_array_object",{meta:{suffix:"OES"},createVertexArray:function(){i(!1,"VertexArray requires WebGL2 or OES_vertex_array_object extension")},deleteVertexArray:function(){},bindVertexArray:function(){},isVertexArray:function(){return!1}}),m()(g,"ANGLE_instanced_arrays",{meta:{suffix:"ANGLE"},vertexAttribDivisor:function(t,e){i(0===e,"WebGL instanced rendering not supported")},drawElementsInstanced:function(){},drawArraysInstanced:function(){}}),m()(g,"WEBGL_draw_buffers",{meta:{suffix:"WEBGL"},drawBuffers:function(){i(!1)}}),m()(g,"EXT_disjoint_timer_query",{meta:{suffix:"EXT"},createQuery:function(){i(!1)},deleteQuery:function(){i(!1)},beginQuery:function(){i(!1)},endQuery:function(){},getQuery:function(t,e){return this.getQueryObject(t,e)},getQueryParameter:function(t,e){return this.getQueryObject(t,e)},getQueryObject:function(){}}),g),x={readBuffer:function(t,e,n){a(t)&&e(n)},getVertexAttrib:function(t,e,n,r){var i,o=function(t,e){return{webgl2:a(t),ext:t.getExtension(e)}}(t,"ANGLE_instanced_arrays"),s=o.webgl2,u=o.ext;switch(r){case 35069:i=!!s&&void 0;break;case 35070:i=s||u?void 0:0}return void 0!==i?i:e(n,r)},getProgramParameter:function(t,e,n,r){if(!a(t))switch(r){case 35967:return 35981;case 35971:case 35382:return 0}return e(n,r)},getInternalformatParameter:function(t,e,n,r,i){if(!a(t))switch(i){case 32937:return new Int32Array([0])}return t.getInternalformatParameter(n,r,i)},getTexParameter:function(t,e,n,r){switch(r){case 34046:var i=t.luma.extensions.EXT_texture_filter_anisotropic;r=i&&i.TEXTURE_MAX_ANISOTROPY_EXT||34046}return e(n,r)},getParameter:function(t,e,n){var r=_[n],i="function"==typeof r?r(t,e,n):r;return void 0!==i?i:e(n)},hint:function(t,e,n,r){return e(n,r)}};function O(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e){var n=e.extension,r=e.target,o=e.target2,a=w[n];i(a);for(var s=a.meta,u=(void 0===s?{}:s).suffix,c=void 0===u?"":u,l=t.getExtension(n),f=function(){var e=d[h],n="".concat(e).concat(c),i=null;"meta"===e||"function"==typeof t[e]||(l&&"function"==typeof l[n]?i=function(){return l[n].apply(l,arguments)}:"function"==typeof a[e]&&(i=a[e].bind(r))),i&&(r[e]=i,o[e]=i)},h=0,d=Object.keys(a);h<d.length;h++)f()}("undefined"!=typeof global?global:window).polyfillContext=function(t){t.luma=t.luma||{};var e=t.luma;return e.polyfilled||(!function(t){if("function"!=typeof t.createVertexArray){var e=t.getSupportedExtensions;t.getSupportedExtensions=function(){var t=e.call(this)||[];return t.indexOf("OES_vertex_array_object")<0&&t.push("OES_vertex_array_object"),t};var n=t.getExtension;t.getExtension=function(e){var r=n.call(this,e);return r||("OES_vertex_array_object"!==e?null:(t.__OESVertexArrayObject||(this.__OESVertexArrayObject=new p(this)),this.__OESVertexArrayObject))}}}(t),function(t){t.luma.extensions={};var e,n=O(t.getSupportedExtensions()||[]);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.luma[r]=t.getExtension(r)}}catch(t){n.e(t)}finally{n.f()}}(t),function(t,e){var n,r=O(Object.getOwnPropertyNames(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;"overrides"!==i&&S(t,{extension:i,target:t.luma,target2:t})}}catch(t){r.e(t)}finally{r.f()}}(t,w),function(t,e){var n=e.target,r=e.target2;Object.keys(x).forEach((function(e){if("function"==typeof x[e]){var i=t[e]?t[e].bind(t):function(){},o=x[e].bind(null,t,i);n[e]=o,r[e]=o}}))}(t,{target:e,target2:t}),e.polyfilled=!0),t};var k,j,A,T=n(11),E=n.n(T),M=n(16),C=n.n(M),I=(k={},m()(k,3042,!1),m()(k,32773,new Float32Array([0,0,0,0])),m()(k,32777,32774),m()(k,34877,32774),m()(k,32969,1),m()(k,32968,0),m()(k,32971,1),m()(k,32970,0),m()(k,3106,new Float32Array([0,0,0,0])),m()(k,3107,[!0,!0,!0,!0]),m()(k,2884,!1),m()(k,2885,1029),m()(k,2929,!1),m()(k,2931,1),m()(k,2932,513),m()(k,2928,new Float32Array([0,1])),m()(k,2930,!0),m()(k,3024,!0),m()(k,36006,null),m()(k,2886,2305),m()(k,33170,4352),m()(k,2849,1),m()(k,32823,!1),m()(k,32824,0),m()(k,10752,0),m()(k,32938,1),m()(k,32939,!1),m()(k,3089,!1),m()(k,3088,new Int32Array([0,0,1024,1024])),m()(k,2960,!1),m()(k,2961,0),m()(k,2968,4294967295),m()(k,36005,4294967295),m()(k,2962,519),m()(k,2967,0),m()(k,2963,4294967295),m()(k,34816,519),m()(k,36003,0),m()(k,36004,4294967295),m()(k,2964,7680),m()(k,2965,7680),m()(k,2966,7680),m()(k,34817,7680),m()(k,34818,7680),m()(k,34819,7680),m()(k,2978,[0,0,1024,1024]),m()(k,3333,4),m()(k,3317,4),m()(k,37440,!1),m()(k,37441,!1),m()(k,37443,37444),m()(k,35723,4352),m()(k,36010,null),m()(k,35977,!1),m()(k,3330,0),m()(k,3332,0),m()(k,3331,0),m()(k,3314,0),m()(k,32878,0),m()(k,3316,0),m()(k,3315,0),m()(k,32877,0),k),R=function(t,e,n){return e?t.enable(n):t.disable(n)},L=function(t,e,n){return t.hint(n,e)},D=function(t,e,n){return t.pixelStorei(n,e)};function F(t){return Array.isArray(t)||ArrayBuffer.isView(t)}var N=(j={},m()(j,3042,R),m()(j,32773,(function(t,e){return t.blendColor.apply(t,C()(e))})),m()(j,32777,"blendEquation"),m()(j,34877,"blendEquation"),m()(j,32969,"blendFunc"),m()(j,32968,"blendFunc"),m()(j,32971,"blendFunc"),m()(j,32970,"blendFunc"),m()(j,3106,(function(t,e){return t.clearColor.apply(t,C()(e))})),m()(j,3107,(function(t,e){return t.colorMask.apply(t,C()(e))})),m()(j,2884,R),m()(j,2885,(function(t,e){return t.cullFace(e)})),m()(j,2929,R),m()(j,2931,(function(t,e){return t.clearDepth(e)})),m()(j,2932,(function(t,e){return t.depthFunc(e)})),m()(j,2928,(function(t,e){return t.depthRange.apply(t,C()(e))})),m()(j,2930,(function(t,e){return t.depthMask(e)})),m()(j,3024,R),m()(j,35723,L),m()(j,36006,(function(t,e){var n=a(t)?36009:36160;return t.bindFramebuffer(n,e)})),m()(j,2886,(function(t,e){return t.frontFace(e)})),m()(j,33170,L),m()(j,2849,(function(t,e){return t.lineWidth(e)})),m()(j,32823,R),m()(j,32824,"polygonOffset"),m()(j,10752,"polygonOffset"),m()(j,35977,R),m()(j,32938,"sampleCoverage"),m()(j,32939,"sampleCoverage"),m()(j,3089,R),m()(j,3088,(function(t,e){return t.scissor.apply(t,C()(e))})),m()(j,2960,R),m()(j,2961,(function(t,e){return t.clearStencil(e)})),m()(j,2968,(function(t,e){return t.stencilMaskSeparate(1028,e)})),m()(j,36005,(function(t,e){return t.stencilMaskSeparate(1029,e)})),m()(j,2962,"stencilFuncFront"),m()(j,2967,"stencilFuncFront"),m()(j,2963,"stencilFuncFront"),m()(j,34816,"stencilFuncBack"),m()(j,36003,"stencilFuncBack"),m()(j,36004,"stencilFuncBack"),m()(j,2964,"stencilOpFront"),m()(j,2965,"stencilOpFront"),m()(j,2966,"stencilOpFront"),m()(j,34817,"stencilOpBack"),m()(j,34818,"stencilOpBack"),m()(j,34819,"stencilOpBack"),m()(j,2978,(function(t,e){return t.viewport.apply(t,C()(e))})),m()(j,3333,D),m()(j,3317,D),m()(j,37440,D),m()(j,37441,D),m()(j,37443,D),m()(j,3330,D),m()(j,3332,D),m()(j,3331,D),m()(j,36010,(function(t,e){return t.bindFramebuffer(36008,e)})),m()(j,3314,D),m()(j,32878,D),m()(j,3316,D),m()(j,3315,D),m()(j,32877,D),m()(j,"framebuffer",(function(t,e){var n=e&&"handle"in e?e.handle:e;return t.bindFramebuffer(36160,n)})),m()(j,"blend",(function(t,e){return e?t.enable(3042):t.disable(3042)})),m()(j,"blendColor",(function(t,e){return t.blendColor.apply(t,C()(e))})),m()(j,"blendEquation",(function(t,e){e=F(e)?e:[e,e],t.blendEquationSeparate.apply(t,C()(e))})),m()(j,"blendFunc",(function(t,e){e=F(e)&&2===e.length?[].concat(C()(e),C()(e)):e,t.blendFuncSeparate.apply(t,C()(e))})),m()(j,"clearColor",(function(t,e){return t.clearColor.apply(t,C()(e))})),m()(j,"clearDepth",(function(t,e){return t.clearDepth(e)})),m()(j,"clearStencil",(function(t,e){return t.clearStencil(e)})),m()(j,"colorMask",(function(t,e){return t.colorMask.apply(t,C()(e))})),m()(j,"cull",(function(t,e){return e?t.enable(2884):t.disable(2884)})),m()(j,"cullFace",(function(t,e){return t.cullFace(e)})),m()(j,"depthTest",(function(t,e){return e?t.enable(2929):t.disable(2929)})),m()(j,"depthFunc",(function(t,e){return t.depthFunc(e)})),m()(j,"depthMask",(function(t,e){return t.depthMask(e)})),m()(j,"depthRange",(function(t,e){return t.depthRange.apply(t,C()(e))})),m()(j,"dither",(function(t,e){return e?t.enable(3024):t.disable(3024)})),m()(j,"derivativeHint",(function(t,e){t.hint(35723,e)})),m()(j,"frontFace",(function(t,e){return t.frontFace(e)})),m()(j,"mipmapHint",(function(t,e){return t.hint(33170,e)})),m()(j,"lineWidth",(function(t,e){return t.lineWidth(e)})),m()(j,"polygonOffsetFill",(function(t,e){return e?t.enable(32823):t.disable(32823)})),m()(j,"polygonOffset",(function(t,e){return t.polygonOffset.apply(t,C()(e))})),m()(j,"sampleCoverage",(function(t,e){return t.sampleCoverage.apply(t,C()(e))})),m()(j,"scissorTest",(function(t,e){return e?t.enable(3089):t.disable(3089)})),m()(j,"scissor",(function(t,e){return t.scissor.apply(t,C()(e))})),m()(j,"stencilTest",(function(t,e){return e?t.enable(2960):t.disable(2960)})),m()(j,"stencilMask",(function(t,e){var n=e=F(e)?e:[e,e],r=E()(n,2),i=r[0],o=r[1];t.stencilMaskSeparate(1028,i),t.stencilMaskSeparate(1029,o)})),m()(j,"stencilFunc",(function(t,e){var n=e=F(e)&&3===e.length?[].concat(C()(e),C()(e)):e,r=E()(n,6),i=r[0],o=r[1],a=r[2],s=r[3],u=r[4],c=r[5];t.stencilFuncSeparate(1028,i,o,a),t.stencilFuncSeparate(1029,s,u,c)})),m()(j,"stencilOp",(function(t,e){var n=e=F(e)&&3===e.length?[].concat(C()(e),C()(e)):e,r=E()(n,6),i=r[0],o=r[1],a=r[2],s=r[3],u=r[4],c=r[5];t.stencilOpSeparate(1028,i,o,a),t.stencilOpSeparate(1029,s,u,c)})),m()(j,"viewport",(function(t,e){return t.viewport.apply(t,C()(e))})),j);function z(t,e,n){return void 0!==e[t]?e[t]:n[t]}var B={blendEquation:function(t,e,n){return t.blendEquationSeparate(z(32777,e,n),z(34877,e,n))},blendFunc:function(t,e,n){return t.blendFuncSeparate(z(32969,e,n),z(32968,e,n),z(32971,e,n),z(32970,e,n))},polygonOffset:function(t,e,n){return t.polygonOffset(z(32824,e,n),z(10752,e,n))},sampleCoverage:function(t,e,n){return t.sampleCoverage(z(32938,e,n),z(32939,e,n))},stencilFuncFront:function(t,e,n){return t.stencilFuncSeparate(1028,z(2962,e,n),z(2967,e,n),z(2963,e,n))},stencilFuncBack:function(t,e,n){return t.stencilFuncSeparate(1029,z(34816,e,n),z(36003,e,n),z(36004,e,n))},stencilOpFront:function(t,e,n){return t.stencilOpSeparate(1028,z(2964,e,n),z(2965,e,n),z(2966,e,n))},stencilOpBack:function(t,e,n){return t.stencilOpSeparate(1029,z(34817,e,n),z(34818,e,n),z(34819,e,n))}},U={enable:function(t,e){return t(m()({},e,!0))},disable:function(t,e){return t(m()({},e,!1))},pixelStorei:function(t,e,n){return t(m()({},e,n))},hint:function(t,e,n){return t(m()({},e,n))},bindFramebuffer:function(t,e,n){var r;switch(e){case 36160:return t((r={},m()(r,36006,n),m()(r,36010,n),r));case 36009:return t(m()({},36006,n));case 36008:return t(m()({},36010,n));default:return null}},blendColor:function(t,e,n,r,i){return t(m()({},32773,new Float32Array([e,n,r,i])))},blendEquation:function(t,e){var n;return t((n={},m()(n,32777,e),m()(n,34877,e),n))},blendEquationSeparate:function(t,e,n){var r;return t((r={},m()(r,32777,e),m()(r,34877,n),r))},blendFunc:function(t,e,n){var r;return t((r={},m()(r,32969,e),m()(r,32968,n),m()(r,32971,e),m()(r,32970,n),r))},blendFuncSeparate:function(t,e,n,r,i){var o;return t((o={},m()(o,32969,e),m()(o,32968,n),m()(o,32971,r),m()(o,32970,i),o))},clearColor:function(t,e,n,r,i){return t(m()({},3106,new Float32Array([e,n,r,i])))},clearDepth:function(t,e){return t(m()({},2931,e))},clearStencil:function(t,e){return t(m()({},2961,e))},colorMask:function(t,e,n,r,i){return t(m()({},3107,[e,n,r,i]))},cullFace:function(t,e){return t(m()({},2885,e))},depthFunc:function(t,e){return t(m()({},2932,e))},depthRange:function(t,e,n){return t(m()({},2928,new Float32Array([e,n])))},depthMask:function(t,e){return t(m()({},2930,e))},frontFace:function(t,e){return t(m()({},2886,e))},lineWidth:function(t,e){return t(m()({},2849,e))},polygonOffset:function(t,e,n){var r;return t((r={},m()(r,32824,e),m()(r,10752,n),r))},sampleCoverage:function(t,e,n){var r;return t((r={},m()(r,32938,e),m()(r,32939,n),r))},scissor:function(t,e,n,r,i){return t(m()({},3088,new Int32Array([e,n,r,i])))},stencilMask:function(t,e){var n;return t((n={},m()(n,2968,e),m()(n,36005,e),n))},stencilMaskSeparate:function(t,e,n){return t(m()({},1028===e?2968:36005,n))},stencilFunc:function(t,e,n,r){var i;return t((i={},m()(i,2962,e),m()(i,2967,n),m()(i,2963,r),m()(i,34816,e),m()(i,36003,n),m()(i,36004,r),i))},stencilFuncSeparate:function(t,e,n,r,i){var o;return t((o={},m()(o,1028===e?2962:34816,n),m()(o,1028===e?2967:36003,r),m()(o,1028===e?2963:36004,i),o))},stencilOp:function(t,e,n,r){var i;return t((i={},m()(i,2964,e),m()(i,2965,n),m()(i,2966,r),m()(i,34817,e),m()(i,34818,n),m()(i,34819,r),i))},stencilOpSeparate:function(t,e,n,r,i){var o;return t((o={},m()(o,1028===e?2964:34817,n),m()(o,1028===e?2965:34818,r),m()(o,1028===e?2966:34819,i),o))},viewport:function(t,e,n,r,i){return t(m()({},2978,[e,n,r,i]))}},V=function(t,e){return t.isEnabled(e)},G=(A={},m()(A,3042,V),m()(A,2884,V),m()(A,2929,V),m()(A,3024,V),m()(A,32823,V),m()(A,32926,V),m()(A,32928,V),m()(A,3089,V),m()(A,2960,V),m()(A,35977,V),A),W=n(1),H=n.n(W),q=n(2),Z=n.n(q);function X(t){for(var e in t)return!1;return!0}function Y(t,e){if(t===e)return!0;var n=Array.isArray(t)||ArrayBuffer.isView(t),r=Array.isArray(e)||ArrayBuffer.isView(e);if(n&&r&&t.length===e.length){for(var i=0;i<t.length;++i)if(t[i]!==e[i])return!1;return!0}return!1}function K(t,e){var n=t[e].bind(t);t[e]=function(){var e=arguments.length<=0?void 0:arguments[0];return e in t.state.cache&&t.state.enable?t.state.cache[e]:n.apply(void 0,arguments)},Object.defineProperty(t[e],"name",{value:"".concat(e,"-from-cache"),configurable:!1})}function $(t,e,n){var r=t[e].bind(t);t[e]=function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];var a=n.apply(void 0,[t.state._updateCache].concat(i)),s=a.valueChanged,u=a.oldValue;return s&&r.apply(void 0,i),u},Object.defineProperty(t[e],"name",{value:"".concat(e,"-to-cache"),configurable:!1})}function J(t){var e=t.useProgram.bind(t);t.useProgram=function(n){t.state.program!==n&&(e(n),t.state.program=n)}}var Q=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.copyState,i=void 0!==r&&r,o=n.log,a=void 0===o?function(){}:o;H()(this,t),this.gl=e,this.program=null,this.stateStack=[],this.enable=!0,this.cache=i?ot(e):Object.assign({},I),this.log=a,this._updateCache=this._updateCache.bind(this),Object.seal(this)}return Z()(t,[{key:"push",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.stateStack.push({})}},{key:"pop",value:function(){i(this.stateStack.length>0);var t=this.stateStack[this.stateStack.length-1];it(this.gl,t),this.stateStack.pop()}},{key:"_updateCache",value:function(t){var e,n=!1,r=this.stateStack.length>0&&this.stateStack[this.stateStack.length-1];for(var o in t){i(void 0!==o);var a=t[o],s=this.cache[o];Y(a,s)||(n=!0,e=s,!r||o in r||(r[o]=s),this.cache[o]=a)}return{valueChanged:n,oldValue:e}}}]),t}();function tt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.enable,r=void 0===n||n,o=e.copyState;if(i(void 0!==o),!t.state){var a="undefined"!=typeof global?global:window,s=a.polyfillContext;for(var u in s&&s(t),t.state=new Q(t,{copyState:o}),J(t),U){var c=U[u];$(t,u,c)}K(t,"getParameter"),K(t,"isEnabled")}return t.state.enable=r,t}function et(t){i(t.state),t.state.pop()}function nt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function it(t,e){if(i(o(t),"setParameters requires a WebGL context"),!X(e)){var n={};for(var r in e){var a=Number(r),s=N[r];s&&("string"==typeof s?n[s]=!0:s(t,e[r],a))}var u=t.state&&t.state.cache;if(u)for(var c in n){(0,B[c])(t,e,u)}}}function ot(t,e){if("number"==typeof(e=e||I)){var n=e,r=G[n];return r?r(t,n):t.getParameter(n)}var i,o={},a=nt(Array.isArray(e)?e:Object.keys(e));try{for(a.s();!(i=a.n()).done;){var s=i.value,u=G[s];o[s]=u?u(t,Number(s)):t.getParameter(Number(s))}}catch(t){a.e(t)}finally{a.f()}return o}function at(t){it(t,I)}function st(t,e,n){if(X(e))return n(t);var r,i=e.nocatch,o=void 0===i||i;if(function(t){t.state||tt(t,{copyState:!1}),t.state.push()}(t),it(t,e),o)r=n(t),et(t);else try{r=n(t)}finally{et(t)}return r}function ut(t){var e=t.luma;if(t.canvas&&e){var n=e.canvasSizeInfo.clientWidth;return n?t.drawingBufferWidth/n:1}return 1}function ct(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=ut(t),i=t.drawingBufferWidth,o=t.drawingBufferHeight;return ft(e,r,i,o,n)}function lt(t){var e="undefined"==typeof window?1:window.devicePixelRatio||1;return Number.isFinite(t)?t<=0?1:t:t?e:1}function ft(t,e,n,r,i){var o,a=ht(t[0],e,n),s=dt(t[1],e,r,i),u=ht(t[0]+1,e,n),c=u===n-1?u:u-1;return u=dt(t[1]+1,e,r,i),i?(o=s,s=u=0===u?u:u+1):o=u===r-1?u:u-1,{x:a,y:s,width:Math.max(c-a+1,1),height:Math.max(o-s+1,1)}}function ht(t,e,n){return Math.min(Math.round(t*e),n-1)}function dt(t,e,n,r){return r?Math.max(0,n-1-Math.round(t*e)):Math.min(Math.round(t*e),n-1)}var pt=Object(l.isBrowser)(),vt=pt&&"undefined"!=typeof document,gt={webgl2:!0,webgl1:!0,throwOnError:!0,manageState:!0,canvas:null,debug:!1,width:800,height:600};function yt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(pt,"createGLContext only available in the browser.\nCreate your own headless context or use 'createHeadlessContext' from @luma.gl/test-utils");var e,n=t=Object.assign({},gt,t),r=n.width,o=n.height;function a(e){if(t.throwOnError)throw new Error(e);return console.error(e),null}t.onError=a;var s=t,u=s.canvas,c=wt({canvas:u,width:r,height:o,onError:a});return(e=_t(c,t))?(xt(e=mt(e,t)),e):null}function mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||t._instrumented)return t;t._version=t._version||Ot(t),t.luma=t.luma||{},t.luma.canvasSizeInfo=t.luma.canvasSizeInfo||{};var n=e=Object.assign({},gt,e),i=n.manageState,o=n.debug;return i&&tt(t,{copyState:!1,log:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.log.apply(r,[1].concat(e))()}}),pt&&o&&(l.global.makeDebugContext?(t=l.global.makeDebugContext(t,e),r.level=Math.max(r.level,1)):r.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')()),t._instrumented=!0,t}function bt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.canvas){var n=lt(e.useDevicePixels);Pt(t,n,e)}else{var r=t.getExtension("STACKGL_resize_drawingbuffer");r&&"width"in e&&"height"in e&&r.resize(e.width,e.height)}}function _t(t,e){var n=e.onError,r=null,i=function(t){return r=t.statusMessage||r};t.addEventListener("webglcontextcreationerror",i,!1);var o=e.webgl1,a=void 0===o||o,s=e.webgl2,u=void 0===s||s,c=null;return u&&(c=(c=c||t.getContext("webgl2",e))||t.getContext("experimental-webgl2",e)),a&&(c=(c=c||t.getContext("webgl",e))||t.getContext("experimental-webgl",e)),t.removeEventListener("webglcontextcreationerror",i,!1),c?(e.onContextLost&&t.addEventListener("webglcontextlost",e.onContextLost,!1),e.onContextRestored&&t.addEventListener("webglcontextrestored",e.onContextRestored,!1),c):n("Failed to create ".concat(u&&!a?"WebGL2":"WebGL"," context: ").concat(r||"Unknown error"))}function wt(t){var e,n=t.canvas,r=t.width,i=void 0===r?800:r,o=t.height,a=void 0===o?600:o,s=t.onError;"string"==typeof n?(vt&&"complete"===document.readyState||s("createGLContext called on canvas '".concat(n,"' before page was loaded")),e=document.getElementById(n)):n?e=n:((e=document.createElement("canvas")).id="lumagl-canvas",e.style.width=Number.isFinite(i)?"".concat(i,"px"):"100%",e.style.height=Number.isFinite(a)?"".concat(a,"px"):"100%",document.body.insertBefore(e,document.body.firstChild));return e}function xt(t){var e=a(t)?"WebGL2":"WebGL1",n=function(t){var e=t.getParameter(7936),n=t.getParameter(7937),r=t.getExtension("WEBGL_debug_renderer_info");return{vendor:r&&t.getParameter(r.UNMASKED_VENDOR_WEBGL||7936)||e,renderer:r&&t.getParameter(r.UNMASKED_RENDERER_WEBGL||7937)||n,vendorMasked:e,rendererMasked:n,version:t.getParameter(7938),shadingLanguageVersion:t.getParameter(35724)}}(t),i=n?"(".concat(n.vendor,",").concat(n.renderer,")"):"",o=t.debug?" debug":"";r.info(1,"".concat(e).concat(o," context ").concat(i))()}function Ot(t){return"undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext?2:1}function Pt(t,e,n){var i="width"in n?n.width:t.canvas.clientWidth,o="height"in n?n.height:t.canvas.clientHeight;i&&o||(r.log(1,"Canvas clientWidth/clientHeight is 0")(),e=1,i=t.canvas.width||1,o=t.canvas.height||1),t.luma=t.luma||{},t.luma.canvasSizeInfo=t.luma.canvasSizeInfo||{};var a=t.luma.canvasSizeInfo;if(a.clientWidth!==i||a.clientHeight!==o||a.devicePixelRatio!==e){var s=e,u=Math.floor(i*s),c=Math.floor(o*s);t.canvas.width=u,t.canvas.height=c,t.drawingBufferWidth===u&&t.drawingBufferHeight===c||(r.warn("Device pixel ratio clamped")(),s=Math.min(t.drawingBufferWidth/i,t.drawingBufferHeight/o),t.canvas.width=Math.floor(i*s),t.canvas.height=Math.floor(o*s)),Object.assign(t.luma.canvasSizeInfo,{clientWidth:i,clientHeight:o,devicePixelRatio:e})}}n.d(e,"k",(function(){return r})),n.d(e,"i",(function(){return o})),n.d(e,"j",(function(){return a})),n.d(e,"g",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"f",(function(){return ot})),n.d(e,"n",(function(){return it})),n.d(e,"l",(function(){return at})),n.d(e,"o",(function(){return st})),n.d(e,"c",(function(){return yt})),n.d(e,"m",(function(){return bt})),n.d(e,"h",(function(){return mt})),n.d(e,"e",(function(){return ut})),n.d(e,"d",(function(){return ct}))},function(t,e,n){var r=n(262),i=n(263),o=n(264);t.exports=function(t,e){return r(t)||i(t,e)||o()}},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"luma.gl: assertion failed.")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(29);n.d(e,"a",(function(){return r.a})),n.d(e,"b",(function(){return r.b})),n.d(e,"c",(function(){return r.c})),n.d(e,"d",(function(){return r.d})),n.d(e,"e",(function(){return r.e})),n.d(e,"f",(function(){return r.f}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e,n){var r=n(256),i=n(257),o=n(258);t.exports=function(t){return r(t)||i(t)||o()}},function(t,e,n){"use strict";n.r(e);var r=n(19),i=n(128),o=n(143),a=n(97),s=n(0),u=n.n(s),c=n(1),l=n.n(c),f=n(2),h=n.n(f),d=n(130);function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var g=[255,255,255],y=[0,0,1],m=[0,0,1],b=0,_=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,t);var n=e.color,r=void 0===n?g:n,i=e.intensity,o=void 0===i?1:i,a=e.position,s=void 0===a?m:a;this.id=e.id||"point-".concat(b++),this.color=r,this.intensity=o,this.type="point",this.position=s,this.attenuation=w(e),this.projectedLight=v({},this)}return h()(t,[{key:"getProjectedLight",value:function(t){var e=t.layer,n=this.projectedLight,i=e.context.viewport,o=e.props,a=o.coordinateSystem,s=o.coordinateOrigin,u=Object(d.b)(this.position,{viewport:i,coordinateSystem:a,coordinateOrigin:s,fromCoordinateSystem:i.isGeospatial?r.a.LNGLAT:r.a.CARTESIAN,fromCoordinateOrigin:[0,0,0]});return n.color=this.color,n.intensity=this.intensity,n.position=u,n}}]),t}();function w(t){return"attenuation"in t?t.attenuation:"intensity"in t?[0,0,t.intensity]:y}var x=n(5),O=n.n(x),P=n(6),S=n.n(P),k=n(3),j=n.n(k),A=n(116);function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var E=function(t){O()(n,t);var e=T(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"getProjectedLight",value:function(t){var e=t.layer,n=this.projectedLight,r=e.context.viewport,i=e.props,o=i.coordinateSystem,a=i.coordinateOrigin,s=i.modelMatrix,u=Object(A.b)({viewport:r,modelMatrix:s,coordinateSystem:o,coordinateOrigin:a}).project_uCameraPosition;return n.color=this.color,n.intensity=this.intensity,n.position=u,n}}]),n}(_),M=n(11),C=n.n(M),I=n(238),R=n.n(I),L=Math.PI/180,D=23.4397*L;function F(t,e,n){var r,i,o,a,s,u,c=L*-n,l=L*e,f=function(t){return function(t){return t/864e5-.5+2440588}(t)-2451545}(t),h=(r=L*(357.5291+.98560028*f),i=L*(1.9148*Math.sin(r)+.02*Math.sin(2*r)+3e-4*Math.sin(3*r)),o=r+i+102.9372*L+Math.PI,{declination:(a=o,s=0,u=a,Math.asin(Math.sin(s)*Math.cos(D)+Math.cos(s)*Math.sin(D)*Math.sin(u))),rightAscension:z(o,0)}),d=function(t,e){return L*(280.147+360.9856235*t)-e}(f,c)-h.rightAscension;return{azimuth:B(d,l,h.declination),altitude:U(d,l,h.declination)}}function N(t,e,n){var r=F(t,e,n),i=r.azimuth,o=r.altitude;return[Math.sin(i)*Math.cos(o),Math.cos(i)*Math.cos(o),-Math.sin(o)]}function z(t,e){var n=t;return Math.atan2(Math.sin(n)*Math.cos(D)-Math.tan(e)*Math.sin(D),Math.cos(n))}function B(t,e,n){var r=t,i=e,o=n;return Math.atan2(Math.sin(r),Math.cos(r)*Math.sin(i)-Math.tan(o)*Math.cos(i))}function U(t,e,n){var r=t,i=e,o=n;return Math.asin(Math.sin(i)*Math.sin(o)+Math.cos(i)*Math.cos(o)*Math.cos(r))}function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var G=function(t){O()(n,t);var e=V(n);function n(t){var r,i=t.timestamp,o=R()(t,["timestamp"]);return l()(this,n),(r=e.call(this,o)).timestamp=i,r}return h()(n,[{key:"getProjectedLight",value:function(t){var e=t.layer.context.viewport;if(e.resolution>0){var n=N(this.timestamp,0,0),r=C()(n,3),i=r[0],o=r[1],a=r[2];this.direction=[i,-a,o]}else{var s=e.latitude,u=e.longitude;this.direction=N(this.timestamp,s,u)}return this}}]),n}(a.a),W=n(92),H=n(172),q=n(72);function Z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var X=[-1,-1,1,-1,-1,1,1,1],Y=function(t){O()(n,t);var e=Z(n);function n(t,r){var i;l()(this,n);var o=X.map((function(t){return-1===t?0:t}));return(i=e.call(this,t,Object.assign({},r,{vs:"attribute vec2 aClipSpacePosition;\nattribute vec2 aTexCoord;\nattribute vec2 aCoordinate;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main(void) {\n gl_Position = vec4(aClipSpacePosition, 0., 1.);\n position = aClipSpacePosition;\n coordinate = aCoordinate;\n uv = aTexCoord;\n}\n",geometry:new q.a({drawMode:5,vertexCount:4,attributes:{aClipSpacePosition:{size:2,value:new Float32Array(X)},aTexCoord:{size:2,value:new Float32Array(o)},aCoordinate:{size:2,value:new Float32Array(o)}}})}))).setVertexCount(4),i}return n}(H.a),K=n(10),$=n(174);function J(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var Q=function(t){O()(n,t);var e=J(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l()(this,n),r=e.call(this,t,i);var o=i.module,a=i.fs,s=i.id;return r.model=new Y(t,{id:s,fs:a,modules:[o]}),r}return h()(n,[{key:"render",value:function(t){var e=this,n=this.gl;Object(K.n)(n,{viewport:[0,0,n.drawingBufferWidth,n.drawingBufferHeight]}),Object(K.o)(n,{framebuffer:t.outputBuffer,clearColor:[0,0,0,0]},(function(){return e._renderPass(n,t)}))}},{key:"delete",value:function(){this.model.delete(),this.model=null}},{key:"_renderPass",value:function(t,e){var n=e.inputBuffer;e.outputBuffer;Object($.a)(t,{color:!0}),this.model.draw({moduleSettings:this.props.moduleSettings,uniforms:{texture:n,texSize:[n.width,n.height]},parameters:{depthWrite:!1,depthTest:!1}})}}]),n}(n(166).a),tt=n(189);function et(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return nt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var it=function(t){O()(n,t);var e=rt(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l()(this,n),(r=e.call(this,i)).id="".concat(t.name,"-pass"),Object(tt.b)(t),r.module=t,r}return h()(n,[{key:"postRender",value:function(t,e){this.passes||(this.passes=function(t,e,n,r){if(e.filter||e.sampler){var i=st(e);return[new Q(t,{id:n,module:e,fs:i,moduleSettings:r})]}return(e.passes||[]).map((function(i,o){var a=st(e,i),s="".concat(n,"-").concat(o);return new Q(t,{id:s,module:e,fs:a,moduleSettings:r})}))}(t,this.module,this.id,this.props));for(var n=e.target,r=e.inputBuffer,i=e.swapBuffer,o=0;o<this.passes.length;o++){n&&o===this.passes.length-1&&(i=n),this.passes[o].render({inputBuffer:r,outputBuffer:i});var a=i;i=r,r=a}return r}},{key:"cleanup",value:function(){if(this.passes){var t,e=et(this.passes);try{for(e.s();!(t=e.n()).done;){t.value.delete()}}catch(t){e.e(t)}finally{e.f()}this.passes=null}}}]),n}(W.a);var ot=function(t){return"uniform sampler2D texture;\nuniform vec2 texSize;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main() {\n vec2 texCoord = coordinate;\n\n gl_FragColor = texture2D(texture, texCoord);\n gl_FragColor = ".concat(t,"(gl_FragColor, texSize, texCoord);\n}\n")},at=function(t){return"uniform sampler2D texture;\nuniform vec2 texSize;\n\nvarying vec2 position;\nvarying vec2 coordinate;\nvarying vec2 uv;\n\nvoid main() {\n vec2 texCoord = coordinate;\n\n gl_FragColor = ".concat(t,"(texture, texSize, texCoord);\n}\n")};function st(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(e.filter){var n="string"==typeof e.filter?e.filter:"".concat(t.name,"_filterColor");return ot(n)}if(e.sampler){var r="string"==typeof e.sampler?e.sampler:"".concat(t.name,"_sampleColor");return at(r)}return null}var ut=n(91),ct=n(219),lt=n(156),ft=n(151),ht=n(150),dt=n(183),pt=n(158),vt=n(47),gt=n(108),yt=n(13),mt=n(24),bt=n(32);function _t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_t(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var Ot=Math.PI/180,Pt=180/Math.PI;function St(){var t=Math.PI/180*256;return{unitsPerMeter:[256/6370972,256/6370972,256/6370972],unitsPerMeter2:[0,0,0],metersPerUnit:[24886.609375,24886.609375,24886.609375],unitsPerDegree:[t,t,256/6370972],unitsPerDegree2:[0,0,0],degreesPerUnit:[1/t,1/t,24886.609375]}}var kt=function(t){O()(n,t);var e=xt(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,n);var i=r.latitude,o=void 0===i?0:i,a=r.longitude,s=void 0===a?0:a,u=r.zoom,c=void 0===u?11:u,f=r.nearZMultiplier,h=void 0===f?.1:f,d=r.farZMultiplier,p=void 0===d?2:d,v=r.resolution,g=void 0===v?10:v,y=r.width,m=r.height,b=r.altitude,_=void 0===b?1.5:b;y=y||1,m=m||1,_=Math.max(.75,_);var w=(new yt.a).lookAt({eye:[0,-_,0],up:[0,0,1]}),x=Math.pow(2,c);w.rotateX(o*Ot),w.rotateZ(-s*Ot),w.scale(x/m);var O=Math.atan(.5/_),P=512*x/m;return(t=e.call(this,wt(wt({},r),{},{width:y,height:m,viewMatrix:w,longitude:s,latitude:o,zoom:c,fovyRadians:2*O,aspect:y/m,focalDistance:_,near:h,far:Math.min(2,1/P+1)*_*p}))).resolution=g,t.distanceScales=St(),t}return h()(n,[{key:"getDistanceScales",value:function(){return this.distanceScales}},{key:"getBounds",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={targetZ:t.z||0},n=this.unproject([0,this.height/2],e),r=this.unproject([this.width/2,0],e),i=this.unproject([this.width,this.height/2],e),o=this.unproject([this.width/2,this.height],e);return i[0]<this.longitude&&(i[0]+=360),n[0]>this.longitude&&(n[0]-=360),[Math.min(n[0],i[0],r[0],o[0]),Math.min(n[1],i[1],r[1],o[1]),Math.max(n[0],i[0],r[0],o[0]),Math.max(n[1],i[1],r[1],o[1])]}},{key:"unproject",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.topLeft,i=void 0===r||r,o=n.targetZ,a=C()(t,3),s=a[0],u=a[1],c=a[2],l=i?u:this.height-u,f=this.pixelUnprojectionMatrix;if(Number.isFinite(c))e=jt(f,[s,l,c,1]);else{var h=jt(f,[s,l,-1,1]),d=jt(f,[s,l,1,1]),p=256*((o||0)/6370972+1),v=mt.q(mt.r([],h,d)),g=mt.q(h),y=mt.q(d),m=(4*g*y-Math.pow(v-g-y,2))/16,b=4*m/v,_=Math.sqrt(g-b),w=Math.sqrt(Math.max(0,p*p-b)),x=(_-w)/Math.sqrt(v);e=mt.j([],h,d,x)}var O=this.unprojectPosition(e),P=C()(O,3),S=P[0],k=P[1],j=P[2];return Number.isFinite(c)?[S,k,j]:Number.isFinite(o)?[S,k,o]:[S,k]}},{key:"projectPosition",value:function(t){var e=C()(t,3),n=e[0],r=e[1],i=e[2],o=void 0===i?0:i,a=n*Ot,s=r*Ot,u=Math.cos(s),c=256*(o/6370972+1);return[Math.sin(a)*u*c,-Math.cos(a)*u*c,Math.sin(s)*c]}},{key:"unprojectPosition",value:function(t){var e=C()(t,3),n=e[0],r=e[1],i=e[2],o=mt.h(t),a=Math.asin(i/o);return[Math.atan2(n,-r)*Pt,a*Pt,6370972*(o/256-1)]}},{key:"projectFlat",value:function(t){return t}},{key:"unprojectFlat",value:function(t){return t}},{key:"panByPosition",value:function(t,e){var n=this.unproject(e);return{longitude:t[0]-n[0]+this.longitude,latitude:t[1]-n[1]+this.latitude}}},{key:"projectionMode",get:function(){return r.c.GLOBE}}]),n}(vt.a);function jt(t,e){var n=bt.n([],e,t);return bt.k(n,n,1/n[3]),n}var At=n(227),Tt=n(99),Et=n(205),Mt=n(228),Ct=n(115),It=n(71),Rt=n(144),Lt=n(26),Dt=n(70),Ft=n(117),Nt=n(41);function zt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zt(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var Vt={position:[0,0,0],pitch:0,bearing:0,maxPitch:90,minPitch:-90},Gt=function(t){O()(n,t);var e=Ut(n);function n(t){var r,i=t.width,o=t.height,a=t.position,s=void 0===a?Vt.position:a,u=t.bearing,c=void 0===u?Vt.bearing:u,f=t.pitch,h=void 0===f?Vt.pitch:f,d=t.longitude,p=t.latitude,v=t.maxPitch,g=void 0===v?Vt.maxPitch:v,y=t.minPitch,m=void 0===y?Vt.minPitch:y,b=t.startRotatePos,_=t.startBearing,w=t.startPitch,x=t.startZoomPosition,O=t.startZoom;return l()(this,n),(r=e.call(this,{width:i,height:o,position:s,bearing:c,pitch:h,longitude:d,latitude:p,maxPitch:g,minPitch:m}))._state={startRotatePos:b,startBearing:_,startPitch:w,startZoomPosition:x,startZoom:O},r}return h()(n,[{key:"getDirection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=new yt.c({bearing:this._viewportProps.bearing,pitch:t?90:90+this._viewportProps.pitch}),n=e.toVector3().normalize();return n}},{key:"panStart",value:function(){return this}},{key:"pan",value:function(){return this}},{key:"panEnd",value:function(){return this}},{key:"rotateStart",value:function(t){var e=t.pos;return this._getUpdatedState({startRotatePos:e,startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(t){var e,n=t.pos,r=t.deltaAngleX,i=void 0===r?0:r,o=t.deltaAngleY,a=void 0===o?0:o,s=this._state,u=s.startRotatePos,c=s.startBearing,l=s.startPitch,f=this._viewportProps,h=f.width,d=f.height;if(!u||!Number.isFinite(c)||!Number.isFinite(l))return this;n?e={bearing:c-180*((n[0]-u[0])/h),pitch:l-90*((n[1]-u[1])/d)}:e={bearing:c-i,pitch:l-a};return this._getUpdatedState(e)}},{key:"rotateEnd",value:function(){return this._getUpdatedState({startRotatePos:null,startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(){return this._getUpdatedState({startZoomPosition:this._viewportProps.position,startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(t){var e=t.scale,n=this._state.startZoomPosition;n||(n=this._viewportProps.position);var r=this.getDirection();return this._move(r,20*Math.log2(e),n)}},{key:"zoomEnd",value:function(){return this._getUpdatedState({startZoomPosition:null,startZoom:null})}},{key:"moveLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,e=this.getDirection(!0);return this._move(e.rotateZ({radians:Math.PI/2}),t)}},{key:"moveRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,e=this.getDirection(!0);return this._move(e.rotateZ({radians:-Math.PI/2}),t)}},{key:"moveUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,e=this.getDirection(!0);return this._move(e,t)}},{key:"moveDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20,e=this.getDirection(!0);return this._move(e.negate(),t)}},{key:"rotateLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15;return this._getUpdatedState({bearing:this._viewportProps.bearing-t})}},{key:"rotateRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15;return this._getUpdatedState({bearing:this._viewportProps.bearing+t})}},{key:"rotateUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this._getUpdatedState({pitch:this._viewportProps.pitch+t})}},{key:"rotateDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this._getUpdatedState({pitch:this._viewportProps.pitch-t})}},{key:"zoomIn",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return this.zoom({scale:t})}},{key:"zoomOut",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return this.zoom({scale:1/t})}},{key:"shortestPathFrom",value:function(t){var e=t.getViewportProps(),n=Bt({},this._viewportProps),r=n.bearing,i=n.longitude;return Math.abs(r-e.bearing)>180&&(n.bearing=r<0?r+360:r-360),Math.abs(i-e.longitude)>180&&(n.longitude=i<0?i+360:i-360),n}},{key:"_move",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._viewportProps.position,r=t.scale(e);return this._getUpdatedState({position:new yt.b(n).add(r)})}},{key:"_getUpdatedState",value:function(t){return new n(Bt(Bt(Bt({},this._viewportProps),this._state),t))}},{key:"_applyConstraints",value:function(t){var e=t.pitch,n=t.maxPitch,r=t.minPitch,i=t.longitude,o=t.bearing;return t.pitch=Object(yt.d)(e,r,n),(i<-180||i>180)&&(t.longitude=Object(Nt.e)(i+180,360)-180),(o<-180||o>180)&&(t.bearing=Object(Nt.e)(o+180,360)-180),t}}]),n}(Ft.a),Wt=function(t){O()(n,t);var e=Ut(n);function n(t){return l()(this,n),e.call(this,Gt,t)}return h()(n,[{key:"linearTransitionProps",get:function(){return["position","pitch","bearing"]}}]),n}(Dt.a);function Ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var Xt=function(t){O()(n,t);var e=Zt(n);function n(t){l()(this,n);var r=t.modelMatrix,i=void 0===r?null:r,o=t.bearing,a=void 0===o?0:o,s=t.pitch,u=void 0===s?0:s,c=t.up,f=void 0===c?[0,0,1]:c,h=function(t){var e=t.bearing,n=t.pitch;return new yt.c({bearing:e,pitch:n}).toVector3().normalize()}({bearing:a,pitch:-90===u?1e-4:90+u}),d=i?i.transformDirection(h):h,p=Object(Lt.i)(t),v=Math.pow(2,p),g=(new yt.a).lookAt({eye:[0,0,0],center:d,up:f}).scale(v);return e.call(this,qt(qt({},t),{},{zoom:p,viewMatrix:g}))}return n}(vt.a),Yt=function(t){O()(n,t);var e=Zt(n);function n(t){return l()(this,n),e.call(this,qt(qt({},t),{},{type:Xt}))}return h()(n,[{key:"controller",get:function(){return this._getControllerProps({type:Wt})}}]),n}(It.a);function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $t(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}Yt.displayName="FirstPersonView";var Qt={rotationX:0,rotationOrbit:0,zoom:0,target:[0,0,0],minRotationX:-90,maxRotationX:90,minZoom:-1/0,maxZoom:1/0},te=function(t){O()(n,t);var e=Jt(n);function n(t){var r,i=t.makeViewport,o=t.width,a=t.height,s=t.rotationX,u=void 0===s?Qt.rotationX:s,c=t.rotationOrbit,f=void 0===c?Qt.rotationOrbit:c,h=t.target,d=void 0===h?Qt.target:h,p=t.zoom,v=void 0===p?Qt.zoom:p,g=t.minRotationX,y=void 0===g?Qt.minRotationX:g,m=t.maxRotationX,b=void 0===m?Qt.maxRotationX:m,_=t.minZoom,w=void 0===_?Qt.minZoom:_,x=t.maxZoom,O=void 0===x?Qt.maxZoom:x,P=t.startPanPosition,S=t.startRotatePos,k=t.startRotationX,j=t.startRotationOrbit,A=t.startZoomPosition,T=t.startZoom;return l()(this,n),(r=e.call(this,{width:o,height:a,rotationX:u,rotationOrbit:f,target:d,zoom:v,minRotationX:y,maxRotationX:b,minZoom:w,maxZoom:O}))._state={startPanPosition:P,startRotatePos:S,startRotationX:k,startRotationOrbit:j,startZoomPosition:A,startZoom:T},r.makeViewport=i,r}return h()(n,[{key:"panStart",value:function(t){var e=t.pos;return this._getUpdatedState({startPanPosition:this._unproject(e)})}},{key:"pan",value:function(t){var e=t.pos,n=t.startPosition,r=this._state.startPanPosition||n;if(!r)return this;var i=this.makeViewport(this._viewportProps).panByPosition(r,e);return this._getUpdatedState(i)}},{key:"panEnd",value:function(){return this._getUpdatedState({startPanPosition:null})}},{key:"rotateStart",value:function(t){var e=t.pos;return this._getUpdatedState({startRotatePos:e,startRotationX:this._viewportProps.rotationX,startRotationOrbit:this._viewportProps.rotationOrbit})}},{key:"rotate",value:function(t){var e,n=t.pos,r=t.deltaAngleX,i=void 0===r?0:r,o=t.deltaAngleY,a=void 0===o?0:o,s=this._state,u=s.startRotatePos,c=s.startRotationX,l=s.startRotationOrbit,f=this._viewportProps,h=f.width,d=f.height;if(!u||!Number.isFinite(c)||!Number.isFinite(l))return this;if(n){var p=(n[0]-u[0])/h;(c<-90||c>90)&&(p*=-1),e={rotationX:c+180*((n[1]-u[1])/d),rotationOrbit:l+180*p}}else e={rotationX:c+a,rotationOrbit:l+i};return this._getUpdatedState(e)}},{key:"rotateEnd",value:function(){return this._getUpdatedState({startRotationX:null,startRotationOrbit:null})}},{key:"shortestPathFrom",value:function(t){var e=t.getViewportProps(),n=$t({},this._viewportProps),r=n.rotationOrbit;return Math.abs(r-e.rotationOrbit)>180&&(n.rotationOrbit=r<0?r+360:r-360),n}},{key:"zoomStart",value:function(t){var e=t.pos;return this._getUpdatedState({startZoomPosition:this._unproject(e),startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(t){var e=t.pos,n=t.startPos,r=t.scale,i=this._viewportProps.zoom,o=this._state,a=o.startZoom,s=o.startZoomPosition;Number.isFinite(a)||(a=i,s=this._unproject(n)||this._unproject(e));var u=this._calculateNewZoom({scale:r,startZoom:a}),c=this.makeViewport($t($t({},this._viewportProps),{},{zoom:u}));return this._getUpdatedState($t({zoom:u},c.panByPosition(s,e)))}},{key:"zoomEnd",value:function(){return this._getUpdatedState({startZoomPosition:null,startZoom:null})}},{key:"zoomIn",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return this._getUpdatedState({zoom:this._calculateNewZoom({scale:t})})}},{key:"zoomOut",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return this._getUpdatedState({zoom:this._calculateNewZoom({scale:1/t})})}},{key:"moveLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return this._panFromCenter([-t,0])}},{key:"moveRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return this._panFromCenter([t,0])}},{key:"moveUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return this._panFromCenter([0,-t])}},{key:"moveDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return this._panFromCenter([0,t])}},{key:"rotateLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15;return this._getUpdatedState({rotationOrbit:this._viewportProps.rotationOrbit-t})}},{key:"rotateRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15;return this._getUpdatedState({rotationOrbit:this._viewportProps.rotationOrbit+t})}},{key:"rotateUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this._getUpdatedState({rotationX:this._viewportProps.rotationX-t})}},{key:"rotateDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this._getUpdatedState({rotationX:this._viewportProps.rotationX+t})}},{key:"_unproject",value:function(t){var e=this.makeViewport(this._viewportProps);return t&&e.unproject(t)}},{key:"_calculateNewZoom",value:function(t){var e=t.scale,n=t.startZoom,r=this._viewportProps,i=r.maxZoom,o=r.minZoom;Number.isFinite(n)||(n=this._viewportProps.zoom);var a=n+Math.log2(e);return Object(yt.d)(a,o,i)}},{key:"_panFromCenter",value:function(t){var e=this._viewportProps,n=e.width,r=e.height,i=e.target;return this.pan({startPosition:i,pos:[n/2+t[0],r/2+t[1]]})}},{key:"_getUpdatedState",value:function(t){return new this.constructor($t($t($t({},this._viewportProps),this._state),t))}},{key:"_applyConstraints",value:function(t){var e=t.maxZoom,n=t.minZoom,r=t.zoom,i=t.maxRotationX,o=t.minRotationX,a=t.rotationOrbit;return t.zoom=Object(yt.d)(r,n,e),t.rotationX=Object(yt.d)(t.rotationX,o,i),(a<-180||a>180)&&(t.rotationOrbit=Object(Nt.e)(a+180,360)-180),t}}]),n}(Ft.a),ee=function(t){O()(n,t);var e=Jt(n);function n(t){return l()(this,n),e.call(this,te,t)}return h()(n,[{key:"linearTransitionProps",get:function(){return["target","zoom","rotationX","rotationOrbit"]}}]),n}(Dt.a);function ne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function re(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ne(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ie(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var oe=Math.PI/180;function ae(t){var e=t.height,n=t.focalDistance,r=t.orbitAxis,i=t.rotationX,o=t.rotationOrbit,a=t.zoom,s="Z"===r?[0,0,1]:[0,1,0],u="Z"===r?[0,-n,0]:[0,0,n],c=(new yt.a).lookAt({eye:u,up:s});c.rotateX(i*oe),"Z"===r?c.rotateZ(o*oe):c.rotateY(o*oe);var l=Math.pow(2,a)/(e||1);return c.scale(l),c}var se=function(t){O()(n,t);var e=ie(n);function n(t){var r;l()(this,n);var i=t.height,o=t.projectionMatrix,a=t.fovy,s=void 0===a?50:a,u=t.orbitAxis,c=t.target,f=void 0===c?[0,0,0]:c,h=t.rotationX,d=void 0===h?0:h,p=t.rotationOrbit,v=void 0===p?0:p,g=t.zoom,y=void 0===g?0:g,m=o?o[5]/2:Object(Lt.e)(s);return(r=e.call(this,re(re({},t),{},{longitude:null,viewMatrix:ae({height:i,focalDistance:m,orbitAxis:u,rotationX:d,rotationOrbit:v,zoom:y}),fovy:s,focalDistance:m,position:f,zoom:y}))).projectedCenter=r.project(r.center),r}return h()(n,[{key:"unproject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.topLeft,r=void 0===n||n,i=C()(t,3),o=i[0],a=i[1],s=i[2],u=void 0===s?this.projectedCenter[2]:s,c=r?a:this.height-a,l=Object(Lt.n)([o,c,u],this.pixelUnprojectionMatrix),f=C()(l,3),h=f[0],d=f[1],p=f[2];return[h,d,p]}},{key:"panByPosition",value:function(t,e){var n=this.project(t),r=[this.width/2+n[0]-e[0],this.height/2+n[1]-e[1],this.projectedCenter[2]];return{target:this.unproject(r)}}}]),n}(vt.a),ue=function(t){O()(n,t);var e=ie(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,n);var r=t.orbitAxis,i=void 0===r?"Z":r;return e.call(this,re(re({},t),{},{orbitAxis:i,type:se}))}return h()(n,[{key:"controller",get:function(){return this._getControllerProps({type:ee})}}]),n}(It.a);ue.displayName="OrbitView";var ce=n(31);function le(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var fe=function(t){O()(n,t);var e=le(n);function n(t){var r;return l()(this,n),(r=e.call(this,t)).zoomAxis=t.zoomAxis||"all",r}return h()(n,[{key:"_applyConstraints",value:function(t){var e=t.maxZoom,n=t.minZoom,r=t.zoom;return t.zoom=Array.isArray(r)?[Object(yt.d)(r[0],n,e),Object(yt.d)(r[1],n,e)]:Object(yt.d)(r,n,e),t}},{key:"_calculateNewZoom",value:function(t){var e=t.scale,n=t.startZoom,r=this._viewportProps,i=r.maxZoom,o=r.minZoom;n||0===n||(n=this._viewportProps.zoom);var a=Math.log2(e);if(Array.isArray(n)){var s=n,u=C()(s,2),c=u[0],l=u[1];switch(this.zoomAxis){case"X":c=Object(yt.d)(c+a,o,i);break;case"Y":l=Object(yt.d)(l+a,o,i);break;default:var f=Math.min(c+a,l+a);f<o&&(a+=o-f),(f=Math.max(c+a,l+a))>i&&(a+=i-f),c+=a,l+=a}return[c,l]}return Object(yt.d)(n+a,o,i)}}]),n}(te),he=function(t){O()(n,t);var e=le(n);function n(t){return l()(this,n),t.dragMode=t.dragMode||"pan",e.call(this,fe,t)}return h()(n,[{key:"_onPanRotate",value:function(t){return!1}},{key:"linearTransitionProps",get:function(){return["target","zoom"]}}]),n}(Dt.a);function de(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?de(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ve(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var ge=(new yt.a).lookAt({eye:[0,0,1]});function ye(t){var e=t.width,n=t.height,r=t.near,i=t.far;return e=e||1,n=n||1,(new yt.a).ortho({left:-e/2,right:e/2,bottom:-n/2,top:n/2,near:r,far:i})}var me=function(t){O()(n,t);var e=ve(n);function n(t){var r;l()(this,n);var i=t.width,o=t.height,a=t.near,s=void 0===a?.1:a,u=t.far,c=void 0===u?1e3:u,f=t.zoom,h=void 0===f?0:f,d=t.target,p=void 0===d?[0,0,0]:d,v=t.flipY,g=void 0===v||v,y=Array.isArray(h)?h[0]:h,m=Array.isArray(h)?h[1]:h,b=Math.min(y,m),_=Math.pow(2,b);if(r=e.call(this,pe(pe({},t),{},{longitude:null,position:p,viewMatrix:ge.clone().scale([_,_*(g?-1:1),_]),projectionMatrix:ye({width:i,height:o,near:s,far:c}),zoom:b})),y!==m){var w=Math.pow(2,y),x=Math.pow(2,m);r.distanceScales={unitsPerMeter:[w/_,x/_,1],metersPerUnit:[_/w,_/x,1]}}return r}return h()(n,[{key:"projectFlat",value:function(t){var e=C()(t,2),n=e[0],r=e[1],i=this.distanceScales.unitsPerMeter;return[n*i[0],r*i[1]]}},{key:"unprojectFlat",value:function(t){var e=C()(t,2),n=e[0],r=e[1],i=this.distanceScales.metersPerUnit;return[n*i[0],r*i[1]]}},{key:"panByPosition",value:function(t,e){var n=Object(Lt.n)(e,this.pixelUnprojectionMatrix),r=this.projectFlat(t),i=ce.a([],r,ce.d([],n));return{target:ce.a([],this.center,i)}}}]),n}(vt.a),be=function(t){O()(n,t);var e=ve(n);function n(t){return l()(this,n),e.call(this,pe(pe({},t),{},{type:me}))}return h()(n,[{key:"controller",get:function(){return this._getControllerProps({type:he})}}]),n}(It.a);be.displayName="OrthographicView";var _e=n(9),we=n.n(_e),xe=n(109);function Oe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var Pe=function(t){O()(n,t);var e=Oe(n);function n(){return l()(this,n),e.apply(this,arguments)}return h()(n,[{key:"_applyConstraints",value:function(t){var e=t.maxZoom,n=t.minZoom,r=t.zoom;t.zoom=Object(yt.d)(r,n,e);var i=t.longitude,o=t.latitude;return(i<-180||i>180)&&(t.longitude=Object(Nt.e)(i+180,360)-180),t.latitude=Object(yt.d)(o,-89,89),t}}]),n}(xe.a),Se=function(t){O()(n,t);var e=Oe(n);function n(t){return l()(this,n),t.dragMode=t.dragMode||"pan",e.call(this,Pe,t)}return h()(n,[{key:"setProps",value:function(t){we()(j()(n.prototype),"setProps",this).call(this,t),this.dragRotate=!1,this.touchRotate=!1}},{key:"linearTransitionProps",get:function(){return["longitude","latitude","zoom"]}}]),n}(Dt.a);function ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ke(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ae(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var Te=function(t){O()(n,t);var e=Ae(n);function n(t){return l()(this,n),e.call(this,je(je({},t),{},{type:kt}))}return h()(n,[{key:"controller",get:function(){return this._getControllerProps({type:Se})}}]),n}(It.a);Te.displayName="GlobeView";var Ee=n(184),Me=n(125),Ce=n(110),Ie=n(126);function Re(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function De(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?De(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ne(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j()(t);if(e){var i=j()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return S()(this,n)}}var ze=["bearing","pitch"],Be={speed:1.2,curve:1.414},Ue=function(t){O()(n,t);var e=Ne(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return l()(this,n),(t=e.call(this,{compare:["longitude","latitude","zoom","bearing","pitch"],extract:["width","height","longitude","latitude","zoom","bearing","pitch"],required:["width","height","latitude","longitude","zoom"]})).props=Fe(Fe({},Be),r),t}return h()(n,[{key:"interpolateProps",value:function(t,e,n){var r,i=Object(Lt.d)(t,e,n,this.props),o=Re(ze);try{for(o.s();!(r=o.n()).done;){var a=r.value;i[a]=Object(yt.f)(t[a]||0,e[a]||0,n)}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"getDuration",value:function(t,e){var n=e.transitionDuration;return"auto"===n&&(n=Object(Lt.h)(t,e,this.props)),n}}]),n}(Ce.a),Ve=n(22),Ge=n(63),We=n(206),He=n(75),qe=n(149),Ze=n(85),Xe=n(148),Ye=n(127);n.d(e,"COORDINATE_SYSTEM",(function(){return r.a})),n.d(e,"UNIT",(function(){return r.d})),n.d(e,"LightingEffect",(function(){return i.a})),n.d(e,"AmbientLight",(function(){return o.a})),n.d(e,"DirectionalLight",(function(){return a.a})),n.d(e,"PointLight",(function(){return _})),n.d(e,"_CameraLight",(function(){return E})),n.d(e,"_SunLight",(function(){return G})),n.d(e,"PostProcessEffect",(function(){return it})),n.d(e,"_LayersPass",(function(){return ut.a})),n.d(e,"Deck",(function(){return ct.a})),n.d(e,"LayerManager",(function(){return lt.a})),n.d(e,"AttributeManager",(function(){return ft.a})),n.d(e,"Layer",(function(){return ht.a})),n.d(e,"CompositeLayer",(function(){return dt.a})),n.d(e,"DeckRenderer",(function(){return pt.a})),n.d(e,"Viewport",(function(){return vt.a})),n.d(e,"WebMercatorViewport",(function(){return gt.a})),n.d(e,"_GlobeViewport",(function(){return kt})),n.d(e,"picking",(function(){return At.a})),n.d(e,"project",(function(){return Tt.a})),n.d(e,"project32",(function(){return Et.a})),n.d(e,"gouraudLighting",(function(){return Mt.a})),n.d(e,"phongLighting",(function(){return Mt.b})),n.d(e,"shadow",(function(){return Ct.a})),n.d(e,"View",(function(){return It.a})),n.d(e,"MapView",(function(){return Rt.a})),n.d(e,"FirstPersonView",(function(){return Yt})),n.d(e,"OrbitView",(function(){return ue})),n.d(e,"OrthographicView",(function(){return be})),n.d(e,"_GlobeView",(function(){return Te})),n.d(e,"Controller",(function(){return Dt.a})),n.d(e,"MapController",(function(){return xe.b})),n.d(e,"_GlobeController",(function(){return Se})),n.d(e,"FirstPersonController",(function(){return Wt})),n.d(e,"OrbitController",(function(){return ee})),n.d(e,"OrthographicController",(function(){return he})),n.d(e,"Effect",(function(){return W.a})),n.d(e,"LayerExtension",(function(){return Ee.a})),n.d(e,"TRANSITION_EVENTS",(function(){return Me.a})),n.d(e,"TransitionInterpolator",(function(){return Ce.a})),n.d(e,"LinearInterpolator",(function(){return Ie.a})),n.d(e,"FlyToInterpolator",(function(){return Ue})),n.d(e,"log",(function(){return Ve.a})),n.d(e,"createIterable",(function(){return Ge.a})),n.d(e,"fp64LowPart",(function(){return Nt.b})),n.d(e,"Tesselator",(function(){return We.a})),n.d(e,"_fillArray",(function(){return He.a})),n.d(e,"_flatten",(function(){return He.b})),n.d(e,"_count",(function(){return qe.a})),n.d(e,"_memoize",(function(){return Ze.a})),n.d(e,"_mergeShaders",(function(){return Xe.a})),n.d(e,"_compareProps",(function(){return Ye.a}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return u})),n.d(e,"j",(function(){return l})),n.d(e,"i",(function(){return f})),n.d(e,"h",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"g",(function(){return v})),n.d(e,"d",(function(){return g}));n(162),n(234),n(235),n(49);var r=1/Math.PI*180,i=1/180*Math.PI,o={};function a(t){return Math.round(t/o.EPSILON)*o.EPSILON}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.precision,r=void 0===n?o.precision||4:n;return t=a(t),"".concat(parseFloat(t.toPrecision(r)))}function u(t){return Array.isArray(t)||ArrayBuffer.isView(t)&&!(t instanceof DataView)}function c(t,e,n){if(u(t)){n=n||((i=t).clone?i.clone():new Array(i.length));for(var r=0;r<n.length&&r<t.length;++r)n[r]=e(t[r],r,n);return n}var i;return e(t)}function l(t){return h(t)}function f(t){return d(t)}function h(t,e){return c(t,(function(t){return t*i}),e)}function d(t,e){return c(t,(function(t){return t*r}),e)}function p(t,e,n){return c(t,(function(t){return Math.max(e,Math.min(n,t))}))}function v(t,e,n){return u(t)?t.map((function(t,r){return v(t,e[r],n)})):n*e+(1-n)*t}function g(t,e,n){var r=o.EPSILON;n&&(o.EPSILON=n);try{if(t===e)return!0;if(u(t)&&u(e)){if(t.length!==e.length)return!1;for(var i=0;i<t.length;++i)if(!g(t[i],e[i]))return!1;return!0}return t&&t.equals?t.equals(e):e&&e.equals?e.equals(t):!(!Number.isFinite(t)||!Number.isFinite(e))&&Math.abs(t-e)<=o.EPSILON*Math.max(1,Math.abs(t),Math.abs(e))}finally{o.EPSILON=r}}o.EPSILON=1e-12,o.debug=!1,o.precision=4,o.printTypes=!1,o.printDegrees=!1,o.printRowMajor=!0},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return s}));var r=n(22),i={DEFAULT:-1,LNGLAT:1,METER_OFFSETS:2,LNGLAT_OFFSETS:3,CARTESIAN:0};Object.defineProperty(i,"IDENTITY",{get:function(){return r.a.deprecated("COORDINATE_SYSTEM.IDENTITY","COORDINATE_SYSTEM.CARTESIAN")()||0}});var o={WEB_MERCATOR:1,GLOBE:2,WEB_MERCATOR_AUTO_OFFSET:4,IDENTITY:0},a={common:0,meters:1,pixels:2},s={click:{handler:"onClick"},panstart:{handler:"onDragStart"},panmove:{handler:"onDrag"},panend:{handler:"onDragEnd"}}},,function(t,e,n){"use strict";n.d(e,"q",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"h",(function(){return s})),n.d(e,"p",(function(){return u})),n.d(e,"o",(function(){return c})),n.d(e,"k",(function(){return l})),n.d(e,"l",(function(){return f})),n.d(e,"m",(function(){return h})),n.d(e,"n",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return g})),n.d(e,"j",(function(){return y})),n.d(e,"i",(function(){return m})),n.d(e,"g",(function(){return b})),n.d(e,"b",(function(){return _}));var r=n(14);function i(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function o(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*a,b=n*u-i*a,_=n*c-o*a,w=r*u-i*s,x=r*c-o*s,O=i*c-o*u,P=l*v-f*p,S=l*g-h*p,k=l*y-d*p,j=f*g-h*v,A=f*y-d*v,T=h*y-d*g,E=m*T-b*A+_*j+w*k-x*S+O*P;return E?(E=1/E,t[0]=(s*T-u*A+c*j)*E,t[1]=(i*A-r*T-o*j)*E,t[2]=(v*O-g*x+y*w)*E,t[3]=(h*x-f*O-d*w)*E,t[4]=(u*k-a*T-c*S)*E,t[5]=(n*T-i*k+o*S)*E,t[6]=(g*_-p*O-y*b)*E,t[7]=(l*O-h*_+d*b)*E,t[8]=(a*A-s*k+c*P)*E,t[9]=(r*k-n*A-o*P)*E,t[10]=(p*x-v*_+y*m)*E,t[11]=(f*_-l*x-d*m)*E,t[12]=(s*S-a*j-u*P)*E,t[13]=(n*j-r*S+i*P)*E,t[14]=(v*b-p*w-g*m)*E,t[15]=(l*w-f*b+h*m)*E,t):null}function a(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],h=t[11],d=t[12],p=t[13],v=t[14],g=t[15];return(e*a-n*o)*(f*g-h*v)-(e*s-r*o)*(l*g-h*p)+(e*u-i*o)*(l*v-f*p)+(n*s-r*a)*(c*g-h*d)-(n*u-i*a)*(c*v-f*d)+(r*u-i*s)*(c*p-l*d)}function s(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=e[9],d=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=n[0],_=n[1],w=n[2],x=n[3];return t[0]=b*r+_*s+w*f+x*v,t[1]=b*i+_*u+w*h+x*g,t[2]=b*o+_*c+w*d+x*y,t[3]=b*a+_*l+w*p+x*m,b=n[4],_=n[5],w=n[6],x=n[7],t[4]=b*r+_*s+w*f+x*v,t[5]=b*i+_*u+w*h+x*g,t[6]=b*o+_*c+w*d+x*y,t[7]=b*a+_*l+w*p+x*m,b=n[8],_=n[9],w=n[10],x=n[11],t[8]=b*r+_*s+w*f+x*v,t[9]=b*i+_*u+w*h+x*g,t[10]=b*o+_*c+w*d+x*y,t[11]=b*a+_*l+w*p+x*m,b=n[12],_=n[13],w=n[14],x=n[15],t[12]=b*r+_*s+w*f+x*v,t[13]=b*i+_*u+w*h+x*g,t[14]=b*o+_*c+w*d+x*y,t[15]=b*a+_*l+w*p+x*m,t}function u(t,e,n){var r,i,o,a,s,u,c,l,f,h,d,p,v=n[0],g=n[1],y=n[2];return e===t?(t[12]=e[0]*v+e[4]*g+e[8]*y+e[12],t[13]=e[1]*v+e[5]*g+e[9]*y+e[13],t[14]=e[2]*v+e[6]*g+e[10]*y+e[14],t[15]=e[3]*v+e[7]*g+e[11]*y+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=e[9],d=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=c,t[7]=l,t[8]=f,t[9]=h,t[10]=d,t[11]=p,t[12]=r*v+s*g+f*y+e[12],t[13]=i*v+u*g+h*y+e[13],t[14]=o*v+c*g+d*y+e[14],t[15]=a*v+l*g+p*y+e[15]),t}function c(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function l(t,e,n,i){var o,a,s,u,c,l,f,h,d,p,v,g,y,m,b,_,w,x,O,P,S,k,j,A,T=i[0],E=i[1],M=i[2],C=Math.hypot(T,E,M);return C<r.b?null:(T*=C=1/C,E*=C,M*=C,o=Math.sin(n),s=1-(a=Math.cos(n)),u=e[0],c=e[1],l=e[2],f=e[3],h=e[4],d=e[5],p=e[6],v=e[7],g=e[8],y=e[9],m=e[10],b=e[11],_=T*T*s+a,w=E*T*s+M*o,x=M*T*s-E*o,O=T*E*s-M*o,P=E*E*s+a,S=M*E*s+T*o,k=T*M*s+E*o,j=E*M*s-T*o,A=M*M*s+a,t[0]=u*_+h*w+g*x,t[1]=c*_+d*w+y*x,t[2]=l*_+p*w+m*x,t[3]=f*_+v*w+b*x,t[4]=u*O+h*P+g*S,t[5]=c*O+d*P+y*S,t[6]=l*O+p*P+m*S,t[7]=f*O+v*P+b*S,t[8]=u*k+h*j+g*A,t[9]=c*k+d*j+y*A,t[10]=l*k+p*j+m*A,t[11]=f*k+v*j+b*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function f(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+c*r,t[5]=a*i+l*r,t[6]=s*i+f*r,t[7]=u*i+h*r,t[8]=c*i-o*r,t[9]=l*i-a*r,t[10]=f*i-s*r,t[11]=h*i-u*r,t}function h(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-c*r,t[1]=a*i-l*r,t[2]=s*i-f*r,t[3]=u*i-h*r,t[8]=o*r+c*i,t[9]=a*r+l*i,t[10]=s*r+f*i,t[11]=u*r+h*i,t}function d(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[4],l=e[5],f=e[6],h=e[7];return e!==t&&(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[0]=o*i+c*r,t[1]=a*i+l*r,t[2]=s*i+f*r,t[3]=u*i+h*r,t[4]=c*i-o*r,t[5]=l*i-a*r,t[6]=f*i-s*r,t[7]=h*i-u*r,t}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],c=e[9],l=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(u,c,l),t}function v(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,l=r*a,f=r*s,h=i*a,d=i*s,p=i*u,v=o*a,g=o*s,y=o*u;return t[0]=1-f-p,t[1]=l+y,t[2]=h-g,t[3]=0,t[4]=l-y,t[5]=1-c-p,t[6]=d+v,t[7]=0,t[8]=h+g,t[9]=d-v,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,e,n,r,i,o,a){var s=1/(n-e),u=1/(i-r),c=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0,t}function y(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}function m(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*c,t[15]=1,t}function b(t,e,n,i){var o,a,s,u,c,l,f,h,d,p,v=e[0],g=e[1],y=e[2],m=i[0],b=i[1],_=i[2],w=n[0],x=n[1],O=n[2];return Math.abs(v-w)<r.b&&Math.abs(g-x)<r.b&&Math.abs(y-O)<r.b?function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}(t):(f=v-w,h=g-x,d=y-O,o=b*(d*=p=1/Math.hypot(f,h,d))-_*(h*=p),a=_*(f*=p)-m*d,s=m*h-b*f,(p=Math.hypot(o,a,s))?(o*=p=1/p,a*=p,s*=p):(o=0,a=0,s=0),u=h*s-d*a,c=d*o-f*s,l=f*a-h*o,(p=Math.hypot(u,c,l))?(u*=p=1/p,c*=p,l*=p):(u=0,c=0,l=0),t[0]=o,t[1]=u,t[2]=f,t[3]=0,t[4]=a,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=l,t[10]=d,t[11]=0,t[12]=-(o*v+a*g+s*y),t[13]=-(u*v+c*g+l*y),t[14]=-(f*v+h*g+d*y),t[15]=1,t)}function _(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],h=t[9],d=t[10],p=t[11],v=t[12],g=t[13],y=t[14],m=t[15],b=e[0],_=e[1],w=e[2],x=e[3],O=e[4],P=e[5],S=e[6],k=e[7],j=e[8],A=e[9],T=e[10],E=e[11],M=e[12],C=e[13],I=e[14],R=e[15];return Math.abs(n-b)<=r.b*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-_)<=r.b*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(o-w)<=r.b*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(a-x)<=r.b*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(s-O)<=r.b*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(u-P)<=r.b*Math.max(1,Math.abs(u),Math.abs(P))&&Math.abs(c-S)<=r.b*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(l-k)<=r.b*Math.max(1,Math.abs(l),Math.abs(k))&&Math.abs(f-j)<=r.b*Math.max(1,Math.abs(f),Math.abs(j))&&Math.abs(h-A)<=r.b*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(d-T)<=r.b*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(p-E)<=r.b*Math.max(1,Math.abs(p),Math.abs(E))&&Math.abs(v-M)<=r.b*Math.max(1,Math.abs(v),Math.abs(M))&&Math.abs(g-C)<=r.b*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(y-I)<=r.b*Math.max(1,Math.abs(y),Math.abs(I))&&Math.abs(m-R)<=r.b*Math.max(1,Math.abs(m),Math.abs(R))}},function(t,e,n){"use strict";var r=n(302);e.a=new r.a({id:"deck"})},function(t,e,n){"use strict";n.d(e,"f",(function(){return s})),n.d(e,"h",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return f})),n.d(e,"e",(function(){return h})),n.d(e,"j",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return v})),n.d(e,"i",(function(){return g})),n.d(e,"k",(function(){return y}));var r=n(15),i=n.n(r),o=function(t){return"boolean"==typeof t},a=function(t){return"function"==typeof t},s=function(t){return null!==t&&"object"===i()(t)},u=function(t){return s(t)&&t.constructor==={}.constructor},c=function(t){return s(t)&&a(t.then)},l=function(t){return t&&"function"==typeof t[Symbol.iterator]},f=function(t){return t&&"function"==typeof t[Symbol.asyncIterator]},h=function(t){return t&&a(t.next)},d=function(t){return"undefined"!=typeof Response&&t instanceof Response||t&&t.arrayBuffer&&t.text&&t.json},p=function(t){return"undefined"!=typeof Blob&&t instanceof Blob},v=function(t){return t&&"object"===i()(t)&&t.isBuffer},g=function(t){return function(t){return"undefined"!=typeof ReadableStream&&t instanceof ReadableStream||s(t)&&a(t.tee)&&a(t.cancel)&&a(t.getReader)}(t)||function(t){return s(t)&&a(t.read)&&a(t.pipe)&&o(t.readable)}(t)},y=function(t){return function(t){return s(t)&&a(t.abort)&&a(t.getWriter)}(t)||function(t){return s(t)&&a(t.end)&&a(t.write)&&o(t.writable)}(t)}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"i",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"l",(function(){return u})),n.d(e,"m",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"t",(function(){return d})),n.d(e,"s",(function(){return p})),n.d(e,"u",(function(){return v})),n.d(e,"n",(function(){return g})),n.d(e,"o",(function(){return y})),n.d(e,"p",(function(){return m})),n.d(e,"b",(function(){return b})),n.d(e,"r",(function(){return w})),n.d(e,"k",(function(){return x})),n.d(e,"e",(function(){return O})),n.d(e,"h",(function(){return P})),n.d(e,"q",(function(){return S}));var r=n(14);function i(){var t=new r.a(3);return r.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function a(t,e,n){var i=new r.a(3);return i[0]=t,i[1]=e,i[2]=n,i}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function c(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function l(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function f(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t}function h(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function d(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function p(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function v(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],c=e[2],l=i*c-o*u,f=o*s-r*c,h=r*u-i*s,d=i*h-o*f,p=o*l-r*h,v=r*f-i*l,g=2*a;return l*=g,f*=g,h*=g,d*=2,p*=2,v*=2,t[0]=s+l+d,t[1]=u+f+p,t[2]=c+h+v,t}function g(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function y(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function m(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function b(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),c=u&&l(t,e)/u;return Math.acos(Math.min(Math.max(c,-1),1))}var _,w=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t},x=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t},O=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)},P=o,S=function(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r};_=i()},function(t,e,n){"use strict";var r={};function i(t){var e=t&&t.lastIndexOf("/");return e>=0?t.substr(0,e):""}function o(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r="/";return(e=e.map((function(t,n){return n&&(t=t.replace(new RegExp("^".concat(r)),"")),n!==e.length-1&&(t=t.replace(new RegExp("".concat(r,"$")),"")),t}))).join(r)}n.r(r),n.d(r,"dirname",(function(){return i})),n.d(r,"join",(function(){return o}));var a=n(207);n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";var r=n(135),i=n.n(r),o=n(50),a=n.n(o),s=n(236),u=n.n(s),c=n(237),l=n.n(c),f=n(32);function h(t,e){var n=f.n([],e,t);return f.k(n,n,1/n[3]),n}function d(t,e){var n=t%e;return n<0?e+n:n}function p(t,e,n){return n*e+(1-n)*t}var v=Math.log2||function(t){return Math.log(t)*Math.LOG2E},g=n(21),y=n(31),m=n(24);function b(t,e){if(!t)throw new Error(e||"@math.gl/web-mercator: assertion failed.")}var _=Math.PI,w=_/4,x=_/180,O=180/_;function P(t){return Math.pow(2,t)}function S(t){return v(t)}function k(t){var e=a()(t,2),n=e[0],r=e[1];b(Number.isFinite(n)),b(Number.isFinite(r)&&r>=-90&&r<=90,"invalid latitude");var i=r*x;return[512*(n*x+_)/(2*_),512*(_+Math.log(Math.tan(w+.5*i)))/(2*_)]}function j(t){var e=a()(t,2),n=e[0],r=e[1],i=n/512*(2*_)-_,o=2*(Math.atan(Math.exp(r/512*(2*_)-_))-w);return[i*O,o*O]}function A(t){var e=t.latitude;return b(Number.isFinite(e)),S(4003e4*Math.cos(e*x))-9}function T(t){var e=t.latitude,n=t.longitude,r=t.highPrecision,i=void 0!==r&&r;b(Number.isFinite(e)&&Number.isFinite(n));var o={},a=Math.cos(e*x),s=512/360/a,u=512/4003e4/a;if(o.unitsPerMeter=[u,u,u],o.metersPerUnit=[1/u,1/u,1/u],o.unitsPerDegree=[512/360,s,u],o.degreesPerUnit=[.703125,1/s,1/u],i){var c=x*Math.tan(e*x)/a,l=512/360*c/2,f=512/4003e4*c,h=f/s*u;o.unitsPerDegree2=[0,l,f],o.unitsPerMeter2=[h,0,h]}return o}function E(t,e){var n=a()(t,3),r=n[0],i=n[1],o=n[2],s=a()(e,3),u=s[0],c=s[1],l=s[2],f=T({longitude:r,latitude:i,highPrecision:!0}),h=f.unitsPerMeter,d=f.unitsPerMeter2,p=k(t);p[0]+=u*(h[0]+d[0]*c),p[1]+=c*(h[1]+d[1]*c);var v=j(p),g=(o||0)+(l||0);return Number.isFinite(o)||Number.isFinite(l)?[v[0],v[1],g]:v}function M(t){var e=t.height,n=t.pitch,r=t.bearing,i=t.altitude,o=t.scale,a=t.center,s=void 0===a?null:a,u=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return g.p(u,u,[0,0,-i]),g.l(u,u,-n*x),g.n(u,u,r*x),o/=e,g.o(u,u,[o,o,o]),s&&g.p(u,u,m.l([],s)),u}function C(t){var e=t.width,n=t.height,r=t.fovy,i=void 0===r?R(1.5):r,o=t.altitude,a=t.pitch,s=void 0===a?0:a,u=t.nearZMultiplier,c=void 0===u?1:u,l=t.farZMultiplier,f=void 0===l?1:l;void 0!==o&&(i=R(o));var h=.5*i*x,d=L(i),p=s*x,v=Math.sin(h)*d/Math.sin(Math.min(Math.max(Math.PI/2-p-h,.01),Math.PI-.01));return{fov:2*h,aspect:e/n,focalDistance:d,near:c,far:(Math.sin(p)*v+d)*f}}function I(t){var e=t.width,n=t.height,r=t.pitch,i=C({width:e,height:n,altitude:t.altitude,fovy:t.fovy,pitch:r,nearZMultiplier:t.nearZMultiplier,farZMultiplier:t.farZMultiplier}),o=i.fov,a=i.aspect,s=i.near,u=i.far;return g.j([],o,a,s,u)}function R(t){return 2*Math.atan(.5/t)*O}function L(t){return.5/Math.tan(.5*t*x)}function D(t,e){var n=a()(t,3),r=n[0],i=n[1],o=n[2],s=void 0===o?0:o;return b(Number.isFinite(r)&&Number.isFinite(i)&&Number.isFinite(s)),h(e,[r,i,s,1])}function F(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=a()(t,3),i=r[0],o=r[1],s=r[2];if(b(Number.isFinite(i)&&Number.isFinite(o),"invalid pixel coordinate"),Number.isFinite(s)){var u=h(e,[i,o,s,1]);return u}var c=h(e,[i,o,0,1]),l=h(e,[i,o,1,1]),f=c[2],d=l[2],p=f===d?0:((n||0)-f)/(d-f);return y.c([],c,l,p)}function N(t){var e=t.width,n=t.height,r=t.bounds,i=t.minExtent,o=void 0===i?0:i,s=t.maxZoom,u=void 0===s?24:s,c=t.padding,l=void 0===c?0:c,f=t.offset,h=void 0===f?[0,0]:f,d=a()(r,2),p=a()(d[0],2),g=p[0],y=p[1],m=a()(d[1],2),_=m[0],w=m[1];if(Number.isFinite(l)){l={top:l,bottom:l,left:l,right:l}}else b(Number.isFinite(l.top)&&Number.isFinite(l.bottom)&&Number.isFinite(l.left)&&Number.isFinite(l.right));var x=new V({width:e,height:n,longitude:0,latitude:0,zoom:0}),O=x.project([g,w]),P=x.project([_,y]),S=[Math.max(Math.abs(P[0]-O[0]),o),Math.max(Math.abs(P[1]-O[1]),o)],k=[e-l.left-l.right-2*Math.abs(h[0]),n-l.top-l.bottom-2*Math.abs(h[1])];b(k[0]>0&&k[1]>0);var j=k[0]/S[0],A=k[1]/S[1],T=(l.right-l.left)/2/j,E=(l.bottom-l.top)/2/A,M=[(P[0]+O[0])/2+T,(P[1]+O[1])/2+E],C=x.unproject(M),I=Math.min(u,x.zoom+v(Math.abs(Math.min(j,A))));return b(Number.isFinite(I)),{longitude:C[0],latitude:C[1],zoom:I}}var z=Math.PI/180;function B(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=t.width,o=t.height,a=t.unproject,s={targetZ:r},u=a([0,o],s),c=a([i,o],s),l=t.fovy?.5*t.fovy*z:Math.atan(.5/t.altitude),f=(90-t.pitch)*z;return l>f-.01?(e=U(t,0,r),n=U(t,i,r)):(e=a([0,0],s),n=a([i,0],s)),[u,c,n,e]}function U(t,e,n){var r=t.pixelUnprojectionMatrix,i=h(r,[e,0,1,1]),o=h(r,[e,t.height,1,1]),a=(n*t.distanceScales.unitsPerMeter[2]-i[2])/(o[2]-i[2]),s=j(y.c([],i,o,a));return s[2]=n,s}var V=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{width:1,height:1},n=e.width,r=e.height,i=e.latitude,o=void 0===i?0:i,a=e.longitude,s=void 0===a?0:a,c=e.zoom,l=void 0===c?0:c,f=e.pitch,h=void 0===f?0:f,d=e.bearing,p=void 0===d?0:d,v=e.altitude,g=void 0===v?null:v,y=e.fovy,b=void 0===y?null:y,_=e.position,w=void 0===_?null:_,x=e.nearZMultiplier,O=void 0===x?.02:x,S=e.farZMultiplier,j=void 0===S?1.01:S;u()(this,t),n=n||1,r=r||1,null===b&&null===g?b=R(g=1.5):null===b?b=R(g):null===g&&(g=L(b));var A=P(l);g=Math.max(.75,g);var E=T({longitude:s,latitude:o}),C=k([s,o]);C[2]=0,w&&m.a(C,C,m.k([],w,E.unitsPerMeter)),this.projectionMatrix=I({width:n,height:r,pitch:h,fovy:b,nearZMultiplier:O,farZMultiplier:j}),this.viewMatrix=M({height:r,scale:A,center:C,pitch:h,bearing:p,altitude:g}),this.width=n,this.height=r,this.scale=A,this.latitude=o,this.longitude=s,this.zoom=l,this.pitch=h,this.bearing=p,this.altitude=g,this.fovy=b,this.center=C,this.meterOffset=w||[0,0,0],this.distanceScales=E,this._initMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),Object.freeze(this)}return l()(t,[{key:"_initMatrices",value:function(){var t=this.width,e=this.height,n=this.projectionMatrix,r=this.viewMatrix,i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];g.h(i,i,n),g.h(i,i,r),this.viewProjectionMatrix=i;var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];g.o(o,o,[t/2,-e/2,1]),g.p(o,o,[1,-1,0]),g.h(o,o,i);var a=g.f([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],o);if(!a)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=o,this.pixelUnprojectionMatrix=a}},{key:"equals",value:function(e){return e instanceof t&&(e.width===this.width&&e.height===this.height&&g.b(e.projectionMatrix,this.projectionMatrix)&&g.b(e.viewMatrix,this.viewMatrix))}},{key:"project",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.topLeft,r=void 0===n||n,i=this.projectPosition(t),o=D(i,this.pixelProjectionMatrix),s=a()(o,2),u=s[0],c=s[1],l=r?c:this.height-c;return 2===t.length?[u,l]:[u,l,o[2]]}},{key:"unproject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.topLeft,r=void 0===n||n,i=e.targetZ,o=void 0===i?void 0:i,s=a()(t,3),u=s[0],c=s[1],l=s[2],f=r?c:this.height-c,h=o&&o*this.distanceScales.unitsPerMeter[2],d=F([u,f,l],this.pixelUnprojectionMatrix,h),p=this.unprojectPosition(d),v=a()(p,3),g=v[0],y=v[1],m=v[2];return Number.isFinite(l)?[g,y,m]:Number.isFinite(o)?[g,y,o]:[g,y]}},{key:"projectPosition",value:function(t){var e=k(t),n=a()(e,2);return[n[0],n[1],(t[2]||0)*this.distanceScales.unitsPerMeter[2]]}},{key:"unprojectPosition",value:function(t){var e=j(t),n=a()(e,2);return[n[0],n[1],(t[2]||0)*this.distanceScales.metersPerUnit[2]]}},{key:"projectFlat",value:function(t){return k(t)}},{key:"unprojectFlat",value:function(t){return j(t)}},{key:"getMapCenterByLngLatPosition",value:function(t){var e=t.lngLat,n=F(t.pos,this.pixelUnprojectionMatrix),r=k(e),i=y.a([],r,y.d([],n));return j(y.a([],this.center,i))}},{key:"getLocationAtPoint",value:function(t){var e=t.lngLat,n=t.pos;return this.getMapCenterByLngLatPosition({lngLat:e,pos:n})}},{key:"fitBounds",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,i=this.height,o=N(Object.assign({width:r,height:i,bounds:e},n)),a=o.longitude,s=o.latitude,u=o.zoom;return new t({width:r,height:i,longitude:a,latitude:s,zoom:u})}},{key:"getBounds",value:function(t){var e=this.getBoundingRegion(t),n=Math.min.apply(Math,i()(e.map((function(t){return t[0]})))),r=Math.max.apply(Math,i()(e.map((function(t){return t[0]}))));return[[n,Math.min.apply(Math,i()(e.map((function(t){return t[1]}))))],[r,Math.max.apply(Math,i()(e.map((function(t){return t[1]}))))]]}},{key:"getBoundingRegion",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return B(this,t.z||0)}}]),t}();function G(t){var e=t.width,n=t.height,r=t.longitude,i=t.latitude,o=t.zoom,a=t.pitch,s=void 0===a?0:a,u=t.bearing,c=void 0===u?0:u;(r<-180||r>180)&&(r=d(r+180,360)-180),(c<-180||c>180)&&(c=d(c+180,360)-180);var l=new V({width:e,height:n,longitude:r,latitude:i,zoom:o}),f=l.project([r,85.05113])[1],h=l.project([r,-85.05113])[1],p=0;return h-f<n&&(o+=v(n/(h-f)),f=(l=new V({width:e,height:n,longitude:r,latitude:i,zoom:o})).project([r,85.05113])[1],h=l.project([r,-85.05113])[1]),f>0?p=f:h<n&&(p=h-n),p&&(i=l.unproject([e/2,n/2+p])[1]),{width:e,height:n,longitude:r,latitude:i,zoom:o,pitch:s,bearing:c}}function W(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return H(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var q=["longitude","latitude","zoom"],Z={curve:1.414,speed:1.2};function X(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={},o=K(t,e,r),a=o.startZoom,s=o.startCenterXY,u=o.uDelta,c=o.w0,l=o.u1,f=o.S,h=o.rho,d=o.rho2,v=o.r0;if(l<.01){var g,m=W(q);try{for(m.s();!(g=m.n()).done;){var b=g.value,_=t[b],w=e[b];i[b]=p(_,w,n)}}catch(t){m.e(t)}finally{m.f()}return i}var x=n*f,O=Math.cosh(v)/Math.cosh(v+h*x),P=c*((Math.cosh(v)*Math.tanh(v+h*x)-Math.sinh(v))/d)/l,k=1/O,A=a+S(k),T=y.e([],u,P);y.a(T,T,s);var E=j(T);return i.longitude=E[0],i.latitude=E[1],i.zoom=A,i}function Y(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r=Object.assign({},Z,r),o=i.screenSpeed,a=i.speed,s=i.maxDuration,u=K(t,e,r),c=u.S,l=u.rho,f=1e3*c;return n=Number.isFinite(o)?f/(o/l):f/a,Number.isFinite(s)&&n>s?0:n}function K(t,e,n){var r=(n=Object.assign({},Z,n)).curve,i=t.zoom,o=[t.longitude,t.latitude],a=P(i),s=e.zoom,u=[e.longitude,e.latitude],c=P(s-i),l=k(o),f=k(u),h=y.f([],f,l),d=Math.max(t.width,t.height),p=d/c,v=y.b(h)*a,g=Math.max(v,.01),m=r*r,b=(p*p-d*d+m*m*g*g)/(2*d*m*g),_=(p*p-d*d-m*m*g*g)/(2*p*m*g),w=Math.log(Math.sqrt(b*b+1)-b),x=Math.log(Math.sqrt(_*_+1)-_);return{startZoom:i,startCenterXY:l,uDelta:h,w0:d,u1:v,S:(x-w)/r,rho:r,rho2:m,r0:w,r1:x}}n.d(e,"f",(function(){return B})),n.d(e,"c",(function(){return N})),n.d(e,"m",(function(){return G})),n.d(e,"d",(function(){return X})),n.d(e,"h",(function(){return Y})),n.d(e,"l",(function(){return k})),n.d(e,"o",(function(){return j})),n.d(e,"p",(function(){return D})),n.d(e,"n",(function(){return F})),n.d(e,"b",(function(){return R})),n.d(e,"e",(function(){return L})),n.d(e,"i",(function(){return A})),n.d(e,"g",(function(){return T})),n.d(e,"a",(function(){return E})),n.d(e,"k",(function(){return M})),n.d(e,"j",(function(){return C}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u}));var r=n(18);function i(t,e){if(t.length!==e)return!1;for(var n=0;n<t.length;++n)if(!Number.isFinite(t[n]))return!1;return!0}function o(t){if(!Number.isFinite(t))throw new Error("Invalid number ".concat(t));return t}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(r.b.debug&&!i(t,e))throw new Error("math.gl: ".concat(n," some fields set to invalid numbers'"));return t}var s={};function u(t,e){s[t]||(s[t]=!0,console.warn("".concat(t," has been removed in version ").concat(e,", see upgrade guide for more information")))}},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){"use strict";var r=n(18),i=n(142),o=n(200),a=n(164),s=n.n(a),u=n(46),c=n.n(u),l=n(40),f=n.n(l),h=n(24),d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.phi,r=void 0===n?0:n,i=e.theta,o=void 0===i?0:i,a=e.radius,s=void 0===a?1:a,u=e.bearing,l=void 0===u?void 0:u,f=e.pitch,h=void 0===f?void 0:f,d=e.altitude,p=void 0===d?void 0:d,v=e.radiusScale,g=void 0===v?6371e3:v;c()(this,t),this.phi=r,this.theta=o,this.radius=s||p||1,this.radiusScale=g||1,void 0!==l&&(this.bearing=l),void 0!==h&&(this.pitch=h),this.check()}return f()(t,[{key:"toString",value:function(){return this.formatString(r.b)}},{key:"formatString",value:function(t){var e=t.printTypes,n=void 0!==e&&e,i=r.e;return"".concat(n?"Spherical":"","[rho:").concat(i(this.radius),",theta:").concat(i(this.theta),",phi:").concat(i(this.phi),"]")}},{key:"equals",value:function(t){return Object(r.d)(this.radius,t.radius)&&Object(r.d)(this.theta,t.theta)&&Object(r.d)(this.phi,t.phi)}},{key:"exactEquals",value:function(t){return this.radius===t.radius&&this.theta===t.theta&&this.phi===t.phi}},{key:"set",value:function(t,e,n){return this.radius=t,this.phi=e,this.theta=n,this.check()}},{key:"clone",value:function(){return(new t).copy(this)}},{key:"copy",value:function(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this.check()}},{key:"fromLngLatZ",value:function(t){var e=s()(t,3),n=e[0],i=e[1],o=e[2];this.radius=1+o/this.radiusScale,this.phi=Object(r.h)(i),this.theta=Object(r.h)(n)}},{key:"fromVector3",value:function(t){return this.radius=h.i(t),this.radius>0&&(this.theta=Math.atan2(t[0],t[1]),this.phi=Math.acos(Object(r.a)(t[2]/this.radius,-1,1))),this.check()}},{key:"toVector3",value:function(){return new i.a(0,0,this.radius).rotateX({radians:this.theta}).rotateZ({radians:this.phi})}},{key:"makeSafe",value:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}},{key:"check",value:function(){if(!(Number.isFinite(this.phi)&&Number.isFinite(this.theta)&&this.radius>0))throw new Error("SphericalCoordinates: some fields set to invalid numbers");return this}},{key:"bearing",get:function(){return 180-Object(r.c)(this.phi)},set:function(t){this.phi=Math.PI-Object(r.h)(t)}},{key:"pitch",get:function(){return Object(r.c)(this.theta)},set:function(t){this.theta=Object(r.h)(t)}},{key:"longitude",get:function(){return Object(r.c)(this.phi)}},{key:"latitude",get:function(){return Object(r.c)(this.theta)}},{key:"lng",get:function(){return Object(r.c)(this.phi)}},{key:"lat",get:function(){return Object(r.c)(this.theta)}},{key:"z",get:function(){return(this.radius-1)*this.radiusScale}}]),t}();n.d(e,"b",(function(){return i.a})),n.d(e,"a",(function(){return o.a})),n.d(e,"e",(function(){return r.d})),n.d(e,"d",(function(){return r.a})),n.d(e,"f",(function(){return r.g})),n.d(e,"c",(function(){return d}));var p={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:"undefined"!=typeof global&&global};(p.global||p.self||p.window).mathgl={config:r.b}},function(t,e,n){t.exports=n(260)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"f",(function(){return v}));var r=n(14);function i(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function o(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function a(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function s(t,e){return t[0]=-e[0],t[1]=-e[1],t}function u(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function c(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function l(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function f(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function h(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}var d,p,v=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t};d=new r.a(2),r.a!=Float32Array&&(d[0]=0,d[1]=0),p=d},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"g",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"l",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"k",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"m",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"i",(function(){return p})),n.d(e,"n",(function(){return v})),n.d(e,"o",(function(){return g})),n.d(e,"f",(function(){return y})),n.d(e,"e",(function(){return m}));var r=n(14);function i(t){var e=new r.a(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(t,e,n,i){var o=new r.a(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function c(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function l(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function f(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a,t}function d(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function p(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2],c=n[3],l=c*r+s*o-u*i,f=c*i+u*r-a*o,h=c*o+a*i-s*r,d=-a*r-s*i-u*o;return t[0]=l*c+d*-a+f*-u-h*-s,t[1]=f*c+d*-s+h*-a-l*-u,t[2]=h*c+d*-u+l*-s-f*-a,t[3]=e[3],t}function y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function m(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],u=e[1],c=e[2],l=e[3];return Math.abs(n-s)<=r.b*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-u)<=r.b*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-c)<=r.b*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-l)<=r.b*Math.max(1,Math.abs(a),Math.abs(l))}var b,_;b=new r.a(4),r.a!=Float32Array&&(b[0]=0,b[1]=0,b[2]=0,b[3]=0),_=b},function(t,e,n){var r=n(204);t.exports=function(t){return new r(t)}},function(t,e,n){t.exports=n(283)()},,function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(22),i={};function o(t){i=t}function a(t){var e;r.a.level>0&&i[t]&&(e=i[t]).call.apply(e,arguments)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r={NO_STATE:"Awaiting state",MATCHED:"Matched. State transferred from previous layer",INITIALIZED:"Initialized",AWAITING_GC:"Discarded. Awaiting garbage collection",AWAITING_FINALIZATION:"No longer matched. Awaiting garbage collection",FINALIZED:"Finalized! Awaiting garbage collection"},i={COMPONENT:Symbol.for("component"),ASYNC_DEFAULTS:Symbol.for("asyncPropDefaults"),ASYNC_ORIGINAL:Symbol.for("asyncPropOriginal"),ASYNC_RESOLVED:Symbol.for("asyncPropResolved")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(28),u=n.n(s),c=n(5),l=n.n(c),f=n(6),h=n.n(f),d=n(3),p=n.n(d),v=n(45),g=n(74),y=n(64),m=n(10),b=n(12),_=n(129);function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}var x={offset:"accessor.offset",stride:"accessor.stride",type:"accessor.type",size:"accessor.size",divisor:"accessor.divisor",normalized:"accessor.normalized",integer:"accessor.integer",instanced:"accessor.divisor",isInstanced:"accessor.divisor"},O={removedProps:{},replacedProps:{bytes:"byteLength"},deprecatedProps:x},P={removedProps:x},S=function(t){l()(n,t);var e=w(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i()(this,n),(r=e.call(this,t,o)).stubRemovedMethods("Buffer","v6.0",["layout","setLayout","getIndexedParameter"]),r.target=o.target||(r.gl.webgl2?36662:34962),r.initialize(o),Object.seal(u()(r)),r}return a()(n,[{key:"getElementCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/g.a.getBytesPerElement(t))}},{key:"getVertexCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.accessor;return Math.round(this.byteLength/g.a.getBytesPerVertex(t))}},{key:"initialize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ArrayBuffer.isView(t)&&(t={data:t}),Number.isFinite(t)&&(t={byteLength:t}),t=Object(_.a)("Buffer",t,O),this.usage=t.usage||35044,this.debugData=null,this.setAccessor(Object.assign({},t,t.accessor)),t.data?this._setData(t.data,t.offset,t.byteLength):this._setByteLength(t.byteLength||0),this}},{key:"setProps",value:function(t){return"accessor"in(t=Object(_.a)("Buffer",t,P))&&this.setAccessor(t.accessor),this}},{key:"setAccessor",value:function(t){return delete(t=Object.assign({},t)).buffer,this.accessor=new g.a(t),this}},{key:"reallocate",value:function(t){return t>this.byteLength?(this._setByteLength(t),!0):(this.bytesUsed=t,!1)}},{key:"setData",value:function(t){return this.initialize(t)}},{key:"subData",value:function(t){ArrayBuffer.isView(t)&&(t={data:t});var e=t,n=e.data,r=e.offset,i=void 0===r?0:r,o=e.srcOffset,a=void 0===o?0:o,s=t.byteLength||t.length;Object(b.a)(n);var u=this.gl.webgl2?36663:this.target;return this.gl.bindBuffer(u,this.handle),0!==a||void 0!==s?(Object(m.a)(this.gl),this.gl.bufferSubData(this.target,i,n,a,s)):this.gl.bufferSubData(u,i,n),this.gl.bindBuffer(u,null),this.debugData=null,this._inferType(n),this}},{key:"copyData",value:function(t){var e=t.sourceBuffer,n=t.readOffset,r=void 0===n?0:n,i=t.writeOffset,o=void 0===i?0:i,a=t.size,s=this.gl;return Object(m.a)(s),s.bindBuffer(36662,e.handle),s.bindBuffer(36663,this.handle),s.copyBufferSubData(36662,36663,r,o,a),s.bindBuffer(36662,null),s.bindBuffer(36663,null),this.debugData=null,this}},{key:"getData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.dstData,n=void 0===e?null:e,r=t.srcByteOffset,i=void 0===r?0:r,o=t.dstOffset,a=void 0===o?0:o,s=t.length,u=void 0===s?0:s;Object(m.a)(this.gl);var c,l,f=Object(y.c)(this.accessor.type||5126,{clamped:!1}),h=this._getAvailableElementCount(i),d=a;n?c=(l=n.length)-d:l=d+(c=Math.min(h,u||h));var p=Math.min(h,c);return u=u||p,Object(b.a)(u<=p),n=n||new f(l),this.gl.bindBuffer(36662,this.handle),this.gl.getBufferSubData(36662,i,n,a,u),this.gl.bindBuffer(36662,null),n}},{key:"bind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=void 0===e?this.target:e,r=t.index,i=void 0===r?this.accessor&&this.accessor.index:r,o=t.offset,a=void 0===o?0:o,s=t.size;return 35345===n||35982===n?void 0!==s?this.gl.bindBufferRange(n,i,this.handle,a,s):(Object(b.a)(0===a),this.gl.bindBufferBase(n,i,this.handle)):this.gl.bindBuffer(n,this.handle),this}},{key:"unbind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=void 0===e?this.target:e,r=t.index,i=void 0===r?this.accessor&&this.accessor.index:r,o=35345===n||35982===n;return o?this.gl.bindBufferBase(n,i,null):this.gl.bindBuffer(n,null),this}},{key:"getDebugData",value:function(){return this.debugData?{data:this.debugData,changed:!1}:(this.debugData=this.getData({length:Math.min(10,this.byteLength)}),{data:this.debugData,changed:!0})}},{key:"invalidateDebugData",value:function(){this.debugData=null}},{key:"_setData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.byteLength+e;Object(b.a)(ArrayBuffer.isView(t)),this._trackDeallocatedMemory();var r=this._getTarget();this.gl.bindBuffer(r,this.handle),this.gl.bufferData(r,n,this.usage),this.gl.bufferSubData(r,e,t),this.gl.bindBuffer(r,null),this.debugData=t.slice(0,10),this.bytesUsed=n,this._trackAllocatedMemory(n);var i=Object(y.b)(t);return Object(b.a)(i),this.setAccessor(new g.a(this.accessor,{type:i})),this}},{key:"_setByteLength",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.usage;Object(b.a)(t>=0),this._trackDeallocatedMemory();var n=t;0===t&&(n=new Float32Array(0));var r=this._getTarget();return this.gl.bindBuffer(r,this.handle),this.gl.bufferData(r,n,e),this.gl.bindBuffer(r,null),this.usage=e,this.debugData=null,this.bytesUsed=t,this._trackAllocatedMemory(t),this}},{key:"_getTarget",value:function(){return this.gl.webgl2?36663:this.target}},{key:"_getAvailableElementCount",value:function(t){var e=t/Object(y.c)(this.accessor.type||5126,{clamped:!1}).BYTES_PER_ELEMENT;return this.getElementCount()-e}},{key:"_inferType",value:function(t){this.accessor.type||this.setAccessor(new g.a(this.accessor,{type:Object(y.b)(t)}))}},{key:"_createHandle",value:function(){return this.gl.createBuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteBuffer(this.handle),this._trackDeallocatedMemory()}},{key:"_getParameter",value:function(t){this.gl.bindBuffer(this.target,this.handle);var e=this.gl.getBufferParameter(this.target,t);return this.gl.bindBuffer(this.target,null),e}},{key:"setByteLength",value:function(t){return m.k.deprecated("setByteLength","reallocate")(),this.reallocate(t)}},{key:"updateAccessor",value:function(t){return m.k.deprecated("updateAccessor(...)","setAccessor(new Accessor(buffer.accessor, ...)")(),this.accessor=new g.a(this.accessor,t),this}},{key:"type",get:function(){return m.k.deprecated("Buffer.type","Buffer.accessor.type")(),this.accessor.type}},{key:"bytes",get:function(){return m.k.deprecated("Buffer.bytes","Buffer.byteLength")(),this.byteLength}}]),n}(v.a)},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"f",(function(){return d}));var r=n(76),i=n(13);function o(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(t,e){var n=t%e;return n<0?e+n:n}function s(t){return[t[12],t[13],t[14]]}function u(t){var e={};return e.left=f(t[3]+t[0],t[7]+t[4],t[11]+t[8],t[15]+t[12]),e.right=f(t[3]-t[0],t[7]-t[4],t[11]-t[8],t[15]-t[12]),e.bottom=f(t[3]+t[1],t[7]+t[5],t[11]+t[9],t[15]+t[13]),e.top=f(t[3]-t[1],t[7]-t[5],t[11]-t[9],t[15]-t[13]),e.near=f(t[3]+t[2],t[7]+t[6],t[11]+t[10],t[15]+t[14]),e.far=f(t[3]-t[2],t[7]-t[6],t[11]-t[10],t[15]-t[14]),e}var c,l=new i.b;function f(t,e,n,r){l.set(t,e,n);var o=l.len();return{distance:r/o,normal:new i.b(-t/o,-e/o,-n/o)}}function h(t){return t-Math.fround(t)}function d(t,e){var n=e.size,i=void 0===n?1:n,o=e.startIndex,a=void 0===o?0:o,s=e.endIndex;Number.isFinite(s)||(s=t.length);var u=(s-a)/i;c=r.a.allocate(c,u,{type:Float32Array,size:2*i});for(var l=a,f=0;l<s;){for(var d=0;d<i;d++){var p=t[l++];c[f+d]=p,c[f+d+i]=h(p)}f+=2*i}return c.subarray(0,u*i*2)}},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"deck.gl: assertion failed.")}n.d(e,"a",(function(){return r}))},function(t,e){t.exports=function(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}},function(t,e,n){"use strict";n(1),n(2),n(18);var r={CLOCKWISE:1,COUNTER_CLOCKWISE:-1};function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o(t,n);return r!==e&&(s(t,n),!0)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Math.sign(a(t,e))}function a(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.start,r=void 0===n?0:n,i=e.end,o=void 0===i?t.length:i,a=e.size||2,s=0,u=r,c=o-a;u<o;u+=a)s+=(t[u]-t[c])*(t[u+1]+t[c+1]),c=u;return s/2}function s(t,e){for(var n=e.start,r=void 0===n?0:n,i=e.end,o=void 0===i?t.length:i,a=e.size,s=void 0===a?2:a,u=(o-r)/s,c=Math.floor(u/2),l=0;l<c;++l)for(var f=r+l*s,h=r+(u-1-l)*s,d=0;d<s;++d){var p=t[f+d];t[f+d]=t[h+d],t[h+d]=p}}function u(t,e,n,r){n=n||2;var i,o,a,s,u,h,d,p=e&&e.length,v=p?e[0]*n:t.length,m=c(t,0,v,n,!0,r&&r[0]),b=[];if(!m||m.next===m.prev)return b;if(p&&(m=function(t,e,n,r,i){var o,a,s,u,f,h=[];for(o=0,a=e.length;o<a;o++)s=e[o]*r,u=o<a-1?e[o+1]*r:t.length,(f=c(t,s,u,r,!1,i&&i[o+1]))===f.next&&(f.steiner=!0),h.push(_(f));for(h.sort(g),o=0;o<h.length;o++)y(h[o],n),n=l(n,n.next);return n}(t,e,m,n,r)),t.length>80*n){s=o=t[0],u=a=t[1];for(var w=n;w<v;w+=n)(h=t[w])<s&&(s=h),(d=t[w+1])<u&&(u=d),h>o&&(o=h),d>a&&(a=d);i=0!==(i=Math.max(o-s,a-u))?1/i:0}return f(m,b,n,s,u,i),b}function c(t,e,n,r,i,o){var s,u;if(void 0===o&&(o=a(t,{start:e,end:n,size:r})),i===o<0)for(s=e;s<n;s+=r)u=E(s,t[s],t[s+1],u);else for(s=n-r;s>=e;s-=r)u=E(s,t[s],t[s+1],u);return u&&P(u,u.next)&&(M(u),u=u.next),u}function l(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!P(r,r.next)&&0!==O(r.prev,r,r.next))r=r.next;else{if(M(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function f(t,e,n,r,i,o,a){if(t){!a&&o&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=b(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,c=1;do{for(i=t,t=null,u=null,r=0;i;){for(r++,a=i,o=0,n=0;n<c&&(o++,a=a.nextZ);n++);for(s=c;o>0||s>0&&a;)0!==o&&(0===s||!a||i.z<=a.z)?(e=i,i=i.nextZ,o--):(e=a,a=a.nextZ,s--),u?u.nextZ=e:t=e,e.prevZ=u,u=e;i=a}u.nextZ=null,c*=2}while(r>1)}(i)}(t,r,i,o);for(var s,u,c=t;t.prev!==t.next;)if(s=t.prev,u=t.next,o?d(t,r,i,o):h(t))e.push(s.i/n),e.push(t.i/n),e.push(u.i/n),M(t),t=u.next,c=u.next;else if((t=u)===c){a?1===a?f(t=p(l(t),e,n),e,n,r,i,o,2):2===a&&v(t,e,n,r,i,o):f(l(t),e,n,r,i,o,1);break}}}function h(t){var e=t.prev,n=t,r=t.next;if(O(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(w(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&O(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function d(t,e,n,r){var i=t.prev,o=t,a=t.next;if(O(i,o,a)>=0)return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,u=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,l=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,f=b(s,u,e,n,r),h=b(c,l,e,n,r),d=t.prevZ,p=t.nextZ;d&&d.z>=f&&p&&p.z<=h;){if(d!==t.prev&&d!==t.next&&w(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&O(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,p!==t.prev&&p!==t.next&&w(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&O(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;d&&d.z>=f;){if(d!==t.prev&&d!==t.next&&w(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&O(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;p&&p.z<=h;){if(p!==t.prev&&p!==t.next&&w(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&O(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function p(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!P(i,o)&&S(i,r,r.next,o)&&A(i,o)&&A(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),M(r),M(r.next),r=t=o),r=r.next}while(r!==t);return l(r)}function v(t,e,n,r,i,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&x(a,s)){var u=T(a,s);return a=l(a,a.next),u=l(u,u.next),f(a,e,n,r,i,o),void f(u,e,n,r,i,o)}s=s.next}a=a.next}while(a!==t)}function g(t,e){return t.x-e.x}function y(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===a)return n;var u,c=n,l=n.x,f=n.y,h=1/0;r=n;do{i>=r.x&&r.x>=l&&i!==r.x&&w(o<f?i:a,o,l,f,o<f?a:i,o,r.x,r.y)&&(u=Math.abs(o-r.y)/(i-r.x),A(r,t)&&(u<h||u===h&&(r.x>n.x||r.x===n.x&&m(n,r)))&&(n=r,h=u)),r=r.next}while(r!==c);return n}(t,e)){var n=T(e,t);l(e,e.next),l(n,n.next)}}function m(t,e){return O(t.prev,t,e.prev)<0&&O(e.next,t,t.next)<0}function b(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function _(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function w(t,e,n,r,i,o,a,s){return(i-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function x(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&S(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(A(t,e)&&A(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(O(t.prev,t,e.prev)||O(t,e.prev,e))||P(t,e)&&O(t.prev,t,t.next)>0&&O(e.prev,e,e.next)>0)}function O(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function P(t,e){return t.x===e.x&&t.y===e.y}function S(t,e,n,r){var i=j(O(t,e,n)),o=j(O(t,e,r)),a=j(O(n,r,t)),s=j(O(n,r,e));return i!==o&&a!==s||(!(0!==i||!k(t,n,e))||(!(0!==o||!k(t,r,e))||(!(0!==a||!k(n,t,r))||!(0!==s||!k(n,e,r)))))}function k(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function j(t){return t>0?1:t<0?-1:0}function A(t,e){return O(t.prev,t,t.next)<0?O(t,e,t.next)>=0&&O(t,t.prev,e)>=0:O(t,e,t.prev)<0||O(t,t.next,e)<0}function T(t,e){var n=new C(t.i,t.x,t.y),r=new C(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function E(t,e,n,r){var i=new C(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function M(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function C(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e){var n=e.length,r=t.length;if(r>0){for(var i=!0,o=0;o<n;o++)if(t[r-n+o]!==e[o]){i=!1;break}if(i)return!1}for(var a=0;a<n;a++)t[r+a]=e[a];return!0}function R(t,e){for(var n=e.length,r=0;r<n;r++)t[r]=e[r]}function L(t,e,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=r+e*n,a=0;a<n;a++)i[a]=t[o+a];return i}function D(t,e,n,r){var i,o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(8&n)i=(r[3]-t[1])/(e[1]-t[1]),o=3;else if(4&n)i=(r[1]-t[1])/(e[1]-t[1]),o=1;else if(2&n)i=(r[2]-t[0])/(e[0]-t[0]),o=2;else{if(!(1&n))return null;i=(r[0]-t[0])/(e[0]-t[0]),o=0}for(var s=0;s<t.length;s++)a[s]=(1&o)===s?r[o]:i*(e[s]-t[s])+t[s];return a}function F(t,e){var n=0;return t[0]<e[0]?n|=1:t[0]>e[2]&&(n|=2),t[1]<e[1]?n|=4:t[1]>e[3]&&(n|=8),n}function N(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.size,o=void 0===i?2:i,a=r.broken,s=void 0!==a&&a,u=r.gridResolution,c=void 0===u?10:u,l=r.gridOffset,f=void 0===l?[0,0]:l,h=r.startIndex,d=void 0===h?0:h,p=r.endIndex,v=void 0===p?t.length:p,g=(v-d)/o,y=[],m=[y],b=L(t,0,o,d),_=V(b,c,f,[]),w=[];I(y,b);for(var x=1;x<g;x++){for(n=F(e=L(t,x,o,d,e),_);n;){D(b,e,n,_,w);var O=F(w,_);O&&(D(b,w,O,_,w),n=O),I(y,w),R(b,w),G(_,c,n),s&&y.length>o&&(y=[],m.push(y),I(y,b)),n=F(e,_)}I(y,e),R(b,e)}return s?m:m[0]}function z(t,e){for(var n=0;n<e.length;n++)t.push(e[n]);return t}function B(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.length)return[];for(var r=n.size,i=void 0===r?2:r,o=n.gridResolution,a=void 0===o?10:o,s=n.gridOffset,u=void 0===s?[0,0]:s,c=n.edgeTypes,l=void 0!==c&&c,f=[],h=[{pos:t,types:l&&new Array(t.length/i).fill(1),holes:e||[]}],d=[[],[]],p=[];h.length;){var v=h.shift(),g=v.pos,y=v.types,m=v.holes;W(g,i,m[0]||g.length,d),p=V(d[0],a,u,p);var b=F(d[1],p);if(b){var _=U(g,y,i,0,m[0]||g.length,p,b),w={pos:_[0].pos,types:_[0].types,holes:[]},x={pos:_[1].pos,types:_[1].types,holes:[]};h.push(w,x);for(var O=0;O<m.length;O++)(_=U(g,y,i,m[O],m[O+1]||g.length,p,b))[0]&&(w.holes.push(w.pos.length),w.pos=z(w.pos,_[0].pos),l&&(w.types=z(w.types,_[0].types))),_[1]&&(x.holes.push(x.pos.length),x.pos=z(x.pos,_[1].pos),l&&(x.types=z(x.types,_[1].types)))}else{var P={positions:g};l&&(P.edgeTypes=y),m.length&&(P.holeIndices=m),f.push(P)}}return f}function U(t,e,n,r,i,o,a){for(var s,u,c,l=(i-r)/n,f=[],h=[],d=[],p=[],v=[],g=L(t,l-1,n,r),y=Math.sign(8&a?g[1]-o[3]:g[0]-o[2]),m=e&&e[l-1],b=0,_=0,w=0;w<l;w++)s=L(t,w,n,r,s),u=Math.sign(8&a?s[1]-o[3]:s[0]-o[2]),c=e&&e[r/n+w],u&&y&&y!==u&&(D(g,s,a,o,v),I(f,v)&&d.push(m),I(h,v)&&p.push(m)),u<=0?(I(f,s)&&d.push(c),b-=u):d.length&&(d[d.length-1]=0),u>=0?(I(h,s)&&p.push(c),_+=u):p.length&&(p[p.length-1]=0),R(g,s),y=u,m=c;return[b?{pos:f,types:e&&d}:null,_?{pos:h,types:e&&p}:null]}function V(t,e,n,r){var i=Math.floor((t[0]-n[0])/e)*e+n[0],o=Math.floor((t[1]-n[1])/e)*e+n[1];return r[0]=i,r[1]=o,r[2]=i+e,r[3]=o+e,r}function G(t,e,n){8&n?(t[1]+=e,t[3]+=e):4&n?(t[1]-=e,t[3]-=e):2&n?(t[0]+=e,t[2]+=e):1&n&&(t[0]-=e,t[2]-=e)}function W(t,e,n,r){for(var i=1/0,o=-1/0,a=1/0,s=-1/0,u=0;u<n;u+=e){var c=t[u],l=t[u+1];i=c<i?c:i,o=c>o?c:o,a=l<a?l:a,s=l>s?l:s}return r[0][0]=i,r[0][1]=a,r[1][0]=o,r[1][1]=s,r}function H(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return q(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function q(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.size,r=void 0===n?2:n,i=e.startIndex,o=void 0===i?0:i,a=e.endIndex,s=void 0===a?t.length:a,u=e.normalize,c=void 0===u||u,l=t.slice(o,s);$(l,r,0,s-o);var f=N(l,{size:r,broken:!0,gridResolution:360,gridOffset:[-180,-180]});if(c){var h,d=H(f);try{for(d.s();!(h=d.n()).done;){var p=h.value;J(p,r)}}catch(t){d.e(t)}finally{d.f()}}return f}function X(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.size,i=void 0===r?2:r,o=n.normalize,a=void 0===o||o,s=n.edgeTypes,u=void 0!==s&&s;e=e||[];for(var c=[],l=[],f=0,h=0,d=0;d<=e.length;d++){for(var p=e[d]||t.length,v=h,g=Y(t,i,f,p),y=g;y<p;y++)c[h++]=t[y];for(var m=f;m<g;m++)c[h++]=t[m];$(c,i,v,h),K(c,i,v,h,n.maxLatitude),f=p,l[d]=h}l.pop();var b=B(c,l,{size:i,gridResolution:360,gridOffset:[-180,-180],edgeTypes:u});if(a){var _,w=H(b);try{for(w.s();!(_=w.n()).done;){var x=_.value;J(x.positions,i)}}catch(t){w.e(t)}finally{w.f()}}return b}function Y(t,e,n,r){for(var i=-1,o=-1,a=n+1;a<r;a+=e){var s=Math.abs(t[a]);s>i&&(i=s,o=a-1)}return o}function K(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:85.051129,o=t[n],a=t[r-e];if(Math.abs(o-a)>180){var s=L(t,0,e,n);s[0]+=360*Math.round((a-o)/360),I(t,s),s[1]=Math.sign(s[1])*i,I(t,s),s[0]=o,I(t,s)}}function $(t,e,n,r){for(var i,o=t[0],a=n;a<r;a+=e){var s=(i=t[a])-o;(s>180||s<-180)&&(i-=360*Math.round(s/360)),t[a]=o=i}}function J(t,e){for(var n,r=t.length/e,i=0;i<r&&((n=t[i*e])+180)%360==0;i++);var o=360*-Math.round(n/360);if(0!==o)for(var a=0;a<r;a++)t[a*e]+=o}n.d(e,"g",(function(){return a})),n.d(e,"h",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"f",(function(){return u})),n.d(e,"b",(function(){return B})),n.d(e,"d",(function(){return N})),n.d(e,"e",(function(){return Z})),n.d(e,"c",(function(){return X}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(10),u=n(134),c=n(58),l=n(12),f=n(56),h=n(161);function d(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var v="Resource subclass must define virtual methods",g=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i()(this,t),Object(s.b)(e);var r=n.id,o=n.userData,a=void 0===o?{}:o;this.gl=e,this.gl2=e,this.id=r||Object(f.c)(this.constructor.name),this.userData=a,this._bound=!1,this._handle=n.handle,void 0===this._handle&&(this._handle=this._createHandle()),this.byteLength=0,this._addStats()}return a()(t,[{key:"toString",value:function(){return"".concat(this.constructor.name,"(").concat(this.id,")")}},{key:"delete",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.deleteChildren,n=void 0!==e&&e,r=this._handle&&this._deleteHandle(this._handle);return this._handle&&this._removeStats(),this._handle=null,r&&n&&r.filter(Boolean).forEach((function(t){return t.delete()})),this}},{key:"bind",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.handle;return"function"!=typeof e?(this._bindHandle(e),this):(this._bound?t=e():(this._bindHandle(this.handle),this._bound=!0,t=e(),this._bound=!1,this._bindHandle(null)),t)}},{key:"unbind",value:function(){this.bind(null)}},{key:"getParameter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(c.b)(this.gl,t),Object(l.a)(t);var n=this.constructor.PARAMETERS||{},r=n[t];if(r){var i=Object(s.j)(this.gl),o=(!("webgl2"in r)||i)&&(!("extension"in r)||this.gl.getExtension(r.extension));if(!o){var a=r.webgl1,u="webgl2"in r?r.webgl2:r.webgl1,f=i?u:a;return f}}return this._getParameter(t,e)}},{key:"getParameters",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.parameters,r=e.keys,i=this.constructor.PARAMETERS||{},o=Object(s.j)(this.gl),a={},u=n||Object.keys(i),l=d(u);try{for(l.s();!(t=l.n()).done;){var f=t.value,h=i[f],p=h&&(!("webgl2"in h)||o)&&(!("extension"in h)||this.gl.getExtension(h.extension));if(p){var v=r?Object(c.a)(this.gl,f):f;a[v]=this.getParameter(f,e),r&&"GLenum"===h.type&&(a[v]=Object(c.a)(this.gl,a[v]))}}}catch(t){l.e(t)}finally{l.f()}return a}},{key:"setParameter",value:function(t,e){t=Object(c.b)(this.gl,t),Object(l.a)(t);var n=(this.constructor.PARAMETERS||{})[t];if(n){var r=Object(s.j)(this.gl);if(!((!("webgl2"in n)||r)&&(!("extension"in n)||this.gl.getExtension(n.extension))))throw new Error("Parameter not available on this platform");"GLenum"===n.type&&(e=Object(c.b)(e))}return this._setParameter(t,e),this}},{key:"setParameters",value:function(t){for(var e in t)this.setParameter(e,t[e]);return this}},{key:"stubRemovedMethods",value:function(t,e,n){return Object(h.a)(this,t,e,n)}},{key:"initialize",value:function(t){}},{key:"_createHandle",value:function(){throw new Error(v)}},{key:"_deleteHandle",value:function(){throw new Error(v)}},{key:"_bindHandle",value:function(t){throw new Error(v)}},{key:"_getOptsFromHandle",value:function(){throw new Error(v)}},{key:"_getParameter",value:function(t,e){throw new Error(v)}},{key:"_setParameter",value:function(t,e){throw new Error(v)}},{key:"_context",value:function(){return this.gl.luma=this.gl.luma||{},this.gl.luma}},{key:"_addStats",value:function(){var t=this.constructor.name,e=u.a.get("Resource Counts");e.get("Resources Created").incrementCount(),e.get("".concat(t,"s Created")).incrementCount(),e.get("".concat(t,"s Active")).incrementCount()}},{key:"_removeStats",value:function(){var t=this.constructor.name;u.a.get("Resource Counts").get("".concat(t,"s Active")).decrementCount()}},{key:"_trackAllocatedMemory",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.name,n=u.a.get("Memory Usage");n.get("GPU Memory").addCount(t),n.get("".concat(e," Memory")).addCount(t),this.byteLength=t}},{key:"_trackDeallocatedMemory",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.constructor.name,e=u.a.get("Memory Usage");e.get("GPU Memory").subtractCount(this.byteLength),e.get("".concat(t," Memory")).subtractCount(this.byteLength),this.byteLength=0}},{key:"handle",get:function(){return this._handle}}]),t}()},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(11),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s),c=n(22),l=n(41),f=n(13),h=n(21),d=n(26),p=n(19),v=Math.PI/180,g=Object(l.a)(),y=[0,0,0],m={unitsPerMeter:[1,1,1],metersPerUnit:[1,1,1]},b=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,t);var n=e.id,r=void 0===n?null:n,i=e.x,o=void 0===i?0:i,s=e.y,u=void 0===s?0:s,c=e.width,l=void 0===c?1:c,f=e.height,h=void 0===f?1:f;this.id=r||this.constructor.displayName||"viewport",this.x=o,this.y=u,this.width=l||1,this.height=h||1,this._frustumPlanes={},this._initViewMatrix(e),this._initProjectionMatrix(e),this._initPixelMatrices(),this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return u()(t,[{key:"equals",value:function(e){return e instanceof t&&(this===e||e.width===this.width&&e.height===this.height&&e.scale===this.scale&&Object(f.e)(e.projectionMatrix,this.projectionMatrix)&&Object(f.e)(e.viewMatrix,this.viewMatrix))}},{key:"project",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.topLeft,r=void 0===n||n,o=this.projectPosition(t),a=Object(d.p)(o,this.pixelProjectionMatrix),s=i()(a,2),u=s[0],c=s[1],l=r?c:this.height-c;return 2===t.length?[u,l]:[u,l,a[2]]}},{key:"unproject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.topLeft,r=void 0===n||n,o=e.targetZ,a=i()(t,3),s=a[0],u=a[1],c=a[2],l=r?u:this.height-u,f=o&&o*this.distanceScales.unitsPerMeter[2],h=Object(d.n)([s,l,c],this.pixelUnprojectionMatrix,f),p=this.unprojectPosition(h),v=i()(p,3),g=v[0],y=v[1],m=v[2];return Number.isFinite(c)?[g,y,m]:Number.isFinite(o)?[g,y,o]:[g,y]}},{key:"projectPosition",value:function(t){var e=this.projectFlat(t),n=i()(e,2);return[n[0],n[1],(t[2]||0)*this.distanceScales.unitsPerMeter[2]]}},{key:"unprojectPosition",value:function(t){var e=this.unprojectFlat(t),n=i()(e,2);return[n[0],n[1],(t[2]||0)*this.distanceScales.metersPerUnit[2]]}},{key:"projectFlat",value:function(t){return this.isGeospatial?Object(d.l)(t):t}},{key:"unprojectFlat",value:function(t){return this.isGeospatial?Object(d.o)(t):t}},{key:"getBounds",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={targetZ:t.z||0},n=this.unproject([0,0],e),r=this.unproject([this.width,0],e),i=this.unproject([0,this.height],e),o=this.unproject([this.width,this.height],e);return[Math.min(n[0],r[0],i[0],o[0]),Math.min(n[1],r[1],i[1],o[1]),Math.max(n[0],r[0],i[0],o[0]),Math.max(n[1],r[1],i[1],o[1])]}},{key:"getDistanceScales",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?Object(d.g)({longitude:t[0],latitude:t[1],highPrecision:!0}):this.distanceScales}},{key:"containsPixel",value:function(t){var e=t.x,n=t.y,r=t.width,i=void 0===r?1:r,o=t.height,a=void 0===o?1:o;return e<this.x+this.width&&this.x<e+i&&n<this.y+this.height&&this.y<n+a}},{key:"getFrustumPlanes",value:function(){return this._frustumPlanes.near?this._frustumPlanes:(Object.assign(this._frustumPlanes,Object(l.d)(this.viewProjectionMatrix)),this._frustumPlanes)}},{key:"panByPosition",value:function(t,e){return null}},{key:"getCameraPosition",value:function(){return this.cameraPosition}},{key:"getCameraDirection",value:function(){return this.cameraDirection}},{key:"getCameraUp",value:function(){return this.cameraUp}},{key:"_createProjectionMatrix",value:function(t){var e=t.orthographic,n=t.fovyRadians,r=t.aspect,i=t.focalDistance,o=t.near,a=t.far;return e?(new f.a).orthographic({fovy:n,aspect:r,focalDistance:i,near:o,far:a}):(new f.a).perspective({fovy:n,aspect:r,near:o,far:a})}},{key:"_initViewMatrix",value:function(t){var e=t.viewMatrix,n=void 0===e?g:e,r=t.longitude,i=void 0===r?null:r,o=t.latitude,a=void 0===o?null:o,s=t.zoom,u=void 0===s?null:s,c=t.position,l=void 0===c?null:c,h=t.modelMatrix,p=void 0===h?null:h,v=t.focalDistance,b=void 0===v?1:v,_=t.distanceScales,w=void 0===_?null:_;this.isGeospatial=Number.isFinite(a)&&Number.isFinite(i),this.zoom=u,Number.isFinite(this.zoom)||(this.zoom=this.isGeospatial?Object(d.i)({latitude:a})+Math.log2(b):0);var x=Math.pow(2,this.zoom);this.scale=x,this.distanceScales=this.isGeospatial?Object(d.g)({latitude:a,longitude:i}):w||m,this.focalDistance=b,this.distanceScales.metersPerUnit=new f.b(this.distanceScales.metersPerUnit),this.distanceScales.unitsPerMeter=new f.b(this.distanceScales.unitsPerMeter),this.position=y,this.meterOffset=y,l&&(this.position=l,this.modelMatrix=p,this.meterOffset=p?p.transformVector(l):l),this.isGeospatial?(this.longitude=i,this.latitude=a,this.center=this._getCenterInWorld({longitude:i,latitude:a})):this.center=l?this.projectPosition(l):[0,0,0],this.viewMatrixUncentered=n,this.viewMatrix=(new f.a).multiplyRight(this.viewMatrixUncentered).translate(new f.b(this.center||y).negate())}},{key:"_getCenterInWorld",value:function(t){var e=t.longitude,n=t.latitude,r=this.meterOffset,i=this.distanceScales,o=new f.b(this.projectPosition([e,n,0]));if(r){var a=new f.b(r).scale(i.unitsPerMeter);o.add(a)}return o}},{key:"_initProjectionMatrix",value:function(t){var e=t.projectionMatrix,n=void 0===e?null:e,r=t.orthographic,i=void 0!==r&&r,o=t.fovyRadians,a=t.fovy,s=void 0===a?75:a,u=t.near,c=void 0===u?.1:u,l=t.far,f=void 0===l?1e3:l,h=t.focalDistance,d=void 0===h?1:h;this.projectionMatrix=n||this._createProjectionMatrix({orthographic:i,fovyRadians:o||s*v,aspect:this.width/this.height,focalDistance:d,near:c,far:f})}},{key:"_initPixelMatrices",value:function(){var t=Object(l.a)();h.h(t,t,this.projectionMatrix),h.h(t,t,this.viewMatrix),this.viewProjectionMatrix=t,this.viewMatrixInverse=h.f([],this.viewMatrix)||this.viewMatrix,this.cameraPosition=Object(l.c)(this.viewMatrixInverse);var e=Object(l.a)(),n=Object(l.a)();h.o(e,e,[this.width/2,-this.height/2,1]),h.p(e,e,[1,-1,0]),h.h(n,e,this.viewProjectionMatrix),this.pixelProjectionMatrix=n,this.viewportMatrix=e,this.pixelUnprojectionMatrix=h.f(Object(l.a)(),this.pixelProjectionMatrix),this.pixelUnprojectionMatrix||c.a.warn("Pixel project matrix not invertible")()}},{key:"metersPerPixel",get:function(){return this.distanceScales.metersPerUnit[2]/this.scale}},{key:"projectionMode",get:function(){return this.isGeospatial?this.zoom<12?p.c.WEB_MERCATOR:p.c.WEB_MERCATOR_AUTO_OFFSET:p.c.IDENTITY}}]),t}();b.displayName="Viewport"},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(89),a=n(23),s=n(98),u=n(1),c=n.n(u),l=n(2),f=n.n(l),h=n(7),d=new(n(302).a)({id:"loaders.gl"}),p=function(){function t(){c()(this,t)}return f()(t,[{key:"log",value:function(){return function(){}}},{key:"info",value:function(){return function(){}}},{key:"warn",value:function(){return function(){}}},{key:"error",value:function(){return function(){}}}]),t}(),v={fetch:null,mimeType:void 0,nothrow:!1,log:new(function(){function t(){c()(this,t),Object(h.a)(this,"console",void 0),this.console=console}return f()(t,[{key:"log",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=this.console.log).bind.apply(t,[this.console].concat(n))}},{key:"info",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=this.console.info).bind.apply(t,[this.console].concat(n))}},{key:"warn",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=this.console.warn).bind.apply(t,[this.console].concat(n))}},{key:"error",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=this.console.error).bind.apply(t,[this.console].concat(n))}}]),t}()),CDN:"https://unpkg.com/@loaders.gl",worker:!0,maxConcurrency:3,maxMobileConcurrency:1,reuseWorkers:!0,_workerType:"",limit:0,_limitMB:0,batchSize:"auto",batchDebounceMs:0,metadata:!1,transforms:[]},g={throws:"nothrow",dataType:"(no longer used)",uri:"baseUri",method:"fetch.method",headers:"fetch.headers",body:"fetch.body",mode:"fetch.mode",credentials:"fetch.credentials",cache:"fetch.cache",redirect:"fetch.redirect",referrer:"fetch.referrer",referrerPolicy:"fetch.referrerPolicy",integrity:"fetch.integrity",keepalive:"fetch.keepalive",signal:"fetch.signal"};function y(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(){o.b.loaders=o.b.loaders||{};var t=o.b.loaders;return t._state=t._state||{},t._state}n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return O})),n.d(e,"c",(function(){return P})),n.d(e,"a",(function(){return S}));var x=function(){var t=w();return t.globalOptions=t.globalOptions||_({},v),t.globalOptions};function O(t){var e=w(),n=x();e.globalOptions=A(n,t)}function P(t,e,n,r){return n=n||[],function(t,e){k(t,null,v,g,e);var n,r=y(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=t&&t[i.id]||{},a=i.options&&i.options[i.id]||{},s=i.deprecatedOptions&&i.deprecatedOptions[i.id]||{};k(o,i.id,a,s,e)}}catch(t){r.e(t)}finally{r.f()}}(t,n=Array.isArray(n)?n:[n]),A(e,t,r)}function S(t,e){var n=x(),r=t||n;return"function"==typeof r.fetch?r.fetch:Object(a.f)(r.fetch)?function(t){return Object(s.a)(t,r)}:null!=e&&e.fetch?null==e?void 0:e.fetch:s.a}function k(t,e,n,r,i){var o=e||"Top level",s=e?"".concat(e,"."):"";for(var u in t){var c=!e&&Object(a.f)(t[u]);if(!(u in n||"baseUri"===u&&!e||"workerUrl"===u&&e))if(u in r)d.warn("".concat(o," loader option '").concat(s).concat(u,"' no longer supported, use '").concat(r[u],"'"))();else if(!c){var l=j(u,i);d.warn("".concat(o," loader option '").concat(s).concat(u,"' not recognized. ").concat(l))()}}}function j(t,e){var n,r=t.toLowerCase(),i="",o=y(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;for(var s in a.options){if(t===s)return"Did you mean '".concat(a.id,".").concat(s,"'?");var u=s.toLowerCase();(r.startsWith(u)||u.startsWith(r))&&(i=i||"Did you mean '".concat(a.id,".").concat(s,"'?"))}}}catch(t){o.e(t)}finally{o.f()}return i}function A(t,e,n){var r=_({},t.options||{});return function(t,e){!e||"baseUri"in t||(t.baseUri=e)}(r,n),null===r.log&&(r.log=new p),T(r,x()),T(r,e),r}function T(t,e){for(var n in e)if(n in e){var r=e[n];Object(a.h)(r)&&Object(a.h)(t[n])?t[n]=_(_({},t[n]),e[n]):t[n]=e[n]}}},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error("math.gl assertion ".concat(e))}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(278),i=n(279),o=n(202),a=n(280);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(197);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(162).default,i=n(267);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";var r=n(0),i=n.n(r);function o(t){var e=t.source,n=t.target,r=t.start,i=void 0===r?0:r,o=t.end,a=t.size,s=t.getData;o=o||n.length;var u=e.length,c=o-i;if(u>c)n.set(e.subarray(0,c),i);else if(n.set(e,i),s)for(var l=u;l<c;)for(var f=s(l,e),h=0;h<a;h++)n[i+l]=f[h]||0,l++}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"f",(function(){return p}));var u={interpolation:{duration:0,easing:function(t){return t}},spring:{stiffness:.05,damping:.5}};function c(t,e){return t?(Number.isFinite(t)&&(t={duration:t}),t.type=t.type||"interpolation",s(s(s({},u[t.type]),e),t)):null}function l(t,e){return e.getBuffer()?[e.getBuffer(),{divisor:0,size:e.size,normalized:e.settings.normalized}]:e.value}function f(t){switch(t){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error('No defined attribute type for size "'.concat(t,'"'))}}function h(t){t.push(t.shift())}function d(t,e){var n=t.doublePrecision,r=t.settings,i=t.value,o=t.size,a=n&&i instanceof Float64Array?2:1;return(r.noAlloc?i.length:e*o)*a}function p(t){var e=t.buffer,n=t.numInstances,r=t.attribute,i=t.fromLength,a=t.fromStartIndices,s=t.getData,u=void 0===s?function(t){return t}:s,c=r.doublePrecision&&r.value instanceof Float64Array?2:1,l=r.size*c,f=r.byteOffset,h=r.startIndices,p=a&&h,v=d(r,n),g=r.state.constant;if(p||!(i>=v)){var y=g?r.value:r.getBuffer().getData({srcByteOffset:f});if(r.settings.normalized&&!g){var m=u;u=function(t,e){return r._normalizeConstant(m(t,e))}}var b=g?function(t,e){return u(y,e)}:function(t,e){return u(y.subarray(t,t+l),e)},_=e.getData({length:i}),w=new Float32Array(v);!function(t){var e=t.source,n=t.target,r=t.size,i=t.getData,a=t.sourceStartIndices,s=t.targetStartIndices;if(!Array.isArray(s))return o({source:e,target:n,size:r,getData:i}),n;for(var u=0,c=0,l=i&&function(t,e){return i(t+c,e)},f=Math.min(a.length,s.length),h=1;h<f;h++){var d=a[h]*r,p=s[h]*r;o({source:e.subarray(u,d),target:n,start:c,end:p,size:r,getData:l}),u=d,c=p}c<n.length&&o({source:[],target:n,start:c,size:r,getData:l})}({source:_,target:w,sourceStartIndices:a,targetStartIndices:h,size:l,getData:b}),e.byteLength<w.byteLength+f&&e.reallocate(w.byteLength+f),e.subData({data:w,offset:f})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c}));var r=n(0),i=n.n(r),o=n(101);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t){var e;return!!t&&(Array.isArray(t)&&(t=t[0]),Array.isArray(null===(e=t)||void 0===e?void 0:e.extensions))}function c(t){var e,n,r;return Object(o.a)(t,"null loader"),Object(o.a)(u(t),"invalid loader"),Array.isArray(t)&&(r=t[1],t=s(s({},t=t[0]),{},{options:s(s({},t.options),r)})),(null!==(e=t)&&void 0!==e&&e.parseTextSync||null!==(n=t)&&void 0!==n&&n.parseText)&&(t.text=!0),t.text||(t.binary=!0),t}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(12),i={};function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";i[t]=i[t]||1;var e=i[t]++;return"".concat(t,"-").concat(e)}function a(t){return Object(r.a)("number"==typeof t,"Input must be a number"),t&&0==(t&t-1)}function s(t){var e=!0;for(var n in t){e=!1;break}return e}},function(t,e,n){var r=n(282);t.exports=function(t){return function(){return new r(t.apply(this,arguments))}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(12);function i(t,e){if("string"!=typeof e)return e;var n=Number(e);if(!isNaN(n))return n;var i=t[e=e.replace(/^.*\./,"")];return Object(r.a)(void 0!==i,"Accessing undefined constant GL.".concat(e)),i}function o(t,e){for(var n in e=Number(e),t)if(t[n]===e)return"GL.".concat(n);return String(e)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"loaders.gl assertion failed.")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return s}));var r=[],i=[];function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,o=r,a={index:-1,data:t,target:[]};return t?"function"==typeof t[Symbol.iterator]?o=t:t.length>0&&(i.length=t.length,o=i):o=r,(e>0||Number.isFinite(n))&&(o=(Array.isArray(o)?o:Array.from(o)).slice(e,n),a.index=e-1),{iterable:o,objectInfo:a}}function a(t){return t&&t[Symbol.asyncIterator]}function s(t,e){var n=e.size,r=e.stride,i=e.offset,o=e.startIndices,a=e.nested,s=t.BYTES_PER_ELEMENT,u=r?r/s:n,c=i?i/s:0,l=Math.floor((t.length-c)/u);return function(e,r){var i=r.index,s=r.target;if(!o){for(var f=i*u+c,h=0;h<n;h++)s[h]=t[f+h];return s}var d,p=o[i],v=o[i+1]||l;if(a){d=new Array(v-p);for(var g=p;g<v;g++){var y=g*u+c;s=new Array(n);for(var m=0;m<n;m++)s[m]=t[y+m];d[g-p]=s}}else if(u===n)d=t.subarray(p*n+c,v*n+c);else{d=new t.constructor((v-p)*n);for(var b=0,_=p;_<v;_++)for(var w=_*u+c,x=0;x<n;x++)d[b++]=t[w+x]}return d}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return a}));function r(t){switch(ArrayBuffer.isView(t)?t.constructor:t){case Float32Array:return 5126;case Uint16Array:return 5123;case Uint32Array:return 5125;case Uint8Array:case Uint8ClampedArray:return 5121;case Int8Array:return 5120;case Int16Array:return 5122;case Int32Array:return 5124;default:throw new Error("Failed to deduce GL constant from typed array")}}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.clamped,r=void 0===n||n;switch(t){case 5126:return Float32Array;case 5123:case 33635:case 32819:case 32820:return Uint16Array;case 5125:return Uint32Array;case 5121:return r?Uint8ClampedArray:Uint8Array;case 5120:return Int8Array;case 5122:return Int16Array;case 5124:return Int32Array;default:throw new Error("Failed to deduce typed array type from GL constant")}}function o(t){var e=t.data,n=t.width,r=t.height,i=t.bytesPerPixel,o=void 0===i?4:i,a=t.temp,s=n*o;a=a||new Uint8Array(s);for(var u=0;u<r/2;++u){var c=u*s,l=(r-u-1)*s;a.set(e.subarray(c,c+s)),e.copyWithin(c,l,l+s),e.set(a,l)}}function a(t){for(var e=t.data,n=t.width,r=t.height,i=Math.round(n/2),o=Math.round(r/2),a=new Uint8Array(i*o*4),s=0;s<o;s++)for(var u=0;u<i;u++)for(var c=0;c<4;c++)a[4*(s*i+u)+c]=e[4*(2*s*n+2*u)+c];return{data:a,width:i,height:o}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return j}));var r=n(11),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s),c=n(5),l=n.n(c),f=n(6),h=n.n(f),d=n(3),p=n.n(d),v=n(10),g=n(30),y=n(45),m=n(39),b=n(87),_=n(12),w=n(56);function x(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}var S=[9729,9728],k=g.global.WebGLBuffer||function(){},j=function(t){l()(n,t);var e=P(n);function n(t,r){var i;a()(this,n);var o=r.id,s=void 0===o?Object(w.c)("texture"):o,u=r.handle,c=r.target;return(i=e.call(this,t,{id:s,handle:u})).target=c,i.textureUnit=void 0,i.loaded=!1,i.width=void 0,i.height=void 0,i.depth=void 0,i.format=void 0,i.type=void 0,i.dataFormat=void 0,i.border=void 0,i.textureUnit=void 0,i.mipmaps=void 0,i}return u()(n,null,[{key:"isSupported",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.format,r=e.linearFiltering,i=!0;return n&&(i=(i=i&&Object(b.d)(t,n))&&(!r||Object(b.e)(t,n))),i}}]),u()(n,[{key:"toString",value:function(){return"Texture(".concat(this.id,",").concat(this.width,"x").concat(this.height,")")}},{key:"initialize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.data;if(n instanceof Promise)return n.then((function(n){return t.initialize(Object.assign({},e,{pixels:n,data:n}))})),this;var r="undefined"!=typeof HTMLVideoElement&&n instanceof HTMLVideoElement;if(r&&n.readyState<HTMLVideoElement.HAVE_METADATA)return this._video=null,n.addEventListener("loadeddata",(function(){return t.initialize(e)})),this;var i=e.pixels,o=void 0===i?null:i,a=e.format,s=void 0===a?6408:a,u=e.border,c=void 0===u?0:u,l=e.recreate,f=void 0!==l&&l,h=e.parameters,d=void 0===h?{}:h,p=e.pixelStore,g=void 0===p?{}:p,y=e.textureUnit,m=void 0===y?void 0:y;n||(n=o);var b=e.width,_=e.height,w=e.dataFormat,x=e.type,O=e.compressed,P=void 0!==O&&O,S=e.mipmaps,k=void 0===S||S,j=e.depth,A=void 0===j?0:j,T=this._deduceParameters({format:s,type:x,dataFormat:w,compressed:P,data:n,width:b,height:_});return b=T.width,_=T.height,P=T.compressed,w=T.dataFormat,x=T.type,this.width=b,this.height=_,this.depth=A,this.format=s,this.type=x,this.dataFormat=w,this.border=c,this.textureUnit=m,Number.isFinite(this.textureUnit)&&(this.gl.activeTexture(33984+this.textureUnit),this.gl.bindTexture(this.target,this.handle)),k&&this._isNPOT()&&(v.k.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),k=!1,this._updateForNPOT(d)),this.mipmaps=k,this.setImageData({data:n,width:b,height:_,depth:A,format:s,type:x,dataFormat:w,border:c,mipmaps:k,parameters:g,compressed:P}),k&&this.generateMipmap(),this.setParameters(d),f&&(this.data=n),r&&(this._video={video:n,parameters:d,lastTime:n.readyState>=HTMLVideoElement.HAVE_CURRENT_DATA?n.currentTime:-1}),this}},{key:"update",value:function(){if(this._video){var t=this._video,e=t.video,n=t.parameters;if(t.lastTime===e.currentTime||e.readyState<HTMLVideoElement.HAVE_CURRENT_DATA)return;this.setSubImageData({data:e,parameters:n}),this.mipmaps&&this.generateMipmap(),this._video.lastTime=e.currentTime}}},{key:"resize",value:function(t){var e=t.height,n=t.width,r=t.mipmaps,i=void 0!==r&&r;return n!==this.width||e!==this.height?this.initialize({width:n,height:e,format:this.format,type:this.type,dataFormat:this.dataFormat,border:this.border,mipmaps:i}):this}},{key:"generateMipmap",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._isNPOT()?(v.k.warn("texture: ".concat(this," is Non-Power-Of-Two, disabling mipmaping"))(),this):(this.mipmaps=!0,this.gl.bindTexture(this.target,this.handle),Object(v.o)(this.gl,e,(function(){t.gl.generateMipmap(t.target)})),this.gl.bindTexture(this.target,null),this)}},{key:"setImageData",value:function(t){this._trackDeallocatedMemory("Texture");var e=t.target,n=void 0===e?this.target:e,r=t.pixels,o=void 0===r?null:r,a=t.level,s=void 0===a?0:a,u=t.format,c=void 0===u?this.format:u,l=t.border,f=void 0===l?this.border:l,h=t.offset,d=void 0===h?0:h,p=t.parameters,g=void 0===p?{}:p,y=t.data,m=void 0===y?null:y,w=t.type,O=void 0===w?this.type:w,P=t.width,S=void 0===P?this.width:P,k=t.height,j=void 0===k?this.height:k,A=t.dataFormat,T=void 0===A?this.dataFormat:A,E=t.compressed,M=void 0!==E&&E;m||(m=o);var C=this._deduceParameters({format:c,type:O,dataFormat:T,compressed:M,data:m,width:S,height:j});O=C.type,T=C.dataFormat,M=C.compressed,S=C.width,j=C.height;var I=this.gl;I.bindTexture(this.target,this.handle);var R,L,D=this._getDataType({data:m,compressed:M});if(m=D.data,R=D.dataType,Object(v.o)(this.gl,g,(function(){switch(R){case"null":I.texImage2D(n,s,c,S,j,f,T,O,m);break;case"typed-array":I.texImage2D(n,s,c,S,j,f,T,O,m,d);break;case"buffer":(L=Object(v.a)(I)).bindBuffer(35052,m.handle||m),L.texImage2D(n,s,c,S,j,f,T,O,d),L.bindBuffer(35052,null);break;case"browser-object":Object(v.j)(I)?I.texImage2D(n,s,c,S,j,f,T,O,m):I.texImage2D(n,s,c,T,O,m);break;case"compressed":var t,e=x(m.entries());try{for(e.s();!(t=e.n()).done;){var r=i()(t.value,2),o=r[0],a=r[1];I.compressedTexImage2D(n,o,a.format,a.width,a.height,f,a.data)}}catch(t){e.e(t)}finally{e.f()}break;default:Object(_.a)(!1,"Unknown image data type")}})),m&&m.byteLength)this._trackAllocatedMemory(m.byteLength,"Texture");else{var F=b.a[this.dataFormat]||4,N=b.c[this.type]||1;this._trackAllocatedMemory(this.width*this.height*F*N,"Texture")}return this.loaded=!0,this}},{key:"setSubImageData",value:function(t){var e=this,n=t.target,r=void 0===n?this.target:n,i=t.pixels,o=void 0===i?null:i,a=t.data,s=void 0===a?null:a,u=t.x,c=void 0===u?0:u,l=t.y,f=void 0===l?0:l,h=t.width,d=void 0===h?this.width:h,p=t.height,g=void 0===p?this.height:p,y=t.level,b=void 0===y?0:y,w=t.format,x=void 0===w?this.format:w,O=t.type,P=void 0===O?this.type:O,S=t.dataFormat,j=void 0===S?this.dataFormat:S,A=t.compressed,T=void 0!==A&&A,E=t.offset,M=void 0===E?0:E,C=t.border,I=(void 0===C&&this.border,t.parameters),R=void 0===I?{}:I,L=this._deduceParameters({format:x,type:P,dataFormat:j,compressed:T,data:s,width:d,height:g});if(P=L.type,j=L.dataFormat,T=L.compressed,d=L.width,g=L.height,Object(_.a)(0===this.depth,"texSubImage not supported for 3D textures"),s||(s=o),s&&s.data){var D=s;s=D.data,d=D.shape[0],g=D.shape[1]}s instanceof m.a&&(s=s.handle),this.gl.bindTexture(this.target,this.handle),Object(v.o)(this.gl,R,(function(){if(T)e.gl.compressedTexSubImage2D(r,b,c,f,d,g,x,s);else if(null===s)e.gl.texSubImage2D(r,b,c,f,d,g,j,P,null);else if(ArrayBuffer.isView(s))e.gl.texSubImage2D(r,b,c,f,d,g,j,P,s,M);else if(s instanceof k){var t=Object(v.a)(e.gl);t.bindBuffer(35052,s),t.texSubImage2D(r,b,c,f,d,g,j,P,M),t.bindBuffer(35052,null)}else if(Object(v.j)(e.gl)){Object(v.a)(e.gl).texSubImage2D(r,b,c,f,d,g,j,P,s)}else e.gl.texSubImage2D(r,b,c,f,j,P,s)})),this.gl.bindTexture(this.target,null)}},{key:"copyFramebuffer",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v.k.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}},{key:"getActiveUnit",value:function(){return this.gl.getParameter(34016)-33984}},{key:"bind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit,e=this.gl;return void 0!==t&&(this.textureUnit=t,e.activeTexture(33984+t)),e.bindTexture(this.target,this.handle),t}},{key:"unbind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.textureUnit,e=this.gl;return void 0!==t&&(this.textureUnit=t,e.activeTexture(33984+t)),e.bindTexture(this.target,null),t}},{key:"_getDataType",value:function(t){var e=t.data,n=t.compressed;return void 0!==n&&n?{data:e,dataType:"compressed"}:null===e?{data:e,dataType:"null"}:ArrayBuffer.isView(e)?{data:e,dataType:"typed-array"}:e instanceof m.a?{data:e.handle,dataType:"buffer"}:e instanceof k?{data:e,dataType:"buffer"}:{data:e,dataType:"browser-object"}}},{key:"_deduceParameters",value:function(t){var e=t.format,n=t.data,r=t.width,i=t.height,o=t.dataFormat,a=t.type,s=t.compressed,u=b.b[e];o=o||u&&u.dataFormat,a=a||u&&u.types[0],s=s||u&&u.compressed;var c=this._deduceImageSize(n,r,i);return{dataFormat:o,type:a,compressed:s,width:r=c.width,height:i=c.height,format:e,data:n}}},{key:"_deduceImageSize",value:function(t,e,n){var r;return r="undefined"!=typeof ImageData&&t instanceof ImageData?{width:t.width,height:t.height}:"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement?{width:t.naturalWidth,height:t.naturalHeight}:"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement?{width:t.width,height:t.height}:"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap?{width:t.width,height:t.height}:"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement?{width:t.videoWidth,height:t.videoHeight}:t?{width:e,height:n}:{width:e>=0?e:1,height:n>=0?n:1},Object(_.a)(r,"Could not deduced texture size"),Object(_.a)(void 0===e||r.width===e,"Deduced texture width does not match supplied width"),Object(_.a)(void 0===n||r.height===n,"Deduced texture height does not match supplied height"),r}},{key:"_createHandle",value:function(){return this.gl.createTexture()}},{key:"_deleteHandle",value:function(){this.gl.deleteTexture(this.handle),this._trackDeallocatedMemory("Texture")}},{key:"_getParameter",value:function(t){switch(t){case 4096:return this.width;case 4097:return this.height;default:this.gl.bindTexture(this.target,this.handle);var e=this.gl.getTexParameter(this.target,t);return this.gl.bindTexture(this.target,null),e}}},{key:"_setParameter",value:function(t,e){switch(this.gl.bindTexture(this.target,this.handle),e=this._getNPOTParam(t,e),t){case 33082:case 33083:this.gl.texParameterf(this.handle,t,e);break;case 4096:case 4097:Object(_.a)(!1);break;default:this.gl.texParameteri(this.target,t,e)}return this.gl.bindTexture(this.target,null),this}},{key:"_isNPOT",value:function(){return!Object(v.j)(this.gl)&&(!(!this.width||!this.height)&&(!Object(w.b)(this.width)||!Object(w.b)(this.height)))}},{key:"_updateForNPOT",value:function(t){void 0===t[this.gl.TEXTURE_MIN_FILTER]&&(t[this.gl.TEXTURE_MIN_FILTER]=this.gl.LINEAR),void 0===t[this.gl.TEXTURE_WRAP_S]&&(t[this.gl.TEXTURE_WRAP_S]=this.gl.CLAMP_TO_EDGE),void 0===t[this.gl.TEXTURE_WRAP_T]&&(t[this.gl.TEXTURE_WRAP_T]=this.gl.CLAMP_TO_EDGE)}},{key:"_getNPOTParam",value:function(t,e){if(this._isNPOT())switch(t){case 10241:-1===S.indexOf(e)&&(e=9729);break;case 10242:case 10243:33071!==e&&(e=33071)}return e}}]),n}(y.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"i",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"e",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return f})),n.d(e,"c",(function(){return h}));var r=n(14);function i(){var t=new r.a(9);return r.a!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function o(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=l*a-s*c,h=-l*o+s*u,d=c*o-a*u,p=n*f+r*h+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-l*r+i*c)*p,t[2]=(s*r-i*a)*p,t[3]=h*p,t[4]=(l*n-i*u)*p,t[5]=(-s*n+i*o)*p,t[6]=d*p,t[7]=(-c*n+r*u)*p,t[8]=(a*n-r*o)*p,t):null}function s(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8];return e*(c*o-a*u)+n*(-c*i+a*s)+r*(u*i-o*s)}function u(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=n[0],d=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],_=n[8];return t[0]=h*r+d*a+p*c,t[1]=h*i+d*s+p*l,t[2]=h*o+d*u+p*f,t[3]=v*r+g*a+y*c,t[4]=v*i+g*s+y*l,t[5]=v*o+g*u+y*f,t[6]=m*r+b*a+_*c,t[7]=m*i+b*s+_*l,t[8]=m*o+b*u+_*f,t}function c(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=h*r+d*a+c,t[7]=h*i+d*s+l,t[8]=h*o+d*u+f,t}function l(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],h=Math.sin(n),d=Math.cos(n);return t[0]=d*r+h*a,t[1]=d*i+h*s,t[2]=d*o+h*u,t[3]=d*a-h*r,t[4]=d*s-h*i,t[5]=d*u-h*o,t[6]=c,t[7]=l,t[8]=f,t}function f(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,l=r*a,f=r*s,h=i*a,d=i*s,p=i*u,v=o*a,g=o*s,y=o*u;return t[0]=1-f-p,t[3]=l-y,t[6]=h+g,t[1]=l+y,t[4]=1-c-p,t[7]=d-v,t[2]=h-g,t[5]=d+v,t[8]=1-c-f,t}},function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e);var r=n(223),i=n(11),o=n.n(i),a=n(0),s=n.n(a),u=n(1),c=n.n(u),l=n(2),f=n.n(l),h=n(9),d=n.n(h),p=n(5),v=n.n(p),g=n(6),y=n.n(g),m=n(3),b=n.n(m),_=n(19),w=n(205),x=n(227),O=n(150),P=n(172),S=n(72),k=n(26),j=n(13),A=new Uint16Array([0,2,1,0,3,2]),T=new Float32Array([0,1,0,0,1,0,1,1]);function E(t,e){if(!e)return function(t){for(var e=new Float64Array(12),n=0;n<t.length;n++)e[3*n+0]=t[n][0],e[3*n+1]=t[n][1],e[3*n+2]=t[n][2]||0;return{vertexCount:6,positions:e,indices:A,texCoords:T}}(t);for(var n=Math.max(Math.abs(t[0][0]-t[3][0]),Math.abs(t[1][0]-t[2][0])),r=Math.max(Math.abs(t[1][1]-t[0][1]),Math.abs(t[2][1]-t[3][1])),i=Math.ceil(n/e)+1,o=Math.ceil(r/e)+1,a=(i-1)*(o-1)*6,s=new Uint32Array(a),u=new Float32Array(i*o*2),c=new Float64Array(i*o*3),l=0,f=0,h=0;h<i;h++)for(var d=h/(i-1),p=0;p<o;p++){var v=p/(o-1),g=M(t,d,v);c[3*l+0]=g[0],c[3*l+1]=g[1],c[3*l+2]=g[2]||0,u[2*l+0]=d,u[2*l+1]=1-v,h>0&&p>0&&(s[f++]=l-o,s[f++]=l-o-1,s[f++]=l-1,s[f++]=l-o,s[f++]=l-1,s[f++]=l),l++}return{vertexCount:a,positions:c,indices:s,texCoords:u}}function M(t,e,n){return Object(j.f)(Object(j.f)(t[0],t[1],n),Object(j.f)(t[3],t[2],n),e)}var C="\n#define SHADER_NAME bitmap-layer-fragment-shader\n\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nuniform sampler2D bitmapTexture;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float desaturate;\nuniform vec4 transparentColor;\nuniform vec3 tintColor;\nuniform float opacity;\n\nuniform float coordinateConversion;\nuniform vec4 bounds;\n\n/* projection utils */\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / PI / 2.0;\n\n// from degrees to Web Mercator\nvec2 lnglat_to_mercator(vec2 lnglat) {\n float x = lnglat.x;\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\n// from Web Mercator to degrees\nvec2 mercator_to_lnglat(vec2 xy) {\n xy /= WORLD_SCALE;\n return degrees(vec2(\n xy.x - PI,\n atan(exp(xy.y - PI)) * 2.0 - PI * 0.5\n ));\n}\n/* End projection utils */\n\n// apply desaturation\nvec3 color_desaturate(vec3 color) {\n float luminance = (color.r + color.g + color.b) * 0.333333333;\n return mix(color, vec3(luminance), desaturate);\n}\n\n// apply tint\nvec3 color_tint(vec3 color) {\n return color * tintColor;\n}\n\n// blend with background color\nvec4 apply_opacity(vec3 color, float alpha) {\n return mix(transparentColor, vec4(color, 1.0), alpha);\n}\n\nvec2 getUV(vec2 pos) {\n return vec2(\n (pos.x - bounds[0]) / (bounds[2] - bounds[0]),\n (pos.y - bounds[3]) / (bounds[1] - bounds[3])\n );\n}\n\n".concat("\nvec3 packUVsIntoRGB(vec2 uv) {\n // Extract the top 8 bits. We want values to be truncated down so we can add a fraction\n vec2 uv8bit = floor(uv * 256.);\n\n // Calculate the normalized remainders of u and v parts that do not fit into 8 bits\n // Scale and clamp to 0-1 range\n vec2 uvFraction = fract(uv * 256.);\n vec2 uvFraction4bit = floor(uvFraction * 16.);\n\n // Remainder can be encoded in blue channel, encode as 4 bits for pixel coordinates\n float fractions = uvFraction4bit.x + uvFraction4bit.y * 16.;\n\n return vec3(uv8bit, fractions) / 255.;\n}\n","\n\nvoid main(void) {\n vec2 uv = vTexCoord;\n if (coordinateConversion < -0.5) {\n vec2 lnglat = mercator_to_lnglat(vTexPos);\n uv = getUV(lnglat);\n } else if (coordinateConversion > 0.5) {\n vec2 commonPos = lnglat_to_mercator(vTexPos);\n uv = getUV(commonPos);\n }\n vec4 bitmapColor = texture2D(bitmapTexture, uv);\n\n gl_FragColor = apply_opacity(color_tint(color_desaturate(bitmapColor.rgb)), bitmapColor.a * opacity);\n\n geometry.uv = uv;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n\n if (picking_uActive) {\n // Since instance information is not used, we can use picking color for pixel index\n gl_FragColor.rgb = packUVsIntoRGB(uv);\n }\n}\n");function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){s()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b()(t);if(e){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y()(this,n)}}var D={image:{type:"image",value:null,async:!0},bounds:{type:"array",value:[1,0,0,1],compare:!0},_imageCoordinateSystem:_.a.DEFAULT,desaturate:{type:"number",min:0,max:1,value:0},transparentColor:{type:"color",value:[0,0,0,0]},tintColor:{type:"color",value:[255,255,255]}},F=function(t){v()(n,t);var e=L(n);function n(){return c()(this,n),e.apply(this,arguments)}return f()(n,[{key:"getShaders",value:function(){return d()(b()(n.prototype),"getShaders",this).call(this,{vs:"\n#define SHADER_NAME bitmap-layer-vertex-shader\n\nattribute vec2 texCoords;\nattribute vec3 positions;\nattribute vec3 positions64Low;\n\nvarying vec2 vTexCoord;\nvarying vec2 vTexPos;\n\nuniform float coordinateConversion;\n\nconst vec3 pickingColor = vec3(1.0, 0.0, 0.0);\n\nvoid main(void) {\n geometry.worldPosition = positions;\n geometry.uv = texCoords;\n geometry.pickingColor = pickingColor;\n\n gl_Position = project_position_to_clipspace(positions, positions64Low, vec3(0.0), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vTexCoord = texCoords;\n\n if (coordinateConversion < -0.5) {\n vTexPos = geometry.position.xy;\n } else if (coordinateConversion > 0.5) {\n vTexPos = geometry.worldPosition.xy;\n }\n\n vec4 color = vec4(0.0);\n DECKGL_FILTER_COLOR(color, geometry);\n}\n",fs:C,modules:[w.a,x.a]})}},{key:"initializeState",value:function(){var t=this,e=this.getAttributeManager();e.remove(["instancePickingColors"]);e.add({indices:{size:1,isIndexed:!0,update:function(e){return e.value=t.state.mesh.indices},noAlloc:!0},positions:{size:3,type:5130,fp64:this.use64bitPositions(),update:function(e){return e.value=t.state.mesh.positions},noAlloc:!0},texCoords:{size:2,update:function(e){return e.value=t.state.mesh.texCoords},noAlloc:!0}})}},{key:"updateState",value:function(t){var e=t.props,n=t.oldProps;if(t.changeFlags.extensionsChanged){var r,i=this.context.gl;null===(r=this.state.model)||void 0===r||r.delete(),this.state.model=this._getModel(i),this.getAttributeManager().invalidateAll()}var o=this.getAttributeManager();if(e.bounds!==n.bounds){var a=this.state.mesh,s=this._createMesh();for(var u in this.state.model.setVertexCount(s.vertexCount),s)a&&a[u]!==s[u]&&o.invalidate(u);this.setState(R({mesh:s},this._getCoordinateUniforms()))}else e._imageCoordinateSystem!==n._imageCoordinateSystem&&this.setState(this._getCoordinateUniforms())}},{key:"getPickingInfo",value:function(t){var e=t.info,n=this.props.image;if(!e.color||!n)return e.bitmap=null,e;var r=n.width,i=n.height;e.index=0;var a,s,u,c,l,f=(a=e.color,s=o()(a,3),u=s[0],c=s[1],l=s[2],[(u+(15&l)/16)/256,(c+(240&l)/256)/256]),h=[Math.floor(f[0]*r),Math.floor(f[1]*i)];return e.bitmap={size:{width:r,height:i},uv:f,pixel:h},e}},{key:"disablePickingIndex",value:function(){this.setState({disablePicking:!0})}},{key:"restorePickingColors",value:function(){this.setState({disablePicking:!1})}},{key:"_updateAutoHighlight",value:function(t){d()(b()(n.prototype),"_updateAutoHighlight",this).call(this,R(R({},t),{},{color:this.encodePickingColor(0)}))}},{key:"_createMesh",value:function(){var t=this.props.bounds,e=t;return Number.isFinite(t[0])&&(e=[[t[0],t[1]],[t[0],t[3]],[t[2],t[3]],[t[2],t[1]]]),E(e,this.context.viewport.resolution)}},{key:"_getModel",value:function(t){return t?new P.a(t,R(R({},this.getShaders()),{},{id:this.props.id,geometry:new S.a({drawMode:4,vertexCount:6}),isInstanced:!1})):null}},{key:"draw",value:function(t){var e=t.uniforms,n=t.moduleParameters,r=this.state,i=r.model,o=r.coordinateConversion,a=r.bounds,s=r.disablePicking,u=this.props,c=u.image,l=u.desaturate,f=u.transparentColor,h=u.tintColor;n.pickingActive&&s||c&&i&&i.setUniforms(e).setUniforms({bitmapTexture:c,desaturate:l,transparentColor:f.map((function(t){return t/255})),tintColor:h.slice(0,3).map((function(t){return t/255})),coordinateConversion:o,bounds:a}).draw()}},{key:"_getCoordinateUniforms",value:function(){var t=_.a.LNGLAT,e=_.a.CARTESIAN,n=_.a.DEFAULT,r=this.props._imageCoordinateSystem;if(r!==n){var i=this.props.bounds;if(!Number.isFinite(i[0]))throw new Error("_imageCoordinateSystem only supports rectangular bounds");var o=this.context.viewport.resolution?t:e;if((r=r===t?t:e)===t&&o===e)return{coordinateConversion:-1,bounds:i};if(r===e&&o===t){var a=Object(k.l)([i[0],i[1]]),s=Object(k.l)([i[2],i[3]]);return{coordinateConversion:1,bounds:[a[0],a[1],s[0],s[1]]}}}return{coordinateConversion:0,bounds:[0,0,0,0]}}}]),n}(O.a);F.layerName="BitmapLayer",F.defaultProps=D;var N=n(113),z=n(224),B=n(225),U=n(154),V=n(152),G=n(211),W=n(112),H=n(212),q=n(222),Z=n(153),X=n(111),Y=n(157),K=n(155);n.d(e,"ArcLayer",(function(){return r.a})),n.d(e,"BitmapLayer",(function(){return F})),n.d(e,"IconLayer",(function(){return N.a})),n.d(e,"LineLayer",(function(){return z.a})),n.d(e,"PointCloudLayer",(function(){return B.a})),n.d(e,"ScatterplotLayer",(function(){return U.a})),n.d(e,"ColumnLayer",(function(){return V.a})),n.d(e,"GridCellLayer",(function(){return G.a})),n.d(e,"PathLayer",(function(){return W.a})),n.d(e,"PolygonLayer",(function(){return H.a})),n.d(e,"GeoJsonLayer",(function(){return q.a})),n.d(e,"TextLayer",(function(){return Z.a})),n.d(e,"SolidPolygonLayer",(function(){return X.a})),n.d(e,"_MultiIconLayer",(function(){return Y.a})),n.d(e,"_TextBackgroundLayer",(function(){return K.a}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(15),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:"undefined"!=typeof global&&global,document:"undefined"!=typeof document&&document,process:"object"===("undefined"==typeof process?"undefined":n.n(r)()(process))&&process},o=i.window||i.self||i.global,a=i.process||{};console},function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s),c=n(125),l=n(126);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d={transitionDuration:0},p={transitionDuration:300,transitionEasing:function(t){return t},transitionInterruption:c.a.BREAK},v=function(t){return 1-(1-t)*(1-t)},g=["wheel"],y=["panstart","panmove","panend"],m=["pinchstart","pinchmove","pinchend"],b=["tripanstart","tripanmove","tripanend"],_=["doubletap"],w=["keydown"],x=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a()(this,t),this.ControllerState=e,this.controllerState=null,this.controllerStateProps=null,this.eventManager=null,this.transitionManager=new c.b(e,h(h({},n),{},{onViewStateChange:this._onTransition.bind(this),onStateChange:this._setInteractionState.bind(this)}));var r=this.linearTransitionProps;this._transition=r&&h(h({},p),{},{transitionInterpolator:new l.a({transitionProps:r})}),this._events=null,this._interactionState={isDragging:!1},this._customEvents=[],this.onViewStateChange=null,this.onStateChange=null,this.handleEvent=this.handleEvent.bind(this),this.setProps(n)}return u()(t,[{key:"finalize",value:function(){for(var t in this._events)this._events[t]&&this.eventManager.off(t,this.handleEvent);this.transitionManager.finalize()}},{key:"handleEvent",value:function(t){var e=this.ControllerState;this.controllerState=new e(h(h({makeViewport:this.makeViewport},this.controllerStateProps),this._state));var n=this._eventStartBlocked;switch(t.type){case"panstart":return!n&&this._onPanStart(t);case"panmove":return this._onPan(t);case"panend":return this._onPanEnd(t);case"pinchstart":return!n&&this._onPinchStart(t);case"pinchmove":return this._onPinch(t);case"pinchend":return this._onPinchEnd(t);case"tripanstart":return!n&&this._onTriplePanStart(t);case"tripanmove":return this._onTriplePan(t);case"tripanend":return this._onTriplePanEnd(t);case"doubletap":return this._onDoubleTap(t);case"wheel":return this._onWheel(t);case"keydown":return this._onKeyDown(t);default:return!1}}},{key:"getCenter",value:function(t){var e=this.controllerStateProps,n=e.x,r=e.y,i=t.offsetCenter;return[i.x-n,i.y-r]}},{key:"isPointInBounds",value:function(t,e){var n=this.controllerStateProps,r=n.width,i=n.height;if(e&&e.handled)return!1;var o=t[0]>=0&&t[0]<=r&&t[1]>=0&&t[1]<=i;return o&&e&&e.stopPropagation(),o}},{key:"isFunctionKeyPressed",value:function(t){var e=t.srcEvent;return Boolean(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}},{key:"isDragging",value:function(){return this._interactionState.isDragging}},{key:"blockEvents",value:function(t){var e=this,n=setTimeout((function(){e._eventStartBlocked===n&&(e._eventStartBlocked=null)}),t);this._eventStartBlocked=n}},{key:"setProps",value:function(t){"onViewStateChange"in t&&(this.onViewStateChange=t.onViewStateChange),"onStateChange"in t&&(this.onStateChange=t.onStateChange),"makeViewport"in t&&(this.makeViewport=t.makeViewport),"dragMode"in t&&(this.dragMode=t.dragMode),this.controllerStateProps=t,"eventManager"in t&&this.eventManager!==t.eventManager&&(this.eventManager=t.eventManager,this._events={},this.toggleEvents(this._customEvents,!0)),"transitionInterpolator"in t||(t.transitionInterpolator=this._getTransitionProps().transitionInterpolator),this.transitionManager.processViewStateChange(t);var e=t.inertia;!0===e&&(e=300),this.inertia=e;var n=t.scrollZoom,r=void 0===n||n,i=t.dragPan,o=void 0===i||i,a=t.dragRotate,s=void 0===a||a,u=t.doubleClickZoom,c=void 0===u||u,l=t.touchZoom,f=void 0===l||l,h=t.touchRotate,d=void 0!==h&&h,p=t.keyboard,v=void 0===p||p,x=Boolean(this.onViewStateChange);this.toggleEvents(g,x&&r),this.toggleEvents(y,x&&(o||s)),this.toggleEvents(m,x&&(f||d)),this.toggleEvents(b,x&&d),this.toggleEvents(_,x&&c),this.toggleEvents(w,x&&v),this.scrollZoom=r,this.dragPan=o,this.dragRotate=s,this.doubleClickZoom=c,this.touchZoom=f,this.touchRotate=d,this.keyboard=v}},{key:"updateTransition",value:function(){this.transitionManager.updateTransition()}},{key:"toggleEvents",value:function(t,e){var n=this;this.eventManager&&t.forEach((function(t){n._events[t]!==e&&(n._events[t]=e,e?n.eventManager.on(t,n.handleEvent):n.eventManager.off(t,n.handleEvent))}))}},{key:"updateViewport",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=h(h({},t.getViewportProps()),e),i=this.controllerState!==t;if(this._state=t.getState(),this._setInteractionState(n),i){var o=this.controllerState?this.controllerState.getViewportProps():null;this.onViewStateChange&&this.onViewStateChange({viewState:r,interactionState:this._interactionState,oldViewState:o})}}},{key:"_onTransition",value:function(t){this.onViewStateChange&&(t.interactionState=this._interactionState,this.onViewStateChange(t))}},{key:"_setInteractionState",value:function(t){Object.assign(this._interactionState,t),this.onStateChange&&this.onStateChange(this._interactionState)}},{key:"_onPanStart",value:function(t){var e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;var n=this.isFunctionKeyPressed(t)||t.rightButton;(this.invertPan||"pan"===this.dragMode)&&(n=!n);var r=this.controllerState[n?"panStart":"rotateStart"]({pos:e});return this._panMove=n,this.updateViewport(r,d,{isDragging:!0}),!0}},{key:"_onPan",value:function(t){return!!this.isDragging()&&(this._panMove?this._onPanMove(t):this._onPanRotate(t))}},{key:"_onPanEnd",value:function(t){return!!this.isDragging()&&(this._panMove?this._onPanMoveEnd(t):this._onPanRotateEnd(t))}},{key:"_onPanMove",value:function(t){if(!this.dragPan)return!1;var e=this.getCenter(t),n=this.controllerState.pan({pos:e});return this.updateViewport(n,d,{isDragging:!0,isPanning:!0}),!0}},{key:"_onPanMoveEnd",value:function(t){var e=this.inertia;if(this.dragPan&&e&&t.velocity){var n=this.getCenter(t),r=[n[0]+t.velocityX*e/2,n[1]+t.velocityY*e/2],i=this.controllerState.pan({pos:r}).panEnd();this.updateViewport(i,h(h({},this._getTransitionProps()),{},{transitionDuration:e,transitionEasing:v}),{isDragging:!1,isPanning:!0})}else{var o=this.controllerState.panEnd();this.updateViewport(o,null,{isDragging:!1,isPanning:!1})}return!0}},{key:"_onPanRotate",value:function(t){if(!this.dragRotate)return!1;var e=this.getCenter(t),n=this.controllerState.rotate({pos:e});return this.updateViewport(n,d,{isDragging:!0,isRotating:!0}),!0}},{key:"_onPanRotateEnd",value:function(t){var e=this.inertia;if(this.dragRotate&&e&&t.velocity){var n=this.getCenter(t),r=[n[0]+t.velocityX*e/2,n[1]+t.velocityY*e/2],i=this.controllerState.rotate({pos:r}).rotateEnd();this.updateViewport(i,h(h({},this._getTransitionProps()),{},{transitionDuration:e,transitionEasing:v}),{isDragging:!1,isRotating:!0})}else{var o=this.controllerState.rotateEnd();this.updateViewport(o,null,{isDragging:!1,isRotating:!1})}return!0}},{key:"_onWheel",value:function(t){if(!this.scrollZoom)return!1;t.preventDefault();var e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;var n=this.scrollZoom,r=n.speed,i=void 0===r?.01:r,o=n.smooth,a=void 0!==o&&o,s=t.delta,u=2/(1+Math.exp(-Math.abs(s*i)));s<0&&0!==u&&(u=1/u);var c=this.controllerState.zoom({pos:e,scale:u});return this.updateViewport(c,h(h({},this._getTransitionProps({around:e})),{},{transitionDuration:a?250:1}),{isZooming:!0,isPanning:!0}),!0}},{key:"_onTriplePanStart",value:function(t){var e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;var n=this.controllerState.rotateStart({pos:e});return this.updateViewport(n,d,{isDragging:!0}),!0}},{key:"_onTriplePan",value:function(t){if(!this.touchRotate)return!1;if(!this.isDragging())return!1;var e=this.getCenter(t);e[0]-=t.deltaX;var n=this.controllerState.rotate({pos:e});return this.updateViewport(n,d,{isDragging:!0,isRotating:!0}),!0}},{key:"_onTriplePanEnd",value:function(t){if(!this.isDragging())return!1;var e=this.inertia;if(this.touchRotate&&e&&t.velocityY){var n=this.getCenter(t),r=[n[0],n[1]+=t.velocityY*e/2],i=this.controllerState.rotate({pos:r});this.updateViewport(i,h(h({},this._getTransitionProps()),{},{transitionDuration:e,transitionEasing:v}),{isDragging:!1,isRotating:!0}),this.blockEvents(e)}else{var o=this.controllerState.rotateEnd();this.updateViewport(o,null,{isDragging:!1,isRotating:!1})}return!0}},{key:"_onPinchStart",value:function(t){var e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;var n=this.controllerState.zoomStart({pos:e}).rotateStart({pos:e});return this._startPinchRotation=t.rotation,this._lastPinchEvent=t,this.updateViewport(n,d,{isDragging:!0}),!0}},{key:"_onPinch",value:function(t){if(!this.touchZoom&&!this.touchRotate)return!1;if(!this.isDragging())return!1;var e=this.controllerState;if(this.touchZoom){var n=t.scale,r=this.getCenter(t);e=e.zoom({pos:r,scale:n})}if(this.touchRotate){var i=t.rotation;e=e.rotate({deltaAngleX:this._startPinchRotation-i})}return this.updateViewport(e,d,{isDragging:!0,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:this.touchRotate}),this._lastPinchEvent=t,!0}},{key:"_onPinchEnd",value:function(t){if(!this.isDragging())return!1;var e=this.inertia,n=this._lastPinchEvent;if(this.touchZoom&&e&&n&&t.scale!==n.scale){var r=this.getCenter(t),i=this.controllerState.rotateEnd(),o=Math.log2(t.scale),a=(o-Math.log2(n.scale))/(t.deltaTime-n.deltaTime),s=Math.pow(2,o+a*e/2);i=i.zoom({pos:r,scale:s}).zoomEnd(),this.updateViewport(i,h(h({},this._getTransitionProps({around:r})),{},{transitionDuration:e,transitionEasing:v}),{isDragging:!1,isPanning:this.touchZoom,isZooming:this.touchZoom,isRotating:!1}),this.blockEvents(e)}else{var u=this.controllerState.zoomEnd().rotateEnd();this.updateViewport(u,null,{isDragging:!1,isPanning:!1,isZooming:!1,isRotating:!1})}return this._startPinchRotation=null,this._lastPinchEvent=null,!0}},{key:"_onDoubleTap",value:function(t){if(!this.doubleClickZoom)return!1;var e=this.getCenter(t);if(!this.isPointInBounds(e,t))return!1;var n=this.isFunctionKeyPressed(t),r=this.controllerState.zoom({pos:e,scale:n?.5:2});return this.updateViewport(r,this._getTransitionProps({around:e}),{isZooming:!0,isPanning:!0}),this.blockEvents(100),!0}},{key:"_onKeyDown",value:function(t){if(!this.keyboard)return!1;var e,n=this.isFunctionKeyPressed(t),r=this.keyboard,i=r.zoomSpeed,o=r.moveSpeed,a=r.rotateSpeedX,s=r.rotateSpeedY,u=this.controllerState,c={};switch(t.srcEvent.code){case"Minus":e=n?u.zoomOut(i).zoomOut(i):u.zoomOut(i),c.isZooming=!0;break;case"Equal":e=n?u.zoomIn(i).zoomIn(i):u.zoomIn(i),c.isZooming=!0;break;case"ArrowLeft":n?(e=u.rotateLeft(a),c.isRotating=!0):(e=u.moveLeft(o),c.isPanning=!0);break;case"ArrowRight":n?(e=u.rotateRight(a),c.isRotating=!0):(e=u.moveRight(o),c.isPanning=!0);break;case"ArrowUp":n?(e=u.rotateUp(s),c.isRotating=!0):(e=u.moveUp(o),c.isPanning=!0);break;case"ArrowDown":n?(e=u.rotateDown(s),c.isRotating=!0):(e=u.moveDown(o),c.isPanning=!0);break;default:return!1}return this.updateViewport(e,this._getTransitionProps(),c),!0}},{key:"_getTransitionProps",value:function(t){var e=this._transition;return e?t?h(h({},e),{},{transitionInterpolator:new l.a(h(h({},t),{},{transitionProps:this.linearTransitionProps,makeViewport:this.controllerState.makeViewport}))}):e:d}},{key:"linearTransitionProps",get:function(){return null}},{key:"events",set:function(t){this.toggleEvents(this._customEvents,!1),this.toggleEvents(t,!0),this._customEvents=t,this.setProps(this.controllerStateProps)}}]),t}()},function(t,e,n){"use strict";var r=n(15),i=n.n(r),o=n(0),a=n.n(o),s=n(1),u=n.n(s),c=n(2),l=n.n(c),f=n(47),h=/([0-9]+\.?[0-9]*)(%|px)/;function d(t){switch(i()(t)){case"number":return{position:t,relative:!1};case"string":var e=t.match(h);if(e&&e.length>=3){var n="%"===e[2],r=parseFloat(e[1]);return{position:n?r/100:r,relative:n}}default:throw new Error("Could not parse position string ".concat(t))}}function p(t,e){return t.relative?Math.round(t.position*e):t.position}var v=n(78),g=n(42);function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.d(e,"a",(function(){return b}));var b=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t);var n=e.id,r=void 0===n?null:n,i=e.x,o=void 0===i?0:i,a=e.y,s=void 0===a?0:a,c=e.width,l=void 0===c?"100%":c,h=e.height,d=void 0===h?"100%":h,p=e.viewportInstance,v=e.type,y=void 0===v?f.a:v;Object(g.a)(!p||p instanceof f.a),this.viewportInstance=p,this.id=r||this.constructor.displayName||"view",this.type=y,this.props=m(m({},e),{},{id:this.id}),this._parseDimensions({x:o,y:s,width:l,height:d}),this.equals=this.equals.bind(this),Object.seal(this)}return l()(t,[{key:"equals",value:function(t){return this===t||(this.viewportInstance?t.viewportInstance&&this.viewportInstance.equals(t.viewportInstance):Object(v.a)(this.props,t.props))}},{key:"makeViewport",value:function(t){var e=t.width,n=t.height,r=t.viewState;if(this.viewportInstance)return this.viewportInstance;r=this.filterViewState(r);var i=this.getDimensions({width:e,height:n});return this._getViewport(r,i)}},{key:"getViewStateId",value:function(){switch(i()(this.props.viewState)){case"string":return this.props.viewState;case"object":return this.props.viewState&&this.props.viewState.id;default:return this.id}}},{key:"filterViewState",value:function(t){if(this.props.viewState&&"object"===i()(this.props.viewState)){if(!this.props.viewState.id)return this.props.viewState;var e=m({},t);for(var n in this.props.viewState)"id"!==n&&(e[n]=this.props.viewState[n]);return e}return t}},{key:"getDimensions",value:function(t){var e=t.width,n=t.height;return{x:p(this._x,e),y:p(this._y,n),width:p(this._width,e),height:p(this._height,n)}}},{key:"_getControllerProps",value:function(t){var e=this.props.controller;return e?!0===e?t:("function"==typeof e&&(e={type:e}),m(m({},t),e)):null}},{key:"_getViewport",value:function(t,e){return new(0,this.type)(m(m(m({},t),this.props),e))}},{key:"_parseDimensions",value:function(t){var e=t.x,n=t.y,r=t.width,i=t.height;this._x=d(e),this._y=d(n),this._width=d(r),this._height=d(i)}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s),c=n(56),l=n(12);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var h={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,t);var n=e.id,r=void 0===n?Object(c.c)("geometry"):n,i=e.drawMode,o=void 0===i?h.TRIANGLES:i,s=e.attributes,u=void 0===s?{}:s,l=e.indices,f=void 0===l?null:l,d=e.vertexCount,p=void 0===d?null:d;this.id=r,this.drawMode=0|o,this.attributes={},this.userData={},this._setAttributes(u,f),this.vertexCount=p||this._calculateVertexCount(this.attributes,this.indices)}return u()(t,null,[{key:"DRAW_MODE",get:function(){return h}}]),u()(t,[{key:"getVertexCount",value:function(){return this.vertexCount}},{key:"getAttributes",value:function(){return this.indices?function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({indices:this.indices},this.attributes):this.attributes}},{key:"_print",value:function(t){return"Geometry ".concat(this.id," attribute ").concat(t)}},{key:"_setAttributes",value:function(t,e){for(var n in e&&(this.indices=ArrayBuffer.isView(e)?{value:e,size:1}:e),t){var r=t[n];r=ArrayBuffer.isView(r)?{value:r}:r,Object(l.a)(ArrayBuffer.isView(r.value),"".concat(this._print(n),": must be typed array or object with value as typed array")),"POSITION"!==n&&"positions"!==n||r.size||(r.size=3),"indices"===n?(Object(l.a)(!this.indices),this.indices=r):this.attributes[n]=r}return this.indices&&void 0!==this.indices.isIndexed&&(this.indices=Object.assign({},this.indices),delete this.indices.isIndexed),this}},{key:"_calculateVertexCount",value:function(t,e){if(e)return e.value.length;var n=1/0;for(var r in t){var i=t[r],o=i.value,a=i.size;!i.constant&&o&&a>=1&&(n=Math.min(n,o.length/a))}return Object(l.a)(Number.isFinite(n)),n}},{key:"mode",get:function(){return this.drawMode}}]),t}()},function(t,e,n){"use strict";var r=n(23),i=/^data:([-\w.]+\/[-\w.+]+)(;|,)/,o=/^([-\w.]+\/[-\w.+]+)/;function a(t){var e=i.exec(t);return e?e[1]:""}n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return c}));var s=/\?.*/;function u(t){if(Object(r.j)(t)){var e=l(t.url||""),n=t.headers.get("content-type")||"";return{url:e,type:(i=n,s=o.exec(i),(s?s[1]:i)||a(e))}}var i,s;return Object(r.b)(t)?{url:l(t.name||""),type:t.type||""}:"string"==typeof t?{url:l(t),type:a(t)}:{url:"",type:""}}function c(t){return Object(r.j)(t)?t.headers["content-length"]||-1:Object(r.b)(t)?t.size:"string"==typeof t?t.length:t instanceof ArrayBuffer?t.byteLength:ArrayBuffer.isView(t)?t.byteLength:-1}function l(t){return t.replace(s,"")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(230),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s),c=n(64),l=n(12),f=n(129),h={offset:0,stride:0,type:5126,size:1,divisor:0,normalized:!1,integer:!1},d={deprecatedProps:{instanced:"divisor",isInstanced:"divisor"}},p=function(){function t(){var e=this;a()(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r.forEach((function(t){return e._assign(t)})),Object.freeze(this)}return u()(t,null,[{key:"getBytesPerElement",value:function(t){return Object(c.c)(t.type||5126).BYTES_PER_ELEMENT}},{key:"getBytesPerVertex",value:function(t){return Object(l.a)(t.size),Object(c.c)(t.type||5126).BYTES_PER_ELEMENT*t.size}},{key:"resolve",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return i()(t,[h].concat(n))}}]),u()(t,[{key:"toString",value:function(){return JSON.stringify(this)}},{key:"_assign",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return void 0!==(t=Object(f.a)("Accessor",t,d)).type&&(this.type=t.type,5124!==t.type&&5125!==t.type||(this.integer=!0)),void 0!==t.size&&(this.size=t.size),void 0!==t.offset&&(this.offset=t.offset),void 0!==t.stride&&(this.stride=t.stride),void 0!==t.normalized&&(this.normalized=t.normalized),void 0!==t.integer&&(this.integer=t.integer),void 0!==t.divisor&&(this.divisor=t.divisor),void 0!==t.buffer&&(this.buffer=t.buffer),void 0!==t.index&&("boolean"==typeof t.index?this.index=t.index?1:0:this.index=t.index),void 0!==t.instanced&&(this.divisor=t.instanced?1:0),void 0!==t.isInstanced&&(this.divisor=t.isInstanced?1:0),this}},{key:"BYTES_PER_ELEMENT",get:function(){return t.getBytesPerElement(this)}},{key:"BYTES_PER_VERTEX",get:function(){return t.getBytesPerVertex(this)}}]),t}()},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};return Array.isArray(t)?i(t,e,[]):e(t)?[t]:[]}function i(t,e,n){for(var r=-1;++r<t.length;){var o=t[r];Array.isArray(o)?i(o,e,n):e(o)&&n.push(o)}return n}function o(t){for(var e=t.target,n=t.source,r=t.start,i=void 0===r?0:r,o=t.count,a=void 0===o?1:o,s=n.length,u=a*s,c=0,l=i;c<s;c++)e[l++]=n[c];for(;c<u;)c<u-c?(e.copyWithin(i+c,i,i+c),c*=2):(e.copyWithin(i+c,i,i+u-c),c=u);return e}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=function(){function t(e){i()(this,t),this._pool=[],this.props={overAlloc:2,poolSize:100},this.setProps(e)}return a()(t,[{key:"setProps",value:function(t){Object.assign(this.props,t)}},{key:"allocate",value:function(t,e,n){var r,i=n.size,o=void 0===i?1:i,a=n.type,s=n.padding,u=void 0===s?0:s,c=n.copy,l=void 0!==c&&c,f=n.initialize,h=void 0!==f&&f,d=n.maxCount,p=a||t&&t.constructor||Float32Array,v=e*o+u;if(ArrayBuffer.isView(t)){if(v<=t.length)return t;if(v*t.BYTES_PER_ELEMENT<=t.buffer.byteLength)return new p(t.buffer,0,v)}d&&(r=d*o+u);var g=this._allocate(p,v,h,r);return t&&l?g.set(t):h||g.fill(0,0,4),this._release(t),g}},{key:"release",value:function(t){this._release(t)}},{key:"_allocate",value:function(t,e,n,r){var i=Math.max(Math.ceil(e*this.props.overAlloc),1);i>r&&(i=r);var o=this._pool,a=t.BYTES_PER_ELEMENT*i,s=o.findIndex((function(t){return t.byteLength>=a}));if(s>=0){var u=new t(o.splice(s,1)[0],0,i);return n&&u.fill(0),u}return new t(i)}},{key:"_release",value:function(t){if(ArrayBuffer.isView(t)){var e=this._pool,n=t.buffer,r=n.byteLength,i=e.findIndex((function(t){return t.byteLength>=r}));i<0?e.push(n):(i>0||e.length<this.props.poolSize)&&e.splice(i,0,n),e.length>this.props.poolSize&&e.shift()}}}]),t}();e.a=new s},function(t,e,n){"use strict";n.d(e,"a",(function(){return I}));var r=n(0),i=n.n(r),o=n(11),a=n.n(o),s=n(1),u=n.n(s),c=n(28),l=n.n(c),f=n(9),h=n.n(f),d=n(2),p=n.n(d),v=n(5),g=n.n(v),y=n(6),m=n.n(y),b=n(3),_=n.n(b),w=n(10),x=n(45),O=n(102),P=n(104),S=n(174),k=n(190),j=n(246),A=n(58),T=n(12);function E(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_()(t);if(e){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}var I=function(t){g()(n,t);var e=C(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u()(this,n),(r=e.call(this,t,i)).width=null,r.height=null,r.attachments={},r.readBuffer=36064,r.drawBuffers=[36064],r.ownResources=[],r.initialize(i),Object.seal(l()(r)),r}return p()(n,[{key:"MAX_COLOR_ATTACHMENTS",get:function(){var t=Object(w.a)(this.gl);return t.getParameter(t.MAX_COLOR_ATTACHMENTS)}},{key:"MAX_DRAW_BUFFERS",get:function(){var t=Object(w.a)(this.gl);return t.getParameter(t.MAX_DRAW_BUFFERS)}}],[{key:"isSupported",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.colorBufferFloat,r=e.colorBufferHalfFloat,i=!0;return n&&(i=Boolean(t.getExtension("EXT_color_buffer_float")||t.getExtension("WEBGL_color_buffer_float")||t.getExtension("OES_texture_float"))),r&&(i=i&&Boolean(t.getExtension("EXT_color_buffer_float")||t.getExtension("EXT_color_buffer_half_float"))),i}},{key:"getDefaultFramebuffer",value:function(t){return t.luma=t.luma||{},t.luma.defaultFramebuffer=t.luma.defaultFramebuffer||new n(t,{id:"default-framebuffer",handle:null,attachments:{}}),t.luma.defaultFramebuffer}}]),p()(n,[{key:"initialize",value:function(t){var e=t.width,n=void 0===e?1:e,r=t.height,i=void 0===r?1:r,o=t.attachments,a=void 0===o?null:o,s=t.color,u=void 0===s||s,c=t.depth,l=void 0===c||c,f=t.stencil,h=void 0!==f&&f,d=t.check,p=void 0===d||d,v=t.readBuffer,g=void 0===v?void 0:v,y=t.drawBuffers,m=void 0===y?void 0:y;if(Object(T.a)(n>=0&&i>=0,"Width and height need to be integers"),this.width=n,this.height=i,a)for(var b in a){var _=a[b];(Array.isArray(_)?_[0]:_).resize({width:n,height:i})}else a=this._createDefaultAttachments(u,l,h,n,i);this.update({clearAttachments:!0,attachments:a,readBuffer:g,drawBuffers:m}),a&&p&&this.checkStatus()}},{key:"delete",value:function(){var t,e=E(this.ownResources);try{for(e.s();!(t=e.n()).done;){t.value.delete()}}catch(t){e.e(t)}finally{e.f()}return h()(_()(n.prototype),"delete",this).call(this),this}},{key:"update",value:function(t){var e=t.attachments,n=void 0===e?{}:e,r=t.readBuffer,i=t.drawBuffers,o=t.clearAttachments,a=void 0!==o&&o,s=t.resizeAttachments,u=void 0===s||s;this.attach(n,{clearAttachments:a,resizeAttachments:u});var c=this.gl,l=c.bindFramebuffer(36160,this.handle);return r&&this._setReadBuffer(r),i&&this._setDrawBuffers(i),c.bindFramebuffer(36160,l||null),this}},{key:"resize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.width,n=t.height;if(null===this.handle)return Object(T.a)(void 0===e&&void 0===n),this.width=this.gl.drawingBufferWidth,this.height=this.gl.drawingBufferHeight,this;for(var r in void 0===e&&(e=this.gl.drawingBufferWidth),void 0===n&&(n=this.gl.drawingBufferHeight),e!==this.width&&n!==this.height&&w.k.log(2,"Resizing framebuffer ".concat(this.id," to ").concat(e,"x").concat(n))(),this.attachments)this.attachments[r].resize({width:e,height:n});return this.width=e,this.height=n,this}},{key:"attach",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clearAttachments,i=void 0!==r&&r,o=n.resizeAttachments,s=void 0===o||o,u={};i&&Object.keys(this.attachments).forEach((function(t){u[t]=null})),Object.assign(u,t);var c=this.gl.bindFramebuffer(36160,this.handle);for(var l in u){Object(T.a)(void 0!==l,"Misspelled framebuffer binding point?");var f=Number(l),h=u[f],d=h;if(d)if(d instanceof P.a)this._attachRenderbuffer({attachment:f,renderbuffer:d});else if(Array.isArray(h)){var p=a()(h,3),v=p[0],g=p[1],y=void 0===g?0:g,m=p[2],b=void 0===m?0:m;d=v,this._attachTexture({attachment:f,texture:v,layer:y,level:b})}else this._attachTexture({attachment:f,texture:d,layer:0,level:0});else this._unattach(f);s&&d&&d.resize({width:this.width,height:this.height})}this.gl.bindFramebuffer(36160,c||null),Object.assign(this.attachments,t),Object.keys(this.attachments).filter((function(t){return!e.attachments[t]})).forEach((function(t){delete e.attachments[t]}))}},{key:"checkStatus",value:function(){this.gl;var t=this.getStatus();if(36053!==t)throw new Error(R(t));return this}},{key:"getStatus",value:function(){var t=this.gl,e=t.bindFramebuffer(36160,this.handle),n=t.checkFramebufferStatus(36160);return t.bindFramebuffer(36160,e||null),n}},{key:"clear",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.color,r=e.depth,i=e.stencil,o=e.drawBuffers,a=void 0===o?[]:o,s=this.gl.bindFramebuffer(36160,this.handle);return(n||r||i)&&Object(S.a)(this.gl,{color:n,depth:r,stencil:i}),a.forEach((function(e,n){Object(S.b)(t.gl,{drawBuffer:n,value:e})})),this.gl.bindFramebuffer(36160,s||null),this}},{key:"readPixels",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return w.k.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")(),null}},{key:"readPixelsToBuffer",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return w.k.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")(),null}},{key:"copyToDataUrl",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return w.k.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")(),null}},{key:"copyToImage",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return w.k.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")(),null}},{key:"copyToTexture",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return w.k.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")(),null}},{key:"blit",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return w.k.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")(),null}},{key:"invalidate",value:function(t){var e=t.attachments,n=void 0===e?[]:e,r=t.x,i=void 0===r?0:r,o=t.y,a=void 0===o?0:o,s=t.width,u=t.height,c=Object(w.a)(this.gl),l=c.bindFramebuffer(36008,this.handle);return 0===i&&0===a&&void 0===s&&void 0===u?c.invalidateFramebuffer(36008,n):c.invalidateFramebuffer(36008,n,i,a,s,u),c.bindFramebuffer(36008,l),this}},{key:"getAttachmentParameter",value:function(t,e,n){var r=this._getAttachmentParameterFallback(e);return null===r&&(this.gl.bindFramebuffer(36160,this.handle),r=this.gl.getFramebufferAttachmentParameter(36160,t,e),this.gl.bindFramebuffer(36160,null)),n&&r>1e3&&(r=Object(A.a)(this.gl,r)),r}},{key:"getAttachmentParameters",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:36064,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.constructor.ATTACHMENT_PARAMETERS||[],i={},o=E(r);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=n?Object(A.a)(this.gl,a):a;i[s]=this.getAttachmentParameter(e,a,n)}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"getParameters",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=Object.keys(this.attachments),n={},r=0,i=e;r<i.length;r++){var o=i[r],a=Number(o),s=t?Object(A.a)(this.gl,a):a;n[s]=this.getAttachmentParameters(a,t)}return n}},{key:"show",value:function(){return"undefined"!=typeof window&&window.open(Object(k.a)(this),"luma-debug-texture"),this}},{key:"log",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t>w.k.level||"undefined"==typeof window)return this;e=e||"Framebuffer ".concat(this.id);var n=Object(k.a)(this,{targetMaxHeight:100});return w.k.image({logLevel:t,message:e,image:n},e)(),this}},{key:"bind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=void 0===e?36160:e;return this.gl.bindFramebuffer(n,this.handle),this}},{key:"unbind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=void 0===e?36160:e;return this.gl.bindFramebuffer(n,null),this}},{key:"_createDefaultAttachments",value:function(t,e,n,r,o){var a,s=null;t&&((s=s||{})[36064]=new O.a(this.gl,{id:"".concat(this.id,"-color0"),pixels:null,format:6408,type:5121,width:r,height:o,mipmaps:!1,parameters:(a={},i()(a,10241,9729),i()(a,10240,9729),i()(a,10242,33071),i()(a,10243,33071),a)}),this.ownResources.push(s[36064]));return e&&n?((s=s||{})[33306]=new P.a(this.gl,{id:"".concat(this.id,"-depth-stencil"),format:35056,width:r,height:111}),this.ownResources.push(s[33306])):e?((s=s||{})[36096]=new P.a(this.gl,{id:"".concat(this.id,"-depth"),format:33189,width:r,height:o}),this.ownResources.push(s[36096])):n&&Object(T.a)(!1),s}},{key:"_unattach",value:function(t){var e=this.attachments[t];e&&(e instanceof P.a?this.gl.framebufferRenderbuffer(36160,t,36161,null):this.gl.framebufferTexture2D(36160,t,3553,null,0),delete this.attachments[t])}},{key:"_attachRenderbuffer",value:function(t){var e=t.attachment,n=void 0===e?36064:e,r=t.renderbuffer;this.gl.framebufferRenderbuffer(36160,n,36161,r.handle),this.attachments[n]=r}},{key:"_attachTexture",value:function(t){var e=t.attachment,n=void 0===e?36064:e,r=t.texture,i=t.layer,o=t.level,a=this.gl;switch(a.bindTexture(r.target,r.handle),r.target){case 35866:case 32879:Object(w.a)(a).framebufferTextureLayer(36160,n,r.target,o,i);break;case 34067:var s=function(t){return t<34069?t+34069:t}(i);a.framebufferTexture2D(36160,n,s,r.handle,o);break;case 3553:a.framebufferTexture2D(36160,n,3553,r.handle,o);break;default:Object(T.a)(!1,"Illegal texture type")}a.bindTexture(r.target,null),this.attachments[n]=r}},{key:"_setReadBuffer",value:function(t){var e=Object(w.g)(this.gl);e?e.readBuffer(t):Object(T.a)(36064===t||1029===t,"Multiple render targets not supported"),this.readBuffer=t}},{key:"_setDrawBuffers",value:function(t){var e=this.gl,n=Object(w.a)(e);if(n)n.drawBuffers(t);else{var r=e.getExtension("WEBGL_draw_buffers");r?r.drawBuffersWEBGL(t):Object(T.a)(1===t.length&&(36064===t[0]||1029===t[0]),"Multiple render targets not supported")}this.drawBuffers=t}},{key:"_getAttachmentParameterFallback",value:function(t){var e=Object(j.a)(this.gl);switch(t){case 36052:return e.WEBGL2?null:0;case 33298:case 33299:case 33300:case 33301:case 33302:case 33303:return e.WEBGL2?null:8;case 33297:return e.WEBGL2?null:5125;case 33296:return e.WEBGL2||e.EXT_sRGB?null:9729;default:return null}}},{key:"_createHandle",value:function(){return this.gl.createFramebuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteFramebuffer(this.handle)}},{key:"_bindHandle",value:function(t){return this.gl.bindFramebuffer(36160,t)}},{key:"color",get:function(){return this.attachments[36064]||null}},{key:"texture",get:function(){return this.attachments[36064]||null}},{key:"depth",get:function(){return this.attachments[36096]||this.attachments[33306]||null}},{key:"stencil",get:function(){return this.attachments[36128]||this.attachments[33306]||null}}]),n}(x.a);function R(t){return(I.STATUS||{})[t]||"Framebuffer error ".concat(t)}I.ATTACHMENT_PARAMETERS=[36049,36048,33296,33298,33299,33300,33301,33302,33303]},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(!t||!e)return!1;for(var n in t){var i=t[n],o=e[n];if(!(i===o||Array.isArray(i)&&Array.isArray(o)&&r(i,o)))return!1}return!0}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(){}var h={onStart:f,onUpdate:f,onInterrupt:f,onEnd:f},d=function(){function t(e){a()(this,t),this._inProgress=!1,this._handle=null,this.timeline=e,this.settings={}}return u()(t,[{key:"start",value:function(t){this.cancel(),this.settings=l(l({},h),t),this._inProgress=!0,this.settings.onStart(this)}},{key:"end",value:function(){this._inProgress&&(this.timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1,this.settings.onEnd(this))}},{key:"cancel",value:function(){this._inProgress&&(this.settings.onInterrupt(this),this.timeline.removeChannel(this._handle),this._handle=null,this._inProgress=!1)}},{key:"update",value:function(){if(!this._inProgress)return!1;if(null===this._handle){var t=this.timeline,e=this.settings;this._handle=t.addChannel({delay:t.getTime(),duration:e.duration})}return this.time=this.timeline.getTime(this._handle),this._onUpdate(),this.settings.onUpdate(this),this.timeline.isFinished(this._handle)&&this.end(),!0}},{key:"_onUpdate",value:function(){}},{key:"inProgress",get:function(){return this._inProgress}}]),t}()},function(t,e,n){"use strict";function r(t,e,n){var r=e[0],i=e[1],o=n[3]*r+n[7]*i||1;return t[0]=(n[0]*r+n[4]*i)/o,t[1]=(n[1]*r+n[5]*i)/o,t}function i(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o||1;return t[0]=(n[0]*r+n[4]*i+n[8]*o)/a,t[1]=(n[1]*r+n[5]*i+n[9]*o)/a,t[2]=(n[2]*r+n[6]*i+n[10]*o)/a,t}function o(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t[2]=e[2],t}function a(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[3]*i+n[6]*o,t[1]=n[1]*r+n[4]*i+n[7]*o,t[2]=n[2]*r+n[5]*i+n[8]*o,t[3]=e[3],t}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var r="vs",i="fs"},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u}));var r=n(15),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:"undefined"!=typeof global&&global,document:"undefined"!=typeof document&&document},o=i.global||i.self||i.window||{},a="object"!==("undefined"==typeof process?"undefined":n.n(r)()(process))||"[object process]"!==String(process)||process.browser,s="function"==typeof importScripts,u="undefined"!=typeof window&&void 0!==window.orientation,c="undefined"!=typeof process&&process.version&&/v([0-9]*)/.exec(process.version);c&&parseFloat(c[1])},function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return f}));var r=n(15),i=n.n(r),o=n(94);function a(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){if(o.toArrayBuffer&&(t=o.toArrayBuffer(t)),t instanceof ArrayBuffer)return t;if(ArrayBuffer.isView(t))return t.buffer;if("string"==typeof t){var e=t;return(new TextEncoder).encode(e).buffer}if(t&&"object"===i()(t)&&t._toArrayBuffer)return t._toArrayBuffer();throw new Error("toArrayBuffer")}function c(t,e,n){if(n=n||t.byteLength,t.byteLength<n||e.byteLength<n)return!1;for(var r=new Uint8Array(t),i=new Uint8Array(e),o=0;o<r.length;++o)if(r[o]!==i[o])return!1;return!0}function l(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=e.map((function(t){return t instanceof ArrayBuffer?new Uint8Array(t):t})),o=i.reduce((function(t,e){return t+e.byteLength}),0),s=new Uint8Array(o),u=0,c=a(i);try{for(c.s();!(r=c.n()).done;){var l=r.value;s.set(l,u),u+=l.byteLength}}catch(t){c.e(t)}finally{c.f()}return s.buffer}function f(t,e,n){var r=void 0!==n?new Uint8Array(t).subarray(e,e+n):new Uint8Array(t).subarray(e);return new Uint8Array(r).buffer}},function(t,e,n){"use strict";n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return S}));var r=n(4),i=n.n(r),o=n(0),a=n.n(o),s=n(15),u=n.n(s),c=n(16),l=n.n(c),f=n(8),h=n.n(f),d=n(83),p=n(54),v=n(73),g=n(107),y=n(23);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var x=/\.([^.]+)$/;function O(t){return P.apply(this,arguments)}function P(){return(P=h()(i.a.mark((function t(e){var n,r,o,a,s=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=s.length>1&&void 0!==s[1]?s[1]:[],r=s.length>2?s[2]:void 0,o=s.length>3?s[3]:void 0,j(e)){t.next=5;break}return t.abrupt("return",null);case 5:if(!(a=S(e,n,b(b({},r),{},{nothrow:!0}),o))){t.next=8;break}return t.abrupt("return",a);case 8:if(!Object(y.b)(e)){t.next=13;break}return t.next=11,e.slice(0,10).arrayBuffer();case 11:e=t.sent,a=S(e,n,r,o);case 13:if(a||null!=r&&r.nothrow){t.next=15;break}throw new Error(A(e));case 15:return t.abrupt("return",a);case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!j(t))return null;if(e&&!Array.isArray(e))return Object(p.b)(e);var i,o=[];(e&&(o=o.concat(e)),null!=n&&n.ignoreRegisteredLoaders)||(i=o).push.apply(i,l()(Object(g.b)()));T(o);var a=k(t,o,n,r);if(!(a||null!=n&&n.nothrow))throw new Error(A(t));return a}function k(t,e,n,r){var i=Object(v.b)(t),o=i.url,a=i.type,s=o||(null==r?void 0:r.url),u=null;return null!=n&&n.mimeType&&(u=E(e,null==n?void 0:n.mimeType)),u=(u=(u=(u=u||function(t,e){var n=e&&x.exec(e),r=n&&n[1];return r?function(t,e){e=e.toLowerCase();var n,r=_(t);try{for(r.s();!(n=r.n()).done;){var i,o=n.value,a=_(o.extensions);try{for(a.s();!(i=a.n()).done;){if(i.value.toLowerCase()===e)return o}}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}return null}(t,r):null}(e,s))||E(e,a))||function(t,e){if(!e)return null;var n,r=_(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if("string"==typeof e){if(M(e,i))return i}else if(ArrayBuffer.isView(e)){if(C(e.buffer,e.byteOffset,i))return i}else if(e instanceof ArrayBuffer){if(C(e,0,i))return i}}}catch(t){r.e(t)}finally{r.f()}return null}(e,t))||E(e,null==n?void 0:n.fallbackMimeType)}function j(t){return!(t instanceof Response&&204===t.status)}function A(t){var e=Object(v.b)(t),n=e.url,r=e.type,i="No valid loader found";return t&&(i+=' data: "'.concat(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof t)return t.slice(0,e);if(ArrayBuffer.isView(t))return I(t.buffer,t.byteOffset,e);if(t instanceof ArrayBuffer){var n=0;return I(t,n,e)}return""}(t),'", contentType: "').concat(r,'"')),n&&(i+=" url: ".concat(n)),i}function T(t){var e,n=_(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;Object(p.b)(r)}}catch(t){n.e(t)}finally{n.f()}}function E(t,e){var n,r=_(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.mimeTypes&&i.mimeTypes.includes(e))return i;if(e==="application/x.".concat(i.id))return i}}catch(t){r.e(t)}finally{r.f()}return null}function M(t,e){return e.testText?e.testText(t):(Array.isArray(e.tests)?e.tests:[e.tests]).some((function(e){return t.startsWith(e)}))}function C(t,e,n){return(Array.isArray(n.tests)?n.tests:[n.tests]).some((function(r){return function(t,e,n,r){if(r instanceof ArrayBuffer)return Object(d.a)(r,t,r.byteLength);switch(u()(r)){case"function":return r(t,n);case"string":var i=I(t,e,r.length);return r===i;default:return!1}}(t,e,n,r)}))}function I(t,e,n){if(t.byteLength<e+n)return"";for(var r=new DataView(t),i="",o=0;o<n;o++)i+=String.fromCharCode(r.getUint8(e+o));return i}},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(Array.isArray(t)){var n=t.length;if(!e||e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}return!1}function i(t){var e,n={};return function(i){for(var o in i)if(!r(i[o],n[o])){e=t(i),n=i;break}return e}}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h}));var r,i=n(11),o=n.n(i),a=n(0),s=n.n(a),u=n(12),c=(r={},s()(r,5126,[5126,1,"float"]),s()(r,35664,[5126,2,"vec2"]),s()(r,35665,[5126,3,"vec3"]),s()(r,35666,[5126,4,"vec4"]),s()(r,5124,[5124,1,"int"]),s()(r,35667,[5124,2,"ivec2"]),s()(r,35668,[5124,3,"ivec3"]),s()(r,35669,[5124,4,"ivec4"]),s()(r,5125,[5125,1,"uint"]),s()(r,36294,[5125,2,"uvec2"]),s()(r,36295,[5125,3,"uvec3"]),s()(r,36296,[5125,4,"uvec4"]),s()(r,35670,[5126,1,"bool"]),s()(r,35671,[5126,2,"bvec2"]),s()(r,35672,[5126,3,"bvec3"]),s()(r,35673,[5126,4,"bvec4"]),s()(r,35674,[5126,8,"mat2"]),s()(r,35685,[5126,8,"mat2x3"]),s()(r,35686,[5126,8,"mat2x4"]),s()(r,35675,[5126,12,"mat3"]),s()(r,35687,[5126,12,"mat3x2"]),s()(r,35688,[5126,12,"mat3x4"]),s()(r,35676,[5126,16,"mat4"]),s()(r,35689,[5126,16,"mat4x2"]),s()(r,35690,[5126,16,"mat4x3"]),r);function l(t){switch(t){case 0:return 0;case 1:case 3:case 2:return 1;case 4:case 5:case 6:return 4;default:return Object(u.a)(!1),0}}function f(t){var e=c[t];if(!e)return null;var n=o()(e,2);return{type:n[0],components:n[1]}}function h(t,e){switch(t){case 5120:case 5121:case 5122:case 5123:t=5126}for(var n in c){var r=o()(c[n],3),i=r[0],a=r[1],s=r[2];if(i===t&&a===e)return{glType:n,name:s}}return null}},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d}));var r,i,o,a=n(0),s=n.n(a),u=n(10),c=(r={},s()(r,6407,{dataFormat:6407,types:[5121,33635]}),s()(r,6408,{dataFormat:6408,types:[5121,32819,32820]}),s()(r,6406,{dataFormat:6406,types:[5121]}),s()(r,6409,{dataFormat:6409,types:[5121]}),s()(r,6410,{dataFormat:6410,types:[5121]}),s()(r,33326,{dataFormat:6403,types:[5126],gl2:!0}),s()(r,33328,{dataFormat:33319,types:[5126],gl2:!0}),s()(r,34837,{dataFormat:6407,types:[5126],gl2:!0}),s()(r,34836,{dataFormat:6408,types:[5126],gl2:!0}),r),l=(i={},s()(i,6403,1),s()(i,36244,1),s()(i,33319,2),s()(i,33320,2),s()(i,6407,3),s()(i,36248,3),s()(i,6408,4),s()(i,36249,4),s()(i,6402,1),s()(i,34041,1),s()(i,6406,1),s()(i,6409,1),s()(i,6410,2),i),f=(o={},s()(o,5126,4),s()(o,5125,4),s()(o,5124,4),s()(o,5123,2),s()(o,5122,2),s()(o,5131,2),s()(o,5120,1),s()(o,5121,1),o);function h(t,e){var n=c[e];if(!n)return!1;if(void 0===n.gl1&&void 0===n.gl2)return!0;var r=Object(u.j)(t)&&n.gl2||n.gl1;return"string"==typeof r?t.getExtension(r):r}function d(t,e){var n=c[e];switch(n&&n.types[0]){case 5126:return t.getExtension("OES_texture_float_linear");case 5131:return t.getExtension("OES_texture_half_float_linear");default:return!0}}},,function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return l}));var r=n(15),i={self:"undefined"!=typeof self&&self,window:"undefined"!=typeof window&&window,global:"undefined"!=typeof global&&global,document:"undefined"!=typeof document&&document},o=i.self||i.window||i.global||{},a=i.window||i.self||i.global||{},s=i.global||i.self||i.window||{},u=i.document||{},c="object"!==("undefined"==typeof process?"undefined":n.n(r)()(process))||"[object process]"!==String(process)||process.browser,l="function"==typeof importScripts,f="undefined"!=typeof process&&process.version&&/v([0-9]*)/.exec(process.version);f&&parseFloat(f[1])},function(t,e,n){"use strict";n.r(e);var r=n(98),i=n(4),o=n.n(i),a=n(8),s=n.n(a),u=n(25);function c(t,e,n){return l.apply(this,arguments)}function l(){return(l=s()(o.a.mark((function t(e,n,r){var i;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("number"!=typeof e){t.next=4;break}return t.next=3,u.a._readToArrayBuffer(e,n,r);case 3:return t.abrupt("return",t.sent);case 4:return e instanceof Blob||(e=new Blob([e])),i=e.slice(n,n+r),t.next=8,f(i);case 8:return t.abrupt("return",t.sent);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(t){return h.apply(this,arguments)}function h(){return(h=s()(o.a.mark((function t(e){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t,n){var r=new FileReader;r.onload=function(e){var n;return t(null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.result)},r.onerror=function(t){return n(t)},r.readAsArrayBuffer(e)}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var d=n(96),p=n(89),v=n(83),g=n(101);function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=Object(d.b)(t),!p.c){var n=u.a.readFileSync(t,e);return"string"!=typeof n?Object(v.d)(n):n}return e.nothrow||Object(g.a)(!1),null}var m=n(139);function b(t,e,n){return _.apply(this,arguments)}function _(){return(_=s()(o.a.mark((function t(e,n,r){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=Object(d.b)(e),p.c){t.next=4;break}return t.next=4,u.a.writeFile(e,Object(m.a)(n),{flag:"w"});case 4:Object(g.a)(!1);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t,e,n){t=Object(d.b)(t),p.c||u.a.writeFileSync(t,Object(m.a)(e),{flag:"w"}),Object(g.a)(!1)}var x=n(48);function O(t){Object(x.d)(t)}var P=n(107),S=n(84),k=n(100),j=n(15),A=n.n(j),T=n(54),E=n(118),M=n(93),C=n(73);function I(t,e,n,r){Object(g.a)(!r||"object"===A()(r)),Array.isArray(e)||Object(T.a)(e)||(r=void 0,n=e,e=void 0),n=n||{};var i=e,o=Object(M.b)(i,r),a=Object(S.b)(t,o,n);if(!a)return null;n=Object(x.c)(n,a,o);var s=Object(C.b)(t).url;return function(t,e,n,r){if(e=Object(E.b)(e,t,n),t.parseTextSync&&"string"==typeof e)return t.parseTextSync(e,n);if(t.parseSync&&e instanceof ArrayBuffer)return t.parseSync(e,n,r);throw new Error("".concat(t.name," loader: 'parseSync' not supported by this loader, use 'parse' instead. ").concat(r.url||""))}(a,t,n,r=Object(M.a)({url:s,parseSync:I,parse:function(){throw new Error("parseSync called parse")},loaders:e},n))}var R=n(0),L=n.n(R),D=n(57),F=n.n(D),N=n(33),z=n.n(N),B=n(43),U=n.n(B),V=n(239),G=n.n(V),W=n(146);function H(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H(Object(n),!0).forEach((function(e){L()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Z(t,e,n,r){return X.apply(this,arguments)}function X(){return(X=s()(o.a.mark((function t(e,n,r,i){var a,s,u;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Object(g.a)(!i||"object"===A()(i)),Array.isArray(n)||Object(T.a)(n)||(i=void 0,r=n,n=void 0),t.next=4,e;case 4:return e=t.sent,r=r||{},a=Object(C.b)(e),s=a.url,t.next=9,Object(S.a)(e,n,r);case 9:if(u=t.sent){t.next=12;break}return t.abrupt("return",null);case 12:return r=Object(x.c)(r,u,n,s),i=Object(M.a)({url:s,parseInBatches:Z,parse:k.a,loaders:n},r,i),t.next=16,Y(u,e,r,i);case 16:return t.abrupt("return",t.sent);case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Y(t,e,n,r){return K.apply(this,arguments)}function K(){return(K=s()(o.a.mark((function t(e,n,r,i){var a,s,u,c;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=function(){return(c=F()(o.a.mark((function t(e){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s;case 2:return t.delegateYield(G()(U()(e),z.a),"t0",3);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)},u=function(t){return c.apply(this,arguments)},t.next=4,$(e,n,r,i);case 4:if(a=t.sent,r.metadata){t.next=7;break}return t.abrupt("return",a);case 7:return s={batchType:"metadata",metadata:{_loader:e,_context:i},data:[],bytesUsed:0},t.abrupt("return",u(a));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function $(t,e,n,r){return J.apply(this,arguments)}function J(){return(J=s()(o.a.mark((function t(e,n,r,i){var a,s,u,c;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=function(){return(c=F()(o.a.mark((function t(){var n,a,u;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,z()(Object(W.a)(s));case 2:return n=t.sent,t.next=5,z()(Object(k.a)(n,e,q(q({},r),{},{mimeType:e.mimeTypes[0]}),i));case 5:return a=t.sent,u={mimeType:e.mimeTypes[0],shape:Array.isArray(a)?"row-table":"unknown",batchType:"data",data:a,length:Array.isArray(a)?a.length:1},t.next=9,u;case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)},u=function(){return c.apply(this,arguments)},t.next=4,Object(E.c)(n,r);case 4:return a=t.sent,t.next=7,Q(a,(null==r?void 0:r.transforms)||[]);case 7:if(s=t.sent,!e.parseInBatches){t.next=10;break}return t.abrupt("return",e.parseInBatches(s,r,i));case 10:return t.abrupt("return",u());case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Q(t){return tt.apply(this,arguments)}function tt(){return(tt=s()(o.a.mark((function t(e){var n,r,i,a,s,u,c,l,f=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=f.length>1&&void 0!==f[1]?f[1]:[],r=e,i=!0,a=!1,t.prev=4,u=U()(n);case 6:return t.next=8,u.next();case 8:return c=t.sent,i=c.done,t.next=12,c.value;case 12:if(l=t.sent,i){t.next=19;break}r=l(r);case 16:i=!0,t.next=6;break;case 19:t.next=25;break;case 21:t.prev=21,t.t0=t.catch(4),a=!0,s=t.t0;case 25:if(t.prev=25,t.prev=26,i||null==u.return){t.next=30;break}return t.next=30,u.return();case 30:if(t.prev=30,!a){t.next=33;break}throw s;case 33:return t.finish(30);case 34:return t.finish(25);case 35:return t.abrupt("return",r);case 36:case"end":return t.stop()}}),t,null,[[4,21,25,35],[26,,30,34]])})))).apply(this,arguments)}var et=n(203);function nt(t,e,n,r){Array.isArray(e)||Object(T.a)(e)||(void 0,n=e,e=null);var i=Object(x.a)(n||{});return Array.isArray(t)?t.map((function(t){return rt(t,e,n,i)})):rt(t,e,n,i)}function rt(t,e,n,r){return it.apply(this,arguments)}function it(){return(it=s()(o.a.mark((function t(e,n,r,i){var a,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof e){t.next=8;break}return a=e,t.next=4,i(a);case 4:return s=t.sent,t.next=7,Z(s,n,r);case 7:return t.abrupt("return",t.sent);case 8:return t.next=10,Z(e,n,r);case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ot(t,e,n){return at.apply(this,arguments)}function at(){return(at=s()(o.a.mark((function t(e,n,i){var a,s,u,c,l,f,h,d,g,y,m,_,w;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.encode){t.next=4;break}return t.next=3,n.encode(e,i);case 3:return t.abrupt("return",t.sent);case 4:if(!n.encodeSync){t.next=6;break}return t.abrupt("return",n.encodeSync(e,i));case 6:if(!n.encodeText){t.next=12;break}return t.t0=new TextEncoder,t.next=10,n.encodeText(e,i);case 10:return t.t1=t.sent,t.abrupt("return",t.t0.encode.call(t.t0,t.t1));case 12:if(!n.encodeInBatches){t.next=49;break}a=lt(e,n,i),s=[],u=!0,c=!1,t.prev=17,f=U()(a);case 19:return t.next=21,f.next();case 21:return h=t.sent,u=h.done,t.next=25,h.value;case 25:if(d=t.sent,u){t.next=32;break}g=d,s.push(g);case 29:u=!0,t.next=19;break;case 32:t.next=38;break;case 34:t.prev=34,t.t2=t.catch(17),c=!0,l=t.t2;case 38:if(t.prev=38,t.prev=39,u||null==f.return){t.next=43;break}return t.next=43,f.return();case 43:if(t.prev=43,!c){t.next=46;break}throw l;case 46:return t.finish(43);case 47:return t.finish(38);case 48:return t.abrupt("return",v.b.apply(void 0,s));case 49:if(p.c||!n.encodeURLtoURL){t.next=61;break}return y=dt("input"),t.next=53,b(y,e);case 53:return m=dt("output"),t.next=56,ft(y,m,n,i);case 56:return _=t.sent,t.next=59,Object(r.a)(_);case 59:return w=t.sent,t.abrupt("return",w.arrayBuffer());case 61:throw new Error("Writer could not encode data");case 62:case"end":return t.stop()}}),t,null,[[17,34,38,48],[39,,43,47]])})))).apply(this,arguments)}function st(t,e,n){if(e.encodeSync)return e.encodeSync(t,n);throw new Error("Writer could not synchronously encode data")}function ut(t,e,n){return ct.apply(this,arguments)}function ct(){return(ct=s()(o.a.mark((function t(e,n,r){var i;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.text||!n.encodeText){t.next=4;break}return t.next=3,n.encodeText(e,r);case 3:return t.abrupt("return",t.sent);case 4:if(!n.text||!n.encode&&!n.encodeInBatches){t.next=9;break}return t.next=7,ot(e,n,r);case 7:return i=t.sent,t.abrupt("return",(new TextDecoder).decode(i));case 9:throw new Error("Writer could not encode data as text");case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function lt(t,e,n){if(e.encodeInBatches){var r=function(t){return[{table:t,start:0,end:t.length}]}(t);return e.encodeInBatches(r,n)}throw new Error("Writer could not encode data in batches")}function ft(t,e,n,r){return ht.apply(this,arguments)}function ht(){return(ht=s()(o.a.mark((function t(e,n,r,i){var a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=Object(d.b)(e),n=Object(d.b)(n),!p.c&&r.encodeURLtoURL){t.next=4;break}throw new Error;case 4:return t.next=6,r.encodeURLtoURL(e,n,i);case 6:return a=t.sent,t.abrupt("return",a);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function dt(t){return"/tmp/".concat(t)}function pt(t,e,n,r){return vt.apply(this,arguments)}function vt(){return(vt=s()(o.a.mark((function t(e,n,r,i){var a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot(e,r,i);case 2:return a=t.sent,t.next=5,b(n,a);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function gt(t,e,n,r){return w(e,st(t,n,r))}var yt=n(208),mt=n(119);function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _t(t,e){var n=t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():t[Symbol.iterator]();return new ReadableStream({type:"bytes",pull:function(t){return s()(o.a.mark((function e(){var r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.next();case 3:r=e.sent,i=r.done,a=r.value,i?t.close():t.enqueue(new Uint8Array(a)),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),t.error(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))()},cancel:function(){return s()(o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null==n?void 0:null===(e=n.return)||void 0===e?void 0:e.call(n);case 2:case"end":return t.stop()}}),t)})))()}},function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(n),!0).forEach((function(e){L()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({highWaterMark:Math.pow(2,24)},e))}var wt=n(240);function xt(t,e){return p.c?_t(t,e):Object(wt.makeNodeStream)(t,e)}var Ot,Pt,St=n(209),kt={name:"Null loader",id:"null",module:"core",version:"3.0.8",worker:!0,mimeTypes:["application/x.empty"],extensions:["null"],tests:[function(){return!1}],options:{null:{}}},jt={name:"Null loader",id:"null",module:"core",version:"3.0.8",mimeTypes:["application/x.empty"],extensions:["null"],parse:(Pt=s()(o.a.mark((function t(e){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}}),t)}))),function(t){return Pt.apply(this,arguments)}),parseSync:function(t){return t},parseInBatches:(Ot=F()(o.a.mark((function t(e){var n,r,i,a,s,u,c;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=!0,r=!1,t.prev=2,a=U()(e);case 4:return t.next=6,z()(a.next());case 6:return s=t.sent,n=s.done,t.next=10,z()(s.value);case 10:if(u=t.sent,n){t.next=18;break}return c=u,t.next=15,c;case 15:n=!0,t.next=4;break;case 18:t.next=24;break;case 20:t.prev=20,t.t0=t.catch(2),r=!0,i=t.t0;case 24:if(t.prev=24,t.prev=25,n||null==a.return){t.next=29;break}return t.next=29,z()(a.return());case 29:if(t.prev=29,!r){t.next=32;break}throw i;case 32:return t.finish(29);case 33:return t.finish(24);case 34:case"end":return t.stop()}}),t,null,[[2,20,24,34],[25,,29,33]])}))),function(t){return Ot.apply(this,arguments)}),tests:[function(){return!1}],options:{null:{}}},At=n(210);function Tt(t,e){return Et.apply(this,arguments)}function Et(){return(Et=s()(o.a.mark((function t(e,n){var r,i,a,u,c,l,f=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=f.length>2&&void 0!==f[2]?f[2]:function(){},i=f.length>3&&void 0!==f[3]?f[3]:function(){},t.next=4,e;case 4:if((e=t.sent).ok){t.next=7;break}return t.abrupt("return",e);case 7:if(a=e.body){t.next=10;break}return t.abrupt("return",e);case 10:if(u=e.headers.get("content-length")||0,c=u&&parseInt(u),u>0){t.next=14;break}return t.abrupt("return",e);case 14:if("undefined"!=typeof ReadableStream&&a.getReader){t.next=16;break}return t.abrupt("return",e);case 16:return l=new ReadableStream({start:function(t){return s()(o.a.mark((function e(){var s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=a.getReader(),e.next=3,Mt(t,s,0,c,n,r,i);case 3:case"end":return e.stop()}}),e)})))()}}),t.abrupt("return",new Response(l));case 18:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Mt(t,e,n,r,i,o,a){return Ct.apply(this,arguments)}function Ct(){return(Ct=s()(o.a.mark((function t(e,n,r,i,a,s,u){var c,l,f,h;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.read();case 3:if(c=t.sent,l=c.done,f=c.value,!l){t.next=10;break}return s(),e.close(),t.abrupt("return");case 10:return r+=f.byteLength,h=Math.round(r/i*100),a(h,{loadedBytes:r,totalBytes:i}),e.enqueue(f),t.next=16,Mt(e,n,r,i,a,s,u);case 16:t.next=22;break;case 18:t.prev=18,t.t0=t.catch(0),e.error(t.t0),u(t.t0);case 22:case"end":return t.stop()}}),t,null,[[0,18]])})))).apply(this,arguments)}var It=n(1),Rt=n.n(It),Lt=n(2),Dt=n.n(Lt),Ft=n(7),Nt=function(){function t(e,n){Rt()(this,t),Object(Ft.a)(this,"_fetch",void 0),Object(Ft.a)(this,"files",{}),Object(Ft.a)(this,"lowerCaseFiles",{}),Object(Ft.a)(this,"usedFiles",{}),this._fetch=(null==n?void 0:n.fetch)||fetch;for(var r=0;r<e.length;++r){var i=e[r];this.files[i.name]=i,this.lowerCaseFiles[i.name.toLowerCase()]=i,this.usedFiles[i.name]=!1}this.fetch=this.fetch.bind(this)}var e,n,r,i,a,u,c;return Dt()(t,[{key:"fetch",value:(c=s()(o.a.mark((function t(e,n){var r,i,a,s,u,c,l,f,h;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.includes("://")){t.next=2;break}return t.abrupt("return",this._fetch(e,n));case 2:if(r=this.files[e]){t.next=5;break}return t.abrupt("return",new Response(e,{status:400,statusText:"NOT FOUND"}));case 5:if(i=new Headers(null==n?void 0:n.headers),a=i.get("Range"),!(s=a&&/bytes=($1)-($2)/.exec(a))){t.next=17;break}return u=parseInt(s[1]),c=parseInt(s[2]),t.next=13,r.slice(u,c).arrayBuffer();case 13:return l=t.sent,f=new Response(l),Object.defineProperty(f,"url",{value:e}),t.abrupt("return",f);case 17:return h=new Response(r),Object.defineProperty(h,"url",{value:e}),t.abrupt("return",h);case 20:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"readdir",value:(u=s()(o.a.mark((function t(e){var n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r in n=[],this.files)n.push(r);return t.abrupt("return",n);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"stat",value:(a=s()(o.a.mark((function t(e,n){var r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.files[e]){t.next=3;break}throw new Error(e);case 3:return t.abrupt("return",{size:r.size});case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"unlink",value:(i=s()(o.a.mark((function t(e){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete this.files[e],delete this.lowerCaseFiles[e],this.usedFiles[e]=!0;case 3:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"open",value:(r=s()(o.a.mark((function t(e,n,r){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.files[e]);case 1:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"read",value:(n=s()(o.a.mark((function t(e,n){var r,i,a,s,u=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u.length>2&&void 0!==u[2]&&u[2],r=u.length>3&&void 0!==u[3]?u[3]:n.byteLength,u.length>4&&void 0!==u[4]&&u[4],i=e,a=0,t.next=7,i.slice(a,a+r).arrayBuffer();case 7:return s=t.sent,t.abrupt("return",{bytesRead:r,buffer:s});case 9:case"end":return t.stop()}}),t)}))),function(t,e){return n.apply(this,arguments)})},{key:"close",value:(e=s()(o.a.mark((function t(e){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"_getFile",value:function(t,e){var n=this.files[t]||this.lowerCaseFiles[t];return n&&e&&(this.usedFiles[t]=!0),n}}]),t}(),zt=n(123),Bt=n(23);n.d(e,"fetchFile",(function(){return r.a})),n.d(e,"readArrayBuffer",(function(){return c})),n.d(e,"readFileSync",(function(){return y})),n.d(e,"writeFile",(function(){return b})),n.d(e,"writeFileSync",(function(){return w})),n.d(e,"setLoaderOptions",(function(){return O})),n.d(e,"registerLoaders",(function(){return P.c})),n.d(e,"selectLoader",(function(){return S.a})),n.d(e,"selectLoaderSync",(function(){return S.b})),n.d(e,"parse",(function(){return k.a})),n.d(e,"parseSync",(function(){return I})),n.d(e,"parseInBatches",(function(){return Z})),n.d(e,"load",(function(){return et.a})),n.d(e,"loadInBatches",(function(){return nt})),n.d(e,"encode",(function(){return ot})),n.d(e,"encodeSync",(function(){return st})),n.d(e,"encodeInBatches",(function(){return lt})),n.d(e,"encodeText",(function(){return ut})),n.d(e,"encodeURLtoURL",(function(){return ft})),n.d(e,"save",(function(){return pt})),n.d(e,"saveSync",(function(){return gt})),n.d(e,"setPathPrefix",(function(){return d.c})),n.d(e,"getPathPrefix",(function(){return d.a})),n.d(e,"resolvePath",(function(){return d.b})),n.d(e,"RequestScheduler",(function(){return yt.a})),n.d(e,"makeIterator",(function(){return mt.a})),n.d(e,"makeStream",(function(){return xt})),n.d(e,"makeDOMStream",(function(){return _t})),n.d(e,"makeNodeStream",(function(){return St.makeNodeStream})),n.d(e,"NullWorkerLoader",(function(){return kt})),n.d(e,"NullLoader",(function(){return jt})),n.d(e,"JSONLoader",(function(){return At.a})),n.d(e,"_fetchProgress",(function(){return Tt})),n.d(e,"_BrowserFileSystem",(function(){return Nt})),n.d(e,"_unregisterLoaders",(function(){return P.a})),n.d(e,"isBrowser",(function(){return p.c})),n.d(e,"isWorker",(function(){return p.d})),n.d(e,"self",(function(){return p.e})),n.d(e,"window",(function(){return p.f})),n.d(e,"global",(function(){return p.b})),n.d(e,"document",(function(){return p.a})),n.d(e,"assert",(function(){return g.a})),n.d(e,"forEach",(function(){return W.b})),n.d(e,"concatenateArrayBuffersAsync",(function(){return W.a})),n.d(e,"makeTextDecoderIterator",(function(){return zt.c})),n.d(e,"makeTextEncoderIterator",(function(){return zt.d})),n.d(e,"makeLineIterator",(function(){return zt.a})),n.d(e,"makeNumberedLineIterator",(function(){return zt.b})),n.d(e,"isPureObject",(function(){return Bt.h})),n.d(e,"isPromise",(function(){return Bt.g})),n.d(e,"isIterable",(function(){return Bt.d})),n.d(e,"isAsyncIterable",(function(){return Bt.a})),n.d(e,"isIterator",(function(){return Bt.e})),n.d(e,"isResponse",(function(){return Bt.j})),n.d(e,"isReadableStream",(function(){return Bt.i})),n.d(e,"isWritableStream",(function(){return Bt.k}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(5),u=n.n(s),c=n(6),l=n.n(c),f=n(3),h=n.n(f),d=n(166),p=n(10),v=n(174);function g(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}var b=function(t){u()(n,t);var e=m(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"render",value:function(t){var e=this.gl;return Object(p.n)(e,{framebuffer:t.target}),this._drawLayers(t)}},{key:"_drawLayers",value:function(t){var e=t.viewports,n=t.views,r=t.onViewportActive,i=t.clearCanvas,o=void 0===i||i;t.pass=t.pass||"unknown";var a=this.gl;o&&function(t){var e=t.drawingBufferWidth,n=t.drawingBufferHeight;Object(p.n)(t,{viewport:[0,0,e,n]}),t.clear(16640)}(a);var s,u=[],c=g(e);try{for(c.s();!(s=c.n()).done;){var l=s.value,f=l.viewport||l,h=n&&n[f.id];r(f);var d=this._getDrawLayerParams(f,t);t.view=h;var v,y=g(f.subViewports||[f]);try{for(y.s();!(v=y.n()).done;){var m=v.value;t.viewport=m;var b=this._drawLayersInViewport(a,t,d);u.push(b)}}catch(t){y.e(t)}finally{y.f()}}}catch(t){c.e(t)}finally{c.f()}return u}},{key:"_getDrawLayerParams",value:function(t,e){for(var n=e.layers,r=e.pass,i=e.layerFilter,o=e.effects,a=e.moduleParameters,s=[],u=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},i=function i(o,a){var s,u=o.props._offset,c=o.id,l=o.parent&&o.parent.id;if(!l||l in n||i(o.parent,!1),l in r){var f=r[l]=r[l]||t(n[l],n);s=f(o,a),r[c]=f}else Number.isFinite(u)?(s=u+(n[l]||0),r[c]=null):s=e;return a&&s>=e&&(e=s+1),n[c]=s,s};return i}(),c={viewport:t,isPicking:r.startsWith("picking"),renderPass:r},l={},f=0;f<n.length;f++){var h=n[f],d=this._shouldDrawLayer(h,c,i,l),p={shouldDrawLayer:d,layerRenderIndex:u(h,d)};d&&(p.moduleParameters=this._getModuleParameters(h,o,r,a),p.layerParameters=this.getLayerParameters(h,f,t)),s[f]=p}return s}},{key:"_drawLayersInViewport",value:function(t,e,n){var r=e.layers,i=e.pass,o=e.viewport,a=e.view,s=function(t,e){var n=e.viewport,r=t.canvas?t.canvas.clientHeight||t.canvas.height:100,i=n,o=Object(p.e)(t);return[i.x*o,(r-i.y-i.height)*o,i.width*o,i.height*o]}(t,{viewport:o});if(a&&a.props.clear){var u=!0===a.props.clear?{color:!0,depth:!0}:a.props.clear;Object(p.o)(t,{scissorTest:!0,scissor:s},(function(){return Object(v.a)(t,u)}))}var c={totalCount:r.length,visibleCount:0,compositeCount:0,pickableCount:0};Object(p.n)(t,{viewport:s});for(var l=0;l<r.length;l++){var f=r[l],h=n[l],d=h.shouldDrawLayer,g=h.layerRenderIndex,y=h.moduleParameters,m=h.layerParameters;if(d&&f.props.pickable&&c.pickableCount++,f.isComposite)c.compositeCount++;else if(d){c.visibleCount++,y.viewport=o;try{f.drawLayer({moduleParameters:y,uniforms:{layerIndex:g},parameters:m})}catch(t){f.raiseError(t,"drawing ".concat(f," to ").concat(i))}}}return c}},{key:"shouldDrawLayer",value:function(t){return!0}},{key:"getModuleParameters",value:function(t,e){return null}},{key:"getLayerParameters",value:function(t,e){return t.props.parameters}},{key:"_shouldDrawLayer",value:function(t,e,n,r){if(!(this.shouldDrawLayer(t)&&t.props.visible))return!1;e.layer=t;for(var i=t.parent;i;){if(!i.props.visible||!i.filterSubLayer(e))return!1;e.layer=i,i=i.parent}if(n){var o=e.layer.id;if(o in r||(r[o]=n(e)),!r[o])return!1}return t.activateViewport(e.viewport),!0}},{key:"_getModuleParameters",value:function(t,e,n,r){var i=Object.assign(Object.create(t.props),{autoWrapLongitude:t.wrapLongitude,viewport:t.context.viewport,mousePosition:t.context.mousePosition,pickingActive:0,devicePixelRatio:Object(p.e)(this.gl)});if(e){var o,a=g(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;Object.assign(i,s.getModuleParameters(t))}}catch(t){a.e(t)}finally{a.f()}}return Object.assign(i,this.getModuleParameters(t,e),r)}}]),n}(d.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,t);var n=e.id,r=void 0===n?"effect":n;this.id=r,this.props=l({},e)}return u()(t,[{key:"preRender",value:function(){}},{key:"getModuleParameters",value:function(){}},{key:"cleanup",value:function(){}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return f}));var r=n(16),i=n.n(r),o=n(0),a=n.n(o),s=n(48);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(n)return n;var r=c({fetch:Object(s.a)(e,t)},t);return Array.isArray(r.loaders)||(r.loaders=null),r}function f(t,e){if(!e&&t&&!Array.isArray(t))return t;var n;if(t&&(n=Array.isArray(t)?t:[t]),e&&e.loaders){var r=Array.isArray(e.loaders)?e.loaders:[e.loaders];n=n?[].concat(i()(n),i()(r)):r}return n&&n.length?n:null}},function(t,e){},,function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var r="",i={};function o(t){r=t}function a(){return r}function s(t){for(var e in i)if(t.startsWith(e)){var n=i[e];t=t.replace(e,n)}return t.startsWith("http://")||t.startsWith("https://")||(t="".concat(r).concat(t)),t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(13),u=[255,255,255],c=[0,0,-1],l=0,f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,t);var n=e.color,r=void 0===n?u:n,o=e.intensity,a=void 0===o?1:o,f=e.direction,h=void 0===f?c:f,d=e._shadow,p=void 0!==d&&d;this.id=e.id||"directional-".concat(l++),this.color=r,this.intensity=a,this.type="directional",this.direction=new s.b(h).normalize().toArray(),this.shadow=p}return a()(t,[{key:"getProjectedLight",value:function(){return this}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(4),i=n.n(r),o=n(8),a=n.n(o),s=n(96),u=n(103);function c(t,e){return l.apply(this,arguments)}function l(){return(l=a()(i.a.mark((function t(e,n){var r;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof e){t.next=7;break}return e=Object(s.b)(e),r=n,null!=n&&n.fetch&&"function"!=typeof(null==n?void 0:n.fetch)&&(r=n.fetch),t.next=6,fetch(e,r);case 6:return t.abrupt("return",t.sent);case 7:return t.next=9,Object(u.b)(e);case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},function(t,e,n){"use strict";var r={name:"fp32",vs:"#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\nconst float TWO_PI = 6.2831854820251465;\nconst float PI_2 = 1.5707963705062866;\nconst float PI_16 = 0.1963495463132858;\n\nconst float SIN_TABLE_0 = 0.19509032368659973;\nconst float SIN_TABLE_1 = 0.3826834261417389;\nconst float SIN_TABLE_2 = 0.5555702447891235;\nconst float SIN_TABLE_3 = 0.7071067690849304;\n\nconst float COS_TABLE_0 = 0.9807852506637573;\nconst float COS_TABLE_1 = 0.9238795042037964;\nconst float COS_TABLE_2 = 0.8314695954322815;\nconst float COS_TABLE_3 = 0.7071067690849304;\n\nconst float INVERSE_FACTORIAL_3 = 1.666666716337204e-01;\nconst float INVERSE_FACTORIAL_5 = 8.333333767950535e-03;\nconst float INVERSE_FACTORIAL_7 = 1.9841270113829523e-04;\nconst float INVERSE_FACTORIAL_9 = 2.75573188446287533e-06;\n\nfloat sin_taylor_fp32(float a) {\n float r, s, t, x;\n\n if (a == 0.0) {\n return 0.0;\n }\n\n x = -a * a;\n s = a;\n r = a;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_3;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_5;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_7;\n s = s + t;\n\n r = r * x;\n t = r * INVERSE_FACTORIAL_9;\n s = s + t;\n\n return s;\n}\n\nvoid sincos_taylor_fp32(float a, out float sin_t, out float cos_t) {\n if (a == 0.0) {\n sin_t = 0.0;\n cos_t = 1.0;\n }\n sin_t = sin_taylor_fp32(a);\n cos_t = sqrt(1.0 - sin_t * sin_t);\n}\n\nfloat tan_taylor_fp32(float a) {\n float sin_a;\n float cos_a;\n\n if (a == 0.0) {\n return 0.0;\n }\n float z = floor(a / TWO_PI);\n float r = a - TWO_PI * z;\n\n float t;\n float q = floor(r / PI_2 + 0.5);\n int j = int(q);\n\n if (j < -2 || j > 2) {\n return 1.0 / 0.0;\n }\n\n t = r - PI_2 * q;\n\n q = floor(t / PI_16 + 0.5);\n int k = int(q);\n int abs_k = int(abs(float(k)));\n\n if (abs_k > 4) {\n return 1.0 / 0.0;\n } else {\n t = t - PI_16 * q;\n }\n\n float u = 0.0;\n float v = 0.0;\n\n float sin_t, cos_t;\n float s, c;\n sincos_taylor_fp32(t, sin_t, cos_t);\n\n if (k == 0) {\n s = sin_t;\n c = cos_t;\n } else {\n if (abs(float(abs_k) - 1.0) < 0.5) {\n u = COS_TABLE_0;\n v = SIN_TABLE_0;\n } else if (abs(float(abs_k) - 2.0) < 0.5) {\n u = COS_TABLE_1;\n v = SIN_TABLE_1;\n } else if (abs(float(abs_k) - 3.0) < 0.5) {\n u = COS_TABLE_2;\n v = SIN_TABLE_2;\n } else if (abs(float(abs_k) - 4.0) < 0.5) {\n u = COS_TABLE_3;\n v = SIN_TABLE_3;\n }\n if (k > 0) {\n s = u * sin_t + v * cos_t;\n c = u * cos_t - v * sin_t;\n } else {\n s = u * sin_t - v * cos_t;\n c = u * cos_t + v * sin_t;\n }\n }\n\n if (j == 0) {\n sin_a = s;\n cos_a = c;\n } else if (j == 1) {\n sin_a = c;\n cos_a = -s;\n } else if (j == -1) {\n sin_a = -c;\n cos_a = s;\n } else {\n sin_a = -s;\n cos_a = -c;\n }\n return sin_a / cos_a;\n}\n#endif\n\nfloat tan_fp32(float a) {\n#ifdef LUMA_FP32_TAN_PRECISION_WORKAROUND\n return tan_taylor_fp32(a);\n#else\n return tan(a);\n#endif\n}\n",fs:null},i={name:"geometry",vs:"\nstruct VertexGeometry {\n vec4 position;\n vec3 worldPosition;\n vec3 worldPositionAlt;\n vec3 normal;\n vec2 uv;\n vec3 pickingColor;\n} geometry = VertexGeometry(\n vec4(0.0),\n vec3(0.0),\n vec3(0.0),\n vec3(0.0),\n vec2(0.0),\n vec3(0.0)\n);\n",fs:"\n#define SMOOTH_EDGE_RADIUS 0.5\n\nstruct FragmentGeometry {\n vec2 uv;\n} geometry;\n\nfloat smoothedge(float edge, float x) {\n return smoothstep(edge - SMOOTH_EDGE_RADIUS, edge + SMOOTH_EDGE_RADIUS, x);\n}\n"},o=n(19),a=Object.keys(o.a).map((function(t){return"const int COORDINATE_SYSTEM_".concat(t," = ").concat(o.a[t],";")})).join(""),s=Object.keys(o.c).map((function(t){return"const int PROJECTION_MODE_".concat(t," = ").concat(o.c[t],";")})).join(""),u=Object.keys(o.d).map((function(t){return"const int UNIT_".concat(t.toUpperCase()," = ").concat(o.d[t],";")})).join(""),c="".concat(a,"\n").concat(s,"\n").concat(u,"\n\nuniform int project_uCoordinateSystem;\nuniform int project_uProjectionMode;\nuniform float project_uScale;\nuniform bool project_uWrapLongitude;\nuniform vec3 project_uCommonUnitsPerMeter;\nuniform vec3 project_uCommonUnitsPerWorldUnit;\nuniform vec3 project_uCommonUnitsPerWorldUnit2;\nuniform vec4 project_uCenter;\nuniform mat4 project_uModelMatrix;\nuniform mat4 project_uViewProjectionMatrix;\nuniform vec2 project_uViewportSize;\nuniform float project_uDevicePixelRatio;\nuniform float project_uFocalDistance;\nuniform vec3 project_uCameraPosition;\nuniform vec3 project_uCoordinateOrigin;\nuniform vec3 project_uCommonOrigin;\nuniform bool project_uPseudoMeters;\n\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / (PI * 2.0);\nconst vec3 ZERO_64_LOW = vec3(0.0);\nconst float EARTH_RADIUS = 6370972.0;\nconst float GLOBE_RADIUS = 256.0;\nfloat project_size() {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR &&\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT &&\n project_uPseudoMeters == false) {\n \n if (geometry.position.w == 0.0) {\n float y = clamp(geometry.worldPosition.y, -89.9, 89.9);\n return 1.0 / cos(radians(y));\n }\n \n float y = geometry.position.y / TILE_SIZE * 2.0 - 1.0;\n float y2 = y * y;\n float y4 = y2 * y2;\n float y6 = y4 * y2;\n return 1.0 + 4.9348 * y2 + 4.0587 * y4 + 1.5642 * y6;\n }\n return 1.0;\n}\nfloat project_size(float meters) {\n return meters * project_uCommonUnitsPerMeter.z * project_size();\n}\n\nvec2 project_size(vec2 meters) {\n return meters * project_uCommonUnitsPerMeter.xy * project_size();\n}\n\nvec3 project_size(vec3 meters) {\n return meters * project_uCommonUnitsPerMeter * project_size();\n}\n\nvec4 project_size(vec4 meters) {\n return vec4(meters.xyz * project_uCommonUnitsPerMeter, meters.w);\n}\nvec3 project_normal(vec3 vector) {\n vec4 normal_modelspace = project_uModelMatrix * vec4(vector, 0.0);\n return normalize(normal_modelspace.xyz * project_uCommonUnitsPerMeter);\n}\n\nvec4 project_offset_(vec4 offset) {\n float dy = offset.y;\n vec3 commonUnitsPerWorldUnit = project_uCommonUnitsPerWorldUnit + project_uCommonUnitsPerWorldUnit2 * dy;\n return vec4(offset.xyz * commonUnitsPerWorldUnit, offset.w);\n}\nvec2 project_mercator_(vec2 lnglat) {\n float x = lnglat.x;\n if (project_uWrapLongitude) {\n x = mod(x + 180., 360.0) - 180.;\n }\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan_fp32(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\nvec3 project_globe_(vec3 lnglatz) {\n float lambda = radians(lnglatz.x);\n float phi = radians(lnglatz.y);\n float cosPhi = cos(phi);\n float D = (lnglatz.z / EARTH_RADIUS + 1.0) * GLOBE_RADIUS;\n\n return vec3(\n sin(lambda) * cosPhi,\n -cos(lambda) * cosPhi,\n sin(phi)\n ) * D;\n}\nvec4 project_position(vec4 position, vec3 position64Low) {\n vec4 position_world = project_uModelMatrix * position;\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_mercator_(position_world.xy),\n project_size(position_world.z),\n position_world.w\n );\n }\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN) {\n position_world.xyz += project_uCoordinateOrigin;\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_globe_(position_world.xyz),\n position_world.w\n );\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n if (abs(position_world.y - project_uCoordinateOrigin.y) > 0.25) {\n return vec4(\n project_mercator_(position_world.xy) - project_uCommonOrigin.xy,\n project_size(position_world.z),\n position_world.w\n );\n }\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_IDENTITY ||\n (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET &&\n (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN))) {\n position_world.xyz -= project_uCoordinateOrigin;\n }\n return project_offset_(position_world + project_uModelMatrix * vec4(position64Low, 0.0));\n}\n\nvec4 project_position(vec4 position) {\n return project_position(position, ZERO_64_LOW);\n}\n\nvec3 project_position(vec3 position, vec3 position64Low) {\n vec4 projected_position = project_position(vec4(position, 1.0), position64Low);\n return projected_position.xyz;\n}\n\nvec3 project_position(vec3 position) {\n vec4 projected_position = project_position(vec4(position, 1.0), ZERO_64_LOW);\n return projected_position.xyz;\n}\n\nvec2 project_position(vec2 position) {\n vec4 projected_position = project_position(vec4(position, 0.0, 1.0), ZERO_64_LOW);\n return projected_position.xy;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n return viewProjectionMatrix * position + center;\n}\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(position, project_uViewProjectionMatrix, project_uCenter);\n}\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / project_uViewportSize * project_uDevicePixelRatio * 2.0;\n return offset * project_uFocalDistance;\n}\n\nfloat project_size_to_pixel(float meters) {\n return project_size(meters) * project_uScale;\n}\nfloat project_size_to_pixel(float size, int unit) {\n if (unit == UNIT_METERS) return project_size_to_pixel(size);\n if (unit == UNIT_COMMON) return size * project_uScale;\n return size;\n}\nfloat project_pixel_size(float pixels) {\n return pixels / project_uScale;\n}\nvec2 project_pixel_size(vec2 pixels) {\n return pixels / project_uScale;\n}\nmat3 project_get_orientation_matrix(vec3 up) {\n vec3 uz = normalize(up);\n vec3 ux = abs(uz.z) == 1.0 ? vec3(1.0, 0.0, 0.0) : normalize(vec3(uz.y, -uz.x, 0));\n vec3 uy = cross(uz, ux);\n return mat3(ux, uy, uz);\n}\n\nbool project_needs_rotation(vec3 commonPosition, out mat3 transform) {\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n transform = project_get_orientation_matrix(commonPosition);\n return true;\n }\n return false;\n}\n"),l=n(116),f={};e.a={name:"project",dependencies:[r,i],vs:c,getUniforms:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return t.viewport?Object(l.b)(t):{}}}},function(t,e,n){"use strict";var r=n(4),i=n.n(r),o=n(15),a=n.n(o),s=n(8),u=n.n(s),c=n(62),l=n(145);function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.a;Object(c.a)(t,"no worker provided");var n=t.version;return!(!e||!n)}var h=n(182),d=n(54),p=n(48),v=n(118),g=n(93),y=n(73),m=n(84);function b(t,e,n,r){return _.apply(this,arguments)}function _(){return(_=u()(i.a.mark((function t(e,n,r,o){var s,u,l,f,h;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Object(c.a)(!o||"object"===a()(o)),!n||Array.isArray(n)||Object(d.a)(n)||(o=void 0,r=n,n=void 0),t.next=4,e;case 4:return e=t.sent,r=r||{},s=Object(y.b)(e),u=s.url,l=n,f=Object(g.b)(l,o),t.next=11,Object(m.a)(e,f,r);case 11:if(h=t.sent){t.next=14;break}return t.abrupt("return",null);case 14:return r=Object(p.c)(r,h,f,u),o=Object(g.a)({url:u,parse:b,loaders:f},r,o),t.next=18,w(h,e,r,o);case 18:return t.abrupt("return",t.sent);case 19:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t,e,n,r){return x.apply(this,arguments)}function x(){return(x=u()(i.a.mark((function t(e,n,r,o){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return f(e),t.next=3,Object(v.a)(n,e,r);case 3:if(n=t.sent,!e.parseTextSync||"string"!=typeof n){t.next=7;break}return r.dataType="text",t.abrupt("return",e.parseTextSync(n,r,o,e));case 7:if(!Object(h.a)(e,r)){t.next=11;break}return t.next=10,Object(h.b)(e,n,r,o,b);case 10:return t.abrupt("return",t.sent);case 11:if(!e.parseText||"string"!=typeof n){t.next=15;break}return t.next=14,e.parseText(n,r,o,e);case 14:return t.abrupt("return",t.sent);case 15:if(!e.parse){t.next=19;break}return t.next=18,e.parse(n,r,o,e);case 18:return t.abrupt("return",t.sent);case 19:throw Object(c.a)(!e.parseSync),new Error("".concat(e.id," loader - no parser found and worker is disabled"));case 21:case"end":return t.stop()}}),t)})))).apply(this,arguments)}n.d(e,"a",(function(){return b}))},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"loader assertion failed.")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(28),a=n.n(o),s=n(2),u=n.n(s),c=n(5),l=n.n(c),f=n(6),h=n.n(f),d=n(3),p=n.n(d),v=n(10),g=n(65),y=n(12),m="";function b(t,e){return Object(y.a)("string"==typeof t),t=m+t,new Promise((function(n,r){try{var i=new Image;i.onload=function(){return n(i)},i.onerror=function(){return r(new Error("Could not load image ".concat(t,".")))},i.crossOrigin=e&&e.crossOrigin||"anonymous",i.src=t}catch(t){r(t)}}))}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}n.d(e,"a",(function(){return w}));var w=function(t){l()(n,t);var e=_(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i()(this,n),Object(v.b)(t),(o instanceof Promise||"string"==typeof o)&&(o={data:o}),"string"==typeof o.data&&(o=Object.assign({},o,{data:b(o.data)})),(r=e.call(this,t,Object.assign({},o,{target:3553}))).initialize(o),Object.seal(a()(r)),r}return u()(n,null,[{key:"isSupported",value:function(t,e){return g.a.isSupported(t,e)}}]),n}(g.a)},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var r=n(4),i=n.n(r),o=n(8),a=n.n(o),s=n(23),u=n(73);function c(t){return l.apply(this,arguments)}function l(){return(l=a()(i.a.mark((function t(e){var n,r,o,a,c,l,f;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Object(s.j)(e)){t.next=2;break}return t.abrupt("return",e);case 2:return n={},(r=Object(u.a)(e))>=0&&(n["content-length"]=String(r)),o=Object(u.b)(e),a=o.url,(c=o.type)&&(n["content-type"]=c),t.next=9,v(e);case 9:return(l=t.sent)&&(n["x-first-bytes"]=l),"string"==typeof e&&(e=(new TextEncoder).encode(e)),f=new Response(e,{headers:n}),Object.defineProperty(f,"url",{value:a}),t.abrupt("return",f);case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(t){return h.apply(this,arguments)}function h(){return(h=a()(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ok){t.next=5;break}return t.next=3,d(e);case 3:throw n=t.sent,new Error(n);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(t){return p.apply(this,arguments)}function p(){return(p=a()(i.a.mark((function t(e){var n,r,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n="Failed to fetch resource ".concat(e.url," (").concat(e.status,"): "),t.prev=1,r=e.headers.get("Content-Type"),o=e.statusText,!r.includes("application/json")){t.next=11;break}return t.t0=o,t.t1=" ",t.next=9,e.text();case 9:t.t2=t.sent,o=t.t0+=t.t1.concat.call(t.t1,t.t2);case 11:n=(n+=o).length>60?"".concat(n.slice(60),"..."):n,t.next=17;break;case 15:t.prev=15,t.t3=t.catch(1);case 17:return t.abrupt("return",n);case 18:case"end":return t.stop()}}),t,null,[[1,15]])})))).apply(this,arguments)}function v(t){return g.apply(this,arguments)}function g(){return(g=a()(i.a.mark((function t(e){var n,r,o,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=5,"string"!=typeof e){t.next=3;break}return t.abrupt("return","data:,".concat(e.slice(0,n)));case 3:if(!(e instanceof Blob)){t.next=8;break}return r=e.slice(0,5),t.next=7,new Promise((function(t){var e=new FileReader;e.onload=function(e){var n;return t(null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.result)},e.readAsDataURL(r)}));case 7:return t.abrupt("return",t.sent);case 8:if(!(e instanceof ArrayBuffer)){t.next=12;break}return o=e.slice(0,n),a=y(o),t.abrupt("return","data:base64,".concat(a));case 12:return t.abrupt("return",null);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(t){for(var e="",n=new Uint8Array(t),r=0;r<n.byteLength;r++)e+=String.fromCharCode(n[r]);return btoa(e)}},function(t,e,n){"use strict";var r,i=n(1),o=n.n(i),a=n(28),s=n.n(a),u=n(2),c=n.n(u),l=n(5),f=n.n(l),h=n(6),d=n.n(h),p=n(3),v=n.n(p),g=n(45),y=n(0),m=n.n(y),b="EXT_color_buffer_float",_=(r={},m()(r,33189,{bpp:2}),m()(r,33190,{gl2:!0,bpp:3}),m()(r,36012,{gl2:!0,bpp:4}),m()(r,36168,{bpp:1}),m()(r,34041,{bpp:4}),m()(r,35056,{gl2:!0,bpp:4}),m()(r,36013,{gl2:!0,bpp:5}),m()(r,32854,{bpp:2}),m()(r,36194,{bpp:2}),m()(r,32855,{bpp:2}),m()(r,33321,{gl2:!0,bpp:1}),m()(r,33330,{gl2:!0,bpp:1}),m()(r,33329,{gl2:!0,bpp:1}),m()(r,33332,{gl2:!0,bpp:2}),m()(r,33331,{gl2:!0,bpp:2}),m()(r,33334,{gl2:!0,bpp:4}),m()(r,33333,{gl2:!0,bpp:4}),m()(r,33323,{gl2:!0,bpp:2}),m()(r,33336,{gl2:!0,bpp:2}),m()(r,33335,{gl2:!0,bpp:2}),m()(r,33338,{gl2:!0,bpp:4}),m()(r,33337,{gl2:!0,bpp:4}),m()(r,33340,{gl2:!0,bpp:8}),m()(r,33339,{gl2:!0,bpp:8}),m()(r,32849,{gl2:!0,bpp:3}),m()(r,32856,{gl2:!0,bpp:4}),m()(r,32857,{gl2:!0,bpp:4}),m()(r,36220,{gl2:!0,bpp:4}),m()(r,36238,{gl2:!0,bpp:4}),m()(r,36975,{gl2:!0,bpp:4}),m()(r,36214,{gl2:!0,bpp:8}),m()(r,36232,{gl2:!0,bpp:8}),m()(r,36226,{gl2:!0,bpp:16}),m()(r,36208,{gl2:!0,bpp:16}),m()(r,33325,{gl2:b,bpp:2}),m()(r,33327,{gl2:b,bpp:4}),m()(r,34842,{gl2:b,bpp:8}),m()(r,33326,{gl2:b,bpp:4}),m()(r,33328,{gl2:b,bpp:8}),m()(r,34836,{gl2:b,bpp:16}),m()(r,35898,{gl2:b,bpp:4}),r),w=n(10),x=n(12);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}function P(t,e,n){var r=n[e];if(!r)return!1;var i=Object(w.j)(t)&&r.gl2||r.gl1;return"string"==typeof i?t.getExtension(i):i}n.d(e,"a",(function(){return S}));var S=function(t){f()(n,t);var e=O(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o()(this,n),(r=e.call(this,t,i)).initialize(i),Object.seal(s()(r)),r}return c()(n,null,[{key:"isSupported",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{format:null},n=e.format;return!n||P(t,n,_)}},{key:"getSamplesForFormat",value:function(t,e){var n=e.format;return t.getInternalformatParameter(36161,n,32937)}}]),c()(n,[{key:"initialize",value:function(t){var e=t.format,n=t.width,r=void 0===n?1:n,i=t.height,o=void 0===i?1:i,a=t.samples,s=void 0===a?0:a;return Object(x.a)(e,"Needs format"),this._trackDeallocatedMemory(),this.gl.bindRenderbuffer(36161,this.handle),0!==s&&Object(w.j)(this.gl)?this.gl.renderbufferStorageMultisample(36161,s,e,r,o):this.gl.renderbufferStorage(36161,e,r,o),this.format=e,this.width=r,this.height=o,this.samples=s,this._trackAllocatedMemory(this.width*this.height*(this.samples||1)*_[this.format].bpp),this}},{key:"resize",value:function(t){var e=t.width,n=t.height;return e!==this.width||n!==this.height?this.initialize({width:e,height:n,format:this.format,samples:this.samples}):this}},{key:"_createHandle",value:function(){return this.gl.createRenderbuffer()}},{key:"_deleteHandle",value:function(){this.gl.deleteRenderbuffer(this.handle),this._trackDeallocatedMemory()}},{key:"_bindHandle",value:function(t){this.gl.bindRenderbuffer(36161,t)}},{key:"_syncHandle",value:function(t){this.format=this.getParameter(36164),this.width=this.getParameter(36162),this.height=this.getParameter(36163),this.samples=this.getParameter(36011)}},{key:"_getParameter",value:function(t){return this.gl.bindRenderbuffer(36161,this.handle),this.gl.getRenderbufferParameter(36161,t)}}]),n}(g.a)},function(t,e,n){var r=n(285),i=n(286),o=n(287),a=n(288);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},,function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var r=n(54),i=n(48);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=function(){var t=Object(i.b)();return t.loaderRegistry=t.loaderRegistry||[],t.loaderRegistry};function u(t){var e,n=s(),i=o(t=Array.isArray(t)?t:[t]);try{var a=function(){var t=e.value,i=Object(r.b)(t);n.find((function(t){return i===t}))||n.unshift(i)};for(i.s();!(e=i.n()).done;)a()}catch(t){i.e(t)}finally{i.f()}}function c(){return s()}function l(){Object(i.b)().loaderRegistry=[]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var r=n(11),i=n.n(r),o=n(0),a=n.n(o),s=n(1),u=n.n(s),c=n(2),l=n.n(c),f=n(28),h=n.n(f),d=n(9),p=n.n(d),v=n(5),g=n.n(v),y=n(6),m=n.n(y),b=n(3),_=n.n(b),w=n(47),x=n(26),O=n(31),P=n(13);function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_()(t);if(e){var i=_()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m()(this,n)}}var A=Math.PI/180;function T(t){return 512/4003e4/Math.cos(t*A)}var E=function(t){g()(n,t);var e=j(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,n);var i,o=r.latitude,a=void 0===o?0:o,s=r.longitude,c=void 0===s?0:s,l=r.zoom,f=void 0===l?11:l,d=r.pitch,p=void 0===d?0:d,v=r.bearing,g=void 0===v?0:v,y=r.nearZMultiplier,m=void 0===y?.1:y,b=r.farZMultiplier,_=void 0===b?1.01:b,w=r.orthographic,O=void 0!==w&&w,S=r.projectionMatrix,j=r.repeat,A=void 0!==j&&j,T=r.worldOffset,E=void 0===T?0:T,M=r.legacyMeterSizes,C=void 0!==M&&M,I=r.width,R=r.height,L=r.altitude,D=void 0===L?1.5:L,F=Math.pow(2,f);I=I||1,R=R||1;var N=null;S?(D=S[5]/2,i=Object(x.b)(D)):(r.fovy?(i=r.fovy,D=Object(x.e)(i)):i=Object(x.b)(D),N=Object(x.j)({width:I,height:R,pitch:p,fovy:i,nearZMultiplier:m,farZMultiplier:_}));var z=Object(x.k)({height:R,pitch:p,bearing:g,scale:F,altitude:D});if(E){var B=(new P.a).translate([512*E,0,0]);z=B.multiplyLeft(z)}return(t=e.call(this,k(k(k({},r),{},{width:I,height:R,viewMatrix:z,longitude:c,latitude:a,zoom:f},N),{},{fovy:i,focalDistance:D}))).latitude=a,t.longitude=c,t.zoom=f,t.pitch=p,t.bearing=g,t.altitude=D,t.fovy=i,t.orthographic=O,t._subViewports=A?[]:null,t._pseudoMeters=C,Object.freeze(h()(t)),t}return l()(n,[{key:"projectPosition",value:function(t){if(this._pseudoMeters)return p()(_()(n.prototype),"projectPosition",this).call(this,t);var e=this.projectFlat(t),r=i()(e,2);return[r[0],r[1],(t[2]||0)*T(t[1])]}},{key:"unprojectPosition",value:function(t){if(this._pseudoMeters)return p()(_()(n.prototype),"unprojectPosition",this).call(this,t);var e=this.unprojectFlat(t),r=i()(e,2),o=r[0],a=r[1];return[o,a,(t[2]||0)/T(a)]}},{key:"addMetersToLngLat",value:function(t,e){return Object(x.a)(t,e)}},{key:"panByPosition",value:function(t,e){var n=Object(x.n)(e,this.pixelUnprojectionMatrix),r=this.projectFlat(t),o=O.a([],r,O.d([],n)),a=O.a([],this.center,o),s=this.unprojectFlat(a),u=i()(s,2);return{longitude:u[0],latitude:u[1]}}},{key:"getBounds",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object(x.f)(this,t.z||0);return[Math.min(e[0][0],e[1][0],e[2][0],e[3][0]),Math.min(e[0][1],e[1][1],e[2][1],e[3][1]),Math.max(e[0][0],e[1][0],e[2][0],e[3][0]),Math.max(e[0][1],e[1][1],e[2][1],e[3][1])]}},{key:"fitBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,i=this.height,o=Object(x.c)(k({width:r,height:i,bounds:t},e)),a=o.longitude,s=o.latitude,u=o.zoom;return new n({width:r,height:i,longitude:a,latitude:s,zoom:u})}},{key:"subViewports",get:function(){if(this._subViewports&&!this._subViewports.length)for(var t=this.getBounds(),e=Math.floor((t[0]+180)/360),r=Math.ceil((t[2]-180)/360),i=e;i<=r;i++){var o=i?new n(k(k({},this),{},{worldOffset:i})):this;this._subViewports.push(o)}return this._subViewports}}]),n}(w.a);E.displayName="WebMercatorViewport"},function(t,e,n){"use strict";n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return I}));var r=n(9),i=n.n(r),o=n(0),a=n.n(o),s=n(1),u=n.n(s),c=n(2),l=n.n(c),f=n(5),h=n.n(f),d=n(6),p=n.n(d),v=n(3),g=n.n(v),y=n(13),m=n(70),b=n(117),_=n(26),w=n(42);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var S=0,k=0,j=1.5,A=0,T=20,E=0,M=60,C=function(t){h()(n,t);var e=P(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.makeViewport,o=r.width,a=r.height,s=r.latitude,c=r.longitude,l=r.zoom,f=r.bearing,h=void 0===f?k:f,d=r.pitch,p=void 0===d?S:d,v=r.altitude,g=void 0===v?j:v,y=r.maxZoom,m=void 0===y?T:y,b=r.minZoom,_=void 0===b?A:b,x=r.maxPitch,O=void 0===x?M:x,P=r.minPitch,C=void 0===P?E:P,I=r.startPanLngLat,R=r.startZoomLngLat,L=r.startRotatePos,D=r.startBearing,F=r.startPitch,N=r.startZoom,z=r.normalize;return u()(this,n),Object(w.a)(Number.isFinite(c)),Object(w.a)(Number.isFinite(s)),Object(w.a)(Number.isFinite(l)),(t=e.call(this,{width:o,height:a,latitude:s,longitude:c,zoom:l,bearing:h,pitch:p,altitude:g,maxZoom:m,minZoom:_,maxPitch:O,minPitch:C,normalize:z}))._state={startPanLngLat:I,startZoomLngLat:R,startRotatePos:L,startBearing:D,startPitch:F,startZoom:N},t.makeViewport=i,t}return l()(n,[{key:"panStart",value:function(t){var e=t.pos;return this._getUpdatedState({startPanLngLat:this._unproject(e)})}},{key:"pan",value:function(t){var e=t.pos,n=t.startPos,r=this._state.startPanLngLat||this._unproject(n);if(!r)return this;var i=this.makeViewport(this._viewportProps).panByPosition(r,e);return this._getUpdatedState(i)}},{key:"panEnd",value:function(){return this._getUpdatedState({startPanLngLat:null})}},{key:"rotateStart",value:function(t){var e=t.pos;return this._getUpdatedState({startRotatePos:e,startBearing:this._viewportProps.bearing,startPitch:this._viewportProps.pitch})}},{key:"rotate",value:function(t){var e,n=t.pos,r=t.deltaAngleX,i=void 0===r?0:r,o=t.deltaAngleY,a=void 0===o?0:o,s=this._state,u=s.startRotatePos,c=s.startBearing,l=s.startPitch;return u&&Number.isFinite(c)&&Number.isFinite(l)?(e=n?this._calculateNewPitchAndBearing(O(O({},this._getRotationParams(n,u)),{},{startBearing:c,startPitch:l})):{bearing:c+i,pitch:l+a},this._getUpdatedState(e)):this}},{key:"rotateEnd",value:function(){return this._getUpdatedState({startBearing:null,startPitch:null})}},{key:"zoomStart",value:function(t){var e=t.pos;return this._getUpdatedState({startZoomLngLat:this._unproject(e),startZoom:this._viewportProps.zoom})}},{key:"zoom",value:function(t){var e=t.pos,n=t.startPos,r=t.scale,i=this._state,o=i.startZoom,a=i.startZoomLngLat;Number.isFinite(o)||(o=this._viewportProps.zoom,a=this._unproject(n)||this._unproject(e));var s=this._calculateNewZoom({scale:r,startZoom:o}),u=this.makeViewport(O(O({},this._viewportProps),{},{zoom:s}));return this._getUpdatedState(O({zoom:s},u.panByPosition(a,e)))}},{key:"zoomEnd",value:function(){return this._getUpdatedState({startZoomLngLat:null,startZoom:null})}},{key:"zoomIn",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return this._zoomFromCenter(t)}},{key:"zoomOut",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;return this._zoomFromCenter(1/t)}},{key:"moveLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return this._panFromCenter([t,0])}},{key:"moveRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return this._panFromCenter([-t,0])}},{key:"moveUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return this._panFromCenter([0,t])}},{key:"moveDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;return this._panFromCenter([0,-t])}},{key:"rotateLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15;return this._getUpdatedState({bearing:this._viewportProps.bearing-t})}},{key:"rotateRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:15;return this._getUpdatedState({bearing:this._viewportProps.bearing+t})}},{key:"rotateUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this._getUpdatedState({pitch:this._viewportProps.pitch+t})}},{key:"rotateDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this._getUpdatedState({pitch:this._viewportProps.pitch-t})}},{key:"shortestPathFrom",value:function(t){var e=t.getViewportProps(),n=O({},this._viewportProps),r=n.bearing,i=n.longitude;return Math.abs(r-e.bearing)>180&&(n.bearing=r<0?r+360:r-360),Math.abs(i-e.longitude)>180&&(n.longitude=i<0?i+360:i-360),n}},{key:"_zoomFromCenter",value:function(t){var e=this._viewportProps,n=e.width,r=e.height;return this.zoom({pos:[n/2,r/2],scale:t})}},{key:"_panFromCenter",value:function(t){var e=this._viewportProps,n=e.width,r=e.height;return this.pan({startPos:[n/2,r/2],pos:[n/2+t[0],r/2+t[1]]})}},{key:"_getUpdatedState",value:function(t){return new this.constructor(O(O(O({makeViewport:this.makeViewport},this._viewportProps),this._state),t))}},{key:"_applyConstraints",value:function(t){var e=t.maxZoom,n=t.minZoom,r=t.zoom;t.zoom=Object(y.d)(r,n,e);var i=t.maxPitch,o=t.minPitch,a=t.pitch;t.pitch=Object(y.d)(a,o,i);var s=t.normalize;return(void 0===s||s)&&Object.assign(t,Object(_.m)(t)),t}},{key:"_unproject",value:function(t){var e=this.makeViewport(this._viewportProps);return t&&e.unproject(t)}},{key:"_calculateNewZoom",value:function(t){var e=t.scale,n=t.startZoom,r=this._viewportProps,i=r.maxZoom,o=r.minZoom,a=n+Math.log2(e);return Object(y.d)(a,o,i)}},{key:"_calculateNewPitchAndBearing",value:function(t){var e=t.deltaScaleX,n=t.deltaScaleY,r=t.startBearing,i=t.startPitch;n=Object(y.d)(n,-1,1);var o=this._viewportProps,a=o.minPitch,s=o.maxPitch,u=i;return n>0?u=i+n*(s-i):n<0&&(u=i-n*(a-i)),{pitch:u,bearing:r+180*e}}},{key:"_getRotationParams",value:function(t,e){var n=t[0]-e[0],r=t[1]-e[1],i=t[1],o=e[1],a=this._viewportProps,s=a.width,u=a.height,c=n/s,l=0;return r>0?Math.abs(u-o)>5&&(l=r/(o-u)*1.2):r<0&&o>5&&(l=1-i/o),{deltaScaleX:c,deltaScaleY:l=Math.min(1,Math.max(-1,l))}}}]),n}(b.a),I=function(t){h()(n,t);var e=P(n);function n(t){return u()(this,n),t.dragMode=t.dragMode||"pan",e.call(this,C,t)}return l()(n,[{key:"setProps",value:function(t){var e=this.controllerStateProps;i()(g()(n.prototype),"setProps",this).call(this,t),(!e||e.height!==t.height)&&this.updateViewport(new this.ControllerState(O(O({makeViewport:this.makeViewport},this.controllerStateProps),this._state)))}},{key:"linearTransitionProps",get:function(){return["longitude","latitude","zoom","bearing","pitch"]}}]),n}(m.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(13),u=n(42);function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var f=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(this,t),Array.isArray(e)&&(e={compare:e,extract:e,required:e});var n=e,r=n.compare,o=n.extract,a=n.required;this._propsToCompare=r,this._propsToExtract=o,this._requiredProps=a}return a()(t,[{key:"arePropsEqual",value:function(t,e){var n,r=c(this._propsToCompare||Object.keys(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!(i in t&&i in e&&Object(s.e)(t[i],e[i])))return!1}}catch(t){r.e(t)}finally{r.f()}return!0}},{key:"initializeProps",value:function(t,e){var n;if(this._propsToExtract){var r,i={},o={},a=c(this._propsToExtract);try{for(a.s();!(r=a.n()).done;){var s=r.value;i[s]=t[s],o[s]=e[s]}}catch(t){a.e(t)}finally{a.f()}n={start:i,end:o}}else n={start:t,end:e};return this._checkRequiredProps(n.start),this._checkRequiredProps(n.end),n}},{key:"interpolateProps",value:function(t,e,n){return e}},{key:"getDuration",value:function(t,e){return e.transitionDuration}},{key:"_checkRequiredProps",value:function(t){this._requiredProps&&this._requiredProps.forEach((function(e){var n=t[e];Object(u.a)(Number.isFinite(n)||Array.isArray(n),"".concat(e," is required for transition"))}))}}]),t}()},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s),c=n(9),l=n.n(c),f=n(5),h=n.n(f),d=n(6),p=n.n(d),v=n(3),g=n.n(v),y=n(205),m=n(228),b=n(227),_=n(19),w=n(150),x=n(246),O=n(175),P=n(172),S=n(72),k=n(131),j=n(206),A=n(44);function T(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var R=function(t){h()(n,t);var e=I(n);function n(t){a()(this,n);var r=t.fp64,i=t.IndexType,o=void 0===i?Uint32Array:i;return e.call(this,C(C({},t),{},{attributes:{positions:{size:3,type:r?Float64Array:Float32Array},vertexValid:{type:Uint8ClampedArray,size:1},indices:{type:o,size:1}}}))}return u()(n,[{key:"get",value:function(t){var e=this.attributes;return"indices"===t?e.indices&&e.indices.subarray(0,this.vertexCount):e[t]}},{key:"updateGeometry",value:function(t){l()(g()(n.prototype),"updateGeometry",this).call(this,t);var e=this.buffers.indices;e&&(this.vertexCount=(e.value||e).length)}},{key:"normalizeGeometry",value:function(t){if(this.normalize){if(t=k.b(t,this.positionSize),this.opts.resolution)return Object(A.b)(t.positions||t,t.holeIndices,{size:this.positionSize,gridResolution:this.opts.resolution,edgeTypes:!0});if(this.opts.wrapLongitude)return Object(A.c)(t.positions||t,t.holeIndices,{size:this.positionSize,maxLatitude:86,edgeTypes:!0})}return t}},{key:"getGeometrySize",value:function(t){if(Array.isArray(t)&&!Number.isFinite(t[0])){var e,n=0,r=T(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n+=this.getGeometrySize(i)}}catch(t){r.e(t)}finally{r.f()}return n}return(t.positions||t).length/this.positionSize}},{key:"getGeometryFromBuffer",value:function(t){return this.normalize||!this.buffers.indices?l()(g()(n.prototype),"getGeometryFromBuffer",this).call(this,t):function(){return null}}},{key:"updateGeometryAttributes",value:function(t,e){if(Array.isArray(t)&&!Number.isFinite(t[0])){var n,r=T(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=this.getGeometrySize(i);e.geometrySize=o,this.updateGeometryAttributes(i,e),e.vertexStart+=o,e.indexStart=this.indexStarts[e.geometryIndex+1]}}catch(t){r.e(t)}finally{r.f()}}else this._updateIndices(t,e),this._updatePositions(t,e),this._updateVertexValid(t,e)}},{key:"_updateIndices",value:function(t,e){var n=e.geometryIndex,r=e.vertexStart,i=e.indexStart,o=this.attributes,a=this.indexStarts,s=this.typedArrayManager,u=o.indices;if(u){var c=i,l=k.a(t,this.positionSize,this.opts.preproject);u=s.allocate(u,i+l.length,{copy:!0});for(var f=0;f<l.length;f++)u[c++]=l[f]+r;a[n+1]=i+l.length,o.indices=u}}},{key:"_updatePositions",value:function(t,e){var n=e.vertexStart,r=e.geometrySize,i=this.attributes.positions,o=this.positionSize;if(i)for(var a=t.positions||t,s=n,u=0;u<r;s++,u++){var c=a[u*o],l=a[u*o+1],f=o>2?a[u*o+2]:0;i[3*s]=c,i[3*s+1]=l,i[3*s+2]=f}}},{key:"_updateVertexValid",value:function(t,e){var n=e.vertexStart,r=e.geometrySize,i=this.attributes.vertexValid,o=this.positionSize,a=t&&t.holeIndices;if(t&&t.edgeTypes?i.set(t.edgeTypes,n):i.fill(1,n,n+r),a)for(var s=0;s<a.length;s++)i[n+a[s]/o-1]=0;i[n+r-1]=0}}]),n}(j.a),L="\nattribute vec2 vertexPositions;\nattribute float vertexValid;\n\nuniform bool extruded;\nuniform bool isWireframe;\nuniform float elevationScale;\nuniform float opacity;\n\nvarying vec4 vColor;\n\nstruct PolygonProps {\n vec4 fillColors;\n vec4 lineColors;\n vec3 positions;\n vec3 nextPositions;\n vec3 pickingColors;\n vec3 positions64Low;\n vec3 nextPositions64Low;\n float elevations;\n};\n\nvec3 project_offset_normal(vec3 vector) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSETS) {\n return normalize(vector * project_uCommonUnitsPerWorldUnit);\n }\n return project_normal(vector);\n}\n\nvoid calculatePosition(PolygonProps props) {\n#ifdef IS_SIDE_VERTEX\n if(vertexValid < 0.5){\n gl_Position = vec4(0.);\n return;\n }\n#endif\n\n vec3 pos;\n vec3 pos64Low;\n vec3 normal;\n vec4 colors = isWireframe ? props.lineColors : props.fillColors;\n\n geometry.worldPosition = props.positions;\n geometry.worldPositionAlt = props.nextPositions;\n geometry.pickingColor = props.pickingColors;\n\n#ifdef IS_SIDE_VERTEX\n pos = mix(props.positions, props.nextPositions, vertexPositions.x);\n pos64Low = mix(props.positions64Low, props.nextPositions64Low, vertexPositions.x);\n#else\n pos = props.positions;\n pos64Low = props.positions64Low;\n#endif\n\n if (extruded) {\n pos.z += props.elevations * vertexPositions.y * elevationScale;\n\n#ifdef IS_SIDE_VERTEX\n normal = vec3(\n props.positions.y - props.nextPositions.y + (props.positions64Low.y - props.nextPositions64Low.y),\n props.nextPositions.x - props.positions.x + (props.nextPositions64Low.x - props.positions64Low.x),\n 0.0);\n normal = project_offset_normal(normal);\n#else\n normal = vec3(0.0, 0.0, 1.0);\n#endif\n geometry.normal = normal;\n }\n\n gl_Position = project_position_to_clipspace(pos, pos64Low, vec3(0.), geometry.position);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n if (extruded) {\n vec3 lightColor = lighting_getLightColor(colors.rgb, project_uCameraPosition, geometry.position.xyz, normal);\n vColor = vec4(lightColor, colors.a * opacity);\n } else {\n vColor = vec4(colors.rgb, colors.a * opacity);\n }\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",D="#define SHADER_NAME solid-polygon-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 positions64Low;\nattribute float elevations;\nattribute vec4 fillColors;\nattribute vec4 lineColors;\nattribute vec3 pickingColors;\n\n".concat(L,"\n\nvoid main(void) {\n PolygonProps props;\n\n props.positions = positions;\n props.positions64Low = positions64Low;\n props.elevations = elevations;\n props.fillColors = fillColors;\n props.lineColors = lineColors;\n props.pickingColors = pickingColors;\n\n calculatePosition(props);\n}\n"),F="#define SHADER_NAME solid-polygon-layer-vertex-shader-side\n#define IS_SIDE_VERTEX\n\n\nattribute vec3 instancePositions;\nattribute vec3 nextPositions;\nattribute vec3 instancePositions64Low;\nattribute vec3 nextPositions64Low;\nattribute float instanceElevations;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\n".concat(L,"\n\nvoid main(void) {\n PolygonProps props;\n\n #if RING_WINDING_ORDER_CW == 1\n props.positions = instancePositions;\n props.positions64Low = instancePositions64Low;\n props.nextPositions = nextPositions;\n props.nextPositions64Low = nextPositions64Low;\n #else\n props.positions = nextPositions;\n props.positions64Low = nextPositions64Low;\n props.nextPositions = instancePositions;\n props.nextPositions64Low = instancePositions64Low;\n #endif\n props.elevations = instanceElevations;\n props.fillColors = instanceFillColors;\n props.lineColors = instanceLineColors;\n props.pickingColors = instancePickingColors;\n\n calculatePosition(props);\n}\n");function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function B(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(e,"a",(function(){return W}));var U=[0,0,0,255],V={filled:!0,extruded:!1,wireframe:!1,_normalize:!0,_windingOrder:"CW",elevationScale:{type:"number",min:0,value:1},getPolygon:{type:"accessor",value:function(t){return t.polygon}},getElevation:{type:"accessor",value:1e3},getFillColor:{type:"accessor",value:U},getLineColor:{type:"accessor",value:U},material:!0},G={enter:function(t,e){return e.length?e.subarray(e.length-t.length):t}},W=function(t){h()(n,t);var e=B(n);function n(){return a()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getShaders",value:function(t){return l()(g()(n.prototype),"getShaders",this).call(this,{vs:"top"===t?D:F,fs:"#define SHADER_NAME solid-polygon-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",defines:{RING_WINDING_ORDER_CW:this.props._normalize||"CCW"!==this.props._windingOrder?1:0},modules:[y.a,m.a,b.a]})}},{key:"initializeState",value:function(){var t=this,e=this.context,n=e.gl,r=e.viewport,i=this.props.coordinateSystem;r.isGeospatial&&i===_.a.DEFAULT&&(i=_.a.LNGLAT),this.setState({numInstances:0,polygonTesselator:new R({preproject:i===_.a.LNGLAT&&r.projectFlat,fp64:this.use64bitPositions(),IndexType:!n||Object(x.c)(n,O.a.ELEMENT_INDEX_UINT32)?Uint32Array:Uint16Array})});var o=this.getAttributeManager();o.remove(["instancePickingColors"]),o.add({indices:{size:1,isIndexed:!0,update:this.calculateIndices,noAlloc:!0},positions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:G,accessor:"getPolygon",update:this.calculatePositions,noAlloc:!0,shaderAttributes:{positions:{vertexOffset:0,divisor:0},instancePositions:{vertexOffset:0,divisor:1},nextPositions:{vertexOffset:1,divisor:1}}},vertexValid:{size:1,divisor:1,type:5121,update:this.calculateVertexValid,noAlloc:!0},elevations:{size:1,transition:G,accessor:"getElevation",shaderAttributes:{elevations:{divisor:0},instanceElevations:{divisor:1}}},fillColors:{alias:"colors",size:this.props.colorFormat.length,type:5121,normalized:!0,transition:G,accessor:"getFillColor",defaultValue:U,shaderAttributes:{fillColors:{divisor:0},instanceFillColors:{divisor:1}}},lineColors:{alias:"colors",size:this.props.colorFormat.length,type:5121,normalized:!0,transition:G,accessor:"getLineColor",defaultValue:U,shaderAttributes:{lineColors:{divisor:0},instanceLineColors:{divisor:1}}},pickingColors:{size:3,type:5121,accessor:function(e,n){var r=n.index,i=n.target;return t.encodePickingColor(e&&e.__source?e.__source.index:r,i)},shaderAttributes:{pickingColors:{divisor:0},instancePickingColors:{divisor:1}}}})}},{key:"getPickingInfo",value:function(t){var e=l()(g()(n.prototype),"getPickingInfo",this).call(this,t),r=e.index,i=this.props.data;return i[0]&&i[0].__source&&(e.object=i.find((function(t){return t.__source.index===r}))),e}},{key:"disablePickingIndex",value:function(t){var e=this.props.data;if(e[0]&&e[0].__source)for(var n=0;n<e.length;n++)e[n].__source.index===t&&this._disablePickingIndex(n);else this._disablePickingIndex(t)}},{key:"draw",value:function(t){var e=t.uniforms,n=this.props,r=n.extruded,i=n.filled,o=n.wireframe,a=n.elevationScale,s=this.state,u=s.topModel,c=s.sideModel,l=s.polygonTesselator,f=z(z({},e),{},{extruded:Boolean(r),elevationScale:a});c&&(c.setInstanceCount(l.instanceCount-1),c.setUniforms(f),o&&(c.setDrawMode(3),c.setUniforms({isWireframe:!0}).draw()),i&&(c.setDrawMode(6),c.setUniforms({isWireframe:!1}).draw())),u&&(u.setVertexCount(l.vertexCount),u.setUniforms(f).draw())}},{key:"updateState",value:function(t){l()(g()(n.prototype),"updateState",this).call(this,t),this.updateGeometry(t);var e,r=t.props,i=t.oldProps,o=t.changeFlags,a=this.getAttributeManager();(o.extensionsChanged||r.filled!==i.filled||r.extruded!==i.extruded)&&(null===(e=this.state.models)||void 0===e||e.forEach((function(t){return t.delete()})),this.setState(this._getModels(this.context.gl)),a.invalidateAll())}},{key:"updateGeometry",value:function(t){var e=t.props,n=(t.oldProps,t.changeFlags);if(n.dataChanged||n.updateTriggersChanged&&(n.updateTriggersChanged.all||n.updateTriggersChanged.getPolygon)){var r=this.state.polygonTesselator,i=e.data.attributes||{};r.updateGeometry({data:e.data,normalize:e._normalize,geometryBuffer:i.getPolygon,buffers:i,getGeometry:e.getPolygon,positionFormat:e.positionFormat,wrapLongitude:e.wrapLongitude,resolution:this.context.viewport.resolution,fp64:this.use64bitPositions(),dataChanged:n.dataChanged}),this.setState({numInstances:r.instanceCount,startIndices:r.vertexStarts}),n.dataChanged||this.getAttributeManager().invalidateAll()}}},{key:"_getModels",value:function(t){var e,n,r=this.props,i=r.id,o=r.filled,a=r.extruded;if(o){var s=this.getShaders("top");s.defines.NON_INSTANCED_MODEL=1,e=new P.a(t,z(z({},s),{},{id:"".concat(i,"-top"),drawMode:4,attributes:{vertexPositions:new Float32Array([0,1])},uniforms:{isWireframe:!1,isSideVertex:!1},vertexCount:0,isIndexed:!0}))}return a&&((n=new P.a(t,z(z({},this.getShaders("side")),{},{id:"".concat(i,"-side"),geometry:new S.a({drawMode:1,vertexCount:4,attributes:{vertexPositions:{size:2,value:new Float32Array([1,0,0,0,0,1,1,1])}}}),instanceCount:0,isInstanced:1}))).userData.excludeAttributes={indices:!0}),{models:[n,e].filter(Boolean),topModel:e,sideModel:n}}},{key:"calculateIndices",value:function(t){var e=this.state.polygonTesselator;t.startIndices=e.indexStarts,t.value=e.get("indices")}},{key:"calculatePositions",value:function(t){var e=this.state.polygonTesselator;t.startIndices=e.vertexStarts,t.value=e.get("positions")}},{key:"calculateVertexValid",value:function(t){t.value=this.state.polygonTesselator.get("vertexValid")}},{key:"wrapLongitude",get:function(){return!1}}]),n}(w.a);W.layerName="SolidPolygonLayer",W.defaultProps=V},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s),c=n(9),l=n.n(c),f=n(5),h=n.n(f),d=n(6),p=n.n(d),v=n(3),g=n.n(v),y=n(205),m=n(227),b=n(22),_=n(19),w=n(150),x=n(172),O=n(72),P=n(206),S=n(44);function k(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function E(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var M=function(t){h()(n,t);var e=E(n);function n(t){return a()(this,n),e.call(this,T(T({},t),{},{attributes:{positions:{size:3,padding:18,initialize:!0,type:t.fp64?Float64Array:Float32Array},segmentTypes:{size:1,type:Uint8ClampedArray}}}))}return u()(n,[{key:"getGeometryFromBuffer",value:function(t){return this.normalize?l()(g()(n.prototype),"getGeometryFromBuffer",this).call(this,t):function(){return null}}},{key:"normalizeGeometry",value:function(t){return this.normalize?function(t,e,n,r){var i=t;if(Array.isArray(t[0])){var o=t.length*e;i=new Array(o);for(var a=0;a<t.length;a++)for(var s=0;s<e;s++)i[a*e+s]=t[a][s]||0}return n?Object(S.d)(i,{size:e,gridResolution:n}):r?Object(S.e)(i,{size:e}):i}(t,this.positionSize,this.opts.resolution,this.opts.wrapLongitude):t}},{key:"get",value:function(t){return this.attributes[t]}},{key:"getGeometrySize",value:function(t){if(Array.isArray(t[0])){var e,n=0,r=k(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n+=this.getGeometrySize(i)}}catch(t){r.e(t)}finally{r.f()}return n}var o=this.getPathLength(t);return o<2?0:this.isClosed(t)?o<3?0:o+2:o}},{key:"updateGeometryAttributes",value:function(t,e){if(0!==e.geometrySize)if(t&&Array.isArray(t[0])){var n,r=k(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=this.getGeometrySize(i);e.geometrySize=o,this.updateGeometryAttributes(i,e),e.vertexStart+=o}}catch(t){r.e(t)}finally{r.f()}}else this._updateSegmentTypes(t,e),this._updatePositions(t,e)}},{key:"_updateSegmentTypes",value:function(t,e){var n=this.attributes.segmentTypes,r=this.isClosed(t),i=e.vertexStart,o=e.geometrySize;n.fill(0,i,i+o),r?(n[i]=4,n[i+o-2]=4):(n[i]+=1,n[i+o-2]+=2),n[i+o-1]=4}},{key:"_updatePositions",value:function(t,e){var n=this.attributes.positions;if(n)for(var r=e.vertexStart,i=e.geometrySize,o=new Array(3),a=r,s=0;s<i;a++,s++)this.getPointOnPath(t,s,o),n[3*a]=o[0],n[3*a+1]=o[1],n[3*a+2]=o[2]}},{key:"getPathLength",value:function(t){return t.length/this.positionSize}},{key:"getPointOnPath",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=this.positionSize;e*r>=t.length&&(e+=1-t.length/r);var i=e*r;return n[0]=t[i],n[1]=t[i+1],n[2]=3===r&&t[i+2]||0,n}},{key:"isClosed",value:function(t){if(!this.normalize)return this.opts.loop;var e=this.positionSize,n=t.length-e;return t[0]===t[n]&&t[1]===t[n+1]&&(2===e||t[2]===t[n+2])}}]),n}(P.a);function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(e,"a",(function(){return N}));var L=[0,0,0,255],D={widthUnits:"meters",widthScale:{type:"number",min:0,value:1},widthMinPixels:{type:"number",min:0,value:0},widthMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},jointRounded:!1,capRounded:!1,miterLimit:{type:"number",min:0,value:4},billboard:!1,_pathType:null,getPath:{type:"accessor",value:function(t){return t.path}},getColor:{type:"accessor",value:L},getWidth:{type:"accessor",value:1},rounded:{deprecatedFor:["jointRounded","capRounded"]}},F={enter:function(t,e){return e.length?e.subarray(e.length-t.length):t}},N=function(t){h()(n,t);var e=R(n);function n(){return a()(this,n),e.apply(this,arguments)}return u()(n,[{key:"getShaders",value:function(){return l()(g()(n.prototype),"getShaders",this).call(this,{vs:"#define SHADER_NAME path-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute float instanceTypes;\nattribute vec3 instanceStartPositions;\nattribute vec3 instanceEndPositions;\nattribute vec3 instanceLeftPositions;\nattribute vec3 instanceRightPositions;\nattribute vec3 instanceLeftPositions64Low;\nattribute vec3 instanceStartPositions64Low;\nattribute vec3 instanceEndPositions64Low;\nattribute vec3 instanceRightPositions64Low;\nattribute float instanceStrokeWidths;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\n\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float jointType;\nuniform float capType;\nuniform float miterLimit;\nuniform bool billboard;\nuniform int widthUnits;\n\nuniform float opacity;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nconst float EPSILON = 0.001;\nconst vec3 ZERO_OFFSET = vec3(0.0);\n\nfloat flipIfTrue(bool flag) {\n return -(float(flag) * 2. - 1.);\n}\nvec3 lineJoin(\n vec3 prevPoint, vec3 currPoint, vec3 nextPoint,\n vec2 width\n) {\n bool isEnd = positions.x > 0.0;\n float sideOfPath = positions.y;\n float isJoint = float(sideOfPath == 0.0);\n\n vec3 deltaA3 = (currPoint - prevPoint);\n vec3 deltaB3 = (nextPoint - currPoint);\n\n mat3 rotationMatrix;\n bool needsRotation = !billboard && project_needs_rotation(currPoint, rotationMatrix);\n if (needsRotation) {\n deltaA3 = deltaA3 * rotationMatrix;\n deltaB3 = deltaB3 * rotationMatrix;\n }\n vec2 deltaA = deltaA3.xy / width;\n vec2 deltaB = deltaB3.xy / width;\n\n float lenA = length(deltaA);\n float lenB = length(deltaB);\n\n vec2 dirA = lenA > 0. ? normalize(deltaA) : vec2(0.0, 0.0);\n vec2 dirB = lenB > 0. ? normalize(deltaB) : vec2(0.0, 0.0);\n\n vec2 perpA = vec2(-dirA.y, dirA.x);\n vec2 perpB = vec2(-dirB.y, dirB.x);\n vec2 tangent = dirA + dirB;\n tangent = length(tangent) > 0. ? normalize(tangent) : perpA;\n vec2 miterVec = vec2(-tangent.y, tangent.x);\n vec2 dir = isEnd ? dirA : dirB;\n vec2 perp = isEnd ? perpA : perpB;\n float L = isEnd ? lenA : lenB;\n float sinHalfA = abs(dot(miterVec, perp));\n float cosHalfA = abs(dot(dirA, miterVec));\n float turnDirection = flipIfTrue(dirA.x * dirB.y >= dirA.y * dirB.x);\n float cornerPosition = sideOfPath * turnDirection;\n\n float miterSize = 1.0 / max(sinHalfA, EPSILON);\n miterSize = mix(\n min(miterSize, max(lenA, lenB) / max(cosHalfA, EPSILON)),\n miterSize,\n step(0.0, cornerPosition)\n );\n\n vec2 offsetVec = mix(miterVec * miterSize, perp, step(0.5, cornerPosition))\n * (sideOfPath + isJoint * turnDirection);\n bool isStartCap = lenA == 0.0 || (!isEnd && (instanceTypes == 1.0 || instanceTypes == 3.0));\n bool isEndCap = lenB == 0.0 || (isEnd && (instanceTypes == 2.0 || instanceTypes == 3.0));\n bool isCap = isStartCap || isEndCap;\n if (isCap) {\n offsetVec = mix(perp * sideOfPath, dir * capType * 4.0 * flipIfTrue(isStartCap), isJoint);\n vJointType = capType;\n } else {\n vJointType = jointType;\n }\n vPathLength = L;\n vCornerOffset = offsetVec;\n vMiterLength = dot(vCornerOffset, miterVec * turnDirection);\n vMiterLength = isCap ? isJoint : vMiterLength;\n\n vec2 offsetFromStartOfPath = vCornerOffset + deltaA * float(isEnd);\n vPathPosition = vec2(\n dot(offsetFromStartOfPath, perp),\n dot(offsetFromStartOfPath, dir)\n );\n geometry.uv = vPathPosition;\n\n float isValid = step(instanceTypes, 3.5);\n vec3 offset = vec3(offsetVec * width * isValid, 0.0);\n\n if (needsRotation) {\n offset = rotationMatrix * offset;\n }\n return currPoint + offset;\n}\nvoid clipLine(inout vec4 position, vec4 refPosition) {\n if (position.w < EPSILON) {\n float r = (EPSILON - refPosition.w) / (position.w - refPosition.w);\n position = refPosition + (position - refPosition) * r;\n }\n}\n\nvoid main() {\n geometry.pickingColor = instancePickingColors;\n\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n\n float isEnd = positions.x;\n\n vec3 prevPosition = mix(instanceLeftPositions, instanceStartPositions, isEnd);\n vec3 prevPosition64Low = mix(instanceLeftPositions64Low, instanceStartPositions64Low, isEnd);\n\n vec3 currPosition = mix(instanceStartPositions, instanceEndPositions, isEnd);\n vec3 currPosition64Low = mix(instanceStartPositions64Low, instanceEndPositions64Low, isEnd);\n\n vec3 nextPosition = mix(instanceEndPositions, instanceRightPositions, isEnd);\n vec3 nextPosition64Low = mix(instanceEndPositions64Low, instanceRightPositions64Low, isEnd);\n\n geometry.worldPosition = currPosition;\n vec2 widthPixels = vec2(clamp(\n project_size_to_pixel(instanceStrokeWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels) / 2.0);\n vec3 width;\n\n if (billboard) {\n vec4 prevPositionScreen = project_position_to_clipspace(prevPosition, prevPosition64Low, ZERO_OFFSET);\n vec4 currPositionScreen = project_position_to_clipspace(currPosition, currPosition64Low, ZERO_OFFSET, geometry.position);\n vec4 nextPositionScreen = project_position_to_clipspace(nextPosition, nextPosition64Low, ZERO_OFFSET);\n\n clipLine(prevPositionScreen, currPositionScreen);\n clipLine(nextPositionScreen, currPositionScreen);\n clipLine(currPositionScreen, mix(nextPositionScreen, prevPositionScreen, isEnd));\n\n width = vec3(widthPixels, 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec3 pos = lineJoin(\n prevPositionScreen.xyz / prevPositionScreen.w,\n currPositionScreen.xyz / currPositionScreen.w,\n nextPositionScreen.xyz / nextPositionScreen.w,\n project_pixel_size_to_clipspace(width.xy)\n );\n\n gl_Position = vec4(pos * currPositionScreen.w, currPositionScreen.w);\n } else {\n prevPosition = project_position(prevPosition, prevPosition64Low);\n currPosition = project_position(currPosition, currPosition64Low);\n nextPosition = project_position(nextPosition, nextPosition64Low);\n\n width = vec3(project_pixel_size(widthPixels), 0.0);\n DECKGL_FILTER_SIZE(width, geometry);\n\n vec4 pos = vec4(\n lineJoin(prevPosition, currPosition, nextPosition, width.xy),\n 1.0);\n geometry.position = pos;\n gl_Position = project_common_position_to_clipspace(pos);\n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n",fs:"#define SHADER_NAME path-layer-fragment-shader\n\nprecision highp float;\n\nuniform float miterLimit;\n\nvarying vec4 vColor;\nvarying vec2 vCornerOffset;\nvarying float vMiterLength;\nvarying vec2 vPathPosition;\nvarying float vPathLength;\nvarying float vJointType;\n\nvoid main(void) {\n geometry.uv = vPathPosition;\n\n if (vPathPosition.y < 0.0 || vPathPosition.y > vPathLength) {\n if (vJointType > 0.5 && length(vCornerOffset) > 1.0) {\n discard;\n }\n if (vJointType < 0.5 && vMiterLength > miterLimit + 1.0) {\n discard;\n }\n }\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[y.a,m.a]})}},{key:"initializeState",value:function(){var t=this;this.getAttributeManager().addInstanced({positions:{size:3,vertexOffset:1,type:5130,fp64:this.use64bitPositions(),transition:F,accessor:"getPath",update:this.calculatePositions,noAlloc:!0,shaderAttributes:{instanceLeftPositions:{vertexOffset:0},instanceStartPositions:{vertexOffset:1},instanceEndPositions:{vertexOffset:2},instanceRightPositions:{vertexOffset:3}}},instanceTypes:{size:1,type:5121,update:this.calculateSegmentTypes,noAlloc:!0},instanceStrokeWidths:{size:1,accessor:"getWidth",transition:F,defaultValue:1},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,accessor:"getColor",transition:F,defaultValue:L},instancePickingColors:{size:3,type:5121,accessor:function(e,n){var r=n.index,i=n.target;return t.encodePickingColor(e&&e.__source?e.__source.index:r,i)}}}),this.setState({pathTesselator:new M({fp64:this.use64bitPositions()})}),this.props.getDashArray&&!this.props.extensions.length&&b.a.removed("getDashArray","PathStyleExtension")()}},{key:"updateState",value:function(t){var e=t.oldProps,r=t.props,i=t.changeFlags;l()(g()(n.prototype),"updateState",this).call(this,{props:r,oldProps:e,changeFlags:i});var o=this.getAttributeManager();if(i.dataChanged||i.updateTriggersChanged&&(i.updateTriggersChanged.all||i.updateTriggersChanged.getPath)){var a=this.state.pathTesselator,s=r.data.attributes||{};a.updateGeometry({data:r.data,geometryBuffer:s.getPath,buffers:s,normalize:!r._pathType,loop:"loop"===r._pathType,getGeometry:r.getPath,positionFormat:r.positionFormat,wrapLongitude:r.wrapLongitude,resolution:this.context.viewport.resolution,dataChanged:i.dataChanged}),this.setState({numInstances:a.instanceCount,startIndices:a.vertexStarts}),i.dataChanged||o.invalidateAll()}if(i.extensionsChanged){var u,c=this.context.gl;null===(u=this.state.model)||void 0===u||u.delete(),this.state.model=this._getModel(c),o.invalidateAll()}}},{key:"getPickingInfo",value:function(t){var e=l()(g()(n.prototype),"getPickingInfo",this).call(this,t),r=e.index,i=this.props.data;return i[0]&&i[0].__source&&(e.object=i.find((function(t){return t.__source.index===r}))),e}},{key:"disablePickingIndex",value:function(t){var e=this.props.data;if(e[0]&&e[0].__source)for(var n=0;n<e.length;n++)e[n].__source.index===t&&this._disablePickingIndex(n);else this._disablePickingIndex(t)}},{key:"draw",value:function(t){var e=t.uniforms,n=this.props,r=n.jointRounded,i=n.capRounded,o=n.billboard,a=n.miterLimit,s=n.widthUnits,u=n.widthScale,c=n.widthMinPixels,l=n.widthMaxPixels;this.state.model.setUniforms(e).setUniforms({jointType:Number(r),capType:Number(i),billboard:o,widthUnits:_.d[s],widthScale:u,miterLimit:a,widthMinPixels:c,widthMaxPixels:l}).draw()}},{key:"_getModel",value:function(t){return new x.a(t,I(I({},this.getShaders()),{},{id:this.props.id,geometry:new O.a({drawMode:4,attributes:{indices:new Uint16Array([0,1,2,1,4,2,1,3,4,3,5,4]),positions:{value:new Float32Array([0,0,0,-1,0,1,1,-1,1,1,1,0]),size:2}}}),isInstanced:!0}))}},{key:"calculatePositions",value:function(t){var e=this.state.pathTesselator;t.startIndices=e.vertexStarts,t.value=e.get("positions")}},{key:"calculateSegmentTypes",value:function(t){var e=this.state.pathTesselator;t.startIndices=e.vertexStarts,t.value=e.get("segmentTypes")}},{key:"wrapLongitude",get:function(){return!1}}]),n}(w.a);N.layerName="PathLayer",N.defaultProps=D},function(t,e,n){"use strict";var r,i=n(0),o=n.n(i),a=n(1),s=n.n(a),u=n(2),c=n.n(u),l=n(9),f=n.n(l),h=n(5),d=n.n(h),p=n(6),v=n.n(p),g=n(3),y=n.n(g),m=n(205),b=n(227),_=n(19),w=n(22),x=n(150),O=n(172),P=n(72),S=n(231),k=n(190),j=n(102),A=n(316),T=n(203),E=n(63);function M(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var L=function(){},D=(r={},o()(r,10241,9987),o()(r,10240,9729),o()(r,10242,33071),o()(r,10243,33071),r);function F(t){return t&&(t.id||t.url)}function N(t,e,n){for(var r=0;r<e.length;r++){var i=e[r],o=i.icon,a=i.xOffset;t[F(o)]=R(R({},o),{},{x:a,y:n})}}var z=function(){function t(e,n){var r=n.onUpdate,i=void 0===r?L:r,o=n.onError,a=void 0===o?L:o;s()(this,t),this.gl=e,this.onUpdate=i,this.onError=a,this._loadOptions=null,this._getIcon=null,this._texture=null,this._externalTexture=null,this._mapping={},this._pendingCount=0,this._autoPacking=!1,this._xOffset=0,this._yOffset=0,this._rowHeight=0,this._buffer=4,this._canvasWidth=1024,this._canvasHeight=0,this._canvas=null}return c()(t,[{key:"finalize",value:function(){var t;null===(t=this._texture)||void 0===t||t.delete()}},{key:"getTexture",value:function(){return this._texture||this._externalTexture}},{key:"getIconMapping",value:function(t){var e=this._autoPacking?F(t):t;return this._mapping[e]||{}}},{key:"setProps",value:function(t){var e=t.loadOptions,n=t.autoPacking,r=t.iconAtlas,i=t.iconMapping,o=t.data,a=t.getIcon;e&&(this._loadOptions=e),void 0!==n&&(this._autoPacking=n),a&&(this._getIcon=a),i&&(this._mapping=i),r&&this._updateIconAtlas(r),this._autoPacking&&(o||a)&&"undefined"!=typeof document&&(this._canvas=this._canvas||document.createElement("canvas"),this._updateAutoPacking(o))}},{key:"_updateIconAtlas",value:function(t){var e;null===(e=this._texture)||void 0===e||e.delete(),this._texture=null,this._externalTexture=t,this.onUpdate()}},{key:"_updateAutoPacking",value:function(t){var e,n,r,i,o,a,s=Object.values(function(t,e,n){if(!t||!e)return null;n=n||{};var r,i={},o=Object(E.a)(t),a=o.iterable,s=o.objectInfo,u=M(a);try{for(u.s();!(r=u.n()).done;){var c=r.value;s.index++;var l=e(c,s),f=F(l);if(!l)throw new Error("Icon is missing.");if(!l.url)throw new Error("Icon url is missing.");i[f]||n[f]&&l.url===n[f].url||(i[f]=R(R({},l),{},{source:c,sourceIndex:s.index}))}}catch(t){u.e(t)}finally{u.f()}return i}(t,this._getIcon,this._mapping)||{});if(s.length>0){var u=function(t){for(var e,n=t.icons,r=t.buffer,i=t.mapping,o=void 0===i?{}:i,a=t.xOffset,s=void 0===a?0:a,u=t.yOffset,c=void 0===u?0:u,l=t.rowHeight,f=void 0===l?0:l,h=t.canvasWidth,d=[],p=0;p<n.length;p++){var v=n[p];if(!o[F(v)]){var g=v.height,y=v.width;s+y+r>h&&(N(o,d,c),s=0,c=f+c+r,f=0,d=[]),d.push({icon:v,xOffset:s}),s=s+y+r,f=Math.max(f,g)}}return d.length>0&&N(o,d,c),{mapping:o,rowHeight:f,xOffset:s,yOffset:c,canvasWidth:h,canvasHeight:(e=f+c+r,Math.pow(2,Math.ceil(Math.log2(e))))}}({icons:s,buffer:this._buffer,canvasWidth:this._canvasWidth,mapping:this._mapping,rowHeight:this._rowHeight,xOffset:this._xOffset,yOffset:this._yOffset}),c=u.mapping,l=u.xOffset,f=u.yOffset,h=u.rowHeight,d=u.canvasHeight;this._rowHeight=h,this._mapping=c,this._xOffset=l,this._yOffset=f,this._canvasHeight=d,this._texture||(this._texture=new j.a(this.gl,{width:this._canvasWidth,height:this._canvasHeight,parameters:D})),this._texture.height!==this._canvasHeight&&(this._texture=(this.gl,e=this._texture,n=this._canvasWidth,r=this._canvasHeight,i=e.width,o=e.height,a=Object(S.a)(e,{width:n,height:r}),Object(k.b)(e,a,{targetY:0,width:i,height:o}),e.delete(),a)),this.onUpdate(),this._loadIcons(s)}}},{key:"_loadIcons",value:function(t){var e,n=this,r=this._canvas.getContext("2d"),i=M(t);try{var o=function(){var t=e.value;n._pendingCount++,Object(T.a)(t.url,A.a,n._loadOptions).then((function(e){var i=F(t),o=n._mapping[i],a=o.x,s=o.y,u=o.width,c=o.height,l=function(t,e,n,r){return n===e.width&&r===e.height?e:(t.canvas.height=r,t.canvas.width=n,t.clearRect(0,0,t.canvas.width,t.canvas.height),t.drawImage(e,0,0,e.width,e.height,0,0,n,r),t.canvas)}(r,e,u,c);n._texture.setSubImageData({data:l,x:a,y:s,width:u,height:c}),n._texture.generateMipmap(),n.onUpdate()})).catch((function(e){n.onError({url:t.url,source:t.source,sourceIndex:t.sourceIndex,loadOptions:n._loadOptions,error:e})})).finally((function(){n._pendingCount--}))};for(i.s();!(e=i.n()).done;)o()}catch(t){i.e(t)}finally{i.f()}}},{key:"isLoaded",get:function(){return 0===this._pendingCount}}]),t}();function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y()(t);if(e){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}n.d(e,"a",(function(){return H}));var G=[0,0,0,255],W={iconAtlas:{type:"image",value:null,async:!0},iconMapping:{type:"object",value:{},async:!0},sizeScale:{type:"number",value:1,min:0},billboard:!0,sizeUnits:"pixels",sizeMinPixels:{type:"number",min:0,value:0},sizeMaxPixels:{type:"number",min:0,value:Number.MAX_SAFE_INTEGER},alphaCutoff:{type:"number",value:.05,min:0,max:1},getPosition:{type:"accessor",value:function(t){return t.position}},getIcon:{type:"accessor",value:function(t){return t.icon}},getColor:{type:"accessor",value:G},getSize:{type:"accessor",value:1},getAngle:{type:"accessor",value:0},getPixelOffset:{type:"accessor",value:[0,0]},onIconError:{type:"function",value:null,compare:!1,optional:!0}},H=function(t){d()(n,t);var e=V(n);function n(){return s()(this,n),e.apply(this,arguments)}return c()(n,[{key:"getShaders",value:function(){return f()(y()(n.prototype),"getShaders",this).call(this,{vs:"#define SHADER_NAME icon-layer-vertex-shader\n\nattribute vec2 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceSizes;\nattribute float instanceAngles;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute vec4 instanceIconFrames;\nattribute float instanceColorModes;\nattribute vec2 instanceOffsets;\nattribute vec2 instancePixelOffset;\n\nuniform float sizeScale;\nuniform vec2 iconsTextureDim;\nuniform float sizeMinPixels;\nuniform float sizeMaxPixels;\nuniform bool billboard;\nuniform int sizeUnits;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvec2 rotate_by_angle(vec2 vertex, float angle) {\n float angle_radian = angle * PI / 180.0;\n float cos_angle = cos(angle_radian);\n float sin_angle = sin(angle_radian);\n mat2 rotationMatrix = mat2(cos_angle, -sin_angle, sin_angle, cos_angle);\n return rotationMatrix * vertex;\n}\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.uv = positions;\n geometry.pickingColor = instancePickingColors;\n uv = positions;\n\n vec2 iconSize = instanceIconFrames.zw;\n float sizePixels = clamp(\n project_size_to_pixel(instanceSizes * sizeScale, sizeUnits), \n sizeMinPixels, sizeMaxPixels\n );\n float instanceScale = iconSize.y == 0.0 ? 0.0 : sizePixels / iconSize.y;\n vec2 pixelOffset = positions / 2.0 * iconSize + instanceOffsets;\n pixelOffset = rotate_by_angle(pixelOffset, instanceAngles) * instanceScale;\n pixelOffset += instancePixelOffset;\n pixelOffset.y *= -1.0;\n\n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n vec3 offset = vec3(pixelOffset, 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n\n } else {\n vec3 offset_common = vec3(project_pixel_size(pixelOffset), 0.0);\n DECKGL_FILTER_SIZE(offset_common, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset_common, geometry.position); \n }\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vTextureCoords = mix(\n instanceIconFrames.xy,\n instanceIconFrames.xy + iconSize,\n (positions.xy + 1.0) / 2.0\n ) / iconsTextureDim;\n\n vColor = instanceColors;\n DECKGL_FILTER_COLOR(vColor, geometry);\n\n vColorMode = instanceColorModes;\n}\n",fs:"#define SHADER_NAME icon-layer-fragment-shader\n\nprecision highp float;\n\nuniform float opacity;\nuniform sampler2D iconsTexture;\nuniform float alphaCutoff;\n\nvarying float vColorMode;\nvarying vec4 vColor;\nvarying vec2 vTextureCoords;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n vec4 texColor = texture2D(iconsTexture, vTextureCoords);\n vec3 color = mix(texColor.rgb, vColor.rgb, vColorMode);\n float a = texColor.a * opacity * vColor.a;\n\n if (a < alphaCutoff) {\n discard;\n }\n\n gl_FragColor = vec4(color, a);\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n",modules:[m.a,b.a]})}},{key:"initializeState",value:function(){this.state={iconManager:new z(this.context.gl,{onUpdate:this._onUpdate.bind(this),onError:this._onError.bind(this)})},this.getAttributeManager().addInstanced({instancePositions:{size:3,type:5130,fp64:this.use64bitPositions(),transition:!0,accessor:"getPosition"},instanceSizes:{size:1,transition:!0,accessor:"getSize",defaultValue:1},instanceOffsets:{size:2,accessor:"getIcon",transform:this.getInstanceOffset},instanceIconFrames:{size:4,accessor:"getIcon",transform:this.getInstanceIconFrame},instanceColorModes:{size:1,type:5121,accessor:"getIcon",transform:this.getInstanceColorMode},instanceColors:{size:this.props.colorFormat.length,type:5121,normalized:!0,transition:!0,accessor:"getColor",defaultValue:G},instanceAngles:{size:1,transition:!0,accessor:"getAngle"},instancePixelOffset:{size:2,transition:!0,accessor:"getPixelOffset"}})}},{key:"updateState",value:function(t){var e=t.oldProps,r=t.props,i=t.changeFlags;f()(y()(n.prototype),"updateState",this).call(this,{props:r,oldProps:e,changeFlags:i});var o=this.getAttributeManager(),a=r.iconAtlas,s=r.iconMapping,u=r.data,c=r.getIcon,l=this.state.iconManager;l.setProps({loadOptions:r.loadOptions});var h=!1;if(a||this.internalState.isAsyncPropLoading("iconAtlas")?(e.iconAtlas!==r.iconAtlas&&l.setProps({iconAtlas:a,autoPacking:!1}),e.iconMapping!==r.iconMapping&&(l.setProps({iconMapping:s}),h=!0)):l.setProps({autoPacking:!0}),(i.dataChanged||i.updateTriggersChanged&&(i.updateTriggersChanged.all||i.updateTriggersChanged.getIcon))&&l.setProps({data:u,getIcon:c}),h&&(o.invalidate("instanceOffsets"),o.invalidate("instanceIconFrames"),o.invalidate("instanceColorModes")),i.extensionsChanged){var d,p=this.context.gl;null===(d=this.state.model)||void 0===d||d.delete(),this.state.model=this._getModel(p),o.invalidateAll()}}},{key:"finalizeState",value:function(){f()(y()(n.prototype),"finalizeState",this).call(this),this.state.iconManager.finalize()}},{key:"draw",value:function(t){var e=t.uniforms,n=this.props,r=n.sizeScale,i=n.sizeMinPixels,o=n.sizeMaxPixels,a=n.sizeUnits,s=n.billboard,u=n.alphaCutoff,c=this.state.iconManager.getTexture();c&&this.state.model.setUniforms(e).setUniforms({iconsTexture:c,iconsTextureDim:[c.width,c.height],sizeUnits:_.d[a],sizeScale:r,sizeMinPixels:i,sizeMaxPixels:o,billboard:s,alphaCutoff:u}).draw()}},{key:"_getModel",value:function(t){return new O.a(t,U(U({},this.getShaders()),{},{id:this.props.id,geometry:new P.a({drawMode:6,attributes:{positions:{size:2,value:new Float32Array([-1,-1,-1,1,1,1,1,-1])}}}),isInstanced:!0}))}},{key:"_onUpdate",value:function(){this.setNeedsRedraw()}},{key:"_onError",value:function(t){var e=this.getCurrentLayer().props.onIconError;e?e(t):w.a.error(t.error)()}},{key:"getInstanceOffset",value:function(t){var e=this.state.iconManager.getIconMapping(t);return[e.width/2-e.anchorX||0,e.height/2-e.anchorY||0]}},{key:"getInstanceColorMode",value:function(t){return this.state.iconManager.getIconMapping(t).mask?1:0}},{key:"getInstanceIconFrame",value:function(t){var e=this.state.iconManager.getIconMapping(t);return[e.x||0,e.y||0,e.width||0,e.height||0]}},{key:"isLoaded",get:function(){return f()(y()(n.prototype),"isLoaded",this)&&this.state.iconManager.isLoaded}}]),n}(x.a);H.layerName="IconLayer",H.defaultProps=W},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(46),i=n.n(r),o=n(40),a=n.n(o),s=n(51),u=n.n(s),c=n(52),l=n.n(c),f=n(36),h=n.n(f),d=n(18),p=n(49);function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}var g=function(t){u()(n,t);var e=v(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"from",value:function(t){return Array.isArray(t)?this.copy(t):this.fromObject(t)}},{key:"fromArray",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<this.ELEMENTS;++n)this[n]=t[n+e];return this.check()}},{key:"to",value:function(t){return t===this?this:Object(d.f)(t)?this.toArray(t):this.toObject(t)}},{key:"toTarget",value:function(t){return t?this.to(t):this}},{key:"toArray",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0;n<this.ELEMENTS;++n)t[e+n]=this[n];return t}},{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toString",value:function(){return this.formatString(d.b)}},{key:"formatString",value:function(t){for(var e="",n=0;n<this.ELEMENTS;++n)e+=(n>0?", ":"")+Object(d.e)(this[n],t);return"".concat(t.printTypes?this.constructor.name:"","[").concat(e,"]")}},{key:"equals",value:function(t){if(!t||this.length!==t.length)return!1;for(var e=0;e<this.ELEMENTS;++e)if(!Object(d.d)(this[e],t[e]))return!1;return!0}},{key:"exactEquals",value:function(t){if(!t||this.length!==t.length)return!1;for(var e=0;e<this.ELEMENTS;++e)if(this[e]!==t[e])return!1;return!0}},{key:"negate",value:function(){for(var t=0;t<this.ELEMENTS;++t)this[t]=-this[t];return this.check()}},{key:"lerp",value:function(t,e,n){void 0===n&&(n=e,e=t,t=this);for(var r=0;r<this.ELEMENTS;++r){var i=t[r];this[r]=i+n*(e[r]-i)}return this.check()}},{key:"min",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]=Math.min(t[e],this[e]);return this.check()}},{key:"max",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]=Math.max(t[e],this[e]);return this.check()}},{key:"clamp",value:function(t,e){for(var n=0;n<this.ELEMENTS;++n)this[n]=Math.min(Math.max(this[n],t[n]),e[n]);return this.check()}},{key:"add",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++)for(var o=i[r],a=0;a<this.ELEMENTS;++a)this[a]+=o[a];return this.check()}},{key:"subtract",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++)for(var o=i[r],a=0;a<this.ELEMENTS;++a)this[a]-=o[a];return this.check()}},{key:"scale",value:function(t){if(Array.isArray(t))return this.multiply(t);for(var e=0;e<this.ELEMENTS;++e)this[e]*=t;return this.check()}},{key:"sub",value:function(t){return this.subtract(t)}},{key:"setScalar",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]=t;return this.check()}},{key:"addScalar",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]+=t;return this.check()}},{key:"subScalar",value:function(t){return this.addScalar(-t)}},{key:"multiplyScalar",value:function(t){for(var e=0;e<this.ELEMENTS;++e)this[e]*=t;return this.check()}},{key:"divideScalar",value:function(t){return this.scale(1/t)}},{key:"clampScalar",value:function(t,e){for(var n=0;n<this.ELEMENTS;++n)this[n]=Math.min(Math.max(this[n],t),e);return this.check()}},{key:"multiplyByScalar",value:function(t){return this.scale(t)}},{key:"check",value:function(){if(d.b.debug&&!this.validate())throw new Error("math.gl: ".concat(this.constructor.name," some fields set to invalid numbers'"));return this}},{key:"validate",value:function(){for(var t=this.length===this.ELEMENTS,e=0;e<this.ELEMENTS;++e)t=t&&Number.isFinite(this[e]);return t}},{key:"ELEMENTS",get:function(){return Object(p.a)(!1),0}},{key:"elements",get:function(){return this}}]),n}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Array))},function(t,e,n){"use strict";var r=n(16),i=n.n(r),o=n(11),a=n.n(o),s=n(19),u=n(99),c=n(13),l=n(85),f=n(26);function h(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var p=Object(l.a)((function(t){var e=t.viewport,n=t.center;return new c.a(e.viewProjectionMatrix).invert().transform(n)})),v=Object(l.a)((function(t){var e,n=t.viewport,r=t.shadowMatrices,o=[],s=n.pixelUnprojectionMatrix,u=n.isGeospatial?void 0:1,l=[[0,0,u],[n.width,0,u],[0,n.height,u],[n.width,n.height,u],[0,0,-1],[n.width,0,-1],[0,n.height,-1],[n.width,n.height,-1]].map((function(t){return function(t,e){var n=a()(t,3),r=n[0],i=n[1],o=n[2],s=Object(f.n)([r,i,o],e);if(Number.isFinite(o))return s;return[s[0],s[1],0]}(t,s)})),d=h(r);try{var p=function(){var t=e.value,r=t.clone().translate(new c.b(n.center).negate()),a=l.map((function(t){return r.transform(t)})),s=(new c.a).ortho({left:Math.min.apply(Math,i()(a.map((function(t){return t[0]})))),right:Math.max.apply(Math,i()(a.map((function(t){return t[0]})))),bottom:Math.min.apply(Math,i()(a.map((function(t){return t[1]})))),top:Math.max.apply(Math,i()(a.map((function(t){return t[1]})))),near:Math.min.apply(Math,i()(a.map((function(t){return-t[2]})))),far:Math.max.apply(Math,i()(a.map((function(t){return-t[2]}))))});o.push(s.multiplyRight(t))};for(d.s();!(e=d.n()).done;)p()}catch(t){d.e(t)}finally{d.f()}return o})),g=[0,0,0,1],y=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0];function m(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={shadow_uDrawShadowMap:Boolean(t.drawToShadowMap),shadow_uUseShadowMap:!!t.shadowMaps&&t.shadowMaps.length>0,shadow_uColor:t.shadowColor||g,shadow_uLightId:t.shadowLightId||0,shadow_uLightCount:t.shadowMatrices.length},r=p({viewport:t.viewport,center:e.project_uCenter}),i=[],o=v({shadowMatrices:t.shadowMatrices,viewport:t.viewport}).slice(),a=0;a<t.shadowMatrices.length;a++){var u=o[a],l=u.clone().translate(new c.b(t.viewport.center).negate());e.project_uCoordinateSystem===s.a.LNGLAT&&e.project_uProjectionMode===s.c.WEB_MERCATOR?(o[a]=l,i[a]=r):(o[a]=u.clone().multiplyRight(y),i[a]=l.transform(r))}for(var f=0;f<o.length;f++)n["shadow_uViewProjectionMatrices[".concat(f,"]")]=o[f],n["shadow_uProjectCenters[".concat(f,"]")]=i[f],t.shadowMaps&&t.shadowMaps.length>0?n["shadow_uShadowMap".concat(f)]=t.shadowMaps[f]:n["shadow_uShadowMap".concat(f)]=t.dummyShadowMap;return n}e.a={name:"shadow",dependencies:[u.a],vs:"\nconst int max_lights = 2;\nuniform mat4 shadow_uViewProjectionMatrices[max_lights];\nuniform vec4 shadow_uProjectCenters[max_lights];\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform int shadow_uLightId;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nvec4 shadow_setVertexPosition(vec4 position_commonspace) {\n if (shadow_uDrawShadowMap) {\n return project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[shadow_uLightId], shadow_uProjectCenters[shadow_uLightId]);\n }\n if (shadow_uUseShadowMap) {\n for (int i = 0; i < max_lights; i++) {\n if(i < int(shadow_uLightCount)) {\n vec4 shadowMap_position = project_common_position_to_clipspace(position_commonspace, shadow_uViewProjectionMatrices[i], shadow_uProjectCenters[i]);\n shadow_vPosition[i] = (shadowMap_position.xyz / shadowMap_position.w + 1.0) / 2.0;\n }\n }\n }\n return gl_Position;\n}\n",fs:"\nconst int max_lights = 2;\nuniform bool shadow_uDrawShadowMap;\nuniform bool shadow_uUseShadowMap;\nuniform sampler2D shadow_uShadowMap0;\nuniform sampler2D shadow_uShadowMap1;\nuniform vec4 shadow_uColor;\nuniform float shadow_uLightCount;\n\nvarying vec3 shadow_vPosition[max_lights];\n\nconst vec4 bitPackShift = vec4(1.0, 255.0, 65025.0, 16581375.0);\nconst vec4 bitUnpackShift = 1.0 / bitPackShift;\nconst vec4 bitMask = vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n\nfloat shadow_getShadowWeight(vec3 position, sampler2D shadowMap) {\n vec4 rgbaDepth = texture2D(shadowMap, position.xy);\n\n float z = dot(rgbaDepth, bitUnpackShift);\n return smoothstep(0.001, 0.01, position.z - z);\n}\n\nvec4 shadow_filterShadowColor(vec4 color) {\n if (shadow_uDrawShadowMap) {\n vec4 rgbaDepth = fract(gl_FragCoord.z * bitPackShift);\n rgbaDepth -= rgbaDepth.gbaa * bitMask;\n return rgbaDepth;\n }\n if (shadow_uUseShadowMap) {\n float shadowAlpha = 0.0;\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[0], shadow_uShadowMap0);\n if(shadow_uLightCount > 1.0) {\n shadowAlpha += shadow_getShadowWeight(shadow_vPosition[1], shadow_uShadowMap1);\n }\n shadowAlpha *= shadow_uColor.a / shadow_uLightCount;\n float blendedAlpha = shadowAlpha + color.a * (1.0 - shadowAlpha);\n\n return vec4(\n mix(color.rgb, shadow_uColor.rgb, shadowAlpha / blendedAlpha),\n blendedAlpha\n );\n }\n return color;\n}\n",inject:{"vs:DECKGL_FILTER_GL_POSITION":"\n position = shadow_setVertexPosition(geometry.position);\n ","fs:DECKGL_FILTER_COLOR":"\n color = shadow_filterShadowColor(color);\n "},getUniforms:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.drawToShadowMap||t.shadowMaps&&t.shadowMaps.length>0){var n=t.shadowEnabled,r=void 0===n||n;return r&&t.shadowMatrices&&t.shadowMatrices.length>0?m(t,e):{shadow_uDrawShadowMap:!1,shadow_uUseShadowMap:!1}}return{}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p}));var r=n(21),i=n(32),o=n(19),a=n(85),s=[0,0,0,0],u=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],l=[0,0,0],f=[0,0,0],h=Object(a.a)((function(t){var e=t.viewport,n=t.devicePixelRatio,a=t.coordinateSystem,c=t.coordinateOrigin,f=function(t,e,n){var o=t.viewMatrixUncentered,a=t.projectionMatrix,c=t.viewMatrix,l=t.viewProjectionMatrix,f=s,h=s,p=t.cameraPosition,v=d(t,e,n),g=v.geospatialOrigin,y=v.shaderCoordinateOrigin;v.offsetMode&&(h=t.projectPosition(g||y),p=[p[0]-h[0],p[1]-h[1],p[2]-h[2]],h[3]=1,f=i.n([],h,l),c=o||c,l=r.h([],a,c),l=r.h([],l,u));return{viewMatrix:c,viewProjectionMatrix:l,projectionCenter:f,originCommon:h,cameraPosCommon:p,shaderCoordinateOrigin:y,geospatialOrigin:g}}(e,a,c),h=f.projectionCenter,p=f.viewProjectionMatrix,v=f.originCommon,g=f.cameraPosCommon,y=f.shaderCoordinateOrigin,m=f.geospatialOrigin,b=e.getDistanceScales(),_=[e.width*n,e.height*n],w=e.projectionMatrix.transform([0,0,-e.focalDistance,1])[3]||1,x={project_uCoordinateSystem:a,project_uProjectionMode:e.projectionMode,project_uCoordinateOrigin:y,project_uCommonOrigin:v.slice(0,3),project_uCenter:h,project_uPseudoMeters:Boolean(e._pseudoMeters),project_uViewportSize:_,project_uDevicePixelRatio:n,project_uFocalDistance:w,project_uCommonUnitsPerMeter:b.unitsPerMeter,project_uCommonUnitsPerWorldUnit:b.unitsPerMeter,project_uCommonUnitsPerWorldUnit2:l,project_uScale:e.scale,project_uViewProjectionMatrix:p,project_uCameraPosition:g};if(m){var O=e.getDistanceScales(m);switch(a){case o.a.METER_OFFSETS:x.project_uCommonUnitsPerWorldUnit=O.unitsPerMeter,x.project_uCommonUnitsPerWorldUnit2=O.unitsPerMeter2;break;case o.a.LNGLAT:case o.a.LNGLAT_OFFSETS:e._pseudoMeters||(x.project_uCommonUnitsPerMeter=O.unitsPerMeter),x.project_uCommonUnitsPerWorldUnit=O.unitsPerDegree,x.project_uCommonUnitsPerWorldUnit2=O.unitsPerDegree2;break;case o.a.CARTESIAN:x.project_uCommonUnitsPerWorldUnit=[1,1,O.unitsPerMeter[2]],x.project_uCommonUnitsPerWorldUnit2=[0,0,O.unitsPerMeter2[2]]}}return x}));function d(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,i=r,a=!0;switch(n=e===o.a.LNGLAT_OFFSETS||e===o.a.METER_OFFSETS?r:t.isGeospatial?[Math.fround(t.longitude),Math.fround(t.latitude),0]:null,t.projectionMode){case o.c.WEB_MERCATOR:e!==o.a.LNGLAT&&e!==o.a.CARTESIAN||(n=[0,0,0],a=!1);break;case o.c.WEB_MERCATOR_AUTO_OFFSET:e===o.a.LNGLAT?i=n:e===o.a.CARTESIAN&&(i=[Math.fround(t.center[0]),Math.fround(t.center[1]),0],n=t.unprojectPosition(i),i[0]-=r[0],i[1]-=r[1],i[2]-=r[2]);break;case o.c.IDENTITY:i=t.position.map(Math.fround);break;case o.c.GLOBE:a=!1,n=null;break;default:a=!1}return i[2]=i[2]||0,{geospatialOrigin:n,shaderCoordinateOrigin:i,offsetMode:a}}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.viewport,n=t.devicePixelRatio,r=void 0===n?1:n,i=t.modelMatrix,a=void 0===i?null:i,s=t.coordinateSystem,u=void 0===s?o.a.DEFAULT:s,l=t.coordinateOrigin,f=t.autoWrapLongitude,d=void 0!==f&&f;u===o.a.DEFAULT&&(u=e.isGeospatial?o.a.LNGLAT:o.a.CARTESIAN);var p=h({viewport:e,devicePixelRatio:r,coordinateSystem:u,coordinateOrigin:l});return p.project_uWrapLongitude=d,p.project_uModelMatrix=a||c,p}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=function(){function t(e){i()(this,t),this._viewportProps=this._applyConstraints(e)}return a()(t,[{key:"getViewportProps",value:function(){return this._viewportProps}},{key:"getState",value:function(){return this._state}},{key:"shortestPathFrom",value:function(t){return this._viewportProps}},{key:"_applyConstraints",value:function(t){return t}}]),t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"c",(function(){return v}));var r=n(4),i=n.n(r),o=n(8),a=n.n(o),s=n(146),u=n(23),c=n(119),l=n(103),f="Cannot convert supplied data type";function h(t,e,n){if(e.text&&"string"==typeof t)return t;if(Object(u.c)(t)&&(t=t.buffer),t instanceof ArrayBuffer){var r=t;return e.text&&!e.binary?new TextDecoder("utf8").decode(r):r}if(ArrayBuffer.isView(t)){if(e.text&&!e.binary)return new TextDecoder("utf8").decode(t);var i=t.buffer,o=t.byteLength||t.length;return 0===t.byteOffset&&o===i.byteLength||(i=i.slice(t.byteOffset,t.byteOffset+o)),i}throw new Error(f)}function d(t,e,n){return p.apply(this,arguments)}function p(){return(p=a()(i.a.mark((function t(e,n,r){var o,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e instanceof ArrayBuffer||ArrayBuffer.isView(e),"string"!=typeof e&&!o){t.next=3;break}return t.abrupt("return",h(e,n));case 3:if(!Object(u.b)(e)){t.next=7;break}return t.next=6,Object(l.b)(e);case 6:e=t.sent;case 7:if(!Object(u.j)(e)){t.next=21;break}return a=e,t.next=11,Object(l.a)(a);case 11:if(!n.binary){t.next=17;break}return t.next=14,a.arrayBuffer();case 14:t.t0=t.sent,t.next=20;break;case 17:return t.next=19,a.text();case 19:t.t0=t.sent;case 20:return t.abrupt("return",t.t0);case 21:if(Object(u.i)(e)&&(e=Object(c.a)(e,r)),!Object(u.d)(e)&&!Object(u.a)(e)){t.next=24;break}return t.abrupt("return",Object(s.a)(e));case 24:throw new Error(f);case 25:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(t,e){return g.apply(this,arguments)}function g(){return(g=a()(i.a.mark((function t(e,n){var r,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Object(u.e)(e)){t.next=2;break}return t.abrupt("return",e);case 2:if(!Object(u.j)(e)){t.next=10;break}return r=e,t.next=6,Object(l.a)(r);case 6:return t.next=8,r.body;case 8:return o=t.sent,t.abrupt("return",Object(c.a)(o,n));case 10:if(!Object(u.b)(e)&&!Object(u.i)(e)){t.next=12;break}return t.abrupt("return",Object(c.a)(e,n));case 12:if(!Object(u.a)(e)){t.next=14;break}return t.abrupt("return",e[Symbol.asyncIterator]());case 14:return t.abrupt("return",y(e));case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(t){if(ArrayBuffer.isView(t))return i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.buffer;case 2:case"end":return e.stop()}}),e)}))();if(t instanceof ArrayBuffer)return i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:case"end":return e.stop()}}),e)}))();if(Object(u.e)(t))return t;if(Object(u.d)(t))return t[Symbol.iterator]();throw new Error(f)}},function(t,e,n){"use strict";var r=n(4),i=n.n(r),o=i.a.mark(a);function a(t,e){var n,r,a,s,u;return i.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=(null==e?void 0:e.chunkSize)||262144,r=0,a=new TextEncoder;case 3:if(!(r<t.length)){i.next=11;break}return s=Math.min(t.length-r,n),u=t.slice(r,r+s),r+=s,i.next=9,a.encode(u);case 9:i.next=3;break;case 11:case"end":return i.stop()}}),o)}var s=i.a.mark(u);function u(t){var e,n,r,o,a,u,c,l=arguments;return i.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e=l.length>1&&void 0!==l[1]?l[1]:{},n=e.chunkSize,r=void 0===n?262144:n,o=0;case 3:if(!(o<t.byteLength)){i.next=14;break}return a=Math.min(t.byteLength-o,r),u=new ArrayBuffer(a),c=new Uint8Array(t,o,a),new Uint8Array(u).set(c),o+=a,i.next=12,u;case 12:i.next=3;break;case 14:case"end":return i.stop()}}),s)}var c=n(33),l=n.n(c),f=n(57),h=n.n(f);function d(){return(d=h()(i.a.mark((function t(e,n){var r,o,a,s;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=(null==n?void 0:n.chunkSize)||1048576,o=0;case 2:if(!(o<e.size)){t.next=12;break}return a=o+r,t.next=6,l()(e.slice(o,a).arrayBuffer());case 6:return s=t.sent,o=a,t.next=10,s;case 10:t.next=2;break;case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var p=n(43),v=n.n(p),g=n(89),y=n(83);function m(t,e){return g.c?function(t,e){return b.apply(this,arguments)}(t,e):function(t,e){return _.apply(this,arguments)}(t,e)}function b(){return(b=h()(i.a.mark((function t(e,n){var r,o,a,s,u,c;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.getReader(),t.prev=1;case 2:return a=o||r.read(),null!=n&&n._streamReadAhead&&(o=r.read()),t.next=7,l()(a);case 7:if(s=t.sent,u=s.done,c=s.value,!u){t.next=12;break}return t.abrupt("return");case 12:return t.next=14,Object(y.d)(c);case 14:t.next=2;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(1),r.releaseLock();case 21:case"end":return t.stop()}}),t,null,[[1,18]])})))).apply(this,arguments)}function _(){return(_=h()(i.a.mark((function t(e,n){var r,o,a,s,u,c,f;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=!0,o=!1,t.prev=2,s=v()(e);case 4:return t.next=6,l()(s.next());case 6:return u=t.sent,r=u.done,t.next=10,l()(u.value);case 10:if(c=t.sent,r){t.next=18;break}return f=c,t.next=15,Object(y.d)(f);case 15:r=!0,t.next=4;break;case 18:t.next=24;break;case 20:t.prev=20,t.t0=t.catch(2),o=!0,a=t.t0;case 24:if(t.prev=24,t.prev=25,r||null==s.return){t.next=29;break}return t.next=29,l()(s.return());case 29:if(t.prev=29,!o){t.next=32;break}throw a;case 32:return t.finish(29);case 33:return t.finish(24);case 34:case"end":return t.stop()}}),t,null,[[2,20,24,34],[25,,29,33]])})))).apply(this,arguments)}var w=n(23);function x(t,e){if("string"==typeof t)return a(t,e);if(t instanceof ArrayBuffer)return u(t,e);if(Object(w.b)(t))return function(t,e){return d.apply(this,arguments)}(t,e);if(Object(w.i)(t))return m(t,e);if(Object(w.j)(t))return m(t.body,e);throw new Error("makeIterator")}n.d(e,"a",(function(){return x}))},function(t,e,n){var r,i,o; | |
/** | |
* @license long.js (c) 2013 Daniel Wirtz <[email protected]> | |
* Released under the Apache License, Version 2.0 | |
* see: https://github.com/dcodeIO/long.js for details | |
*/i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(t,e,n){this.low=0|t,this.high=0|e,this.unsigned=!!n}function e(t){return!0===(t&&t.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=e;var n={},r={};function i(t,e){var i,o,s;return e?(s=0<=(t>>>=0)&&t<256)&&(o=r[t])?o:(i=a(t,(0|t)<0?-1:0,!0),s&&(r[t]=i),i):(s=-128<=(t|=0)&&t<128)&&(o=n[t])?o:(i=a(t,t<0?-1:0,!1),s&&(n[t]=i),i)}function o(t,e){if(isNaN(t)||!isFinite(t))return e?v:p;if(e){if(t<0)return v;if(t>=f)return _}else{if(t<=-h)return w;if(t+1>=h)return b}return t<0?o(-t,e).neg():a(t%l|0,t/l|0,e)}function a(e,n,r){return new t(e,n,r)}t.fromInt=i,t.fromNumber=o,t.fromBits=a;var s=Math.pow;function u(t,e,n){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return p;if("number"==typeof e?(n=e,e=!1):e=!!e,(n=n||10)<2||36<n)throw RangeError("radix");var r;if((r=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===r)return u(t.substring(1),e,n).neg();for(var i=o(s(n,8)),a=p,c=0;c<t.length;c+=8){var l=Math.min(8,t.length-c),f=parseInt(t.substring(c,c+l),n);if(l<8){var h=o(s(n,l));a=a.mul(h).add(o(f))}else a=(a=a.mul(i)).add(o(f))}return a.unsigned=e,a}function c(e){return e instanceof t?e:"number"==typeof e?o(e):"string"==typeof e?u(e):a(e.low,e.high,e.unsigned)}t.fromString=u,t.fromValue=c;var l=4294967296,f=l*l,h=f/2,d=i(1<<24),p=i(0);t.ZERO=p;var v=i(0,!0);t.UZERO=v;var g=i(1);t.ONE=g;var y=i(1,!0);t.UONE=y;var m=i(-1);t.NEG_ONE=m;var b=a(-1,2147483647,!1);t.MAX_VALUE=b;var _=a(-1,-1,!0);t.MAX_UNSIGNED_VALUE=_;var w=a(0,-2147483648,!1);t.MIN_VALUE=w;var x=t.prototype;return x.toInt=function(){return this.unsigned?this.low>>>0:this.low},x.toNumber=function(){return this.unsigned?(this.high>>>0)*l+(this.low>>>0):this.high*l+(this.low>>>0)},x.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(w)){var e=o(t),n=this.div(e),r=n.mul(e).sub(this);return n.toString(t)+r.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var i=o(s(t,6),this.unsigned),a=this,u="";;){var c=a.div(i),l=(a.sub(c.mul(i)).toInt()>>>0).toString(t);if((a=c).isZero())return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}},x.getHighBits=function(){return this.high},x.getHighBitsUnsigned=function(){return this.high>>>0},x.getLowBits=function(){return this.low},x.getLowBitsUnsigned=function(){return this.low>>>0},x.getNumBitsAbs=function(){if(this.isNegative())return this.eq(w)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<<e);e--);return 0!=this.high?e+33:e+1},x.isZero=function(){return 0===this.high&&0===this.low},x.isNegative=function(){return!this.unsigned&&this.high<0},x.isPositive=function(){return this.unsigned||this.high>=0},x.isOdd=function(){return 1==(1&this.low)},x.isEven=function(){return 0==(1&this.low)},x.equals=function(t){return e(t)||(t=c(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},x.eq=x.equals,x.notEquals=function(t){return!this.eq(t)},x.neq=x.notEquals,x.lessThan=function(t){return this.comp(t)<0},x.lt=x.lessThan,x.lessThanOrEqual=function(t){return this.comp(t)<=0},x.lte=x.lessThanOrEqual,x.greaterThan=function(t){return this.comp(t)>0},x.gt=x.greaterThan,x.greaterThanOrEqual=function(t){return this.comp(t)>=0},x.gte=x.greaterThanOrEqual,x.compare=function(t){if(e(t)||(t=c(t)),this.eq(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},x.comp=x.compare,x.negate=function(){return!this.unsigned&&this.eq(w)?w:this.not().add(g)},x.neg=x.negate,x.add=function(t){e(t)||(t=c(t));var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,o=65535&this.low,s=t.high>>>16,u=65535&t.high,l=t.low>>>16,f=0,h=0,d=0,p=0;return d+=(p+=o+(65535&t.low))>>>16,h+=(d+=i+l)>>>16,f+=(h+=r+u)>>>16,f+=n+s,a((d&=65535)<<16|(p&=65535),(f&=65535)<<16|(h&=65535),this.unsigned)},x.subtract=function(t){return e(t)||(t=c(t)),this.add(t.neg())},x.sub=x.subtract,x.multiply=function(t){if(this.isZero())return p;if(e(t)||(t=c(t)),t.isZero())return p;if(this.eq(w))return t.isOdd()?w:p;if(t.eq(w))return this.isOdd()?w:p;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(d)&&t.lt(d))return o(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,s=65535&this.low,u=t.high>>>16,l=65535&t.high,f=t.low>>>16,h=65535&t.low,v=0,g=0,y=0,m=0;return y+=(m+=s*h)>>>16,g+=(y+=i*h)>>>16,y&=65535,g+=(y+=s*f)>>>16,v+=(g+=r*h)>>>16,g&=65535,v+=(g+=i*f)>>>16,g&=65535,v+=(g+=s*l)>>>16,v+=n*h+r*f+i*l+s*u,a((y&=65535)<<16|(m&=65535),(v&=65535)<<16|(g&=65535),this.unsigned)},x.mul=x.multiply,x.divide=function(t){if(e(t)||(t=c(t)),t.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?v:p;var n,r,i;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return v;if(t.gt(this.shru(1)))return y;i=v}else{if(this.eq(w))return t.eq(g)||t.eq(m)?w:t.eq(w)?g:(n=this.shr(1).div(t).shl(1)).eq(p)?t.isNegative()?g:m:(r=this.sub(t.mul(n)),i=n.add(r.div(t)));if(t.eq(w))return this.unsigned?v:p;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=p}for(r=this;r.gte(t);){n=Math.max(1,Math.floor(r.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(n)/Math.LN2),u=a<=48?1:s(2,a-48),l=o(n),f=l.mul(t);f.isNegative()||f.gt(r);)f=(l=o(n-=u,this.unsigned)).mul(t);l.isZero()&&(l=g),i=i.add(l),r=r.sub(f)}return i},x.div=x.divide,x.modulo=function(t){return e(t)||(t=c(t)),this.sub(this.div(t).mul(t))},x.mod=x.modulo,x.not=function(){return a(~this.low,~this.high,this.unsigned)},x.and=function(t){return e(t)||(t=c(t)),a(this.low&t.low,this.high&t.high,this.unsigned)},x.or=function(t){return e(t)||(t=c(t)),a(this.low|t.low,this.high|t.high,this.unsigned)},x.xor=function(t){return e(t)||(t=c(t)),a(this.low^t.low,this.high^t.high,this.unsigned)},x.shiftLeft=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?a(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):a(0,this.low<<t-32,this.unsigned)},x.shl=x.shiftLeft,x.shiftRight=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?a(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):a(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},x.shr=x.shiftRight,x.shiftRightUnsigned=function(t){if(e(t)&&(t=t.toInt()),0==(t&=63))return this;var n=this.high;return t<32?a(this.low>>>t|n<<32-t,n>>>t,this.unsigned):a(32===t?n:n>>>t-32,0,this.unsigned)},x.shru=x.shiftRightUnsigned,x.toSigned=function(){return this.unsigned?a(this.low,this.high,!1):this},x.toUnsigned=function(){return this.unsigned?this:a(this.low,this.high,!0)},x.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},x.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255]},x.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e]},t})?r.apply(e,i):r)||(t.exports=o)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var r=n(63),i=n(19);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=Math.PI/180,u=new Float32Array(16),c=new Float32Array(12);function l(t,e,n){var r=e[0]*s,i=e[1]*s,o=e[2]*s,a=Math.sin(o),u=Math.sin(r),c=Math.sin(i),l=Math.cos(o),f=Math.cos(r),h=Math.cos(i),d=n[0],p=n[1],v=n[2];t[0]=d*h*f,t[1]=d*c*f,t[2]=d*-u,t[3]=p*(-c*l+h*u*a),t[4]=p*(h*l+c*u*a),t[5]=p*f*a,t[6]=v*(c*a+h*u*l),t[7]=v*(-h*a+c*u*l),t[8]=v*f*l}function f(t){return t[0]=t[0],t[1]=t[1],t[2]=t[2],t[3]=t[4],t[4]=t[5],t[5]=t[6],t[6]=t[8],t[7]=t[9],t[8]=t[10],t[9]=t[12],t[10]=t[13],t[11]=t[14],t.subarray(0,12)}var h={size:12,accessor:["getOrientation","getScale","getTranslation","getTransformMatrix"],shaderAttributes:{instanceModelMatrix__LOCATION_0:{size:3,elementOffset:0},instanceModelMatrix__LOCATION_1:{size:3,elementOffset:3},instanceModelMatrix__LOCATION_2:{size:3,elementOffset:6},instanceTranslation:{size:3,elementOffset:9}},update:function(t,e){var n=e.startRow,i=e.endRow,a=this.props,s=a.data,h=a.getOrientation,d=a.getScale,p=a.getTranslation,v=a.getTransformMatrix,g=Array.isArray(v),y=g&&16===v.length,m=Array.isArray(d),b=Array.isArray(h),_=Array.isArray(p),w=y||!g&&Boolean(v(s[0]));t.constant=w?y:b&&m&&_;var x=t.value;if(t.constant){var O;if(w)u.set(v),O=f(u);else l(O=c,h,d),O.set(p,9);t.value=new Float32Array(O)}else{var P,S=n*t.size,k=Object(r.a)(s,n,i),j=k.iterable,A=k.objectInfo,T=o(j);try{for(T.s();!(P=T.n()).done;){var E=P.value;A.index++;var M=void 0;if(w)u.set(y?v:v(E,A)),M=f(u);else l(M=c,b?h:h(E,A),m?d:d(E,A)),M.set(_?p:p(E,A),9);x[S++]=M[0],x[S++]=M[1],x[S++]=M[2],x[S++]=M[3],x[S++]=M[4],x[S++]=M[5],x[S++]=M[6],x[S++]=M[7],x[S++]=M[8],x[S++]=M[9],x[S++]=M[10],x[S++]=M[11]}}catch(t){T.e(t)}finally{T.f()}}}};function d(t,e){return e===i.a.CARTESIAN||e===i.a.METER_OFFSETS||e===i.a.DEFAULT&&!t.isGeospatial}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return y}));var r=n(4),i=n.n(r),o=n(33),a=n.n(o),s=n(57),u=n.n(s),c=n(43),l=n.n(c);function f(t){return h.apply(this,arguments)}function h(){return(h=u()(i.a.mark((function t(e){var n,r,o,s,u,c,f,h,d,p=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=p.length>1&&void 0!==p[1]?p[1]:{},r=new TextDecoder(void 0,n),o=!0,s=!1,t.prev=4,c=l()(e);case 6:return t.next=8,a()(c.next());case 8:return f=t.sent,o=f.done,t.next=12,a()(f.value);case 12:if(h=t.sent,o){t.next=20;break}return d=h,t.next=17,"string"==typeof d?d:r.decode(d,{stream:!0});case 17:o=!0,t.next=6;break;case 20:t.next=26;break;case 22:t.prev=22,t.t0=t.catch(4),s=!0,u=t.t0;case 26:if(t.prev=26,t.prev=27,o||null==c.return){t.next=31;break}return t.next=31,a()(c.return());case 31:if(t.prev=31,!s){t.next=34;break}throw u;case 34:return t.finish(31);case 35:return t.finish(26);case 36:case"end":return t.stop()}}),t,null,[[4,22,26,36],[27,,31,35]])})))).apply(this,arguments)}function d(t){return p.apply(this,arguments)}function p(){return(p=u()(i.a.mark((function t(e){var n,r,o,s,u,c,f,h;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new TextEncoder,r=!0,o=!1,t.prev=3,u=l()(e);case 5:return t.next=7,a()(u.next());case 7:return c=t.sent,r=c.done,t.next=11,a()(c.value);case 11:if(f=t.sent,r){t.next=19;break}return h=f,t.next=16,"string"==typeof h?n.encode(h):h;case 16:r=!0,t.next=5;break;case 19:t.next=25;break;case 21:t.prev=21,t.t0=t.catch(3),o=!0,s=t.t0;case 25:if(t.prev=25,t.prev=26,r||null==u.return){t.next=30;break}return t.next=30,a()(u.return());case 30:if(t.prev=30,!o){t.next=33;break}throw s;case 33:return t.finish(30);case 34:return t.finish(25);case 35:case"end":return t.stop()}}),t,null,[[3,21,25,35],[26,,30,34]])})))).apply(this,arguments)}function v(t){return g.apply(this,arguments)}function g(){return(g=u()(i.a.mark((function t(e){var n,r,o,s,u,c,f,h,d;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n="",r=!0,o=!1,t.prev=3,u=l()(e);case 5:return t.next=7,a()(u.next());case 7:return c=t.sent,r=c.done,t.next=11,a()(c.value);case 11:if(f=t.sent,r){t.next=26;break}n+=f,h=void 0;case 16:if(!((h=n.indexOf("\n"))>=0)){t.next=23;break}return d=n.slice(0,h+1),n=n.slice(h+1),t.next=21,d;case 21:t.next=16;break;case 23:r=!0,t.next=5;break;case 26:t.next=32;break;case 28:t.prev=28,t.t0=t.catch(3),o=!0,s=t.t0;case 32:if(t.prev=32,t.prev=33,r||null==u.return){t.next=37;break}return t.next=37,a()(u.return());case 37:if(t.prev=37,!o){t.next=40;break}throw s;case 40:return t.finish(37);case 41:return t.finish(32);case 42:if(!(n.length>0)){t.next=45;break}return t.next=45,n;case 45:case"end":return t.stop()}}),t,null,[[3,28,32,42],[33,,37,41]])})))).apply(this,arguments)}function y(t){return m.apply(this,arguments)}function m(){return(m=u()(i.a.mark((function t(e){var n,r,o,s,u,c,f,h;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=1,r=!0,o=!1,t.prev=3,u=l()(e);case 5:return t.next=7,a()(u.next());case 7:return c=t.sent,r=c.done,t.next=11,a()(c.value);case 11:if(f=t.sent,r){t.next=20;break}return h=f,t.next=16,{counter:n,line:h};case 16:n++;case 17:r=!0,t.next=5;break;case 20:t.next=26;break;case 22:t.prev=22,t.t0=t.catch(3),o=!0,s=t.t0;case 26:if(t.prev=26,t.prev=27,r||null==u.return){t.next=31;break}return t.next=31,a()(u.return());case 31:if(t.prev=31,!o){t.next=34;break}throw s;case 34:return t.finish(31);case 35:return t.finish(26);case 36:case"end":return t.stop()}}),t,null,[[3,22,26,36],[27,,31,35]])})))).apply(this,arguments)}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if("string"==typeof t)return t.slice(0,e);if(ArrayBuffer.isView(t))return i(t.buffer,t.byteOffset,e);if(t instanceof ArrayBuffer){var n=0;return i(t,n,e)}return""}function i(t,e,n){if(t.byteLength<=e+n)return"";for(var r=new DataView(t),i="",o=0;o<n;o++)i+=String.fromCharCode(r.getUint8(e+o));return i}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return v}));var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s),c=n(79);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=function(){},d={BREAK:1,SNAP_TO_END:2,IGNORE:3},p={transitionEasing:function(t){return t},transitionInterruption:d.BREAK,onTransitionStart:h,onTransitionInterrupt:h,onTransitionEnd:h},v=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a()(this,t),this.ControllerState=e,this.props=f(f({},p),n),this.propsInTransition=null,this.transition=new c.a(n.timeline),this.onViewStateChange=n.onViewStateChange||h,this.onStateChange=n.onStateChange||h,this._onTransitionUpdate=this._onTransitionUpdate.bind(this)}return u()(t,[{key:"finalize",value:function(){this.transition.cancel()}},{key:"getViewportInTransition",value:function(){return this.propsInTransition}},{key:"processViewStateChange",value:function(t){var e=!1,n=this.props;if(t=f(f({},p),t),this.props=t,this._shouldIgnoreViewportChange(n,t))return e;if(this._isTransitionEnabled(t)){var r=this.transition.settings,i=r.interruption,o=r.endProps,a=f(f({},n),i===d.SNAP_TO_END?o:this.propsInTransition||n);this._triggerTransition(a,t),e=!0}else this.transition.cancel();return e}},{key:"updateTransition",value:function(){this.transition.update()}},{key:"_isTransitionEnabled",value:function(t){var e=t.transitionDuration,n=t.transitionInterpolator;return(e>0||"auto"===e)&&Boolean(n)}},{key:"_isUpdateDueToCurrentTransition",value:function(t){return!!this.transition.inProgress&&this.transition.settings.interpolator.arePropsEqual(t,this.propsInTransition)}},{key:"_shouldIgnoreViewportChange",value:function(t,e){return this.transition.inProgress?this.transition.settings.interruption===d.IGNORE||this._isUpdateDueToCurrentTransition(e):!this._isTransitionEnabled(e)||e.transitionInterpolator.arePropsEqual(t,e)}},{key:"_triggerTransition",value:function(t,e){var n=new this.ControllerState(t),r=new this.ControllerState(e).shortestPathFrom(n),i=e.transitionInterpolator,o=i.getDuration?i.getDuration(t,e):e.transitionDuration;if(0!==o){var a=e.transitionInterpolator.initializeProps(t,r);this.propsInTransition={},this.duration=o,this.transition.start({duration:o,easing:e.transitionEasing,interpolator:e.transitionInterpolator,interruption:e.transitionInterruption,startProps:a.start,endProps:a.end,onStart:e.onTransitionStart,onUpdate:this._onTransitionUpdate,onInterrupt:this._onTransitionEnd(e.onTransitionInterrupt),onEnd:this._onTransitionEnd(e.onTransitionEnd)}),this.onStateChange({inTransition:!0}),this.updateTransition()}}},{key:"_onTransitionEnd",value:function(t){var e=this;return function(n){e.propsInTransition=null,e.onStateChange({inTransition:!1,isZooming:!1,isPanning:!1,isRotating:!1}),t(n)}}},{key:"_onTransitionUpdate",value:function(t){var e=t.time,n=t.settings,r=n.interpolator,i=n.startProps,o=n.endProps,a=n.duration,s=(0,n.easing)(e/a),u=r.interpolateProps(i,o,s);this.propsInTransition=new this.ControllerState(f(f({},this.props),u)).getViewportProps(),this.onViewStateChange({viewState:this.propsInTransition,oldViewState:this.props})}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(2),u=n.n(s),c=n(9),l=n.n(c),f=n(5),h=n.n(f),d=n(6),p=n.n(d),v=n(3),g=n.n(v),y=n(110),m=n(13);function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var P=["longitude","latitude","zoom","bearing","pitch"],S=["longitude","latitude","zoom"],k=function(t){h()(n,t);var e=O(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(this,n);var i=Array.isArray(r)?r:r.transitionProps;return(t=e.call(this,i||{compare:P,extract:P,required:S})).opts=r,t}return u()(n,[{key:"initializeProps",value:function(t,e){var r=l()(g()(n.prototype),"initializeProps",this).call(this,t,e),i=this.opts,o=i.makeViewport,a=i.around;if(o&&a){var s=o(t),u=o(e),c=s.unproject(a);r.start.around=a,Object.assign(r.end,{around:u.project(c),aroundPosition:c,width:e.width,height:e.height})}return r}},{key:"interpolateProps",value:function(t,e,n){var r,i={},o=w(this._propsToExtract);try{for(o.s();!(r=o.n()).done;){var a=r.value;i[a]=Object(m.f)(t[a]||0,e[a]||0,n)}}catch(t){o.e(t)}finally{o.f()}if(e.aroundPosition){var s=this.opts.makeViewport(_(_({},e),i));Object.assign(i,s.panByPosition(e.aroundPosition,Object(m.f)(t.around,e.around,n)))}return i}}]),n}(y.a)},function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var r=n(15),i=n.n(r),o=n(38).b.COMPONENT;function a(t){var e=d(t);for(var n in e){var r=e[n],i=r.validate;if(i&&!i(t[n],r))throw new Error("Invalid prop ".concat(n,": ").concat(t[n]))}}function s(t,e){var n=c({newProps:t,oldProps:e,propTypes:d(t),ignoreProps:{data:null,updateTriggers:null,extensions:null,transitions:null}}),r=function(t,e){if(null===e)return"oldProps is null, initial diff";var n=null,r=t.dataComparator,i=t._dataDiff;r?r(t.data,e.data)||(n="Data comparator detected a change"):t.data!==e.data&&(n="A new data container was supplied");n&&i&&(n=i(t.data,e.data)||n);return n}(t,e),i=!1;return r||(i=function(t,e){if(null===e)return"oldProps is null, initial diff";if("all"in t.updateTriggers){if(h(t,e,"all"))return{all:!0}}var n={},r=!1;for(var i in t.updateTriggers){if("all"!==i)h(t,e,i)&&(n[i]=!0,r=n)}return r}(t,e)),{dataChanged:r,propsChanged:n,updateTriggersChanged:i,extensionsChanged:f(t,e),transitionsChanged:u(t,e)}}function u(t,e){if(!t.transitions)return null;var n={},r=d(t);for(var i in t.transitions){var o=r[i],a=o&&o.type;("number"===a||"color"===a||"array"===a)&&l(t[i],e[i],o)&&(n[i]=!0)}return n}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.newProps,n=t.oldProps,r=t.ignoreProps,o=void 0===r?{}:r,a=t.propTypes,s=void 0===a?{}:a,u=t.triggerName,c=void 0===u?"props":u;if(n===e)return null;if("object"!==i()(e)||null===e)return"".concat(c," changed shallowly");if("object"!==i()(n)||null===n)return"".concat(c," changed shallowly");for(var f=0,h=Object.keys(e);f<h.length;f++){var d=h[f];if(!(d in o)){if(!(d in n))return"".concat(c,".").concat(d," added");var p=l(e[d],n[d],s[d]);if(p)return"".concat(c,".").concat(d," ").concat(p)}}for(var v=0,g=Object.keys(n);v<g.length;v++){var y=g[v];if(!(y in o)){if(!(y in e))return"".concat(c,".").concat(y," dropped");if(!Object.hasOwnProperty.call(e,y)){var m=l(e[y],n[y],s[y]);if(m)return"".concat(c,".").concat(y," ").concat(m)}}}return null}function l(t,e,n){var r=n&&n.equal;return r&&!r(t,e,n)?"changed deeply":r||!(r=t&&e&&t.equals)||r.call(t,e)?r||e===t?null:"changed shallowly":"changed deeply"}function f(t,e){if(null===e)return"oldProps is null, initial diff";var n=e.extensions,r=t.extensions;if(r===n)return!1;if(r.length!==n.length)return!0;for(var i=0;i<r.length;i++)if(!r[i].equals(n[i]))return!0;return!1}function h(t,e,n){var r=t.updateTriggers[n];r=null==r?{}:r;var i=e.updateTriggers[n];return c({oldProps:i=null==i?{}:i,newProps:r,triggerName:n})}function d(t){var e=t[o],n=e&&e.constructor;return n?n._propTypes:{}}},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(5),u=n.n(s),c=n(6),l=n.n(c),f=n(3),h=n.n(f),d=n(188),p=n(102),v=n(143),g=n(97),y=n(92),m=n(13),b=n(0),_=n.n(b),w=n(9),x=n.n(w),O=n(91),P=n(104),S=n(77),k=n(10);function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){_()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}var E=function(t){u()(n,t);var e=T(n);function n(t,r){var o,a,s;return i()(this,n),(s=e.call(this,t,r)).shadowMap=new p.a(t,{width:1,height:1,parameters:(o={},_()(o,10241,9729),_()(o,10240,9729),_()(o,10242,33071),_()(o,10243,33071),o)}),s.depthBuffer=new P.a(t,{format:33189,width:1,height:1}),s.fbo=new S.a(t,{id:"shadowmap",width:1,height:1,attachments:(a={},_()(a,36064,s.shadowMap),_()(a,36096,s.depthBuffer),a)}),s}return a()(n,[{key:"render",value:function(t){var e=this,r=this.fbo;Object(k.o)(this.gl,{depthRange:[0,1],depthTest:!0,blend:!1,clearColor:[1,1,1,1]},(function(){var i=t.viewports[0],o=Object(k.e)(e.gl),a=i.width*o,s=i.height*o;a===r.width&&s===r.height||r.resize({width:a,height:s}),x()(h()(n.prototype),"render",e).call(e,A(A({},t),{},{target:r,pass:"shadow"}))}))}},{key:"shouldDrawLayer",value:function(t){return!1!==t.props.shadowEnabled}},{key:"getModuleParameters",value:function(){return{drawToShadowMap:!0}}},{key:"delete",value:function(){this.fbo&&(this.fbo.delete(),this.fbo=null),this.shadowMap&&(this.shadowMap.delete(),this.shadowMap=null),this.depthBuffer&&(this.depthBuffer.delete(),this.depthBuffer=null)}}]),n}(O.a),M=n(115);function C(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}n.d(e,"a",(function(){return N}));var L={color:[255,255,255],intensity:1},D=[{color:[255,255,255],intensity:1,direction:[-1,3,-1]},{color:[255,255,255],intensity:.9,direction:[1,-8,-2.5]}],F=[0,0,0,200/255],N=function(t){u()(n,t);var e=R(n);function n(t){var r;for(var o in i()(this,n),(r=e.call(this,t)).ambientLight=null,r.directionalLights=[],r.pointLights=[],r.shadowColor=F,r.shadowPasses=[],r.shadowMaps=[],r.dummyShadowMap=null,r.shadow=!1,r.programManager=null,t){var a=t[o];switch(a.type){case"ambient":r.ambientLight=a;break;case"directional":r.directionalLights.push(a);break;case"point":r.pointLights.push(a)}}return r._applyDefaultLights(),r.shadow=r.directionalLights.some((function(t){return t.shadow})),r}return a()(n,[{key:"preRender",value:function(t,e){var n=e.layers,r=e.layerFilter,i=e.viewports,o=e.onViewportActive,a=e.views;if(this.shadow){this.shadowMatrices=this._createLightMatrix(),0===this.shadowPasses.length&&this._createShadowPasses(t),this.programManager||(this.programManager=d.a.getDefaultProgramManager(t),M.a&&this.programManager.addDefaultModule(M.a)),this.dummyShadowMap||(this.dummyShadowMap=new p.a(t,{width:1,height:1}));for(var s=0;s<this.shadowPasses.length;s++){this.shadowPasses[s].render({layers:n,layerFilter:r,viewports:i,onViewportActive:o,views:a,moduleParameters:{shadowLightId:s,dummyShadowMap:this.dummyShadowMap,shadowMatrices:this.shadowMatrices}})}}}},{key:"getModuleParameters",value:function(t){var e=this.shadow?{shadowMaps:this.shadowMaps,dummyShadowMap:this.dummyShadowMap,shadowColor:this.shadowColor,shadowMatrices:this.shadowMatrices}:{};return e.lightSources={ambientLight:this.ambientLight,directionalLights:this.directionalLights.map((function(e){return e.getProjectedLight({layer:t})})),pointLights:this.pointLights.map((function(e){return e.getProjectedLight({layer:t})}))},e}},{key:"cleanup",value:function(){var t,e=C(this.shadowPasses);try{for(e.s();!(t=e.n()).done;){t.value.delete()}}catch(t){e.e(t)}finally{e.f()}this.shadowPasses.length=0,this.shadowMaps.length=0,this.dummyShadowMap&&(this.dummyShadowMap.delete(),this.dummyShadowMap=null),this.shadow&&this.programManager&&(this.programManager.removeDefaultModule(M.a),this.programManager=null)}},{key:"_createLightMatrix",value:function(){var t,e=[],n=C(this.directionalLights);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=(new m.a).lookAt({eye:new m.b(r.direction).negate()});e.push(i)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"_createShadowPasses",value:function(t){for(var e=0;e<this.directionalLights.length;e++){var n=new E(t);this.shadowPasses[e]=n,this.shadowMaps[e]=n.shadowMap}}},{key:"_applyDefaultLights",value:function(){var t=this.ambientLight,e=this.pointLights,n=this.directionalLights;t||0!==e.length||0!==n.length||(this.ambientLight=new v.a(L),this.directionalLights.push(new g.a(D[0]),new g.a(D[1])))}}]),n}(y.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(10);function i(t,e,n){var i=n.removedProps,o=void 0===i?{}:i,a=n.deprecatedProps,s=void 0===a?{}:a,u=n.replacedProps,c=void 0===u?{}:u;for(var l in o)if(l in e){var f=o[l]?"".concat(t,".").concat(o[l]):"N/A";r.k.removed("".concat(t,".").concat(l),f)()}for(var h in s)if(h in e){var d=s[h];r.k.deprecated("".concat(t,".").concat(h),"".concat(t,".").concat(d))()}var p=null;for(var v in c)if(v in e){var g=c[v];r.k.deprecated("".concat(t,".").concat(v),"".concat(t,".").concat(g))(),(p=p||Object.assign({},e))[g]=e[v],delete p[v]}return p||e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return y}));var r=n(0),i=n.n(r),o=n(11),a=n.n(o),s=n(19),u=n(116),c=n(108),l=n(32),f=n(24),h=n(26);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.projectPosition(t);if(n&&e instanceof c.a){var i=a()(t,3),o=i[0],s=i[1],u=i[2],l=void 0===u?0:u,f=e.getDistanceScales([o,s]);r[2]=l*f.unitsPerMeter[2]}return r}function v(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),n=t.coordinateSystem,r=t.viewport,o=t.coordinateOrigin,a=t.fromCoordinateSystem,u=t.fromCoordinateOrigin;return n===s.a.DEFAULT&&(n=r.isGeospatial?s.a.LNGLAT:s.a.CARTESIAN),void 0===a&&(e.fromCoordinateSystem=n),void 0===u&&(e.fromCoordinateOrigin=o),e.coordinateSystem=n,e}function g(t,e){var n=e.viewport,r=e.modelMatrix,i=e.coordinateSystem,o=e.coordinateOrigin,u=e.offsetMode,c=a()(t,3),f=c[0],d=c[1],v=c[2],g=void 0===v?0:v;if(r){var y=l.n([],[f,d,g,1],r),m=a()(y,3);f=m[0],d=m[1],g=m[2]}switch(i){case s.a.LNGLAT:return p([f,d,g],n,u);case s.a.LNGLAT_OFFSETS:return p([f+o[0],d+o[1],g+(o[2]||0)],n,u);case s.a.METER_OFFSETS:return p(Object(h.a)(o,[f,d,g]),n,u);case s.a.CARTESIAN:default:return n.isGeospatial?[f+o[0],d+o[1],g+o[2]]:n.projectPosition([f,d,g])}}function y(t,e){var n=v(e),r=n.viewport,i=n.coordinateSystem,o=n.coordinateOrigin,a=n.modelMatrix,s=n.fromCoordinateSystem,c=n.fromCoordinateOrigin,l=Object(u.a)(r,i,o),h=l.geospatialOrigin,d=l.shaderCoordinateOrigin,p=l.offsetMode,y=g(t,{viewport:r,modelMatrix:a,coordinateSystem:s,coordinateOrigin:c,offsetMode:p});if(p){var m=r.projectPosition(h||d);f.r(y,y,m)}return y}},function(t,e,n){"use strict";n.d(e,"b",(function(){return g})),n.d(e,"a",(function(){return y}));var r=n(11),i=n.n(r),o=n(241),a=n.n(o),s=n(44);function u(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var l=s.a.CLOCKWISE,f=s.a.COUNTER_CLOCKWISE,h={isClosed:!0};function d(t,e,n,r){for(var i=0;i<e;i++)if(t[n+i]!==t[r-e+i])return!1;return!0}function p(t,e,n,r,i){for(var o=e,a=n.length,u=0;u<a;u++)for(var c=0;c<r;c++)t[o++]=n[u][c]||0;if(!function(t){var e=t[0],n=t[t.length-1];return e[0]===n[0]&&e[1]===n[1]&&e[2]===n[2]}(n))for(var l=0;l<r;l++)t[o++]=n[0][l]||0;return h.start=e,h.end=o,h.size=r,Object(s.h)(t,i,h),o}function v(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,u=(o=o||n.length)-i;if(u<=0)return e;for(var c=e,l=0;l<u;l++)t[c++]=n[i+l];if(!d(n,r,i,o))for(var f=0;f<r;f++)t[c++]=n[i+f];return h.start=e,h.end=c,h.size=r,Object(s.h)(t,a,h),c}function g(t,e){!function(t){if(t=t&&t.positions||t,!Array.isArray(t)&&!ArrayBuffer.isView(t))throw new Error("invalid polygon")}(t);var n=[],r=[];if(t.positions){var o=t,a=o.positions,s=o.holeIndices;if(s){for(var c=0,h=0;h<=s.length;h++)c=v(n,c,a,e,s[h-1],s[h],0===h?l:f),r.push(c);return r.pop(),{positions:n,holeIndices:r}}t=a}if(Number.isFinite(t[0]))return v(n,0,t,e,0,n.length,l),n;if(!function(t){return t.length>=1&&t[0].length>=2&&Number.isFinite(t[0][0])}(t)){var d,g=0,y=u(t.entries());try{for(y.s();!(d=y.n()).done;){var m=i()(d.value,2),b=m[0];g=p(n,g,m[1],e,0===b?l:f),r.push(g)}}catch(t){y.e(t)}finally{y.f()}return r.pop(),{positions:n,holeIndices:r}}return p(n,0,t,e,l),n}function y(t,e,n){var r=null;t.holeIndices&&(r=t.holeIndices.map((function(t){return t/e})));var i=t.positions||t;if(n){var o=i.length;i=i.slice();for(var s=[],u=0;u<o;u+=e){s[0]=i[u],s[1]=i[u+1];var c=n(s);i[u]=c[0],i[u+1]=c[1]}}return a()(i,r,e)}},function(t,e,n){"use strict";var r=n(1),i=n.n(r),o=n(2),a=n.n(o);function s(){var t;if("undefined"!=typeof window&&window.performance)t=window.performance.now();else if("undefined"!=typeof process&&process.hrtime){var e=process.hrtime();t=1e3*e[0]+e[1]/1e6}else t=Date.now();return t}var u=function(){function t(e,n){i()(this,t),this.name=e,this.type=n,this.sampleSize=1,this.reset()}return a()(t,[{key:"setSampleSize",value:function(t){return this.sampleSize=t,this}},{key:"incrementCount",value:function(){return this.addCount(1),this}},{key:"decrementCount",value:function(){return this.subtractCount(1),this}},{key:"addCount",value:function(t){return this._count+=t,this._samples++,this._checkSampling(),this}},{key:"subtractCount",value:function(t){return this._count-=t,this._samples++,this._checkSampling(),this}},{key:"addTime",value:function(t){return this._time+=t,this.lastTiming=t,this._samples++,this._checkSampling(),this}},{key:"timeStart",value:function(){return this._startTime=s(),this._timerPending=!0,this}},{key:"timeEnd",value:function(){return this._timerPending?(this.addTime(s()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}},{key:"getSampleAverageCount",value:function(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}},{key:"getSampleAverageTime",value:function(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}},{key:"getSampleHz",value:function(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}},{key:"getAverageCount",value:function(){return this.samples>0?this.count/this.samples:0}},{key:"getAverageTime",value:function(){return this.samples>0?this.time/this.samples:0}},{key:"getHz",value:function(){return this.time>0?this.samples/(this.time/1e3):0}},{key:"reset",value:function(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}},{key:"_checkSampling",value:function(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}]),t}(),c=function(){function t(e){var n=e.id,r=e.stats;i()(this,t),this.id=n,this.stats={},this._initializeStats(r),Object.seal(this)}return a()(t,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"count";return this._getOrCreate({name:t,type:e})}},{key:"reset",value:function(){for(var t in this.stats)this.stats[t].reset();return this}},{key:"forEach",value:function(t){for(var e in this.stats)t(this.stats[e])}},{key:"getTable",value:function(){var t={};return this.forEach((function(e){t[e.name]={time:e.time||0,count:e.count||0,average:e.getAverageTime()||0,hz:e.getHz()||0}})),t}},{key:"_initializeStats",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){return t._getOrCreate(e)}))}},{key:"_getOrCreate",value:function(t){if(!t||!t.name)return null;var e=t.name,n=t.type;return this.stats[e]||(this.stats[e]=t instanceof u?t:new u(e,n)),this.stats[e]}},{key:"size",get:function(){return Object.keys(this.stats).length}}]),t}();n.d(e,"a",(function(){return c}))},function(t,e,n){"use strict";var r="#if (defined(SHADER_TYPE_FRAGMENT) && defined(LIGHTING_FRAGMENT)) || (defined(SHADER_TYPE_VERTEX) && defined(LIGHTING_VERTEX))\n\nstruct AmbientLight {\n vec3 color;\n};\n\nstruct PointLight {\n vec3 color;\n vec3 position;\n vec3 attenuation;\n};\n\nstruct DirectionalLight {\n vec3 color;\n vec3 direction;\n};\n\nuniform AmbientLight lighting_uAmbientLight;\nuniform PointLight lighting_uPointLight[MAX_LIGHTS];\nuniform DirectionalLight lighting_uDirectionalLight[MAX_LIGHTS];\nuniform int lighting_uPointLightCount;\nuniform int lighting_uDirectionalLightCount;\n\nuniform bool lighting_uEnabled;\n\nfloat getPointLightAttenuation(PointLight pointLight, float distance) {\n return pointLight.attenuation.x\n + pointLight.attenuation.y * distance\n + pointLight.attenuation.z * distance * distance;\n}\n\n#endif\n";function i(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return c}));var a={lightSources:{}};function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.color,n=void 0===e?[0,0,0]:e,r=t.intensity,i=void 0===r?1:r;return n.map((function(t){return t*i/255}))}function u(t){var e=t.ambientLight,n=t.pointLights,r=void 0===n?[]:n,i=t.directionalLights,o=void 0===i?[]:i,a={};return a["lighting_uAmbientLight.color"]=e?s(e):[0,0,0],r.forEach((function(t,e){a["lighting_uPointLight[".concat(e,"].color")]=s(t),a["lighting_uPointLight[".concat(e,"].position")]=t.position,a["lighting_uPointLight[".concat(e,"].attenuation")]=t.attenuation||[1,0,0]})),a.lighting_uPointLightCount=r.length,o.forEach((function(t,e){a["lighting_uDirectionalLight[".concat(e,"].color")]=s(t),a["lighting_uDirectionalLight[".concat(e,"].direction")]=t.direction})),a.lighting_uDirectionalLightCount=o.length,a}var c={name:"lights",vs:r,fs:r,getUniforms:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;if("lightSources"in e){var n=e.lightSources||{},r=n.ambientLight,o=n.pointLights,s=n.directionalLights,c=r||o&&o.length>0||s&&s.length>0;return c?Object.assign({},u({ambientLight:r,pointLights:o,directionalLights:s}),{lighting_uEnabled:!0}):{lighting_uEnabled:!1}}if("lights"in e){var l,f={pointLights:[],directionalLights:[]},h=i(e.lights||[]);try{for(h.s();!(l=h.n()).done;){var d=l.value;switch(d.type){case"ambient":f.ambientLight=d;break;case"directional":f.directionalLights.push(d);break;case"point":f.pointLights.push(d)}}}catch(t){h.e(t)}finally{h.f()}return t({lightSources:f})}return{}},defines:{MAX_LIGHTS:3}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(1),i=n.n(r),o=n(2),a=n.n(o),s=n(10),u=n(132),c=n(30),l=new(function(){function t(){i()(this,t),this.stats=new Map}return a()(t,[{key:"get",value:function(t){return this.stats.has(t)||this.stats.set(t,new u.a({id:t})),this.stats.get(t)}}]),t}());if(c.global.luma&&"8.5.10"!==c.global.luma.VERSION)throw new Error("luma.gl - multiple VERSIONs detected: ".concat(c.global.luma.VERSION," vs ").concat("8.5.10"));c.global.luma||(Object(c.isBrowser)()&&s.k.log(1,"luma.gl ".concat("8.5.10"," - ").concat("set luma.log.level=1 (or higher) to trace rendering"))(),c.global.luma=c.global.luma||{VERSION:"8.5.10",version:"8.5.10",log:s.k,stats:l,globals:{modules:{},nodeIO:{}}});c.global.luma},function(t,e,n){var r=n(275),i=n(276),o=n(202),a=n(277);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r; | |
/*! Hammer.JS - v2.0.7 - 2016-04-22 | |
* http://hammerjs.github.io/ | |
* | |
* Copyright (c) 2016 Jorik Tangelder; |
View raw
(Sorry about that, but we can’t show files that are this big right now.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment