diff --git a/current/dist/openlayers/GpPluginOpenLayers-map.css b/current/dist/openlayers/GpPluginOpenLayers-map.css index 7ac9f1ac7..1450ef858 100644 --- a/current/dist/openlayers/GpPluginOpenLayers-map.css +++ b/current/dist/openlayers/GpPluginOpenLayers-map.css @@ -9,8 +9,8 @@ * @copyright copyright (c) IGN * @license CeCILL-B * @author IGN - * @version 3.4.0 - * @date 19/03/2024 + * @version 3.4.1 + * @date 04/04/2024 * */ diff --git a/current/dist/openlayers/GpPluginOpenLayers-map.js b/current/dist/openlayers/GpPluginOpenLayers-map.js index e3f2ce821..963de920e 100644 --- a/current/dist/openlayers/GpPluginOpenLayers-map.js +++ b/current/dist/openlayers/GpPluginOpenLayers-map.js @@ -9,8 +9,8 @@ * @copyright copyright (c) IGN * @license CeCILL-B * @author IGN - * @version 3.4.0 - * @date 19/03/2024 + * @version 3.4.1 + * @date 04/04/2024 * */ @@ -940,7 +940,7 @@ eval("var fontWeights = {\n thin: 100,\n hairline: 100,\n 'ultra-light': 200, /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"applyStyle\", function() { return applyStyle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"applyBackground\", function() { return applyBackground; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setupVectorSource\", function() { return setupVectorSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return olms; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"apply\", function() { return apply; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getLayer\", function() { return getLayer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getLayers\", function() { return getLayers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSource\", function() { return getSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"_finalizeLayer\", function() { return finalizeLayer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"_getFonts\", function() { return getFonts; });\n/* harmony import */ var ol_format_GeoJSON_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ol/format/GeoJSON.js */ \"ol/format/GeoJSON\");\n/* harmony import */ var ol_format_GeoJSON_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ol_format_GeoJSON_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var ol_format_MVT_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ol/format/MVT.js */ \"ol/format/MVT\");\n/* harmony import */ var ol_format_MVT_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ol_format_MVT_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ol_Map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ol/Map.js */ \"ol/Map.js\");\n/* harmony import */ var ol_Map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(ol_Map_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ol/tilegrid/TileGrid.js */ \"ol/tilegrid/TileGrid.js\");\n/* harmony import */ var ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ol/source/TileJSON.js */ \"ol/source/TileJSON\");\n/* harmony import */ var ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var ol_layer_Tile_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ol/layer/Tile.js */ \"ol/layer/Tile\");\n/* harmony import */ var ol_layer_Tile_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Tile_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ol/layer/Vector.js */ \"ol/layer/Vector\");\n/* harmony import */ var ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ol/source/Vector.js */ \"ol/source/Vector\");\n/* harmony import */ var ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ol/layer/VectorTile.js */ \"ol/layer/VectorTile\");\n/* harmony import */ var ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ol/source/VectorTile.js */ \"ol/source/VectorTile\");\n/* harmony import */ var ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var ol_View_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ol/View.js */ \"ol/View.js\");\n/* harmony import */ var ol_View_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(ol_View_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _stylefunction_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./stylefunction.js */ \"./node_modules/ol-mapbox-style/dist/stylefunction.js\");\n/* harmony import */ var webfont_matcher_lib_fonts_google_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! webfont-matcher/lib/fonts/google.js */ \"./node_modules/webfont-matcher/lib/fonts/google.js\");\n/* harmony import */ var webfont_matcher_lib_fonts_google_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(webfont_matcher_lib_fonts_google_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var mapbox_to_css_font__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! mapbox-to-css-font */ \"./node_modules/mapbox-to-css-font/index.js\");\n/* harmony import */ var mapbox_to_css_font__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(mapbox_to_css_font__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _mapbox_mapbox_gl_style_spec__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mapbox/mapbox-gl-style-spec */ \"./node_modules/@mapbox/mapbox-gl-style-spec/dist/index.es.js\");\n/* harmony import */ var _util_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util.js */ \"./node_modules/ol-mapbox-style/dist/util.js\");\n/* harmony import */ var ol_tilegrid_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ol/tilegrid.js */ \"ol/tilegrid\");\n/* harmony import */ var ol_tilegrid_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(ol_tilegrid_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var ol_proj_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ol/proj.js */ \"ol/proj\");\n/* harmony import */ var ol_proj_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(ol_proj_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ol/Observable.js */ \"ol/Observable\");\n/* harmony import */ var ol_Observable_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/*\nol-mapbox-style - Use Mapbox Style objects with OpenLayers\nCopyright 2016-present ol-mapbox-style contributors\nLicense: https://raw.githubusercontent.com/openlayers/ol-mapbox-style/master/LICENSE\n*/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import(\"ol/Map\").default} PluggableMap\n * @typedef {import(\"ol/layer/Layer\").default} Layer\n * @typedef {import(\"ol/source/Source\").default} Source\n * @private\n */\nvar tilejsonCache = {};\nvar fontFamilyRegEx = /font-family: ?([^;]*);/;\nvar stripQuotesRegEx = /(\"|')/g;\nvar loadedFontFamilies;\nfunction hasFontFamily(family) {\n if (!loadedFontFamilies) {\n loadedFontFamilies = {};\n var styleSheets = document.styleSheets;\n for (var i = 0, ii = styleSheets.length; i < ii; ++i) {\n var styleSheet = /** @type {CSSStyleSheet} */styleSheets[i];\n try {\n var cssRules = styleSheet.rules || styleSheet.cssRules;\n if (cssRules) {\n for (var j = 0, jj = cssRules.length; j < jj; ++j) {\n var cssRule = cssRules[j];\n if (cssRule.type == 5) {\n var match = cssRule.cssText.match(fontFamilyRegEx);\n loadedFontFamilies[match[1].replace(stripQuotesRegEx, '')] = true;\n }\n }\n }\n } catch (e) {\n // empty catch block\n }\n }\n }\n return family in loadedFontFamilies;\n}\nvar processedFontFamilies = {};\nvar googleFamilies = webfont_matcher_lib_fonts_google_js__WEBPACK_IMPORTED_MODULE_12___default.a.getNames();\n/**\n * @private\n * @param {Array} fonts Fonts.\n * @return {Array} Processed fonts.\n */\nfunction getFonts(fonts) {\n var fontsKey = fonts.toString();\n if (fontsKey in processedFontFamilies) {\n return fonts;\n }\n var googleFontDescriptions = fonts.map(function (font) {\n var parts = mapbox_to_css_font__WEBPACK_IMPORTED_MODULE_13___default()(font, 1).split(' ');\n return [parts.slice(3).join(' ').replace(/\"/g, ''), parts[1] + parts[0]];\n });\n for (var i = 0, ii = googleFontDescriptions.length; i < ii; ++i) {\n var googleFontDescription = googleFontDescriptions[i];\n var family = googleFontDescription[0];\n if (!hasFontFamily(family) && googleFamilies.indexOf(family) !== -1) {\n var fontUrl = 'https://fonts.googleapis.com/css?family=' + family.replace(/ /g, '+') + ':' + googleFontDescription[1];\n if (!document.querySelector('link[href=\"' + fontUrl + '\"]')) {\n var markup = document.createElement('link');\n markup.href = fontUrl;\n markup.rel = 'stylesheet';\n document.head.appendChild(markup);\n }\n }\n }\n processedFontFamilies[fontsKey] = true;\n return fonts;\n}\nvar spriteRegEx = /^(.*)(\\?.*)$/;\nfunction withPath(url, path) {\n if (path && url.indexOf('.') === 0) {\n url = path + url;\n }\n return url;\n}\nfunction toSpriteUrl(url, path, extension) {\n url = withPath(url, path);\n var parts = url.match(spriteRegEx);\n return parts ? parts[1] + extension + (parts.length > 2 ? parts[2] : '') : url + extension;\n}\n/**\n * ```js\n * import {applyStyle} from 'ol-mapbox-style';\n * ```\n *\n * Applies a style function to an `ol.layer.VectorTile` or `ol.layer.Vector`\n * with an `ol.source.VectorTile` or an `ol.source.Vector`. The style function\n * will render all layers from the `glStyle` object that use the specified\n * `source`, or a subset of layers from the same source. The source needs to be\n * a `\"type\": \"vector\"` or `\"type\": \"geojson\"` source.\n *\n * Two additional properties will be set on the provided layer:\n *\n * * `mapbox-source`: The `id` of the Mapbox Style document's source that the\n * OpenLayers layer was created from. Usually `apply()` creates one\n * OpenLayers layer per Mapbox Style source, unless the layer stack has\n * layers from different sources in between.\n * * `mapbox-layers`: The `id`s of the Mapbox Style document's layers that are\n * included in the OpenLayers layer.\n *\n * @param {VectorTileLayer|VectorLayer} layer OpenLayers layer.\n * @param {string|Object} glStyle Mapbox Style object.\n * @param {string|Array} source `source` key or an array of layer `id`s from the\n * Mapbox Style object. When a `source` key is provided, all layers for the\n * specified source will be included in the style function. When layer `id`s\n * are provided, they must be from layers that use the same source.\n * @param {string} [path=undefined] Path of the style file. Only required when\n * a relative path is used with the `\"sprite\"` property of the style.\n * @param {Array} [resolutions=undefined] Resolutions for mapping resolution to zoom level.\n * @return {Promise} Promise which will be resolved when the style can be used\n * for rendering.\n */\nfunction applyStyle(layer, glStyle, source, path, resolutions) {\n return new Promise(function (resolve, reject) {\n // TODO: figure out where best place to check source type is\n // Note that the source arg is an array of gl layer ids and each must be\n // dereferenced to get source type to validate\n if (_typeof(glStyle) != 'object') {\n glStyle = JSON.parse(glStyle);\n }\n if (glStyle.version != 8) {\n return reject(new Error('glStyle version 8 required.'));\n }\n if (!(layer instanceof ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6___default.a || layer instanceof ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8___default.a)) {\n return reject(new Error('Can only apply to VectorLayer or VectorTileLayer'));\n }\n var spriteScale, spriteData, spriteImageUrl, style;\n function onChange() {\n if (!style && (!glStyle.sprite || spriteData)) {\n style = Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(layer, glStyle, source, resolutions, spriteData, spriteImageUrl, getFonts);\n if (!layer.getStyle()) {\n reject(new Error(\"Nothing to show for source [\".concat(source, \"]\")));\n } else {\n resolve();\n }\n } else if (style) {\n layer.setStyle(style);\n resolve();\n } else {\n reject(new Error('Something went wrong trying to apply style.'));\n }\n }\n if (glStyle.sprite) {\n spriteScale = window.devicePixelRatio >= 1.5 ? 0.5 : 1;\n var sizeFactor_1 = spriteScale == 0.5 ? '@2x' : '';\n var spriteUrl_1 = toSpriteUrl(glStyle.sprite, path, sizeFactor_1 + '.json');\n fetch(spriteUrl_1, {\n credentials: 'same-origin'\n }).then(function (response) {\n if (!response.ok && sizeFactor_1 !== '') {\n spriteUrl_1 = toSpriteUrl(glStyle.sprite, path, '.json');\n return fetch(spriteUrl_1, {\n credentials: 'same-origin'\n });\n } else {\n return response;\n }\n }).then(function (response) {\n if (response.ok) {\n return response.json();\n } else {\n reject(new Error(\"Problem fetching sprite from \".concat(spriteUrl_1, \": \").concat(response.statusText)));\n }\n }).then(function (spritesJson) {\n if (spritesJson === undefined) {\n return reject(new Error('No sprites found.'));\n }\n spriteData = spritesJson;\n spriteImageUrl = toSpriteUrl(glStyle.sprite, path, sizeFactor_1 + '.png');\n onChange();\n })[\"catch\"](function (err) {\n reject(new Error(\"Sprites cannot be loaded: \".concat(spriteUrl_1, \": \").concat(err.message)));\n });\n } else {\n onChange();\n }\n });\n}\nvar emptyObj = {};\nfunction setBackground(mapOrLayer, layer) {\n var background = {\n id: layer.id,\n type: layer.type\n };\n var functionCache = {};\n function updateStyle(resolution) {\n var layout = layer.layout || {};\n var paint = layer.paint || {};\n background['paint'] = paint;\n var zoom = typeof mapOrLayer.getSource === 'function' ? mapOrLayer.getSource().getTileGrid().getZForResolution(resolution) : mapOrLayer.getView().getZoom();\n var element = typeof mapOrLayer.getTargetElement === 'function' ? mapOrLayer.getTargetElement() : undefined;\n var bg, opacity;\n if (paint['background-color'] !== undefined) {\n bg = Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"getValue\"])(background, 'paint', 'background-color', zoom, emptyObj, functionCache);\n if (element) {\n element.style.background = _mapbox_mapbox_gl_style_spec__WEBPACK_IMPORTED_MODULE_14__[\"Color\"].parse(bg).toString();\n }\n }\n if (paint['background-opacity'] !== undefined) {\n opacity = Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"getValue\"])(background, 'paint', 'background-opacity', zoom, emptyObj, functionCache);\n if (element) {\n element.style.opacity = opacity;\n }\n }\n if (layout.visibility == 'none') {\n if (element) {\n element.style.backgroundColor = '';\n element.style.opacity = '';\n return undefined;\n }\n }\n return Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"_colorWithOpacity\"])(bg, opacity);\n }\n if (typeof mapOrLayer.getTargetElement === 'function') {\n if (mapOrLayer.getTargetElement()) {\n updateStyle();\n }\n mapOrLayer.on(['change:resolution', 'change:target'], updateStyle);\n } else if (typeof mapOrLayer.setBackground === 'function') {\n mapOrLayer.setBackground(updateStyle);\n } else {\n throw new Error('Unable to apply background.');\n }\n}\n/**\n * ```js\n * import {applyBackground} from 'ol-mapbox-style';\n * ```\n * Applies properties of the Mapbox Style's first `background` layer to the\n * provided map or VectorTile layer.\n * @param {PluggableMap|VectorTileLayer} mapOrLayer OpenLayers Map or VectorTile layer.\n * @param {Object} glStyle Mapbox Style object.\n */\nfunction applyBackground(mapOrLayer, glStyle) {\n glStyle.layers.some(function (l) {\n if (l.type == 'background') {\n setBackground(mapOrLayer, l);\n return true;\n }\n });\n}\nfunction getSourceIdByRef(layers, ref) {\n var sourceId;\n layers.some(function (layer) {\n if (layer.id == ref) {\n sourceId = layer.source;\n return true;\n }\n });\n return sourceId;\n}\nfunction extentFromTileJSON(tileJSON) {\n var bounds = tileJSON.bounds;\n if (bounds) {\n var ll = Object(ol_proj_js__WEBPACK_IMPORTED_MODULE_17__[\"fromLonLat\"])([bounds[0], bounds[1]]);\n var tr = Object(ol_proj_js__WEBPACK_IMPORTED_MODULE_17__[\"fromLonLat\"])([bounds[2], bounds[3]]);\n return [ll[0], ll[1], tr[0], tr[1]];\n }\n}\n/**\n * Creates an OpenLayers VectorTile source for a gl source entry.\n * @param {Object} glSource \"source\" entry from a Mapbox Style object.\n * @param {string|undefined} url URL to use for the source. This is expected to be the complete http(s) url,\n * with access key applied.When not provided, `glSource.tiles` has to be set.\n * @return {Promise} Promise resolving to a VectorTile source.\n * @private\n */\nfunction setupVectorSource(glSource, url) {\n glSource = Object(_util_js__WEBPACK_IMPORTED_MODULE_15__[\"assign\"])({}, glSource);\n var cacheKey = [url, JSON.stringify(glSource)].toString();\n var tilejson = tilejsonCache[cacheKey];\n if (!tilejson) {\n tilejson = new ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4___default.a({\n url: glSource.tiles ? undefined : url,\n tileJSON: glSource.tiles ? glSource : undefined\n });\n tilejsonCache[cacheKey] = tilejson;\n }\n return new Promise(function (resolve) {\n var key = tilejson.on('change', function () {\n var state = tilejson.getState();\n if (state === 'ready') {\n var tileJSONDoc = tilejson.getTileJSON();\n var tiles = Array.isArray(tileJSONDoc.tiles) ? tileJSONDoc.tiles : [tileJSONDoc.tiles];\n if (url) {\n for (var i = 0, ii = tiles.length; i < ii; ++i) {\n tiles[i] = decodeURI(new URL(tiles[i], url).href);\n }\n }\n var tileGrid = tilejson.getTileGrid();\n var extent = extentFromTileJSON(tileJSONDoc);\n var minZoom = tileJSONDoc.minzoom || 0;\n var maxZoom = tileJSONDoc.maxzoom || 22;\n var source = tilejson.get('ol-source');\n if (source === undefined) {\n source = new ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9___default.a({\n attributions: tilejson.getAttributions(),\n format: new ol_format_MVT_js__WEBPACK_IMPORTED_MODULE_1___default.a(),\n tileGrid: new ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3___default.a({\n origin: tileGrid.getOrigin(0),\n extent: extent || tileGrid.getExtent(),\n minZoom: minZoom,\n resolutions: _util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"].slice(0, maxZoom + 1),\n tileSize: 512\n }),\n urls: tiles\n });\n tilejson.set('ol-source', source);\n }\n Object(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__[\"unByKey\"])(key);\n resolve(source);\n } else if (state === 'error') {\n tilejson.set('ol-source', null);\n Object(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__[\"unByKey\"])(key);\n resolve(undefined);\n }\n });\n if (tilejson.getState() === 'ready') {\n tilejson.changed();\n }\n });\n}\nfunction setupVectorLayer(glSource, url) {\n var layer = new ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8___default.a({\n declutter: true,\n visible: false\n });\n setupVectorSource(glSource, url).then(function (source) {\n layer.setSource(source);\n });\n return layer;\n}\nfunction setupRasterLayer(glSource, url) {\n var layer = new ol_layer_Tile_js__WEBPACK_IMPORTED_MODULE_5___default.a();\n var source = new ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4___default.a({\n transition: 0,\n url: glSource.tiles ? undefined : url,\n tileJSON: glSource.tiles ? glSource : undefined,\n crossOrigin: 'anonymous'\n });\n var key = source.on('change', function () {\n var state = source.getState();\n if (state === 'ready') {\n Object(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__[\"unByKey\"])(key);\n var tileJSONDoc = /** @type {Object} */source.getTileJSON();\n var extent = extentFromTileJSON(tileJSONDoc);\n var tileGrid = source.getTileGrid();\n var tileSize = glSource.tileSize || tileJSONDoc.tileSize || 512;\n var minZoom = tileJSONDoc.minzoom || 0;\n var maxZoom = tileJSONDoc.maxzoom || 22;\n // Only works when using ES modules\n //@ts-ignore\n source.tileGrid = new ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3___default.a({\n origin: tileGrid.getOrigin(0),\n extent: extent || tileGrid.getExtent(),\n minZoom: minZoom,\n resolutions: Object(ol_tilegrid_js__WEBPACK_IMPORTED_MODULE_16__[\"createXYZ\"])({\n maxZoom: maxZoom,\n tileSize: tileSize\n }).getResolutions(),\n tileSize: tileSize\n });\n layer.setSource(source);\n } else if (state === 'error') {\n Object(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__[\"unByKey\"])(key);\n layer.setSource(undefined);\n }\n });\n source.setTileLoadFunction(function (tile, src) {\n if (src.indexOf('{bbox-epsg-3857}') != -1) {\n var bbox = source.getTileGrid().getTileCoordExtent(tile.getTileCoord());\n src = src.replace('{bbox-epsg-3857}', bbox.toString());\n }\n var img = /** @type {import(\"ol/ImageTile\").default} */tile.getImage();\n /** @type {HTMLImageElement} */\n img.src = src;\n });\n return layer;\n}\nvar geoJsonFormat = new ol_format_GeoJSON_js__WEBPACK_IMPORTED_MODULE_0___default.a();\nfunction setupGeoJSONLayer(glSource, path) {\n var data = glSource.data;\n var features, geoJsonUrl;\n if (typeof data == 'string') {\n geoJsonUrl = withPath(data, path);\n } else {\n features = geoJsonFormat.readFeatures(data, {\n featureProjection: 'EPSG:3857'\n });\n }\n return new ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6___default.a({\n source: new ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7___default.a({\n attributions: glSource.attribution,\n features: features,\n format: geoJsonFormat,\n url: geoJsonUrl\n }),\n visible: false\n });\n}\nfunction updateRasterLayerProperties(glLayer, layer, view, functionCache) {\n var zoom = view.getZoom();\n var opacity = Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"getValue\"])(glLayer, 'paint', 'raster-opacity', zoom, emptyObj, functionCache);\n layer.setOpacity(opacity);\n}\nfunction processStyle(glStyle, map, baseUrl, host, path, accessToken) {\n if (accessToken === void 0) {\n accessToken = '';\n }\n var promises = [];\n var view = map.getView();\n if (!view.isDef() && !view.getRotation() && !view.getResolutions()) {\n view = new ol_View_js__WEBPACK_IMPORTED_MODULE_10___default.a({\n maxResolution: _util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"][0]\n });\n map.setView(view);\n }\n if ('center' in glStyle && !view.getCenter()) {\n view.setCenter(Object(ol_proj_js__WEBPACK_IMPORTED_MODULE_17__[\"fromLonLat\"])(glStyle.center));\n }\n if ('zoom' in glStyle && view.getZoom() === undefined) {\n view.setResolution(_util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"][0] / Math.pow(2, glStyle.zoom));\n }\n if (!view.getCenter() || view.getZoom() === undefined) {\n view.fit(view.getProjection().getExtent(), {\n nearest: true,\n size: map.getSize()\n });\n }\n if (glStyle.sprite) {\n if (glStyle.sprite.indexOf('mapbox://') == 0) {\n glStyle.sprite = baseUrl + '/sprite' + accessToken;\n } else if (glStyle.sprite.indexOf('http') != 0) {\n glStyle.sprite = (host ? host + path : '') + glStyle.sprite + accessToken;\n }\n }\n var glLayers = glStyle.layers;\n var layerIds = [];\n var glLayer, glSource, glSourceId, id, layer, url;\n var _loop_1 = function _loop_1(i, ii) {\n glLayer = glLayers[i];\n var type = glLayer.type;\n if (type == 'heatmap' || type == 'hillshade') {\n //FIXME Unsupported layer type\n } else if (type == 'background') {\n setBackground(map, glLayer);\n } else {\n id = glLayer.source || getSourceIdByRef(glLayers, glLayer.ref);\n // this technique assumes gl layers will be in a particular order\n if (id != glSourceId) {\n if (layerIds.length) {\n promises.push(finalizeLayer(layer, layerIds, glStyle, path, map));\n layerIds = [];\n }\n glSource = glStyle.sources[id];\n url = glSource.url;\n if (url) {\n url = withPath(url, path);\n if (url.indexOf('mapbox://') == 0) {\n var mapid_1 = url.replace('mapbox://', '');\n glSource.tiles = ['a', 'b', 'c', 'd'].map(function (host) {\n return 'https://' + host + '.tiles.mapbox.com/v4/' + mapid_1 + '/{z}/{x}/{y}.' + (glSource.type == 'vector' ? 'vector.pbf' : 'png') + accessToken;\n });\n } else if (url.indexOf('/') === 0 && host.indexOf('http') === 0) {\n url = host + url;\n }\n }\n if (glSource.tiles) {\n glSource.tiles = glSource.tiles.map(function (url) {\n return withPath(url, path);\n });\n }\n if (glSource.type == 'vector') {\n layer = setupVectorLayer(glSource, url);\n } else if (glSource.type == 'raster') {\n layer = setupRasterLayer(glSource, url);\n layer.setVisible(glLayer.layout ? glLayer.layout.visibility !== 'none' : true);\n var functionCache = {};\n view.on('change:resolution', updateRasterLayerProperties.bind(this_1, glLayer, layer, view, functionCache));\n updateRasterLayerProperties(glLayer, layer, view, functionCache);\n } else if (glSource.type == 'geojson') {\n layer = setupGeoJSONLayer(glSource, path);\n }\n glSourceId = id;\n if (layer) {\n layer.set('mapbox-source', glSourceId);\n }\n }\n layerIds.push(glLayer.id);\n }\n };\n var this_1 = this;\n for (var i = 0, ii = glLayers.length; i < ii; ++i) {\n _loop_1(i, ii);\n }\n promises.push(finalizeLayer(layer, layerIds, glStyle, path, map));\n map.set('mapbox-style', glStyle);\n return Promise.all(promises);\n}\n/**\n * ```js\n * import olms from 'ol-mapbox-style';\n * ```\n *\n * Loads and applies a Mapbox Style object to an OpenLayers Map. This includes\n * the map background, the layers, the center and the zoom.\n *\n * The center and zoom will only be set if present in the Mapbox Style document,\n * and if not already set on the OpenLayers map.\n *\n * Layers will be added to the OpenLayers map, without affecting any layers that\n * might already be set on the map.\n *\n * Layers added by `apply()` will have two additional properties:\n *\n * * `mapbox-source`: The `id` of the Mapbox Style document's source that the\n * OpenLayers layer was created from. Usually `apply()` creates one\n * OpenLayers layer per Mapbox Style source, unless the layer stack has\n * layers from different sources in between.\n * * `mapbox-layers`: The `id`s of the Mapbox Style document's layers that are\n * included in the OpenLayers layer.\n *\n * This function sets an additional `mapbox-style` property on the OpenLayers\n * map instance, which holds the Mapbox Style object.\n *\n * @param {PluggableMap|HTMLElement|string} map Either an existing OpenLayers Map\n * instance, or a HTML element, or the id of a HTML element that will be the\n * target of a new OpenLayers Map.\n * @param {string|Object} style JSON style object or style url pointing to a\n * Mapbox Style object. When using Mapbox APIs, the url must contain an access\n * token and look like\n * `https://api.mapbox.com/styles/v1/mapbox/bright-v9?access_token=[your_access_token_here]`.\n * When passed as JSON style object, all OpenLayers layers created by `apply()`\n * will be immediately available, but they may not have a source yet (i.e. when\n * they are defined by a TileJSON url in the Mapbox Style document). When passed\n * as style url, layers will be added to the map when the Mapbox Style document\n * is loaded and parsed.\n * @return {Promise} A promise that resolves after all layers have been added to\n * the OpenLayers Map instance, their sources set, and their styles applied. the\n * `resolve` callback will be called with the OpenLayers Map instance as\n * argument.\n */\nfunction olms(map, style) {\n var promise,\n accessToken = '',\n baseUrl = '',\n host = '',\n path = '';\n if (typeof map === 'string' || map instanceof HTMLElement) {\n map = new ol_Map_js__WEBPACK_IMPORTED_MODULE_2___default.a({\n target: map\n });\n }\n if (typeof style === 'string') {\n var parts = style.match(spriteRegEx);\n if (parts) {\n baseUrl = parts[1];\n accessToken = parts.length > 2 ? parts[2] : '';\n }\n promise = new Promise(function (resolve, reject) {\n fetch(style, {\n credentials: 'same-origin'\n }).then(function (response) {\n return response.json();\n }).then(function (glStyle) {\n var a = /** @type {HTMLAnchorElement} */document.createElement('A');\n a.href = style;\n var href = a.href;\n path = a.pathname.split('/').slice(0, -1).join('/') + '/';\n host = href.substr(0, href.indexOf(path));\n processStyle(glStyle, map, baseUrl, host, path, accessToken).then(function () {\n resolve(map);\n })[\"catch\"](reject);\n })[\"catch\"](function (err) {\n reject(new Error(\"Could not load \".concat(style, \": \").concat(err.message)));\n });\n });\n } else {\n promise = new Promise(function (resolve, reject) {\n processStyle(style, map).then(function () {\n resolve(map);\n })[\"catch\"](reject);\n });\n }\n return promise;\n}\n/**\n * ```js\n * import {apply} from 'ol-mapbox-style';\n * ```\n * Like `olms`, but returns an `ol/Map` instance instead of a `Promise`.\n *\n * @param {PluggableMap|HTMLElement|string} map Either an existing OpenLayers Map\n * instance, or a HTML element, or the id of a HTML element that will be the\n * target of a new OpenLayers Map.\n * @param {string|Object} style JSON style object or style url pointing to a\n * Mapbox Style object. When using Mapbox APIs, the url must contain an access\n * token and look like\n * `https://api.mapbox.com/styles/v1/mapbox/bright-v9?access_token=[your_access_token_here]`.\n * When passed as JSON style object, all OpenLayers layers created by `apply()`\n * will be immediately available, but they may not have a source yet (i.e. when\n * they are defined by a TileJSON url in the Mapbox Style document). When passed\n * as style url, layers will be added to the map when the Mapbox Style document\n * is loaded and parsed.\n * @return {PluggableMap} The OpenLayers Map instance that will be populated with the\n * contents described in the Mapbox Style object.\n */\nfunction apply(map, style) {\n if (typeof map === 'string' || map instanceof HTMLElement) {\n map = new ol_Map_js__WEBPACK_IMPORTED_MODULE_2___default.a({\n target: map\n });\n }\n setTimeout(function () {\n olms(map, style);\n }, 0);\n return map;\n}\n/**\n * If layerIds is not empty, applies the style specified in glStyle to the layer,\n * and adds the layer to the map.\n *\n * The layer may not yet have a source when the function is called. If so, the style\n * is applied to the layer via a once listener on the 'change:source' event.\n *\n * @param {Layer} layer An OpenLayers layer instance.\n * @param {Array} layerIds Array containing layer ids of already-processed layers.\n * @param {Object} glStyle Style as a JSON object.\n * @param {string|undefined} path The path part of the style URL. Only required\n * when a relative path is used with the `\"sprite\"` property of the style.\n * @param {PluggableMap} map OpenLayers Map.\n * @return {Promise} Returns a promise that resolves after the source has\n * been set on the specified layer, and the style has been applied.\n * @private\n */\nfunction finalizeLayer(layer, layerIds, glStyle, path, map) {\n var minZoom = 24;\n var maxZoom = 0;\n var glLayers = glStyle.layers;\n for (var i = 0, ii = glLayers.length; i < ii; ++i) {\n var glLayer = glLayers[i];\n if (layerIds.indexOf(glLayer.id) !== -1) {\n minZoom = Math.min('minzoom' in glLayer ? glLayer.minzoom : 0, minZoom);\n maxZoom = Math.max('maxzoom' in glLayer ? glLayer.maxzoom : 24, maxZoom);\n }\n }\n return new Promise(function (resolve, reject) {\n var setStyle = function setStyle() {\n var source = layer.getSource();\n if (!source || source.getState() === 'error') {\n reject(new Error('Error accessing data for source ' + layer.get('mapbox-source')));\n return;\n }\n if (typeof source.getTileGrid === 'function') {\n var tileGrid = source.getTileGrid();\n if (tileGrid) {\n var sourceMinZoom = tileGrid.getMinZoom();\n if (minZoom > 0 || sourceMinZoom > 0) {\n layer.setMaxResolution(Math.min(_util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"][minZoom], tileGrid.getResolution(sourceMinZoom)) + 1e-9);\n }\n if (maxZoom < 24) {\n layer.setMinResolution(_util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"][maxZoom] + 1e-9);\n }\n }\n }\n if (source instanceof ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7___default.a || source instanceof ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9___default.a) {\n applyStyle( /** @type {import(\"ol/layer/Vector\").default|import(\"ol/layer/VectorTile\").default} */layer, glStyle, layerIds, path).then(function () {\n layer.setVisible(true);\n resolve();\n }, function (e) {\n reject(e);\n });\n } else {\n resolve();\n }\n };\n layer.set('mapbox-layers', layerIds);\n if (map.getLayers().getArray().indexOf(layer) === -1) {\n map.addLayer(layer);\n }\n if (layer.getSource()) {\n setStyle();\n } else {\n layer.once('change:source', setStyle);\n }\n });\n}\n/**\n * ```js\n * import {getLayer} from 'ol-mapbox-style';\n * ```\n * Get the OpenLayers layer instance that contains the provided Mapbox Style\n * `layer`. Note that multiple Mapbox Style layers are combined in a single\n * OpenLayers layer instance when they use the same Mapbox Style `source`.\n * @param {PluggableMap} map OpenLayers Map.\n * @param {string} layerId Mapbox Style layer id.\n * @return {Layer} OpenLayers layer instance.\n */\nfunction getLayer(map, layerId) {\n var layers = map.getLayers().getArray();\n for (var i = 0, ii = layers.length; i < ii; ++i) {\n var mapboxLayers = layers[i].get('mapbox-layers');\n if (mapboxLayers && mapboxLayers.indexOf(layerId) !== -1) {\n return /** @type {Layer} */layers[i];\n }\n }\n}\n/**\n * ```js\n * import {getLayers} from 'ol-mapbox-style';\n * ```\n * Get the OpenLayers layer instances for the provided Mapbox Style `source`.\n * @param {PluggableMap} map OpenLayers Map.\n * @param {string} sourceId Mapbox Style source id.\n * @return {Array} OpenLayers layer instances.\n */\nfunction getLayers(map, sourceId) {\n var result = [];\n var layers = map.getLayers().getArray();\n for (var i = 0, ii = layers.length; i < ii; ++i) {\n if (layers[i].get('mapbox-source') === sourceId) {\n result.push( /** @type {Layer} */layers[i]);\n }\n }\n return result;\n}\n/**\n * ```js\n * import {getSource} from 'ol-mapbox-style';\n * ```\n * Get the OpenLayers source instance for the provided Mapbox Style `source`.\n * @param {PluggableMap} map OpenLayers Map.\n * @param {string} sourceId Mapbox Style source id.\n * @return {Source} OpenLayers source instance.\n */\nfunction getSource(map, sourceId) {\n var layers = map.getLayers().getArray();\n for (var i = 0, ii = layers.length; i < ii; ++i) {\n var source = /** @type {Layer} */layers[i].getSource();\n if (layers[i].get('mapbox-source') === sourceId) {\n return source;\n }\n }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uLi9zcmMvaW5kZXguanM/YTE3OCJdLCJuYW1lcyI6WyJ0aWxlanNvbkNhY2hlIiwiZm9udEZhbWlseVJlZ0V4Iiwic3RyaXBRdW90ZXNSZWdFeCIsImxvYWRlZEZvbnRGYW1pbGllcyIsImhhc0ZvbnRGYW1pbHkiLCJmYW1pbHkiLCJzdHlsZVNoZWV0cyIsImRvY3VtZW50IiwiaSIsImlpIiwibGVuZ3RoIiwic3R5bGVTaGVldCIsImNzc1J1bGVzIiwicnVsZXMiLCJqIiwiamoiLCJjc3NSdWxlIiwidHlwZSIsIm1hdGNoIiwiY3NzVGV4dCIsInJlcGxhY2UiLCJlIiwicHJvY2Vzc2VkRm9udEZhbWlsaWVzIiwiZ29vZ2xlRmFtaWxpZXMiLCJnb29nbGVGb250cyIsImdldE5hbWVzIiwiZ2V0Rm9udHMiLCJmb250cyIsImZvbnRzS2V5IiwidG9TdHJpbmciLCJnb29nbGVGb250RGVzY3JpcHRpb25zIiwibWFwIiwiZm9udCIsInBhcnRzIiwibWIyY3NzIiwic3BsaXQiLCJzbGljZSIsImpvaW4iLCJnb29nbGVGb250RGVzY3JpcHRpb24iLCJpbmRleE9mIiwiZm9udFVybCIsInF1ZXJ5U2VsZWN0b3IiLCJtYXJrdXAiLCJjcmVhdGVFbGVtZW50IiwiaHJlZiIsInJlbCIsImhlYWQiLCJhcHBlbmRDaGlsZCIsInNwcml0ZVJlZ0V4Iiwid2l0aFBhdGgiLCJ1cmwiLCJwYXRoIiwidG9TcHJpdGVVcmwiL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7SUFDL0MsSUFBTWlELE1BQU0sR0FBRyxvQkFBc0JnRSxNQUFNLENBQUNqSCxDQUFDLENBQUMsQ0FBRWlHLFNBQVMsRUFBRTtJQUMzRCxJQUFJZ0IsTUFBTSxDQUFDakgsQ0FBQyxDQUFDLENBQUNvSixHQUFHLENBQUMsZUFBZSxDQUFDLEtBQUs5QixRQUFRLEVBQUU7TUFDL0MsT0FBT3JFLE1BQU07OztBQUduQiIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9vbC1tYXBib3gtc3R5bGUvZGlzdC9pbmRleC5qcy5qcyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/ol-mapbox-style/dist/index.js\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"applyStyle\", function() { return applyStyle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"applyBackground\", function() { return applyBackground; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setupVectorSource\", function() { return setupVectorSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return olms; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"apply\", function() { return apply; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getLayer\", function() { return getLayer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getLayers\", function() { return getLayers; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSource\", function() { return getSource; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"_finalizeLayer\", function() { return finalizeLayer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"_getFonts\", function() { return getFonts; });\n/* harmony import */ var ol_format_GeoJSON_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ol/format/GeoJSON.js */ \"ol/format/GeoJSON\");\n/* harmony import */ var ol_format_GeoJSON_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ol_format_GeoJSON_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var ol_format_MVT_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ol/format/MVT.js */ \"ol/format/MVT\");\n/* harmony import */ var ol_format_MVT_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ol_format_MVT_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ol_Map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ol/Map.js */ \"ol/Map.js\");\n/* harmony import */ var ol_Map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(ol_Map_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ol/tilegrid/TileGrid.js */ \"ol/tilegrid/TileGrid.js\");\n/* harmony import */ var ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ol/source/TileJSON.js */ \"ol/source/TileJSON\");\n/* harmony import */ var ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var ol_layer_Tile_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ol/layer/Tile.js */ \"ol/layer/Tile\");\n/* harmony import */ var ol_layer_Tile_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Tile_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ol/layer/Vector.js */ \"ol/layer/Vector\");\n/* harmony import */ var ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ol/source/Vector.js */ \"ol/source/Vector\");\n/* harmony import */ var ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ol/layer/VectorTile.js */ \"ol/layer/VectorTile\");\n/* harmony import */ var ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ol/source/VectorTile.js */ \"ol/source/VectorTile\");\n/* harmony import */ var ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var ol_View_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ol/View.js */ \"ol/View.js\");\n/* harmony import */ var ol_View_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(ol_View_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _stylefunction_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./stylefunction.js */ \"./node_modules/ol-mapbox-style/dist/stylefunction.js\");\n/* harmony import */ var webfont_matcher_lib_fonts_google_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! webfont-matcher/lib/fonts/google.js */ \"./node_modules/webfont-matcher/lib/fonts/google.js\");\n/* harmony import */ var webfont_matcher_lib_fonts_google_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(webfont_matcher_lib_fonts_google_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var mapbox_to_css_font__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! mapbox-to-css-font */ \"./node_modules/mapbox-to-css-font/index.js\");\n/* harmony import */ var mapbox_to_css_font__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(mapbox_to_css_font__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _mapbox_mapbox_gl_style_spec__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mapbox/mapbox-gl-style-spec */ \"./node_modules/@mapbox/mapbox-gl-style-spec/dist/index.es.js\");\n/* harmony import */ var _util_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util.js */ \"./node_modules/ol-mapbox-style/dist/util.js\");\n/* harmony import */ var ol_tilegrid_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ol/tilegrid.js */ \"ol/tilegrid.js\");\n/* harmony import */ var ol_tilegrid_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(ol_tilegrid_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var ol_proj_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ol/proj.js */ \"ol/proj\");\n/* harmony import */ var ol_proj_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(ol_proj_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ol/Observable.js */ \"ol/Observable\");\n/* harmony import */ var ol_Observable_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/*\nol-mapbox-style - Use Mapbox Style objects with OpenLayers\nCopyright 2016-present ol-mapbox-style contributors\nLicense: https://raw.githubusercontent.com/openlayers/ol-mapbox-style/master/LICENSE\n*/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * @typedef {import(\"ol/Map\").default} PluggableMap\n * @typedef {import(\"ol/layer/Layer\").default} Layer\n * @typedef {import(\"ol/source/Source\").default} Source\n * @private\n */\nvar tilejsonCache = {};\nvar fontFamilyRegEx = /font-family: ?([^;]*);/;\nvar stripQuotesRegEx = /(\"|')/g;\nvar loadedFontFamilies;\nfunction hasFontFamily(family) {\n if (!loadedFontFamilies) {\n loadedFontFamilies = {};\n var styleSheets = document.styleSheets;\n for (var i = 0, ii = styleSheets.length; i < ii; ++i) {\n var styleSheet = /** @type {CSSStyleSheet} */styleSheets[i];\n try {\n var cssRules = styleSheet.rules || styleSheet.cssRules;\n if (cssRules) {\n for (var j = 0, jj = cssRules.length; j < jj; ++j) {\n var cssRule = cssRules[j];\n if (cssRule.type == 5) {\n var match = cssRule.cssText.match(fontFamilyRegEx);\n loadedFontFamilies[match[1].replace(stripQuotesRegEx, '')] = true;\n }\n }\n }\n } catch (e) {\n // empty catch block\n }\n }\n }\n return family in loadedFontFamilies;\n}\nvar processedFontFamilies = {};\nvar googleFamilies = webfont_matcher_lib_fonts_google_js__WEBPACK_IMPORTED_MODULE_12___default.a.getNames();\n/**\n * @private\n * @param {Array} fonts Fonts.\n * @return {Array} Processed fonts.\n */\nfunction getFonts(fonts) {\n var fontsKey = fonts.toString();\n if (fontsKey in processedFontFamilies) {\n return fonts;\n }\n var googleFontDescriptions = fonts.map(function (font) {\n var parts = mapbox_to_css_font__WEBPACK_IMPORTED_MODULE_13___default()(font, 1).split(' ');\n return [parts.slice(3).join(' ').replace(/\"/g, ''), parts[1] + parts[0]];\n });\n for (var i = 0, ii = googleFontDescriptions.length; i < ii; ++i) {\n var googleFontDescription = googleFontDescriptions[i];\n var family = googleFontDescription[0];\n if (!hasFontFamily(family) && googleFamilies.indexOf(family) !== -1) {\n var fontUrl = 'https://fonts.googleapis.com/css?family=' + family.replace(/ /g, '+') + ':' + googleFontDescription[1];\n if (!document.querySelector('link[href=\"' + fontUrl + '\"]')) {\n var markup = document.createElement('link');\n markup.href = fontUrl;\n markup.rel = 'stylesheet';\n document.head.appendChild(markup);\n }\n }\n }\n processedFontFamilies[fontsKey] = true;\n return fonts;\n}\nvar spriteRegEx = /^(.*)(\\?.*)$/;\nfunction withPath(url, path) {\n if (path && url.indexOf('.') === 0) {\n url = path + url;\n }\n return url;\n}\nfunction toSpriteUrl(url, path, extension) {\n url = withPath(url, path);\n var parts = url.match(spriteRegEx);\n return parts ? parts[1] + extension + (parts.length > 2 ? parts[2] : '') : url + extension;\n}\n/**\n * ```js\n * import {applyStyle} from 'ol-mapbox-style';\n * ```\n *\n * Applies a style function to an `ol.layer.VectorTile` or `ol.layer.Vector`\n * with an `ol.source.VectorTile` or an `ol.source.Vector`. The style function\n * will render all layers from the `glStyle` object that use the specified\n * `source`, or a subset of layers from the same source. The source needs to be\n * a `\"type\": \"vector\"` or `\"type\": \"geojson\"` source.\n *\n * Two additional properties will be set on the provided layer:\n *\n * * `mapbox-source`: The `id` of the Mapbox Style document's source that the\n * OpenLayers layer was created from. Usually `apply()` creates one\n * OpenLayers layer per Mapbox Style source, unless the layer stack has\n * layers from different sources in between.\n * * `mapbox-layers`: The `id`s of the Mapbox Style document's layers that are\n * included in the OpenLayers layer.\n *\n * @param {VectorTileLayer|VectorLayer} layer OpenLayers layer.\n * @param {string|Object} glStyle Mapbox Style object.\n * @param {string|Array} source `source` key or an array of layer `id`s from the\n * Mapbox Style object. When a `source` key is provided, all layers for the\n * specified source will be included in the style function. When layer `id`s\n * are provided, they must be from layers that use the same source.\n * @param {string} [path=undefined] Path of the style file. Only required when\n * a relative path is used with the `\"sprite\"` property of the style.\n * @param {Array} [resolutions=undefined] Resolutions for mapping resolution to zoom level.\n * @return {Promise} Promise which will be resolved when the style can be used\n * for rendering.\n */\nfunction applyStyle(layer, glStyle, source, path, resolutions) {\n return new Promise(function (resolve, reject) {\n // TODO: figure out where best place to check source type is\n // Note that the source arg is an array of gl layer ids and each must be\n // dereferenced to get source type to validate\n if (_typeof(glStyle) != 'object') {\n glStyle = JSON.parse(glStyle);\n }\n if (glStyle.version != 8) {\n return reject(new Error('glStyle version 8 required.'));\n }\n if (!(layer instanceof ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6___default.a || layer instanceof ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8___default.a)) {\n return reject(new Error('Can only apply to VectorLayer or VectorTileLayer'));\n }\n var spriteScale, spriteData, spriteImageUrl, style;\n function onChange() {\n if (!style && (!glStyle.sprite || spriteData)) {\n style = Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(layer, glStyle, source, resolutions, spriteData, spriteImageUrl, getFonts);\n if (!layer.getStyle()) {\n reject(new Error(\"Nothing to show for source [\".concat(source, \"]\")));\n } else {\n resolve();\n }\n } else if (style) {\n layer.setStyle(style);\n resolve();\n } else {\n reject(new Error('Something went wrong trying to apply style.'));\n }\n }\n if (glStyle.sprite) {\n spriteScale = window.devicePixelRatio >= 1.5 ? 0.5 : 1;\n var sizeFactor_1 = spriteScale == 0.5 ? '@2x' : '';\n var spriteUrl_1 = toSpriteUrl(glStyle.sprite, path, sizeFactor_1 + '.json');\n fetch(spriteUrl_1, {\n credentials: 'same-origin'\n }).then(function (response) {\n if (!response.ok && sizeFactor_1 !== '') {\n spriteUrl_1 = toSpriteUrl(glStyle.sprite, path, '.json');\n return fetch(spriteUrl_1, {\n credentials: 'same-origin'\n });\n } else {\n return response;\n }\n }).then(function (response) {\n if (response.ok) {\n return response.json();\n } else {\n reject(new Error(\"Problem fetching sprite from \".concat(spriteUrl_1, \": \").concat(response.statusText)));\n }\n }).then(function (spritesJson) {\n if (spritesJson === undefined) {\n return reject(new Error('No sprites found.'));\n }\n spriteData = spritesJson;\n spriteImageUrl = toSpriteUrl(glStyle.sprite, path, sizeFactor_1 + '.png');\n onChange();\n })[\"catch\"](function (err) {\n reject(new Error(\"Sprites cannot be loaded: \".concat(spriteUrl_1, \": \").concat(err.message)));\n });\n } else {\n onChange();\n }\n });\n}\nvar emptyObj = {};\nfunction setBackground(mapOrLayer, layer) {\n var background = {\n id: layer.id,\n type: layer.type\n };\n var functionCache = {};\n function updateStyle(resolution) {\n var layout = layer.layout || {};\n var paint = layer.paint || {};\n background['paint'] = paint;\n var zoom = typeof mapOrLayer.getSource === 'function' ? mapOrLayer.getSource().getTileGrid().getZForResolution(resolution) : mapOrLayer.getView().getZoom();\n var element = typeof mapOrLayer.getTargetElement === 'function' ? mapOrLayer.getTargetElement() : undefined;\n var bg, opacity;\n if (paint['background-color'] !== undefined) {\n bg = Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"getValue\"])(background, 'paint', 'background-color', zoom, emptyObj, functionCache);\n if (element) {\n element.style.background = _mapbox_mapbox_gl_style_spec__WEBPACK_IMPORTED_MODULE_14__[\"Color\"].parse(bg).toString();\n }\n }\n if (paint['background-opacity'] !== undefined) {\n opacity = Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"getValue\"])(background, 'paint', 'background-opacity', zoom, emptyObj, functionCache);\n if (element) {\n element.style.opacity = opacity;\n }\n }\n if (layout.visibility == 'none') {\n if (element) {\n element.style.backgroundColor = '';\n element.style.opacity = '';\n return undefined;\n }\n }\n return Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"_colorWithOpacity\"])(bg, opacity);\n }\n if (typeof mapOrLayer.getTargetElement === 'function') {\n if (mapOrLayer.getTargetElement()) {\n updateStyle();\n }\n mapOrLayer.on(['change:resolution', 'change:target'], updateStyle);\n } else if (typeof mapOrLayer.setBackground === 'function') {\n mapOrLayer.setBackground(updateStyle);\n } else {\n throw new Error('Unable to apply background.');\n }\n}\n/**\n * ```js\n * import {applyBackground} from 'ol-mapbox-style';\n * ```\n * Applies properties of the Mapbox Style's first `background` layer to the\n * provided map or VectorTile layer.\n * @param {PluggableMap|VectorTileLayer} mapOrLayer OpenLayers Map or VectorTile layer.\n * @param {Object} glStyle Mapbox Style object.\n */\nfunction applyBackground(mapOrLayer, glStyle) {\n glStyle.layers.some(function (l) {\n if (l.type == 'background') {\n setBackground(mapOrLayer, l);\n return true;\n }\n });\n}\nfunction getSourceIdByRef(layers, ref) {\n var sourceId;\n layers.some(function (layer) {\n if (layer.id == ref) {\n sourceId = layer.source;\n return true;\n }\n });\n return sourceId;\n}\nfunction extentFromTileJSON(tileJSON) {\n var bounds = tileJSON.bounds;\n if (bounds) {\n var ll = Object(ol_proj_js__WEBPACK_IMPORTED_MODULE_17__[\"fromLonLat\"])([bounds[0], bounds[1]]);\n var tr = Object(ol_proj_js__WEBPACK_IMPORTED_MODULE_17__[\"fromLonLat\"])([bounds[2], bounds[3]]);\n return [ll[0], ll[1], tr[0], tr[1]];\n }\n}\n/**\n * Creates an OpenLayers VectorTile source for a gl source entry.\n * @param {Object} glSource \"source\" entry from a Mapbox Style object.\n * @param {string|undefined} url URL to use for the source. This is expected to be the complete http(s) url,\n * with access key applied.When not provided, `glSource.tiles` has to be set.\n * @return {Promise} Promise resolving to a VectorTile source.\n * @private\n */\nfunction setupVectorSource(glSource, url) {\n glSource = Object(_util_js__WEBPACK_IMPORTED_MODULE_15__[\"assign\"])({}, glSource);\n var cacheKey = [url, JSON.stringify(glSource)].toString();\n var tilejson = tilejsonCache[cacheKey];\n if (!tilejson) {\n tilejson = new ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4___default.a({\n url: glSource.tiles ? undefined : url,\n tileJSON: glSource.tiles ? glSource : undefined\n });\n tilejsonCache[cacheKey] = tilejson;\n }\n return new Promise(function (resolve) {\n var key = tilejson.on('change', function () {\n var state = tilejson.getState();\n if (state === 'ready') {\n var tileJSONDoc = tilejson.getTileJSON();\n var tiles = Array.isArray(tileJSONDoc.tiles) ? tileJSONDoc.tiles : [tileJSONDoc.tiles];\n if (url) {\n for (var i = 0, ii = tiles.length; i < ii; ++i) {\n tiles[i] = decodeURI(new URL(tiles[i], url).href);\n }\n }\n var tileGrid = tilejson.getTileGrid();\n var extent = extentFromTileJSON(tileJSONDoc);\n var minZoom = tileJSONDoc.minzoom || 0;\n var maxZoom = tileJSONDoc.maxzoom || 22;\n var source = tilejson.get('ol-source');\n if (source === undefined) {\n source = new ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9___default.a({\n attributions: tilejson.getAttributions(),\n format: new ol_format_MVT_js__WEBPACK_IMPORTED_MODULE_1___default.a(),\n tileGrid: new ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3___default.a({\n origin: tileGrid.getOrigin(0),\n extent: extent || tileGrid.getExtent(),\n minZoom: minZoom,\n resolutions: _util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"].slice(0, maxZoom + 1),\n tileSize: 512\n }),\n urls: tiles\n });\n tilejson.set('ol-source', source);\n }\n Object(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__[\"unByKey\"])(key);\n resolve(source);\n } else if (state === 'error') {\n tilejson.set('ol-source', null);\n Object(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__[\"unByKey\"])(key);\n resolve(undefined);\n }\n });\n if (tilejson.getState() === 'ready') {\n tilejson.changed();\n }\n });\n}\nfunction setupVectorLayer(glSource, url) {\n var layer = new ol_layer_VectorTile_js__WEBPACK_IMPORTED_MODULE_8___default.a({\n declutter: true,\n visible: false\n });\n setupVectorSource(glSource, url).then(function (source) {\n layer.setSource(source);\n });\n return layer;\n}\nfunction setupRasterLayer(glSource, url) {\n var layer = new ol_layer_Tile_js__WEBPACK_IMPORTED_MODULE_5___default.a();\n var source = new ol_source_TileJSON_js__WEBPACK_IMPORTED_MODULE_4___default.a({\n transition: 0,\n url: glSource.tiles ? undefined : url,\n tileJSON: glSource.tiles ? glSource : undefined,\n crossOrigin: 'anonymous'\n });\n var key = source.on('change', function () {\n var state = source.getState();\n if (state === 'ready') {\n Object(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__[\"unByKey\"])(key);\n var tileJSONDoc = /** @type {Object} */source.getTileJSON();\n var extent = extentFromTileJSON(tileJSONDoc);\n var tileGrid = source.getTileGrid();\n var tileSize = glSource.tileSize || tileJSONDoc.tileSize || 512;\n var minZoom = tileJSONDoc.minzoom || 0;\n var maxZoom = tileJSONDoc.maxzoom || 22;\n // Only works when using ES modules\n //@ts-ignore\n source.tileGrid = new ol_tilegrid_TileGrid_js__WEBPACK_IMPORTED_MODULE_3___default.a({\n origin: tileGrid.getOrigin(0),\n extent: extent || tileGrid.getExtent(),\n minZoom: minZoom,\n resolutions: Object(ol_tilegrid_js__WEBPACK_IMPORTED_MODULE_16__[\"createXYZ\"])({\n maxZoom: maxZoom,\n tileSize: tileSize\n }).getResolutions(),\n tileSize: tileSize\n });\n layer.setSource(source);\n } else if (state === 'error') {\n Object(ol_Observable_js__WEBPACK_IMPORTED_MODULE_18__[\"unByKey\"])(key);\n layer.setSource(undefined);\n }\n });\n source.setTileLoadFunction(function (tile, src) {\n if (src.indexOf('{bbox-epsg-3857}') != -1) {\n var bbox = source.getTileGrid().getTileCoordExtent(tile.getTileCoord());\n src = src.replace('{bbox-epsg-3857}', bbox.toString());\n }\n var img = /** @type {import(\"ol/ImageTile\").default} */tile.getImage();\n /** @type {HTMLImageElement} */\n img.src = src;\n });\n return layer;\n}\nvar geoJsonFormat = new ol_format_GeoJSON_js__WEBPACK_IMPORTED_MODULE_0___default.a();\nfunction setupGeoJSONLayer(glSource, path) {\n var data = glSource.data;\n var features, geoJsonUrl;\n if (typeof data == 'string') {\n geoJsonUrl = withPath(data, path);\n } else {\n features = geoJsonFormat.readFeatures(data, {\n featureProjection: 'EPSG:3857'\n });\n }\n return new ol_layer_Vector_js__WEBPACK_IMPORTED_MODULE_6___default.a({\n source: new ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7___default.a({\n attributions: glSource.attribution,\n features: features,\n format: geoJsonFormat,\n url: geoJsonUrl\n }),\n visible: false\n });\n}\nfunction updateRasterLayerProperties(glLayer, layer, view, functionCache) {\n var zoom = view.getZoom();\n var opacity = Object(_stylefunction_js__WEBPACK_IMPORTED_MODULE_11__[\"getValue\"])(glLayer, 'paint', 'raster-opacity', zoom, emptyObj, functionCache);\n layer.setOpacity(opacity);\n}\nfunction processStyle(glStyle, map, baseUrl, host, path, accessToken) {\n if (accessToken === void 0) {\n accessToken = '';\n }\n var promises = [];\n var view = map.getView();\n if (!view.isDef() && !view.getRotation() && !view.getResolutions()) {\n view = new ol_View_js__WEBPACK_IMPORTED_MODULE_10___default.a({\n maxResolution: _util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"][0]\n });\n map.setView(view);\n }\n if ('center' in glStyle && !view.getCenter()) {\n view.setCenter(Object(ol_proj_js__WEBPACK_IMPORTED_MODULE_17__[\"fromLonLat\"])(glStyle.center));\n }\n if ('zoom' in glStyle && view.getZoom() === undefined) {\n view.setResolution(_util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"][0] / Math.pow(2, glStyle.zoom));\n }\n if (!view.getCenter() || view.getZoom() === undefined) {\n view.fit(view.getProjection().getExtent(), {\n nearest: true,\n size: map.getSize()\n });\n }\n if (glStyle.sprite) {\n if (glStyle.sprite.indexOf('mapbox://') == 0) {\n glStyle.sprite = baseUrl + '/sprite' + accessToken;\n } else if (glStyle.sprite.indexOf('http') != 0) {\n glStyle.sprite = (host ? host + path : '') + glStyle.sprite + accessToken;\n }\n }\n var glLayers = glStyle.layers;\n var layerIds = [];\n var glLayer, glSource, glSourceId, id, layer, url;\n var _loop_1 = function _loop_1(i, ii) {\n glLayer = glLayers[i];\n var type = glLayer.type;\n if (type == 'heatmap' || type == 'hillshade') {\n //FIXME Unsupported layer type\n } else if (type == 'background') {\n setBackground(map, glLayer);\n } else {\n id = glLayer.source || getSourceIdByRef(glLayers, glLayer.ref);\n // this technique assumes gl layers will be in a particular order\n if (id != glSourceId) {\n if (layerIds.length) {\n promises.push(finalizeLayer(layer, layerIds, glStyle, path, map));\n layerIds = [];\n }\n glSource = glStyle.sources[id];\n url = glSource.url;\n if (url) {\n url = withPath(url, path);\n if (url.indexOf('mapbox://') == 0) {\n var mapid_1 = url.replace('mapbox://', '');\n glSource.tiles = ['a', 'b', 'c', 'd'].map(function (host) {\n return 'https://' + host + '.tiles.mapbox.com/v4/' + mapid_1 + '/{z}/{x}/{y}.' + (glSource.type == 'vector' ? 'vector.pbf' : 'png') + accessToken;\n });\n } else if (url.indexOf('/') === 0 && host.indexOf('http') === 0) {\n url = host + url;\n }\n }\n if (glSource.tiles) {\n glSource.tiles = glSource.tiles.map(function (url) {\n return withPath(url, path);\n });\n }\n if (glSource.type == 'vector') {\n layer = setupVectorLayer(glSource, url);\n } else if (glSource.type == 'raster') {\n layer = setupRasterLayer(glSource, url);\n layer.setVisible(glLayer.layout ? glLayer.layout.visibility !== 'none' : true);\n var functionCache = {};\n view.on('change:resolution', updateRasterLayerProperties.bind(this_1, glLayer, layer, view, functionCache));\n updateRasterLayerProperties(glLayer, layer, view, functionCache);\n } else if (glSource.type == 'geojson') {\n layer = setupGeoJSONLayer(glSource, path);\n }\n glSourceId = id;\n if (layer) {\n layer.set('mapbox-source', glSourceId);\n }\n }\n layerIds.push(glLayer.id);\n }\n };\n var this_1 = this;\n for (var i = 0, ii = glLayers.length; i < ii; ++i) {\n _loop_1(i, ii);\n }\n promises.push(finalizeLayer(layer, layerIds, glStyle, path, map));\n map.set('mapbox-style', glStyle);\n return Promise.all(promises);\n}\n/**\n * ```js\n * import olms from 'ol-mapbox-style';\n * ```\n *\n * Loads and applies a Mapbox Style object to an OpenLayers Map. This includes\n * the map background, the layers, the center and the zoom.\n *\n * The center and zoom will only be set if present in the Mapbox Style document,\n * and if not already set on the OpenLayers map.\n *\n * Layers will be added to the OpenLayers map, without affecting any layers that\n * might already be set on the map.\n *\n * Layers added by `apply()` will have two additional properties:\n *\n * * `mapbox-source`: The `id` of the Mapbox Style document's source that the\n * OpenLayers layer was created from. Usually `apply()` creates one\n * OpenLayers layer per Mapbox Style source, unless the layer stack has\n * layers from different sources in between.\n * * `mapbox-layers`: The `id`s of the Mapbox Style document's layers that are\n * included in the OpenLayers layer.\n *\n * This function sets an additional `mapbox-style` property on the OpenLayers\n * map instance, which holds the Mapbox Style object.\n *\n * @param {PluggableMap|HTMLElement|string} map Either an existing OpenLayers Map\n * instance, or a HTML element, or the id of a HTML element that will be the\n * target of a new OpenLayers Map.\n * @param {string|Object} style JSON style object or style url pointing to a\n * Mapbox Style object. When using Mapbox APIs, the url must contain an access\n * token and look like\n * `https://api.mapbox.com/styles/v1/mapbox/bright-v9?access_token=[your_access_token_here]`.\n * When passed as JSON style object, all OpenLayers layers created by `apply()`\n * will be immediately available, but they may not have a source yet (i.e. when\n * they are defined by a TileJSON url in the Mapbox Style document). When passed\n * as style url, layers will be added to the map when the Mapbox Style document\n * is loaded and parsed.\n * @return {Promise} A promise that resolves after all layers have been added to\n * the OpenLayers Map instance, their sources set, and their styles applied. the\n * `resolve` callback will be called with the OpenLayers Map instance as\n * argument.\n */\nfunction olms(map, style) {\n var promise,\n accessToken = '',\n baseUrl = '',\n host = '',\n path = '';\n if (typeof map === 'string' || map instanceof HTMLElement) {\n map = new ol_Map_js__WEBPACK_IMPORTED_MODULE_2___default.a({\n target: map\n });\n }\n if (typeof style === 'string') {\n var parts = style.match(spriteRegEx);\n if (parts) {\n baseUrl = parts[1];\n accessToken = parts.length > 2 ? parts[2] : '';\n }\n promise = new Promise(function (resolve, reject) {\n fetch(style, {\n credentials: 'same-origin'\n }).then(function (response) {\n return response.json();\n }).then(function (glStyle) {\n var a = /** @type {HTMLAnchorElement} */document.createElement('A');\n a.href = style;\n var href = a.href;\n path = a.pathname.split('/').slice(0, -1).join('/') + '/';\n host = href.substr(0, href.indexOf(path));\n processStyle(glStyle, map, baseUrl, host, path, accessToken).then(function () {\n resolve(map);\n })[\"catch\"](reject);\n })[\"catch\"](function (err) {\n reject(new Error(\"Could not load \".concat(style, \": \").concat(err.message)));\n });\n });\n } else {\n promise = new Promise(function (resolve, reject) {\n processStyle(style, map).then(function () {\n resolve(map);\n })[\"catch\"](reject);\n });\n }\n return promise;\n}\n/**\n * ```js\n * import {apply} from 'ol-mapbox-style';\n * ```\n * Like `olms`, but returns an `ol/Map` instance instead of a `Promise`.\n *\n * @param {PluggableMap|HTMLElement|string} map Either an existing OpenLayers Map\n * instance, or a HTML element, or the id of a HTML element that will be the\n * target of a new OpenLayers Map.\n * @param {string|Object} style JSON style object or style url pointing to a\n * Mapbox Style object. When using Mapbox APIs, the url must contain an access\n * token and look like\n * `https://api.mapbox.com/styles/v1/mapbox/bright-v9?access_token=[your_access_token_here]`.\n * When passed as JSON style object, all OpenLayers layers created by `apply()`\n * will be immediately available, but they may not have a source yet (i.e. when\n * they are defined by a TileJSON url in the Mapbox Style document). When passed\n * as style url, layers will be added to the map when the Mapbox Style document\n * is loaded and parsed.\n * @return {PluggableMap} The OpenLayers Map instance that will be populated with the\n * contents described in the Mapbox Style object.\n */\nfunction apply(map, style) {\n if (typeof map === 'string' || map instanceof HTMLElement) {\n map = new ol_Map_js__WEBPACK_IMPORTED_MODULE_2___default.a({\n target: map\n });\n }\n setTimeout(function () {\n olms(map, style);\n }, 0);\n return map;\n}\n/**\n * If layerIds is not empty, applies the style specified in glStyle to the layer,\n * and adds the layer to the map.\n *\n * The layer may not yet have a source when the function is called. If so, the style\n * is applied to the layer via a once listener on the 'change:source' event.\n *\n * @param {Layer} layer An OpenLayers layer instance.\n * @param {Array} layerIds Array containing layer ids of already-processed layers.\n * @param {Object} glStyle Style as a JSON object.\n * @param {string|undefined} path The path part of the style URL. Only required\n * when a relative path is used with the `\"sprite\"` property of the style.\n * @param {PluggableMap} map OpenLayers Map.\n * @return {Promise} Returns a promise that resolves after the source has\n * been set on the specified layer, and the style has been applied.\n * @private\n */\nfunction finalizeLayer(layer, layerIds, glStyle, path, map) {\n var minZoom = 24;\n var maxZoom = 0;\n var glLayers = glStyle.layers;\n for (var i = 0, ii = glLayers.length; i < ii; ++i) {\n var glLayer = glLayers[i];\n if (layerIds.indexOf(glLayer.id) !== -1) {\n minZoom = Math.min('minzoom' in glLayer ? glLayer.minzoom : 0, minZoom);\n maxZoom = Math.max('maxzoom' in glLayer ? glLayer.maxzoom : 24, maxZoom);\n }\n }\n return new Promise(function (resolve, reject) {\n var setStyle = function setStyle() {\n var source = layer.getSource();\n if (!source || source.getState() === 'error') {\n reject(new Error('Error accessing data for source ' + layer.get('mapbox-source')));\n return;\n }\n if (typeof source.getTileGrid === 'function') {\n var tileGrid = source.getTileGrid();\n if (tileGrid) {\n var sourceMinZoom = tileGrid.getMinZoom();\n if (minZoom > 0 || sourceMinZoom > 0) {\n layer.setMaxResolution(Math.min(_util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"][minZoom], tileGrid.getResolution(sourceMinZoom)) + 1e-9);\n }\n if (maxZoom < 24) {\n layer.setMinResolution(_util_js__WEBPACK_IMPORTED_MODULE_15__[\"defaultResolutions\"][maxZoom] + 1e-9);\n }\n }\n }\n if (source instanceof ol_source_Vector_js__WEBPACK_IMPORTED_MODULE_7___default.a || source instanceof ol_source_VectorTile_js__WEBPACK_IMPORTED_MODULE_9___default.a) {\n applyStyle( /** @type {import(\"ol/layer/Vector\").default|import(\"ol/layer/VectorTile\").default} */layer, glStyle, layerIds, path).then(function () {\n layer.setVisible(true);\n resolve();\n }, function (e) {\n reject(e);\n });\n } else {\n resolve();\n }\n };\n layer.set('mapbox-layers', layerIds);\n if (map.getLayers().getArray().indexOf(layer) === -1) {\n map.addLayer(layer);\n }\n if (layer.getSource()) {\n setStyle();\n } else {\n layer.once('change:source', setStyle);\n }\n });\n}\n/**\n * ```js\n * import {getLayer} from 'ol-mapbox-style';\n * ```\n * Get the OpenLayers layer instance that contains the provided Mapbox Style\n * `layer`. Note that multiple Mapbox Style layers are combined in a single\n * OpenLayers layer instance when they use the same Mapbox Style `source`.\n * @param {PluggableMap} map OpenLayers Map.\n * @param {string} layerId Mapbox Style layer id.\n * @return {Layer} OpenLayers layer instance.\n */\nfunction getLayer(map, layerId) {\n var layers = map.getLayers().getArray();\n for (var i = 0, ii = layers.length; i < ii; ++i) {\n var mapboxLayers = layers[i].get('mapbox-layers');\n if (mapboxLayers && mapboxLayers.indexOf(layerId) !== -1) {\n return /** @type {Layer} */layers[i];\n }\n }\n}\n/**\n * ```js\n * import {getLayers} from 'ol-mapbox-style';\n * ```\n * Get the OpenLayers layer instances for the provided Mapbox Style `source`.\n * @param {PluggableMap} map OpenLayers Map.\n * @param {string} sourceId Mapbox Style source id.\n * @return {Array} OpenLayers layer instances.\n */\nfunction getLayers(map, sourceId) {\n var result = [];\n var layers = map.getLayers().getArray();\n for (var i = 0, ii = layers.length; i < ii; ++i) {\n if (layers[i].get('mapbox-source') === sourceId) {\n result.push( /** @type {Layer} */layers[i]);\n }\n }\n return result;\n}\n/**\n * ```js\n * import {getSource} from 'ol-mapbox-style';\n * ```\n * Get the OpenLayers source instance for the provided Mapbox Style `source`.\n * @param {PluggableMap} map OpenLayers Map.\n * @param {string} sourceId Mapbox Style source id.\n * @return {Source} OpenLayers source instance.\n */\nfunction getSource(map, sourceId) {\n var layers = map.getLayers().getArray();\n for (var i = 0, ii = layers.length; i < ii; ++i) {\n var source = /** @type {Layer} */layers[i].getSource();\n if (layers[i].get('mapbox-source') === sourceId) {\n return source;\n }\n }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=ut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RQUFRLEVBQUU7TUFDL0MsT0FBT3JFLE1BQU07OztBQUduQiIsImZpbGUiOiIuL25vZGVfbW9kdWxlcy9vbC1tYXBib3gtc3R5bGUvZGlzdC9pbmRleC5qcy5qcyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/ol-mapbox-style/dist/index.js\n"); /***/ }), @@ -1414,7 +1414,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) * /*! exports provided: name, description, version, date, leafletExtName, leafletExtVersion, olExtName, olExtVersion, itownsExtName, itownsExtVersion, main, types, module, directories, scripts, repository, author, keywords, license, bugs, homepage, dependencies, devDependencies, default */ /***/ (function(module) { -eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"geoportal-extensions\\\",\\\"description\\\":\\\"French Geoportal Extensions for OpenLayers, Leaflet and iTowns libraries\\\",\\\"version\\\":\\\"3.0.0\\\",\\\"date\\\":\\\"19/03/2024\\\",\\\"leafletExtName\\\":\\\"French Geoportal Extension for Leaflet\\\",\\\"leafletExtVersion\\\":\\\"2.4.0\\\",\\\"olExtName\\\":\\\"French Geoportal Extension for OpenLayers\\\",\\\"olExtVersion\\\":\\\"3.4.0\\\",\\\"itownsExtName\\\":\\\"French Geoportal Extension for Itowns\\\",\\\"itownsExtVersion\\\":\\\"2.5.0\\\",\\\"main\\\":\\\"dist/leaflet/GpPluginLeaflet.js, dist/openlayers/GpPluginOpenLayers.js, dist/itowns/GpPluginItowns.js\\\",\\\"types\\\":\\\"dist/leaflet/index.d.ts, dist/openlayers/index.d.ts, dist/itowns/index.d.ts\\\",\\\"module\\\":\\\"src/Leaflet/index.js, src/OpenLayers/index.js, src/Itowns/index.js\\\",\\\"directories\\\":{},\\\"scripts\\\":{\\\"setup\\\":\\\"npm install\\\",\\\"clean\\\":\\\"echo \\\\\\\"Warning: target not yet implemented!\\\\\\\" && exit 0\\\",\\\"eslint\\\":\\\"eslint src/\\\",\\\"test\\\":\\\"npm run test:serve\\\",\\\"test:serve\\\":\\\"cd test && webpack-dev-server --hot --config webpack.test.serve.js\\\",\\\"sample\\\":\\\"npm run sample:serve\\\",\\\"sample:serve\\\":\\\"npm run sample:ol:serve\\\",\\\"sample:itowns:serve\\\":\\\"webpack-dev-server --config build/webpack/webpack.config.itowns --mode=development --https --open-page samples/index-itowns-map.html --content-base . --output-public-path '/dist/itowns/' --port 9001 --open\\\",\\\"sample:leaflet:serve\\\":\\\"webpack-dev-server --config build/webpack/webpack.config.leaflet --mode=development --https --open-page samples/index-leaflet-map.html --content-base . --output-public-path '/dist/leaflet/' --port 9001 --open\\\",\\\"sample:ol:serve\\\":\\\"webpack-dev-server --config build/webpack/webpack.config.openlayers --mode=development --https --open-page samples/index-openlayers-map.html --content-base . --output-public-path '/dist/openlayers/' --port 9001 --open\\\",\\\"generate-types:ol\\\":\\\"npx tsc -p build/types/tsconfig-openlayers.json\\\",\\\"generate-types:leaflet\\\":\\\"npx tsc -p build/types/tsconfig-leaflet.json\\\",\\\"generate-types:itowns\\\":\\\"npx tsc -p build/types/tsconfig-itowns.json\\\",\\\"generate-jsdoc:ol\\\":\\\"jsdoc -c build/jsdoc/jsdoc-openlayers.json\\\",\\\"generate-jsdoc:leaflet\\\":\\\"jsdoc -c build/jsdoc/jsdoc-leaflet.json\\\",\\\"generate-jsdoc:itowns\\\":\\\"jsdoc -c build/jsdoc/jsdoc-itowns.json\\\",\\\"doc\\\":\\\"npm run doc:serve\\\",\\\"doc:serve\\\":\\\"npm run doc:ol:serve\\\",\\\"doc:itowns:serve\\\":\\\"webpack-dev-server --hot --config build/webpack/webpack.config.itowns --content-base jsdoc/itowns --port 9001 --open\\\",\\\"doc:leaflet:serve\\\":\\\"webpack-dev-server --hot --config build/webpack/webpack.config.leaflet --content-base jsdoc/leaflet --port 9001 --open\\\",\\\"doc:ol:serve\\\":\\\"webpack-dev-server --hot --config build/webpack/webpack.config.openlayers --content-base jsdoc/openlayers --port 9001 --open\\\",\\\"build:dev\\\":\\\"npm-run-all --print-label --print-name build:*:dev\\\",\\\"build:prod\\\":\\\"npm-run-all --print-label --print-name build:*:prod\\\",\\\"build:src\\\":\\\"npm-run-all --print-label --print-name build:*:src\\\",\\\"build\\\":\\\"npm-run-all --print-label --print-name build:*:*\\\",\\\"build:itowns\\\":\\\"npm-run-all --print-label --print-name build:itowns:*\\\",\\\"build:itowns:dev\\\":\\\"webpack --config build/webpack/webpack.config.itowns --mode=development\\\",\\\"build:itowns:prod\\\":\\\"webpack --config build/webpack/webpack.config.itowns --mode=production\\\",\\\"build:itowns:src\\\":\\\"webpack --config build/webpack/webpack.config.itowns --mode=none\\\",\\\"build:ol\\\":\\\"npm-run-all --print-label --print-name build:ol:*\\\",\\\"build:ol:dev\\\":\\\"webpack --config build/webpack/webpack.config.openlayers --mode=development\\\",\\\"build:ol:prod\\\":\\\"webpack --config build/webpack/webpack.config.openlayers --mode=production\\\",\\\"build:ol:src\\\":\\\"webpack --config build/webpack/webpack.config.openlayers --mode=none\\\",\\\"build:leaflet\\\":\\\"npm-run-all --print-label --print-name build:leaflet:*\\\",\\\"build:leaflet:dev\\\":\\\"webpack --config build/webpack/webpack.config.leaflet --mode=development\\\",\\\"build:leaflet:prod\\\":\\\"webpack --config build/webpack/webpack.config.leaflet --mode=production\\\",\\\"build:leaflet:src\\\":\\\"webpack --config build/webpack/webpack.config.leaflet --mode=none\\\"},\\\"repository\\\":{\\\"type\\\":\\\"git\\\",\\\"url\\\":\\\"https://github.com/IGNF/geoportal-extensions.git\\\"},\\\"author\\\":\\\"IGNF\\\",\\\"keywords\\\":[\\\"geoportail\\\",\\\"geoplateforme\\\",\\\"javascript\\\",\\\"OpenLayers\\\",\\\"Leaflet\\\",\\\"Itowns\\\",\\\"3D\\\"],\\\"license\\\":\\\"CECILL-B\\\",\\\"bugs\\\":{\\\"url\\\":\\\"https://github.com/IGNF/geoportal-extensions/issues\\\"},\\\"homepage\\\":\\\"https://github.com/IGNF/geoportal-extensions#readme\\\",\\\"dependencies\\\":{\\\"@mapbox/mapbox-gl-style-spec\\\":\\\"13.20.1\\\",\\\"eventbusjs\\\":\\\"0.2.0\\\",\\\"geoportal-access-lib\\\":\\\"3.4.0\\\",\\\"itowns\\\":\\\"2.38.2\\\",\\\"leaflet\\\":\\\"1.7.1\\\",\\\"leaflet-draw\\\":\\\"1.0.4\\\",\\\"loglevel\\\":\\\"^1.6.7\\\",\\\"markdown-toc\\\":\\\"^1.2.0\\\",\\\"ol\\\":\\\"6.9.0\\\",\\\"ol-mapbox-style\\\":\\\"6.7.0\\\",\\\"proj4\\\":\\\"2.7.5\\\",\\\"proj4leaflet\\\":\\\"1.0.2\\\",\\\"sortablejs\\\":\\\"1.14.0\\\",\\\"three\\\":\\\"0.137.5\\\",\\\"typescript\\\":\\\"^4.5.5\\\",\\\"whatwg-fetch\\\":\\\"3.0.0\\\"},\\\"devDependencies\\\":{\\\"@babel/core\\\":\\\"^7.4.4\\\",\\\"@babel/plugin-transform-template-literals\\\":\\\"^7.7.4\\\",\\\"@babel/preset-env\\\":\\\"^7.4.4\\\",\\\"babel-loader\\\":\\\"^8.0.5\\\",\\\"chai\\\":\\\"^4.2.0\\\",\\\"chalk\\\":\\\"^4.0.0\\\",\\\"clean-webpack-plugin\\\":\\\"^3.0.0\\\",\\\"copy-webpack-plugin\\\":\\\"^5.0.3\\\",\\\"core-js\\\":\\\"^3.6.4\\\",\\\"css-loader\\\":\\\"^3.4.2\\\",\\\"eslint\\\":\\\"^6.8.0\\\",\\\"eslint-config-standard\\\":\\\"^14.1.1\\\",\\\"eslint-loader\\\":\\\"^4.0.0\\\",\\\"eslint-plugin-import\\\":\\\"^2.17.2\\\",\\\"eslint-plugin-node\\\":\\\"^11.1.0\\\",\\\"eslint-plugin-promise\\\":\\\"^4.1.1\\\",\\\"eslint-plugin-standard\\\":\\\"^4.0.0\\\",\\\"exports-loader\\\":\\\"^0.7.0\\\",\\\"expose-loader\\\":\\\"^0.7.5\\\",\\\"fs-extra\\\":\\\"^9.0.0\\\",\\\"handlebars\\\":\\\"^4.7.5\\\",\\\"handlebars-layouts\\\":\\\"^3.1.4\\\",\\\"html-webpack-plugin\\\":\\\"^4.0.4\\\",\\\"jsdoc-webpack-plugin\\\":\\\"^0.3.0\\\",\\\"mini-css-extract-plugin\\\":\\\"^0.9.0\\\",\\\"mocha\\\":\\\"^7.1.1\\\",\\\"mocha-loader\\\":\\\"^5.0.0\\\",\\\"npm-run-all\\\":\\\"^4.1.5\\\",\\\"optimize-css-assets-webpack-plugin\\\":\\\"^5.0.1\\\",\\\"path\\\":\\\"^0.12.7\\\",\\\"replace-bundle-webpack-plugin\\\":\\\"^1.0.0\\\",\\\"requirejs\\\":\\\"^2.3.6\\\",\\\"responsive-loader\\\":\\\"^1.2.0\\\",\\\"speed-measure-webpack-plugin\\\":\\\"^1.3.0\\\",\\\"string-template\\\":\\\"^1.0.0\\\",\\\"style-loader\\\":\\\"^1.1.3\\\",\\\"terser-webpack-plugin\\\":\\\"^2.0.0\\\",\\\"url-loader\\\":\\\"^4.0.0\\\",\\\"webpack\\\":\\\"^4.30.0\\\",\\\"webpack-cli\\\":\\\"^3.3.1\\\",\\\"webpack-dev-server\\\":\\\"^3.3.1\\\",\\\"webpack-node-externals\\\":\\\"^1.7.2\\\"}}\");//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiIuL3BhY2thZ2UuanNvbi5qcyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./package.json\n"); +eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"geoportal-extensions\\\",\\\"description\\\":\\\"French Geoportal Extensions for OpenLayers, Leaflet and iTowns libraries\\\",\\\"version\\\":\\\"3.0.1\\\",\\\"date\\\":\\\"04/04/2024\\\",\\\"leafletExtName\\\":\\\"French Geoportal Extension for Leaflet\\\",\\\"leafletExtVersion\\\":\\\"2.4.0\\\",\\\"olExtName\\\":\\\"French Geoportal Extension for OpenLayers\\\",\\\"olExtVersion\\\":\\\"3.4.1\\\",\\\"itownsExtName\\\":\\\"French Geoportal Extension for Itowns\\\",\\\"itownsExtVersion\\\":\\\"2.5.0\\\",\\\"main\\\":\\\"dist/leaflet/GpPluginLeaflet.js, dist/openlayers/GpPluginOpenLayers.js, dist/itowns/GpPluginItowns.js\\\",\\\"types\\\":\\\"dist/leaflet/index.d.ts, dist/openlayers/index.d.ts, dist/itowns/index.d.ts\\\",\\\"module\\\":\\\"src/Leaflet/index.js, src/OpenLayers/index.js, src/Itowns/index.js\\\",\\\"directories\\\":{},\\\"scripts\\\":{\\\"setup\\\":\\\"npm install\\\",\\\"clean\\\":\\\"echo \\\\\\\"Warning: target not yet implemented!\\\\\\\" && exit 0\\\",\\\"eslint\\\":\\\"eslint src/\\\",\\\"test\\\":\\\"npm run test:serve\\\",\\\"test:serve\\\":\\\"cd test && webpack-dev-server --hot --config webpack.test.serve.js\\\",\\\"sample\\\":\\\"npm run sample:serve\\\",\\\"sample:serve\\\":\\\"npm run sample:ol:serve\\\",\\\"sample:itowns:serve\\\":\\\"webpack-dev-server --config build/webpack/webpack.config.itowns --mode=development --https --open-page samples/index-itowns-map.html --content-base . --output-public-path '/dist/itowns/' --port 9001 --open\\\",\\\"sample:leaflet:serve\\\":\\\"webpack-dev-server --config build/webpack/webpack.config.leaflet --mode=development --https --open-page samples/index-leaflet-map.html --content-base . --output-public-path '/dist/leaflet/' --port 9001 --open\\\",\\\"sample:ol:serve\\\":\\\"webpack-dev-server --config build/webpack/webpack.config.openlayers --mode=development --https --open-page samples/index-openlayers-map.html --content-base . --output-public-path '/dist/openlayers/' --port 9001 --open\\\",\\\"generate-types:ol\\\":\\\"npx tsc -p build/types/tsconfig-openlayers.json\\\",\\\"generate-types:leaflet\\\":\\\"npx tsc -p build/types/tsconfig-leaflet.json\\\",\\\"generate-types:itowns\\\":\\\"npx tsc -p build/types/tsconfig-itowns.json\\\",\\\"generate-jsdoc:ol\\\":\\\"jsdoc -c build/jsdoc/jsdoc-openlayers.json\\\",\\\"generate-jsdoc:leaflet\\\":\\\"jsdoc -c build/jsdoc/jsdoc-leaflet.json\\\",\\\"generate-jsdoc:itowns\\\":\\\"jsdoc -c build/jsdoc/jsdoc-itowns.json\\\",\\\"doc\\\":\\\"npm run doc:serve\\\",\\\"doc:serve\\\":\\\"npm run doc:ol:serve\\\",\\\"doc:itowns:serve\\\":\\\"webpack-dev-server --hot --config build/webpack/webpack.config.itowns --content-base jsdoc/itowns --port 9001 --open\\\",\\\"doc:leaflet:serve\\\":\\\"webpack-dev-server --hot --config build/webpack/webpack.config.leaflet --content-base jsdoc/leaflet --port 9001 --open\\\",\\\"doc:ol:serve\\\":\\\"webpack-dev-server --hot --config build/webpack/webpack.config.openlayers --content-base jsdoc/openlayers --port 9001 --open\\\",\\\"build:dev\\\":\\\"npm-run-all --print-label --print-name build:*:dev\\\",\\\"build:prod\\\":\\\"npm-run-all --print-label --print-name build:*:prod\\\",\\\"build:src\\\":\\\"npm-run-all --print-label --print-name build:*:src\\\",\\\"build\\\":\\\"npm-run-all --print-label --print-name build:*:*\\\",\\\"build:itowns\\\":\\\"npm-run-all --print-label --print-name build:itowns:*\\\",\\\"build:itowns:dev\\\":\\\"webpack --config build/webpack/webpack.config.itowns --mode=development\\\",\\\"build:itowns:prod\\\":\\\"webpack --config build/webpack/webpack.config.itowns --mode=production\\\",\\\"build:itowns:src\\\":\\\"webpack --config build/webpack/webpack.config.itowns --mode=none\\\",\\\"build:ol\\\":\\\"npm-run-all --print-label --print-name build:ol:*\\\",\\\"build:ol:dev\\\":\\\"webpack --config build/webpack/webpack.config.openlayers --mode=development\\\",\\\"build:ol:prod\\\":\\\"webpack --config build/webpack/webpack.config.openlayers --mode=production\\\",\\\"build:ol:src\\\":\\\"webpack --config build/webpack/webpack.config.openlayers --mode=none\\\",\\\"build:leaflet\\\":\\\"npm-run-all --print-label --print-name build:leaflet:*\\\",\\\"build:leaflet:dev\\\":\\\"webpack --config build/webpack/webpack.config.leaflet --mode=development\\\",\\\"build:leaflet:prod\\\":\\\"webpack --config build/webpack/webpack.config.leaflet --mode=production\\\",\\\"build:leaflet:src\\\":\\\"webpack --config build/webpack/webpack.config.leaflet --mode=none\\\"},\\\"repository\\\":{\\\"type\\\":\\\"git\\\",\\\"url\\\":\\\"https://github.com/IGNF/geoportal-extensions.git\\\"},\\\"author\\\":\\\"IGNF\\\",\\\"keywords\\\":[\\\"geoportail\\\",\\\"geoplateforme\\\",\\\"javascript\\\",\\\"OpenLayers\\\",\\\"Leaflet\\\",\\\"Itowns\\\",\\\"3D\\\"],\\\"license\\\":\\\"CECILL-B\\\",\\\"bugs\\\":{\\\"url\\\":\\\"https://github.com/IGNF/geoportal-extensions/issues\\\"},\\\"homepage\\\":\\\"https://github.com/IGNF/geoportal-extensions#readme\\\",\\\"dependencies\\\":{\\\"@mapbox/mapbox-gl-style-spec\\\":\\\"13.20.1\\\",\\\"eventbusjs\\\":\\\"0.2.0\\\",\\\"geoportal-access-lib\\\":\\\"3.4.0\\\",\\\"itowns\\\":\\\"2.38.2\\\",\\\"leaflet\\\":\\\"1.7.1\\\",\\\"leaflet-draw\\\":\\\"1.0.4\\\",\\\"loglevel\\\":\\\"^1.6.7\\\",\\\"markdown-toc\\\":\\\"^1.2.0\\\",\\\"ol\\\":\\\"6.9.0\\\",\\\"ol-mapbox-style\\\":\\\"6.7.0\\\",\\\"proj4\\\":\\\"2.7.5\\\",\\\"proj4leaflet\\\":\\\"1.0.2\\\",\\\"sortablejs\\\":\\\"1.14.0\\\",\\\"three\\\":\\\"0.137.5\\\",\\\"typescript\\\":\\\"^4.5.5\\\",\\\"whatwg-fetch\\\":\\\"3.0.0\\\"},\\\"devDependencies\\\":{\\\"@babel/core\\\":\\\"^7.4.4\\\",\\\"@babel/plugin-transform-template-literals\\\":\\\"^7.7.4\\\",\\\"@babel/preset-env\\\":\\\"^7.4.4\\\",\\\"babel-loader\\\":\\\"^8.0.5\\\",\\\"chai\\\":\\\"^4.2.0\\\",\\\"chalk\\\":\\\"^4.0.0\\\",\\\"clean-webpack-plugin\\\":\\\"^3.0.0\\\",\\\"copy-webpack-plugin\\\":\\\"^5.0.3\\\",\\\"core-js\\\":\\\"^3.6.4\\\",\\\"css-loader\\\":\\\"^3.4.2\\\",\\\"eslint\\\":\\\"^6.8.0\\\",\\\"eslint-config-standard\\\":\\\"^14.1.1\\\",\\\"eslint-loader\\\":\\\"^4.0.0\\\",\\\"eslint-plugin-import\\\":\\\"^2.17.2\\\",\\\"eslint-plugin-node\\\":\\\"^11.1.0\\\",\\\"eslint-plugin-promise\\\":\\\"^4.1.1\\\",\\\"eslint-plugin-standard\\\":\\\"^4.0.0\\\",\\\"exports-loader\\\":\\\"^0.7.0\\\",\\\"expose-loader\\\":\\\"^0.7.5\\\",\\\"fs-extra\\\":\\\"^9.0.0\\\",\\\"handlebars\\\":\\\"^4.7.5\\\",\\\"handlebars-layouts\\\":\\\"^3.1.4\\\",\\\"html-webpack-plugin\\\":\\\"^4.0.4\\\",\\\"jsdoc-webpack-plugin\\\":\\\"^0.3.0\\\",\\\"mini-css-extract-plugin\\\":\\\"^0.9.0\\\",\\\"mocha\\\":\\\"^7.1.1\\\",\\\"mocha-loader\\\":\\\"^5.0.0\\\",\\\"npm-run-all\\\":\\\"^4.1.5\\\",\\\"optimize-css-assets-webpack-plugin\\\":\\\"^5.0.1\\\",\\\"path\\\":\\\"^0.12.7\\\",\\\"replace-bundle-webpack-plugin\\\":\\\"^1.0.0\\\",\\\"requirejs\\\":\\\"^2.3.6\\\",\\\"responsive-loader\\\":\\\"^1.2.0\\\",\\\"speed-measure-webpack-plugin\\\":\\\"^1.3.0\\\",\\\"string-template\\\":\\\"^1.0.0\\\",\\\"style-loader\\\":\\\"^1.1.3\\\",\\\"terser-webpack-plugin\\\":\\\"^2.0.0\\\",\\\"url-loader\\\":\\\"^4.0.0\\\",\\\"webpack\\\":\\\"^4.30.0\\\",\\\"webpack-cli\\\":\\\"^3.3.1\\\",\\\"webpack-dev-server\\\":\\\"^3.3.1\\\",\\\"webpack-node-externals\\\":\\\"^1.7.2\\\"}}\");//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiIuL3BhY2thZ2UuanNvbi5qcyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./package.json\n"); /***/ }), @@ -2445,7 +2445,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CSS /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CSS_Controls_LayerImport_GPimportOpenLayers_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../CSS/Controls/LayerImport/GPimportOpenLayers.css */ \"./src/OpenLayers/CSS/Controls/LayerImport/GPimportOpenLayers.css\");\n/* harmony import */ var _CSS_Controls_LayerImport_GPimportOpenLayers_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CSS_Controls_LayerImport_GPimportOpenLayers_css__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var ol_control_Control__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ol/control/Control */ \"ol/control/Control\");\n/* harmony import */ var ol_control_Control__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ol_control_Control__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ol_Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ol/Observable */ \"ol/Observable\");\n/* harmony import */ var ol_Observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(ol_Observable__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var ol_Collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ol/Collection */ \"ol/Collection\");\n/* harmony import */ var ol_Collection__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ol_Collection__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var ol_Feature__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ol/Feature */ \"ol/Feature\");\n/* harmony import */ var ol_Feature__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ol_Feature__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ol/tilegrid/WMTS */ \"ol/tilegrid/WMTS\");\n/* harmony import */ var ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var ol_tilegrid__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ol/tilegrid */ \"ol/tilegrid\");\n/* harmony import */ var ol_tilegrid__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ol_tilegrid__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ol/proj */ \"ol/proj\");\n/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ol_proj__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var ol_format_MVT__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ol/format/MVT */ \"ol/format/MVT\");\n/* harmony import */ var ol_format_MVT__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ol_format_MVT__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ol/format/WMSCapabilities */ \"ol/format/WMSCapabilities\");\n/* harmony import */ var ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ol/format/WMTSCapabilities */ \"ol/format/WMTSCapabilities\");\n/* harmony import */ var ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ol/layer/VectorTile */ \"ol/layer/VectorTile\");\n/* harmony import */ var ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ol/layer/Vector */ \"ol/layer/Vector\");\n/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ol/layer/Tile */ \"ol/layer/Tile\");\n/* harmony import */ var ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ol/source/VectorTile */ \"ol/source/VectorTile\");\n/* harmony import */ var ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ol/source/Vector */ \"ol/source/Vector\");\n/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(ol_source_Vector__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ol/source/TileWMS */ \"ol/source/TileWMS\");\n/* harmony import */ var ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var ol_source_WMTS__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ol/source/WMTS */ \"ol/source/WMTS\");\n/* harmony import */ var ol_source_WMTS__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(ol_source_WMTS__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ol/source/TileJSON */ \"ol/source/TileJSON\");\n/* harmony import */ var ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ol/style */ \"ol/style\");\n/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(ol_style__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ol-mapbox-style */ \"./node_modules/ol-mapbox-style/dist/index.js\");\n/* harmony import */ var geoportal_access_lib__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! geoportal-access-lib */ \"./node_modules/geoportal-access-lib/src/Gp.js\");\n/* harmony import */ var _Editor__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Editor */ \"./src/OpenLayers/Controls/Editor.js\");\n/* harmony import */ var _Utils_Markers__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Utils/Markers */ \"./src/OpenLayers/Controls/Utils/Markers.js\");\n/* harmony import */ var _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../Common/Utils/Draggable */ \"./src/Common/Utils/Draggable.js\");\n/* harmony import */ var _Utils_Interactions__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Utils/Interactions */ \"./src/OpenLayers/Controls/Utils/Interactions.js\");\n/* harmony import */ var _Common_Utils__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../Common/Utils */ \"./src/Common/Utils.js\");\n/* harmony import */ var _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../Common/Utils/LoggerByDefault */ \"./src/Common/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../Common/Utils/SelectorID */ \"./src/Common/Utils/SelectorID.js\");\n/* harmony import */ var _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../Common/Utils/ProxyUtils */ \"./src/Common/Utils/ProxyUtils.js\");\n/* harmony import */ var _Common_Controls_LayerImportDOM__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../Common/Controls/LayerImportDOM */ \"./src/Common/Controls/LayerImportDOM.js\");\n/* harmony import */ var _Formats_KML__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../Formats/KML */ \"./src/OpenLayers/Formats/KML.js\");\n/* harmony import */ var _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../Formats/GeoJSON */ \"./src/OpenLayers/Formats/GeoJSON.js\");\n/* harmony import */ var _Formats_GPX__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../Formats/GPX */ \"./src/OpenLayers/Formats/GPX.js\");\n/* harmony import */ var _LayerSwitcher__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./LayerSwitcher */ \"./src/OpenLayers/Controls/LayerSwitcher.js\");\n/* harmony import */ var _Route__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./Route */ \"./src/OpenLayers/Controls/Route.js\");\n/* harmony import */ var _Isocurve__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Isocurve */ \"./src/OpenLayers/Controls/Isocurve.js\");\n/* harmony import */ var _ElevationPath__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./ElevationPath */ \"./src/OpenLayers/Controls/ElevationPath.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n// import CSS\n\n// import OpenLayers\n\n\n\n\n\n // FIXME olCreateXYZTileGrid !?\n\n\n\n\n\n\n\n\n\n\n\n\n\n// import olms : module ES6\n\n// import olms : bundle\n// import olms from \"ol-mapbox-style\";\n// import geoportal library access\n\n// import local\n\n\n\n\n\n\n\n\n\n// import local with ol dependencies\n\n\n\n\n\n\n\nvar logger = _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_27__[\"default\"].getLogger(\"layerimport\");\n\n/**\n * @classdesc\n *\n * LayerImport Control. Allows users to add geographical data in standards formats from their own sources to the map.\n *\n * @constructor\n * @alias ol.control.LayerImport\n * @extends {ol.control.Control}\n * @type {ol.control.LayerImport}\n * @param {Object} options - options for function call.\n * @param {Boolean} [options.collapsed = true] - Specify if LayerImport control should be collapsed at startup. Default is true.\n * @param {Boolean} [options.draggable = false] - Specify if widget is draggable\n * @param {Array} [options.layerTypes = [\"KML\", \"GPX\", \"GeoJSON\", \"WMS\", \"WMTS\", \"MAPBOX\"]] - data types that could be imported : \"KML\", \"GPX\", \"GeoJSON\", \"WMS\", \"WMTS\" and \"MAPBOX\". Values will be displayed in the same order in widget list.\n * @param {Object} [options.webServicesOptions = {}] - Options to import WMS or WMTS layers\n * @param {String} [options.webServicesOptions.proxyUrl] - Proxy URL to avoid cross-domain problems. Mandatory to import WMS and WMTS layer.\n * @param {Array.} [options.webServicesOptions.noProxyDomains] - Proxy will not be used for this list of domain names. Only use if you know what you're doing.\n * @param {Object} [options.vectorStyleOptions] - Options for imported vector layer styling (KML, GPX, GeoJSON)\n * @param {Object} [options.vectorStyleOptions.KML] - Options for KML layer styling\n * @param {Boolean} [options.vectorStyleOptions.KML.extractStyles = true] - Extract styles from the KML. Default is true.\n * @param {Boolean} [options.vectorStyleOptions.KML.showPointNames = true] - Show names as labels for KML placemarks which contain points. Default is true.\n * @param {Object} [options.vectorStyleOptions.KML.defaultStyle] - default style to be applied to KML imports in case no style is defined. defaultStyle is an {@link http://openlayers.org/en/latest/apidoc/ol.style.Style.html ol.style.Style} object.\n * @param {Object} [options.vectorStyleOptions.GPX] - Options for GPX layer styling\n * @param {Object} [options.vectorStyleOptions.GPX.defaultStyle] - default style to be applied to GPX imports in case no style is defined. defaultStyle is an {@link http://openlayers.org/en/latest/apidoc/ol.style.Style.html ol.style.Style} object.\n * @param {Object} [options.vectorStyleOptions.GeoJSON] - Options for GeoJSON layer styling\n * @param {Object} [options.vectorStyleOptions.GeoJSON.defaultStyle] - default style to be applied to GeoJSON imports in case no style is defined. defaultStyle is an {@link http://openlayers.org/en/latest/apidoc/ol.style.Style.html ol.style.Style} object.\n * @param {Object} [options.vectorStyleOptions.MapBox] - Options for MapBox layer styling\n * @param {Object} [options.vectorStyleOptions.MapBox.defaultStyle] - default style to be applied to MapBox imports in case no style is defined. defaultStyle is an {@link http://openlayers.org/en/latest/apidoc/ol.style.Style.html ol.style.Style} object.\n * @param {Object} [options.vectorStyleOptions.MapBox.editor] - options for tools editor\n * @param {Boolean} [options.vectorStyleOptions.MapBox.display = true] - display tools editor\n * @example\n * var LayerImport = new ol.control.LayerImport({\n * \"collapsed\" : false,\n * \"draggable\" : true,\n * \"layerTypes\" : [\"KML\", \"GPX\"],\n * \"webServicesOptions\" : {\n * \"proxyUrl\" : \"http://localhost/proxy/php/proxy.php?url=\",\n * \"noProxyDomains\" : []\n * },\n * \"vectorStyleOptions\" : {\n * \"KML\" : {\n * extractStyles : true,\n * defaultStyle : new ol.style.Style({\n * image : new ol.style.Icon({\n * src : \"data:image/png;base64....\",\n * size : [51, 38],\n * }),\n * stroke : new ol.style.Stroke({\n * color : \"#ffffff\",\n * width : 7\n * }),\n * fill : new ol.style.Fill({\n * color : \"rgba(255, 183, 152, 0.2)\"\n * }),\n * text : new ol.style.Text({\n * font : \"16px Sans\",\n * textAlign : \"left\",\n * fill : new ol.style.Fill({\n * color : \"rgba(255, 255, 255, 1)\"\n * }),\n * stroke : new ol.style.Stroke({\n * color : \"rgba(0, 0, 0, 1)\",\n * width : 2\n * })\n * })\n * })\n * },\n * \"GPX\" : {\n * defaultStyle : new ol.style.Style({\n * image : new ol.style.Icon({\n * src : \"path/to/my/icon.png\",\n * size : [51, 38],\n * }),\n * stroke : new ol.style.Stroke({\n * color : \"#ffffff\",\n * width : 7\n * })\n * })\n * }\n * }\n * });\n */\nvar LayerImport = function (Control) {\n /**\n * See {@link ol.control.LayerImport}\n * @module LayerImport\n * @alias module:~Controls/LayerImport\n * @param {*} options - options\n * @example\n * import LayerImport from \"src/OpenLayers/Controls/LayerImport\"\n */\n function LayerImport(options) {\n options = options || {};\n if (!(this instanceof LayerImport)) {\n throw new TypeError(\"ERROR CLASS_CONSTRUCTOR\");\n }\n this._initialize(options);\n\n // init control DOM container\n var container = this._container = this._initContainer(options);\n\n // call ol.control.Control constructor\n Control.call(this, {\n element: container,\n target: options.target,\n render: options.render\n });\n }\n ;\n\n // Inherits from ol.control.Control\n if (Control) LayerImport.__proto__ = Control;\n\n /**\n * Default styles applyied to KML, GPX and GeoJSON features.\n *\n * @private\n */\n LayerImport.DefaultStyles = {\n image: new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Icon\"]({\n src: _Utils_Markers__WEBPACK_IMPORTED_MODULE_23__[\"default\"][\"lightOrange\"],\n anchor: [25.5, 38],\n anchorOrigin: \"top-left\",\n anchorXUnits: \"pixels\",\n anchorYUnits: \"pixels\"\n }),\n stroke: new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Stroke\"]({\n color: \"rgba(0,42,80,0.8)\",\n width: 4\n }),\n fill: new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Fill\"]({\n color: \"rgba(0, 183, 152, 0.5)\"\n }),\n text: new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Text\"]({\n font: \"16px Sans\",\n textAlign: \"left\",\n fill: new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Fill\"]({\n color: \"rgba(255, 255, 255, 1)\"\n }),\n stroke: new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Stroke\"]({\n color: \"rgba(0, 0, 0, 1)\",\n width: 2\n })\n })\n };\n\n /**\n * @lends module:LayerImport\n */\n LayerImport.prototype = Object.create(Control.prototype, {});\n\n // on récupère les méthodes de la classe commune LayerImportDOM\n _Common_Utils__WEBPACK_IMPORTED_MODULE_26__[\"default\"].assign(LayerImport.prototype, _Common_Controls_LayerImportDOM__WEBPACK_IMPORTED_MODULE_30__[\"default\"]);\n\n /**\n * Constructor (alias)\n *\n * @private\n */\n LayerImport.prototype.constructor = LayerImport;\n\n // ################################################################### //\n // ############## public methods (getters, setters) ################## //\n // ################################################################### //\n\n /**\n * Overwrite OpenLayers setMap method\n *\n * @param {ol.Map} map - Map.\n */\n LayerImport.prototype.setMap = function (map) {\n // ajout de la patience pour le chargement des tuiles\n if (map) {\n // Animation au centre de la carte ?\n // var center = this._loadingContainer = this._createLoadingElement();\n // map.getViewport().appendChild(center);\n\n var self = this;\n map.getLayers().on(\"remove\", function (e) {\n // import de type layerimport:MapBox ?\n if (e.element.gpResultLayerId === \"layerimport:MAPBOX\") {\n // layer ayant un editor ID associé ?\n if (e.element.gpEditorId) {\n // le panneau des résultats existe t il ?\n if (self._mapBoxPanel && self._importPanel) {\n self.cleanMapBoxResults(e.element.gpEditorId);\n self._mapBoxPanel.style.display = \"none\";\n self._importPanel.style.display = \"\";\n }\n }\n }\n }, self);\n\n // mode \"draggable\"\n if (this.draggable) {\n _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_24__[\"default\"].dragElement(this._importPanel, this._importPanelHeader, map.getTargetElement());\n\n // panneau draggable pour les resultats ?\n _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_24__[\"default\"].dragElement(this._getCapPanel, this._getCapPanelHeader, map.getTargetElement());\n _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_24__[\"default\"].dragElement(this._mapBoxPanel, this._mapBoxPanelHeader, map.getTargetElement());\n }\n }\n\n // on appelle la méthode setMap originale d'OpenLayers\n Control.prototype.setMap.call(this, map);\n };\n\n /**\n * Returns true if widget is collapsed (minimized), false otherwise\n *\n * @returns {Boolean} collapsed - true if widget is collapsed\n */\n LayerImport.prototype.getCollapsed = function () {\n return this.collapsed;\n };\n\n /**\n * Collapse or display widget main container\n *\n * @param {Boolean} collapsed - True to collapse widget, False to display it\n */\n LayerImport.prototype.setCollapsed = function (collapsed) {\n if (collapsed === undefined) {\n logger.error(\"[ERROR] LayerImport:setCollapsed - missing collapsed parameter\");\n return;\n }\n if (collapsed && this.collapsed || !collapsed && !this.collapsed) {\n return;\n }\n if (collapsed) {\n document.getElementById(\"GPimportPanelClose-\" + this._uid).click();\n } else {\n document.getElementById(\"GPshowImport-\" + this._uid).click();\n }\n this.collapsed = collapsed;\n };\n\n /**\n * Returns content of a static import (KML, GPX or GeoJSON)\n *\n * @returns {String} contentStatic - content static\n */\n LayerImport.prototype.getStaticImportContent = function () {\n return this.contentStatic;\n };\n\n /**\n * Returns content of a service import (GetCapabilities)\n *\n * @returns {String} contentService - content service\n */\n LayerImport.prototype.getServiceImportContent = function () {\n return this.contentService;\n };\n\n /**\n * Returns layer name\n *\n * @returns {String} name - layer name\n */\n LayerImport.prototype.getName = function () {\n return this._name;\n };\n\n // ################################################################### //\n // ##################### init component ############################## //\n // ################################################################### //\n\n /**\n * Initialize LayerImport control (called by LayerImport constructor)\n *\n * @param {Object} options - constructor options\n * @private\n */\n LayerImport.prototype._initialize = function (options) {\n // ############################################################ //\n // ################### Options du composant ################### //\n\n // check input options format\n this._checkInputOptions(options);\n\n // set default options\n this.options = {\n collapsed: true,\n draggable: false,\n layerTypes: [\"KML\", \"GPX\", \"GeoJSON\", \"WMS\", \"WMTS\", \"MAPBOX\"],\n webServicesOptions: {},\n vectorStyleOptions: {\n KML: {\n extractStyles: true,\n showPointNames: true,\n defaultStyle: {}\n },\n GPX: {\n defaultStyle: {}\n },\n GeoJSON: {\n defaultStyle: {}\n },\n MapBox: {\n defaultStyle: {},\n editor: {}\n }\n }\n };\n\n // TODO gestion du proxy\n\n // set extractStyles parameter\n if (options.vectorStyleOptions && options.vectorStyleOptions.KML && options.vectorStyleOptions.KML.extractStyles) {\n this.options.vectorStyleOptions.KML.extractStyles = options.vectorStyleOptions.KML.extractStyles;\n } // TODO\n // set showPointNames parameter\n if (options.vectorStyleOptions && options.vectorStyleOptions.KML && options.vectorStyleOptions.KML.showPointNames) {\n this.options.vectorStyleOptions.KML.showPointNames = options.vectorStyleOptions.KML.showPointNames;\n }\n\n // set vector layers default styles (KML, GPX, GeoJSON, MapBox)\n if (options.vectorStyleOptions && options.vectorStyleOptions.KML && options.vectorStyleOptions.KML.defaultStyle) {\n // get from options if specified\n this.options.vectorStyleOptions.KML.defaultStyle = options.vectorStyleOptions.KML.defaultStyle;\n } else {\n // get from control default options otherwise\n this.options.vectorStyleOptions.KML.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Style\"]({\n image: LayerImport.DefaultStyles.image,\n stroke: LayerImport.DefaultStyles.stroke,\n fill: LayerImport.DefaultStyles.fill,\n text: LayerImport.DefaultStyles.text\n });\n }\n if (options.vectorStyleOptions && options.vectorStyleOptions.GPX && options.vectorStyleOptions.GPX.defaultStyle) {\n // get from options if specified\n this.options.vectorStyleOptions.GPX.defaultStyle = options.vectorStyleOptions.GPX.defaultStyle;\n } else {\n // get from control default options otherwise\n this.options.vectorStyleOptions.GPX.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Style\"]({\n image: LayerImport.DefaultStyles.image,\n stroke: LayerImport.DefaultStyles.stroke,\n fill: LayerImport.DefaultStyles.fill,\n text: LayerImport.DefaultStyles.text\n });\n }\n if (options.vectorStyleOptions && options.vectorStyleOptions.GeoJSON && options.vectorStyleOptions.GeoJSON.defaultStyle) {\n // get from options if specified\n this.options.vectorStyleOptions.GeoJSON.defaultStyle = options.vectorStyleOptions.GeoJSON.defaultStyle;\n } else {\n // get from control default options otherwise\n this.options.vectorStyleOptions.GeoJSON.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Style\"]({\n image: LayerImport.DefaultStyles.image,\n stroke: LayerImport.DefaultStyles.stroke,\n fill: LayerImport.DefaultStyles.fill,\n text: LayerImport.DefaultStyles.text\n });\n }\n // FIXME tester les styles par defaut sur une couche vecteur tuilé sans style !\n if (options.vectorStyleOptions && options.vectorStyleOptions.MapBox && options.vectorStyleOptions.MapBox.defaultStyle) {\n // get from options if specified\n this.options.vectorStyleOptions.MapBox.defaultStyle = options.vectorStyleOptions.MapBox.defaultStyle;\n } else {\n // get from control default options otherwise\n this.options.vectorStyleOptions.MapBox.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Style\"]({\n image: LayerImport.DefaultStyles.image,\n stroke: LayerImport.DefaultStyles.stroke,\n fill: LayerImport.DefaultStyles.fill,\n text: LayerImport.DefaultStyles.text\n });\n }\n if (options.vectorStyleOptions && options.vectorStyleOptions.MapBox && options.vectorStyleOptions.MapBox.editor) {\n // get from options if specified\n this.options.vectorStyleOptions.MapBox.editor = options.vectorStyleOptions.MapBox.editor;\n } else {\n this.options.vectorStyleOptions.MapBox.editor = {\n title: true,\n collapse: false,\n themes: false,\n layers: true,\n style: true,\n filter: false,\n legend: true,\n group: false\n };\n }\n if (options.vectorStyleOptions && options.vectorStyleOptions.MapBox && options.vectorStyleOptions.MapBox.hasOwnProperty(\"display\")) {\n this.options.vectorStyleOptions.MapBox.display = options.vectorStyleOptions.MapBox.display;\n } else {\n this.options.vectorStyleOptions.MapBox.display = true;\n }\n\n // merge layer types\n if (Array.isArray(options.layerTypes)) {\n var layerTypes = [];\n for (var i = 0; i < options.layerTypes.length; i++) {\n layerTypes.push(options.layerTypes[i]);\n }\n this.options.layerTypes = layerTypes;\n }\n\n // merge with user options\n _Common_Utils__WEBPACK_IMPORTED_MODULE_26__[\"default\"].mergeParams(this.options, options);\n\n /** {Boolean} specify if LayerImport control is collapsed (true) or not (false) */\n this.collapsed = this.options.collapsed;\n\n /** {Boolean} specify if LayerImport control is draggable (true) or not (false) */\n this.draggable = this.options.draggable;\n\n // identifiant du contrôle : utile pour suffixer les identifiants CSS (pour gérer le cas où il y en a plusieurs dans la même page)\n this._uid = _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_28__[\"default\"].generate();\n\n // si une requête est en cours ou non\n this._waiting = false;\n // timer pour cacher la patience après un certain temps\n this._timer = null;\n\n // initialisation des types d'import\n this._initImportTypes();\n // initialisation des styles par défaut\n this._initDefaultStyles();\n\n // ################################################################## //\n // ################### Elements principaux du DOM ################### //\n\n // containers principaux (FIXME : tous utiles ?)\n this._showImportInput = null;\n this._importPanel = null;\n this._importPanelHeader = null;\n this._formContainer = null;\n this._staticLocalImportInput = null;\n this._staticUrlImportInput = null;\n this._serviceUrlImportInput = null;\n this._getCapPanel = null;\n this._getCapPanelHeader = null;\n this._getCapResultsListContainer = null;\n this._mapBoxPanel = null;\n this._mapBoxPanelHeader = null;\n this._mapBoxResultsListContainer = null;\n this._waitingContainer = null;\n this._loadingContainer = null;\n\n // ################################################################## //\n // ################ Interrogation du GetCapabilities ################ //\n\n this._getCapRequestUrl = null;\n this._getCapResponseWMS = null;\n this._getCapResponseWMSLayers = [];\n this._getCapResponseWMTS = null;\n this._getCapResponseWMTSLayers = [];\n\n // ################################################################## //\n // ########################### MapBox ############################### //\n this._hasMapBoxResults = false;\n\n // ################################################################## //\n // ########################### file or url ########################## //\n this.contentStatic = null;\n this._url = null;\n this._file = null;\n this._name = null;\n };\n\n /**\n * this method is called by this.initialize()\n * and makes sure input options are correctly formated\n *\n * @param {Object} options - control input options\n * @private\n */\n LayerImport.prototype._checkInputOptions = function (options) {\n // on vérifie le tableau des types\n if (options.layerTypes) {\n var layerTypes = options.layerTypes;\n // on vérifie que la liste des types est bien un tableau\n if (!Array.isArray(layerTypes)) {\n logger.warn(\"[ol.control.LayerImport] 'options.layerTypes' parameter should be an array. Set default values [\\\"KML\\\", \\\"GPX\\\", \\\"GeoJSON\\\", \\\"WMS\\\", \\\"WMTS\\\"]\");\n options.layerTypes = [\"KML\", \"GPX\", \"GeoJSON\", \"WMS\", \"WMTS\", \"MAPBOX\"];\n } else {\n var typesList = [\"KML\", \"GPX\", \"GEOJSON\", \"WMS\", \"WMTS\", \"WFS\", \"MAPBOX\"];\n var wrongTypesIndexes = [];\n for (var i = 0; i < layerTypes.length; i++) {\n if (typeof layerTypes[i] !== \"string\") {\n // si l'élément du tableau n'est pas une chaine de caractères, on stocke l'index pour le retirer du tableau\n wrongTypesIndexes.push(i);\n logger.warn(\"[ol.control.LayerImport] 'options.layerTypes' elements should be of type string (\" + layerTypes[i] + \")\");\n } else {\n // on passe en majuscules pour comparer\n layerTypes[i] = layerTypes[i].toUpperCase();\n if (typesList.indexOf(layerTypes[i]) === -1) {\n // si le type n'est pas référencé, on stocke son index pour le retirer du tableau (après avoir terminé de parcourir le tableau)\n wrongTypesIndexes.push(i);\n logger.log(\"[ol.control.LayerImport] options.layerTypes : \" + layerTypes[i] + \" is not a supported type\");\n }\n // cas spécial du GeoJSON qu'on ne laisse pas en majuscules\n if (layerTypes[i] === \"GEOJSON\") {\n layerTypes[i] = \"GeoJSON\";\n }\n if (layerTypes[i] === \"MAPBOX\") {\n layerTypes[i] = \"MAPBOX\";\n }\n }\n }\n // on retire les types non référencés qu'on a pu rencontrer\n if (wrongTypesIndexes.length !== 0) {\n for (var j = wrongTypesIndexes.length - 1; j >= 0; j--) {\n layerTypes.splice(wrongTypesIndexes[j], 1);\n }\n }\n }\n }\n };\n\n /**\n * this method is called by this.initialize()\n * and initializes default styles for vector layers (KML/GPX/GeoJSON)\n *\n * @private\n */\n LayerImport.prototype._initDefaultStyles = function () {\n var kmlDefaultStyles = this.options.vectorStyleOptions.KML.defaultStyle;\n this._defaultKMLStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Style\"]({\n image: kmlDefaultStyles.image,\n stroke: kmlDefaultStyles.stroke,\n fill: kmlDefaultStyles.fill,\n text: kmlDefaultStyles.text\n });\n var gpxDefaultStyles = this.options.vectorStyleOptions.GPX.defaultStyle;\n this._defaultGPXStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Style\"]({\n image: gpxDefaultStyles.image,\n stroke: gpxDefaultStyles.stroke,\n fill: gpxDefaultStyles.fill,\n text: gpxDefaultStyles.text\n });\n var geoJSONDefaultStyles = this.options.vectorStyleOptions.GeoJSON.defaultStyle;\n this._defaultGeoJSONStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Style\"]({\n image: geoJSONDefaultStyles.image,\n stroke: geoJSONDefaultStyles.stroke,\n fill: geoJSONDefaultStyles.fill,\n text: geoJSONDefaultStyles.text\n });\n var MapBoxDefaultStyles = this.options.vectorStyleOptions.MapBox.defaultStyle;\n this._defaultMapBoxStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__[\"Style\"]({\n image: MapBoxDefaultStyles.image,\n stroke: MapBoxDefaultStyles.stroke,\n fill: MapBoxDefaultStyles.fill,\n text: MapBoxDefaultStyles.text\n });\n };\n\n /**\n * this method is called by this.initialize()\n * and initializes import types parameter\n *\n * @private\n */\n LayerImport.prototype._initImportTypes = function () {\n this._currentImportType = this.options.layerTypes[0] || \"KML\";\n if (this._currentImportType === \"KML\" || this._currentImportType === \"GPX\" || this._currentImportType === \"GeoJSON\" || this._currentImportType === \"MAPBOX\") {\n this._isCurrentImportTypeStatic = true;\n } else if (this._currentImportType === \"WMS\" || this._currentImportType === \"WMTS\" || this._currentImportType === \"WFS\") {\n this._isCurrentImportTypeStatic = false;\n }\n this._currentStaticImportType = \"local\";\n };\n\n /**\n * Create control main container (DOM initialize)\n *\n * @private\n * @returns {DOMElement} container - control main container\n */\n LayerImport.prototype._initContainer = function () {\n // create main container\n var container = this._createMainContainerElement();\n\n // create show Import element\n var inputShow = this._showImportInput = this._createShowImportElement();\n container.appendChild(inputShow);\n\n // mode \"collapsed\"\n if (!this.collapsed) {\n inputShow.checked = true;\n }\n\n // create Import picto\n var picto = this._createShowImportPictoElement();\n container.appendChild(picto);\n\n // panel\n var importPanel = this._importPanel = this._createImportPanelElement();\n\n // header\n var panelHeader = this._importPanelHeader = this._createImportPanelHeaderElement();\n importPanel.appendChild(panelHeader);\n\n // form : initialisation du formulaire d'import des couches (types d'import et saisie de l'url / du fichier)\n var importForm = this._formContainer = this._initInputFormElement();\n importPanel.appendChild(importForm);\n container.appendChild(importPanel);\n\n // results (dans le panel)\n var getCapPanel = this._getCapPanel = this._createImportGetCapPanelElement();\n var getCapPanelHeader = this._getCapPanelHeader = this._createImportGetCapPanelHeaderElement();\n getCapPanel.appendChild(getCapPanelHeader);\n var importGetCapResultsList = this._getCapResultsListContainer = this._createImportGetCapResultsContainer();\n getCapPanel.appendChild(importGetCapResultsList);\n container.appendChild(getCapPanel);\n\n // mapbox panel results\n var mapBoxPanel = this._mapBoxPanel = this._createImportMapBoxPanelElement();\n var mapBoxPanelHeader = this._mapBoxPanelHeader = this._createImportMapBoxPanelHeaderElement();\n mapBoxPanel.appendChild(mapBoxPanelHeader);\n var importMapBoxResultsList = this._mapBoxResultsListContainer = this._createImportMapBoxResultsContainer();\n mapBoxPanel.appendChild(importMapBoxResultsList);\n\n // loading element mapbox\n var loading = this._loadingContainer = this._createLoadingElement();\n mapBoxPanel.appendChild(loading);\n container.appendChild(mapBoxPanel);\n\n // waiting\n var waiting = this._waitingContainer = this._createImportWaitingElement();\n container.appendChild(waiting);\n return container;\n };\n\n /**\n * Create control main container (DOM initialize)\n *\n * @private\n * @returns {DOMElement} importForm - form main container\n */\n LayerImport.prototype._initInputFormElement = function () {\n // form main container\n var importForm = this._createImportPanelFormElement();\n\n // Format choice\n var importTypeChoiceDiv = this._createImportTypeLineElement(this.options.layerTypes);\n importForm.appendChild(importTypeChoiceDiv);\n\n // params for KML/GPX/GeoJSON\n\n var importStaticParamsContainer = this._createImportStaticParamsContainer(this.options.layerTypes[0]);\n // static file name\n var staticNameLabel = this._createStaticNameLabel();\n importStaticParamsContainer.appendChild(staticNameLabel);\n // static import choice (local / url)\n var staticImportChoice = this._createStaticModeChoiceDiv();\n // TODO : passer un paramètre \"checked\" ??\n var staticLocalImportChoice = this._createStaticLocalChoiceDiv();\n staticImportChoice.appendChild(staticLocalImportChoice);\n var staticUrlImportChoice = this._createStaticUrlChoiceDiv();\n staticImportChoice.appendChild(staticUrlImportChoice);\n importStaticParamsContainer.appendChild(staticImportChoice);\n\n // div for local file import\n var staticLocalInputDiv = this._createStaticLocalInputDiv();\n // label\n staticLocalInputDiv.appendChild(this._createStaticLocalInputLabel());\n // file input\n this._staticLocalImportInput = this._createStaticLocalInput();\n staticLocalInputDiv.appendChild(this._staticLocalImportInput);\n // append div to params container\n importStaticParamsContainer.appendChild(staticLocalInputDiv);\n\n // div for url input (info: séparation pour récupérer l'élément input)\n var staticUrlInputDiv = this._createStaticUrlInputDiv();\n // label\n staticUrlInputDiv.appendChild(this._createStaticUrlInputLabel());\n // url input\n this._staticUrlImportInput = this._createStaticUrlInput();\n staticUrlInputDiv.appendChild(this._staticUrlImportInput);\n // append div to params container\n importStaticParamsContainer.appendChild(staticUrlInputDiv);\n\n // append static params container to form container\n importForm.appendChild(importStaticParamsContainer);\n\n // params for WMS/WMTS/WFS\n\n var importServiceParamsContainer = this._createServiceParamsContainer(this.options.layerTypes[0]);\n // div for service url\n var importServiceUrlDiv = this._createServiceUrlDiv();\n // label\n importServiceUrlDiv.appendChild(this._createServiceUrlInputLabel());\n // input\n this._serviceUrlImportInput = this._createServiceUrlInput();\n importServiceUrlDiv.appendChild(this._serviceUrlImportInput);\n // append div to params container\n importServiceParamsContainer.appendChild(importServiceUrlDiv);\n // append service params container to form container\n importForm.appendChild(importServiceParamsContainer);\n\n // submit (bouton \"Importer\")\n var submit = this._createImportSubmitFormElement();\n importForm.appendChild(submit);\n return importForm;\n };\n\n // ################################################################### //\n // ######################### DOM events ############################## //\n // ################################################################### //\n\n /**\n * this method is called by event 'click' on 'GPshowImportPicto' picto\n * (cf. LayerImportDOM._createShowImportPictoElement),\n * and dispatch event change:collapsed (for tools listening this property)\n *\n * @private\n */\n LayerImport.prototype._onShowImportClick = function () {\n var map = this.getMap();\n // on supprime toutes les interactions\n _Utils_Interactions__WEBPACK_IMPORTED_MODULE_25__[\"default\"].unset(map);\n // on affiche les resultats d'une couche MapBox\n if (this._hasMapBoxResults) {\n this._mapBoxPanel.style.display = \"block\";\n }\n // info : on génère nous même l'evenement OpenLayers de changement de propriété\n // (utiliser ol.control.LayerImport.on(\"change:collapsed\", function ) pour s'abonner à cet évènement)\n this.collapsed = this._showImportInput.checked;\n this.dispatchEvent(\"change:collapsed\");\n };\n\n /**\n * this method is called by event 'change' on 'GPimportType' tag form\n * (cf. LayerImportDOM._createImportTypeLineElement),\n * and change current import type\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onImportTypeChange = function (e) {\n this._currentImportType = e.target.value;\n if (this._currentImportType === \"KML\" || this._currentImportType === \"GPX\" || this._currentImportType === \"GeoJSON\" || this._currentImportType === \"MAPBOX\") {\n this._isCurrentImportTypeStatic = true;\n } else if (this._currentImportType === \"WMS\" || this._currentImportType === \"WMTS\" || this._currentImportType === \"WFS\") {\n this._isCurrentImportTypeStatic = false;\n }\n };\n\n /**\n * this method is called by event 'change' on 'GPimportType' tag form\n * (cf. LayerImportDOM._createImportTypeLineElement),\n * and change current import type\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onStaticImportTypeChange = function (e) {\n this._currentStaticImportType = e.target.value;\n };\n\n /**\n * this method is called by event 'click' on 'GPimportGetCapPanelClose' tag form\n * (cf. LayerImportDOM._createImportGetCapPanelHeaderElement),\n * and reset getCapabilities information\n *\n * @private\n */\n LayerImport.prototype._onGetCapPanelClose = function () {\n // this._clearGetCapParams();\n if (this._currentImportType === \"WMS\" || this._currentImportType === \"WMTS\" || this._currentImportType === \"WFS\") {\n this.cleanGetCapResultsList();\n }\n };\n\n /**\n * this method is called by event 'click' on 'GPimportMapBoxPanelClose' tag form\n * (cf. LayerImportDOM._createImportMapBoxPanelHeaderElement),\n * and reset mapbox information\n *\n * @private\n */\n LayerImport.prototype._onMapBoxPanelClose = function () {\n this.cleanMapBoxResultsList();\n this._loadingContainer.className = \"\";\n };\n\n /**\n * this method is called by event 'click' on 'GPimportMapBoxPanelReturnPicto' tag form\n * (cf. LayerImportDOM._createImportMapBoxPanelHeaderElement),\n * and return to information\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onMapBoxReturnPictoClick = function (e) {\n // on bascule sur l'icone d'ouverture du composant\n this._mapBoxPanel.style.display = \"none\";\n this._showImportInput.checked = false;\n this._loadingContainer.className = \"\";\n };\n\n // ################################################################### //\n // ######################## Submit form ############################## //\n // ################################################################### //\n\n /**\n * this method is called by event 'submit' on 'GPimportForm' tag form\n * (cf. LayerImportDOM._createImportPanelFormElement),\n * and import static layer or call getCap service (according to import type)\n *\n * @private\n */\n LayerImport.prototype._onImportSubmit = function () {\n logger.log(\"import d'une couche de type : \" + this._currentImportType);\n\n // reinitialisation du contenu d'un import de type\n // - static (KML ou GPX ou GeoJSON)\n this.contentStatic = null;\n // - service (WMS, ...)\n this.contentService = null;\n if (this._isCurrentImportTypeStatic) {\n this._importStaticLayer();\n } else {\n this._importServiceLayers();\n }\n };\n\n // ################################################################### //\n // ############## Import KML/GPX/GeoJSON/MapBox layers ############### //\n // ################################################################### //\n\n /**\n * this method is called by this_onImportSubmit method\n * and import static layer (KML/GPX/GeoJSON) from url or file\n *\n * @private\n */\n LayerImport.prototype._importStaticLayer = function () {\n var layerName;\n var staticImportNameInput = document.getElementById(this._addUID(\"GPimportName\"));\n if (staticImportNameInput) {\n layerName = staticImportNameInput.value || \"\";\n logger.log(\"import layer name : \" + layerName);\n }\n if (this._currentStaticImportType === \"local\") {\n logger.log(\"import static layer from local file\");\n this._importStaticLayerFromLocalFile(layerName);\n } else if (this._currentStaticImportType === \"url\") {\n logger.log(\"import static layer from url\");\n this._importStaticLayerFromUrl(layerName);\n }\n };\n\n /**\n * this method is called by _importStaticLayer method\n * and import static layer (KML/GPX/GeoJSON) from url\n *\n * @param {String} layerName - imported layer name\n * @private\n */\n LayerImport.prototype._importStaticLayerFromUrl = function (layerName) {\n // 1. Récupération de l'url\n var url = this._staticUrlImportInput.value;\n logger.log(\"url : \", url);\n if (url.length === 0) {\n logger.error(\"[ol.control.LayerImport] url parameter is mandatory\");\n return;\n }\n // on supprime les éventuels espaces avant ou après\n if (url.trim) {\n url = url.trim();\n }\n\n // sauvegarde\n this._url = url;\n\n // si le nom n'est pas renseigné, on extrait le nom du fichier\n if (!layerName) {\n layerName = this._url.substring(this._url.lastIndexOf(\"/\") + 1, this._url.lastIndexOf(\".\"));\n }\n\n // sauvegarde\n this._name = layerName;\n\n // 2. récupération proxy\n if (this.options.webServicesOptions && this.options.webServicesOptions.proxyUrl) {\n url = _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_29__[\"default\"].proxifyUrl(url, this.options.webServicesOptions);\n }\n\n // FIXME pb de surcharge en mode UMD !? ça ne marche pas...\n // this._hideWaitingContainer();\n // this._addFeaturesFromImportStaticLayerUrl(url, layerName);\n\n var context = this;\n geoportal_access_lib__WEBPACK_IMPORTED_MODULE_21__[\"default\"].Protocols.XHR.call({\n url: url,\n method: \"GET\",\n timeOut: 15000,\n // on success callback : display results in container\n onResponse: function onResponse(response) {\n context._hideWaitingContainer();\n context._addFeaturesFromImportStaticLayer(response, layerName);\n },\n // on error callback : log error\n onFailure: function onFailure(error) {\n // en cas d'erreur, on revient au panel initial et on cache la patience\n context._hideWaitingContainer();\n logger.error(\"[ol.control.LayerImport] KML/GPX/GeoJSON/MapBox request failed : \", error);\n }\n });\n };\n\n /**\n * this method is called by _importStaticLayer method\n * and import static layer (KML/GPX/GeoJSON) from local file\n *\n * @param {String} layerName - imported layer name\n * @private\n */\n LayerImport.prototype._importStaticLayerFromLocalFile = function (layerName) {\n var file = this._staticLocalImportInput.files[0];\n if (!file) {\n logger.warn(\"[ol.control.LayerImport] missing file\");\n return;\n }\n\n // sauvegarde\n this._file = file;\n\n // si le nom n'est pas renseigné, on extrait le nom du fichier\n if (!layerName) {\n layerName = this._file.name.substring(this._file.name.lastIndexOf(\"/\") + 1, this._file.name.lastIndexOf(\".\"));\n }\n\n // sauvegarde\n this._name = layerName;\n\n // Création d'un objet FileReader qui permet de lire le contenu du fichier chargé\n var fReader = new FileReader();\n\n // Définition des fonctions de callbacks associées au reader,\n // notamment la fonction onload qui affichera les entités chargées à la carte\n var context = this;\n // on readAsText error\n fReader.onerror = function (e) {\n // en cas d'erreur, on revient au panel initial et on cache la patience\n context._hideWaitingContainer();\n logger.error(\"error fileReader : \", e);\n };\n /** on readAsText progress */\n fReader.onprogress = function () {\n logger.log(\"onprogress\");\n };\n /** on load start */\n fReader.onloadstart = function () {\n // affichage d'une patience le temps du chargement\n context._displayWaitingContainer();\n logger.log(\"onloadstart\");\n };\n /** on readAsText abort */\n fReader.onabort = function () {\n // en cas d'erreur, on revient au panel initial et on cache la patience\n context._hideWaitingContainer();\n logger.log(\"onabort\");\n };\n // on readAsText loadend\n fReader.onloadend = function (e) {\n // fReader = null ?\n // en cas d'erreur, on revient au panel initial et on cache la patience\n // context._hideWaitingContainer();\n // TODO : replier le formulaire ?\n logger.log(\"onloadend : \", e);\n };\n // on readAsText load\n fReader.onload = function (e) {\n logger.log(\"fileReader onload - file content : \", e.target.result);\n\n // on cache la patience\n context._hideWaitingContainer();\n context._addFeaturesFromImportStaticLayer(e.target.result, layerName);\n };\n\n // Lecture du fichier chargé à l'aide de fileReader\n fReader.readAsText(file);\n };\n\n /**\n * this method is called by _importStaticLayerFom* method\n * and add features to the map\n *\n * @param {String} fileContent - content file\n * @param {String} layerName - imported layer name\n * @private\n */\n LayerImport.prototype._addFeaturesFromImportStaticLayer = function (fileContent, layerName) {\n // récupération du contenu du fichier\n var map = this.getMap();\n if (!map || !fileContent) {\n return;\n }\n var vectorLayer = null;\n var vectorSource = null;\n var vectorFormat = null;\n var vectorStyle = null;\n\n // sauvegarde du content KML/GPX/GeoJSON/MapBox\n this.contentStatic = fileContent;\n if (this._currentImportType === \"MAPBOX\") {\n // INFO\n // on ne nettoie pas délibérément la liste de résultats de type MapBox\n // car on souhaite pouvoir interagir sur les couches (editeur).\n // du coup, à chaque import, on empile les éditeurs.\n this._hasMapBoxResults = true;\n\n // contexte\n var self = this;\n\n // style mapbox\n var _glStyles = JSON.parse(fileContent);\n\n // liste des sources\n var _glSources = _glStyles.sources;\n\n // FIXME a t on du multi-sources ?\n // mais comment doit on les traiter ?\n // EXPERIMENTAL !\n var _multiSources = Object.keys(_glSources).length > 1 ? 1 : 0;\n for (var _glSourceId in _glSources) {\n if (_glSources.hasOwnProperty(_glSourceId)) {\n var _title = \"\";\n var _description = \"\";\n var _quicklookUrl = null;\n var _legends = null;\n var _metadata = null;\n var _originators = null;\n\n // lecture des informations dans le style\n // ex. metadata : {\n // geoportail:[title | description | quicklookUrl | legends | originators | metadata]\n // }\n if (_glStyles.metadata) {\n for (var ns in _glStyles.metadata) {\n if (_glStyles.metadata.hasOwnProperty(ns)) {\n var _keys = ns.split(\":\");\n if (_keys[0] === \"geoportail\") {\n var key = _keys[1];\n if (key === \"title\") {\n _title = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"description\") {\n _description = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"quicklookUrl\") {\n _quicklookUrl = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"legends\") {\n _legends = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"metadata\") {\n _metadata = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"originators\") {\n _originators = _glStyles.metadata[ns];\n continue;\n }\n }\n }\n }\n }\n\n // titre par defaut\n if (!_title) {\n _title = \"Couche MapBox\";\n }\n // description par defaut\n if (!_description) {\n _description = \"Couche MapBox\";\n }\n // cas des multisources\n _title = _multiSources ? _title + \"(\" + _glSourceId + \")\" : _title;\n\n // source mapbox\n var _glSource = _glSources[_glSourceId];\n\n // construction de la couche en fonction du type\n var _glType = _glSource.type;\n if (_glType === \"vector\") {\n // url du tilejson ou flux mapbox\n var _glUrl = _glSource.url;\n // url du service tuilé\n var _glTiles = _glSource.tiles;\n // sprites\n var _glSprite = _glStyles.sprite;\n\n // FIXME si on a un import par fichier local (this._file),\n // - comment passe t on la clef / le token ?\n // - comment remplacer un flux mapbox sur une url de service tuilé avec un import local ?\n if (_glUrl && _glUrl.indexOf(\"mapbox://\") === 0) {\n var _urlService = this._url; // FIXME si fichier local !?\n if (_urlService) {\n _glTiles = [\"a\", \"b\", \"c\", \"d\"].map(function (host) {\n var path = _glUrl.replace(\"mapbox://\", \"\");\n var accessToken = _urlService.split(\"?\")[1];\n return \"https://\" + host + \".tiles.mapbox.com/v4/\" + path + \"/{z}/{x}/{y}.vector.pbf?\" + accessToken;\n });\n // conversion des sprites sur un autre scheme que \"mapbox://\"\n if (_glSprite.indexOf(\"mapbox://\") === 0) {\n var s = _urlService.split(\"?\"); // FIXME si fichier local !?\n _glStyles.sprite = s[0] + \"/sprite\" + \"?\" + s[1];\n }\n } else {\n logger.warn(\"Not yet implemented, can't use the local import scheme with a 'mapbox://' in the file.!\");\n }\n }\n if (_glTiles) {\n // service tuilé et/ou mapbox\n vectorFormat = new ol_format_MVT__WEBPACK_IMPORTED_MODULE_8___default.a({\n featureClass: ol_Feature__WEBPACK_IMPORTED_MODULE_4___default.a\n });\n vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14___default.a({\n attributions: _glSource.attribution,\n format: vectorFormat,\n // INFO\n // surcharge : grille en 256 sur du vecteur tuilé\n tileGrid: Object(ol_tilegrid__WEBPACK_IMPORTED_MODULE_6__[\"createXYZ\"])({\n // TODO scheme tms ?\n extent: _glSource.bounds,\n // [minx, miny, maxx, maxy]\n maxZoom: _glSource.maxzoom || 22,\n minZoom: _glSource.minzoom || 1,\n tileSize: _glSource.tileSize || 256\n }),\n urls: _glTiles\n });\n vectorSource._title = _title;\n vectorSource._description = _description;\n vectorSource._quicklookUrl = _quicklookUrl;\n vectorSource._metadata = _metadata;\n vectorSource._legends = _legends;\n vectorSource._originators = _originators;\n // waiting\n vectorSource.on(\"tileloadstart\", function (e) {\n self._loadingContainer.className = \"GPmapLoadingVisible\";\n });\n vectorSource.on(\"tileloadend\", function (e) {\n self._loadingContainer.className = \"\";\n });\n vectorSource.on(\"tileloaderror\", function (e) {\n self._loadingContainer.className = \"\";\n });\n vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11___default.a({\n source: vectorSource,\n visible: false,\n // zIndex: 0, // FIXME gerer l'ordre sur des multisources ?\n declutter: true // TODO utile ?\n });\n vectorLayer.id = _glSourceId;\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n } else if (_glUrl) {\n // service avec un tilejson\n vectorFormat = new ol_format_MVT__WEBPACK_IMPORTED_MODULE_8___default.a({\n featureClass: ol_Feature__WEBPACK_IMPORTED_MODULE_4___default.a\n });\n vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11___default.a({\n visible: false,\n // zIndex : 0\n declutter: true\n });\n vectorLayer.id = _glSourceId;\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n var vectorTileJson = new ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_18___default.a({\n url: _glUrl\n });\n // lecture du tilejson avec extension IGN\n // les extensions sont enregistrées\n // dans les propriétés de la couche : layer.set(mapbox-extension)\n // pour une utilisation ulterieur (ex. editeur)\n var _key = vectorTileJson.on(\"change\", function () {\n if (vectorTileJson.getState() === \"ready\") {\n var _tileJSONDoc = vectorTileJson.getTileJSON();\n var tiles = Array.isArray(_tileJSONDoc.tiles) ? _tileJSONDoc.tiles : [_tileJSONDoc.tiles];\n for (var i = 0; i < tiles.length; i++) {\n var tile = tiles[i];\n if (tile.indexOf(\"http\") !== 0) {\n tiles[i] = _glUrl + tile;\n }\n }\n vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14___default.a({\n attributions: vectorTileJson.getAttributions() || _tileJSONDoc.attribution,\n format: vectorFormat,\n // INFO\n // surcharge : grille en 256 sur du vecteur tuilé\n tileGrid: Object(ol_tilegrid__WEBPACK_IMPORTED_MODULE_6__[\"createXYZ\"])({\n // TODO scheme tms ?\n extent: _glSource.bounds,\n // [minx, miny, maxx, maxy]\n maxZoom: _glSource.maxzoom || 22,\n minZoom: _glSource.minzoom || 1,\n tileSize: _glSource.tileSize || 256\n }),\n urls: tiles\n });\n vectorSource._title = _title;\n vectorSource._description = _description;\n vectorSource._quicklookUrl = _quicklookUrl;\n vectorSource._metadata = _metadata;\n vectorSource._legends = _legends;\n vectorSource._originators = _originators;\n // waiting\n vectorSource.on(\"tileloadstart\", function (e) {\n self._loadingContainer.className = \"GPmapLoadingVisible\";\n });\n vectorSource.on(\"tileloadend\", function (e) {\n self._loadingContainer.className = \"\";\n });\n vectorLayer.setSource(vectorSource);\n vectorLayer.set(\"mapbox-extension\", _tileJSONDoc[\"vector_layers\"]);\n Object(ol_Observable__WEBPACK_IMPORTED_MODULE_2__[\"unByKey\"])(_key);\n }\n });\n }\n } else if (_glType === \"geojson\") {\n // FIXME\n // - cas avec un objet de type features ?\n // - cas avec une url relative ?\n var _glData = _glSource.data;\n vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__[\"default\"]();\n vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14___default.a({\n attributions: _glSource.attribution,\n format: vectorFormat,\n url: _glData\n });\n vectorSource._title = _title;\n vectorSource._description = _description;\n vectorSource._quicklookUrl = _quicklookUrl;\n vectorSource._metadata = _metadata;\n vectorSource._legends = _legends;\n vectorSource._originators = _originators;\n vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11___default.a({\n source: vectorSource,\n visible: false,\n // zIndex: 0, // FIXME gerer l'ordre sur des multisources ?\n declutter: true // TODO utile ?\n });\n vectorLayer.id = _glSourceId;\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n } else {\n logger.warn(\"Type MapBox format unknown !\");\n return;\n }\n\n // clone\n var _glStyle = JSON.parse(JSON.stringify(_glStyles));\n // cas du multi source\n if (_multiSources) {\n // on supprime les layers inutiles\n var _glLayers = _glStyle.layers;\n for (var ii = 0; ii < _glLayers.length; ii++) {\n var _glLayer = _glLayers[ii];\n if (_glLayer.source !== _glSourceId) {\n _glLayers.splice(ii, 1);\n continue;\n }\n }\n // on supprime les sources inutiles\n for (var keySource in _glStyle.sources) {\n if (_glStyle.sources.hasOwnProperty(keySource)) {\n if (keySource !== _glSourceId) {\n delete _glStyle.sources[keySource];\n }\n }\n }\n }\n\n // parametre à transmettre à la fonction auto-invoquée\n var params = {\n id: _glSourceId,\n styles: _glStyle,\n layer: vectorLayer,\n options: {\n title: layerName || _title,\n description: _description,\n quicklookUrl: _quicklookUrl,\n metadata: _metadata,\n legends: _legends,\n originators: _originators\n }\n };\n // fonction auto-invoquée\n (function (p) {\n // TODO ajouter le style de type background !\n // fonction de style de la couche\n var setStyle = function setStyle() {\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__[\"applyStyle\"])(p.layer, p.styles, p.id).then(function () {\n var visibility = true;\n p.layer.setVisible(visibility);\n var opacity = 1;\n p.layer.setOpacity(opacity);\n }).then(function () {\n // gestion du centre sur la carte si center renseigné !\n var projCode = map.getView().getProjection().getCode();\n if (map.getView() && p.styles.center && p.styles.center.length) {\n map.getView().setCenter(Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"transform\"])(p.styles.center, \"EPSG:4326\", projCode));\n }\n\n // gestion du zoom sur la carte si zoom renseigné !\n if (map.getView() && (p.styles.zoom || p.styles.zoom === 0)) {\n map.getView().setZoom(p.styles.zoom);\n }\n\n // zoom sur l'étendue des entités récupérées (si possible)\n var source = p.layer.getSource();\n if (map.getView() && map.getSize() && source.getExtent) {\n var sourceExtent = source.getExtent();\n if (sourceExtent && sourceExtent[0] !== Infinity) {\n map.getView().fit(source.getExtent(), map.getSize());\n }\n }\n }).then(function () {\n // on cache le panneau des imports\n self._importPanel.style.display = \"none\";\n\n // editeur de styles\n var editor = new _Editor__WEBPACK_IMPORTED_MODULE_22__[\"default\"]({\n target: self._mapBoxResultsListContainer,\n style: JSON.parse(JSON.stringify(p.styles)),\n // clone\n scope: this,\n events: {\n \"editor:onloaded\": self._onLoadedMapBox,\n // utile ?\n \"editor:layer:onclickvisibility\": self._onChangeVisibilitySourceMapBox,\n \"editor:style:scale:onchangemin\": self._onChangeScaleMinSourceMapBox,\n \"editor:style:scale:onchangemax\": self._onChangeScaleMaxSourceMapBox,\n \"editor:legend:onchangevalue\": self._onChangeLegendValueSourceMapBox,\n \"editor:legend:onclickedition\": self._onDisplayLayerSourceMapBox\n },\n tools: self.options.vectorStyleOptions.MapBox.editor\n });\n editor.setContext(\"map\", map);\n editor.setContext(\"layer\", p.layer);\n // creation de l'editeur\n return editor.createElement().then(function () {\n // exception...\n if (editor.getLayers().length === 0) {\n throw new Error(\"Il n'existe pas de styles pour la source demandée !?\");\n }\n }).then(function () {\n // affichage du panneau des couches accessibles à l'edition\n if (self.options.vectorStyleOptions.MapBox.display) {\n self._mapBoxPanel.style.display = \"block\";\n }\n }).then(function () {\n // hack pour modifier le titre de la couche de fond\n var elements = self._mapBoxResultsListContainer.getElementsByClassName(\"GPEditorMapBoxLayerTitleLabel\");\n for (var index = 0; index < elements.length; index++) {\n var element = elements[index];\n if (element.textContent === \"bckgrd\") {\n element.textContent = \"Couleur de remplissage\";\n }\n }\n }).then(function () {\n // association entre le layer et l'editeur via l'id\n p.layer.set(\"mapbox-editor\", editor.getID());\n // envoi d'un evenement\n // un peu en décalé pour laisser le temps au DOM de faire le job...\n setTimeout(function () {\n map.dispatchEvent({\n id: editor.getID(),\n type: \"editor:loaded\",\n style: p.styles,\n layer: p.layer\n });\n }, 100);\n })[\"catch\"](function (e) {\n // on propage l'exception\n throw e;\n });\n }).then(function () {\n // envoi d'un evenement !\n map.dispatchEvent({\n id: p.id,\n type: \"render:success\",\n style: p.styles\n });\n })[\"catch\"](function (e) {\n logger.error(e);\n // envoi d'un evenement !\n map.dispatchEvent({\n id: p.id,\n type: \"render:failure\",\n error: e\n });\n });\n };\n\n // etat des layers en cours\n logger.warn(p.layer);\n\n // ajout des styles dans la carte pour une utilisation\n // eventuelle (ex. editeur)\n // > map.set(\"mapbox-styles\")\n var styles = map.get(\"mapbox-styles\") || {};\n var id = p.id; // FIXME : construction d'un id unique\n styles[id] = p.styles;\n map.set(\"mapbox-styles\", styles);\n\n // ajout des differents styles de la couche\n // pour une utilisation eventuelle (ex. editeur)\n // > layer.set(\"mapbox-styles\")\n p.layer.set(\"mapbox-styles\", p.styles);\n\n // ajout du layer sur la carte\n map.addLayer(p.layer);\n\n // application du style\n if (p.layer.getSource()) {\n setStyle();\n } else {\n p.layer.once(\"change:source\", setStyle);\n }\n\n // maj du gestionnaire de couche\n map.getControls().forEach(function (control) {\n if (control instanceof _LayerSwitcher__WEBPACK_IMPORTED_MODULE_34__[\"default\"]) {\n control.addLayer(p.layer, p.options);\n }\n });\n })(params);\n }\n }\n\n // TODO style par defaut au cas où l'application du style échoue !\n // TODO au niveau de la couche : minResolution et maxResolution\n // FIXME bug avec le geojson, très bizarre !?\n // Si on desactive l'editeur, OK\n // Sinon NOK !?\n } else {\n if (this._currentImportType === \"KML\") {\n // lecture du fichier KML : création d'un format ol.format.KML, qui possède une méthode readFeatures (et readProjection)\n vectorStyle = this.options.vectorStyleOptions.KML.defaultStyle;\n vectorFormat = new _Formats_KML__WEBPACK_IMPORTED_MODULE_31__[\"default\"]({\n showPointNames: this.options.vectorStyleOptions.KML.showPointNames,\n extractStyles: this.options.vectorStyleOptions.KML.extractStyles,\n defaultStyle: [vectorStyle]\n });\n } else if (this._currentImportType === \"GPX\") {\n // lecture du fichier GPX : création d'un format ol.format.GPX, qui possède une méthode readFeatures (et readProjection)\n vectorStyle = this.options.vectorStyleOptions.GPX.defaultStyle;\n vectorFormat = new _Formats_GPX__WEBPACK_IMPORTED_MODULE_33__[\"default\"]({\n defaultStyle: vectorStyle\n });\n } else if (this._currentImportType === \"GeoJSON\") {\n // lecture du fichier GeoJSON : création d'un format ol.format.GeoJSON, qui possède une méthode readFeatures (et readProjection)\n vectorStyle = this.options.vectorStyleOptions.GeoJSON.defaultStyle;\n vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__[\"default\"]({\n defaultStyle: vectorStyle\n });\n }\n\n // lecture de la géométrie des entités à partir du fichier, pour éventuelle reprojection.\n var fileProj = vectorFormat.readProjection(fileContent);\n // récupération de la projection de la carte pour reprojection des géométries\n var mapProj = this._getMapProjectionCode();\n\n // récupération des entités avec reprojection éventuelle des géométries\n var features = null;\n features = vectorFormat.readFeatures(fileContent, {\n dataProjection: fileProj,\n featureProjection: mapProj\n });\n logger.log(\"loaded features : \", features);\n\n // création d'une couche vectorielle à partir de ces features\n vectorSource = new ol_source_Vector__WEBPACK_IMPORTED_MODULE_15___default.a({\n features: new ol_Collection__WEBPACK_IMPORTED_MODULE_3___default.a()\n });\n vectorSource.addFeatures(features);\n logger.trace(vectorSource);\n\n // ajout des informations pour le layerSwitcher (titre, description)\n vectorSource._title = vectorSource._description = layerName;\n vectorLayer = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12___default.a({\n source: vectorSource,\n style: vectorStyle\n });\n\n // on rajoute le champ gpResultLayerId permettant d'identifier une couche crée par le composant.\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n\n // cette couche est elle une couche de calcul ?\n var configControl = vectorFormat.readRootExtensions(\"geoportail:compute\");\n if (configControl && Object.keys(configControl).length !== 0) {\n // identifier le type de calcul authorisé :\n // * route\n // * isocurve\n // * elevationpath\n var authorizedControls = {\n route: {\n \"class\": _Route__WEBPACK_IMPORTED_MODULE_35__[\"default\"],\n name: \"itineraire\"\n },\n isocurve: {\n \"class\": _Isocurve__WEBPACK_IMPORTED_MODULE_36__[\"default\"],\n name: \"isocurve\"\n },\n elevationpath: {\n \"class\": _ElevationPath__WEBPACK_IMPORTED_MODULE_37__[\"default\"],\n name: \"profil altimetrique\"\n }\n };\n // information à transmettre à la couche\n var typeControl = configControl.type;\n var graphControl = configControl.transport;\n if (typeControl) {\n // la classe du controle\n var nameControl = authorizedControls[typeControl].name;\n var titleControl = graphControl ? nameControl + \" (\" + graphControl + \")\" : nameControl;\n var classControl = authorizedControls[typeControl][\"class\"];\n if (classControl) {\n // on est bien sur une couche de calcul authorisé !\n vectorLayer.gpResultLayerId = \"layerimport:COMPUTE\";\n // on transmet les infomations utiles\n vectorLayer.set(\"control\", typeControl);\n vectorLayer.set(\"name\", nameControl);\n vectorLayer.set(\"graph\", graphControl);\n vectorLayer.set(\"data\", configControl);\n vectorLayer.set(\"title\", titleControl);\n var formatGeoJSON = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__[\"default\"]({\n defaultStyle: vectorStyle\n });\n var geojson = formatGeoJSON.writeFeatures(features, {\n dataProjection: \"EPSG:4326\",\n featureProjection: \"EPSG:3857\"\n });\n vectorLayer.set(\"geojson\", geojson);\n // recherche et initialiser le controle\n this.getMap().getControls().forEach(function (control) {\n if (control instanceof classControl) {\n control.setData(configControl);\n control.setLayer(vectorLayer);\n control.init();\n }\n });\n }\n }\n }\n map.addLayer(vectorLayer);\n\n // TODO : appeler fonction commune\n // zoom sur l'étendue des entités récupérées (si possible)\n if (map.getView() && map.getSize() && vectorSource.getExtent) {\n var sourceExtent = vectorSource.getExtent();\n if (sourceExtent && sourceExtent[0] !== Infinity) {\n map.getView().fit(vectorSource.getExtent(), map.getSize());\n }\n }\n }\n };\n\n /**\n * NOT USE : this method is called by _importStaticLayerFom* method\n * and add features to the map\n *\n * @param {String} url - url\n * @param {String} layerName - imported layer name\n * @private\n */\n LayerImport.prototype._addFeaturesFromImportStaticLayerUrl = function (url, layerName) {\n // récupération du contenu du fichier\n var map = this.getMap();\n if (!map || !url) {\n return;\n }\n var vectorSource;\n var vectorLayer;\n var vectorFormat;\n if (this._currentImportType === \"MAPBOX\") {\n // TODO\n logger.trace(\"Not yet implemented !\");\n } else {\n if (this._currentImportType === \"KML\") {\n // lecture du fichier KML : création d'un format ol.format.KML, qui possède une méthode readFeatures (et readProjection)\n vectorFormat = new _Formats_KML__WEBPACK_IMPORTED_MODULE_31__[\"default\"]({\n showPointNames: true,\n // FIXME option !\n extractStyles: this.options.vectorStyleOptions.KML.extractStyles,\n defaultStyle: [this.options.vectorStyleOptions.KML.defaultStyle]\n });\n } else if (this._currentImportType === \"GPX\") {\n // lecture du fichier GPX : création d'un format ol.format.GPX, qui possède une méthode readFeatures (et readProjection)\n vectorFormat = new _Formats_GPX__WEBPACK_IMPORTED_MODULE_33__[\"default\"]({\n defaultStyle: this.options.vectorStyleOptions.GPX.defaultStyle\n });\n } else if (this._currentImportType === \"GeoJSON\") {\n // lecture du fichier GeoJSON : création d'un format ol.format.GeoJSON, qui possède une méthode readFeatures (et readProjection)\n vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__[\"default\"]({\n defaultStyle: this.options.vectorStyleOptions.GeoJSON.defaultStyle\n });\n }\n\n // création d'une couche vectorielle à partir de ces features\n vectorSource = new ol_source_Vector__WEBPACK_IMPORTED_MODULE_15___default.a({\n url: url,\n format: vectorFormat\n });\n if (this._currentImportType === \"GPX\") {\n vectorSource.forEachFeature(function (feature) {\n // si aucun style n'est associé au feature\n if (feature.getStyle() == null) {\n logger.log(\"[ol.control.LayerImport] set default style for GPX feature\");\n feature.setStyle(this.options.vectorStyleOptions.GPX.defaultStyle);\n }\n });\n }\n if (this._currentImportType === \"GeoJSON\") {\n vectorSource.forEachFeature(function (feature) {\n // si aucun style n'est associé au feature\n if (feature.getStyle() == null) {\n logger.log(\"[ol.control.LayerImport] set default style for GeoJSON feature\");\n feature.setStyle(this.options.vectorStyleOptions.GeoJSON.defaultStyle);\n }\n });\n }\n\n // ajout des informations pour le layerSwitcher (titre, description)\n vectorSource._title = vectorSource._description = layerName;\n vectorLayer = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12___default.a({\n source: vectorSource\n });\n }\n\n // on rajoute le champ gpResultLayerId permettant d'identifier une couche crée par le composant. (pour layerSwitcher par ex)\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n map.addLayer(vectorLayer);\n\n // TODO : appeler fonction commune\n // zoom sur l'étendue des entités récupérées (si possible)\n if (map.getView() && map.getSize() && vectorSource.getExtent) {\n var sourceExtent = vectorSource.getExtent();\n if (sourceExtent && sourceExtent[0] !== Infinity) {\n map.getView().fit(vectorSource.getExtent(), map.getSize());\n }\n }\n };\n\n // Events MapBox DOM\n\n /**\n * this method is called when the editor is loaded\n *\n * @param {Object} e - editor\n */\n LayerImport.prototype._onLoadedMapBox = function (e) {\n var data = e.target.data.obj;\n var layer = this.getContext(\"layer\");\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // some stuff..\n }\n };\n\n /**\n * this method is called on '_addImportMapBoxVisibilitySource' input click\n * and change visibility source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onChangeVisibilitySourceMapBox = function (e) {\n var data = e.target.data.obj;\n var target = e.target.srcElement;\n var layer = this.getContext(\"layer\");\n\n // logger.trace(layer);\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // reload style with new param : layout.visibility : \"visible\" or \"none\"...\n var styles = layer.get(\"mapbox-styles\");\n var layers = styles.layers;\n for (var i = 0; i < layers.length; i++) {\n if (layers[i].id === data.id) {\n var layout = layers[i].layout;\n if (layout) {\n layout.visibility = target.checked ? \"visible\" : \"none\";\n } else {\n layers[i].layout = {\n visibility: target.checked ? \"visible\" : \"none\"\n };\n }\n break;\n }\n }\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__[\"applyStyle\"])(layer, styles, data.source).then(function () {})[\"catch\"](function (error) {\n logger.error(error);\n });\n }\n };\n\n /**\n * this method is called on '_addImportMapBoxScaleSource' input slide\n * and change zoom source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onChangeScaleMinSourceMapBox = function (e) {\n var data = e.target.data.obj;\n var target = e.target.srcElement;\n var layer = this.getContext(\"layer\");\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // reload style with new param : minZoom = ...\n var styles = layer.get(\"mapbox-styles\");\n var layers = styles.layers;\n for (var i = 0; i < layers.length; i++) {\n if (layers[i].id === data.id) {\n layers[i].minzoom = target.value;\n target.title = target.value;\n break;\n }\n }\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__[\"applyStyle\"])(layer, styles, data.source).then(function () {})[\"catch\"](function (error) {\n logger.error(error);\n });\n }\n };\n\n /**\n * this method is called on '_addImportMapBoxScaleSource' input slide\n * and change zoom source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onChangeScaleMaxSourceMapBox = function (e) {\n var data = e.target.data.obj;\n var target = e.target.srcElement;\n var layer = this.getContext(\"layer\");\n\n // logger.trace(layer);\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // reload style with new param : minZoom = ...\n var styles = layer.get(\"mapbox-styles\");\n var layers = styles.layers;\n for (var i = 0; i < layers.length; i++) {\n if (layers[i].id === data.id) {\n layers[i].maxzoom = target.value;\n target.title = target.value;\n break;\n }\n }\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__[\"applyStyle\"])(layer, styles, data.source).then(function () {})[\"catch\"](function (error) {\n logger.error(error);\n });\n }\n };\n\n /**\n * this method is called on ''\n * and change zoom source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onChangeLegendValueSourceMapBox = function (e) {\n var data = e.target.data.obj;\n var target = e.target.srcElement;\n var layer = this.getContext(\"layer\");\n\n // logger.trace(layer);\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // reload style with new param :\n var styles = layer.get(\"mapbox-styles\");\n var layers = styles.layers;\n for (var i = 0; i < layers.length; i++) {\n if (layers[i].id === data.id) {\n var paint = layers[i].paint;\n if (paint) {\n paint[target.dataset.id] = target.value;\n }\n break;\n }\n }\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__[\"applyStyle\"])(layer, styles, data.source).then(function () {})[\"catch\"](function (error) {\n logger.error(error);\n });\n }\n };\n\n /**\n * this method is called on ''\n * and change zoom source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onDisplayLayerSourceMapBox = function (e) {\n var data = e.target.data.obj;\n var layer = this.getContext(\"layer\");\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n var idDOM = e.target.currentTarget.parentNode.id;\n var id = idDOM.substring(idDOM.indexOf(\"-\") + 1, idDOM.indexOf(\"_\"));\n var l = this.getLayer(id);\n l.collapse();\n }\n };\n\n // ################################################################### //\n // #################### Import WMS/WMTS layers ####################### //\n // ################################################################### //\n\n /**\n * this method is called by this_onImportSubmit method\n * and call getCap service from specified url, then display layers list in new panel\n *\n * @private\n */\n LayerImport.prototype._importServiceLayers = function () {\n if (this._currentImportType === \"WFS\") {\n logger.warn(\"[ol.control.LayerImport] WFS layer import is not implemented yet\");\n return;\n }\n\n // 0. on vide d'éventuels résultats précédents dans le panel GetCapResults\n this.cleanGetCapResultsList();\n\n // 1. récupération de l'url renseignée\n var url = this._getCapRequestUrl = this._serviceUrlImportInput.value;\n if (!url) {\n logger.error(\"[ol.control.LayerImport] url parameter is mandatory\");\n return;\n }\n logger.log(\"url : \", url);\n\n // on supprime les éventuels espaces avant ou après\n if (url.trim) {\n url = url.trim();\n }\n // Info : on ajoute des paramètres uniquement si l'utilisateur n'en a pas déjà saisi (on vérifie la position du caractère \"?\")\n var questionMarkIndex = url.indexOf(\"?\");\n if (questionMarkIndex < 0) {\n // dans le cas d'une url du type https://data.geopf.fr/wmts\n url += \"?SERVICE=\" + this._currentImportType + \"&REQUEST=GetCapabilities\";\n } else if (questionMarkIndex === url.length - 1) {\n // dans le cas où l'url se termine par \"?\"\n url += \"SERVICE=\" + this._currentImportType + \"&REQUEST=GetCapabilities\";\n }\n // si on n'est pas dans ces deux cas : l'utilisateur a déjà saisit des paramètres après \"?\" => on ne fait rien.\n\n // 2. récupération proxy\n if (this.options.webServicesOptions && this.options.webServicesOptions.proxyUrl) {\n url = _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_29__[\"default\"].proxifyUrl(url, this.options.webServicesOptions);\n }\n\n // 3. affichage d'une patience le temps de la requête\n this._displayWaitingContainer();\n\n // 4. send getcapabilities request (XHR protocol => proxy Url is needed)\n var context = this;\n geoportal_access_lib__WEBPACK_IMPORTED_MODULE_21__[\"default\"].Protocols.XHR.call({\n url: url,\n method: \"GET\",\n timeOut: 15000,\n // on success callback : display results in container\n onResponse: function onResponse(response) {\n context._hideWaitingContainer();\n context._displayGetCapResponseLayers(response);\n },\n // on error callback : log error\n onFailure: function onFailure(error) {\n // en cas d'erreur, on revient au panel initial et on cache la patience\n context._hideWaitingContainer();\n logger.error(\"[ol.control.LayerImport] getCapabilities request failed : \", error);\n }\n });\n };\n\n /**\n * this method is called by this._importServiceLayers method\n * and display layers list from getcapabilities response\n *\n * @param {Object} xmlResponse - getCapabilities response (xml format)\n * @private\n */\n LayerImport.prototype._displayGetCapResponseLayers = function (xmlResponse) {\n var parser;\n var layers;\n var layerDescription = {\n content: null,\n title: null\n };\n var projection;\n this._getCapResponseWMSLayers = [];\n\n // sauvegarde du content d'un GetCapabilities\n this.contentService = xmlResponse;\n\n // Affichage du panel des couches accessibles\n this._importPanel.style.display = \"none\";\n this._getCapPanel.style.display = \"block\";\n\n // Parse GetCapabilities Response\n if (this._currentImportType === \"WMS\") {\n parser = new ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_9___default.a();\n var getCapResponseWMS = this._getCapResponseWMS = parser.read(xmlResponse);\n logger.log(\"getCapabilities response : \", getCapResponseWMS);\n if (getCapResponseWMS && getCapResponseWMS.Capability && getCapResponseWMS.Capability.Layer) {\n // info: le parser Openlayers récupère la première layer de comme un unique objet (il écrase les précédents s'il y a pls à la racine de )\n // /!\\ être vigilant si le parser est modifié (notamment pour récupérer les différentes layers à la racine. ex http://geoservices.brgm.fr/geologie?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities)\n\n var getCapLayer = getCapResponseWMS.Capability.Layer;\n // on va lire le contenu de la (ou les) pour l'afficher ou en afficher les couches disponibles\n if (Array.isArray(getCapLayer)) {\n // cas où on a plusieurs à la racine, mais non géré encore par ol.format.WMSCapabilities jusqu'à la v3.18.2.\n for (var i = 0; i < getCapLayer.length; i++) {\n this._displayGetCapResponseWMSLayer(getCapLayer[i]);\n }\n } else {\n // cas du parser ol.format.WMSCapabilities jusqu'à la v3.18.2.\n this._displayGetCapResponseWMSLayer(getCapLayer);\n }\n }\n } else if (this._currentImportType === \"WMTS\") {\n parser = new ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_10___default.a();\n var getCapResponseWMTS = this._getCapResponseWMTS = parser.read(xmlResponse);\n logger.log(\"getCapabilities response : \", getCapResponseWMTS);\n if (getCapResponseWMTS && getCapResponseWMTS.Contents && getCapResponseWMTS.Contents.Layer) {\n layers = getCapResponseWMTS.Contents.Layer;\n if (Array.isArray(layers)) {\n // on stocke la liste des couches pour faire le lien avec le DOM\n this._getCapResponseWMTSLayers = layers;\n for (var j = 0; j < layers.length; j++) {\n // on vérifie que la projection de la couche WMTS est compatible avec celle de la carte\n // (ie elle doit être connue par ol.proj)\n projection = this._getWMTSLayerProjection(layers[j], getCapResponseWMTS);\n if (projection && typeof projection === \"string\") {\n if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(projection) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(projection.toUpperCase())) {\n // si la projection de la couche est connue par ol.proj,\n // on ajoute chaque couche de la réponse dans la liste des couches accessibles\n layerDescription = {\n content: layers[j].Title,\n title: layers[j].Abstract || layers[j].Title\n };\n if (this._getCapResultsListContainer) {\n this._addImportGetCapResultLayer(layerDescription, j, this._getCapResultsListContainer);\n }\n } else {\n // si la projection de la couche n'est pas connue par ol.proj,\n // on n'affiche pas la couche dans le panel des résultats\n logger.warn(\"[ol.control.LayerImport] wmts layer cannot be added to map : unknown projection\", layers[j]);\n continue;\n }\n }\n }\n }\n }\n }\n };\n\n /**\n * this method is called by this._displayGetCapResponseLayers method\n * and display WMS layer in list from getcapabilities response\n *\n * @param {Object} layerObj - object corresponding to content in WMS GetCapabilities response\n * @param {Object} [parentLayersInfos] - object corresponding to parents content in WMS GetCapabilities response (without children infos)\n * @private\n */\n LayerImport.prototype._displayGetCapResponseWMSLayer = function (layerObj, parentLayersInfos) {\n if (!layerObj) {\n logger.warn(\"[ol.control.LayerImport] _displayGetCapResponseWMSLayer : getCapabilities layer object not found\");\n return;\n }\n logger.log(\"[ol.control.LayerImport] _displayGetCapResponseWMSLayer - layerObj : \", layerObj);\n\n // récupération de la projection de la map (pour vérifier que l'on peut reprojeter les couches disponibles)\n var mapProjCode = this._getMapProjectionCode();\n var projection;\n var layerDescription = {\n content: null,\n title: null\n };\n\n // 1. héritage éventuels des informations de la couche parent\n if (parentLayersInfos) {\n var key;\n var i;\n\n // propriétés héritées à ajouter aux propriétés parent\n var addKeys = [\"CRS\", \"Style\"\n // \"AuthorityURL\" // TODO\n ];\n for (i = 0; i < addKeys.length; i++) {\n key = addKeys[i];\n if (Array.isArray(parentLayersInfos[key]) && parentLayersInfos[key].length !== 0) {\n if (Array.isArray(layerObj[key]) && layerObj[key].length !== 0) {\n // on ajoute celles de la couche parent\n for (var n = 0; n < parentLayersInfos[key].length; n++) {\n if (layerObj[key].indexOf(parentLayersInfos[key][n]) === -1) {\n // si le CRS/Style parent n'est pas dans les CRS/Style de la couche, on l'ajoute\n layerObj[key].push(parentLayersInfos[key][n]);\n }\n }\n } else {\n // si la couche n'a pas de CRS ou Style, on récupère ceux de la couche parent\n layerObj[key] = parentLayersInfos[key];\n }\n }\n }\n\n // propriétés qui remplacent les valeurs des propriétés héritées,\n // càd on récupère la propriété parent seulement si elle n'est pas définie pour l'élément enfant\n var replaceKeys = [\"BoundingBox\", \"EX_GeographicBoundingBox\", \"MaxScaleDenominator\", \"MinScaleDenominator\", \"Attribution\", \"Dimension\", \"queryable\", \"cascaded\", \"opaque\", \"noSubsets\", \"fixedWidth\", \"fixedHeight\"];\n for (i = 0; i < replaceKeys.length; i++) {\n key = replaceKeys[i];\n if (parentLayersInfos[key] && !layerObj[key]) {\n layerObj[key] = parentLayersInfos[key];\n }\n }\n } else {\n // si on n'a pas d'infos de couche parent, on est à la racine du Capability, on le note\n layerObj._isRootLayer = true;\n layerObj._container = this._getCapResultsListContainer;\n if (!layerObj.Title) {\n layerObj.Title = \"Liste des couches\";\n }\n }\n\n // 2. si on a d'autres couches imbriquées, on descend d'un niveau, sinon on affiche la couche dans la liste des résultats\n if (layerObj.Layer) {\n if (Array.isArray(layerObj.Layer)) {\n var _container = layerObj ? layerObj._container : parentLayersInfos._container;\n var _title = layerObj ? layerObj.Title : parentLayersInfos.Title;\n layerObj._container = this._addImportGetCapResultListRubrique(_title, _container).lastChild;\n for (var j = 0; j < layerObj.Layer.length; j++) {\n // on recommence pour chaque sous couche, avec les infos éventuellement héritées\n var bRubriqueExist = false;\n var lstRubrique = layerObj._container.getElementsByClassName(\"GPimportGetCapRubriqueTitle\");\n for (var ii = 0; ii < lstRubrique.length; ii++) {\n if (lstRubrique[ii].title === layerObj.Title) {\n bRubriqueExist = true;\n layerObj.Layer[j]._container = lstRubrique[ii].parentElement;\n }\n }\n if (!bRubriqueExist) {\n layerObj.Layer[j]._container = this._addImportGetCapResultRubrique(layerObj.Title, layerObj._container).lastChild;\n }\n this._displayGetCapResponseWMSLayer(layerObj.Layer[j], layerObj);\n }\n }\n } else {\n // on récupère la longueur de la liste des couches déjà récupérées, pour avoir ce qui sera l'index de la couche à ajouter.\n var lastIndex = this._getCapResponseWMSLayers.length;\n\n // on vérifie que la couche ait une projection compatible avec celle de la carte\n // ou soit connue par proj4js, et on stocke cette projection dans les infos de la couche.\n projection = this._getWMSLayerProjection(layerObj, mapProjCode);\n if (!projection) {\n // si aucune projection n'est compatible avec celle de la carte ou connue par ol.proj,\n // on n'affiche pas la couche dans le panel des résultats\n logger.warn(\"[ol.control.LayerImport] wms layer cannot be added to map : unknown projection\", layerObj);\n } else {\n // si on a une projection compatible : on la stocke et la couche sera éventuellement reprojetée à l'ajout\n layerObj._projection = projection;\n // on ajoute chaque couche de la réponse dans la liste des couches accessibles\n layerDescription = {\n content: layerObj.Title,\n title: layerObj.Abstract || layerObj.Title\n };\n // FIXME beurk !?\n var _isGoodContainer = layerObj._container;\n if (_isGoodContainer.localName === \"ul\") {\n _isGoodContainer = _isGoodContainer.lastChild;\n }\n this._addImportGetCapResultLayer(layerDescription, lastIndex, _isGoodContainer);\n\n // puis on stoke la couche dans la liste pour faire le lien avec le DOM\n this._getCapResponseWMSLayers[lastIndex] = layerObj;\n }\n }\n };\n\n /**\n * this method is called on 'GPimportGetCapProposal' div click\n * and add corresponding layer to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onGetCapResponseLayerClick = function (e) {\n if (e.target && e.target.id) {\n var proposalId = parseInt(e.target.id.substr(23), 10);\n if (isNaN(proposalId)) {\n return;\n }\n var layerInfo;\n if (this._currentImportType === \"WMS\") {\n // récupération des informations liées à la couche\n layerInfo = this._getCapResponseWMSLayers[proposalId];\n // ajout de la couche à la carte\n this._addGetCapWMSLayer(layerInfo);\n } else if (this._currentImportType === \"WMTS\") {\n // récupération des informations liées à la couche\n layerInfo = this._getCapResponseWMTSLayers[proposalId];\n // ajout de la couche à la carte\n this._addGetCapWMTSLayer(layerInfo);\n }\n }\n };\n\n // ################################################################### //\n // ######### create WMS layer from getCapabilities response ######### //\n // ################################################################### //\n\n /**\n * this method is called by this._onGetCapResponseLayerClick\n * and add WMS layer to map using parameters from getCapabilities response\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @private\n */\n LayerImport.prototype._addGetCapWMSLayer = function (layerInfo) {\n var map = this.getMap();\n if (!map) {\n logger.warn(\"[ol.control.LayerImport] _addGetCapWMSLayer error : map is not defined\");\n return;\n }\n if (!layerInfo) {\n logger.warn(\"[ol.control.LayerImport] _addGetCapWMSLayer error : layerInfo is not defined\");\n return;\n }\n\n // récupération de la projection de la carte\n var mapProjCode = this._getMapProjectionCode();\n var wmsSourceOptions = {};\n\n // Récupération de l'url\n var getMapUrl = this._getWMSLayerGetMapUrl();\n // on essaie de récupérer l'url du service dans le getCapbilities\n if (getMapUrl) {\n wmsSourceOptions.url = getMapUrl;\n } else {\n // sinon, on récupère l'url du getCapabilities, à laquelle on enlève éventuellement les paramètres\n var questionMarkIndex = this._getCapRequestUrl.indexOf(\"?\");\n if (questionMarkIndex !== -1) {\n wmsSourceOptions.url = this._getCapRequestUrl.substring(0, questionMarkIndex);\n } else {\n wmsSourceOptions.url = this._getCapRequestUrl;\n }\n }\n wmsSourceOptions.params = {};\n if (layerInfo.Name) {\n wmsSourceOptions.params[\"LAYERS\"] = layerInfo.Name;\n } else {\n logger.warn(\"[ol.control.LayerImport] unable to add wms layer : mandatory layer 'name' parameter cannot be found\", layerInfo);\n return;\n }\n wmsSourceOptions.params[\"SERVICE\"] = \"WMS\";\n if (this._getCapResponseWMS.version) {\n wmsSourceOptions.params[\"VERSION\"] = this._getCapResponseWMS.version;\n }\n\n // on a déjà vérifié que la couche peut être reprojetée,\n // on vérifie que la couche ait une projection compatible avec celle de la carte\n // ou soit connue par proj4js\n var projection = layerInfo._projection;\n if (!projection) {\n logger.warn(\"[ol.control.LayerImport] wms layer cannot be added to map : unknown projection\");\n return;\n } else if (projection !== mapProjCode) {\n // si la projection de la carte n'est pas disponible pour cette couche,\n // on spécifie une projection (qui doit avoir été définie dans proj4js) pour reprojection par Openlayers\n wmsSourceOptions.projection = projection;\n }\n\n // récupération du premier style disponible (pas d'info default?)\n var legend;\n if (layerInfo.Style && Array.isArray(layerInfo.Style)) {\n var style = layerInfo.Style[0];\n wmsSourceOptions.params[\"STYLES\"] = style.Name;\n if (style.LegendURL && Array.isArray(style.LegendURL) && style.LegendURL.length !== 0) {\n legend = style.LegendURL[0].OnlineResource;\n }\n }\n\n // Création de la source (tester un try catch ?)\n var wmsSource = new ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_16___default.a(wmsSourceOptions);\n // ajout des informations pour le layerSwitcher (titre, description, legendes, metadata) ou originators\n this._getWMSLayerInfoForLayerSwitcher(layerInfo, legend, wmsSource);\n var layerTileOptions = {};\n layerTileOptions[\"source\"] = wmsSource;\n // récupération des résolutions min et max de la layer à partir des dénominateurs d'échelle\n this._getWMSLayerMinMaxResolution(layerInfo, mapProjCode, layerTileOptions);\n // récupération de l'étendue (bbox)\n this._getWMSLayerExtent(layerInfo, mapProjCode, layerTileOptions);\n\n // création de la couche à partir de la source\n var wmsLayer = new ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13___default.a(layerTileOptions);\n // on rajoute le champ gpResultLayerId permettant d'identifier une couche crée par le composant. (pour layerSwitcher par ex)\n wmsLayer.gpResultLayerId = \"layerimport:WMS\";\n // on rajoute le champ gpGFIparams permettant d'identifier si la couche est queryable, et de transmettre les formats reconnus par GetFeatureInfo\n if (layerInfo.queryable) {\n wmsLayer.gpGFIparams = {\n queryable: true\n };\n // récupération des différents formats reconnus par le GetFeatureInfo\n if (this._getCapResponseWMS && this._getCapResponseWMS.Capability && this._getCapResponseWMS.Capability.Request && this._getCapResponseWMS.Capability.Request.GetFeatureInfo && this._getCapResponseWMS.Capability.Request.GetFeatureInfo.Format && Array.isArray(this._getCapResponseWMS.Capability.Request.GetFeatureInfo.Format)) {\n wmsLayer.gpGFIparams.formats = this._getCapResponseWMS.Capability.Request.GetFeatureInfo.Format;\n }\n }\n map.addLayer(wmsLayer);\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and gets service getMap request url\n *\n * @return {String} getmapurl - service getMap request url\n * @private\n */\n LayerImport.prototype._getWMSLayerGetMapUrl = function () {\n var getmapurl;\n if (this._getCapResponseWMS && this._getCapResponseWMS.Capability && this._getCapResponseWMS.Capability.Request && this._getCapResponseWMS.Capability.Request.GetMap) {\n var getmap = this._getCapResponseWMS.Capability.Request.GetMap;\n if (getmap.DCPType && Array.isArray(getmap.DCPType) && getmap.DCPType.length !== 0) {\n var url = getmap.DCPType[0];\n if (url && url.HTTP && url.HTTP.Get) {\n getmapurl = url.HTTP.Get.OnlineResource;\n }\n }\n }\n return getmapurl;\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and gets a projection both available for a given layer and already defined in proj4js (ol.proj)\n * (openlayers raster reprojection will be then able to reproject layer in map projection)\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {String} mapProjCode - map projection code (e.g. \"EPSG:4326\")\n * @return {String} projection - ol.proj projection alias (e.g. \"EPSG:4326\")\n * @private\n */\n LayerImport.prototype._getWMSLayerProjection = function (layerInfo, mapProjCode) {\n var projection;\n if (!layerInfo || _typeof(layerInfo) !== \"object\") {\n logger.warn(\"missing layer information (from getCapabilities)\");\n return;\n }\n\n // on va parcourir la liste des CRS disponibles pour la couche\n // si on trouve la projection de la carte : c'est parfait\n // si on trouve une projection qui est connue par ol.proj : Openlayers gère la reprojection\n var CRSList = layerInfo.CRS;\n if (Array.isArray(CRSList)) {\n // on check si la projection de la carte est dans le tableau de projections issues du getCap,\n // si oui, on la prend\n if (CRSList.includes(mapProjCode)) {\n projection = mapProjCode;\n return projection;\n }\n var layerCRS, i;\n // si aucune projection du getCap pour la couche n'est égale à celle de la carte\n // on retourne la première projection listée dans le getCap qui est gérée par openLayers\n for (i = 0; i < CRSList.length; i++) {\n layerCRS = CRSList[i];\n if (layerCRS && typeof layerCRS === \"string\") {\n if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(layerCRS) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(layerCRS.toUpperCase())) {\n projection = layerCRS;\n // on renvoie la première projection gérée par openLayers\n return projection;\n }\n }\n }\n }\n // si la liste des projections n'est pas un tableau ou si aucune projection n'est égale à celle de la carte ou si aucune n'est gérée par openLayers\n // on return undefined (comportement d'origine de la fonction)\n return projection;\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and sets minResolution and maxResolution parameters for WMS layer (if available in getCapabilities response)\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {String} mapProjCode - map projection code (e.g. \"EPSG:4326\")\n * @param {Object} layerTileOptions - options for ol.layer.Tile (to be filled)\n * @private\n */\n LayerImport.prototype._getWMSLayerMinMaxResolution = function (layerInfo, mapProjCode, layerTileOptions) {\n // récupération des résolutions min et max à partir des dénominateurs d'échelle\n var mapUnits = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(mapProjCode).getUnits();\n if (mapUnits === \"m\") {\n // info : 1 pixel = 0.00028 m\n if (layerInfo.MinScaleDenominator) {\n layerTileOptions.minResolution = layerInfo.MinScaleDenominator * 0.00028;\n }\n if (layerInfo.MaxScaleDenominator) {\n layerTileOptions.maxResolution = layerInfo.MaxScaleDenominator * 0.00028;\n }\n } else if (mapUnits === \"degrees\") {\n // info : 6378137 * 2 * pi / 360 = rayon de la terre (ellipsoide WGS84)\n var cste = 0.00028 * 180 / (Math.PI * 6378137);\n if (layerInfo.MinScaleDenominator) {\n layerTileOptions.minResolution = layerInfo.MinScaleDenominator * cste;\n }\n if (layerInfo.MaxScaleDenominator) {\n layerTileOptions.maxResolution = layerInfo.MaxScaleDenominator * cste;\n }\n }\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and sets extent for WMS layer in map projection (if available in getCapabilities response)\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {String} mapProjCode - map projection code (e.g. \"EPSG:4326\")\n * @param {Object} layerTileOptions - options for ol.layer.Tile (to be filled)\n * @private\n */\n LayerImport.prototype._getWMSLayerExtent = function (layerInfo, mapProjCode, layerTileOptions) {\n if (!layerInfo) {\n logger.warn(\"[ol.control.LayerImport] _getWMSLayerExtent error : layerInfo is not defined\");\n return;\n }\n\n // récupération des 2 propriétés qui peuvent spécifier l'étendue (bbox) selon les specs OGC WMS 1.3.0 :\n // 1. layerInfo.EX_GeographicBoundingBox est un tableau de type [westBoundLongitude, southBoundLatitude, eastBoundLongitude, northBoundLatitude] en WGS84\n var exGeographicBoundingBox = layerInfo[\"EX_GeographicBoundingBox\"];\n // 2. layerInfo.BoundingBox est un tableau dont chaque élément est un objet (balise bbox) avec les propriétés suivantes :\n // crs (String) et extent (tableau de type [minx, miny, maxx, maxy])\n var boundingBox = layerInfo.BoundingBox;\n if (exGeographicBoundingBox && Array.isArray(exGeographicBoundingBox)) {\n if (mapProjCode === \"EPSG:4326\") {\n // si la projection de la carte est la même que celle de l'extent (EPSG:4326), on la passe telle quelle\n layerTileOptions.extent = exGeographicBoundingBox;\n } else {\n layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"transformExtent\"])(exGeographicBoundingBox, \"EPSG:4326\", mapProjCode);\n }\n\n // si jamais EX_GeographicBoundingBox n'est pas ou est mal renseigné, on essaie de récupérer via le paramètre BoundingBox\n } else if (boundingBox && Array.isArray(boundingBox)) {\n var crs;\n var extent;\n for (var i = 0; i < boundingBox.length; i++) {\n // on peut avoir plusieurs BoundingBox\n crs = boundingBox[i].crs;\n extent = boundingBox[i].extent;\n if (crs) {\n if (crs === mapProjCode) {\n // si la bbox est dans la projection de la carte, on la passe telle quelle\n layerTileOptions.extent = extent;\n break;\n } else {\n if (typeof crs === \"string\") {\n var olProj = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(crs) ? Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(crs) : Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(crs.toUpperCase());\n // if ( olGetProj(crs) || olGetProj(crs.toUpperCase()) ) {\n if (olProj) {\n // si la bbox est dans une projection connue, on va la reprojeter\n // tout d'abord, on gère le cas des systèmes EPSG géographiques : inversion des axes x et y\n if (olProj.getUnits() === \"degrees\" && crs.toUpperCase().indexOf(\"EPSG\") === 0) {\n // le tableau extent est inversé, on a besoin de : [miny, minx, maxx, maxy]\n var reversedExtent = [extent[1], extent[0], extent[3], extent[2]];\n layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"transformExtent\"])(reversedExtent, olProj, mapProjCode);\n } else {\n // reprojection dans la projection de la carte\n layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"transformExtent\"])(extent, olProj, mapProjCode);\n }\n break;\n }\n }\n }\n }\n }\n }\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and sets more information about layer (legends, title, description, metadata, originators) for layerSwitcher or attributions controls\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {String} legend - legend url\n * @param {Object} wmsSource - options for ol.source.TileWMS (to be filled)\n * @private\n */\n LayerImport.prototype._getWMSLayerInfoForLayerSwitcher = function (layerInfo, legend, wmsSource) {\n // ajout des informations pour le layerSwitcher (titre, description)\n if (layerInfo.Title) {\n wmsSource._title = layerInfo.Title;\n wmsSource._description = layerInfo.Abstract ? layerInfo.Abstract : layerInfo.Title;\n } else {\n wmsSource._title = layerInfo.Name;\n wmsSource._description = layerInfo.Abstract ? layerInfo.Abstract : layerInfo.Name;\n }\n // ajout de légende si on en a trouvé\n if (legend) {\n wmsSource._legends = [{\n url: legend\n }];\n }\n // ajout d'éventuelles métadonnées\n if (layerInfo.MetadataURL && Array.isArray(layerInfo.MetadataURL)) {\n wmsSource._metadata = [];\n for (var i = 0; i < layerInfo.MetadataURL.length; i++) {\n var metadata = layerInfo.MetadataURL[i].OnlineResource;\n if (metadata) {\n wmsSource._metadata.push({\n url: metadata\n });\n }\n }\n }\n // ajout d'éventuelles attributions / originators\n if (layerInfo.Attribution) {\n var attribution = layerInfo.Attribution;\n wmsSource._originators = {};\n if (attribution.OnlineResource) {\n wmsSource._originators.url = attribution.OnlineResource;\n }\n if (attribution.Title) {\n wmsSource._originators.name = wmsSource._originators.attribution = attribution.Title;\n }\n if (attribution.LogoURL && attribution.LogoURL.OnlineResource) {\n wmsSource._originators.logo = attribution.LogoURL.OnlineResource;\n }\n }\n };\n\n // ################################################################### //\n // ######### create WMTS layer from getCapabilities response ######### //\n // ################################################################### //\n\n /**\n * this method is called by this._onGetCapResponseLayerClick\n * and add WMTS layer to map using parameters from getCapabilities response\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @private\n */\n LayerImport.prototype._addGetCapWMTSLayer = function (layerInfo) {\n if (!layerInfo || !layerInfo.Identifier) {\n logger.warn(\"[ol.control.LayerImport] layer information not found in getCapabilities response for layer \");\n return;\n }\n var map = this.getMap();\n if (!map) {\n return;\n }\n var wmtsSourceOptions = {};\n wmtsSourceOptions.layer = layerInfo.Identifier;\n // service version\n if (this._getCapResponseWMTS.version) {\n wmtsSourceOptions.version = this._getCapResponseWMTS.version;\n }\n // Récupération de l'url\n var getMapUrl = this._getWMTSLayerGetTileUrl();\n // on essaie de récupérer l'url du service dans le getCapbilities\n if (getMapUrl) {\n wmtsSourceOptions.url = getMapUrl;\n } else {\n // sinon, on récupère l'url du getCapabilities, à laquelle on enlève éventuellement les paramètres\n var questionMarkIndex = this._getCapRequestUrl.indexOf(\"?\");\n if (questionMarkIndex !== -1) {\n wmtsSourceOptions.url = this._getCapRequestUrl.substring(0, questionMarkIndex);\n } else {\n wmtsSourceOptions.url = this._getCapRequestUrl;\n }\n }\n\n // Récupération des informations de la pyramide (tileGrid information) : matrixIds, resolutions, origin et projection\n var tmsOptions = this._getTMSParams(layerInfo);\n wmtsSourceOptions.matrixSet = tmsOptions.tms;\n wmtsSourceOptions.projection = tmsOptions.projCode;\n wmtsSourceOptions.tileGrid = new ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5___default.a({\n resolutions: tmsOptions.resolutions,\n matrixIds: tmsOptions.matrixIds,\n origin: tmsOptions.origin\n });\n\n // Récupération du style par défaut\n var defaultStyle;\n var legend;\n if (layerInfo.Style && Array.isArray(layerInfo.Style)) {\n var style;\n for (var s = 0; s < layerInfo.Style.length; s++) {\n style = layerInfo.Style[s];\n // on récupère le style\n defaultStyle = style.Identifier;\n if (style.isDefault) {\n // si c'est celui par défaut, on le garde (on ne boucle plus sur les autres styles)\n break;\n }\n // et une éventuelle légende\n if (style.LegendURL && Array.isArray(style.LegendURL) && style.LegendURL.length !== 0) {\n legend = style.LegendURL[0].href;\n }\n }\n }\n if (defaultStyle == null) {\n logger.warn(\"[ol.control.LayerImport] style information not found in getCapabilities response for layer \" + layerInfo.Identifier);\n }\n wmtsSourceOptions.style = defaultStyle;\n\n // Récupération du format (le premier trouvé)\n var format;\n if (layerInfo.Format && Array.isArray(layerInfo.Format)) {\n format = layerInfo.Format[0];\n }\n if (format == null) {\n logger.warn(\"[ol.control.LayerImport] format information not found in getCapabilities response for layer \" + layerInfo.Identifier);\n }\n wmtsSourceOptions.format = format;\n\n // Création de la source (tester un try catch ?)\n var wmtsSource = new ol_source_WMTS__WEBPACK_IMPORTED_MODULE_17___default.a(wmtsSourceOptions);\n\n // ajout des informations pour le layerSwitcher (titre, description)\n if (layerInfo.Title) {\n wmtsSource._title = layerInfo.Title;\n wmtsSource._description = layerInfo.Abstract ? layerInfo.Abstract : layerInfo.Title;\n } else {\n wmtsSource._title = layerInfo.Identifier;\n wmtsSource._description = layerInfo.Abstract ? layerInfo.Abstract : layerInfo.Identifier;\n }\n // ajout d'une éventuelle légende\n if (legend) {\n wmtsSource._legends = [{\n url: legend\n }];\n }\n var layerTileOptions = {};\n layerTileOptions.source = wmtsSource;\n // récupération de l'étendue (bbox)\n layerTileOptions.extent = this._getWMTSLayerExtent(layerInfo);\n var wmtsLayer;\n try {\n wmtsLayer = new ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13___default.a(layerTileOptions);\n } catch (e) {\n logger.warn(\"[ol.control.LayerImport] an error occured while trying to create ol.layer.Tile from getCapabilities information. error : \", e);\n return;\n }\n // on rajoute le champ gpResultLayerId permettant d'identifier une couche crée par le composant. (pour layerSwitcher par ex)\n wmtsLayer.gpResultLayerId = \"layerimport:WMTS\";\n map.addLayer(wmtsLayer);\n };\n\n /**\n * this method is called by this._addGetCapWMTSLayer\n * and gets service getTile request url\n *\n * @return {String} gettileurl - service getTile request url\n * @private\n */\n LayerImport.prototype._getWMTSLayerGetTileUrl = function () {\n var gettileurl;\n if (this._getCapResponseWMTS && this._getCapResponseWMTS.OperationsMetadata && this._getCapResponseWMTS.OperationsMetadata.GetTile) {\n var gettile = this._getCapResponseWMTS.OperationsMetadata.GetTile;\n if (gettile.DCP && gettile.DCP.HTTP && gettile.DCP.HTTP.Get && Array.isArray(gettile.DCP.HTTP.Get) && gettile.DCP.HTTP.Get.length !== 0) {\n gettileurl = gettile.DCP.HTTP.Get[0].href;\n }\n }\n return gettileurl;\n };\n\n /**\n * this method is called by this._displayGetCapResponseLayers\n * and gets layer TileMatrixSet projection if defined in proj4js\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {Object} getCapResponseWMTS - whole getCapabilities response\n * @return {String} projection - ol.proj projection alias (e.g. \"EPSG:4326\")\n * @private\n */\n LayerImport.prototype._getWMTSLayerProjection = function (layerInfo, getCapResponseWMTS) {\n var projection;\n if (!layerInfo || _typeof(layerInfo) !== \"object\") {\n logger.warn(\"missing layer information (from getCapabilities)\");\n return;\n }\n if (!getCapResponseWMTS || _typeof(getCapResponseWMTS) !== \"object\") {\n logger.warn(\"missing getCapabilities response\");\n return;\n }\n if (layerInfo.TileMatrixSetLink && Array.isArray(layerInfo.TileMatrixSetLink)) {\n var tms = layerInfo.TileMatrixSetLink[0].TileMatrixSet;\n var crs;\n if (getCapResponseWMTS.Contents && Array.isArray(getCapResponseWMTS.Contents.TileMatrixSet)) {\n var tileMatrixSets = getCapResponseWMTS.Contents.TileMatrixSet;\n for (var i = 0; i < tileMatrixSets.length; i++) {\n if (tileMatrixSets[i].Identifier === tms && tileMatrixSets[i].TileMatrix) {\n // on a trouvé le TMS correspondant\n var tileMatrixSet = tileMatrixSets[i];\n crs = tileMatrixSet.SupportedCRS;\n if (crs && typeof crs === \"string\") {\n if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(crs) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(crs.toUpperCase())) {\n projection = crs;\n }\n }\n break;\n }\n }\n }\n }\n ;\n return projection;\n };\n\n /**\n * this method is called by this._addGetCapWMTSLayer\n * and get ol.tileGrid.WMTS parameters using getCapabilities response\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @return {Object} tmsOptions - ol.tileGrid.WMTS options\n * @private\n */\n LayerImport.prototype._getTMSParams = function (layerInfo) {\n var tmsOptions = {};\n var matrixIds = [];\n var resolutions = [];\n var origin = [];\n var tms;\n var projCode;\n var projection;\n\n // TODO : recup TOUS les autres params d'un tileGrid ! (tileSize, width...)\n\n var map = this.getMap();\n if (!map) {\n return;\n }\n\n // Récupération des informations de la pyramide (tileGrid information) : matrixIds, resolutions, origin\n if (layerInfo.TileMatrixSetLink && Array.isArray(layerInfo.TileMatrixSetLink)) {\n tms = layerInfo.TileMatrixSetLink[0].TileMatrixSet;\n if (this._getCapResponseWMTS.Contents && Array.isArray(this._getCapResponseWMTS.Contents.TileMatrixSet)) {\n var tileMatrixSets = this._getCapResponseWMTS.Contents.TileMatrixSet;\n for (var i = 0; i < tileMatrixSets.length; i++) {\n if (tileMatrixSets[i].Identifier === tms && tileMatrixSets[i].TileMatrix) {\n // on a trouvé le TMS correspondant\n var tileMatrixSet = tileMatrixSets[i];\n var tilematrix;\n var id;\n var scaledenominator;\n var resolution;\n var units;\n if (tileMatrixSet.SupportedCRS) {\n projCode = tileMatrixSet.SupportedCRS;\n projection = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"get\"])(projCode);\n }\n if (projection && projection.getUnits) {\n units = projection.getUnits();\n }\n if (Array.isArray(tileMatrixSet.TileMatrix)) {\n for (var j = 0; j < tileMatrixSet.TileMatrix.length; j++) {\n // construction du tableau des matrixIds\n tilematrix = tileMatrixSet.TileMatrix[j];\n if (tilematrix.Identifier != null) {\n id = parseInt(tilematrix.Identifier, 10);\n matrixIds.push(id);\n }\n\n // construction du tableau des résolutions, calculées à partir des dénominateurs d'échelle (scaledenominator)\n scaledenominator = tilematrix.ScaleDenominator;\n // calcul des résolutions selon la projection du TMS : selon si on a des coordonnées planes ou géographiques\n if (units === \"degrees\") {\n // info : 6378137 * 2 * pi / 360 = rayon de la terre (ellipsoide WGS84)\n resolution = scaledenominator * 0.00028 * 180 / (Math.PI * 6378137);\n } else {\n // info : 1 pixel = 0.00028 m\n resolution = scaledenominator * 0.00028;\n }\n resolutions.push(resolution);\n origin = tilematrix.TopLeftCorner;\n }\n }\n\n // tri des résolutions par ordre décroissant\n if (resolutions.sort !== undefined) {\n resolutions.sort(function (x, y) {\n return y - x;\n });\n }\n // tri des identifiants des niveaux de pyramide (matrixIds) par ordre croissant\n if (matrixIds.sort !== undefined) {\n matrixIds.sort(function (x, y) {\n return x - y;\n });\n }\n }\n }\n } else {\n logger.warn(\"[ol.control.LayerImport] TileMatrixSet data not found in getCapabilities response for layer \" + layerInfo.Identifier);\n }\n } else {\n return;\n }\n tmsOptions.tms = tms;\n tmsOptions.projCode = projCode;\n tmsOptions.matrixIds = matrixIds;\n tmsOptions.resolutions = resolutions;\n tmsOptions.origin = origin;\n return tmsOptions;\n };\n\n /**\n * this method is called by this._addGetCapWMTSLayer\n * and sets extent for WMTS layer in map projection (if available in getCapabilities response)\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @return {Array} extent - layer extent\n * @private\n */\n LayerImport.prototype._getWMTSLayerExtent = function (layerInfo) {\n var extent;\n var mapProjCode = this._getMapProjectionCode();\n\n // récupération de l'étendue (bbox)\n if (layerInfo.WGS84BoundingBox && Array.isArray(layerInfo.WGS84BoundingBox)) {\n extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__[\"transformExtent\"])(layerInfo.WGS84BoundingBox, \"EPSG:4326\", mapProjCode);\n }\n return extent;\n };\n\n // ################################################################### //\n // ################################ utils ############################ //\n // ################################################################### //\n\n /**\n * gets control map projection code\n *\n * @return {String} mapProjCode - control map projection code (e.g. \"EPSG:3857\")\n * @private\n */\n LayerImport.prototype._getMapProjectionCode = function () {\n var map = this.getMap();\n if (!map || !map.getView || !map.getView().getProjection) {\n logger.warn(\"unable to get layerimport's map\");\n return;\n }\n var mapProjCode = map.getView().getProjection().getCode();\n return mapProjCode;\n };\n\n // ################################################################### //\n // ################################ clean ############################ //\n // ################################################################### //\n\n /**\n * this method displays waiting container and sets a timeout\n *\n * @private\n */\n LayerImport.prototype._displayWaitingContainer = function () {\n this._waitingContainer.className = \"GPimportWaitingContainerVisible\";\n this._waiting = true;\n\n // mise en place d'un timeout pour réinitialiser le panel (cacher la patience)\n // si on est toujours en attente (si la requête est bloquée par exemple)\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n var context = this;\n this._timer = setTimeout(function () {\n if (context._waiting === true) {\n context._hideWaitingContainer();\n } else {\n if (context._timer) {\n clearTimeout(context._timer);\n }\n }\n }, 16000);\n };\n\n /**\n * this method hides waiting container and clears timeout\n *\n * @private\n */\n LayerImport.prototype._hideWaitingContainer = function () {\n if (this._waiting) {\n this._waitingContainer.className = \"GPimportWaitingContainerHidden\";\n this._waiting = false;\n clearTimeout(this._timer);\n this._timer = null;\n }\n };\n\n /**\n * this method empties getCap results list (DOM element)\n *\n * @private\n */\n LayerImport.prototype.cleanGetCapResultsList = function () {\n this._getCapRequestUrl = null;\n this._getCapResponseWMS = null;\n this._getCapResponseWMTS = null;\n this._getCapResponseWMSLayers = null;\n this._getCapResponseWMTSLayers = null;\n if (this._getCapResultsListContainer) {\n while (this._getCapResultsListContainer.firstChild) {\n this._getCapResultsListContainer.removeChild(this._getCapResultsListContainer.firstChild);\n }\n }\n };\n\n /**\n * this method empties MapBox results list (DOM element)\n *\n * @private\n */\n LayerImport.prototype.cleanMapBoxResultsList = function () {\n this._hasMapBoxResults = false;\n if (this._mapBoxResultsListContainer) {\n while (this._mapBoxResultsListContainer.firstChild) {\n this._mapBoxResultsListContainer.removeChild(this._mapBoxResultsListContainer.firstChild);\n }\n }\n };\n\n /**\n * this method empties MapBox results list (DOM element)\n *\n * @param {*} id - DOM id\n * @private\n */\n LayerImport.prototype.cleanMapBoxResults = function (id) {\n this._hasMapBoxResults = false;\n if (this._mapBoxResultsListContainer) {\n var nodes = this._mapBoxResultsListContainer.childNodes;\n for (var index = 0; index < nodes.length; index++) {\n var element = nodes[index];\n if (element.id === \"GPEditorMapBoxContainer_ID_\" + id) {\n element.remove();\n }\n }\n }\n };\n return LayerImport;\n}(ol_control_Control__WEBPACK_IMPORTED_MODULE_1___default.a);\n/* harmony default export */ __webpack_exports__[\"default\"] = (LayerImport);\n\n// Expose LayerImport as ol.control.LayerImport (for a build bundle)\nif (window.ol && window.ol.control) {\n window.ol.control.LayerImport = LayerImport;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9PcGVuTGF5ZXJzL0NvbnRyb2xzL0xheWVySW1wb3J0LmpzPzNhMTYiXSwibmFtZXMiOlsibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwiTGF5ZXJJbXBvcnQiLCJDb250cm9sIiwib3B0aW9ucyIsIlR5cGVFcnJvciIsIl9pbml0aWFsaXplIiwiY29udGFpbmVyIiwiX2NvbnRhaW5lciIsIl9pbml0Q29udGFpbmVyIiwiY2FsbCIsImVsZW1lbnQiLCJ0YXJnZXQiLCJyZW5kZXIiLCJfX3Byb3RvX18iLCJEZWZhdWx0U3R5bGVzIiwiaW1hZ2UiLCJJY29uIiwic3JjIiwiTWFya2VycyIsImFuY2hvciIsImFuY2hvck9yaWdpbiIsImFuY2hvclhVbml0cyIsImFuY2hvcllVbml0cyIsInN0cm9rZSIsIlN0cm9rZSIsImNvbG9yIiwid2lkdGgiLCJmaWxsIiwiRmlsbCIsInRleHQiLCJUZXh0IiwiZm9udCIsInRleHRBbGlnbiIsInByb3RvdHlwZSIsIk9iamVjdCIsImNyZWF0ZSIsIlV0aWxzIiwiYXNzaWduIiwiTGF5ZXJJbXBvcnRET00iLCJjb25zdHJ1Y3RvciIsInNldE1hcCIsIm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XkgdG9vbHMgZWRpdG9yXG4gKiBAZXhhbXBsZVxuICogIHZhciBMYXllckltcG9ydCA9IG5ldyBvbC5jb250cm9sLkxheWVySW1wb3J0KHtcbiAqICAgICAgXCJjb2xsYXBzZWRcIiA6IGZhbHNlLFxuICogICAgICBcImRyYWdnYWJsZVwiIDogdHJ1ZSxcbiAqICAgICAgXCJsYXllclR5cGVzXCIgOiBbXCJLTUxcIiwgXCJHUFhcIl0sXG4gKiAgICAgIFwid2ViU2VydmljZXNPcHRpb25zXCIgOiB7XG4gKiAgICAgICAgICBcInByb3h5VXJsXCIgOiBcImh0dHA6Ly9sb2NhbGhvc3QvcHJveHkvcGhwL3Byb3h5LnBocD91cmw9XCIsXG4gKiAgICAgICAgICBcIm5vUHJveHlEb21haW5zXCIgOiBbXVxuICogICAgICB9LFxuICogICAgICBcInZlY3RvclN0eWxlT3B0aW9uc1wiIDoge1xuICogICAgICAgICAgXCJLTUxcIiA6IHtcbiAqICAgICAgICAgICAgICBleHRyYWN0U3R5bGVzIDogdHJ1ZSxcbiAqICAgICAgICAgICAgICBkZWZhdWx0U3R5bGUgOiBuZXcgb2wuc3R5bGUuU3R5bGUoe1xuICogICAgICAgICAgICAgICAgICBpbWFnZSA6IG5ldyBvbC5zdHlsZS5JY29uKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBzcmMgOiBcImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NC4uLi5cIixcbiAqICAgICAgICAgICAgICAgICAgICAgICBzaXplIDogWzUxLCAzOF0sXG4gKiAgICAgICAgICAgICAgICAgIH0pLFxuICogICAgICAgICAgICAgICAgICBzdHJva2UgOiBuZXcgb2wuc3R5bGUuU3Ryb2tlKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBjb2xvciA6IFwiI2ZmZmZmZlwiLFxuICogICAgICAgICAgICAgICAgICAgICAgIHdpZHRoIDogN1xuICogICAgICAgICAgICAgICAgICB9KSxcbiAqICAgICAgICAgICAgICAgICAgZmlsbCA6IG5ldyBvbC5zdHlsZS5GaWxsKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBjb2xvciA6IFwicmdiYSgyNTUsIDE4MywgMTUyLCAwLjIpXCJcbiAqICAgICAgICAgICAgICAgICAgfSksXG4gKiAgICAgICAgICAgICAgICAgIHRleHQgOiBuZXcgb2wuc3R5bGUuVGV4dCh7XG4gKiAgICAgICAgICAgICAgICAgICAgICBmb250IDogXCIxNnB4IFNhbnNcIixcbiAqICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbiA6IFwibGVmdFwiLFxuICogICAgICAgICAgICAgICAgICAgICAgZmlsbCA6IG5ldyBvbC5zdHlsZS5GaWxsKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xvciA6IFwicmdiYSgyNTUsIDI1NSwgMjU1LCAxKVwiXG4gKiAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAqICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZSA6IG5ldyBvbC5zdHlsZS5TdHJva2Uoe1xuICogICAgICAgICAgICAgICAgICAgICAgICAgIGNvbG9yIDogXCJyZ2JhKDAsIDAsIDAsIDEpXCIsXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGggOiAyXG4gKiAgICAgICAgICAgICAgICAgICAgICB9KVxuICogICAgICAgICAgICAgICAgICB9KVxuICogICAgICAgICAgICAgIH0pXG4gKiAgICAgICAgICB9LFxuICogICAgICAgICAgXCJHUFhcIiA6IHtcbiAqICAgICAgICAgICAgICBkZWZhdWx0U3R5bGUgOiBuZXcgb2wuc3R5bGUuU3R5bGUoe1xuICogICAgICAgICAgICAgICAgICBpbWFnZSA6IG5ldyBvbC5zdHlsZS5JY29uKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBzcmMgOiBcInBhdGgvdG8vbXkvaWNvbi5wbmdcIixcbiAqICAgICAgICAgICAgICAgICAgICAgICBzaXplIDogWzUxLCAzOF0sXG4gKiAgICAgICAgICAgICAgICAgIH0pLFxuICogICAgICAgICAgICAgICAgICBzdHJva2UgOiBuZXcgb2wuc3R5bGUuU3Ryb2tlKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBjb2xvciA6IFwiI2ZmZmZmZlwiLFxuICogICAgICAgICAgICAgICAgICAgICAgIHdpZHRoIDogN1xuICogICAgICAgICAgICAgICAgICB9KVxuICogICAgICAgICAgICAgIH0pXG4gKiAgICAgICAgICB9XG4gKiAgICAgIH1cbiAqICB9KTtcbiAqL1xudmFyIExheWVySW1wb3J0ID0gKGZ1bmN0aW9uIChDb250cm9sKSB7XG4gICAgLyoqXG4gICAgICogU2VlIHtAbGluayBvbC5jb250cm9sLkxheWVySW1wb3J0fVxuICAgICAqIEBtb2R1bGUgTGF5ZXJJbXBvcnRcbiAgICAgKiBAYWxpYXMgbW9kdWxlOn5Db250cm9scy9MYXllckltcG9ydFxuICAgICAqIEBwYXJhbSB7Kn0gb3B0aW9ucyAtIG9wdGlvbnNcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGltcG9ydCBMYXllckltcG9ydCBmcm9tIFwic3JjL09wZW5MYXllcnMvQ29udHJvbHMvTGF5ZXJJbXBvcnRcIlxuICAgICAqL1xuICAgIGZ1bmN0aW9uIExheWVySW1wb3J0IChvcHRpb25zKSB7XG4gICAgICAgIG9wdGlvbnMgPSBvcHRpb25zIHx8IHt9O1xuXG4gICAgICAgIGlmICghKHRoaXMgaW5zdGFuY2VvZiBMYXllckltcG9ydCkpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoXCJFUlJPUiBDTEFTU19DT05TVFJVQ1RPUlwiKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuX2luaXRpYWxpemUob3B0aW9ucyk7XG5cbiAgICAgICAgLy8gaW5pdCBjb250cm9sIERPTSBjb250YWluZXJcbiAgICAgICAgdmFyIGNvbnRhaW5lciA9IHRoaXMuX2NvbnRhaW5lciA9IHRoaXMuX2luaXRDb250YWluZXIob3B0aW9ucyk7XG5cbiAgICAgICAgLy8gY2FsbCBvbC5jb250cm9sLkNvbnRyb2wgY29uc3RydWN0b3JcbiAgICAgICAgQ29udHJvbC5jYWxsKHRoaXMsIHtcbiAgICAgICAgICAgIGVsZW1lbnQgOiBjb250YWluZXIsXG4gICAgICAgICAgICB0YXJnZXQgOiBvcHRpb25zLnRhcmdldCxcbiAgICAgICAgICAgIHJlbmRlciA6IG9wdGlvbnMucmVuZGVyXG4gICAgICAgIH0pO1xuICAgIH07XG5cbiAgICAvLyBJbmhlcml0cyBmcm9tIG9sLmNvbnRyb2wuQ29udHJvbFxuICAgIGlmIChDb250cm9sKSBMYXllckltcG9ydC5fX3Byb3RvX18gPSBDb250cm9sO1xuXG4gICAgLyoqXG4gICAgICogRGVmYXVsdCBzdHlsZXMgYXBwbHlpZWQgdG8gS01MLCBHUFggYW5kIEdlb0pTT04gZmVhdHVyZXMuXG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIExheWVySW1wb3J0LkRlZmF1bHRTdHlsZXMgPSB7XG4gICAgICAgIGltYWdlIDogbmV3IEljb24oe1xuICAgICAgICAgICAgc3JjIDogTWFya2Vyc1tcImxpZ2h0T3JhbmdlXCJdLFxuICAgICAgICAgICAgYW5jaG9yIDogWzI1LjUsIDM4XSxcbiAgICAgICAgICAgIGFuY2hvck9yaWdpbiA6IFwidG9wLWxlZnRcIixcbiAgICAgICAgICAgIGFuY2hvclhVbml0cyA6IFwicGl4ZWxzXCIsXG4gICAgICAgICAgICBhbmNob3JZVW5pdHMgOiBcInBpeGVsc1wiXG4gICAgICAgIH0pLFxuICAgICAgICBzdHJva2UgOiBuZXcgU3Ryb2tlKHtcbiAgICAgICAgICAgIGNvbG9yIDogXCJyZ2JhKDAsNDIsODAsMC44KVwiLFxuICAgICAgICAgICAgd2lkdGggOiA0XG4gICAgICAgIH0pLFxuICAgICAgICBmaWxsIDogbmV3IEZpbGwoe1xuICAgICAgICAgICAgY29sb3IgOiBcInJnYmEo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GF5ZXJpbXBvcnQ6TUFQQk9YXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGxheWVyIGF5YW50IHVuIGVkaXRvciBJRCBhc3NvY2nDqSA/XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZS5lbGVtZW50LmdwRWRpdG9ySWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBsZSBwYW5uZWF1IGRlcyByw6lzdWx0YXRzIGV4aXN0ZSB0IGlsID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoc2VsZi5fbWFwQm94UGFuZWwgJiYgc2VsZi5faW1wb3J0UGFuZWwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5jbGVhbk1hcEJveFJlc3VsdHMoZS5lbGVtZW50LmdwRWRpdG9ySWQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLl9tYXBCb3hQYW5lbC5zdHlsZS5kaXNwbGF5ID0gXCJub25lXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2ltcG9ydFBhbmVsLnN0eWxlLmRpc3BsYXkgPSBcIlwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgc2VsZlxuICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgLy8gbW9kZSBcImRyYWdnYWJsZVwiXG4gICAgICAgICAgICBpZiAodGhpcy5kcmFnZ2FibGUpIHtcbiAgICAgICAgICAgICAgICBEcmFnZ2FibGUuZHJhZ0VsZW1lbnQoXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX2ltcG9ydFBhbmVsLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9pbXBvcnRQYW5lbEhlYWRlcixcbiAgICAgICAgICAgICAgICAgICAgbWFwLmdldFRhcmdldEVsZW1lbnQoKVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICAvLyBwYW5uZWF1IGRyYWdnYWJsZSBwb3VyIGxlcyByZXN1bHRhdHMgP1xuICAgICAgICAgICAgICAgIERyYWdnYWJsZS5kcmFnRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fZ2V0Q2FwUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX2dldENhcFBhbmVsSGVhZGVyLFxuICAgICAgICAgICAgICAgICAgICBtYXAuZ2V0VGFyZ2V0RWxlbWVudCgpXG5cbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIERyYWdnYWJsZS5kcmFnRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbWFwQm94UGFuZWwsXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX21hcEJveFBhbmVsSGVhZGVyLFxuICAgICAgICAgICAgICAgICAgICBtYXAuZ2V0VGFyZ2V0RWxlbWVudCgpXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIG9uIGFwcGVsbGUgbGEgbcOpdGhvZGUgc2V0TWFwIG9yaWdpbmFsZSBkJ09wZW5MYXllcnNcbiAgICAgICAgQ29udHJvbC5wcm90b3R5cGUuc2V0TWFwLmNhbGwodGhpcywgbWFwKTtcbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyB0cnVlIGlmIHdpZGdldCBpcyBjb2xsYXBzZWQgKG1pbmltaXplZCksIGZhbHNlIG90aGVyd2lzZVxuICAgICAqXG4gICAgICogQHJldHVybnMge0Jvb2xlYW59IGNvbGxhcHNlZCAtIHRydWUgaWYgd2lkZ2V0IGlzIGNvbGxhcHNlZFxuICAgICAqL1xuICAgIExheWVySW1wb3J0LnByb3RvdHlwZS5nZXRDb2xsYXBzZWQgPSBmdW5jdGlvbiAoK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AgdmVjdG9yU3R5bGVPcHRpb25zIDoge1xuICAgICAgICAgICAgICAgIEtNTCA6IHtcbiAgICAgICAgICAgICAgICAgICAgZXh0cmFjdFN0eWxlcyA6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIHNob3dQb2ludE5hbWVzIDogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdFN0eWxlIDoge31cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIEdQWCA6IHtcbiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdFN0eWxlIDoge31cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIEdlb0pTT04gOiB7XG4gICAgICAgICAgICAgICAgICAgIGRlZmF1bHRTdHlsZSA6IHt9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBNYXBCb3ggOiB7XG4gICAgICAgICAgICAgICAgICAgIGRlZmF1bHRTdHlsZSA6IHt9LFxuICAgICAgICAgICAgICAgICAgICBlZGl0b3IgOiB7fVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfTtcblxuICAgICAgICAvLyBUT0RPIGdlc3Rpb24gZHUgcHJveHlcblxuICAgICAgICAvLyBzZXQgZXh0cmFjdFN0eWxlcyBwYXJhbWV0ZXJcbiAgICAgICAgaWYgKG9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zICYmIG9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLktNTCAmJiBvcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuZXh0cmFjdFN0eWxlcykge1xuICAgICAgICAgICAgdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuZXh0cmFjdFN0eWxlcyA9IG9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLktNTC5leHRyYWN0U3R5bGVzO1xuICAgICAgICB9IC8vIFRPRE9cbiAgICAgICAgLy8gc2V0IHNob3d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biAgICAgICAgLy8gb24gdsOpcmlmaWUgbGUgdGFibGVhdSBkZXMgdHlwZXNcbiAgICAgICAgaWYgKG9wdGlvbnMubGF5ZXJUeXBlcykge1xuICAgICAgICAgICAgdmFyIGxheWVyVHlwZXMgPSBvcHRpb25zLmxheWVyVHlwZXM7XG4gICAgICAgICAgICAvLyBvbiB2w6lyaWZpZSBxdWUgbGEgbGlzdGUgZGVzIHR5cGVzIGVzdCBiaWVuIHVuIHRhYmxlYXVcbiAgICAgICAgICAgIGlmICghQXJyYXkuaXNBcnJheShsYXllclR5cGVzKSkge1xuICAgICAgICAgICAgICAgIGxvZ2dlci53YXJuKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdICdvcHRpb25zLmxheWVyVHlwZXMnIHBhcmFtZXRlciBzaG91bGQgYmUgYW4gYXJyYXkuIFNldCBkZWZhdWx0IHZhbHVlcyBbXFxcIktNTFxcXCIsIFxcXCJHUFhcXFwiLCBcXFwiR2VvSlNPTlxcXCIsIFxcXCJXTVNcXFwiLCBcXFwiV01UU1xcXCJdXCIpO1xuICAgICAgICAgICAgICAgIG9wdGlvbnMubGF5ZXJUeXBlcyA9IFtcbiAgICAgICAgICAgICAgICAgICAgXCJLTUxcIixcbiAgICAgICAgICAgICAgICAgICAgXCJHUFhcIixcbiAgICAgICAgICAgICAgICAgICAgXCJHZW9KU09OXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiV01TXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiV01UU1wiLFxuICAgICAgICAgICAgICAgICAgICBcIk1BUEJPWFwiXG4gICAgICAgICAgICAgICAgXTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdmFyIHR5cGVzTGlzdCA9IFtcbiAgICAgICAgICAgICAgICAgICAgXCJLTUxcIixcbiAgICAgICAgICAgICAgICAgICAgXCJHUFhcIixcbiAgICAgICAgICAgICAgICAgICAgXCJHRU9KU09OXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiV01TXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiV01UU1wiLFxuICAgICAgICAgICAgICAgICAgICBcIldGU1wiLFxuICAgICAgICAgICAgICAgICAgICBcIk1BUEJPWFwiXG4gICAgICAgICAgICAgICAgXTtcbiAgICAgICAgICAgICAgICB2YXIgd3JvbmdUeXBlc0luZGV4ZXMgPSBbXTtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxheWVyVHlwZXMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBsYXllclR5cGVzW2ldICE9PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBsJ8OpbMOpbWVudCBkdSB0YWJsZWF1IG4nZXN0IHBhcyB1bmUgY2hhaW5lIGRlIGNhcmFjdMOocmVzLCBvbiBzdG9ja2UgbCdpbmRleCBwb3VyIGxlIHJldGlyZXIgZHUgdGFibGVhdVxuICAgICAgICAgICAgICAgICAgICAgICAgd3JvbmdUeXBlc0luZGV4ZXMucHVzaChpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci53YXJuKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdICdvcHRpb25zLmxheWVyVHlwZXMnIGVsZW1lbnRzIHNob3VsZCBiZSBvZiB0eXBlIHN0cmluZyAoXCIgKyBsYXllclR5cGVzW2ldICsgXCIpXCIpO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gcGFzc2UgZW4gbWFqdXNjdWxlcyBwb3VyIGNvbXBhcmVyXG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllclR5cGVzW2ldID0gbGF5ZXJUeXBlc1tpXS50b1VwcGVyQ2FzZSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVzTGlzdC5pbmRleE9mKGxheWVyVHlwZXNbaV0pID09PSAtMSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHNpIGxlIHR5cGUgbidlc3QgcGFzIHLDqWbDqXJlbmPDqSwgb24gc3RvY2tlIHNvbiBpbmRleCBwb3VyIGxlIHJldGlyZXIgZHUgdGFibGVhdSAoYXByw6hzIGF2b2lyIHRlcm1pbsOpIGRlIHBhcmNvdXJpciBsZSB0YWJsZWF1KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdyb25nVHlwZXNJbmRleGVzLnB1c2goaSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLmxvZyhcIltvbC5jb250cm9sLkxheWVySW1wb3J0XSBvcHRpb25zLmxheWVyVHlwZXMgOiBcIiArIGxheWVyVHlwZXNbaV0gKyBcIiBpcyBub3QgYSBzdXBwb3J0ZWQgdHlwZVwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGNhcyBzcMOpY2lhbCBkdSBHZW9KU09OIHF1J29uIG5lIGxhaXNzZSBwYXMgZW4gbWFqdXNjdWxlc1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGxheWVyVHlwZXNbaV0gPT09IFwiR0VPSlNPTlwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGF5ZXJUeXBlc1tpXSA9IFwiR2VvSlNPTlwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGxheWVyVHlwZXNbaV0gPT09IFwiTUFQQk9YXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXllclR5cGVzW2ldID0gXCJNQVBCT1hcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyBvbiByZXRpcmUgbGVzIHR5cGVzIG5vbiByw6lmw6lyZW5jw6lzIHF1J29uIGEgcHUgcmVuY29udHJlclxuICAgICAgICAgICAgICAgIGlmICh3cm9uZ1R5cGVzSW5kZXhlcy5sZW5ndGggIT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIgaiA9IHdyb25nVHlwZXNJbmRleGVzLmxlbmd0aCAtIDE7IGogPj0gMDsgai0tKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllclR5cGVzLnNwbGljZSh3cm9uZ1R5cGVzSW5kZXhlc1tqXSwgMSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgaXMgY2FsbGVkIGJ5IHRoaXMuaW5pdGlhbGl6ZSgpXG4gICAgICogYW5kIGluaXRpYWxpemVzIGRlZmF1bHQgc3R5bGVzIGZvciB2ZWN0b3IgbGF5ZXJzIChLTUwvR1BYL0dlb0pTT04pXG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIExheWVySW1wb3J0LnByb3RvdHlwZS5faW5pdERlZmF1bHRTdHlsZXMgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgIHZhciBrbWxEZWZhdWx0U3R5bGVzID0gdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuZGVmYXVsdFN0eWxlO1xuICAgICAgICB0aGlzLl9kZWZhdWx0S01MU3R5bGUgPSBuZXcgU3R5bGUoe1xuICAgICAgICAgICAgaW1hZ2UgOiBrbWxEZWZhdWx0U3R5bGVzLmltYWdlLFxuICAgICAgICAgICAgc3Ryb2tlIDoga21sRGVmYXVsdFN0eWxlcy5zdHJva2UsXG4gICAgICAgICAgICBmaWxsIDoga21sRGVmYXVsdFN0eWxlcy5maWxsLFxuICAgICAgICAgICAgdGV4dCA6IGttbERlZmF1bHRTdHlsZXMudGV4dFxuICAgICAgICB9K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llciAoS01ML0dQWC9HZW9KU09OKSBmcm9tIHVybFxuICAgICAqXG4gICAgICogQHBhcmFtIHtTdHJpbmd9IGxheWVyTmFtZSAtIGltcG9ydGVkIGxheWVyIG5hbWVcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIExheWVySW1wb3J0LnByb3RvdHlwZS5faW1wb3J0U3RhdGljTGF5ZXJGcm9tVXJsID0gZnVuY3Rpb24gKGxheWVyTmFtZSkge1xuICAgICAgICAvLyAxLiBSw6ljdXDDqXJhdGlvbiBkZSBsJ3VybFxuICAgICAgICB2YXIgdXJsID0gdGhpcy5fc3RhdGljVXJsSW1wb3J0SW5wdXQudmFsdWU7XG4gICAgICAgIGxvZ2dlci5sb2coXCJ1cmwgOiBcIiwgdXJsKTtcbiAgICAgICAgaWYgKHVybC5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIGxvZ2dlci5lcnJvcihcIltvbC5jb250cm9sLkxheWVySW1wb3J0XSB1cmwgcGFyYW1ldGVyIGlzIG1hbmRhdG9yeVwiKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICAvLyBvbiBzdXBwcmltZSBsZXMgw6l2ZW50dWVscyBlc3BhY2VzIGF2YW50IG91IGFwcsOoc1xuICAgICAgICBpZiAodXJsLnRyaW0pIHtcbiAgICAgICAgICAgIHVybCA9IHVybC50cmltKCk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBzYXV2ZWdhcmRlXG4gICAgICAgIHRoaXMuX3VybCA9IHVybDtcblxuICAgICAgICAvLyBzaSBsZSBub20gbidlc3QgcGFzIHJlbnNlaWduw6ksIG9uIGV4dHJhaXQgbGUgbm9tIGR1IGZpY2hpZXJcbiAgICAgICAgaWYgKCFsYXllck5hbWUpIHtcbiAgICAgICAgICAgIGxheWVyTmFtZSA9IHRoaXMuX3VybC5zdWJzdHJpbmcodGhpcy5fdXJsLmxhc3RJbmRleE9mKFwiL1wiKSArIDEsIHRoaXMuX3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7XG4gICAgICAgICAgICAgICAgICAgIHZhciBfZGVzY3JpcHRpb24gPSBcIlwiO1xuICAgICAgICAgICAgICAgICAgICB2YXIgX3F1aWNrbG9va1VybCA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIHZhciBfbGVnZW5kcyA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIHZhciBfbWV0YWRhdGEgPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICB2YXIgX29yaWdpbmF0b3JzID0gbnVsbDtcblxuICAgICAgICAgICAgICAgICAgICAvLyBsZWN0dXJlIGRlcyBpbmZvcm1hdGlvbnMgZGFucyBsZSBzdHlsZVxuICAgICAgICAgICAgICAgICAgICAvLyBleC4gbWV0YWRhdGEgOiB7XG4gICAgICAgICAgICAgICAgICAgIC8vICAgIGdlb3BvcnRhaWw6W3RpdGxlIHwgZGVzY3JpcHRpb24gfCBxdWlja2xvb2tVcmwgfCBsZWdlbmRzIHwgb3JpZ2luYXRvcnMgfCBtZXRhZGF0YV1cbiAgICAgICAgICAgICAgICAgICAgLy8gfVxuICAgICAgICAgICAgICAgICAgICBpZiAoX2dsU3R5bGVzLm1ldGFkYXRhKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBucyBpbiBfZ2xTdHlsZXMubWV0YWRhdGEpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoX2dsU3R5bGVzLm1ldGFkYXRhLmhhc093blByb3BlcnR5KG5zKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2tleXMgPSBucy5zcGxpdChcIjpcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChfa2V5c1swXSA9PT0gXCJnZW9wb3J0YWlsXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBrZXkgPSBfa2V5c1sxXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChrZXkgPT09IFwidGl0bGVcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF90aXRsZSA9IF9nbFN0eWxlcy5tZXRhZGF0YVtuc107XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoa2V5ID09PSBcImRlc2NyaXB0aW9uXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfZGVzY3JpcHRpb24gPSBfZ2xTdHlsZXMubWV0YWRhdGFbbnNdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGtleSA9PT0gXCJxdWlja2xvb2tVcmxcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9xdWlja2xvb2tVcmwgPSBfZ2xTdHlsZXMubWV0YWRhdGFbbnNdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGtleSA9PT0gXCJsZWdlbmRzXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfbGVnZW5kcyA9IF9nbFN0eWxlcy5tZXRhZGF0YVtuc107XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoa2V5ID09PSBcIm1ldGFkYXRhXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfbWV0YWRhdGEgPSBfZ2xTdHlsZXMubWV0YWRhdGFbbnNdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGtleSA9PT0gXCJvcmlnaW5hdG9yc1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX29yaWdpbmF0b3JzID0gX2dsU3R5bGVzLm1ldGFkYXRhW25zXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIC8vIHRpdHJlIHBhciBkZWZhdXRcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFfdGl0bGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIF90aXRsZSA9IFwiQ291Y2hlIE1hcEJveFwiO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIC8vIGRlc2NyaXB0aW9uIHBhciBkZWZhdXRcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFfZGVzY3JpcHRpb24pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9kZXNjcmlwdGlvbiA9IFwiQ291Y2hlIE1hcEJveFwiO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIC8vIGNhcyBkZXMgbXVsdGlzb3VyY2VzXG4gICAgICAgICAgICAgICAgICAgIF90aXRsZSA9IChfbXVsdGlTb3VyY2VzKSA/IF90aXRsZSArIFwiKFwiICsgX2dsU291cmNlSWQgKyBcIilcIiA6IF90aXRsZTtcblxuICAgICAgICAgICAgICAgICAgICAvLyBzb3VyY2UgbWFwYm94XG4gICAgICAgICAgICAgICAgICAgIHZhciBfZ2xTb3VyY2UgPSBfZ2xTb3VyY2VzW19nbFNvdXJjZUlkXTtcblxuICAgICAgICAgICAgICAgICAgICAvLyBjb25zdHJ1Y3Rpb24gZGUgbGEgY291Y2hlIGVuIGZvbmN0aW9uIGR1IHR5cGVcbiAgICAgICAgICAgICAgICAgICAgdmFyIF9nbFR5cGUgPSBfZ2xTb3VyY2UudHlwZTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoX2dsVHlwZSA9PT0gXCJ2ZWN0b3JcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdXJsIGR1IHRpbGVqc29uIG91IGZsdXggbWFwYm94XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2dsVXJsID0gX2dsU291cmNlLnVybDtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIHVybCBkdSBzZXJ2aWNlIHR1aWzDqVxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIF9nbFRpbGVzID0gX2dsU291cmNlLnRpbGVzO1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gc3ByaXRlc1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIF9nbFNwcml0ZSA9IF9nbFN0eWxlcy5zcHJpdGU7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIEZJWE1FIHNpIG9uIGEgdW4gaW1wb3J0IHBhciBmaWNoaWVyIGxvY2FsICh0aGlzLl9maWxlKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIC0gY29tbWVudCBwYXNzZSB0IG9uIGxhIGNsZWYgLyBsZSB0b2tlbiA/XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAtIGNvbW1lbnQgcmVtcGxhY2VyIHVuIGZsdXggbWFwYm94IHN1ciB1bmUgdXJsIGRlIHNlcnZpY2UgdHVpbMOpIGF2ZWMgdW4gaW1wb3J0IGxvY2FsID9cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChfZ2xVcmwgJiYgX2dsVXJsLmluZGV4T2YoXCJtYXBib3g6Ly9cIikgPT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgX3VybFNlcnZpY2UgPSB0aGlzLl91cmw7IC8vIEZJWE1FIHNpIGZpY2hpZXIgbG9jYWwgIT9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoX3VybFNlcnZpY2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2dsVGlsZXMgPSBbXCJhXCIsIFwiYlwiLCBcImNcIiwgXCJkXCJdLm1hcChmdW5jdGlvbiAoaG9zdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHBhdGggPSBfZ2xVcmwucmVwbGFjZShcIm1hcGJveDovL1wiLCBcIlwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBhY2Nlc3NUb2tlbiA9IF91cmxTZXJ2aWNlLnNwbGl0KFwiP1wiKVsxXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcImh0dHBzOi8vXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaG9zdCArIFwiLnRpbGVzLm1hcGJveC5jb20vdjQvXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGF0aCArIFwiL3t6fS97eH0ve3l9LnZlY3Rvci5wYmY/XCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWNjZXNzVG9rZW47XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBjb252ZXJzaW9uIGRlcyBzcHJpdGVzIHN1ciB1biBhdXRyZSBzY2hlbWUgcXVlIFwibWFwYm94Oi8vXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKF9nbFNwcml0ZS5pbmRleE9mKFwibWFwYm94Oi8vXCIpID09PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgcyA9IF91cmxTZXJ2aWNlLnNwbGl0KFwiP1wiKTsgLy8gRklYTUUgc2kgZmljaGllciBsb2NhbCAhP1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2dsU3R5bGVzLnNwcml0ZSA9IHNbMF0gKyBcIi9zcHJpdGVcIiArIFwiP1wiICsgc1sxXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci53YXJuKFwiTm90IHlldCBpbXBsZW1lbnRlZCwgY2FuJ3QgdXNlIHRoZSBsb2NhbCBpbXBvcnQgc2NoZW1lIHdpdGggYSAnbWFwYm94Oi8vJyBpbiB0aGUgZmlsZS4hXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKF9nbFRpbGVzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2VydmljZSB0dWlsw6kgZXQvb3UgbWFwYm94XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yRm9ybWF0ID0gbmV3IE1WVCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZlYXR1cmVDbGFzcyA6IEZlYXR1cmVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UgPSBuZXcgVmVjdG9yVGlsZVNvdXJjZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJpYnV0aW9ucyA6IF9nbFNvdXJjZS5hdHRyaWJ1dGlvbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9ybWF0IDogdmVjdG9yRm9ybWF0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBJTkZPXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHN1cmNoYXJnZSA6IGdyaWxsZSBlbiAyNTYgc3VyIGR1IHZlY3RldXIgdHVpbMOpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpbGVHcmlkIDogb2xDcmVhdGVYWVpUaWxlR3JpZCh7IC8vIFRPRE8gc2NoZW1lIHRtcyA/XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBleHRlbnQgOiBfZ2xTb3VyY2UuYm91bmRzLCAvLyBbbWlueCwgbWlueSwgbWF4eCwgbWF4eV1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1heFpvb20gOiBfZ2xTb3VyY2UubWF4em9vbSB8fCAyMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1pblpvb20gOiBfZ2xTb3VyY2UubWluem9vbSB8fCAxLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGlsZVNpemUgOiBfZ2xTb3VyY2UudGlsZVNpemUgfHwgMjU2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmxzIDogX2dsVGlsZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UuX3RpdGxlID0gX3RpdGxlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fZGVzY3JpcHRpb24gPSBfZGVzY3JpcHRpb247XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9xdWlja2xvb2tVcmwgPSBfcXVpY2tsb29rVXJsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fbWV0YWRhdGEgPSBfbWV0YWRhdGE7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9sZWdlbmRzID0gX2xlZ2VuZHM7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9vcmlnaW5hdG9ycyA9IF9vcmlnaW5hdG9ycztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB3YWl0aW5nXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLm9uKFwidGlsZWxvYWRzdGFydFwiLCBmdW5jdGlvbiAoZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLl9sb2FkaW5nQ29udGFpbmVyLmNsYXNzTmFtZSA9IFwiR1BtYXBMb2FkaW5nVmlzaWJsZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5vbihcInRpbGVsb2FkZW5kXCIsIGZ1bmN0aW9uIChlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2xvYWRpbmdDb250YWluZXIuY2xhc3NOYW1lID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2Uub24oXCJ0aWxlbG9hZGVycm9yXCIsIGZ1bmN0aW9uIChlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2xvYWRpbmdDb250YWluZXIuY2xhc3NOYW1lID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllciA9IG5ldyBWZWN0b3JUaWxlTGF5ZXIoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzb3VyY2UgOiB2ZWN0b3JTb3VyY2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZpc2libGUgOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gekluZGV4OiAwLCAvLyBGSVhNRSBnZXJlciBsJ29yZHJlIHN1ciBkZXMgbXVsdGlzb3VyY2VzID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVjbHV0dGVyIDogdHJ1ZSAvLyBUT0RPIHV0aWxlID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5pZCA9IF9nbFNvdXJjZUlkO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLmdwUmVzdWx0TGF5ZXJJZCA9IFwibGF5ZXJpbXBvcnQ6XCIgKyB0aGlzLl9jdXJyZW50SW1wb3J0VHlwZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoX2dsVXJsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2VydmljZSBhdmVjIHVuIHRpbGVqc29uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yRm9ybWF0ID0gbmV3IE1WVCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZlYXR1cmVDbGFzcyA6IEZlYXR1cmVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllciA9IG5ldyBWZWN0b3JUaWxlTGF5ZXIoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2aXNpYmxlIDogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHpJbmRleCA6IDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVjbHV0dGVyIDogdHJ1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLmlkID0gX2dsU291cmNlSWQ7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuZ3BSZXN1bHRMYXllcklkID0gXCJsYXllcmltcG9ydDpcIiArIHRoaXMuX2N1cnJlbnRJbXBvcnRUeXBlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB2ZWN0b3JUaWxlSnNvbiA9IG5ldyBUaWxlSlNPTlNvdXJjZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybCA6IF9nbFVybFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGxlY3R1cmUgZHUgdGlsZWpzb24gYXZlYyBleHRlbnNpb24gSUdOXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbGVzIGV4dGVuc2lvbnMgc29udCBlbnJlZ2lzdHLDqWVzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZGFucyBsZXMgcHJvcHJpw6l0w6lzIGRlIGxhIGNvdWNoZSA6IGxheWVyLnNldChtYXBib3gtZXh0ZW5zaW9uKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHBvdXIgdW5lIHV0aWxpc2F0aW9uIHVsdGVyaWV1ciAoZXguIGVkaXRldXIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIF9rZXkgPSB2ZWN0b3JUaWxlSnNvbi5vbihcImNoYW5nZVwiLCBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh2ZWN0b3JUaWxlSnNvbi5nZXRTdGF0ZSgpID09PSBcInJlYWR5XCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBfdGlsZUpTT05Eb2MgPSB2ZWN0b3JUaWxlSnNvbi5nZXRUaWxlSlNPTigpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGlsZXMgPSBBcnJheS5pc0FycmF5KF90aWxlSlNPTkRvYy50aWxlcykgPyBfdGlsZUpTT05Eb2MudGlsZXMgOiBbX3RpbGVKU09ORG9jLnRpbGVzXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgdGlsZXMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGlsZSA9IHRpbGVzW2ldO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aWxlLmluZGV4T2YoXCJodHRwXCIpICE9PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpbGVzW2ldID0gX2dsVXJsICsgdGlsZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UgPSBuZXcgVmVjdG9yVGlsZVNvdXJjZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cmlidXRpb25zIDogdmVjdG9yVGlsZUpzb24uZ2V0QXR0cmlidXRpb25zKCkgfHwgX3RpbGVKU09ORG9jLmF0dHJpYnV0aW9uLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1hdCA6IHZlY3RvckZvcm1hdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBJTkZPXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc3VyY2hhcmdlIDogZ3JpbGxlIGVuIDI1NiBzdXIgZHUgdmVjdGV1ciB0dWlsw6lcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aWxlR3JpZCA6IG9sQ3JlYXRlWFlaVGlsZUdyaWQoeyAvLyBUT0RPIHNjaGVtZSB0bXMgP1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBleHRlbnQgOiBfZ2xTb3VyY2UuYm91bmRzLCAvLyBbbWlueCwgbWlueSwgbWF4eCwgbWF4eV1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4Wm9vbSA6IF9nbFNvdXJjZS5tYXh6b29tIHx8IDIyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtaW5ab29tIDogX2dsU291cmNlLm1pbnpvb20gfHwgMSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGlsZVNpemUgOiBfZ2xTb3VyY2UudGlsZVNpemUgfHwgMjU2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJscyA6IHRpbGVzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fdGl0bGUgPSBfdGl0bGU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UuX2Rlc2NyaXB0aW9uID0gX2Rlc2NyaXB0aW9uO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9xdWlja2xvb2tVcmwgPSBfcXVpY2tsb29rVXJsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9tZXRhZGF0YSA9IF9tZXRhZGF0YTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fbGVnZW5kcyA9IF9sZWdlbmRzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9vcmlnaW5hdG9ycyA9IF9vcmlnaW5hdG9ycztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHdhaXRpbmdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5vbihcInRpbGVsb2Fkc3RhcnRcIiwgZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLl9sb2FkaW5nQ29udGFpbmVyLmNsYXNzTmFtZSA9IFwiR1BtYXBMb2FkaW5nVmlzaWJsZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2Uub24oXCJ0aWxlbG9hZGVuZFwiLCBmdW5jdGlvbiAoZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2xvYWRpbmdDb250YWluZXIuY2xhc3NOYW1lID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuc2V0U291cmNlKHZlY3RvclNvdXJjZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5zZXQoXCJtYXBib3gtZXh0ZW5zaW9uXCIsIF90aWxlSlNPTkRvY1tcInZlY3Rvcl9sYXllcnNcIl0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb2xPYnNlcnZhYmxlVW5CeUtleShfa2V5KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKF9nbFR5cGUgPT09IFwiZ2VvanNvblwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBGSVhNRVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gLSBjYXMgYXZlYyB1biBvYmpldCBkZSB0eXBlIGZlYXR1cmVzID9cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIC0gY2FzIGF2ZWMgdW5lIHVybCByZWxhdGl2ZSA/XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2dsRGF0YSA9IF9nbFNvdXJjZS5kYXRhO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JGb3JtYXQgPSBuZXcgR2VvSlNPTkV4dGVuZGVkKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UgPSBuZXcgVmVjdG9yVGlsZVNvdXJjZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cmlidXRpb25zIDogX2dsU291cmNlLmF0dHJpYnV0aW9uLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1hdCA6IHZlY3RvckZvcm1hdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmwgOiBfZ2xEYXRhXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fdGl0bGUgPSBfdGl0bGU7XG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UuX2Rlc2NyaXB0aW9uID0gX2Rlc2NyaXB0aW9uO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9xdWlja2xvb2tVcmwgPSBfcXVpY2tsb29rVXJsO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9tZXRhZGF0YSA9IF9tZXRhZGF0YTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fbGVnZW5kcyA9IF9sZWdlbmRzO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9vcmlnaW5hdG9ycyA9IF9vcmlnaW5hdG9ycztcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyID0gbmV3IFZlY3RvclRpbGVMYXllcih7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlIDogdmVjdG9yU291cmNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZpc2libGUgOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB6SW5kZXg6IDAsIC8vIEZJWE1FIGdlcmVyIGwnb3JkcmUgc3VyIGRlcyBtdWx0aXNvdXJjZXMgP1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlY2x1dHRlciA6IHRydWUgLy8gVE9ETyB1dGlsZSA/XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLmlkID0gX2dsU291cmNlSWQ7XG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5ncFJlc3VsdExheWVySWQgPSBcImxheWVyaW1wb3J0OlwiICsgdGhpcy5fY3VycmVudEltcG9ydFR5cGU7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIud2FybihcIlR5cGUgTWFwQm94IGZvcm1hdCB1bmtub3duICFcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAvLyBjbG9uZVxuICAgICAgICAgICAgICAgICAgICB2YXIgX2dsU3R5bGUgPSBKU09OLnBhcnNlKEpTT04uc3RyaW5naWZ5KF9nbFN0eWxlcykpO1xuICAgICAgICAgICAgICAgICAgICAvLyBjYXMgZHUgbXVsdGkgc291cmNlXG4gICAgICAgICAgICAgICAgICAgIGlmIChfbXVsdGlTb3VyY2VzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBvbiBzdXBwcmltZSBsZXMgbGF5ZXJzIGludXRpbGVzXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2dsTGF5ZXJzID0gX2dsU3R5bGUubGF5ZXJzO1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIgaWkgPSAwOyBpaSA8IF9nbExheWVycy5sZW5ndGg7IGlpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2dsTGF5ZXIgPSBfZ2xMYXllcnNbaWldO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChfZ2xMYXllci5zb3VyY2UgIT09IF9nbFNvdXJjZUlkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9nbExheWVycy5zcGxpY2UoaWksIDEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBvbiBzdXBwcmltZSBsZXMgc291cmNlcyBpbnV0aWxlc1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIga2V5U291cmNlIGluIF9nbFN0eWxlLnNvdXJjZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoX2dsU3R5bGUuc291cmNlcy5oYXNPd25Qcm9wZXJ0eShrZXlTb3VyY2UpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChrZXlTb3VyY2UgIT09IF9nbFNvdXJjZUlkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWxldGUgX2dsU3R5bGUuc291cmNlc1trZXlTb3VyY2VdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gcGFyYW1ldHJlIMOgIHRyYW5zbWV0dHJlIMOgIGxhIGZvbmN0aW9uIGF1dG8taW52b3F1w6llXG4gICAgICAgICAgICAgICAgICAgIHZhciBwYXJhbXMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZCA6IF9nbFNvdXJjZUlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3R5bGVzIDogX2dsU3R5bGUsXG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllciA6IHZlY3RvckxheWVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9ucyA6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZSA6IGxheWVyTmFtZSB8fCBfdGl0bGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gOiBfZGVzY3JpcHRpb24sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcXVpY2tsb29rVXJsIDogX3F1aWNrbG9va1VybCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXRhZGF0YSA6IF9tZXRhZGF0YSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWdlbmRzIDogX2xlZ2VuZHMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luYXRvcnMgOiBfb3JpZ2luYXRvcnNcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgLy8gZm9uY3Rpb24gYXV0by1pbnZvcXXDqWVcbiAgICAgICAgICAgICAgICAgICAgKGZ1bmN0aW9uIChwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBUT0RPIGFqb3V0ZXIgbGUgc3R5bGUgZGUgdHlwZSBiYWNrZ3JvdW5kICFcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGZvbmN0aW9uIGRlIHN0eWxlIGRlIGxhIGNvdWNoZVxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHNldFN0eWxlID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFwcGx5U3R5bGVPbG1zKHAubGF5ZXIsIHAuc3R5bGVzLCBwLmlkKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdmlzaWJpbGl0eSA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwLmxheWVyLnNldFZpc2libGUodmlzaWJpbGl0eSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgb3BhY2l0eSA9IDE7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwLmxheWVyLnNldE9wYWNpdHkob3BhY2l0eSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGdlc3Rpb24gZHUgY2VudHJlIHN1ciBsYSBjYXJ0ZSBzaSBjZW50ZXIgcmVuc2VpZ27DqSAhXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgcHJvakNvZGUgPSBtYXAuZ2V0VmlldygpLmdldFByb2plY3Rpb24oKS5nZXRDb2RlKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAobWFwLmdldFZpZXcoKSAmJiBwLnN0eWxlcy5jZW50ZXIgJiYgcC5zdHlsZXMuY2VudGVyLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcC5nZXRWaWV3KCkuc2V0Q2VudGVyKG9sVHJhbnNmb3JtUHJvaihwLnN0eWxlcy5jZW50ZXIsIFwiRVBTRzo0MzI2XCIsIHByb2pDb2RlKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGdlc3Rpb24gZHUgem9vbSBzdXIgbGEgY2FydGUgc2kgem9vbSByZW5zZWlnbsOpICFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChtYXAuZ2V0VmlldygpICYmIChwLnN0eWxlcy56b29tIHx8IHAuc3R5bGVzLnpvb20gPT09IDApKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwLmdldFZpZXcoKS5zZXRab29tKHAuc3R5bGVzLnpvb20pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB6b29tIHN1ciBsJ8OpdGVuZHVlIGRlcyBlbnRpdMOpcyByw6ljdXDDqXLDqWVzIChzaSBwb3NzaWJsZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzb3VyY2UgPSBwLmxheWVyLmdldFNvdXJjZSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG1hcC5nZXRWaWV3KCkgJiYgbWFwLmdldFNpemUoKSAmJiBzb3VyY2UuZ2V0RXh0ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHNvdXJjZUV4dGVudCA9IHNvdXJjZS5nZXRFeHRlbnQoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoc291cmNlRXh0ZW50ICYmIHNvdXJjZUV4dGVudFswXSAhPT0gSW5maW5pdHkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwLmdldFZpZXcoKS5maXQoc291cmNlLmdldEV4dGVudCgpLCBtYXAuZ2V0U2l6ZSgpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIG9uIGNhY2hlIGxlIHBhbm5lYXUgZGVzIGltcG9ydHNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2ltcG9ydFBhbmVsLnN0eWxlLmRpc3BsYXkgPSBcIm5vbmVcIjtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZWRpdGV1ciBkZSBzdHlsZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBlZGl0b3IgPSBuZXcgRWRpdG9yKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXQgOiBzZWxmLl9tYXBCb3hSZXN1bHRzTGlzdENvbnRhaW5lcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHlsZSA6IEpTT04ucGFyc2UoSlNPTi5zdHJpbmdpZnkocC5zdHlsZXMpKSwgLy8gY2xvbmVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY29wZSA6IHRoaXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXZlbnRzIDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImVkaXRvcjpvbmxvYWRlZFwiIDogc2VsZi5fb25Mb2FkZWRNYXBCb3gsIC8vIHV0aWxlID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlZGl0b3I6bGF5ZXI6b25jbGlja3Zpc2liaWxpdHlcIiA6IHNlbGYuX29uQ2hhbmdlVmlzaWJpbGl0eVNvdXJjZU1hcEJveCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlZGl0b3I6c3R5bGU6c2NhbGU6b25jaGFuZ2VtaW5cIiA6IHNlbGYuX29uQ2hhbmdlU2NhbGVNaW5Tb3VyY2VNYXBCb3gsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZWRpdG9yOnN0eWxlOnNjYWxlOm9uY2hhbmdlbWF4XCIgOiBzZWxmLl9vbkNoYW5nZVNjYWxlTWF4U291cmNlTWFwQm94LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImVkaXRvcjpsZWdlbmQ6b25jaGFuZ2V2YWx1ZVwiIDogc2VsZi5fb25DaGFuZ2VMZWdlbmRWYWx1ZVNvdXJjZU1hcEJveCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlZGl0b3I6bGVnZW5kOm9uY2xpY2tlZGl0aW9uXCIgOiBzZWxmLl9vbkRpc3BsYXlMYXllclNvdXJjZU1hcEJveFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9vbHMgOiBzZWxmLm9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLk1hcEJveC5lZGl0b3JcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdG9yLnNldENvbnRleHQoXCJtYXBcIiwgbWFwKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5zZXRDb250ZXh0KFwibGF5ZXJcIiwgcC5sYXllcik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBjcmVhdGlvbiBkZSBsJ2VkaXRldXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBlZGl0b3IuY3JlYXRlRWxlbWVudCgpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBleGNlcHRpb24uLi5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVkaXRvci5nZXRMYXllcnMoKS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIklsIG4nZXhpc3RlIHBhcyBkZSBzdHlsZXMgcG91ciBsYSBzb3VyY2UgZGVtYW5kw6llICE/XCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGFmZmljaGFnZSBkdSBwYW5uZWF1IGRlcyBjb3VjaGVzIGFjY2Vzc2libGVzIMOgIGwnZWRpdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoc2VsZi5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5NYXBCb3guZGlzcGxheSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5fbWFwQm94UGFuZWwuc3R5bGUuZGlzcGxheSA9IFwiYmxvY2tcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBoYWNrIHBvdXIgbW9kaWZpZXIgbGUgdGl0cmUgZGUgbGEgY291Y2hlIGRlIGZvbmRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGVsZW1lbnRzID0gc2VsZi5fbWFwQm94UmVzdWx0c0xpc3RDb250YWluZXIuZ2V0RWxlbWVudHNCeUNsYXNzTmFtZShcIkdQRWRpdG9yTWFwQm94TGF5ZXJUaXRsZUxhYmVsXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgZWxlbWVudHMubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gZWxlbWVudHNbaW5kZXhdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQudGV4dENvbnRlbnQgPT09IFwiYmNrZ3JkXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbGVtZW50LnRleHRDb250ZW50ID0gXCJDb3VsZXVyIGRlIHJlbXBsaXNzYWdlXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gYXNzb2NpYXRpb24gZW50cmUgbGUgbGF5ZXIgZXQgbCdlZGl0ZXVyIHZpYSBsJ2lkXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHAubGF5ZXIuc2V0KFwibWFwYm94LWVkaXRvclwiLCBlZGl0b3IuZ2V0SUQoKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGVudm9pIGQndW4gZXZlbmVtZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHVuIHBldSBlbiBkw6ljYWzDqSBwb3VyIGxhaXNzZXIgbGUgdGVtcHMgYXUgRE9NIGRlIGZhaXJlIGxlIGpvYi4uLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcC5kaXNwYXRjaEV2ZW50KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZCA6IGVkaXRvci5nZXRJRCgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBcImVkaXRvcjpsb2FkZWRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHlsZSA6IHAuc3R5bGVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxheWVyIDogcC5sYXllclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sIDEwMCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuY2F0Y2goZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gcHJvcGFnZSBsJ2V4Y2VwdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBlbnZvaSBkJ3VuIGV2ZW5lbWVudCAhXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXAuZGlzcGF0Y2hFdmVudCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQgOiBwLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBcInJlbmRlcjpzdWNjZXNzXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3R5bGUgOiBwLnN0eWxlc1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5jYXRjaChmdW5jdGlvbiAoZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLmVycm9yKGUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZW52b2kgZCd1biBldmVuZW1lbnQgIVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwLmRpc3BhdGNoRXZlbnQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkIDogcC5pZCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlIDogXCJyZW5kZXI6ZmFpbHVyZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVycm9yIDogZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gZXRhdCBkZXMgbGF5ZXJzIGVuIGNvdXJzXG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIud2FybihwLmxheWVyKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gYWpvdXQgZGVzIHN0eWxlcyBkYW5zIGxhIGNhcnRlIHBvdXIgdW5lIHV0aWxpc2F0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBldmVudHVlbGxlIChleC4gZWRpdGV1cilcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vID4gbWFwLnNldChcIm1hcGJveC1zdHlsZXNcIilcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzdHlsZXMgPSBtYXAuZ2V0KFwibWFwYm94LXN0eWxlc1wiKSB8fCB7fTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBpZCA9IHAuaWQ7IC8vIEZJWE1FIDogY29uc3RydWN0aW9uIGQndW4gaWQgdW5pcXVlXG4gICAgICAgICAgICAgICAgICAgICAgICBzdHlsZXNbaWRdID0gcC5zdHlsZXM7XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXAuc2V0KFwibWFwYm94LXN0eWxlc1wiLCBzdHlsZXMpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBham91dCBkZXMgZGlmZmVyZW50cyBzdHlsZXMgZGUgbGEgY291Y2hlXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBwb3VyIHVuZSB1dGlsaXNhdGlvbiBldmVudHVlbGxlIChleC4gZWRpdGV1cilcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vID4gbGF5ZXIuc2V0KFwibWFwYm94LXN0eWxlc1wiKVxuICAgICAgICAgICAgICAgICAgICAgICAgcC5sYXllci5zZXQoXCJtYXBib3gtc3R5bGVzXCIsIHAuc3R5bGVzKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gYWpvdXQgZHUgbGF5ZXIgc3VyIGxhIGNhcnRlXG4gICAgICAgICAgICAgICAgICAgICAgICBtYXAuYWRkTGF5ZXIocC5sYXllcik7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGFwcGxpY2F0aW9uIGR1IHN0eWxlXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocC5sYXllci5nZXRTb3VyY2UoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldFN0eWxlKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHAubGF5ZXIub25jZShcImNoYW5nZTpzb3VyY2VcIiwgc2V0U3R5bGUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBtYWogZHUgZ2VzdGlvbm5haXJlIGRlIGNvdWNoZVxuICAgICAgICAgICAgICAgICAgICAgICAgbWFwLmdldENvbnRyb2xzKCkuZm9yRWFjaChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY29udHJvbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoY29udHJvbCBpbnN0YW5jZW9mIExheWVyU3dpdGNoZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRyb2wuYWRkTGF5ZXIoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcC5sYXllcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwLm9wdGlvbnNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICB9KShwYXJhbXMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgLy8gVE9ETyBzdHlsZSBwYXIgZGVmYXV0IGF1IGNhcyBvw7kgbCdhcHBsaWNhdGlvbiBkdSBzdHlsZSDDqWNob3VlICFcbiAgICAgICAgICAgIC8vIFRPRE8gYXUgbml2ZWF1IGRlIGxhIGNvdWNoZSA6IG1pblJlc29sdXRpb24gZXQgbWF4UmVzb2x1dGlvblxuICAgICAgICAgICAgLy8gRklYTUUgYnVnIGF2ZWMgbGUgZ2VvanNvbiwgdHLDqHMgYml6YXJyZSAhP1xuICAgICAgICAgICAgLy8gICAgICBTaSBvbiBkZXNhY3RpdmUgbCdlZGl0ZXVyLCBPS1xuICAgICAgICAgICAgLy8gICAgICBTaW5vbiBOT0sgIT9cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGlmICh0aGlzLl9jdXJyZW50SW1wb3J0VHlwZSA9PT0gXCJLTUxcIikge1xuICAgICAgICAgICAgICAgIC8vIGxlY3R1cmUgZHUgZmljaGllciBLTUwgOiBjcsOpYXRpb24gZCd1biBmb3JtYXQgb2wuZm9ybWF0LktNTCwgcXVpIHBvc3PDqGRlIHVuZSBtw6l0aG9kZSByZWFkRmVhdHVyZXMgKGV0IHJlYWRQcm9qZWN0aW9uKVxuICAgICAgICAgICAgICAgIHZlY3RvclN0eWxlID0gdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuZGVmYXVsdFN0eWxlO1xuICAgICAgICAgICAgICAgIHZlY3RvckZvcm1hdCA9IG5ldyBLTUxFeHRlbmRlZCh7XG4gICAgICAgICAgICAgICAgICAgIHNob3dQb2ludE5hbWVzIDogdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuc2hvd1BvaW50TmFtZXMsXG4gICAgICAgICAgICAgICAgICAgIGV4dHJhY3RTdHlsZXMgOiB0aGlzLm9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLktNTC5leHRyYWN0U3R5bGVzLFxuICAgICAgICAgICAgICAgICAgICBkZWZhdWx0U3R5bGUgOiBbXG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTdHlsZVxuICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2VcbiAgICAgICAgICAgIGlmICh0aGlzLl9jdXJyZW50SW1wb3J0VHlwZSA9PT0gXCJHUFhcIikge1xuICAgICAgICAgICAgICAgIC8vIGxlY3R1cmUgZHUgZmljaGllciBHUFgg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gICAgICAgLy8gaWRlbnRpZmllciBsZSB0eXBlIGRlIGNhbGN1bCBhdXRob3Jpc8OpIDpcbiAgICAgICAgICAgICAgICAvLyAqIHJvdXRlXG4gICAgICAgICAgICAgICAgLy8gKiBpc29jdXJ2ZVxuICAgICAgICAgICAgICAgIC8vICogZWxldmF0aW9ucGF0aFxuICAgICAgICAgICAgICAgIHZhciBhdXRob3JpemVkQ29udHJvbHMgPSB7XG4gICAgICAgICAgICAgICAgICAgIHJvdXRlIDogeyBjbGFzcyA6IFJvdXRlLCBuYW1lIDogXCJpdGluZXJhaXJlXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgaXNvY3VydmUgOiB7IGNsYXNzIDogSXNvY3VydmUsIG5hbWUgOiBcImlzb2N1cnZlXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgZWxldmF0aW9ucGF0aCA6IHsgY2xhc3MgOiBFbGV2YXRpb25QYXRoLCBuYW1lIDogXCJwcm9maWwgYWx0aW1ldHJpcXVlXCIgfVxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgLy8gaW5mb3JtYXRpb24gw6AgdHJhbnNtZXR0cmUgw6AgbGEgY291Y2hlXG4gICAgICAgICAgICAgICAgdmFyIHR5cGVDb250cm9sID0gY29uZmlnQ29udHJvbC50eXBlO1xuICAgICAgICAgICAgICAgIHZhciBncmFwaENvbnRyb2wgPSBjb25maWdDb250cm9sLnRyYW5zcG9ydDtcbiAgICAgICAgICAgICAgICBpZiAodHlwZUNvbnRyb2wpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gbGEgY2xhc3NlIGR1IGNvbnRyb2xlXG4gICAgICAgICAgICAgICAgICAgIHZhciBuYW1lQ29udHJvbCA9IGF1dGhvcml6ZWRDb250cm9sc1t0eXBlQ29udHJvbF0ubmFtZTtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHRpdGxlQ29udHJvbCA9IChncmFwaENvbnRyb2wpID8gbmFtZUNvbnRyb2wgKyBcIiAoXCIgKyBncmFwaENvbnRyb2wgKyBcIilcIiA6IG5hbWVDb250cm9sO1xuICAgICAgICAgICAgICAgICAgICB2YXIgY2xhc3NDb250cm9sID0gYXV0aG9yaXplZENvbnRyb2xzW3R5cGVDb250cm9sXS5jbGFzcztcbiAgICAgICAgICAgICAgICAgICAgaWYgKGNsYXNzQ29udHJvbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gZXN0IGJpZW4gc3VyIHVuZSBjb3VjaGUgZGUgY2FsY3VsIGF1dGhvcmlzw6kgIVxuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuZ3BSZXN1bHRMYXllcklkID0gXCJsYXllcmltcG9ydDpDT01QVVRFXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBvbiB0cmFuc21ldCBsZXMgaW5mb21hdGlvbnMgdXRpbGVzXG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5zZXQoXCJjb250cm9sXCIsIHR5cGVDb250cm9sKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLnNldChcIm5hbWVcIiwgbmFtZUNvbnRyb2wpO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuc2V0KFwiZ3JhcGhcIiwgZ3JhcGhDb250cm9sKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLnNldChcImRhdGFcIiwgY29uZmlnQ29udHJvbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5zZXQoXCJ0aXRsZVwiLCB0aXRsZUNvbnRyb2wpO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGZvcm1hdEdlb0pTT04gPSBuZXcgR2VvSlNPTkV4dGVuZGVkKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0U3R5bGUgOiB2ZWN0b3JTdHlsZVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgZ2VvanNvbiA9IGZvcm1hdEdlb0pTT04ud3JpdGVGZWF0dXJlcyhmZWF0dXJlcywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGFQcm9qZWN0aW9uIDogXCJFUFNHOjQzMjZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlUHJvamVjdGlvbiA6IFwiRVBTRzozODU3XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuc2V0KFwiZ2VvanNvblwiLCBnZW9qc29uKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIHJlY2hlcmNoZSBldCBpbml0aWFsaXNlciBsZSBjb250cm9sZVxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5nZXRNYXAoKS5nZXRDb250cm9scygpLmZvckVhY2goKGNvbnRyb2wpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoY29udHJvbCBpbnN0YW5jZW9mIGNsYXNzQ29udHJvbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250cm9sLnNldERhdGEoY29uZmlnQ29udHJvbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRyb2wuc2V0TGF5ZXIodmVjdG9yTGF5ZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250cm9sLmluaXQoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgbWFwLmFkZExheWVyKHZlY3RvckxheWVyKTtcblxuICAgICAgICAgICAgLy8gVE9ETyA6IGFwcGVsZXIgZm9uY3Rpb24gY29tbXVuZVxuICAgICAgICAgICAgLy8gem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CB8fCAhdXJsKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB2YXIgdmVjdG9yU291cmNlO1xuICAgICAgICB2YXIgdmVjdG9yTGF5ZXI7XG4gICAgICAgIHZhciB2ZWN0b3JGb3JtYXQ7XG4gICAgICAgIGlmICh0aGlzLl9jdXJyZW50SW1wb3J0VHlwZSA9PT0gXCJNQVBCT1hcIikge1xuICAgICAgICAgICAgLy8gVE9ET1xuICAgICAgICAgICAgbG9nZ2VyLnRyYWNlKFwiTm90IHlldCBpbXBsZW1lbnRlZCAhXCIpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgaWYgKHRoaXMuX2N1cnJlbnRJbXBvcnRUeXBlID09PSBcIktNTFwiKSB7XG4gICAgICAgICAgICAgICAgLy8gbGVjdHVyZSBkdSBmaWNoaWVyIEtNTCA6IGNyw6lhdGlvbiBkJ3VuIGZvcm1hdCBvbC5mb3JtYXQuS01MLCBxdWkgcG9zc8OoZGUgdW5lIG3DqXRob2RlIHJlYWRGZWF0dXJlcyAoZXQgcmVhZFByb2plY3Rpb24pXG4gICAgICAgICAgICAgICAgdmVjdG9yRm9ybWF0ID0gbmV3IEtNTEV4dGVuZGVkKHtcbiAgICAgICAgICAgICAgICAgICAgc2hvd1BvaW50TmFtZXMgOiB0cnVlLCAvLyBGSVhNRSBvcHRpb24gIVxuICAgICAgICAgICAgICAgICAgICBleHRyYWN0U3R5bGVzIDogdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuZXh0cmFjdFN0eWxlcyxcbiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdFN0eWxlIDogW1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuZGVmYXVsdFN0eWxlXG4gICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZS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NvdXJjZSA9IG5ldyBWZWN0b3JTb3VyY2Uoe1xuICAgICAgICAgICAgICAgIHVybCA6IHVybCxcbiAgICAgICAgICAgICAgICBmb3JtYXQgOiB2ZWN0b3JGb3JtYXRcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICBpZiAodGhpcy5fY3VycmVudEltcG9ydFR5cGUgPT09IFwiR1BYXCIpIHtcbiAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UuZm9yRWFjaEZlYXR1cmUoXG4gICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uIChmZWF0dXJlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBhdWN1biBzdHlsZSBuJ2VzdCBhc3NvY2nDqSBhdSBmZWF0dXJlXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZmVhdHVyZS5nZXRTdHlsZSgpID09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIubG9nKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdIHNldCBkZWZhdWx0IHN0eWxlIGZvciBHUFggZmVhdHVyZVwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlLnNldFN0eWxlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLkdQWC5kZWZhdWx0U3R5bGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh0aGlzLl9jdXJyZW50SW1wb3J0VHlwZSA9PT0gXCJHZW9KU09OXCIpIHtcbiAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UuZm9yRWFjaEZlYXR1cmUoXG4gICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uIChmZWF0dXJlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBhdWN1biBzdHlsZSBuJ2VzdCBhc3NvY2nDqSBhdSBmZWF0dXJlXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZmVhdHVyZS5nZXRTdHlsZSgpID09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIubG9nKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdIHNldCBkZWZhdWx0IHN0eWxlIGZvciBHZW9KU09OIGZlYXR1cmVcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZS5zZXRTdHlsZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5HZW9KU09OLmRlZmF1bHRTdHlsZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAvLyBham91dCBkZXMgaW5mb3JtYXRpb25zIHBvdXIgbGUgbGF5ZXJTd2l0Y2hlciAodGl0cmUsIGRlc2NyaXB0aW9uKVxuICAgICAgICAgICAgdmVjdG9yU291cmNlLl90aXRsZSA9IHZlY3RvclNvdXJjZS5fZGVzY3JpcHRpb24gPSBsYXllck5hbWU7XG5cbiAgICAgICAgICAgIHZlY3RvckxheWVyID0gbmV3IFZlY3RvckxheWVyKHtcbiAgICAgICAgICAgICAgICBzb3VyY2UgOiB2ZWN0b3JTb3VyY2VcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gb24gcmFqb3V0ZSBsZSBjaGFtcCBncFJlc3VsdExheWVySWQgcGVybWV0dGFudCBkJ2lkZW50aWZpZXIgdW5lIGNvdWNoZSBjcsOpZSBwYXIgb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CJ2aXNpYmxlXCIgb3IgXCJub25lXCIuLi5cbiAgICAgICAgICAgIHZhciBzdHlsZXMgPSBsYXllci5nZXQoXCJtYXBib3gtc3R5bGVzXCIpO1xuICAgICAgICAgICAgdmFyIGxheWVycyA9IHN0eWxlcy5sYXllcnM7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxheWVycy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIGlmIChsYXllcnNbaV0uaWQgPT09IGRhdGEuaWQpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIGxheW91dCA9IGxheWVyc1tpXS5sYXlvdXQ7XG4gICAgICAgICAgICAgICAgICAgIGlmIChsYXlvdXQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxheW91dC52aXNpYmlsaXR5ID0gKHRhcmdldC5jaGVja2VkKSA/IFwidmlzaWJsZVwiIDogXCJub25lXCI7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllcnNbaV0ubGF5b3V0ID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZpc2liaWxpdHkgOiAodGFyZ2V0LmNoZWNrZWQpID8gXCJ2aXNpYmxlXCIgOiBcIm5vbmVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBhcHBseVN0eWxlT2xtcyhsYXllciwgc3R5bGVzLCBkYXRhLnNvdXJjZSlcbiAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7fSlcbiAgICAgICAgICAgICAgICAuY2F0Y2goZnVuY3Rpb24gKGVycm9yKSB7XG4gICAgICAgICAgICAgICAgICAgIGxvZ2dlci5lcnJvcihlcnJvcik7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgI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QudmFsdWU7XG4gICAgICAgICAgICAgICAgICAgIHRhcmdldC50aXRsZSA9IHRhcmdldC52YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYXBwbHlTdHlsZU9sbXMobGF5ZXIsIHN0eWxlcywgZGF0YS5zb3VyY2UpXG4gICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkge30pXG4gICAgICAgICAgICAgICAgLmNhdGNoKGZ1bmN0aW9uIChlcnJvcikge1xuICAgICAgICAgICAgICAgICAgICBsb2dnZXIuZXJyb3IoZXJyb3IpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIHRoaXMgbWV0aG9kIGlzIGNhbGxlZCBvbiAnX2FkZEltcG9ydE1hcEJveFNjYWxlU291cmNlJyBpbnB1dCBzbGlkZVxuICAgICAqIGFuZCBjaGFuZ2Ugem9vbSBzb3VyY2UgdG8gbWFwXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge09iamVjdH0gZSAtIEhUTUxFbGVtZW50XG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBMYXllckltcG9ydC5wcm90b3R5cGUuX29uQ2hhbmdlU2NhbGVNYXhTb3VyY2VNYXBCb3ggPSBmdW5jdGlvbiAoZSkge1xuICAgICAgICB2YXIgZGF0YSA9IGUudGFyZ2V0LmRhdGEub2JqO1xuICAgICAgICB2YXIgdGFyZ2V0ID0gZS50YXJnZXQuc3JjRWxlbWVudDtcbiAgICAgICAgdmFyIGxheWVyID0gdGhpcy5nZXRDb250ZXh0KFwibGF5ZXJcIik7XG5cbiAgICAgICAgLy8gbG9nZ2VyLnRyYWNlKGxheWVyKTtcbiAgICAgICAgaWYgKGxheWVyLmdldChcIm1hcGJveC1zb3VyY2VcIikgPT09IGRhdGEuc291cmNlICYmIGxheWVyLmdldChcIm1hcGJveC1lZGl0b3JcIikgPT09IGUudGFyZ2V0LmVkaXRvcklEKSB7XG4gICAgICAgICAgICAvLyByZWxvYWQgc3R5bGUgd2l0aCBuZXcgcGFyYW0gOiBtaW5ab29tID0gLi4uXG4gICAgICAgICAgICB2YXIgc3R5bGVzID0gbGF5ZXIuZ2V0KFwibWFwYm94LXN0eWxlc1wiKTtcbiAgICAgICAgICAgIHZhciBsYXllcnMgPSBzdHlsZXMubGF5ZXJzO1xuICAgICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBsYXllcnMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICBpZiAobGF5ZXJzW2ldLmlkID09PSBkYXRhLmlkKSB7XG4gICAgICAgICAgICAgICAgICAgIGxheWVyc1tpXS5tYXh6b29tID0gdGFyZ2V0LnZhbHVlO1xuICAgICAgICAgICAgICAgICAgICB0YXJnZXQudGl0bGUgPSB0YXJnZXQudmFsdWU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGFwcGx5U3R5bGVPbG1zKGxheWVyLCBzdHlsZXMsIGRhdGEuc291cmNlKVxuICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHt9KVxuICAgICAgICAgICAgICAgIC5jYXRjaChmdW5jdGlvbiAoZXJyb3IpIHtcbiAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLmVycm9yKGVycm9yKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBpcyBjYWxsZWQgb24gJydcbiAgICAgKiBhbmQgY2hhbmdlIHpvb20gc291cmNlIHRvIG1hcFxuICAgICAqXG4gICAgICogQHBhcmFtIHtPYmplY3R9IGUgLSBIVE1MRWxlbWVudFxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgTGF5ZXJJbXBvcnQucHJvdG90eXBlLl9vbkNoYW5nZUxlZ2VuZFZhbHVlU291cmNlTWFwQm94ID0gZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgdmFyIGRhdGEgPSBlLnRhcmdldC5kYXRhLm9iajtcbiAgICAgICAgdmFyIHRhcmdldCA9IGUudGFyZ2V0LnNyY0VsZW1lbnQ7XG4gICAgICAgIHZhciBsYXllciA9IHRoaXMuZ2V0Q29udGV4dChcImxheWVyXCIpO1xuXG4gICAgICAgIC8vIGxvZ2dlci50cmFjZShsYXllcik7XG4gICAgICAgIGlmIChsYXllci5nZXQoXCJtYXBib3gtc291cmNlXCIpID09PSBkYXRhLnNvdXJjZSAmJiBsYXllci5nZXQoXCJtYXBib3gtZWRpdG9yXCIpID09PSBlLnRhcmdldC5lZGl0b3JJRCkge1xuICAgICAgICAgICAgLy8gcmVsb2FkIHN0eWxlIHdpdGggbmV3IHBhcmFtIDpcbiAgICAgICAgICAgIHZhciBzdHlsZXMgPSBsYXllci5nZXQoXCJtYXBib3gtc3R5bGVzXCIpO1xuICAgICAgICAgICAgdmFyIGxheWVycyA9IHN0eWxlcy5sYXllcnM7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxheWVycy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIGlmIChsYXllcnNbaV0uaWQgPT09IGRhdGEuaWQpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHBhaW50ID0gbGF5ZXJzW2ldLnBhaW50O1xuICAgICAgICAgICAgICAgICAgICBpZiAocGFpbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhaW50W3RhcmdldC5kYXRhc2V0LmlkXSA9IHRhcmdldC52YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBhcHBseVN0eWxlT2xtcyhsYXllciwgc3R5bGVzLC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gICAgICAgICAgICAgICAgIGlmIChwcm9qZWN0aW9uICYmIHR5cGVvZiBwcm9qZWN0aW9uID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9sR2V0UHJvaihwcm9qZWN0aW9uKSB8fCBvbEdldFByb2oocHJvamVjdGlvbi50b1VwcGVyQ2FzZSgpKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBsYSBwcm9qZWN0aW9uIGRlIGxhIGNvdWNoZSBlc3QgY29ubnVlIHBhciBvbC5wcm9qLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBvbiBham91dGUgY2hhcXVlIGNvdWNoZSBkZSBsYSByw6lwb25zZSBkYW5zIGxhIGxpc3RlIGRlcyBjb3VjaGVzIGFjY2Vzc2libGVzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxheWVyRGVzY3JpcHRpb24gPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250ZW50IDogbGF5ZXJzW2pdLlRpdGxlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGUgOiBsYXllcnNbal0uQWJzdHJhY3QgfHwgbGF5ZXJzW2pdLlRpdGxlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLl9nZXRDYXBSZXN1bHRzTGlzdENvbnRhaW5lcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fYWRkSW1wb3J0R2V0Q2FwUmVzdWx0TGF5ZXIobGF5ZXJEZXNjcmlwdGlvbiwgaiwgdGhpcy5fZ2V0Q2FwUmVzdWx0c0xpc3RDb250YWluZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2kgbGEgcHJvamVjdGlvbiBkZSBsYSBjb3VjaGUgbidlc3QgcGFzIGNvbm51ZSBwYXIgb2wucHJvaixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gbidhZmZpY2hlIHBhcyBsYSBjb3VjaGUgZGFucyBsZSBwYW5lbCBkZXMgcsOpc3VsdGF0c1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIud2FybihcIltvbC5jb250cm9sLkxheWVySW1wb3J0XSB3bXRzIGxheWVyIGNhbm5vdCBiZSBhZGRlZCB0byBtYXAgOiB1bmtub3duIHByb2plY3Rpb25cIiwgbGF5ZXJzW2pdKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIHRoaXMgbWV0aG9kIGlzIGNhbGxlZCBieSB0aGlzLl9kaXNwbGF5R2V0Q2FwUmVzcG9uc2VMYXllcnMgbWV0aG9kXG4gICAgICogYW5kIGRpc3BsYXkgV01TIGxheWVyIGluIGxpc3QgZnJvbSBnZXRjYXBhYmlsaXRpZXMgcmVzcG9uc2VcbiAgICAgKlxuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBsYXllck9iaiAtIG9iamVjdCBjb3JyZXNwb25kaW5nIHRvIDxMYXllcj4gY29udGVudCBpbiBXTVMgR2V0Q2FwYWJpbGl0aWVzIHJlc3BvbnNlXG4gICAgICogQHBhcmFtIHtPYmplY3R9IFtwYXJlbnRMYXllcnNJbmZvc10gLSBvYmplY3QgY29ycmVzcG9uZGluZyB0byBwYXJlbnRzIDxMYXllcj4gY29udGVudCBpbi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m9ybWF0aW9ucyBkZSBsYSBjb3VjaGUgcGFyZW50XG4gICAgICAgIGlmIChwYXJlbnRMYXllcnNJbmZvcykge1xuICAgICAgICAgICAgdmFyIGtleTtcbiAgICAgICAgICAgIHZhciBpO1xuXG4gICAgICAgICAgICAvLyBwcm9wcmnDqXTDqXMgaMOpcml0w6llcyDDoCBham91dGVyIGF1eCBwcm9wcmnDqXTDqXMgcGFyZW50XG4gICAgICAgICAgICB2YXIgYWRkS2V5cyA9IFtcbiAgICAgICAgICAgICAgICBcIkNSU1wiLFxuICAgICAgICAgICAgICAgIFwiU3R5bGVcIlxuICAgICAgICAgICAgICAgIC8vIFwiQXV0aG9yaXR5VVJMXCIgLy8gVE9ET1xuICAgICAgICAgICAgXTtcbiAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBhZGRLZXlzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAga2V5ID0gYWRkS2V5c1tpXTtcbiAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShwYXJlbnRMYXllcnNJbmZvc1trZXldKSAmJiBwYXJlbnRMYXllcnNJbmZvc1trZXldLmxlbmd0aCAhPT0gMCkge1xuICAgICAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShsYXllck9ialtrZXldKSAmJiBsYXllck9ialtrZXldLmxlbmd0aCAhPT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gYWpvdXRlIGNlbGxlcyBkZSBsYSBjb3VjaGUgcGFyZW50XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBuID0gMDsgbiA8IHBhcmVudExheWVyc0luZm9zW2tleV0ubGVuZ3RoOyBuKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAobGF5ZXJPYmpba2V5XS5pbmRleE9mKHBhcmVudExheWVyc0luZm9zW2tleV1bbl0pID09PSAtMSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBsZSBDUlMvU3R5bGUgcGFyZW50IG4nZXN0IHBhcyBkYW5zIGxlcyBDUlMvU3R5bGUgZGUgbGEgY291Y2hlLCBvbiBsJ2Fqb3V0ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXllck9ialtrZXldLnB1c2gocGFyZW50TGF5ZXJzSW5mb3Nba2V5XVtuXSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2kgbGEgY291Y2hlIG4nYSBwYXMgZGUgQ1JTIG91IFN0eWxlLCBvbiByw6ljdXDDqHJlIGNldXggZGUgbGEgY291Y2hlIHBhcmVudFxuICAgICAgICAgICAgICAgICAgICAgICAgbGF5ZXJPYmpba2V5XSA9IHBhcmVudExheWVyc0luZm9zW2tleV07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8vIHByb3ByacOpdMOpcyBxdWkgcmVtcGxhY2VudCBsZXMgdmFsZXVycyBkZXMgcHJvcHJpw6l0w6lzIGjDqXJpdMOpZXMsXG4gICAgICAgICAgICAvLyBjw6BkIG9uIHLDqWN1cMOocmUgbGEgcHJvcHJpw6l0w6kgcGFyZW50IHNldWxlbWVudCBzaSBlbGxlIG4nZXN0IHBhcyBkw6lmaW5pZSBwb3VyIGwnw6lsw6ltZW50IGVuZmFudFxuICAgICAgICAgICAgdmFyIHJlcGxhY2VLZXlzID0gW1xuICAgICAgICAgICAgICAgIFwiQm91bmRpbmdCb3hcIixcbiAgICAgICAgICAgICAgICBcIkVYX0dlb2dyYXBoaWNCb3VuZGluZ0JveFwiLFxuICAgICAgICAgICAgICAgIFwiTWF4U2NhbGVEZW5vbWluYXRvclwiLFxuICAgICAgICAgICAgICAgIFwiTWluU2NhbGVEZW5vbWluYXRvclwiLFxuICAgICAgICAgICAgICAgIFwiQXR0cmlidXRpb25cIixcbiAgICAgICAgICAgICAgICBcIkRpbWVuc2lvblwiLFxuICAgICAgICAgICAgICAgIFwicXVlcnlhYmxlXCIsXG4gICAgICAgICAgICAgICAgXCJjYXNjYWRlZFwiLFxuICAgICAgICAgICAgICAgIFwib3BhcXVlXCIsXG4gICAgICAgICAgICAgICAgXCJub1N1YnNldHNcIixcbiAgICAgICAgICAgICAgICBcImZpeGVkV2lkdGhcIixcbiAgICAgICAgICAgICAgICBcImZpeGVkSGVpZ2h0XCJcbiAgICAgICAgICAgIF07XG4gICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgcmVwbGFjZUtleXMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICBrZXkgPSByZXBsYWNlS2V5c1tpXTtcbiAgICAgICAgICAgICAgICBpZiAocGFyZW50TGF5ZXJzSW5mb3Nba2V5XSAmJiAhbGF5ZXJPYmpba2V5XSkge1xuICAgICAgICAgICAgICAgICAgICBsYXllck9ialtrZXldID0gcGFyZW50TGF5ZXJzSW5mb3Nba2V5XTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAvLyBzaSBvbiBuJ2EgcGFzIGQnaW5mb3MgZGUgY291Y2hlIHBhcmVudCwgb24gZXN0IMOgIGxhIHJhY2luZSBkdSBDYXBhYmlsaXR5LCBvbiBsZSBub3RlXG4gICAgICAgICAgICBsYXllck9iai5faXNSb290TGF5ZXIgPSB0cnVlO1xuICAgICAgICAgICAgbGF5ZXJPYmouX2NvbnRhaW5lciA9IHRoaXMuX2dldENhcFJlc3VsdHNMaXN0Q29udGFpbmVyO1xuICAgICAgICAgICAgaWYgKCFsYXllck9iai5UaXRsZSkge1xuICAgICAgICAgICAgICAgIGxheWVyT2JqLlRpdGxlID0gXCJMaXN0ZSBkZXMgY291Y2hlc1wiO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gMi4gc2kgb24gYSBkJ2F1dHJlcyBjb3VjaGVzIDxMYXllcj4gaW1icmlxdcOpZXMsIG9uIGRlc2NlbmQgZCd1biBuaXZlYXUsIHNpbm9uIG9uIGFmZmljaGUgbGEgY291Y2hlIGRhbnMgbGEgbGlzdGUgZGVzIHLDqXN1bHRhdHNcbiAgICAgICAgaWYgKGxheWVyT2JqLkxheWVyKSB7XG4gICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShsYXllck9iai5MYXllcikpIHtcbiAgICAgICAgICAgICAgICB2YXIgX2NvbnRhaW5lciA9IChsYXllck9iaikgPyBsYXllck9iai5fY29udGFpbmVyIDogcGFyZW50TGF5ZXJzSW5mb3MuX2NvbnRhaW5lcjtcbiAgICAgICAgICAgICAgICB2YXIgX3RpdGxlID0gKGxheWVyT2JqKSA/IGxheWVyT2JqLlRpdGxlIDogcGFyZW50TGF5ZXJzSW5mb3MuVGl0bGU7XG4gICAgICAgICAgICAgICAgbGF5ZXJPYmouX2NvbnRhaW5lciA9IHRoaXMuX2FkZEltcG9ydEdldENhcFJlc3VsdExpc3RSdWJyaXF1ZShfdGl0bGUsIF9jb250YWluZXIpLmxhc3RDaGlsZDtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBqID0gMDsgaiA8IGxheWVyT2JqLkxheWVyLmxlbmd0aDsgaisrKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIG9uIHJlY29tbWVuY2UgcG91ciBjaGFxdWUgc291cyBjb3VjaGUsIGF2ZWMgbGVzIGluZm9zIMOpdmVudHVlbGxlbWVudCBow6lyaXTDqWVzXG4gICAgICAgICAgICAgICAgICAgIHZhciBiUnVicmlxdWVFeGlzdCA9IGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICB2YXIgbHN0UnVicmlxdWUgPSBsYXllck9iai5fY29udGFpbmVyLmdldEVsZW1lbnRzQnlDbGFzc05hbWUoXCJHUGltcG9ydEdldENhcFJ1YnJpcXVlVGl0bGVcIik7XG4gICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGlpID0gMDsgaWkgPCBsc3RSdWJyaXF1ZS5sZW5ndGg7IGlpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChsc3RSdWJyaXF1ZVtpaV0udGl0bGUgPT09IGxheWVyT2JqLlRpdGxlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYlJ1YnJpcXVlRXhpc3QgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxheWVyT2JqLkxheWVyW2pdLl9jb250YWluZXIgPSBsc3RSdWJyaXF1ZVtpaV0ucGFyZW50RWxlbWVudDtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBpZiAoIWJSdWJyaXF1ZUV4aXN0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllck9iai5MYXllcltqXS5fY29udGFpbmVyID0gdGhpcy5fYWRkSW1wb3J0R2V0Q2FwUmVzdWx0UnVicmlxdWUobGF5ZXJPYmouVGl0bGUsIGxheWVyT2JqLl9jb250YWluZXIpLmxhc3RDaGlsZDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9kaXNwbGF5R2V0Q2FwUmVzcG9uc2VXTVNMYXllcihsYXllck9iai5MYXllcltqXSwgbGF5ZXJPYmopO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIC8vIG9uIHLDqWN1cMOocmUgbGEgbG9uZ3VldXIgZGUgbGEgbGlzdGUgZGVzIGNvdWNoZXMgZMOpasOgIHLDqWN1cMOpcsOpZXMsIHBvdXIgYXZvaXIgY2UgcXVpIHNlcmEgbCdpbmRleCBkZSBsYSBjb3VjaGUgw6AgYWpvdXRlci5cbiAgICAgICAgICAgIHZhci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BsYXllck9iai5fcHJvamVjdGlvbiA9IHByb2plY3Rpb247XG4gICAgICAgICAgICAgICAgLy8gb24gYWpvdXRlIGNoYXF1ZSBjb3VjaGUgZGUgbGEgcsOpcG9uc2UgZGFucyBsYSBsaXN0ZSBkZXMgY291Y2hlcyBhY2Nlc3NpYmxlc1xuICAgICAgICAgICAgICAgIGxheWVyRGVzY3JpcHRpb24gPSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnRlbnQgOiBsYXllck9iai5UaXRsZSxcbiAgICAgICAgICAgICAgICAgICAgdGl0bGUgOiBsYXllck9iai5BYnN0cmFjdCB8fCBsYXllck9iai5UaXRsZVxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgLy8gRklYTUUgYmV1cmsgIT9cbiAgICAgICAgICAgICAgICB2YXIgX2lzR29vZENvbnRhaW5lciA9IGxheWVyT2JqLl9jb250YWluZXI7XG4gICAgICAgICAgICAgICAgaWYgKF9pc0dvb2RDb250YWluZXIubG9jYWxOYW1lID09PSBcInVsXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgX2lzR29vZENvbnRhaW5lciA9IF9pc0dvb2RDb250YWluZXIubGFzdENoaWxkO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLl9hZGRJbXBvcnRHZXRDYXBSZXN1bHRMYXllcihsYXllckRlc2NyaXB0aW9uLCBsYXN0SW5kZXgsIF9pc0dvb2RDb250YWluZXIpO1xuXG4gICAgICAgICAgICAgICAgLy8gcHVpcyBvbiBzdG9rZSBsYSBjb3VjaGUgZGFucyBsYSBsaXN0ZSBwb3VyIGZhaXJlIGxlIGxpZW4gYXZlYyBsZSBET01cbiAgICAgICAgICAgICAgICB0aGlzLl9nZXRDYXBSZXNwb25zZVdNU0xheWVyc1tsYXN0SW5kZXhdID0gbGF5ZXJPYmo7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgaXMgY2FsbGVkIG9uICdHUGltcG9ydEdldENhcFByb3Bvc2FsJyBkaXYgY2xpY2tcbiAgICAgKiBhbmQgYWRkIGNvcnJlc3BvbmRpbmcgbGF5ZXIgdG8gbWFwXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge09iamVjdH0gZSAtIEhUTUxFbGVtZW50XG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBMYXllckltcG9ydC5wcm90b3R5cGUuX29uR2V0Q2FwUmVzcG9uc2VMYXllckNsaWNrID0gZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgaWYgKGUudGFyZ2V0ICYmIGUudGFyZ2V0LmlkKSB7XG4gICAgICAgICAgICB2YXIgcHJvcG9zYWxJZCA9IHBhcnNlSW50KGUudGFyZ2V0LmlkLnN1YnN0cigyMyksIDEwKTtcblxuICAgICAgICAgICAgaWYgKGlzTmFOKHByb3Bvc2FsSWQpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB2YXIgbGF5ZXJJbmZvO1xuXG4gICAgICAgICAgICBpZiAodGhpcy5fY3VycmVudEltcG9ydFR5cGUgPT09IFwiV01TXCIpIHtcbiAgICAgICAgICAgICAgICAvLyByw6ljdXDDqXJhdGlvbiBkZXMgaW5mb3JtYXRpb25zIGxpw6llcyDDoCBsYSBjb3VjaGVcbiAgICAgICAgICAgICAgICBsYXllckluZm8gPSB0aGlzLl9nZXRDYXBSZXNwb25zZVdNU0xheWVyc1twcm9wb3NhbElkXTtcbiAgICAgICAgICAgICAgICAvLyBham91dCBkZSBsYSBjb3VjaGUgw6AgbGEgY2FydGVcbiAgICAgICAgICAgICAgICB0aGlzLl9hZGRHZXRDYXBXTVNMYXllcihsYXllckluZm8pO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLl9jdXJyZW50SW1wb3J0VHlwZSA9PT0gXCJXTVRTXCIpIHtcbiAgICAgICAgICAgICAgICAvLyByw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mVzb2x1dGlvbiA9IGxheWVySW5mby5NaW5TY2FsZURlbm9taW5hdG9yICogMC4wMDAyODtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChsYXllckluZm8uTWF4U2NhbGVEZW5vbWluYXRvcikge1xuICAgICAgICAgICAgICAgIGxheWVyVGlsZU9wdGlvbnMubWF4UmVzb2x1dGlvbiA9IGxheWVySW5mby5NYXhTY2FsZURlbm9taW5hdG9yICogMC4wMDAyODtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIGlmIChtYXBVbml0cyA9PT0gXCJkZWdyZWVzXCIpIHtcbiAgICAgICAgICAgIC8vIGluZm8gOiA2Mzc4MTM3ICogMiAqIHBpIC8gMzYwID0gcmF5b24gZGUgbGEgdGVycmUgKGVsbGlwc29pZGUgV0dTODQpXG4gICAgICAgICAgICB2YXIgY3N0ZSA9IDAuMDAwMjggKiAxODAgLyAoTWF0aC5QSSAqIDYzNzgxMzcpO1xuICAgICAgICAgICAgaWYgKGxheWVySW5mby5NaW5TY2FsZURlbm9taW5hdG9yKSB7XG4gICAgICAgICAgICAgICAgbGF5ZXJUaWxlT3B0aW9ucy5taW5SZXNvbHV0aW9uID0gbGF5ZXJJbmZvLk1pblNjYWxlRGVub21pbmF0b3IgKiBjc3RlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGxheWVySW5mby5NYXhTY2FsZURlbm9taW5hdG9yKSB7XG4gICAgICAgICAgICAgICAgbGF5ZXJUaWxlT3B0aW9ucy5tYXhSZXNvbHV0aW9uID0gbGF5ZXJJbmZvLk1heFNjYWxlRGVub21pbmF0b3IgKiBjc3RlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIHRoaXMgbWV0aG9kIGlzIGNhbGxlZCBieSB0aGlzLl9hZGRHZXRDYXBXTVNMYXllclxuICAgICAqIGFuZCBzZXRzIGV4dGVudCBmb3IgV01TIGxheWVyIGluIG1h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m91bmRpbmdCb3gsIFwiRVBTRzo0MzI2XCIsIG1hcFByb2pDb2RlKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgLy8gc2kgamFtYWlzIEVYX0dlb2dyYXBoaWNCb3VuZGluZ0JveCBuJ2VzdCBwYXMgb3UgZXN0IG1hbCByZW5zZWlnbsOpLCBvbiBlc3NhaWUgZGUgcsOpY3Vww6lyZXIgdmlhIGxlIHBhcmFtw6h0cmUgQm91bmRpbmdCb3hcbiAgICAgICAgfSBlbHNlIGlmIChib3VuZGluZ0JveCAmJiBBcnJheS5pc0FycmF5KGJvdW5kaW5nQm94KSkge1xuICAgICAgICAgICAgdmFyIGNycztcbiAgICAgICAgICAgIHZhciBleHRlbnQ7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGJvdW5kaW5nQm94Lmxlbmd0aDsgaSsrKSB7IC8vIG9uIHBldXQgYXZvaXIgcGx1c2lldXJzIEJvdW5kaW5nQm94XG4gICAgICAgICAgICAgICAgY3JzID0gYm91bmRpbmdCb3hbaV0uY3JzO1xuICAgICAgICAgICAgICAgIGV4dGVudCA9IGJvdW5kaW5nQm94W2ldLmV4dGVudDtcbiAgICAgICAgICAgICAgICBpZiAoY3JzKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChjcnMgPT09IG1hcFByb2pDb2RlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBsYSBiYm94IGVzdCBkYW5zIGxhIHByb2plY3Rpb24gZGUgbGEgY2FydGUsIG9uIGxhIHBhc3NlIHRlbGxlIHF1ZWxsZVxuICAgICAgICAgICAgICAgICAgICAgICAgbGF5ZXJUaWxlT3B0aW9ucy5leHRlbnQgPSBleHRlbnQ7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgY3JzID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIG9sUHJvaiA9IG9sR2V0UHJvaihjcnMpID8gb2xHZXRQcm9qKGNycykgOiBvbEdldFByb2ooY3JzLnRvVXBwZXJDYXNlKCkpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGlmICggb2xHZXRQcm9qKGNycykgfHwgb2xHZXRQcm9qKGNycy50b1VwcGVyQ2FzZSgpKSApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAob2xQcm9qKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHNpIGxhIGJib3ggZXN0IGRhbnMgdW5lIHByb2plY3Rpb24gY29ubnVlLCBvbiB2YSBsYSByZXByb2pldGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHRvdXQgZCdhYm9yZCwgb24gZ8OocmUgbGUgY2FzIGRlcyBzeXN0w6htZXMgRVBTRyBnw6lvZ3JhcGhpcXVlcyA6IGludmVyc2lvbiBkZXMgYXhlcyB4IGV0IHlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9sUHJvai5nZXRVbml0cygpID09PSBcImRlZ3JlZXNcIiAmJiBjcnMudG9VcHBlckNhc2UoKS5pbmRleE9mKFwiRVBTR1wiKSA9PT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbGUgdGFibGVhdSBleHRlbnQgZXN0IGludmVyc8OpLCBvbiBhIGJlc29pbiBkZSA6IFttaW55LCBtaW54LCBtYXh4LCBtYXh5XVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHJldmVyc2VkRXh0ZW50ID0gW2V4dGVudFsxXSwgZXh0ZW50WzBdLCBleHRlbnRbM10sIGV4dGVudFsyXV07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXllclRpbGVPcHRpb25zLmV4dGVudCA9IG9sVHJhbnNmb3JtRXh0ZW50UHJvaihyZXZlcnNlZEV4dGVudCwgb2xQcm9qLCBtYXBQcm9qQ29kZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyByZXByb2plY3Rpb24gZGFucyBsYSBwcm9qZWN0aW9uIGRlIGxhIGNhcnRlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXllclRpbGVPcHRpb25zLmV4dGVudCA9IG9sVHJhbnNmb3JtRXh0ZW50UHJvaihleHRlbnQsIG9sUHJvaiwgbWFwUHJvakNvZGUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBpcyBjYWxsZWQgYnkgdGhpcy5fYWRkR2V0Q2FwV01TTGF5ZXJcbiAgICAgKiBhbmQgc2V0cyBtb3JlIGluZm9ybWF0aW9uIGFib3V0IGxheWVyIChsZWdlbmRzLCB0aXRsZSwgZGVzY3JpcHRpb24sIG1ldGFkYXRhLCBvcmlnaW5hdG9ycykgZm9yIGxheWVyU3dpdGNoZXIgb3IgYXR0cmlidXRpb25zIGNvbnRyb2xzXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge09iamVjdH0gbGF5ZXJJbmZvIC0gbGF5ZXIgaW5mb3JtYXRpb24gZnJvbSBnZXRDYXBhYmlsaXRpZXMgcmVzcG9uc2VcbiAgICAgKiBAcGFyYW0ge1N0cmluZ30gbGVnZW5kIC0gbGVnZW5kIHVybFxuICAgICAqIEBwYXJhbSB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XG4gICAgICAgIGlmIChsYXllckluZm8uTWV0YWRhdGFVUkwgJiYgQXJyYXkuaXNBcnJheShsYXllckluZm8uTWV0YWRhdGFVUkwpKSB7XG4gICAgICAgICAgICB3bXNTb3VyY2UuX21ldGFkYXRhID0gW107XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxheWVySW5mby5NZXRhZGF0YVVSTC5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIHZhciBtZXRhZGF0YSA9IGxheWVySW5mby5NZXRhZGF0YVVSTFtpXS5PbmxpbmVSZXNvdXJjZTtcbiAgICAgICAgICAgICAgICBpZiAobWV0YWRhdGEpIHtcbiAgICAgICAgICAgICAgICAgICAgd21zU291cmNlLl9tZXRhZGF0YS5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHVybCA6IG1ldGFkYXRhXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICAvLyBham91dCBkJ8OpdmVudHVlbGxlcyBhdHRyaWJ1dGlvbnMgLyBvcmlnaW5hdG9yc1xuICAgICAgICBpZiAobGF5ZXJJbmZvLkF0dHJpYnV0aW9uKSB7XG4gICAgICAgICAgICB2YXIgYXR0cmlidXRpb24gPSBsYXllckluZm8uQXR0cmlidXRpb247XG4gICAgICAgICAgICB3bXNTb3VyY2UuX29yaWdpbmF0b3JzID0ge307XG4gICAgICAgICAgICBpZiAoYXR0cmlidXRpb24uT25saW5lUmVzb3VyY2UpIHtcbiAgICAgICAgICAgICAgICB3bXNTb3VyY2UuX29yaWdpbmF0b3JzLnVybCA9IGF0dHJpYnV0aW9uLk9ubGluZVJlc291cmNlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGF0dHJpYnV0aW9uLlRpdGxlKSB7XG4gICAgICAgICAgICAgICAgd21zU291cmNlLl9vcmlnaW5hdG9ycy5uYW1lID0gd21zU291cmNl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bnMgOiB0bXNPcHRpb25zLnJlc29sdXRpb25zLFxuICAgICAgICAgICAgbWF0cml4SWRzIDogdG1zT3B0aW9ucy5tYXRyaXhJZHMsXG4gICAgICAgICAgICBvcmlnaW4gOiB0bXNPcHRpb25zLm9yaWdpblxuICAgICAgICB9KTtcblxuICAgICAgICAvLyBSw6ljdXDDqXJhdGlvbiBkdSBzdHlsZSBwYXIgZMOpZmF1dFxuICAgICAgICB2YXIgZGVmYXVsdFN0eWxlO1xuICAgICAgICB2YXIgbGVnZW5kO1xuICAgICAgICBpZiAobGF5ZXJJbmZvLlN0eWxlICYmIEFycmF5LmlzQXJyYXkobGF5ZXJJbmZvLlN0eWxlKSkge1xuICAgICAgICAgICAgdmFyIHN0eWxlO1xuICAgICAgICAgICAgZm9yICh2YXIgcyA9IDA7IHMgPCBsYXllckluZm8uU3R5bGUubGVuZ3RoOyBzKyspIHtcbiAgICAgICAgICAgICAgICBzdHlsZSA9IGxheWVySW5mby5TdHlsZVtzXTtcbiAgICAgICAgICAgICAgICAvLyBvbiByw6ljdXDDqHJlIGxlIHN0eWxlXG4gICAgICAgICAgICAgICAgZGVmYXVsdFN0eWxlID0gc3R5bGUuSWRlbnRpZmllcjtcbiAgICAgICAgICAgICAgICBpZiAoc3R5bGUuaXNEZWZhdWx0KSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIHNpIGMnZXN0IGNlbHVpIHBhciBkw6lmYXV0LCBvbiBsZSBnYXJkZSAob24gbmUgYm91Y2xlIHBsdXMgc3VyIGxlcyBhdXRyZXMgc3R5bGVzKVxuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgLy8gZXQgdW5lIMOpdmVudHVlbGxlIGzDqWdlbmRlXG4gICAgICAgICAgICAgICAgaWYgKHN0eWxlLkxlZ2VuZFVSTCAmJiBBcnJheS5pc0FycmF5KHN0eWxlLkxlZ2VuZFVSTCkgJiYgc3R5bGUuTGVnZW5kVVJ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ICAgdmFyIGNycztcbiAgICAgICAgICAgIGlmIChnZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMgJiYgQXJyYXkuaXNBcnJheShnZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMuVGlsZU1hdHJpeFNldCkpIHtcbiAgICAgICAgICAgICAgICB2YXIgdGlsZU1hdHJpeFNldHMgPSBnZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMuVGlsZU1hdHJpeFNldDtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IHRpbGVNYXRyaXhTZXRzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aWxlTWF0cml4U2V0c1tpXS5JZGVudGlmaWVyID09PSB0bXMgJiYgdGlsZU1hdHJpeFNldHNbaV0uVGlsZU1hdHJpeCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gYSB0cm91dsOpIGxlIFRNUyBjb3JyZXNwb25kYW50XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGlsZU1hdHJpeFNldCA9IHRpbGVNYXRyaXhTZXRzW2ldO1xuICAgICAgICAgICAgICAgICAgICAgICAgY3JzID0gdGlsZU1hdHJpeFNldC5TdXBwb3J0ZWRDUlM7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoY3JzICYmIHR5cGVvZiBjcnMgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAob2xHZXRQcm9qKGNycykgfHwgb2xHZXRQcm9qKGNycy50b1VwcGVyQ2FzZSgpKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm9qZWN0aW9uID0gY3JzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAg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gICAgICAgICAgICAgICAgIHZhciBzY2FsZWRlbm9taW5hdG9yO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHJlc29sdXRpb247XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgdW5pdHM7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aWxlTWF0cml4U2V0LlN1cHBvcnRlZENSUykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb2pDb2RlID0gdGlsZU1hdHJpeFNldC5TdXBwb3J0ZWRDUlM7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvamVjdGlvbiA9IG9sR2V0UHJvaihwcm9qQ29kZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocHJvamVjdGlvbiAmJiBwcm9qZWN0aW9uLmdldFVuaXRzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5pdHMgPSBwcm9qZWN0aW9uLmdldFVuaXRzKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KHRpbGVNYXRyaXhTZXQuVGlsZU1hdHJpeCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBqID0gMDsgaiA8IHRpbGVNYXRyaXhTZXQuVGlsZU1hdHJpeC5sZW5ndGg7IGorKykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zdHJ1Y3Rpb24gZHUgdGFibGVhdSBkZXMgbWF0cml4SWRzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpbGVtYXRyaXggPSB0aWxlTWF0cml4U2V0LlRpbGVNYXRyaXhbal07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aWxlbWF0cml4LklkZW50aWZpZXIgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQgPSBwYXJzZUludCh0aWxlbWF0cml4LklkZW50aWZpZXIsIDEwKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hdHJpeElkcy5wdXNoKGlkKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGNvbnN0cnVjdGlvbiBkdSB0YWJsZWF1IGRlcyByw6lzb2x1dGlvbnMsIGNhbGN1bMOpZXMgw6AgcGFydGlyIGRlcyBkw6lub21pbmF0ZXVycyBkJ8OpY2hlbGxlIChzY2FsZWRlbm9taW5hdG9yKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZWRlbm9taW5hdG9yID0gdGlsZW1hdHJpeC5TY2FsZURlbm9taW5hdG9yO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBjYWxjdWwgZGVzIHLDqXNvbHV0aW9ucyBzZWxvbiBsYSBwcm9qZWN0aW9uIGR1IFRNUyA6IHNlbG9uIHNpIG9uIGEgZGVzIGNvb3Jkb25uw6llcyBwbGFuZXMgb3UgZ8Opb2dyYXBoaXF1ZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHVuaXRzID09PSBcImRlZ3JlZXNcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gaW5mbyA6IDYzNzgxMzcgKiAyICogcGkgLyAzNjAgPSByYXlvbiBkZSBsYSB0ZXJyZSAoZWxsaXBzb2lkZSBXR1M4NClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdXRpb24gPSBzY2FsZWRlbm9taW5hdG9yICogMC4wMDAyOCAqIDE4MCAvIChNYXRoLlBJICogNjM3ODEzNyk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBpbmZvIDogMSBwaXhlbCA9IDAuMDAwMjggbVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x1dGlvbiA9IHNjYWxlZGVub21pbmF0b3IgKiAwLjAwMDI4O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdXRpb25zLnB1c2gocmVzb2x1dGlvbik7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luID0gdGlsZW1hdHJpeC5Ub3BMZWZ0Q29ybmVyO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdHJpIGRlcyByw6lzb2x1dGlvbnMgcGFyIG9yZHJlIGTDqWNyb2lzc2FudFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlc29sdXRpb25zLnNvcnQgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdXRpb25zLnNvcnQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uICh4LCB5KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4geSAtIHg7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdHJpIGRlcyBpZGVudGlmaWFudHMgZGVzIG5pdmVhdXggZGUgcHlyYW1pZGUgKG1hdHJpeElkcykgcGFyIG9yZHJlIGNyb2lzc2FudFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG1hdHJpeElkcy5zb3J0ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXRyaXhJZHMuc29ydChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKHgsIHkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB4IC0geTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGxvZ2dlci53YXJuKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdIFRpbGVNYXRyaXhTZXQgZGF0YSBub3QgZm91bmQgaW4gZ2V0Q2FwYWJpbGl0aWVzIHJlc3BvbnNlIGZvciBsYXllciBcIiArIGxheWVySW5mby5JZGVudGlmaWVyKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRtc09wdGlvbnMudG1zID0gdG1zO1xuICAgICAgICB0bXNPcHRpb25zLnByb2pDb2RlID0gcHJvakNvZGU7XG4gICAgICAgIHRtc09wdGlvbnMubWF0cml4SWRzID0gbWF0cml4SWRzO1xuICAgICAgICB0bXNPcHRpb25zLnJlc29sdXRpb25zID0gcmVzb2x1dGlvbnM7XG4gICAgICAgIHRtc09wdGlvbnMub3JpZ2luID0gb3JpZ2luO1xuXG4gICAgICAgIHJldHVybiB0bXNPcHRpb25zO1xuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBpcyBjYWxsZWQgYnkgdGhpcy5fYWRkR2V0Q2FwV01UU0xheWVyXG4gICAgICogYW5kIHNldHMgZXh0ZW50IGZvciBXTVRTIGxheWVyIGluIG1hcCBwcm9qZWN0aW9uIChpZiBhdmFpbGFibGUga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AgICAgICAgICBjbGVhclRpbWVvdXQoY29udGV4dC5fdGltZXIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSwgMTYwMDApO1xuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBoaWRlcyB3YWl0aW5nIGNvbnRhaW5lciBhbmQgY2xlYXJzIHRpbWVvdXRcbiAgICAgKlxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgTGF5ZXJJbXBvcnQucHJvdG90eXBlLl9oaWRlV2FpdGluZ0NvbnRhaW5lciA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgaWYgKHRoaXMuX3dhaXRpbmcpIHtcbiAgICAgICAgICAgIHRoaXMuX3dhaXRpbmdDb250YWluZXIuY2xhc3NOYW1lID0gXCJHUGltcG9ydFdhaXRpbmdDb250YWluZXJIaWRkZW5cIjtcbiAgICAgICAgICAgIHRoaXMuX3dhaXRpbmcgPSBmYWxzZTtcbiAgICAgICAgICAgIGNsZWFyVGltZW91dCh0aGlzLl90aW1lcik7XG4gICAgICAgICAgICB0aGlzLl90aW1lciA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgZW1wdGllcyBnZXRDYXAgcmVzdWx0cyBsaXN0IChET00gZWxlbWVudClcbiAgICAgKlxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgTGF5ZXJJbXBvcnQucHJvdG90eXBlLmNsZWFuR2V0Q2FwUmVzdWx0c0xpc3QgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgIHRoaXMuX2dldENhcFJlcXVlc3RVcmwgPSBudWxsO1xuICAgICAgICB0aGlzLl9nZXRDYXBSZXNwb25zZVdNUyA9IG51bGw7XG4gICAgICAgIHRoaXMuX2dldENhcFJlc3BvbnNlV01UUyA9IG51bGw7XG4gICAgICAgIHRoaXMuX2dldENhcFJlc3BvbnNlV01TTGF5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cEJveCByZXN1bHRzIGxpc3QgKERPTSBlbGVtZW50KVxuICAgICAqXG4gICAgICogQHBhcmFtIHsqfSBpZCAtIERPTSBpZFxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgTGF5ZXJJbXBvcnQucHJvdG90eXBlLmNsZWFuTWFwQm94UmVzdWx0cyA9IGZ1bmN0aW9uIChpZCkge1xuICAgICAgICB0aGlzLl9oYXNNYXBCb3hSZXN1bHRzID0gZmFsc2U7XG4gICAgICAgIGlmICh0aGlzLl9tYXBCb3hSZXN1bHRzTGlzdENvbnRhaW5lcikge1xuICAgICAgICAgICAgdmFyIG5vZGVzID0gdGhpcy5fbWFwQm94UmVzdWx0c0xpc3RDb250YWluZXIuY2hpbGROb2RlcztcbiAgICAgICAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPCBub2Rlcy5sZW5ndGg7IGluZGV4KyspIHtcbiAgICAgICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gbm9kZXNbaW5kZXhdO1xuICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LmlkID09PSBcIkdQRWRpdG9yTWFwQm94Q29udGFpbmVyX0lEX1wiICsgaWQpIHtcbiAgICAgICAgICAgICAgICAgICAgZWxlbWVudC5yZW1vdmUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgcmV0dXJuIExheWVySW1wb3J0O1xufShDb250cm9sKSk7XG5cbmV4cG9ydCBkZWZhdWx0IExheWVySW1wb3J0O1xuXG4vLyBFeHBvc2UgTGF5ZXJJbXBvcnQgYXMgb2wuY29udHJvbC5MYXllckltcG9ydCAoZm9yIGEgYnVpbGQgYnVuZGxlKVxuaWYgKHdpbmRvdy5vbCAmJiB3aW5kb3cub2wuY29udHJvbCkge1xuICAgIHdpbmRvdy5vbC5jb250cm9sLkxheWVySW1wb3J0ID0gTGF5ZXJJbXBvcnQ7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/OpenLayers/Controls/LayerImport.js\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CSS_Controls_LayerImport_GPimportOpenLayers_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../CSS/Controls/LayerImport/GPimportOpenLayers.css */ \"./src/OpenLayers/CSS/Controls/LayerImport/GPimportOpenLayers.css\");\n/* harmony import */ var _CSS_Controls_LayerImport_GPimportOpenLayers_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CSS_Controls_LayerImport_GPimportOpenLayers_css__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var ol_control_Control__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ol/control/Control */ \"ol/control/Control\");\n/* harmony import */ var ol_control_Control__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ol_control_Control__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ol_Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ol/Observable */ \"ol/Observable\");\n/* harmony import */ var ol_Observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(ol_Observable__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var ol_Collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ol/Collection */ \"ol/Collection\");\n/* harmony import */ var ol_Collection__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ol_Collection__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var ol_Feature__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ol/Feature */ \"ol/Feature\");\n/* harmony import */ var ol_Feature__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ol_Feature__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ol/tilegrid/WMTS */ \"ol/tilegrid/WMTS\");\n/* harmony import */ var ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ol/proj */ \"ol/proj\");\n/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ol_proj__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var ol_format_MVT__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ol/format/MVT */ \"ol/format/MVT\");\n/* harmony import */ var ol_format_MVT__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ol_format_MVT__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ol/format/WMSCapabilities */ \"ol/format/WMSCapabilities\");\n/* harmony import */ var ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ol/format/WMTSCapabilities */ \"ol/format/WMTSCapabilities\");\n/* harmony import */ var ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ol/layer/VectorTile */ \"ol/layer/VectorTile\");\n/* harmony import */ var ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ol/layer/Vector */ \"ol/layer/Vector\");\n/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ol/layer/Tile */ \"ol/layer/Tile\");\n/* harmony import */ var ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ol/source/VectorTile */ \"ol/source/VectorTile\");\n/* harmony import */ var ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ol/source/Vector */ \"ol/source/Vector\");\n/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(ol_source_Vector__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ol/source/TileWMS */ \"ol/source/TileWMS\");\n/* harmony import */ var ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var ol_source_WMTS__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ol/source/WMTS */ \"ol/source/WMTS\");\n/* harmony import */ var ol_source_WMTS__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(ol_source_WMTS__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ol/source/TileJSON */ \"ol/source/TileJSON\");\n/* harmony import */ var ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ol/style */ \"ol/style\");\n/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(ol_style__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ol-mapbox-style */ \"./node_modules/ol-mapbox-style/dist/index.js\");\n/* harmony import */ var geoportal_access_lib__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! geoportal-access-lib */ \"./node_modules/geoportal-access-lib/src/Gp.js\");\n/* harmony import */ var _Editor__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Editor */ \"./src/OpenLayers/Controls/Editor.js\");\n/* harmony import */ var _Utils_Markers__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Utils/Markers */ \"./src/OpenLayers/Controls/Utils/Markers.js\");\n/* harmony import */ var _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../Common/Utils/Draggable */ \"./src/Common/Utils/Draggable.js\");\n/* harmony import */ var _Utils_Interactions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Utils/Interactions */ \"./src/OpenLayers/Controls/Utils/Interactions.js\");\n/* harmony import */ var _Common_Utils__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../Common/Utils */ \"./src/Common/Utils.js\");\n/* harmony import */ var _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../Common/Utils/LoggerByDefault */ \"./src/Common/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../Common/Utils/SelectorID */ \"./src/Common/Utils/SelectorID.js\");\n/* harmony import */ var _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../Common/Utils/ProxyUtils */ \"./src/Common/Utils/ProxyUtils.js\");\n/* harmony import */ var _Common_Controls_LayerImportDOM__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../Common/Controls/LayerImportDOM */ \"./src/Common/Controls/LayerImportDOM.js\");\n/* harmony import */ var _Formats_KML__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../Formats/KML */ \"./src/OpenLayers/Formats/KML.js\");\n/* harmony import */ var _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../Formats/GeoJSON */ \"./src/OpenLayers/Formats/GeoJSON.js\");\n/* harmony import */ var _Formats_GPX__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../Formats/GPX */ \"./src/OpenLayers/Formats/GPX.js\");\n/* harmony import */ var _LayerSwitcher__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./LayerSwitcher */ \"./src/OpenLayers/Controls/LayerSwitcher.js\");\n/* harmony import */ var _Route__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./Route */ \"./src/OpenLayers/Controls/Route.js\");\n/* harmony import */ var _Isocurve__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./Isocurve */ \"./src/OpenLayers/Controls/Isocurve.js\");\n/* harmony import */ var _ElevationPath__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./ElevationPath */ \"./src/OpenLayers/Controls/ElevationPath.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n// import CSS\n\n// import OpenLayers\n\n\n\n\n\n// import { createXYZ as olCreateXYZTileGrid } from \"ol/tilegrid\"; // FIXME olCreateXYZTileGrid !?\n\n\n\n\n\n\n\n\n\n\n\n\n\n// import olms : module ES6\n\n// import olms : bundle\n// import olms from \"ol-mapbox-style\";\n// import geoportal library access\n\n// import local\n\n\n\n\n\n\n\n\n\n// import local with ol dependencies\n\n\n\n\n\n\n\nvar logger = _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_26__[\"default\"].getLogger(\"layerimport\");\n\n/**\n * @classdesc\n *\n * LayerImport Control. Allows users to add geographical data in standards formats from their own sources to the map.\n *\n * @constructor\n * @alias ol.control.LayerImport\n * @extends {ol.control.Control}\n * @type {ol.control.LayerImport}\n * @param {Object} options - options for function call.\n * @param {Boolean} [options.collapsed = true] - Specify if LayerImport control should be collapsed at startup. Default is true.\n * @param {Boolean} [options.draggable = false] - Specify if widget is draggable\n * @param {Array} [options.layerTypes = [\"KML\", \"GPX\", \"GeoJSON\", \"WMS\", \"WMTS\", \"MAPBOX\"]] - data types that could be imported : \"KML\", \"GPX\", \"GeoJSON\", \"WMS\", \"WMTS\" and \"MAPBOX\". Values will be displayed in the same order in widget list.\n * @param {Object} [options.webServicesOptions = {}] - Options to import WMS or WMTS layers\n * @param {String} [options.webServicesOptions.proxyUrl] - Proxy URL to avoid cross-domain problems. Mandatory to import WMS and WMTS layer.\n * @param {Array.} [options.webServicesOptions.noProxyDomains] - Proxy will not be used for this list of domain names. Only use if you know what you're doing.\n * @param {Object} [options.vectorStyleOptions] - Options for imported vector layer styling (KML, GPX, GeoJSON)\n * @param {Object} [options.vectorStyleOptions.KML] - Options for KML layer styling\n * @param {Boolean} [options.vectorStyleOptions.KML.extractStyles = true] - Extract styles from the KML. Default is true.\n * @param {Boolean} [options.vectorStyleOptions.KML.showPointNames = true] - Show names as labels for KML placemarks which contain points. Default is true.\n * @param {Object} [options.vectorStyleOptions.KML.defaultStyle] - default style to be applied to KML imports in case no style is defined. defaultStyle is an {@link http://openlayers.org/en/latest/apidoc/ol.style.Style.html ol.style.Style} object.\n * @param {Object} [options.vectorStyleOptions.GPX] - Options for GPX layer styling\n * @param {Object} [options.vectorStyleOptions.GPX.defaultStyle] - default style to be applied to GPX imports in case no style is defined. defaultStyle is an {@link http://openlayers.org/en/latest/apidoc/ol.style.Style.html ol.style.Style} object.\n * @param {Object} [options.vectorStyleOptions.GeoJSON] - Options for GeoJSON layer styling\n * @param {Object} [options.vectorStyleOptions.GeoJSON.defaultStyle] - default style to be applied to GeoJSON imports in case no style is defined. defaultStyle is an {@link http://openlayers.org/en/latest/apidoc/ol.style.Style.html ol.style.Style} object.\n * @param {Object} [options.vectorStyleOptions.MapBox] - Options for MapBox layer styling\n * @param {Object} [options.vectorStyleOptions.MapBox.defaultStyle] - default style to be applied to MapBox imports in case no style is defined. defaultStyle is an {@link http://openlayers.org/en/latest/apidoc/ol.style.Style.html ol.style.Style} object.\n * @param {Object} [options.vectorStyleOptions.MapBox.editor] - options for tools editor\n * @param {Boolean} [options.vectorStyleOptions.MapBox.display = true] - display tools editor\n * @example\n * var LayerImport = new ol.control.LayerImport({\n * \"collapsed\" : false,\n * \"draggable\" : true,\n * \"layerTypes\" : [\"KML\", \"GPX\"],\n * \"webServicesOptions\" : {\n * \"proxyUrl\" : \"http://localhost/proxy/php/proxy.php?url=\",\n * \"noProxyDomains\" : []\n * },\n * \"vectorStyleOptions\" : {\n * \"KML\" : {\n * extractStyles : true,\n * defaultStyle : new ol.style.Style({\n * image : new ol.style.Icon({\n * src : \"data:image/png;base64....\",\n * size : [51, 38],\n * }),\n * stroke : new ol.style.Stroke({\n * color : \"#ffffff\",\n * width : 7\n * }),\n * fill : new ol.style.Fill({\n * color : \"rgba(255, 183, 152, 0.2)\"\n * }),\n * text : new ol.style.Text({\n * font : \"16px Sans\",\n * textAlign : \"left\",\n * fill : new ol.style.Fill({\n * color : \"rgba(255, 255, 255, 1)\"\n * }),\n * stroke : new ol.style.Stroke({\n * color : \"rgba(0, 0, 0, 1)\",\n * width : 2\n * })\n * })\n * })\n * },\n * \"GPX\" : {\n * defaultStyle : new ol.style.Style({\n * image : new ol.style.Icon({\n * src : \"path/to/my/icon.png\",\n * size : [51, 38],\n * }),\n * stroke : new ol.style.Stroke({\n * color : \"#ffffff\",\n * width : 7\n * })\n * })\n * }\n * }\n * });\n */\nvar LayerImport = function (Control) {\n /**\n * See {@link ol.control.LayerImport}\n * @module LayerImport\n * @alias module:~Controls/LayerImport\n * @param {*} options - options\n * @example\n * import LayerImport from \"src/OpenLayers/Controls/LayerImport\"\n */\n function LayerImport(options) {\n options = options || {};\n if (!(this instanceof LayerImport)) {\n throw new TypeError(\"ERROR CLASS_CONSTRUCTOR\");\n }\n this._initialize(options);\n\n // init control DOM container\n var container = this._container = this._initContainer(options);\n\n // call ol.control.Control constructor\n Control.call(this, {\n element: container,\n target: options.target,\n render: options.render\n });\n }\n ;\n\n // Inherits from ol.control.Control\n if (Control) LayerImport.__proto__ = Control;\n\n /**\n * Default styles applyied to KML, GPX and GeoJSON features.\n *\n * @private\n */\n LayerImport.DefaultStyles = {\n image: new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Icon\"]({\n src: _Utils_Markers__WEBPACK_IMPORTED_MODULE_22__[\"default\"][\"lightOrange\"],\n anchor: [25.5, 38],\n anchorOrigin: \"top-left\",\n anchorXUnits: \"pixels\",\n anchorYUnits: \"pixels\"\n }),\n stroke: new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Stroke\"]({\n color: \"rgba(0,42,80,0.8)\",\n width: 4\n }),\n fill: new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Fill\"]({\n color: \"rgba(0, 183, 152, 0.5)\"\n }),\n text: new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Text\"]({\n font: \"16px Sans\",\n textAlign: \"left\",\n fill: new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Fill\"]({\n color: \"rgba(255, 255, 255, 1)\"\n }),\n stroke: new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Stroke\"]({\n color: \"rgba(0, 0, 0, 1)\",\n width: 2\n })\n })\n };\n\n /**\n * @lends module:LayerImport\n */\n LayerImport.prototype = Object.create(Control.prototype, {});\n\n // on récupère les méthodes de la classe commune LayerImportDOM\n _Common_Utils__WEBPACK_IMPORTED_MODULE_25__[\"default\"].assign(LayerImport.prototype, _Common_Controls_LayerImportDOM__WEBPACK_IMPORTED_MODULE_29__[\"default\"]);\n\n /**\n * Constructor (alias)\n *\n * @private\n */\n LayerImport.prototype.constructor = LayerImport;\n\n // ################################################################### //\n // ############## public methods (getters, setters) ################## //\n // ################################################################### //\n\n /**\n * Overwrite OpenLayers setMap method\n *\n * @param {ol.Map} map - Map.\n */\n LayerImport.prototype.setMap = function (map) {\n // ajout de la patience pour le chargement des tuiles\n if (map) {\n // Animation au centre de la carte ?\n // var center = this._loadingContainer = this._createLoadingElement();\n // map.getViewport().appendChild(center);\n\n var self = this;\n map.getLayers().on(\"remove\", function (e) {\n // import de type layerimport:MapBox ?\n if (e.element.gpResultLayerId === \"layerimport:MAPBOX\") {\n // layer ayant un editor ID associé ?\n if (e.element.gpEditorId) {\n // le panneau des résultats existe t il ?\n if (self._mapBoxPanel && self._importPanel) {\n self.cleanMapBoxResults(e.element.gpEditorId);\n self._mapBoxPanel.style.display = \"none\";\n self._importPanel.style.display = \"\";\n }\n }\n }\n }, self);\n\n // mode \"draggable\"\n if (this.draggable) {\n _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_23__[\"default\"].dragElement(this._importPanel, this._importPanelHeader, map.getTargetElement());\n\n // panneau draggable pour les resultats ?\n _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_23__[\"default\"].dragElement(this._getCapPanel, this._getCapPanelHeader, map.getTargetElement());\n _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_23__[\"default\"].dragElement(this._mapBoxPanel, this._mapBoxPanelHeader, map.getTargetElement());\n }\n }\n\n // on appelle la méthode setMap originale d'OpenLayers\n Control.prototype.setMap.call(this, map);\n };\n\n /**\n * Returns true if widget is collapsed (minimized), false otherwise\n *\n * @returns {Boolean} collapsed - true if widget is collapsed\n */\n LayerImport.prototype.getCollapsed = function () {\n return this.collapsed;\n };\n\n /**\n * Collapse or display widget main container\n *\n * @param {Boolean} collapsed - True to collapse widget, False to display it\n */\n LayerImport.prototype.setCollapsed = function (collapsed) {\n if (collapsed === undefined) {\n logger.error(\"[ERROR] LayerImport:setCollapsed - missing collapsed parameter\");\n return;\n }\n if (collapsed && this.collapsed || !collapsed && !this.collapsed) {\n return;\n }\n if (collapsed) {\n document.getElementById(\"GPimportPanelClose-\" + this._uid).click();\n } else {\n document.getElementById(\"GPshowImport-\" + this._uid).click();\n }\n this.collapsed = collapsed;\n };\n\n /**\n * Returns content of a static import (KML, GPX or GeoJSON)\n *\n * @returns {String} contentStatic - content static\n */\n LayerImport.prototype.getStaticImportContent = function () {\n return this.contentStatic;\n };\n\n /**\n * Returns content of a service import (GetCapabilities)\n *\n * @returns {String} contentService - content service\n */\n LayerImport.prototype.getServiceImportContent = function () {\n return this.contentService;\n };\n\n /**\n * Returns layer name\n *\n * @returns {String} name - layer name\n */\n LayerImport.prototype.getName = function () {\n return this._name;\n };\n\n // ################################################################### //\n // ##################### init component ############################## //\n // ################################################################### //\n\n /**\n * Initialize LayerImport control (called by LayerImport constructor)\n *\n * @param {Object} options - constructor options\n * @private\n */\n LayerImport.prototype._initialize = function (options) {\n // ############################################################ //\n // ################### Options du composant ################### //\n\n // check input options format\n this._checkInputOptions(options);\n\n // set default options\n this.options = {\n collapsed: true,\n draggable: false,\n layerTypes: [\"KML\", \"GPX\", \"GeoJSON\", \"WMS\", \"WMTS\", \"MAPBOX\"],\n webServicesOptions: {},\n vectorStyleOptions: {\n KML: {\n extractStyles: true,\n showPointNames: true,\n defaultStyle: {}\n },\n GPX: {\n defaultStyle: {}\n },\n GeoJSON: {\n defaultStyle: {}\n },\n MapBox: {\n defaultStyle: {},\n editor: {}\n }\n }\n };\n\n // TODO gestion du proxy\n\n // set extractStyles parameter\n if (options.vectorStyleOptions && options.vectorStyleOptions.KML && options.vectorStyleOptions.KML.extractStyles) {\n this.options.vectorStyleOptions.KML.extractStyles = options.vectorStyleOptions.KML.extractStyles;\n } // TODO\n // set showPointNames parameter\n if (options.vectorStyleOptions && options.vectorStyleOptions.KML && options.vectorStyleOptions.KML.showPointNames) {\n this.options.vectorStyleOptions.KML.showPointNames = options.vectorStyleOptions.KML.showPointNames;\n }\n\n // set vector layers default styles (KML, GPX, GeoJSON, MapBox)\n if (options.vectorStyleOptions && options.vectorStyleOptions.KML && options.vectorStyleOptions.KML.defaultStyle) {\n // get from options if specified\n this.options.vectorStyleOptions.KML.defaultStyle = options.vectorStyleOptions.KML.defaultStyle;\n } else {\n // get from control default options otherwise\n this.options.vectorStyleOptions.KML.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Style\"]({\n image: LayerImport.DefaultStyles.image,\n stroke: LayerImport.DefaultStyles.stroke,\n fill: LayerImport.DefaultStyles.fill,\n text: LayerImport.DefaultStyles.text\n });\n }\n if (options.vectorStyleOptions && options.vectorStyleOptions.GPX && options.vectorStyleOptions.GPX.defaultStyle) {\n // get from options if specified\n this.options.vectorStyleOptions.GPX.defaultStyle = options.vectorStyleOptions.GPX.defaultStyle;\n } else {\n // get from control default options otherwise\n this.options.vectorStyleOptions.GPX.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Style\"]({\n image: LayerImport.DefaultStyles.image,\n stroke: LayerImport.DefaultStyles.stroke,\n fill: LayerImport.DefaultStyles.fill,\n text: LayerImport.DefaultStyles.text\n });\n }\n if (options.vectorStyleOptions && options.vectorStyleOptions.GeoJSON && options.vectorStyleOptions.GeoJSON.defaultStyle) {\n // get from options if specified\n this.options.vectorStyleOptions.GeoJSON.defaultStyle = options.vectorStyleOptions.GeoJSON.defaultStyle;\n } else {\n // get from control default options otherwise\n this.options.vectorStyleOptions.GeoJSON.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Style\"]({\n image: LayerImport.DefaultStyles.image,\n stroke: LayerImport.DefaultStyles.stroke,\n fill: LayerImport.DefaultStyles.fill,\n text: LayerImport.DefaultStyles.text\n });\n }\n // FIXME tester les styles par defaut sur une couche vecteur tuilé sans style !\n if (options.vectorStyleOptions && options.vectorStyleOptions.MapBox && options.vectorStyleOptions.MapBox.defaultStyle) {\n // get from options if specified\n this.options.vectorStyleOptions.MapBox.defaultStyle = options.vectorStyleOptions.MapBox.defaultStyle;\n } else {\n // get from control default options otherwise\n this.options.vectorStyleOptions.MapBox.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Style\"]({\n image: LayerImport.DefaultStyles.image,\n stroke: LayerImport.DefaultStyles.stroke,\n fill: LayerImport.DefaultStyles.fill,\n text: LayerImport.DefaultStyles.text\n });\n }\n if (options.vectorStyleOptions && options.vectorStyleOptions.MapBox && options.vectorStyleOptions.MapBox.editor) {\n // get from options if specified\n this.options.vectorStyleOptions.MapBox.editor = options.vectorStyleOptions.MapBox.editor;\n } else {\n this.options.vectorStyleOptions.MapBox.editor = {\n title: true,\n collapse: false,\n themes: false,\n layers: true,\n style: true,\n filter: false,\n legend: true,\n group: false\n };\n }\n if (options.vectorStyleOptions && options.vectorStyleOptions.MapBox && options.vectorStyleOptions.MapBox.hasOwnProperty(\"display\")) {\n this.options.vectorStyleOptions.MapBox.display = options.vectorStyleOptions.MapBox.display;\n } else {\n this.options.vectorStyleOptions.MapBox.display = true;\n }\n\n // merge layer types\n if (Array.isArray(options.layerTypes)) {\n var layerTypes = [];\n for (var i = 0; i < options.layerTypes.length; i++) {\n layerTypes.push(options.layerTypes[i]);\n }\n this.options.layerTypes = layerTypes;\n }\n\n // merge with user options\n _Common_Utils__WEBPACK_IMPORTED_MODULE_25__[\"default\"].mergeParams(this.options, options);\n\n /** {Boolean} specify if LayerImport control is collapsed (true) or not (false) */\n this.collapsed = this.options.collapsed;\n\n /** {Boolean} specify if LayerImport control is draggable (true) or not (false) */\n this.draggable = this.options.draggable;\n\n // identifiant du contrôle : utile pour suffixer les identifiants CSS (pour gérer le cas où il y en a plusieurs dans la même page)\n this._uid = _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_27__[\"default\"].generate();\n\n // si une requête est en cours ou non\n this._waiting = false;\n // timer pour cacher la patience après un certain temps\n this._timer = null;\n\n // initialisation des types d'import\n this._initImportTypes();\n // initialisation des styles par défaut\n this._initDefaultStyles();\n\n // ################################################################## //\n // ################### Elements principaux du DOM ################### //\n\n // containers principaux (FIXME : tous utiles ?)\n this._showImportInput = null;\n this._importPanel = null;\n this._importPanelHeader = null;\n this._formContainer = null;\n this._staticLocalImportInput = null;\n this._staticUrlImportInput = null;\n this._serviceUrlImportInput = null;\n this._getCapPanel = null;\n this._getCapPanelHeader = null;\n this._getCapResultsListContainer = null;\n this._mapBoxPanel = null;\n this._mapBoxPanelHeader = null;\n this._mapBoxResultsListContainer = null;\n this._waitingContainer = null;\n this._loadingContainer = null;\n\n // ################################################################## //\n // ################ Interrogation du GetCapabilities ################ //\n\n this._getCapRequestUrl = null;\n this._getCapResponseWMS = null;\n this._getCapResponseWMSLayers = [];\n this._getCapResponseWMTS = null;\n this._getCapResponseWMTSLayers = [];\n\n // ################################################################## //\n // ########################### MapBox ############################### //\n this._hasMapBoxResults = false;\n\n // ################################################################## //\n // ########################### file or url ########################## //\n this.contentStatic = null;\n this._url = null;\n this._file = null;\n this._name = null;\n };\n\n /**\n * this method is called by this.initialize()\n * and makes sure input options are correctly formated\n *\n * @param {Object} options - control input options\n * @private\n */\n LayerImport.prototype._checkInputOptions = function (options) {\n // on vérifie le tableau des types\n if (options.layerTypes) {\n var layerTypes = options.layerTypes;\n // on vérifie que la liste des types est bien un tableau\n if (!Array.isArray(layerTypes)) {\n logger.warn(\"[ol.control.LayerImport] 'options.layerTypes' parameter should be an array. Set default values [\\\"KML\\\", \\\"GPX\\\", \\\"GeoJSON\\\", \\\"WMS\\\", \\\"WMTS\\\"]\");\n options.layerTypes = [\"KML\", \"GPX\", \"GeoJSON\", \"WMS\", \"WMTS\", \"MAPBOX\"];\n } else {\n var typesList = [\"KML\", \"GPX\", \"GEOJSON\", \"WMS\", \"WMTS\", \"WFS\", \"MAPBOX\"];\n var wrongTypesIndexes = [];\n for (var i = 0; i < layerTypes.length; i++) {\n if (typeof layerTypes[i] !== \"string\") {\n // si l'élément du tableau n'est pas une chaine de caractères, on stocke l'index pour le retirer du tableau\n wrongTypesIndexes.push(i);\n logger.warn(\"[ol.control.LayerImport] 'options.layerTypes' elements should be of type string (\" + layerTypes[i] + \")\");\n } else {\n // on passe en majuscules pour comparer\n layerTypes[i] = layerTypes[i].toUpperCase();\n if (typesList.indexOf(layerTypes[i]) === -1) {\n // si le type n'est pas référencé, on stocke son index pour le retirer du tableau (après avoir terminé de parcourir le tableau)\n wrongTypesIndexes.push(i);\n logger.log(\"[ol.control.LayerImport] options.layerTypes : \" + layerTypes[i] + \" is not a supported type\");\n }\n // cas spécial du GeoJSON qu'on ne laisse pas en majuscules\n if (layerTypes[i] === \"GEOJSON\") {\n layerTypes[i] = \"GeoJSON\";\n }\n if (layerTypes[i] === \"MAPBOX\") {\n layerTypes[i] = \"MAPBOX\";\n }\n }\n }\n // on retire les types non référencés qu'on a pu rencontrer\n if (wrongTypesIndexes.length !== 0) {\n for (var j = wrongTypesIndexes.length - 1; j >= 0; j--) {\n layerTypes.splice(wrongTypesIndexes[j], 1);\n }\n }\n }\n }\n };\n\n /**\n * this method is called by this.initialize()\n * and initializes default styles for vector layers (KML/GPX/GeoJSON)\n *\n * @private\n */\n LayerImport.prototype._initDefaultStyles = function () {\n var kmlDefaultStyles = this.options.vectorStyleOptions.KML.defaultStyle;\n this._defaultKMLStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Style\"]({\n image: kmlDefaultStyles.image,\n stroke: kmlDefaultStyles.stroke,\n fill: kmlDefaultStyles.fill,\n text: kmlDefaultStyles.text\n });\n var gpxDefaultStyles = this.options.vectorStyleOptions.GPX.defaultStyle;\n this._defaultGPXStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Style\"]({\n image: gpxDefaultStyles.image,\n stroke: gpxDefaultStyles.stroke,\n fill: gpxDefaultStyles.fill,\n text: gpxDefaultStyles.text\n });\n var geoJSONDefaultStyles = this.options.vectorStyleOptions.GeoJSON.defaultStyle;\n this._defaultGeoJSONStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Style\"]({\n image: geoJSONDefaultStyles.image,\n stroke: geoJSONDefaultStyles.stroke,\n fill: geoJSONDefaultStyles.fill,\n text: geoJSONDefaultStyles.text\n });\n var MapBoxDefaultStyles = this.options.vectorStyleOptions.MapBox.defaultStyle;\n this._defaultMapBoxStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__[\"Style\"]({\n image: MapBoxDefaultStyles.image,\n stroke: MapBoxDefaultStyles.stroke,\n fill: MapBoxDefaultStyles.fill,\n text: MapBoxDefaultStyles.text\n });\n };\n\n /**\n * this method is called by this.initialize()\n * and initializes import types parameter\n *\n * @private\n */\n LayerImport.prototype._initImportTypes = function () {\n this._currentImportType = this.options.layerTypes[0] || \"KML\";\n if (this._currentImportType === \"KML\" || this._currentImportType === \"GPX\" || this._currentImportType === \"GeoJSON\" || this._currentImportType === \"MAPBOX\") {\n this._isCurrentImportTypeStatic = true;\n } else if (this._currentImportType === \"WMS\" || this._currentImportType === \"WMTS\" || this._currentImportType === \"WFS\") {\n this._isCurrentImportTypeStatic = false;\n }\n this._currentStaticImportType = \"local\";\n };\n\n /**\n * Create control main container (DOM initialize)\n *\n * @private\n * @returns {DOMElement} container - control main container\n */\n LayerImport.prototype._initContainer = function () {\n // create main container\n var container = this._createMainContainerElement();\n\n // create show Import element\n var inputShow = this._showImportInput = this._createShowImportElement();\n container.appendChild(inputShow);\n\n // mode \"collapsed\"\n if (!this.collapsed) {\n inputShow.checked = true;\n }\n\n // create Import picto\n var picto = this._createShowImportPictoElement();\n container.appendChild(picto);\n\n // panel\n var importPanel = this._importPanel = this._createImportPanelElement();\n\n // header\n var panelHeader = this._importPanelHeader = this._createImportPanelHeaderElement();\n importPanel.appendChild(panelHeader);\n\n // form : initialisation du formulaire d'import des couches (types d'import et saisie de l'url / du fichier)\n var importForm = this._formContainer = this._initInputFormElement();\n importPanel.appendChild(importForm);\n container.appendChild(importPanel);\n\n // results (dans le panel)\n var getCapPanel = this._getCapPanel = this._createImportGetCapPanelElement();\n var getCapPanelHeader = this._getCapPanelHeader = this._createImportGetCapPanelHeaderElement();\n getCapPanel.appendChild(getCapPanelHeader);\n var importGetCapResultsList = this._getCapResultsListContainer = this._createImportGetCapResultsContainer();\n getCapPanel.appendChild(importGetCapResultsList);\n container.appendChild(getCapPanel);\n\n // mapbox panel results\n var mapBoxPanel = this._mapBoxPanel = this._createImportMapBoxPanelElement();\n var mapBoxPanelHeader = this._mapBoxPanelHeader = this._createImportMapBoxPanelHeaderElement();\n mapBoxPanel.appendChild(mapBoxPanelHeader);\n var importMapBoxResultsList = this._mapBoxResultsListContainer = this._createImportMapBoxResultsContainer();\n mapBoxPanel.appendChild(importMapBoxResultsList);\n\n // loading element mapbox\n var loading = this._loadingContainer = this._createLoadingElement();\n mapBoxPanel.appendChild(loading);\n container.appendChild(mapBoxPanel);\n\n // waiting\n var waiting = this._waitingContainer = this._createImportWaitingElement();\n container.appendChild(waiting);\n return container;\n };\n\n /**\n * Create control main container (DOM initialize)\n *\n * @private\n * @returns {DOMElement} importForm - form main container\n */\n LayerImport.prototype._initInputFormElement = function () {\n // form main container\n var importForm = this._createImportPanelFormElement();\n\n // Format choice\n var importTypeChoiceDiv = this._createImportTypeLineElement(this.options.layerTypes);\n importForm.appendChild(importTypeChoiceDiv);\n\n // params for KML/GPX/GeoJSON\n\n var importStaticParamsContainer = this._createImportStaticParamsContainer(this.options.layerTypes[0]);\n // static file name\n var staticNameLabel = this._createStaticNameLabel();\n importStaticParamsContainer.appendChild(staticNameLabel);\n // static import choice (local / url)\n var staticImportChoice = this._createStaticModeChoiceDiv();\n // TODO : passer un paramètre \"checked\" ??\n var staticLocalImportChoice = this._createStaticLocalChoiceDiv();\n staticImportChoice.appendChild(staticLocalImportChoice);\n var staticUrlImportChoice = this._createStaticUrlChoiceDiv();\n staticImportChoice.appendChild(staticUrlImportChoice);\n importStaticParamsContainer.appendChild(staticImportChoice);\n\n // div for local file import\n var staticLocalInputDiv = this._createStaticLocalInputDiv();\n // label\n staticLocalInputDiv.appendChild(this._createStaticLocalInputLabel());\n // file input\n this._staticLocalImportInput = this._createStaticLocalInput();\n staticLocalInputDiv.appendChild(this._staticLocalImportInput);\n // append div to params container\n importStaticParamsContainer.appendChild(staticLocalInputDiv);\n\n // div for url input (info: séparation pour récupérer l'élément input)\n var staticUrlInputDiv = this._createStaticUrlInputDiv();\n // label\n staticUrlInputDiv.appendChild(this._createStaticUrlInputLabel());\n // url input\n this._staticUrlImportInput = this._createStaticUrlInput();\n staticUrlInputDiv.appendChild(this._staticUrlImportInput);\n // append div to params container\n importStaticParamsContainer.appendChild(staticUrlInputDiv);\n\n // append static params container to form container\n importForm.appendChild(importStaticParamsContainer);\n\n // params for WMS/WMTS/WFS\n\n var importServiceParamsContainer = this._createServiceParamsContainer(this.options.layerTypes[0]);\n // div for service url\n var importServiceUrlDiv = this._createServiceUrlDiv();\n // label\n importServiceUrlDiv.appendChild(this._createServiceUrlInputLabel());\n // input\n this._serviceUrlImportInput = this._createServiceUrlInput();\n importServiceUrlDiv.appendChild(this._serviceUrlImportInput);\n // append div to params container\n importServiceParamsContainer.appendChild(importServiceUrlDiv);\n // append service params container to form container\n importForm.appendChild(importServiceParamsContainer);\n\n // submit (bouton \"Importer\")\n var submit = this._createImportSubmitFormElement();\n importForm.appendChild(submit);\n return importForm;\n };\n\n // ################################################################### //\n // ######################### DOM events ############################## //\n // ################################################################### //\n\n /**\n * this method is called by event 'click' on 'GPshowImportPicto' picto\n * (cf. LayerImportDOM._createShowImportPictoElement),\n * and dispatch event change:collapsed (for tools listening this property)\n *\n * @private\n */\n LayerImport.prototype._onShowImportClick = function () {\n var map = this.getMap();\n // on supprime toutes les interactions\n _Utils_Interactions__WEBPACK_IMPORTED_MODULE_24__[\"default\"].unset(map);\n // on affiche les resultats d'une couche MapBox\n if (this._hasMapBoxResults) {\n this._mapBoxPanel.style.display = \"block\";\n }\n // info : on génère nous même l'evenement OpenLayers de changement de propriété\n // (utiliser ol.control.LayerImport.on(\"change:collapsed\", function ) pour s'abonner à cet évènement)\n this.collapsed = this._showImportInput.checked;\n this.dispatchEvent(\"change:collapsed\");\n };\n\n /**\n * this method is called by event 'change' on 'GPimportType' tag form\n * (cf. LayerImportDOM._createImportTypeLineElement),\n * and change current import type\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onImportTypeChange = function (e) {\n this._currentImportType = e.target.value;\n if (this._currentImportType === \"KML\" || this._currentImportType === \"GPX\" || this._currentImportType === \"GeoJSON\" || this._currentImportType === \"MAPBOX\") {\n this._isCurrentImportTypeStatic = true;\n } else if (this._currentImportType === \"WMS\" || this._currentImportType === \"WMTS\" || this._currentImportType === \"WFS\") {\n this._isCurrentImportTypeStatic = false;\n }\n };\n\n /**\n * this method is called by event 'change' on 'GPimportType' tag form\n * (cf. LayerImportDOM._createImportTypeLineElement),\n * and change current import type\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onStaticImportTypeChange = function (e) {\n this._currentStaticImportType = e.target.value;\n };\n\n /**\n * this method is called by event 'click' on 'GPimportGetCapPanelClose' tag form\n * (cf. LayerImportDOM._createImportGetCapPanelHeaderElement),\n * and reset getCapabilities information\n *\n * @private\n */\n LayerImport.prototype._onGetCapPanelClose = function () {\n // this._clearGetCapParams();\n if (this._currentImportType === \"WMS\" || this._currentImportType === \"WMTS\" || this._currentImportType === \"WFS\") {\n this.cleanGetCapResultsList();\n }\n };\n\n /**\n * this method is called by event 'click' on 'GPimportMapBoxPanelClose' tag form\n * (cf. LayerImportDOM._createImportMapBoxPanelHeaderElement),\n * and reset mapbox information\n *\n * @private\n */\n LayerImport.prototype._onMapBoxPanelClose = function () {\n this.cleanMapBoxResultsList();\n this._loadingContainer.className = \"\";\n };\n\n /**\n * this method is called by event 'click' on 'GPimportMapBoxPanelReturnPicto' tag form\n * (cf. LayerImportDOM._createImportMapBoxPanelHeaderElement),\n * and return to information\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onMapBoxReturnPictoClick = function (e) {\n // on bascule sur l'icone d'ouverture du composant\n this._mapBoxPanel.style.display = \"none\";\n this._showImportInput.checked = false;\n this._loadingContainer.className = \"\";\n };\n\n // ################################################################### //\n // ######################## Submit form ############################## //\n // ################################################################### //\n\n /**\n * this method is called by event 'submit' on 'GPimportForm' tag form\n * (cf. LayerImportDOM._createImportPanelFormElement),\n * and import static layer or call getCap service (according to import type)\n *\n * @private\n */\n LayerImport.prototype._onImportSubmit = function () {\n logger.log(\"import d'une couche de type : \" + this._currentImportType);\n\n // reinitialisation du contenu d'un import de type\n // - static (KML ou GPX ou GeoJSON)\n this.contentStatic = null;\n // - service (WMS, ...)\n this.contentService = null;\n if (this._isCurrentImportTypeStatic) {\n this._importStaticLayer();\n } else {\n this._importServiceLayers();\n }\n };\n\n // ################################################################### //\n // ############## Import KML/GPX/GeoJSON/MapBox layers ############### //\n // ################################################################### //\n\n /**\n * this method is called by this_onImportSubmit method\n * and import static layer (KML/GPX/GeoJSON) from url or file\n *\n * @private\n */\n LayerImport.prototype._importStaticLayer = function () {\n var layerName;\n var staticImportNameInput = document.getElementById(this._addUID(\"GPimportName\"));\n if (staticImportNameInput) {\n layerName = staticImportNameInput.value || \"\";\n logger.log(\"import layer name : \" + layerName);\n }\n if (this._currentStaticImportType === \"local\") {\n logger.log(\"import static layer from local file\");\n this._importStaticLayerFromLocalFile(layerName);\n } else if (this._currentStaticImportType === \"url\") {\n logger.log(\"import static layer from url\");\n this._importStaticLayerFromUrl(layerName);\n }\n };\n\n /**\n * this method is called by _importStaticLayer method\n * and import static layer (KML/GPX/GeoJSON) from url\n *\n * @param {String} layerName - imported layer name\n * @private\n */\n LayerImport.prototype._importStaticLayerFromUrl = function (layerName) {\n // 1. Récupération de l'url\n var url = this._staticUrlImportInput.value;\n logger.log(\"url : \", url);\n if (url.length === 0) {\n logger.error(\"[ol.control.LayerImport] url parameter is mandatory\");\n return;\n }\n // on supprime les éventuels espaces avant ou après\n if (url.trim) {\n url = url.trim();\n }\n\n // sauvegarde\n this._url = url;\n\n // si le nom n'est pas renseigné, on extrait le nom du fichier\n if (!layerName) {\n layerName = this._url.substring(this._url.lastIndexOf(\"/\") + 1, this._url.lastIndexOf(\".\"));\n }\n\n // sauvegarde\n this._name = layerName;\n\n // 2. récupération proxy\n if (this.options.webServicesOptions && this.options.webServicesOptions.proxyUrl) {\n url = _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_28__[\"default\"].proxifyUrl(url, this.options.webServicesOptions);\n }\n\n // FIXME pb de surcharge en mode UMD !? ça ne marche pas...\n // this._hideWaitingContainer();\n // this._addFeaturesFromImportStaticLayerUrl(url, layerName);\n\n var context = this;\n geoportal_access_lib__WEBPACK_IMPORTED_MODULE_20__[\"default\"].Protocols.XHR.call({\n url: url,\n method: \"GET\",\n timeOut: 15000,\n // on success callback : display results in container\n onResponse: function onResponse(response) {\n context._hideWaitingContainer();\n context._addFeaturesFromImportStaticLayer(response, layerName);\n },\n // on error callback : log error\n onFailure: function onFailure(error) {\n // en cas d'erreur, on revient au panel initial et on cache la patience\n context._hideWaitingContainer();\n logger.error(\"[ol.control.LayerImport] KML/GPX/GeoJSON/MapBox request failed : \", error);\n }\n });\n };\n\n /**\n * this method is called by _importStaticLayer method\n * and import static layer (KML/GPX/GeoJSON) from local file\n *\n * @param {String} layerName - imported layer name\n * @private\n */\n LayerImport.prototype._importStaticLayerFromLocalFile = function (layerName) {\n var file = this._staticLocalImportInput.files[0];\n if (!file) {\n logger.warn(\"[ol.control.LayerImport] missing file\");\n return;\n }\n\n // sauvegarde\n this._file = file;\n\n // si le nom n'est pas renseigné, on extrait le nom du fichier\n if (!layerName) {\n layerName = this._file.name.substring(this._file.name.lastIndexOf(\"/\") + 1, this._file.name.lastIndexOf(\".\"));\n }\n\n // sauvegarde\n this._name = layerName;\n\n // Création d'un objet FileReader qui permet de lire le contenu du fichier chargé\n var fReader = new FileReader();\n\n // Définition des fonctions de callbacks associées au reader,\n // notamment la fonction onload qui affichera les entités chargées à la carte\n var context = this;\n // on readAsText error\n fReader.onerror = function (e) {\n // en cas d'erreur, on revient au panel initial et on cache la patience\n context._hideWaitingContainer();\n logger.error(\"error fileReader : \", e);\n };\n /** on readAsText progress */\n fReader.onprogress = function () {\n logger.log(\"onprogress\");\n };\n /** on load start */\n fReader.onloadstart = function () {\n // affichage d'une patience le temps du chargement\n context._displayWaitingContainer();\n logger.log(\"onloadstart\");\n };\n /** on readAsText abort */\n fReader.onabort = function () {\n // en cas d'erreur, on revient au panel initial et on cache la patience\n context._hideWaitingContainer();\n logger.log(\"onabort\");\n };\n // on readAsText loadend\n fReader.onloadend = function (e) {\n // fReader = null ?\n // en cas d'erreur, on revient au panel initial et on cache la patience\n // context._hideWaitingContainer();\n // TODO : replier le formulaire ?\n logger.log(\"onloadend : \", e);\n };\n // on readAsText load\n fReader.onload = function (e) {\n logger.log(\"fileReader onload - file content : \", e.target.result);\n\n // on cache la patience\n context._hideWaitingContainer();\n context._addFeaturesFromImportStaticLayer(e.target.result, layerName);\n };\n\n // Lecture du fichier chargé à l'aide de fileReader\n fReader.readAsText(file);\n };\n\n /**\n * this method is called by _importStaticLayerFom* method\n * and add features to the map\n *\n * @param {String} fileContent - content file\n * @param {String} layerName - imported layer name\n * @private\n */\n LayerImport.prototype._addFeaturesFromImportStaticLayer = function (fileContent, layerName) {\n // récupération du contenu du fichier\n var map = this.getMap();\n if (!map || !fileContent) {\n return;\n }\n var vectorLayer = null;\n var vectorSource = null;\n var vectorFormat = null;\n var vectorStyle = null;\n\n // sauvegarde du content KML/GPX/GeoJSON/MapBox\n this.contentStatic = fileContent;\n if (this._currentImportType === \"MAPBOX\") {\n // INFO\n // on ne nettoie pas délibérément la liste de résultats de type MapBox\n // car on souhaite pouvoir interagir sur les couches (editeur).\n // du coup, à chaque import, on empile les éditeurs.\n this._hasMapBoxResults = true;\n\n // contexte\n var self = this;\n\n // style mapbox\n var _glStyles = JSON.parse(fileContent);\n\n // liste des sources\n var _glSources = _glStyles.sources;\n\n // FIXME a t on du multi-sources ?\n // mais comment doit on les traiter ?\n // EXPERIMENTAL !\n var _multiSources = Object.keys(_glSources).length > 1 ? 1 : 0;\n for (var _glSourceId in _glSources) {\n if (_glSources.hasOwnProperty(_glSourceId)) {\n var _title = \"\";\n var _description = \"\";\n var _quicklookUrl = null;\n var _legends = null;\n var _metadata = null;\n var _originators = null;\n\n // lecture des informations dans le style\n // ex. metadata : {\n // geoportail:[title | description | quicklookUrl | legends | originators | metadata]\n // }\n if (_glStyles.metadata) {\n for (var ns in _glStyles.metadata) {\n if (_glStyles.metadata.hasOwnProperty(ns)) {\n var _keys = ns.split(\":\");\n if (_keys[0] === \"geoportail\") {\n var key = _keys[1];\n if (key === \"title\") {\n _title = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"description\") {\n _description = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"quicklookUrl\") {\n _quicklookUrl = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"legends\") {\n _legends = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"metadata\") {\n _metadata = _glStyles.metadata[ns];\n continue;\n }\n if (key === \"originators\") {\n _originators = _glStyles.metadata[ns];\n continue;\n }\n }\n }\n }\n }\n\n // titre par defaut\n if (!_title) {\n _title = \"Couche MapBox\";\n }\n // description par defaut\n if (!_description) {\n _description = \"Couche MapBox\";\n }\n // cas des multisources\n _title = _multiSources ? _title + \"(\" + _glSourceId + \")\" : _title;\n\n // source mapbox\n var _glSource = _glSources[_glSourceId];\n\n // construction de la couche en fonction du type\n var _glType = _glSource.type;\n if (_glType === \"vector\") {\n // url du tilejson ou flux mapbox\n var _glUrl = _glSource.url;\n // url du service tuilé\n var _glTiles = _glSource.tiles;\n // sprites\n var _glSprite = _glStyles.sprite;\n\n // FIXME si on a un import par fichier local (this._file),\n // - comment passe t on la clef / le token ?\n // - comment remplacer un flux mapbox sur une url de service tuilé avec un import local ?\n if (_glUrl && _glUrl.indexOf(\"mapbox://\") === 0) {\n var _urlService = this._url; // FIXME si fichier local !?\n if (_urlService) {\n _glTiles = [\"a\", \"b\", \"c\", \"d\"].map(function (host) {\n var path = _glUrl.replace(\"mapbox://\", \"\");\n var accessToken = _urlService.split(\"?\")[1];\n return \"https://\" + host + \".tiles.mapbox.com/v4/\" + path + \"/{z}/{x}/{y}.vector.pbf?\" + accessToken;\n });\n // conversion des sprites sur un autre scheme que \"mapbox://\"\n if (_glSprite.indexOf(\"mapbox://\") === 0) {\n var s = _urlService.split(\"?\"); // FIXME si fichier local !?\n _glStyles.sprite = s[0] + \"/sprite\" + \"?\" + s[1];\n }\n } else {\n logger.warn(\"Not yet implemented, can't use the local import scheme with a 'mapbox://' in the file.!\");\n }\n }\n if (_glTiles) {\n // service tuilé et/ou mapbox\n vectorFormat = new ol_format_MVT__WEBPACK_IMPORTED_MODULE_7___default.a({\n featureClass: ol_Feature__WEBPACK_IMPORTED_MODULE_4___default.a\n });\n vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13___default.a({\n attributions: _glSource.attribution,\n format: vectorFormat,\n // INFO\n // surcharge : grille en 256 sur du vecteur tuilé\n // tileGrid : olCreateXYZTileGrid({ // TODO scheme tms ?\n // extent : _glSource.bounds, // [minx, miny, maxx, maxy]\n // maxZoom : _glSource.maxzoom || 22,\n // minZoom : _glSource.minzoom || 1,\n // tileSize : _glSource.tileSize || 256\n // }),\n urls: _glTiles\n });\n vectorSource._title = _title;\n vectorSource._description = _description;\n vectorSource._quicklookUrl = _quicklookUrl;\n vectorSource._metadata = _metadata;\n vectorSource._legends = _legends;\n vectorSource._originators = _originators;\n // waiting\n vectorSource.on(\"tileloadstart\", function (e) {\n self._loadingContainer.className = \"GPmapLoadingVisible\";\n });\n vectorSource.on(\"tileloadend\", function (e) {\n self._loadingContainer.className = \"\";\n });\n vectorSource.on(\"tileloaderror\", function (e) {\n self._loadingContainer.className = \"\";\n });\n vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10___default.a({\n source: vectorSource,\n visible: false,\n // zIndex: 0, // FIXME gerer l'ordre sur des multisources ?\n declutter: true // TODO utile ?\n });\n vectorLayer.id = _glSourceId;\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n } else if (_glUrl) {\n // service avec un tilejson\n vectorFormat = new ol_format_MVT__WEBPACK_IMPORTED_MODULE_7___default.a({\n featureClass: ol_Feature__WEBPACK_IMPORTED_MODULE_4___default.a\n });\n vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10___default.a({\n visible: false,\n // zIndex : 0\n declutter: true\n });\n vectorLayer.id = _glSourceId;\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n var vectorTileJson = new ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_17___default.a({\n url: _glUrl\n });\n // lecture du tilejson avec extension IGN\n // les extensions sont enregistrées\n // dans les propriétés de la couche : layer.set(mapbox-extension)\n // pour une utilisation ulterieur (ex. editeur)\n var _key = vectorTileJson.on(\"change\", function () {\n if (vectorTileJson.getState() === \"ready\") {\n var _tileJSONDoc = vectorTileJson.getTileJSON();\n var tiles = Array.isArray(_tileJSONDoc.tiles) ? _tileJSONDoc.tiles : [_tileJSONDoc.tiles];\n for (var i = 0; i < tiles.length; i++) {\n var tile = tiles[i];\n if (tile.indexOf(\"http\") !== 0) {\n tiles[i] = _glUrl + tile;\n }\n }\n vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13___default.a({\n attributions: vectorTileJson.getAttributions() || _tileJSONDoc.attribution,\n format: vectorFormat,\n // INFO\n // surcharge : grille en 256 sur du vecteur tuilé\n // tileGrid : olCreateXYZTileGrid({ // TODO scheme tms ?\n // extent : _glSource.bounds, // [minx, miny, maxx, maxy]\n // maxZoom : _glSource.maxzoom || 22,\n // minZoom : _glSource.minzoom || 1,\n // tileSize : _glSource.tileSize || 256\n // }),\n urls: tiles\n });\n vectorSource._title = _title;\n vectorSource._description = _description;\n vectorSource._quicklookUrl = _quicklookUrl;\n vectorSource._metadata = _metadata;\n vectorSource._legends = _legends;\n vectorSource._originators = _originators;\n // waiting\n vectorSource.on(\"tileloadstart\", function (e) {\n self._loadingContainer.className = \"GPmapLoadingVisible\";\n });\n vectorSource.on(\"tileloadend\", function (e) {\n self._loadingContainer.className = \"\";\n });\n vectorLayer.setSource(vectorSource);\n vectorLayer.set(\"mapbox-extension\", _tileJSONDoc[\"vector_layers\"]);\n Object(ol_Observable__WEBPACK_IMPORTED_MODULE_2__[\"unByKey\"])(_key);\n }\n });\n }\n } else if (_glType === \"geojson\") {\n // FIXME\n // - cas avec un objet de type features ?\n // - cas avec une url relative ?\n var _glData = _glSource.data;\n vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__[\"default\"]();\n vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13___default.a({\n attributions: _glSource.attribution,\n format: vectorFormat,\n url: _glData\n });\n vectorSource._title = _title;\n vectorSource._description = _description;\n vectorSource._quicklookUrl = _quicklookUrl;\n vectorSource._metadata = _metadata;\n vectorSource._legends = _legends;\n vectorSource._originators = _originators;\n vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10___default.a({\n source: vectorSource,\n visible: false,\n // zIndex: 0, // FIXME gerer l'ordre sur des multisources ?\n declutter: true // TODO utile ?\n });\n vectorLayer.id = _glSourceId;\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n } else {\n logger.warn(\"Type MapBox format unknown !\");\n return;\n }\n\n // clone\n var _glStyle = JSON.parse(JSON.stringify(_glStyles));\n // cas du multi source\n if (_multiSources) {\n // on supprime les layers inutiles\n var _glLayers = _glStyle.layers;\n for (var ii = 0; ii < _glLayers.length; ii++) {\n var _glLayer = _glLayers[ii];\n if (_glLayer.source !== _glSourceId) {\n _glLayers.splice(ii, 1);\n continue;\n }\n }\n // on supprime les sources inutiles\n for (var keySource in _glStyle.sources) {\n if (_glStyle.sources.hasOwnProperty(keySource)) {\n if (keySource !== _glSourceId) {\n delete _glStyle.sources[keySource];\n }\n }\n }\n }\n\n // parametre à transmettre à la fonction auto-invoquée\n var params = {\n id: _glSourceId,\n styles: _glStyle,\n layer: vectorLayer,\n options: {\n title: layerName || _title,\n description: _description,\n quicklookUrl: _quicklookUrl,\n metadata: _metadata,\n legends: _legends,\n originators: _originators\n }\n };\n // fonction auto-invoquée\n (function (p) {\n // TODO ajouter le style de type background !\n // fonction de style de la couche\n var setStyle = function setStyle() {\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__[\"applyStyle\"])(p.layer, p.styles, p.id).then(function () {\n var visibility = true;\n p.layer.setVisible(visibility);\n var opacity = 1;\n p.layer.setOpacity(opacity);\n }).then(function () {\n // gestion du centre sur la carte si center renseigné !\n var projCode = map.getView().getProjection().getCode();\n if (map.getView() && p.styles.center && p.styles.center.length) {\n map.getView().setCenter(Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"transform\"])(p.styles.center, \"EPSG:4326\", projCode));\n }\n\n // gestion du zoom sur la carte si zoom renseigné !\n if (map.getView() && (p.styles.zoom || p.styles.zoom === 0)) {\n map.getView().setZoom(p.styles.zoom);\n }\n\n // zoom sur l'étendue des entités récupérées (si possible)\n var source = p.layer.getSource();\n if (map.getView() && map.getSize() && source.getExtent) {\n var sourceExtent = source.getExtent();\n if (sourceExtent && sourceExtent[0] !== Infinity) {\n map.getView().fit(source.getExtent(), map.getSize());\n }\n }\n }).then(function () {\n // on cache le panneau des imports\n self._importPanel.style.display = \"none\";\n\n // editeur de styles\n var editor = new _Editor__WEBPACK_IMPORTED_MODULE_21__[\"default\"]({\n target: self._mapBoxResultsListContainer,\n style: JSON.parse(JSON.stringify(p.styles)),\n // clone\n scope: this,\n events: {\n \"editor:onloaded\": self._onLoadedMapBox,\n // utile ?\n \"editor:layer:onclickvisibility\": self._onChangeVisibilitySourceMapBox,\n \"editor:style:scale:onchangemin\": self._onChangeScaleMinSourceMapBox,\n \"editor:style:scale:onchangemax\": self._onChangeScaleMaxSourceMapBox,\n \"editor:legend:onchangevalue\": self._onChangeLegendValueSourceMapBox,\n \"editor:legend:onclickedition\": self._onDisplayLayerSourceMapBox\n },\n tools: self.options.vectorStyleOptions.MapBox.editor\n });\n editor.setContext(\"map\", map);\n editor.setContext(\"layer\", p.layer);\n // creation de l'editeur\n return editor.createElement().then(function () {\n // exception...\n if (editor.getLayers().length === 0) {\n throw new Error(\"Il n'existe pas de styles pour la source demandée !?\");\n }\n }).then(function () {\n // affichage du panneau des couches accessibles à l'edition\n if (self.options.vectorStyleOptions.MapBox.display) {\n self._mapBoxPanel.style.display = \"block\";\n }\n }).then(function () {\n // hack pour modifier le titre de la couche de fond\n var elements = self._mapBoxResultsListContainer.getElementsByClassName(\"GPEditorMapBoxLayerTitleLabel\");\n for (var index = 0; index < elements.length; index++) {\n var element = elements[index];\n if (element.textContent === \"bckgrd\") {\n element.textContent = \"Couleur de remplissage\";\n }\n }\n }).then(function () {\n // association entre le layer et l'editeur via l'id\n p.layer.set(\"mapbox-editor\", editor.getID());\n // envoi d'un evenement\n // un peu en décalé pour laisser le temps au DOM de faire le job...\n setTimeout(function () {\n map.dispatchEvent({\n id: editor.getID(),\n type: \"editor:loaded\",\n style: p.styles,\n layer: p.layer\n });\n }, 100);\n })[\"catch\"](function (e) {\n // on propage l'exception\n throw e;\n });\n }).then(function () {\n // envoi d'un evenement !\n map.dispatchEvent({\n id: p.id,\n type: \"render:success\",\n style: p.styles\n });\n })[\"catch\"](function (e) {\n logger.error(e);\n // envoi d'un evenement !\n map.dispatchEvent({\n id: p.id,\n type: \"render:failure\",\n error: e\n });\n });\n };\n\n // etat des layers en cours\n logger.warn(p.layer);\n\n // ajout des styles dans la carte pour une utilisation\n // eventuelle (ex. editeur)\n // > map.set(\"mapbox-styles\")\n var styles = map.get(\"mapbox-styles\") || {};\n var id = p.id; // FIXME : construction d'un id unique\n styles[id] = p.styles;\n map.set(\"mapbox-styles\", styles);\n\n // ajout des differents styles de la couche\n // pour une utilisation eventuelle (ex. editeur)\n // > layer.set(\"mapbox-styles\")\n p.layer.set(\"mapbox-styles\", p.styles);\n\n // ajout du layer sur la carte\n map.addLayer(p.layer);\n\n // application du style\n if (p.layer.getSource()) {\n setStyle();\n } else {\n p.layer.once(\"change:source\", setStyle);\n }\n\n // maj du gestionnaire de couche\n map.getControls().forEach(function (control) {\n if (control instanceof _LayerSwitcher__WEBPACK_IMPORTED_MODULE_33__[\"default\"]) {\n control.addLayer(p.layer, p.options);\n }\n });\n })(params);\n }\n }\n\n // TODO style par defaut au cas où l'application du style échoue !\n // TODO au niveau de la couche : minResolution et maxResolution\n // FIXME bug avec le geojson, très bizarre !?\n // Si on desactive l'editeur, OK\n // Sinon NOK !?\n } else {\n if (this._currentImportType === \"KML\") {\n // lecture du fichier KML : création d'un format ol.format.KML, qui possède une méthode readFeatures (et readProjection)\n vectorStyle = this.options.vectorStyleOptions.KML.defaultStyle;\n vectorFormat = new _Formats_KML__WEBPACK_IMPORTED_MODULE_30__[\"default\"]({\n showPointNames: this.options.vectorStyleOptions.KML.showPointNames,\n extractStyles: this.options.vectorStyleOptions.KML.extractStyles,\n defaultStyle: [vectorStyle]\n });\n } else if (this._currentImportType === \"GPX\") {\n // lecture du fichier GPX : création d'un format ol.format.GPX, qui possède une méthode readFeatures (et readProjection)\n vectorStyle = this.options.vectorStyleOptions.GPX.defaultStyle;\n vectorFormat = new _Formats_GPX__WEBPACK_IMPORTED_MODULE_32__[\"default\"]({\n defaultStyle: vectorStyle\n });\n } else if (this._currentImportType === \"GeoJSON\") {\n // lecture du fichier GeoJSON : création d'un format ol.format.GeoJSON, qui possède une méthode readFeatures (et readProjection)\n vectorStyle = this.options.vectorStyleOptions.GeoJSON.defaultStyle;\n vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__[\"default\"]({\n defaultStyle: vectorStyle\n });\n }\n\n // lecture de la géométrie des entités à partir du fichier, pour éventuelle reprojection.\n var fileProj = vectorFormat.readProjection(fileContent);\n // récupération de la projection de la carte pour reprojection des géométries\n var mapProj = this._getMapProjectionCode();\n\n // récupération des entités avec reprojection éventuelle des géométries\n var features = null;\n features = vectorFormat.readFeatures(fileContent, {\n dataProjection: fileProj,\n featureProjection: mapProj\n });\n logger.log(\"loaded features : \", features);\n\n // création d'une couche vectorielle à partir de ces features\n vectorSource = new ol_source_Vector__WEBPACK_IMPORTED_MODULE_14___default.a({\n features: new ol_Collection__WEBPACK_IMPORTED_MODULE_3___default.a()\n });\n vectorSource.addFeatures(features);\n logger.trace(vectorSource);\n\n // ajout des informations pour le layerSwitcher (titre, description)\n vectorSource._title = vectorSource._description = layerName;\n vectorLayer = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11___default.a({\n source: vectorSource,\n style: vectorStyle\n });\n\n // on rajoute le champ gpResultLayerId permettant d'identifier une couche crée par le composant.\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n\n // cette couche est elle une couche de calcul ?\n var configControl = vectorFormat.readRootExtensions(\"geoportail:compute\");\n if (configControl && Object.keys(configControl).length !== 0) {\n // identifier le type de calcul authorisé :\n // * route\n // * isocurve\n // * elevationpath\n var authorizedControls = {\n route: {\n \"class\": _Route__WEBPACK_IMPORTED_MODULE_34__[\"default\"],\n name: \"itineraire\"\n },\n isocurve: {\n \"class\": _Isocurve__WEBPACK_IMPORTED_MODULE_35__[\"default\"],\n name: \"isocurve\"\n },\n elevationpath: {\n \"class\": _ElevationPath__WEBPACK_IMPORTED_MODULE_36__[\"default\"],\n name: \"profil altimetrique\"\n }\n };\n // information à transmettre à la couche\n var typeControl = configControl.type;\n var graphControl = configControl.transport;\n if (typeControl) {\n // la classe du controle\n var nameControl = authorizedControls[typeControl].name;\n var titleControl = graphControl ? nameControl + \" (\" + graphControl + \")\" : nameControl;\n var classControl = authorizedControls[typeControl][\"class\"];\n if (classControl) {\n // on est bien sur une couche de calcul authorisé !\n vectorLayer.gpResultLayerId = \"layerimport:COMPUTE\";\n // on transmet les infomations utiles\n vectorLayer.set(\"control\", typeControl);\n vectorLayer.set(\"name\", nameControl);\n vectorLayer.set(\"graph\", graphControl);\n vectorLayer.set(\"data\", configControl);\n vectorLayer.set(\"title\", titleControl);\n var formatGeoJSON = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__[\"default\"]({\n defaultStyle: vectorStyle\n });\n var geojson = formatGeoJSON.writeFeatures(features, {\n dataProjection: \"EPSG:4326\",\n featureProjection: \"EPSG:3857\"\n });\n vectorLayer.set(\"geojson\", geojson);\n // recherche et initialiser le controle\n this.getMap().getControls().forEach(function (control) {\n if (control instanceof classControl) {\n control.setData(configControl);\n control.setLayer(vectorLayer);\n control.init();\n }\n });\n }\n }\n }\n map.addLayer(vectorLayer);\n\n // TODO : appeler fonction commune\n // zoom sur l'étendue des entités récupérées (si possible)\n if (map.getView() && map.getSize() && vectorSource.getExtent) {\n var sourceExtent = vectorSource.getExtent();\n if (sourceExtent && sourceExtent[0] !== Infinity) {\n map.getView().fit(vectorSource.getExtent(), map.getSize());\n }\n }\n }\n };\n\n /**\n * NOT USE : this method is called by _importStaticLayerFom* method\n * and add features to the map\n *\n * @param {String} url - url\n * @param {String} layerName - imported layer name\n * @private\n */\n LayerImport.prototype._addFeaturesFromImportStaticLayerUrl = function (url, layerName) {\n // récupération du contenu du fichier\n var map = this.getMap();\n if (!map || !url) {\n return;\n }\n var vectorSource;\n var vectorLayer;\n var vectorFormat;\n if (this._currentImportType === \"MAPBOX\") {\n // TODO\n logger.trace(\"Not yet implemented !\");\n } else {\n if (this._currentImportType === \"KML\") {\n // lecture du fichier KML : création d'un format ol.format.KML, qui possède une méthode readFeatures (et readProjection)\n vectorFormat = new _Formats_KML__WEBPACK_IMPORTED_MODULE_30__[\"default\"]({\n showPointNames: true,\n // FIXME option !\n extractStyles: this.options.vectorStyleOptions.KML.extractStyles,\n defaultStyle: [this.options.vectorStyleOptions.KML.defaultStyle]\n });\n } else if (this._currentImportType === \"GPX\") {\n // lecture du fichier GPX : création d'un format ol.format.GPX, qui possède une méthode readFeatures (et readProjection)\n vectorFormat = new _Formats_GPX__WEBPACK_IMPORTED_MODULE_32__[\"default\"]({\n defaultStyle: this.options.vectorStyleOptions.GPX.defaultStyle\n });\n } else if (this._currentImportType === \"GeoJSON\") {\n // lecture du fichier GeoJSON : création d'un format ol.format.GeoJSON, qui possède une méthode readFeatures (et readProjection)\n vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__[\"default\"]({\n defaultStyle: this.options.vectorStyleOptions.GeoJSON.defaultStyle\n });\n }\n\n // création d'une couche vectorielle à partir de ces features\n vectorSource = new ol_source_Vector__WEBPACK_IMPORTED_MODULE_14___default.a({\n url: url,\n format: vectorFormat\n });\n if (this._currentImportType === \"GPX\") {\n vectorSource.forEachFeature(function (feature) {\n // si aucun style n'est associé au feature\n if (feature.getStyle() == null) {\n logger.log(\"[ol.control.LayerImport] set default style for GPX feature\");\n feature.setStyle(this.options.vectorStyleOptions.GPX.defaultStyle);\n }\n });\n }\n if (this._currentImportType === \"GeoJSON\") {\n vectorSource.forEachFeature(function (feature) {\n // si aucun style n'est associé au feature\n if (feature.getStyle() == null) {\n logger.log(\"[ol.control.LayerImport] set default style for GeoJSON feature\");\n feature.setStyle(this.options.vectorStyleOptions.GeoJSON.defaultStyle);\n }\n });\n }\n\n // ajout des informations pour le layerSwitcher (titre, description)\n vectorSource._title = vectorSource._description = layerName;\n vectorLayer = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11___default.a({\n source: vectorSource\n });\n }\n\n // on rajoute le champ gpResultLayerId permettant d'identifier une couche crée par le composant. (pour layerSwitcher par ex)\n vectorLayer.gpResultLayerId = \"layerimport:\" + this._currentImportType;\n map.addLayer(vectorLayer);\n\n // TODO : appeler fonction commune\n // zoom sur l'étendue des entités récupérées (si possible)\n if (map.getView() && map.getSize() && vectorSource.getExtent) {\n var sourceExtent = vectorSource.getExtent();\n if (sourceExtent && sourceExtent[0] !== Infinity) {\n map.getView().fit(vectorSource.getExtent(), map.getSize());\n }\n }\n };\n\n // Events MapBox DOM\n\n /**\n * this method is called when the editor is loaded\n *\n * @param {Object} e - editor\n */\n LayerImport.prototype._onLoadedMapBox = function (e) {\n var data = e.target.data.obj;\n var layer = this.getContext(\"layer\");\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // some stuff..\n }\n };\n\n /**\n * this method is called on '_addImportMapBoxVisibilitySource' input click\n * and change visibility source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onChangeVisibilitySourceMapBox = function (e) {\n var data = e.target.data.obj;\n var target = e.target.srcElement;\n var layer = this.getContext(\"layer\");\n\n // logger.trace(layer);\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // reload style with new param : layout.visibility : \"visible\" or \"none\"...\n var styles = layer.get(\"mapbox-styles\");\n var layers = styles.layers;\n for (var i = 0; i < layers.length; i++) {\n if (layers[i].id === data.id) {\n var layout = layers[i].layout;\n if (layout) {\n layout.visibility = target.checked ? \"visible\" : \"none\";\n } else {\n layers[i].layout = {\n visibility: target.checked ? \"visible\" : \"none\"\n };\n }\n break;\n }\n }\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__[\"applyStyle\"])(layer, styles, data.source).then(function () {})[\"catch\"](function (error) {\n logger.error(error);\n });\n }\n };\n\n /**\n * this method is called on '_addImportMapBoxScaleSource' input slide\n * and change zoom source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onChangeScaleMinSourceMapBox = function (e) {\n var data = e.target.data.obj;\n var target = e.target.srcElement;\n var layer = this.getContext(\"layer\");\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // reload style with new param : minZoom = ...\n var styles = layer.get(\"mapbox-styles\");\n var layers = styles.layers;\n for (var i = 0; i < layers.length; i++) {\n if (layers[i].id === data.id) {\n layers[i].minzoom = target.value;\n target.title = target.value;\n break;\n }\n }\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__[\"applyStyle\"])(layer, styles, data.source).then(function () {})[\"catch\"](function (error) {\n logger.error(error);\n });\n }\n };\n\n /**\n * this method is called on '_addImportMapBoxScaleSource' input slide\n * and change zoom source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onChangeScaleMaxSourceMapBox = function (e) {\n var data = e.target.data.obj;\n var target = e.target.srcElement;\n var layer = this.getContext(\"layer\");\n\n // logger.trace(layer);\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // reload style with new param : minZoom = ...\n var styles = layer.get(\"mapbox-styles\");\n var layers = styles.layers;\n for (var i = 0; i < layers.length; i++) {\n if (layers[i].id === data.id) {\n layers[i].maxzoom = target.value;\n target.title = target.value;\n break;\n }\n }\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__[\"applyStyle\"])(layer, styles, data.source).then(function () {})[\"catch\"](function (error) {\n logger.error(error);\n });\n }\n };\n\n /**\n * this method is called on ''\n * and change zoom source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onChangeLegendValueSourceMapBox = function (e) {\n var data = e.target.data.obj;\n var target = e.target.srcElement;\n var layer = this.getContext(\"layer\");\n\n // logger.trace(layer);\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n // reload style with new param :\n var styles = layer.get(\"mapbox-styles\");\n var layers = styles.layers;\n for (var i = 0; i < layers.length; i++) {\n if (layers[i].id === data.id) {\n var paint = layers[i].paint;\n if (paint) {\n paint[target.dataset.id] = target.value;\n }\n break;\n }\n }\n Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__[\"applyStyle\"])(layer, styles, data.source).then(function () {})[\"catch\"](function (error) {\n logger.error(error);\n });\n }\n };\n\n /**\n * this method is called on ''\n * and change zoom source to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onDisplayLayerSourceMapBox = function (e) {\n var data = e.target.data.obj;\n var layer = this.getContext(\"layer\");\n if (layer.get(\"mapbox-source\") === data.source && layer.get(\"mapbox-editor\") === e.target.editorID) {\n var idDOM = e.target.currentTarget.parentNode.id;\n var id = idDOM.substring(idDOM.indexOf(\"-\") + 1, idDOM.indexOf(\"_\"));\n var l = this.getLayer(id);\n l.collapse();\n }\n };\n\n // ################################################################### //\n // #################### Import WMS/WMTS layers ####################### //\n // ################################################################### //\n\n /**\n * this method is called by this_onImportSubmit method\n * and call getCap service from specified url, then display layers list in new panel\n *\n * @private\n */\n LayerImport.prototype._importServiceLayers = function () {\n if (this._currentImportType === \"WFS\") {\n logger.warn(\"[ol.control.LayerImport] WFS layer import is not implemented yet\");\n return;\n }\n\n // 0. on vide d'éventuels résultats précédents dans le panel GetCapResults\n this.cleanGetCapResultsList();\n\n // 1. récupération de l'url renseignée\n var url = this._getCapRequestUrl = this._serviceUrlImportInput.value;\n if (!url) {\n logger.error(\"[ol.control.LayerImport] url parameter is mandatory\");\n return;\n }\n logger.log(\"url : \", url);\n\n // on supprime les éventuels espaces avant ou après\n if (url.trim) {\n url = url.trim();\n }\n // Info : on ajoute des paramètres uniquement si l'utilisateur n'en a pas déjà saisi (on vérifie la position du caractère \"?\")\n var questionMarkIndex = url.indexOf(\"?\");\n if (questionMarkIndex < 0) {\n // dans le cas d'une url du type https://data.geopf.fr/wmts\n url += \"?SERVICE=\" + this._currentImportType + \"&REQUEST=GetCapabilities\";\n } else if (questionMarkIndex === url.length - 1) {\n // dans le cas où l'url se termine par \"?\"\n url += \"SERVICE=\" + this._currentImportType + \"&REQUEST=GetCapabilities\";\n }\n // si on n'est pas dans ces deux cas : l'utilisateur a déjà saisit des paramètres après \"?\" => on ne fait rien.\n\n // 2. récupération proxy\n if (this.options.webServicesOptions && this.options.webServicesOptions.proxyUrl) {\n url = _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_28__[\"default\"].proxifyUrl(url, this.options.webServicesOptions);\n }\n\n // 3. affichage d'une patience le temps de la requête\n this._displayWaitingContainer();\n\n // 4. send getcapabilities request (XHR protocol => proxy Url is needed)\n var context = this;\n geoportal_access_lib__WEBPACK_IMPORTED_MODULE_20__[\"default\"].Protocols.XHR.call({\n url: url,\n method: \"GET\",\n timeOut: 15000,\n // on success callback : display results in container\n onResponse: function onResponse(response) {\n context._hideWaitingContainer();\n context._displayGetCapResponseLayers(response);\n },\n // on error callback : log error\n onFailure: function onFailure(error) {\n // en cas d'erreur, on revient au panel initial et on cache la patience\n context._hideWaitingContainer();\n logger.error(\"[ol.control.LayerImport] getCapabilities request failed : \", error);\n }\n });\n };\n\n /**\n * this method is called by this._importServiceLayers method\n * and display layers list from getcapabilities response\n *\n * @param {Object} xmlResponse - getCapabilities response (xml format)\n * @private\n */\n LayerImport.prototype._displayGetCapResponseLayers = function (xmlResponse) {\n var parser;\n var layers;\n var layerDescription = {\n content: null,\n title: null\n };\n var projection;\n this._getCapResponseWMSLayers = [];\n\n // sauvegarde du content d'un GetCapabilities\n this.contentService = xmlResponse;\n\n // Affichage du panel des couches accessibles\n this._importPanel.style.display = \"none\";\n this._getCapPanel.style.display = \"block\";\n\n // Parse GetCapabilities Response\n if (this._currentImportType === \"WMS\") {\n parser = new ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_8___default.a();\n var getCapResponseWMS = this._getCapResponseWMS = parser.read(xmlResponse);\n logger.log(\"getCapabilities response : \", getCapResponseWMS);\n if (getCapResponseWMS && getCapResponseWMS.Capability && getCapResponseWMS.Capability.Layer) {\n // info: le parser Openlayers récupère la première layer de comme un unique objet (il écrase les précédents s'il y a pls à la racine de )\n // /!\\ être vigilant si le parser est modifié (notamment pour récupérer les différentes layers à la racine. ex http://geoservices.brgm.fr/geologie?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities)\n\n var getCapLayer = getCapResponseWMS.Capability.Layer;\n // on va lire le contenu de la (ou les) pour l'afficher ou en afficher les couches disponibles\n if (Array.isArray(getCapLayer)) {\n // cas où on a plusieurs à la racine, mais non géré encore par ol.format.WMSCapabilities jusqu'à la v3.18.2.\n for (var i = 0; i < getCapLayer.length; i++) {\n this._displayGetCapResponseWMSLayer(getCapLayer[i]);\n }\n } else {\n // cas du parser ol.format.WMSCapabilities jusqu'à la v3.18.2.\n this._displayGetCapResponseWMSLayer(getCapLayer);\n }\n }\n } else if (this._currentImportType === \"WMTS\") {\n parser = new ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_9___default.a();\n var getCapResponseWMTS = this._getCapResponseWMTS = parser.read(xmlResponse);\n logger.log(\"getCapabilities response : \", getCapResponseWMTS);\n if (getCapResponseWMTS && getCapResponseWMTS.Contents && getCapResponseWMTS.Contents.Layer) {\n layers = getCapResponseWMTS.Contents.Layer;\n if (Array.isArray(layers)) {\n // on stocke la liste des couches pour faire le lien avec le DOM\n this._getCapResponseWMTSLayers = layers;\n for (var j = 0; j < layers.length; j++) {\n // on vérifie que la projection de la couche WMTS est compatible avec celle de la carte\n // (ie elle doit être connue par ol.proj)\n projection = this._getWMTSLayerProjection(layers[j], getCapResponseWMTS);\n if (projection && typeof projection === \"string\") {\n if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(projection) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(projection.toUpperCase())) {\n // si la projection de la couche est connue par ol.proj,\n // on ajoute chaque couche de la réponse dans la liste des couches accessibles\n layerDescription = {\n content: layers[j].Title,\n title: layers[j].Abstract || layers[j].Title\n };\n if (this._getCapResultsListContainer) {\n this._addImportGetCapResultLayer(layerDescription, j, this._getCapResultsListContainer);\n }\n } else {\n // si la projection de la couche n'est pas connue par ol.proj,\n // on n'affiche pas la couche dans le panel des résultats\n logger.warn(\"[ol.control.LayerImport] wmts layer cannot be added to map : unknown projection\", layers[j]);\n continue;\n }\n }\n }\n }\n }\n }\n };\n\n /**\n * this method is called by this._displayGetCapResponseLayers method\n * and display WMS layer in list from getcapabilities response\n *\n * @param {Object} layerObj - object corresponding to content in WMS GetCapabilities response\n * @param {Object} [parentLayersInfos] - object corresponding to parents content in WMS GetCapabilities response (without children infos)\n * @private\n */\n LayerImport.prototype._displayGetCapResponseWMSLayer = function (layerObj, parentLayersInfos) {\n if (!layerObj) {\n logger.warn(\"[ol.control.LayerImport] _displayGetCapResponseWMSLayer : getCapabilities layer object not found\");\n return;\n }\n logger.log(\"[ol.control.LayerImport] _displayGetCapResponseWMSLayer - layerObj : \", layerObj);\n\n // récupération de la projection de la map (pour vérifier que l'on peut reprojeter les couches disponibles)\n var mapProjCode = this._getMapProjectionCode();\n var projection;\n var layerDescription = {\n content: null,\n title: null\n };\n\n // 1. héritage éventuels des informations de la couche parent\n if (parentLayersInfos) {\n var key;\n var i;\n\n // propriétés héritées à ajouter aux propriétés parent\n var addKeys = [\"CRS\", \"Style\"\n // \"AuthorityURL\" // TODO\n ];\n for (i = 0; i < addKeys.length; i++) {\n key = addKeys[i];\n if (Array.isArray(parentLayersInfos[key]) && parentLayersInfos[key].length !== 0) {\n if (Array.isArray(layerObj[key]) && layerObj[key].length !== 0) {\n // on ajoute celles de la couche parent\n for (var n = 0; n < parentLayersInfos[key].length; n++) {\n if (layerObj[key].indexOf(parentLayersInfos[key][n]) === -1) {\n // si le CRS/Style parent n'est pas dans les CRS/Style de la couche, on l'ajoute\n layerObj[key].push(parentLayersInfos[key][n]);\n }\n }\n } else {\n // si la couche n'a pas de CRS ou Style, on récupère ceux de la couche parent\n layerObj[key] = parentLayersInfos[key];\n }\n }\n }\n\n // propriétés qui remplacent les valeurs des propriétés héritées,\n // càd on récupère la propriété parent seulement si elle n'est pas définie pour l'élément enfant\n var replaceKeys = [\"BoundingBox\", \"EX_GeographicBoundingBox\", \"MaxScaleDenominator\", \"MinScaleDenominator\", \"Attribution\", \"Dimension\", \"queryable\", \"cascaded\", \"opaque\", \"noSubsets\", \"fixedWidth\", \"fixedHeight\"];\n for (i = 0; i < replaceKeys.length; i++) {\n key = replaceKeys[i];\n if (parentLayersInfos[key] && !layerObj[key]) {\n layerObj[key] = parentLayersInfos[key];\n }\n }\n } else {\n // si on n'a pas d'infos de couche parent, on est à la racine du Capability, on le note\n layerObj._isRootLayer = true;\n layerObj._container = this._getCapResultsListContainer;\n if (!layerObj.Title) {\n layerObj.Title = \"Liste des couches\";\n }\n }\n\n // 2. si on a d'autres couches imbriquées, on descend d'un niveau, sinon on affiche la couche dans la liste des résultats\n if (layerObj.Layer) {\n if (Array.isArray(layerObj.Layer)) {\n var _container = layerObj ? layerObj._container : parentLayersInfos._container;\n var _title = layerObj ? layerObj.Title : parentLayersInfos.Title;\n layerObj._container = this._addImportGetCapResultListRubrique(_title, _container).lastChild;\n for (var j = 0; j < layerObj.Layer.length; j++) {\n // on recommence pour chaque sous couche, avec les infos éventuellement héritées\n var bRubriqueExist = false;\n var lstRubrique = layerObj._container.getElementsByClassName(\"GPimportGetCapRubriqueTitle\");\n for (var ii = 0; ii < lstRubrique.length; ii++) {\n if (lstRubrique[ii].title === layerObj.Title) {\n bRubriqueExist = true;\n layerObj.Layer[j]._container = lstRubrique[ii].parentElement;\n }\n }\n if (!bRubriqueExist) {\n layerObj.Layer[j]._container = this._addImportGetCapResultRubrique(layerObj.Title, layerObj._container).lastChild;\n }\n this._displayGetCapResponseWMSLayer(layerObj.Layer[j], layerObj);\n }\n }\n } else {\n // on récupère la longueur de la liste des couches déjà récupérées, pour avoir ce qui sera l'index de la couche à ajouter.\n var lastIndex = this._getCapResponseWMSLayers.length;\n\n // on vérifie que la couche ait une projection compatible avec celle de la carte\n // ou soit connue par proj4js, et on stocke cette projection dans les infos de la couche.\n projection = this._getWMSLayerProjection(layerObj, mapProjCode);\n if (!projection) {\n // si aucune projection n'est compatible avec celle de la carte ou connue par ol.proj,\n // on n'affiche pas la couche dans le panel des résultats\n logger.warn(\"[ol.control.LayerImport] wms layer cannot be added to map : unknown projection\", layerObj);\n } else {\n // si on a une projection compatible : on la stocke et la couche sera éventuellement reprojetée à l'ajout\n layerObj._projection = projection;\n // on ajoute chaque couche de la réponse dans la liste des couches accessibles\n layerDescription = {\n content: layerObj.Title,\n title: layerObj.Abstract || layerObj.Title\n };\n // FIXME beurk !?\n var _isGoodContainer = layerObj._container;\n if (_isGoodContainer.localName === \"ul\") {\n _isGoodContainer = _isGoodContainer.lastChild;\n }\n this._addImportGetCapResultLayer(layerDescription, lastIndex, _isGoodContainer);\n\n // puis on stoke la couche dans la liste pour faire le lien avec le DOM\n this._getCapResponseWMSLayers[lastIndex] = layerObj;\n }\n }\n };\n\n /**\n * this method is called on 'GPimportGetCapProposal' div click\n * and add corresponding layer to map\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n LayerImport.prototype._onGetCapResponseLayerClick = function (e) {\n if (e.target && e.target.id) {\n var proposalId = parseInt(e.target.id.substr(23), 10);\n if (isNaN(proposalId)) {\n return;\n }\n var layerInfo;\n if (this._currentImportType === \"WMS\") {\n // récupération des informations liées à la couche\n layerInfo = this._getCapResponseWMSLayers[proposalId];\n // ajout de la couche à la carte\n this._addGetCapWMSLayer(layerInfo);\n } else if (this._currentImportType === \"WMTS\") {\n // récupération des informations liées à la couche\n layerInfo = this._getCapResponseWMTSLayers[proposalId];\n // ajout de la couche à la carte\n this._addGetCapWMTSLayer(layerInfo);\n }\n }\n };\n\n // ################################################################### //\n // ######### create WMS layer from getCapabilities response ######### //\n // ################################################################### //\n\n /**\n * this method is called by this._onGetCapResponseLayerClick\n * and add WMS layer to map using parameters from getCapabilities response\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @private\n */\n LayerImport.prototype._addGetCapWMSLayer = function (layerInfo) {\n var map = this.getMap();\n if (!map) {\n logger.warn(\"[ol.control.LayerImport] _addGetCapWMSLayer error : map is not defined\");\n return;\n }\n if (!layerInfo) {\n logger.warn(\"[ol.control.LayerImport] _addGetCapWMSLayer error : layerInfo is not defined\");\n return;\n }\n\n // récupération de la projection de la carte\n var mapProjCode = this._getMapProjectionCode();\n var wmsSourceOptions = {};\n\n // Récupération de l'url\n var getMapUrl = this._getWMSLayerGetMapUrl();\n // on essaie de récupérer l'url du service dans le getCapbilities\n if (getMapUrl) {\n wmsSourceOptions.url = getMapUrl;\n } else {\n // sinon, on récupère l'url du getCapabilities, à laquelle on enlève éventuellement les paramètres\n var questionMarkIndex = this._getCapRequestUrl.indexOf(\"?\");\n if (questionMarkIndex !== -1) {\n wmsSourceOptions.url = this._getCapRequestUrl.substring(0, questionMarkIndex);\n } else {\n wmsSourceOptions.url = this._getCapRequestUrl;\n }\n }\n wmsSourceOptions.params = {};\n if (layerInfo.Name) {\n wmsSourceOptions.params[\"LAYERS\"] = layerInfo.Name;\n } else {\n logger.warn(\"[ol.control.LayerImport] unable to add wms layer : mandatory layer 'name' parameter cannot be found\", layerInfo);\n return;\n }\n wmsSourceOptions.params[\"SERVICE\"] = \"WMS\";\n if (this._getCapResponseWMS.version) {\n wmsSourceOptions.params[\"VERSION\"] = this._getCapResponseWMS.version;\n }\n\n // on a déjà vérifié que la couche peut être reprojetée,\n // on vérifie que la couche ait une projection compatible avec celle de la carte\n // ou soit connue par proj4js\n var projection = layerInfo._projection;\n if (!projection) {\n logger.warn(\"[ol.control.LayerImport] wms layer cannot be added to map : unknown projection\");\n return;\n } else if (projection !== mapProjCode) {\n // si la projection de la carte n'est pas disponible pour cette couche,\n // on spécifie une projection (qui doit avoir été définie dans proj4js) pour reprojection par Openlayers\n wmsSourceOptions.projection = projection;\n }\n\n // récupération du premier style disponible (pas d'info default?)\n var legend;\n if (layerInfo.Style && Array.isArray(layerInfo.Style)) {\n var style = layerInfo.Style[0];\n wmsSourceOptions.params[\"STYLES\"] = style.Name;\n if (style.LegendURL && Array.isArray(style.LegendURL) && style.LegendURL.length !== 0) {\n legend = style.LegendURL[0].OnlineResource;\n }\n }\n\n // Création de la source (tester un try catch ?)\n var wmsSource = new ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_15___default.a(wmsSourceOptions);\n // ajout des informations pour le layerSwitcher (titre, description, legendes, metadata) ou originators\n this._getWMSLayerInfoForLayerSwitcher(layerInfo, legend, wmsSource);\n var layerTileOptions = {};\n layerTileOptions[\"source\"] = wmsSource;\n // récupération des résolutions min et max de la layer à partir des dénominateurs d'échelle\n this._getWMSLayerMinMaxResolution(layerInfo, mapProjCode, layerTileOptions);\n // récupération de l'étendue (bbox)\n this._getWMSLayerExtent(layerInfo, mapProjCode, layerTileOptions);\n\n // création de la couche à partir de la source\n var wmsLayer = new ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12___default.a(layerTileOptions);\n // on rajoute le champ gpResultLayerId permettant d'identifier une couche crée par le composant. (pour layerSwitcher par ex)\n wmsLayer.gpResultLayerId = \"layerimport:WMS\";\n // on rajoute le champ gpGFIparams permettant d'identifier si la couche est queryable, et de transmettre les formats reconnus par GetFeatureInfo\n if (layerInfo.queryable) {\n wmsLayer.gpGFIparams = {\n queryable: true\n };\n // récupération des différents formats reconnus par le GetFeatureInfo\n if (this._getCapResponseWMS && this._getCapResponseWMS.Capability && this._getCapResponseWMS.Capability.Request && this._getCapResponseWMS.Capability.Request.GetFeatureInfo && this._getCapResponseWMS.Capability.Request.GetFeatureInfo.Format && Array.isArray(this._getCapResponseWMS.Capability.Request.GetFeatureInfo.Format)) {\n wmsLayer.gpGFIparams.formats = this._getCapResponseWMS.Capability.Request.GetFeatureInfo.Format;\n }\n }\n map.addLayer(wmsLayer);\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and gets service getMap request url\n *\n * @return {String} getmapurl - service getMap request url\n * @private\n */\n LayerImport.prototype._getWMSLayerGetMapUrl = function () {\n var getmapurl;\n if (this._getCapResponseWMS && this._getCapResponseWMS.Capability && this._getCapResponseWMS.Capability.Request && this._getCapResponseWMS.Capability.Request.GetMap) {\n var getmap = this._getCapResponseWMS.Capability.Request.GetMap;\n if (getmap.DCPType && Array.isArray(getmap.DCPType) && getmap.DCPType.length !== 0) {\n var url = getmap.DCPType[0];\n if (url && url.HTTP && url.HTTP.Get) {\n getmapurl = url.HTTP.Get.OnlineResource;\n }\n }\n }\n return getmapurl;\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and gets a projection both available for a given layer and already defined in proj4js (ol.proj)\n * (openlayers raster reprojection will be then able to reproject layer in map projection)\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {String} mapProjCode - map projection code (e.g. \"EPSG:4326\")\n * @return {String} projection - ol.proj projection alias (e.g. \"EPSG:4326\")\n * @private\n */\n LayerImport.prototype._getWMSLayerProjection = function (layerInfo, mapProjCode) {\n var projection;\n if (!layerInfo || _typeof(layerInfo) !== \"object\") {\n logger.warn(\"missing layer information (from getCapabilities)\");\n return;\n }\n\n // on va parcourir la liste des CRS disponibles pour la couche\n // si on trouve la projection de la carte : c'est parfait\n // si on trouve une projection qui est connue par ol.proj : Openlayers gère la reprojection\n var CRSList = layerInfo.CRS;\n if (Array.isArray(CRSList)) {\n // on check si la projection de la carte est dans le tableau de projections issues du getCap,\n // si oui, on la prend\n if (CRSList.includes(mapProjCode)) {\n projection = mapProjCode;\n return projection;\n }\n var layerCRS, i;\n // si aucune projection du getCap pour la couche n'est égale à celle de la carte\n // on retourne la première projection listée dans le getCap qui est gérée par openLayers\n for (i = 0; i < CRSList.length; i++) {\n layerCRS = CRSList[i];\n if (layerCRS && typeof layerCRS === \"string\") {\n if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(layerCRS) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(layerCRS.toUpperCase())) {\n projection = layerCRS;\n // on renvoie la première projection gérée par openLayers\n return projection;\n }\n }\n }\n }\n // si la liste des projections n'est pas un tableau ou si aucune projection n'est égale à celle de la carte ou si aucune n'est gérée par openLayers\n // on return undefined (comportement d'origine de la fonction)\n return projection;\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and sets minResolution and maxResolution parameters for WMS layer (if available in getCapabilities response)\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {String} mapProjCode - map projection code (e.g. \"EPSG:4326\")\n * @param {Object} layerTileOptions - options for ol.layer.Tile (to be filled)\n * @private\n */\n LayerImport.prototype._getWMSLayerMinMaxResolution = function (layerInfo, mapProjCode, layerTileOptions) {\n // récupération des résolutions min et max à partir des dénominateurs d'échelle\n var mapUnits = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(mapProjCode).getUnits();\n if (mapUnits === \"m\") {\n // info : 1 pixel = 0.00028 m\n if (layerInfo.MinScaleDenominator) {\n layerTileOptions.minResolution = layerInfo.MinScaleDenominator * 0.00028;\n }\n if (layerInfo.MaxScaleDenominator) {\n layerTileOptions.maxResolution = layerInfo.MaxScaleDenominator * 0.00028;\n }\n } else if (mapUnits === \"degrees\") {\n // info : 6378137 * 2 * pi / 360 = rayon de la terre (ellipsoide WGS84)\n var cste = 0.00028 * 180 / (Math.PI * 6378137);\n if (layerInfo.MinScaleDenominator) {\n layerTileOptions.minResolution = layerInfo.MinScaleDenominator * cste;\n }\n if (layerInfo.MaxScaleDenominator) {\n layerTileOptions.maxResolution = layerInfo.MaxScaleDenominator * cste;\n }\n }\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and sets extent for WMS layer in map projection (if available in getCapabilities response)\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {String} mapProjCode - map projection code (e.g. \"EPSG:4326\")\n * @param {Object} layerTileOptions - options for ol.layer.Tile (to be filled)\n * @private\n */\n LayerImport.prototype._getWMSLayerExtent = function (layerInfo, mapProjCode, layerTileOptions) {\n if (!layerInfo) {\n logger.warn(\"[ol.control.LayerImport] _getWMSLayerExtent error : layerInfo is not defined\");\n return;\n }\n\n // récupération des 2 propriétés qui peuvent spécifier l'étendue (bbox) selon les specs OGC WMS 1.3.0 :\n // 1. layerInfo.EX_GeographicBoundingBox est un tableau de type [westBoundLongitude, southBoundLatitude, eastBoundLongitude, northBoundLatitude] en WGS84\n var exGeographicBoundingBox = layerInfo[\"EX_GeographicBoundingBox\"];\n // 2. layerInfo.BoundingBox est un tableau dont chaque élément est un objet (balise bbox) avec les propriétés suivantes :\n // crs (String) et extent (tableau de type [minx, miny, maxx, maxy])\n var boundingBox = layerInfo.BoundingBox;\n if (exGeographicBoundingBox && Array.isArray(exGeographicBoundingBox)) {\n if (mapProjCode === \"EPSG:4326\") {\n // si la projection de la carte est la même que celle de l'extent (EPSG:4326), on la passe telle quelle\n layerTileOptions.extent = exGeographicBoundingBox;\n } else {\n layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"transformExtent\"])(exGeographicBoundingBox, \"EPSG:4326\", mapProjCode);\n }\n\n // si jamais EX_GeographicBoundingBox n'est pas ou est mal renseigné, on essaie de récupérer via le paramètre BoundingBox\n } else if (boundingBox && Array.isArray(boundingBox)) {\n var crs;\n var extent;\n for (var i = 0; i < boundingBox.length; i++) {\n // on peut avoir plusieurs BoundingBox\n crs = boundingBox[i].crs;\n extent = boundingBox[i].extent;\n if (crs) {\n if (crs === mapProjCode) {\n // si la bbox est dans la projection de la carte, on la passe telle quelle\n layerTileOptions.extent = extent;\n break;\n } else {\n if (typeof crs === \"string\") {\n var olProj = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(crs) ? Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(crs) : Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(crs.toUpperCase());\n // if ( olGetProj(crs) || olGetProj(crs.toUpperCase()) ) {\n if (olProj) {\n // si la bbox est dans une projection connue, on va la reprojeter\n // tout d'abord, on gère le cas des systèmes EPSG géographiques : inversion des axes x et y\n if (olProj.getUnits() === \"degrees\" && crs.toUpperCase().indexOf(\"EPSG\") === 0) {\n // le tableau extent est inversé, on a besoin de : [miny, minx, maxx, maxy]\n var reversedExtent = [extent[1], extent[0], extent[3], extent[2]];\n layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"transformExtent\"])(reversedExtent, olProj, mapProjCode);\n } else {\n // reprojection dans la projection de la carte\n layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"transformExtent\"])(extent, olProj, mapProjCode);\n }\n break;\n }\n }\n }\n }\n }\n }\n };\n\n /**\n * this method is called by this._addGetCapWMSLayer\n * and sets more information about layer (legends, title, description, metadata, originators) for layerSwitcher or attributions controls\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {String} legend - legend url\n * @param {Object} wmsSource - options for ol.source.TileWMS (to be filled)\n * @private\n */\n LayerImport.prototype._getWMSLayerInfoForLayerSwitcher = function (layerInfo, legend, wmsSource) {\n // ajout des informations pour le layerSwitcher (titre, description)\n if (layerInfo.Title) {\n wmsSource._title = layerInfo.Title;\n wmsSource._description = layerInfo.Abstract ? layerInfo.Abstract : layerInfo.Title;\n } else {\n wmsSource._title = layerInfo.Name;\n wmsSource._description = layerInfo.Abstract ? layerInfo.Abstract : layerInfo.Name;\n }\n // ajout de légende si on en a trouvé\n if (legend) {\n wmsSource._legends = [{\n url: legend\n }];\n }\n // ajout d'éventuelles métadonnées\n if (layerInfo.MetadataURL && Array.isArray(layerInfo.MetadataURL)) {\n wmsSource._metadata = [];\n for (var i = 0; i < layerInfo.MetadataURL.length; i++) {\n var metadata = layerInfo.MetadataURL[i].OnlineResource;\n if (metadata) {\n wmsSource._metadata.push({\n url: metadata\n });\n }\n }\n }\n // ajout d'éventuelles attributions / originators\n if (layerInfo.Attribution) {\n var attribution = layerInfo.Attribution;\n wmsSource._originators = {};\n if (attribution.OnlineResource) {\n wmsSource._originators.url = attribution.OnlineResource;\n }\n if (attribution.Title) {\n wmsSource._originators.name = wmsSource._originators.attribution = attribution.Title;\n }\n if (attribution.LogoURL && attribution.LogoURL.OnlineResource) {\n wmsSource._originators.logo = attribution.LogoURL.OnlineResource;\n }\n }\n };\n\n // ################################################################### //\n // ######### create WMTS layer from getCapabilities response ######### //\n // ################################################################### //\n\n /**\n * this method is called by this._onGetCapResponseLayerClick\n * and add WMTS layer to map using parameters from getCapabilities response\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @private\n */\n LayerImport.prototype._addGetCapWMTSLayer = function (layerInfo) {\n if (!layerInfo || !layerInfo.Identifier) {\n logger.warn(\"[ol.control.LayerImport] layer information not found in getCapabilities response for layer \");\n return;\n }\n var map = this.getMap();\n if (!map) {\n return;\n }\n var wmtsSourceOptions = {};\n wmtsSourceOptions.layer = layerInfo.Identifier;\n // service version\n if (this._getCapResponseWMTS.version) {\n wmtsSourceOptions.version = this._getCapResponseWMTS.version;\n }\n // Récupération de l'url\n var getMapUrl = this._getWMTSLayerGetTileUrl();\n // on essaie de récupérer l'url du service dans le getCapbilities\n if (getMapUrl) {\n wmtsSourceOptions.url = getMapUrl;\n } else {\n // sinon, on récupère l'url du getCapabilities, à laquelle on enlève éventuellement les paramètres\n var questionMarkIndex = this._getCapRequestUrl.indexOf(\"?\");\n if (questionMarkIndex !== -1) {\n wmtsSourceOptions.url = this._getCapRequestUrl.substring(0, questionMarkIndex);\n } else {\n wmtsSourceOptions.url = this._getCapRequestUrl;\n }\n }\n\n // Récupération des informations de la pyramide (tileGrid information) : matrixIds, resolutions, origin et projection\n var tmsOptions = this._getTMSParams(layerInfo);\n wmtsSourceOptions.matrixSet = tmsOptions.tms;\n wmtsSourceOptions.projection = tmsOptions.projCode;\n wmtsSourceOptions.tileGrid = new ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5___default.a({\n resolutions: tmsOptions.resolutions,\n matrixIds: tmsOptions.matrixIds,\n origin: tmsOptions.origin\n });\n\n // Récupération du style par défaut\n var defaultStyle;\n var legend;\n if (layerInfo.Style && Array.isArray(layerInfo.Style)) {\n var style;\n for (var s = 0; s < layerInfo.Style.length; s++) {\n style = layerInfo.Style[s];\n // on récupère le style\n defaultStyle = style.Identifier;\n if (style.isDefault) {\n // si c'est celui par défaut, on le garde (on ne boucle plus sur les autres styles)\n break;\n }\n // et une éventuelle légende\n if (style.LegendURL && Array.isArray(style.LegendURL) && style.LegendURL.length !== 0) {\n legend = style.LegendURL[0].href;\n }\n }\n }\n if (defaultStyle == null) {\n logger.warn(\"[ol.control.LayerImport] style information not found in getCapabilities response for layer \" + layerInfo.Identifier);\n }\n wmtsSourceOptions.style = defaultStyle;\n\n // Récupération du format (le premier trouvé)\n var format;\n if (layerInfo.Format && Array.isArray(layerInfo.Format)) {\n format = layerInfo.Format[0];\n }\n if (format == null) {\n logger.warn(\"[ol.control.LayerImport] format information not found in getCapabilities response for layer \" + layerInfo.Identifier);\n }\n wmtsSourceOptions.format = format;\n\n // Création de la source (tester un try catch ?)\n var wmtsSource = new ol_source_WMTS__WEBPACK_IMPORTED_MODULE_16___default.a(wmtsSourceOptions);\n\n // ajout des informations pour le layerSwitcher (titre, description)\n if (layerInfo.Title) {\n wmtsSource._title = layerInfo.Title;\n wmtsSource._description = layerInfo.Abstract ? layerInfo.Abstract : layerInfo.Title;\n } else {\n wmtsSource._title = layerInfo.Identifier;\n wmtsSource._description = layerInfo.Abstract ? layerInfo.Abstract : layerInfo.Identifier;\n }\n // ajout d'une éventuelle légende\n if (legend) {\n wmtsSource._legends = [{\n url: legend\n }];\n }\n var layerTileOptions = {};\n layerTileOptions.source = wmtsSource;\n // récupération de l'étendue (bbox)\n layerTileOptions.extent = this._getWMTSLayerExtent(layerInfo);\n var wmtsLayer;\n try {\n wmtsLayer = new ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12___default.a(layerTileOptions);\n } catch (e) {\n logger.warn(\"[ol.control.LayerImport] an error occured while trying to create ol.layer.Tile from getCapabilities information. error : \", e);\n return;\n }\n // on rajoute le champ gpResultLayerId permettant d'identifier une couche crée par le composant. (pour layerSwitcher par ex)\n wmtsLayer.gpResultLayerId = \"layerimport:WMTS\";\n map.addLayer(wmtsLayer);\n };\n\n /**\n * this method is called by this._addGetCapWMTSLayer\n * and gets service getTile request url\n *\n * @return {String} gettileurl - service getTile request url\n * @private\n */\n LayerImport.prototype._getWMTSLayerGetTileUrl = function () {\n var gettileurl;\n if (this._getCapResponseWMTS && this._getCapResponseWMTS.OperationsMetadata && this._getCapResponseWMTS.OperationsMetadata.GetTile) {\n var gettile = this._getCapResponseWMTS.OperationsMetadata.GetTile;\n if (gettile.DCP && gettile.DCP.HTTP && gettile.DCP.HTTP.Get && Array.isArray(gettile.DCP.HTTP.Get) && gettile.DCP.HTTP.Get.length !== 0) {\n gettileurl = gettile.DCP.HTTP.Get[0].href;\n }\n }\n return gettileurl;\n };\n\n /**\n * this method is called by this._displayGetCapResponseLayers\n * and gets layer TileMatrixSet projection if defined in proj4js\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @param {Object} getCapResponseWMTS - whole getCapabilities response\n * @return {String} projection - ol.proj projection alias (e.g. \"EPSG:4326\")\n * @private\n */\n LayerImport.prototype._getWMTSLayerProjection = function (layerInfo, getCapResponseWMTS) {\n var projection;\n if (!layerInfo || _typeof(layerInfo) !== \"object\") {\n logger.warn(\"missing layer information (from getCapabilities)\");\n return;\n }\n if (!getCapResponseWMTS || _typeof(getCapResponseWMTS) !== \"object\") {\n logger.warn(\"missing getCapabilities response\");\n return;\n }\n if (layerInfo.TileMatrixSetLink && Array.isArray(layerInfo.TileMatrixSetLink)) {\n var tms = layerInfo.TileMatrixSetLink[0].TileMatrixSet;\n var crs;\n if (getCapResponseWMTS.Contents && Array.isArray(getCapResponseWMTS.Contents.TileMatrixSet)) {\n var tileMatrixSets = getCapResponseWMTS.Contents.TileMatrixSet;\n for (var i = 0; i < tileMatrixSets.length; i++) {\n if (tileMatrixSets[i].Identifier === tms && tileMatrixSets[i].TileMatrix) {\n // on a trouvé le TMS correspondant\n var tileMatrixSet = tileMatrixSets[i];\n crs = tileMatrixSet.SupportedCRS;\n if (crs && typeof crs === \"string\") {\n if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(crs) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(crs.toUpperCase())) {\n projection = crs;\n }\n }\n break;\n }\n }\n }\n }\n ;\n return projection;\n };\n\n /**\n * this method is called by this._addGetCapWMTSLayer\n * and get ol.tileGrid.WMTS parameters using getCapabilities response\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @return {Object} tmsOptions - ol.tileGrid.WMTS options\n * @private\n */\n LayerImport.prototype._getTMSParams = function (layerInfo) {\n var tmsOptions = {};\n var matrixIds = [];\n var resolutions = [];\n var origin = [];\n var tms;\n var projCode;\n var projection;\n\n // TODO : recup TOUS les autres params d'un tileGrid ! (tileSize, width...)\n\n var map = this.getMap();\n if (!map) {\n return;\n }\n\n // Récupération des informations de la pyramide (tileGrid information) : matrixIds, resolutions, origin\n if (layerInfo.TileMatrixSetLink && Array.isArray(layerInfo.TileMatrixSetLink)) {\n tms = layerInfo.TileMatrixSetLink[0].TileMatrixSet;\n if (this._getCapResponseWMTS.Contents && Array.isArray(this._getCapResponseWMTS.Contents.TileMatrixSet)) {\n var tileMatrixSets = this._getCapResponseWMTS.Contents.TileMatrixSet;\n for (var i = 0; i < tileMatrixSets.length; i++) {\n if (tileMatrixSets[i].Identifier === tms && tileMatrixSets[i].TileMatrix) {\n // on a trouvé le TMS correspondant\n var tileMatrixSet = tileMatrixSets[i];\n var tilematrix;\n var id;\n var scaledenominator;\n var resolution;\n var units;\n if (tileMatrixSet.SupportedCRS) {\n projCode = tileMatrixSet.SupportedCRS;\n projection = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"get\"])(projCode);\n }\n if (projection && projection.getUnits) {\n units = projection.getUnits();\n }\n if (Array.isArray(tileMatrixSet.TileMatrix)) {\n for (var j = 0; j < tileMatrixSet.TileMatrix.length; j++) {\n // construction du tableau des matrixIds\n tilematrix = tileMatrixSet.TileMatrix[j];\n if (tilematrix.Identifier != null) {\n id = parseInt(tilematrix.Identifier, 10);\n matrixIds.push(id);\n }\n\n // construction du tableau des résolutions, calculées à partir des dénominateurs d'échelle (scaledenominator)\n scaledenominator = tilematrix.ScaleDenominator;\n // calcul des résolutions selon la projection du TMS : selon si on a des coordonnées planes ou géographiques\n if (units === \"degrees\") {\n // info : 6378137 * 2 * pi / 360 = rayon de la terre (ellipsoide WGS84)\n resolution = scaledenominator * 0.00028 * 180 / (Math.PI * 6378137);\n } else {\n // info : 1 pixel = 0.00028 m\n resolution = scaledenominator * 0.00028;\n }\n resolutions.push(resolution);\n origin = tilematrix.TopLeftCorner;\n }\n }\n\n // tri des résolutions par ordre décroissant\n if (resolutions.sort !== undefined) {\n resolutions.sort(function (x, y) {\n return y - x;\n });\n }\n // tri des identifiants des niveaux de pyramide (matrixIds) par ordre croissant\n if (matrixIds.sort !== undefined) {\n matrixIds.sort(function (x, y) {\n return x - y;\n });\n }\n }\n }\n } else {\n logger.warn(\"[ol.control.LayerImport] TileMatrixSet data not found in getCapabilities response for layer \" + layerInfo.Identifier);\n }\n } else {\n return;\n }\n tmsOptions.tms = tms;\n tmsOptions.projCode = projCode;\n tmsOptions.matrixIds = matrixIds;\n tmsOptions.resolutions = resolutions;\n tmsOptions.origin = origin;\n return tmsOptions;\n };\n\n /**\n * this method is called by this._addGetCapWMTSLayer\n * and sets extent for WMTS layer in map projection (if available in getCapabilities response)\n *\n * @param {Object} layerInfo - layer information from getCapabilities response\n * @return {Array} extent - layer extent\n * @private\n */\n LayerImport.prototype._getWMTSLayerExtent = function (layerInfo) {\n var extent;\n var mapProjCode = this._getMapProjectionCode();\n\n // récupération de l'étendue (bbox)\n if (layerInfo.WGS84BoundingBox && Array.isArray(layerInfo.WGS84BoundingBox)) {\n extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__[\"transformExtent\"])(layerInfo.WGS84BoundingBox, \"EPSG:4326\", mapProjCode);\n }\n return extent;\n };\n\n // ################################################################### //\n // ################################ utils ############################ //\n // ################################################################### //\n\n /**\n * gets control map projection code\n *\n * @return {String} mapProjCode - control map projection code (e.g. \"EPSG:3857\")\n * @private\n */\n LayerImport.prototype._getMapProjectionCode = function () {\n var map = this.getMap();\n if (!map || !map.getView || !map.getView().getProjection) {\n logger.warn(\"unable to get layerimport's map\");\n return;\n }\n var mapProjCode = map.getView().getProjection().getCode();\n return mapProjCode;\n };\n\n // ################################################################### //\n // ################################ clean ############################ //\n // ################################################################### //\n\n /**\n * this method displays waiting container and sets a timeout\n *\n * @private\n */\n LayerImport.prototype._displayWaitingContainer = function () {\n this._waitingContainer.className = \"GPimportWaitingContainerVisible\";\n this._waiting = true;\n\n // mise en place d'un timeout pour réinitialiser le panel (cacher la patience)\n // si on est toujours en attente (si la requête est bloquée par exemple)\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n var context = this;\n this._timer = setTimeout(function () {\n if (context._waiting === true) {\n context._hideWaitingContainer();\n } else {\n if (context._timer) {\n clearTimeout(context._timer);\n }\n }\n }, 16000);\n };\n\n /**\n * this method hides waiting container and clears timeout\n *\n * @private\n */\n LayerImport.prototype._hideWaitingContainer = function () {\n if (this._waiting) {\n this._waitingContainer.className = \"GPimportWaitingContainerHidden\";\n this._waiting = false;\n clearTimeout(this._timer);\n this._timer = null;\n }\n };\n\n /**\n * this method empties getCap results list (DOM element)\n *\n * @private\n */\n LayerImport.prototype.cleanGetCapResultsList = function () {\n this._getCapRequestUrl = null;\n this._getCapResponseWMS = null;\n this._getCapResponseWMTS = null;\n this._getCapResponseWMSLayers = null;\n this._getCapResponseWMTSLayers = null;\n if (this._getCapResultsListContainer) {\n while (this._getCapResultsListContainer.firstChild) {\n this._getCapResultsListContainer.removeChild(this._getCapResultsListContainer.firstChild);\n }\n }\n };\n\n /**\n * this method empties MapBox results list (DOM element)\n *\n * @private\n */\n LayerImport.prototype.cleanMapBoxResultsList = function () {\n this._hasMapBoxResults = false;\n if (this._mapBoxResultsListContainer) {\n while (this._mapBoxResultsListContainer.firstChild) {\n this._mapBoxResultsListContainer.removeChild(this._mapBoxResultsListContainer.firstChild);\n }\n }\n };\n\n /**\n * this method empties MapBox results list (DOM element)\n *\n * @param {*} id - DOM id\n * @private\n */\n LayerImport.prototype.cleanMapBoxResults = function (id) {\n this._hasMapBoxResults = false;\n if (this._mapBoxResultsListContainer) {\n var nodes = this._mapBoxResultsListContainer.childNodes;\n for (var index = 0; index < nodes.length; index++) {\n var element = nodes[index];\n if (element.id === \"GPEditorMapBoxContainer_ID_\" + id) {\n element.remove();\n }\n }\n }\n };\n return LayerImport;\n}(ol_control_Control__WEBPACK_IMPORTED_MODULE_1___default.a);\n/* harmony default export */ __webpack_exports__[\"default\"] = (LayerImport);\n\n// Expose LayerImport as ol.control.LayerImport (for a build bundle)\nif (window.ol && window.ol.control) {\n window.ol.control.LayerImport = LayerImport;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9PcGVuTGF5ZXJzL0NvbnRyb2xzL0xheWVySW1wb3J0LmpzPzNhMTYiXSwibmFtZXMiOlsibG9nZ2VyIiwiTG9nZ2VyIiwiZ2V0TG9nZ2VyIiwiTGF5ZXJJbXBvcnQiLCJDb250c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Ly9sb2NhbGhvc3QvcHJveHkvcGhwL3Byb3h5LnBocD91cmw9XCIsXG4gKiAgICAgICAgICBcIm5vUHJveHlEb21haW5zXCIgOiBbXVxuICogICAgICB9LFxuICogICAgICBcInZlY3RvclN0eWxlT3B0aW9uc1wiIDoge1xuICogICAgICAgICAgXCJLTUxcIiA6IHtcbiAqICAgICAgICAgICAgICBleHRyYWN0U3R5bGVzIDogdHJ1ZSxcbiAqICAgICAgICAgICAgICBkZWZhdWx0U3R5bGUgOiBuZXcgb2wuc3R5bGUuU3R5bGUoe1xuICogICAgICAgICAgICAgICAgICBpbWFnZSA6IG5ldyBvbC5zdHlsZS5JY29uKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBzcmMgOiBcImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NC4uLi5cIixcbiAqICAgICAgICAgICAgICAgICAgICAgICBzaXplIDogWzUxLCAzOF0sXG4gKiAgICAgICAgICAgICAgICAgIH0pLFxuICogICAgICAgICAgICAgICAgICBzdHJva2UgOiBuZXcgb2wuc3R5bGUuU3Ryb2tlKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBjb2xvciA6IFwiI2ZmZmZmZlwiLFxuICogICAgICAgICAgICAgICAgICAgICAgIHdpZHRoIDogN1xuICogICAgICAgICAgICAgICAgICB9KSxcbiAqICAgICAgICAgICAgICAgICAgZmlsbCA6IG5ldyBvbC5zdHlsZS5GaWxsKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBjb2xvciA6IFwicmdiYSgyNTUsIDE4MywgMTUyLCAwLjIpXCJcbiAqICAgICAgICAgICAgICAgICAgfSksXG4gKiAgICAgICAgICAgICAgICAgIHRleHQgOiBuZXcgb2wuc3R5bGUuVGV4dCh7XG4gKiAgICAgICAgICAgICAgICAgICAgICBmb250IDogXCIxNnB4IFNhbnNcIixcbiAqICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbiA6IFwibGVmdFwiLFxuICogICAgICAgICAgICAgICAgICAgICAgZmlsbCA6IG5ldyBvbC5zdHlsZS5GaWxsKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xvciA6IFwicmdiYSgyNTUsIDI1NSwgMjU1LCAxKVwiXG4gKiAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAqICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZSA6IG5ldyBvbC5zdHlsZS5TdHJva2Uoe1xuICogICAgICAgICAgICAgICAgICAgICAgICAgIGNvbG9yIDogXCJyZ2JhKDAsIDAsIDAsIDEpXCIsXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGggOiAyXG4gKiAgICAgICAgICAgICAgICAgICAgICB9KVxuICogICAgICAgICAgICAgICAgICB9KVxuICogICAgICAgICAgICAgIH0pXG4gKiAgICAgICAgICB9LFxuICogICAgICAgICAgXCJHUFhcIiA6IHtcbiAqICAgICAgICAgICAgICBkZWZhdWx0U3R5bGUgOiBuZXcgb2wuc3R5bGUuU3R5bGUoe1xuICogICAgICAgICAgICAgICAgICBpbWFnZSA6IG5ldyBvbC5zdHlsZS5JY29uKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBzcmMgOiBcInBhdGgvdG8vbXkvaWNvbi5wbmdcIixcbiAqICAgICAgICAgICAgICAgICAgICAgICBzaXplIDogWzUxLCAzOF0sXG4gKiAgICAgICAgICAgICAgICAgIH0pLFxuICogICAgICAgICAgICAgICAgICBzdHJva2UgOiBuZXcgb2wuc3R5bGUuU3Ryb2tlKHtcbiAqICAgICAgICAgICAgICAgICAgICAgICBjb2xvciA6IFwiI2ZmZmZmZlwiLFxuICogICAgICAgICAgICAgICAgICAgICAgIHdpZHRoIDogN1xuICogICAgICAgICAgICAgICAgICB9KVxuICogICAgICAgICAgICAgIH0pXG4gKiAgICAgICAgICB9XG4gKiAgICAgIH1cbiAqICB9KTtcbiAqL1xudmFyIExheWVySW1wb3J0ID0gKGZ1bmN0aW9uIChDb250cm9sKSB7XG4gICAgLyoqXG4gICAgICogU2VlIHtAbGluayBvbC5jb250cm9sLkxheWVySW1wb3J0fVxuICAgICAqIEBtb2R1bGUgTGF5ZXJJbXBvcnRcbiAgICAgKiBAYWxpYXMgbW9kdWxlOn5Db250cm9scy9MYXllckltcG9ydFxuICAgICAqIEBwYXJhbSB7Kn0gb3B0aW9ucyAtIG9wdGlvbnNcbiAgICAgKiBAZXhhbXBsZVxuICAgICAqIGltcG9ydCBMYXllckltcG9ydCBmcm9tIFwic3JjL09wZW5MYXllcnMvQ29udHJvbHMvTGF5ZXJJbXBvcnRcIlxuICAgICAqL1xuICAgIGZ1bmN0aW9uIExheWVySW1wb3J0IChvcHRpb25zKSB7XG4gICAgICAgIG9wdGlvbnMgPSBvcHRpb25zIHx8IHt9O1xuXG4gICAgICAgIGlmICghKHRoaXMgaW5zdGFuY2VvZiBMYXllckltcG9ydCkpIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoXCJFUlJPUiBDTEFTU19DT05TVFJVQ1RPUlwiKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuX2luaXRpYWxpemUob3B0aW9ucyk7XG5cbiAgICAgICAgLy8gaW5pdCBjb250cm9sIERPTSBjb250YWluZXJcbiAgICAgICAgdmFyIGNvbnRhaW5lciA9IHRoaXMuX2NvbnRhaW5lciA9IHRoaXMuX2luaXRDb250YWluZXIob3B0aW9ucyk7XG5cbiAgICAgICAgLy8gY2FsbCBvbC5jb250cm9sLkNvbnRyb2wgY29uc3RydWN0b3JcbiAgICAgICAgQ29udHJvbC5jYWxsKHRoaXMsIHtcbiAgICAgICAgICAgIGVsZW1lbnQgOiBjb250YWluZXIsXG4gICAgICAgICAgICB0YXJnZXQgOiBvcHRpb25zLnRhcmdldCxcbiAgICAgICAgICAgIHJlbmRlciA6IG9wdGlvbnMucmVuZGVyXG4gICAgICAgIH0pO1xuICAgIH07XG5cbiAgICAvLyBJbmhlcml0cyBmcm9tIG9sLmNvbnRyb2wuQ29udHJvbFxuICAgIGlmIChDb250cm9sKSBMYXllckltcG9ydC5fX3Byb3RvX18gPSBDb250cm9sO1xuXG4gICAgLyoqXG4gICAgICogRGVmYXVsdCBzdHlsZXMgYXBwbHlpZWQgdG8gS01MLCBHUFggYW5kIEdlb0pTT04gZmVhdHVyZXMuXG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIExheWVySW1wb3J0LkRlZmF1bHRTdHlsZXMgPSB7XG4gICAgICAgIGltYWdlIDogbmV3IEljb24oe1xuICAgICAgICAgICAgc3JjIDogTWFya2Vyc1tcImxpZ2h0T3JhbmdlXCJdLFxuICAgICAgICAgICAgYW5jaG9yIDogWzI1LjUsIDM4XSxcbiAgICAgICAgICAgIGFuY2hvck9yaWdpbiA6IFwidG9wLWxlZnRcIixcbiAgICAgICAgICAgIGFuY2hvclhVbml0cyA6IFwicGl4ZWxzXCIsXG4gICAgICAgICAgICBhbmNob3JZVW5pdHMgOiBcInBpeGVsc1wiXG4gICAgICAgIH0pLFxuICAgICAgICBzdHJva2UgOiBuZXcgU3Ryb2tlKHtcbiAgICAgICAgICAgIGNvbG9yIDogXCJyZ2JhKDAsNDIsODAsMC44KVwiLFxuICAgICAgICAgICAgd2lkdGggOiA0XG4gICAgICAgIH0pLFxuICAgICAgICBmaWxsIDogbmV3IEZpbGwoe1xuICAgICAgICAgICAgY29sb3IgOiBcInJnYmEoMCwgMTgzLCAxNTIsIDAuNSlcIlxuICAgICAgICB9KSxcbiAgICAgICAgdGV4dCA6IG5ldyBUZXh0KHtcbiAgICAgICAgICAgIGZvbnQgOiBcIjE2cHggU2Fuc1wiLFxuICAgICAgICAgICAgdGV4dEFsaWduIDogXCJsZWZ0XCIsXG4gICAgICAgICAgICBmaWxsIDogbmV3IEZpbGwoe1xuICAgICAgICAgICAgICAgIGNvbG9yIDogXCJyZ2JhKDI1NSwgMjU1LCAyNTUsIDEpXCJcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgc3Ryb2tlIDogbmV3IFN0cm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WFwIC0gTWFwLlxuICAgICAqL1xuICAgIExheWVySW1wb3J0LnByb3RvdHlwZS5zZXRNYXAgPSBmdW5jdGlvbiAobWFwKSB7XG4gICAgICAgIC8vIGFqb3V0IGRlIGxhIHBhdGllbmNlIHBvdXIgbGUgY2hhcmdlbWVudCBkZXMgdHVpbGVzXG4gICAgICAgIGlmIChtYXApIHtcbiAgICAgICAgICAgIC8vIEFuaW1hdGlvbiBhdSBjZW50cmUgZGUgbGEgY2FydGUgP1xuICAgICAgICAgICAgLy8gdmFyIGNlbnRlciA9IHRoaXMuX2xvYWRpbmdDb250YWluZXIgPSB0aGlzLl9jcmVhdGVMb2FkaW5nRWxlbWVudCgpO1xuICAgICAgICAgICAgLy8gbWFwLmdldFZpZXdwb3J0KCkuYXBwZW5kQ2hpbGQoY2VudGVyKTtcblxuICAgICAgICAgICAgdmFyIHNlbGYgPSB0aGlzO1xuICAgICAgICAgICAgbWFwLmdldExheWVycygpLm9uKFxuICAgICAgICAgICAgICAgIFwicmVtb3ZlXCIsXG4gICAgICAgICAgICAgICAgZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gaW1wb3J0IGRlIHR5cGUgbGF5ZXJpbXBvcnQ6TWFwQm94ID9cbiAgICAgICAgICAgICAgICAgICAgaWYgKGUuZWxlbWVudC5ncFJlc3VsdExheWVySWQgPT09IFwibGF5ZXJpbXBvcnQ6TUFQQk9YXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGxheWVyIGF5YW50IHVuIGVkaXRvciBJRCBhc3NvY2nDqSA/XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZS5lbGVtZW50LmdwRWRpdG9ySWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBsZSBwYW5uZWF1IGRlcyByw6lzdWx0YXRzIGV4aXN0ZSB0IGlsID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoc2VsZi5fbWFwQm94UGFuZWwgJiYgc2VsZi5faW1wb3J0UGFuZWwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5jbGVhbk1hcEJveFJlc3VsdHMoZS5lbGVtZW50LmdwRWRpdG9ySWQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLl9tYXBCb3hQYW5lbC5zdHlsZS5kaXNwbGF5ID0gXCJub25lXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2ltcG9ydFBhbmVsLnN0eWxlLmRpc3BsYXkgPSBcIlwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgc2VsZlxuICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgLy8gbW9kZSBcImRyYWdnYWJsZVwiXG4gICAgICAgICAgICBpZiAodGhpcy5kcmFnZ2FibGUpIHtcbiAgICAgICAgICAgICAgICBEcmFnZ2FibGUuZHJhZ0VsZW1lbnQoXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX2ltcG9ydFBhbmVsLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9pbXBvcnRQYW5lbEhlYWRlcixcbiAgICAgICAgICAgICAgICAgICAgbWFwLmdldFRhcmdldEVsZW1lbnQoKVxuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICAvLyBwYW5uZWF1IGRyYWdnYWJsZSBwb3VyIGxlcyByZXN1bHRhdHMgP1xuICAgICAgICAgICAgICAgIERyYWdnYWJsZS5kcmFnRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fZ2V0Q2FwUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX2dldENhcFBhbmVsSGVhZGVyLFxuICAgICAgICAgICAgICAgICAgICBtYXAuZ2V0VGFyZ2V0RWxl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mF0ZVxuICAgICAqL1xuICAgIExheWVySW1wb3J0LnByb3RvdHlwZS5faW5pdGlhbGl6ZSA9IGZ1bmN0aW9uIChvcHRpb25zKSB7XG4gICAgICAgIC8vICMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyAvL1xuICAgICAgICAvLyAjIyMjIyMjIyMjIyMjIyMjIyMjIE9wdGlvbnMgZHUgY29tcG9zYW50ICMjIyMjIyMjIyMjIyMjIyMjIyMgLy9cblxuICAgICAgICAvLyBjaGVjayBpbnB1dCBvcHRpb25zIGZvcm1hdFxuICAgICAgICB0aGlzLl9jaGVja0lucHV0T3B0aW9ucyhvcHRpb25zKTtcblxuICAgICAgICAvLyBzZXQgZGVmYXVsdCBvcHRpb25zXG4gICAgICAgIHRoaXMub3B0aW9ucyA9IHtcbiAgICAgICAgICAgIGNvbGxhcHNlZCA6IHRydWUsXG4gICAgICAgICAgICBkcmFnZ2FibGUgOiBmYWxzZSxcbiAgICAgICAgICAgIGxheWVyVHlwZXMgOiBbXCJLTUxcIiwgXCJHUFhcIiwgXCJHZW9KU09OXCIsIFwiV01TXCIsIFwiV01UU1wiLCBcIk1BUEJPWFwiXSxcbiAgICAgICAgICAgIHdlYlNlcnZpY2VzT3B0aW9ucyA6IHt9LFxuICAgICAgICAgICAgdmVjdG9yU3R5bGVPcHRpb25zIDoge1xuICAgICAgICAgICAgICAgIEtNTCA6IHtcbiAgICAgICAgICAgICAgICAgICAgZXh0cmFjdFN0eWxlcyA6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIHNob3dQb2ludE5hbWVzIDogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdFN0eWxlIDoge31cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIEdQWCA6IHtcbiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdFN0eWxlIDoge31cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIEdlb0pTT04gOiB7XG4gICAgICAgICAgICAgICAgICAgIGRlZmF1bHRTdHlsZSA6IHt9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBNYXBCb3ggOiB7XG4gICAgICAgICAgICAgICAgICAgIGRlZmF1bHRTdHlsZSA6IHt9LFxuICAgICAgICAgICAgICAgICAgICBlZGl0b3IgOiB7fVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfTtcblxuICAgICAgICAvLyBUT0RPIGdlc3Rpb24gZHUgcHJveHlcblxuICAgICAgICAvLyBzZXQgZXh0cmFjdFN0eWxlcyBwYXJhbWV0ZXJcbiAgICAgICAgaWYgKG9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zICYmIG9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLktNTCAmJiBvcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuZXh0cmFjdFN0eWxlcykge1xuICAgICAgICAgICAgdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuZXh0cmFjdFN0eWxlcyA9IG9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLktNTC5leHRyYWN0U3R5bGVzO1xuICAgICAgICB9IC8vIFRPRE9cbiAgICAgICAgLy8gc2V0IHNob3dQb2ludE5hbWVzIHBhcmFtZXRlclxuICAgICAgICBpZiAob3B0aW9ucy52ZWN0b3JTdHlsZU9wdGlvbnMgJiYgb3B0aW9ucy52ZWN0b3JTdHlsZU9wdGlvbnMuS01MICYmIG9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLktNTC5zaG93UG9pbnROYW1lcykge1xuICAgICAgICAgICAgdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuc2hvd1BvaW50TmFtZXMgPSBvcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuc2hvd1BvaW50TmFt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AgIGxvZ2dlci53YXJuKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdICdvcHRpb25zLmxheWVyVHlwZXMnIHBhcmFtZXRlciBzaG91bGQgYmUgYW4gYXJyYXkuIFNldCBkZWZhdWx0IHZhbHVlcyBbXFxcIktNTFxcXCIsIFxcXCJHUFhcXFwiLCBcXFwiR2VvSlNPTlxcXCIsIFxcXCJXTVNcXFwiLCBcXFwiV01UU1xcXCJdXCIpO1xuICAgICAgICAgICAgICAgIG9wdGlvbnMubGF5ZXJUeXBlcyA9IFtcbiAgICAgICAgICAgICAgICAgICAgXCJLTUxcIixcbiAgICAgICAgICAgICAgICAgICAgXCJHUFhcIixcbiAgICAgICAgICAgICAgICAgICAgXCJHZW9KU09OXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiV01TXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiV01UU1wiLFxuICAgICAgICAgICAgICAgICAgICBcIk1BUEJPWFwiXG4gICAgICAgICAgICAgICAgXTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdmFyIHR5cGVzTGlzdCA9IFtcbiAgICAgICAgICAgICAgICAgICAgXCJLTUxcIixcbiAgICAgICAgICAgICAgICAgICAgXCJHUFhcIixcbiAgICAgICAgICAgICAgICAgICAgXCJHRU9KU09OXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiV01TXCIsXG4gICAgICAgICAgICAgICAgICAgIFwiV01UU1wiLFxuICAgICAgICAgICAgICAgICAgICBcIldGU1wiLFxuICAgICAgICAgICAgICAgICAgICBcIk1BUEJPWFwiXG4gICAgICAgICAgICAgICAgXTtcbiAgICAgICAgICAgICAgICB2YXIgd3JvbmdUeXBlc0luZGV4ZXMgPSBbXTtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxheWVyVHlwZXMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBsYXllclR5cGVzW2ldICE9PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBsJ8OpbMOpbWVudCBkdSB0YWJsZWF1IG4nZXN0IHBhcyB1bmUgY2hhaW5lIGRlIGNhcmFjdMOocmVzLCBvbiBzdG9ja2UgbCdpbmRleCBwb3VyIGxlIHJldGlyZXIgZHUgdGFibGVhdVxuICAgICAgICAgICAgICAgICAgICAgICAgd3JvbmdUeXBlc0luZGV4ZXMucHVzaChpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci53YXJuKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdICdvcHRpb25zLmxheWVyVHlwZXMnIGVsZW1lbnRzIHNob3VsZCBiZSBvZiB0eXBlIHN0cmluZyAoXCIgKyBsYXllclR5cGVzW2ldICsgXCIpXCIpO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gcGFzc2UgZW4gbWFqdXNjdWxlcyBwb3VyIGNvbXBhcmVyXG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllclR5cGVzW2ldID0gbGF5ZXJUeXBlc1tpXS50b1VwcGVyQ2FzZSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHR5cGVzTGlzdC5pbmRleE9mKGxheWVyVHlwZXNbaV0pID09PSAtMSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHNpIGxlIHR5cGUgbidlc3QgcGFzIHLDqWbDqXJlbmPDqSwgb24gc3RvY2tlIHNvbiBpbmRleCBwb3VyIGxlIHJldGlyZXIgZHUgdGFibGVhdSAoYXByw6hzIGF2b2lyIHRlcm1pbsOpIGRlIHBhcmNvdXJpciBsZSB0YWJsZWF1KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdyb25nVHlwZXNJbmRleGVzLnB1c2goaSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLmxvZyhcIltvbC5jb250cm9sLkxheWVySW1wb3J0XSBvcHRpb25zLmxheWVyVHlwZXMgOiBcIiArIGxheWVyVHlwZXNbaV0gKyBcIiBpcyBub3QgYSBzdXBwb3J0ZWQgdHlwZVwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGNhcyBzcMOpY2lhbCBkdSBHZW9KU09OIHF1J29uIG5lIGxhaXNzZSBwYXMgZW4gbWFqdXNjdWxlc1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGxheWVyVHlwZXNbaV0gPT09IFwiR0VPSlNPTlwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGF5ZXJUeXBlc1tpXSA9IFwiR2VvSlNPTlwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGxheWVyVHlwZXNbaV0gPT09IFwiTUFQQk9YXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXllclR5cGVzW2ldID0gXCJNQVBCT1hcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyBvbiByZXRpcmUgbGVzIHR5cGVzIG5vbiByw6lmw6lyZW5jw6lzIHF1J29uIGEgcHUgcmVuY29udHJlclxuICAgICAgICAgICAgICAgIGlmICh3cm9uZ1R5cGVzSW5kZXhlcy5sZW5ndGggIT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIgaiA9IHdyb25nVHlwZXNJbmRleGVzLmxlbmd0aCAtIDE7IGogPj0gMDsgai0tKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllclR5cGVzLnNwbGljZSh3cm9uZ1R5cGVzSW5kZXhlc1tqXSwgMSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gIC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y5fc3RhdGljVXJsSW1wb3J0SW5wdXQudmFsdWU7XG4gICAgICAgIGxvZ2dlci5sb2coXCJ1cmwgOiBcIiwgdXJsKTtcbiAgICAgICAgaWYgKHVybC5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIGxvZ2dlci5lcnJvcihcIltvbC5jb250cm9sLkxheWVySW1wb3J0XSB1cmwgcGFyYW1ldGVyIGlzIG1hbmRhdG9yeVwiKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICAvLyBvbiBzdXBwcmltZSBsZXMgw6l2ZW50dWVscyBlc3BhY2VzIGF2YW50IG91IGFwcsOoc1xuICAgICAgICBpZiAodXJsLnRyaW0pIHtcbiAgICAgICAgICAgIHVybCA9IHVybC50cmltKCk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBzYXV2ZWdhcmRlXG4gICAgICAgIHRoaXMuX3VybCA9IHVybDtcblxuICAgICAgICAvLyBzaSBsZSBub20gbidlc3QgcGFzIHJlbnNlaWduw6ksIG9uIGV4dHJhaXQgbGUgbm9tIGR1IGZpY2hpZXJcbiAgICAgICAgaWYgKCFsYXllck5hbWUpIHtcbiAgICAgICAgICAgIGxheWVyTmFtZSA9IHRoaXMuX3VybC5zdWJzdHJpbmcodGhpcy5fdXJsLmxhc3RJbmRleE9mKFwiL1wiKSArIDEsIHRoaXMuX3VybC5sYXN0SW5kZXhPZihcIi5cIikpO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gc2F1dmVnYXJkZVxuICAgICAgICB0aGlzLl9uYW1lID0gbGF5ZXJOYW1lO1xuXG4gICAgICAgIC8vIDIuIHLDqWN1cMOpcmF0aW9uIHByb3h5XG4gICAgICAgIGlmICh0aGlzLm9wdGlvbnMud2ViU2VydmljZXNPcHRpb25zICYmIHRoaXMub3B0aW9ucy53ZWJTZXJ2aWNlc09wdGlvbnMucHJveHlVcmwpIHtcbiAgICAgICAgICAgIHVybCA9IFByb3h5VXRpbHMucHJveGlmeV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ICAgICAgIC8vIGNvbnRleHRlXG4gICAgICAgICAgICB2YXIgc2VsZiA9IHRoaXM7XG5cbiAgICAgICAgICAgIC8vIHN0eWxlIG1hcGJveFxuICAgICAgICAgICAgdmFyIF9nbFN0eWxlcyA9IEpTT04ucGFyc2UoZmlsZUNvbnRlbnQpO1xuXG4gICAgICAgICAgICAvLyBsaXN0ZSBkZXMgc291cmNlc1xuICAgICAgICAgICAgdmFyIF9nbFNvdXJjZXMgPSBfZ2xTdHlsZXMuc291cmNlcztcblxuICAgICAgICAgICAgLy8gRklYTUUgYSB0IG9uIGR1IG11bHRpLXNvdXJjZXMgP1xuICAgICAgICAgICAgLy8gbWFpcyBjb21tZW50IGRvaXQgb24gbGVzIHRyYWl0ZXIgP1xuICAgICAgICAgICAgLy8gRVhQRVJJTUVOVEFMICFcbiAgICAgICAgICAgIHZhciBfbXVsdGlTb3VyY2VzID0gKE9iamVjdC5rZXlzKF9nbFNvdXJjZXMpLmxlbmd0aCA+IDEpID8gMSA6IDA7XG5cbiAgICAgICAgICAgIGZvciAodmFyIF9nbFNvdXJjZUlkIGluIF9nbFNvdXJjZXMpIHtcbiAgICAgICAgICAgICAgICBpZiAoX2dsU291cmNlcy5oYXNPd25Qcm9wZXJ0eShfZ2xTb3VyY2VJZCkpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIF90aXRsZSA9IFwiXCI7XG4gICAgICAgICAgICAgICAgICAgIHZhciBfZGVzY3JpcHRpb24gPSBcIlwiO1xuICAgICAgICAgICAgICAgICAgICB2YXIgX3F1aWNrbG9va1VybCA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIHZhciBfbGVnZW5kcyA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIHZhciBfbWV0YWRhdGEgPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICB2YXIgX29yaWdpbmF0b3JzID0gbnVsbDtcblxuICAgICAgICAgICAgICAgICAgICAvLyBsZWN0dXJlIGRlcyBpbmZvcm1hdGlvbnMgZGFucyBsZSBzdHlsZVxuICAgICAgICAgICAgICAgICAgICAvLyBleC4gbWV0YWRhdGEgOiB7XG4gICAgICAgICAgICAgICAgICAgIC8vICAgIGdlb3BvcnRhaWw6W3RpdGxlIHwgZGVzY3JpcHRpb24gfCBxdWlja2xvb2tVcmwgfCBsZWdlbmRzIHwgb3JpZ2luYXRvcnMgfCBtZXRhZGF0YV1cbiAgICAgICAgICAgICAgICAgICAgLy8gfVxuICAgICAgICAgICAgICAgICAgICBpZiAoX2dsU3R5bGVzLm1ldGFkYXRhKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBucyBpbiBfZ2xTdHlsZXMubWV0YWRhdGEpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoX2dsU3R5bGVzLm1ldGFkYXRhLmhhc093blByb3BlcnR5KG5zKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2tleXMgPSBucy5zcGxpdChcIjpcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChfa2V5c1swXSA9PT0gXCJnZW9wb3J0YWlsXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBrZXkgPSBfa2V5c1sxXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChrZXkgPT09IFwidGl0bGVcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF90aXRsZSA9IF9nbFN0eWxlcy5tZXRhZGF0YVtuc107XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoa2V5ID09PSBcImRlc2NyaXB0aW9uXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfZGVzY3JpcHRpb24gPSBfZ2xTdHlsZXMubWV0YWRhdGFbbnNdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGtleSA9PT0gXCJxdWlja2xvb2tVcmxcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9xdWlja2xvb2tVcmwgPSBfZ2xTdHlsZXMubWV0YWRhdGFbbnNdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGtleSA9PT0gXCJsZWdlbmRzXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfbGVnZW5kcyA9IF9nbFN0eWxlcy5tZXRhZGF0YVtuc107XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoa2V5ID09PSBcIm1ldGFkYXRhXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfbWV0YWRhdGEgPSBfZ2xTdHlsZXMubWV0YWRhdGFbbnNdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGtleSA9PT0gXCJvcmlnaW5hdG9yc1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX29yaWdpbmF0b3JzID0gX2dsU3R5bGVzLm1ldGFkYXRhW25zXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIC8vIHRpdHJlIHBhciBkZWZhdXRcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFfdGl0bGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIF90aXRsZSA9IFwiQ291Y2hlIE1hcEJveFwiO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIC8vIGRlc2NyaXB0aW9uIHBhciBkZWZhdXRcbiAgICAgICAgICAgICAgICAgICAgaWYgKCFfZGVzY3JpcHRpb24pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9kZXNjcmlwdGlvbiA9IFwiQ291Y2hlIE1hcEJveFwiO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIC8vIGNhcyBkZXMgbXVsdGlzb3VyY2VzXG4gICAgICAgICAgICAgICAgICAgIF90aXRsZSA9IChfbXVsdGlTb3VyY2VzKSA/IF90aXRsZSArIFwiKFwiICsgX2dsU291cmNlSWQgKyBcIilcIiA6IF90aXRsZTtcblxuICAgICAgICAgICAgICAgICAgICAvLyBzb3VyY2UgbWFwYm94XG4gICAgICAgICAgICAgICAgICAgIHZhciBfZ2xTb3VyY2UgPSBfZ2xTb3VyY2VzW19nbFNvdXJjZUlkXTtcblxuICAgICAgICAgICAgICAgICAgICAvLyBjb25zdHJ1Y3Rpb24gZGUgbGEgY291Y2hlIGVuIGZvbmN0aW9uIGR1IHR5cGVcbiAgICAgICAgICAgICAgICAgICAgdmFyIF9nbFR5cGUgPSBfZ2xTb3VyY2UudHlwZTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoX2dsVHlwZSA9PT0gXCJ2ZWN0b3JcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdXJsIGR1IHRpbGVqc29uIG91IGZsdXggbWFwYm94XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2dsVXJsID0gX2dsU291cmNlLnVybDtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIHVybCBkdSBzZXJ2aWNlIHR1aWzDqVxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIF9nbFRpbGVzID0gX2dsU291cmNlLnRpbGVzO1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gc3ByaXRlc1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIF9nbFNwcml0ZSA9IF9nbFN0eWxlcy5zcHJpdGU7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIEZJWE1FIHNpIG9uIGEgdW4gaW1wb3J0IHBhciBmaWNoaWVyIGxvY2FsICh0aGlzLl9maWxlKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIC0gY29tbWVudCBwYXNzZSB0IG9uIGxhIGNsZWYgLyBsZSB0b2tlbiA/XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAtIGNvbW1lbnQgcmVtcGxhY2VyIHVuIGZsdXggbWFwYm94IHN1ciB1bmUgdXJsIGRlIHNlcnZpY2UgdHVpbMOpIGF2ZWMgdW4gaW1wb3J0IGxvY2FsID9cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChfZ2xVcmwgJiYgX2dsVXJsLmluZGV4T2YoXCJtYXBib3g6Ly9cIikgPT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgX3VybFNlcnZpY2UgPSB0aGlzLl91cmw7IC8vIEZJWE1FIHNpIGZpY2hpZXIgbG9jYWwgIT9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoX3VybFNlcnZpY2UpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2dsVGlsZXMgPSBbXCJhXCIsIFwiYlwiLCBcImNcIiwgXCJkXCJdLm1hcChmdW5jdGlvbiAoaG9zdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHBhdGggPSBfZ2xVcmwucmVwbGFjZShcIm1hcGJveDovL1wiLCBcIlwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBhY2Nlc3NUb2tlbiA9IF91cmxTZXJ2aWNlLnNwbGl0KFwiP1wiKVsxXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBcImh0dHBzOi8vXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaG9zdCArIFwiLnRpbGVzLm1hcGJveC5jb20vdjQvXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGF0aCArIFwiL3t6fS97eH0ve3l9LnZlY3Rvci5wYmY/XCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWNjZXNzVG9rZW47XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBjb252ZXJzaW9uIGRlcyBzcHJpdGVzIHN1ciB1biBhdXRyZSBzY2hlbWUgcXVlIFwibWFwYm94Oi8vXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKF9nbFNwcml0ZS5pbmRleE9mKFwibWFwYm94Oi8vXCIpID09PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgcyA9IF91cmxTZXJ2aWNlLnNwbGl0KFwiP1wiKTsgLy8gRklYTUUgc2kgZmljaGllciBsb2NhbCAhP1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2dsU3R5bGVzLnNwcml0ZSA9IHNbMF0gKyBcIi9zcHJpdGVcIiArIFwiP1wiICsgc1sxXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci53YXJuKFwiTm90IHlldCBpbXBsZW1lbnRlZCwgY2FuJ3QgdXNlIHRoZSBsb2NhbCBpbXBvcnQgc2NoZW1lIHdpdGggYSAnbWFwYm94Oi8vJyBpbiB0aGUgZmlsZS4hXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKF9nbFRpbGVzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2VydmljZSB0dWlsw6kgZXQvb3UgbWFwYm94XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yRm9ybWF0ID0gbmV3IE1WVCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZlYXR1cmVDbGFzcyA6IEZlYXR1cmVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UgPSBuZXcgVmVjdG9yVGlsZVNvdXJjZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJpYnV0aW9ucyA6IF9nbFNvdXJjZS5hdHRyaWJ1dGlvbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9ybWF0IDogdmVjdG9yRm9ybWF0LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBJTkZPXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHN1cmNoYXJnZSA6IGdyaWxsZSBlbiAyNTYgc3VyIGR1IHZlY3RldXIgdHVpbMOpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHRpbGVHcmlkIDogb2xDcmVhdGVYWVpUaWxlR3JpZCh7IC8vIFRPRE8gc2NoZW1lIHRtcyA/XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICBleHRlbnQgOiBfZ2xTb3VyY2UuYm91bmRzLCAvLyBbbWlueCwgbWlueSwgbWF4eCwgbWF4eV1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIG1heFpvb20gOiBfZ2xTb3VyY2UubWF4em9vbSB8fCAyMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gICAgIG1pblpvb20gOiBfZ2xTb3VyY2UubWluem9vbSB8fCAxLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgdGlsZVNpemUgOiBfZ2xTb3VyY2UudGlsZVNpemUgfHwgMjU2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmxzIDogX2dsVGlsZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UuX3RpdGxlID0gX3RpdGxlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fZGVzY3JpcHRpb24gPSBfZGVzY3JpcHRpb247XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9xdWlja2xvb2tVcmwgPSBfcXVpY2tsb29rVXJsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fbWV0YWRhdGEgPSBfbWV0YWRhdGE7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9sZWdlbmRzID0gX2xlZ2VuZHM7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9vcmlnaW5hdG9ycyA9IF9vcmlnaW5hdG9ycztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB3YWl0aW5nXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLm9uKFwidGlsZWxvYWRzdGFydFwiLCBmdW5jdGlvbiAoZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLl9sb2FkaW5nQ29udGFpbmVyLmNsYXNzTmFtZSA9IFwiR1BtYXBMb2FkaW5nVmlzaWJsZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5vbihcInRpbGVsb2FkZW5kXCIsIGZ1bmN0aW9uIChlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2xvYWRpbmdDb250YWluZXIuY2xhc3NOYW1lID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2Uub24oXCJ0aWxlbG9hZGVycm9yXCIsIGZ1bmN0aW9uIChlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2xvYWRpbmdDb250YWluZXIuY2xhc3NOYW1lID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllciA9IG5ldyBWZWN0b3JUaWxlTGF5ZXIoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzb3VyY2UgOiB2ZWN0b3JTb3VyY2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZpc2libGUgOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gekluZGV4OiAwLCAvLyBGSVhNRSBnZXJlciBsJ29yZHJlIHN1ciBkZXMgbXVsdGlzb3VyY2VzID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVjbHV0dGVyIDogdHJ1ZSAvLyBUT0RPIHV0aWxlID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5pZCA9IF9nbFNvdXJjZUlkO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLmdwUmVzdWx0TGF5ZXJJZCA9IFwibGF5ZXJpbXBvcnQ6XCIgKyB0aGlzLl9jdXJyZW50SW1wb3J0VHlwZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoX2dsVXJsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2VydmljZSBhdmVjIHVuIHRpbGVqc29uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yRm9ybWF0ID0gbmV3IE1WVCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZlYXR1cmVDbGFzcyA6IEZlYXR1cmVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllciA9IG5ldyBWZWN0b3JUaWxlTGF5ZXIoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2aXNpYmxlIDogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHpJbmRleCA6IDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVjbHV0dGVyIDogdHJ1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLmlkID0gX2dsU291cmNlSWQ7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuZ3BSZXN1bHRMYXllcklkID0gXCJsYXllcmltcG9ydDpcIiArIHRoaXMuX2N1cnJlbnRJbXBvcnRUeXBlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciB2ZWN0b3JUaWxlSnNvbiA9IG5ldyBUaWxlSlNPTlNvdXJjZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVybCA6IF9nbFVybFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGxlY3R1cmUgZHUgdGlsZWpzb24gYXZlYyBleHRlbnNpb24gSUdOXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbGVzIGV4dGVuc2lvbnMgc29udCBlbnJlZ2lzdHLDqWVzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZGFucyBsZXMgcHJvcHJpw6l0w6lzIGRlIGxhIGNvdWNoZSA6IGxheWVyLnNldChtYXBib3gtZXh0ZW5zaW9uKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHBvdXIgdW5lIHV0aWxpc2F0aW9uIHVsdGVyaWV1ciAoZXguIGVkaXRldXIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIF9rZXkgPSB2ZWN0b3JUaWxlSnNvbi5vbihcImNoYW5nZVwiLCBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh2ZWN0b3JUaWxlSnNvbi5nZXRTdGF0ZSgpID09PSBcInJlYWR5XCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBfdGlsZUpTT05Eb2MgPSB2ZWN0b3JUaWxlSnNvbi5nZXRUaWxlSlNPTigpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGlsZXMgPSBBcnJheS5pc0FycmF5KF90aWxlSlNPTkRvYy50aWxlcykgPyBfdGlsZUpTT05Eb2MudGlsZXMgOiBbX3RpbGVKU09ORG9jLnRpbGVzXTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgdGlsZXMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGlsZSA9IHRpbGVzW2ldO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aWxlLmluZGV4T2YoXCJodHRwXCIpICE9PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpbGVzW2ldID0gX2dsVXJsICsgdGlsZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UgPSBuZXcgVmVjdG9yVGlsZVNvdXJjZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cmlidXRpb25zIDogdmVjdG9yVGlsZUpzb24uZ2V0QXR0cmlidXRpb25zKCkgfHwgX3RpbGVKU09ORG9jLmF0dHJpYnV0aW9uLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1hdCA6IHZlY3RvckZvcm1hdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBJTkZPXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc3VyY2hhcmdlIDogZ3JpbGxlIGVuIDI1NiBzdXIgZHUgdmVjdGV1ciB0dWlsw6lcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB0aWxlR3JpZCA6IG9sQ3JlYXRlWFlaVGlsZUdyaWQoeyAvLyBUT0RPIHNjaGVtZSB0bXMgP1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICBleHRlbnQgOiBfZ2xTb3VyY2UuYm91bmRzLCAvLyBbbWlueCwgbWlueSwgbWF4eCwgbWF4eV1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgbWF4Wm9vbSA6IF9nbFNvdXJjZS5tYXh6b29tIHx8IDIyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vICAgICBtaW5ab29tIDogX2dsU291cmNlLm1pbnpvb20gfHwgMSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyAgICAgdGlsZVNpemUgOiBfZ2xTb3VyY2UudGlsZVNpemUgfHwgMjU2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdXJscyA6IHRpbGVzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fdGl0bGUgPSBfdGl0bGU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UuX2Rlc2NyaXB0aW9uID0gX2Rlc2NyaXB0aW9uO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9xdWlja2xvb2tVcmwgPSBfcXVpY2tsb29rVXJsO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9tZXRhZGF0YSA9IF9tZXRhZGF0YTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fbGVnZW5kcyA9IF9sZWdlbmRzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9vcmlnaW5hdG9ycyA9IF9vcmlnaW5hdG9ycztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHdhaXRpbmdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5vbihcInRpbGVsb2Fkc3RhcnRcIiwgZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLl9sb2FkaW5nQ29udGFpbmVyLmNsYXNzTmFtZSA9IFwiR1BtYXBMb2FkaW5nVmlzaWJsZVwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2Uub24oXCJ0aWxlbG9hZGVuZFwiLCBmdW5jdGlvbiAoZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2xvYWRpbmdDb250YWluZXIuY2xhc3NOYW1lID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuc2V0U291cmNlKHZlY3RvclNvdXJjZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5zZXQoXCJtYXBib3gtZXh0ZW5zaW9uXCIsIF90aWxlSlNPTkRvY1tcInZlY3Rvcl9sYXllcnNcIl0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb2xPYnNlcnZhYmxlVW5CeUtleShfa2V5KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKF9nbFR5cGUgPT09IFwiZ2VvanNvblwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBGSVhNRVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gLSBjYXMgYXZlYyB1biBvYmpldCBkZSB0eXBlIGZlYXR1cmVzID9cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIC0gY2FzIGF2ZWMgdW5lIHVybCByZWxhdGl2ZSA/XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2dsRGF0YSA9IF9nbFNvdXJjZS5kYXRhO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JGb3JtYXQgPSBuZXcgR2VvSlNPTkV4dGVuZGVkKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UgPSBuZXcgVmVjdG9yVGlsZVNvdXJjZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cmlidXRpb25zIDogX2dsU291cmNlLmF0dHJpYnV0aW9uLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvcm1hdCA6IHZlY3RvckZvcm1hdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cmwgOiBfZ2xEYXRhXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fdGl0bGUgPSBfdGl0bGU7XG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UuX2Rlc2NyaXB0aW9uID0gX2Rlc2NyaXB0aW9uO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9xdWlja2xvb2tVcmwgPSBfcXVpY2tsb29rVXJsO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9tZXRhZGF0YSA9IF9tZXRhZGF0YTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvclNvdXJjZS5fbGVnZW5kcyA9IF9sZWdlbmRzO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yU291cmNlLl9vcmlnaW5hdG9ycyA9IF9vcmlnaW5hdG9ycztcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyID0gbmV3IFZlY3RvclRpbGVMYXllcih7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlIDogdmVjdG9yU291cmNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZpc2libGUgOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB6SW5kZXg6IDAsIC8vIEZJWE1FIGdlcmVyIGwnb3JkcmUgc3VyIGRlcyBtdWx0aXNvdXJjZXMgP1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlY2x1dHRlciA6IHRydWUgLy8gVE9ETyB1dGlsZSA/XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLmlkID0gX2dsU291cmNlSWQ7XG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5ncFJlc3VsdExheWVySWQgPSBcImxheWVyaW1wb3J0OlwiICsgdGhpcy5fY3VycmVudEltcG9ydFR5cGU7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIud2FybihcIlR5cGUgTWFwQm94IGZvcm1hdCB1bmtub3duICFcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAvLyBjbG9uZVxuICAgICAgICAgICAgICAgICAgICB2YXIgX2dsU3R5bGUgPSBKU09OLnBhcnNlKEpTT04uc3RyaW5naWZ5KF9nbFN0eWxlcykpO1xuICAgICAgICAgICAgICAgICAgICAvLyBjYXMgZHUgbXVsdGkgc291cmNlXG4gICAgICAgICAgICAgICAgICAgIGlmIChfbXVsdGlTb3VyY2VzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBvbiBzdXBwcmltZSBsZXMgbGF5ZXJzIGludXRpbGVzXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2dsTGF5ZXJzID0gX2dsU3R5bGUubGF5ZXJzO1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIgaWkgPSAwOyBpaSA8IF9nbExheWVycy5sZW5ndGg7IGlpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgX2dsTGF5ZXIgPSBfZ2xMYXllcnNbaWldO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChfZ2xMYXllci5zb3VyY2UgIT09IF9nbFNvdXJjZUlkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9nbExheWVycy5zcGxpY2UoaWksIDEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBvbiBzdXBwcmltZSBsZXMgc291cmNlcyBpbnV0aWxlc1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9yICh2YXIga2V5U291cmNlIGluIF9nbFN0eWxlLnNvdXJjZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoX2dsU3R5bGUuc291cmNlcy5oYXNPd25Qcm9wZXJ0eShrZXlTb3VyY2UpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChrZXlTb3VyY2UgIT09IF9nbFNvdXJjZUlkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWxldGUgX2dsU3R5bGUuc291cmNlc1trZXlTb3VyY2VdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gcGFyYW1ldHJlIMOgIHRyYW5zbWV0dHJlIMOgIGxhIGZvbmN0aW9uIGF1dG8taW52b3F1w6llXG4gICAgICAgICAgICAgICAgICAgIHZhciBwYXJhbXMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZCA6IF9nbFNvdXJjZUlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3R5bGVzIDogX2dsU3R5bGUsXG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllciA6IHZlY3RvckxheWVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9ucyA6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZSA6IGxheWVyTmFtZSB8fCBfdGl0bGUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gOiBfZGVzY3JpcHRpb24sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcXVpY2tsb29rVXJsIDogX3F1aWNrbG9va1VybCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtZXRhZGF0YSA6IF9tZXRhZGF0YSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWdlbmRzIDogX2xlZ2VuZHMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luYXRvcnMgOiBfb3JpZ2luYXRvcnNcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgLy8gZm9uY3Rpb24gYXV0by1pbnZvcXXDqWVcbiAgICAgICAgICAgICAgICAgICAgKGZ1bmN0aW9uIChwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBUT0RPIGFqb3V0ZXIgbGUgc3R5bGUgZGUgdHlwZSBiYWNrZ3JvdW5kICFcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGZvbmN0aW9uIGRlIHN0eWxlIGRlIGxhIGNvdWNoZVxuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHNldFN0eWxlID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFwcGx5U3R5bGVPbG1zKHAubGF5ZXIsIHAuc3R5bGVzLCBwLmlkKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdmlzaWJpbGl0eSA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwLmxheWVyLnNldFZpc2libGUodmlzaWJpbGl0eSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgb3BhY2l0eSA9IDE7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwLmxheWVyLnNldE9wYWNpdHkob3BhY2l0eSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGdlc3Rpb24gZHUgY2VudHJlIHN1ciBsYSBjYXJ0ZSBzaSBjZW50ZXIgcmVuc2VpZ27DqSAhXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgcHJvakNvZGUgPSBtYXAuZ2V0VmlldygpLmdldFByb2plY3Rpb24oKS5nZXRDb2RlKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAobWFwLmdldFZpZXcoKSAmJiBwLnN0eWxlcy5jZW50ZXIgJiYgcC5zdHlsZXMuY2VudGVyLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcC5nZXRWaWV3KCkuc2V0Q2VudGVyKG9sVHJhbnNmb3JtUHJvaihwLnN0eWxlcy5jZW50ZXIsIFwiRVBTRzo0MzI2XCIsIHByb2pDb2RlKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGdlc3Rpb24gZHUgem9vbSBzdXIgbGEgY2FydGUgc2kgem9vbSByZW5zZWlnbsOpICFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChtYXAuZ2V0VmlldygpICYmIChwLnN0eWxlcy56b29tIHx8IHAuc3R5bGVzLnpvb20gPT09IDApKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwLmdldFZpZXcoKS5zZXRab29tKHAuc3R5bGVzLnpvb20pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB6b29tIHN1ciBsJ8OpdGVuZHVlIGRlcyBlbnRpdMOpcyByw6ljdXDDqXLDqWVzIChzaSBwb3NzaWJsZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzb3VyY2UgPSBwLmxheWVyLmdldFNvdXJjZSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG1hcC5nZXRWaWV3KCkgJiYgbWFwLmdldFNpemUoKSAmJiBzb3VyY2UuZ2V0RXh0ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHNvdXJjZUV4dGVudCA9IHNvdXJjZS5nZXRFeHRlbnQoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoc291cmNlRXh0ZW50ICYmIHNvdXJjZUV4dGVudFswXSAhPT0gSW5maW5pdHkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwLmdldFZpZXcoKS5maXQoc291cmNlLmdldEV4dGVudCgpLCBtYXAuZ2V0U2l6ZSgpKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIG9uIGNhY2hlIGxlIHBhbm5lYXUgZGVzIGltcG9ydHNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX2ltcG9ydFBhbmVsLnN0eWxlLmRpc3BsYXkgPSBcIm5vbmVcIjtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZWRpdGV1ciBkZSBzdHlsZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBlZGl0b3IgPSBuZXcgRWRpdG9yKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXQgOiBzZWxmLl9tYXBCb3hSZXN1bHRzTGlzdENvbnRhaW5lcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHlsZSA6IEpTT04ucGFyc2UoSlNPTi5zdHJpbmdpZnkocC5zdHlsZXMpKSwgLy8gY2xvbmVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY29wZSA6IHRoaXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXZlbnRzIDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImVkaXRvcjpvbmxvYWRlZFwiIDogc2VsZi5fb25Mb2FkZWRNYXBCb3gsIC8vIHV0aWxlID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlZGl0b3I6bGF5ZXI6b25jbGlja3Zpc2liaWxpdHlcIiA6IHNlbGYuX29uQ2hhbmdlVmlzaWJpbGl0eVNvdXJjZU1hcEJveCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlZGl0b3I6c3R5bGU6c2NhbGU6b25jaGFuZ2VtaW5cIiA6IHNlbGYuX29uQ2hhbmdlU2NhbGVNaW5Tb3VyY2VNYXBCb3gsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZWRpdG9yOnN0eWxlOnNjYWxlOm9uY2hhbmdlbWF4XCIgOiBzZWxmLl9vbkNoYW5nZVNjYWxlTWF4U291cmNlTWFwQm94LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImVkaXRvcjpsZWdlbmQ6b25jaGFuZ2V2YWx1ZVwiIDogc2VsZi5fb25DaGFuZ2VMZWdlbmRWYWx1ZVNvdXJjZU1hcEJveCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlZGl0b3I6bGVnZW5kOm9uY2xpY2tlZGl0aW9uXCIgOiBzZWxmLl9vbkRpc3BsYXlMYXllclNvdXJjZU1hcEJveFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9vbHMgOiBzZWxmLm9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLk1hcEJveC5lZGl0b3JcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdG9yLnNldENvbnRleHQoXCJtYXBcIiwgbWFwKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5zZXRDb250ZXh0KFwibGF5ZXJcIiwgcC5sYXllcik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBjcmVhdGlvbiBkZSBsJ2VkaXRldXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBlZGl0b3IuY3JlYXRlRWxlbWVudCgpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBleGNlcHRpb24uLi5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVkaXRvci5nZXRMYXllcnMoKS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIklsIG4nZXhpc3RlIHBhcyBkZSBzdHlsZXMgcG91ciBsYSBzb3VyY2UgZGVtYW5kw6llICE/XCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGFmZmljaGFnZSBkdSBwYW5uZWF1IGRlcyBjb3VjaGVzIGFjY2Vzc2libGVzIMOgIGwnZWRpdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoc2VsZi5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5NYXBCb3guZGlzcGxheSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5fbWFwQm94UGFuZWwuc3R5bGUuZGlzcGxheSA9IFwiYmxvY2tcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBoYWNrIHBvdXIgbW9kaWZpZXIgbGUgdGl0cmUgZGUgbGEgY291Y2hlIGRlIGZvbmRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGVsZW1lbnRzID0gc2VsZi5fbWFwQm94UmVzdWx0c0xpc3RDb250YWluZXIuZ2V0RWxlbWVudHNCeUNsYXNzTmFtZShcIkdQRWRpdG9yTWFwQm94TGF5ZXJUaXRsZUxhYmVsXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgZWxlbWVudHMubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gZWxlbWVudHNbaW5kZXhdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQudGV4dENvbnRlbnQgPT09IFwiYmNrZ3JkXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbGVtZW50LnRleHRDb250ZW50ID0gXCJDb3VsZXVyIGRlIHJlbXBsaXNzYWdlXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gYXNzb2NpYXRpb24gZW50cmUgbGUgbGF5ZXIgZXQgbCdlZGl0ZXVyIHZpYSBsJ2lkXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHAubGF5ZXIuc2V0KFwibWFwYm94LWVkaXRvclwiLCBlZGl0b3IuZ2V0SUQoKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGVudm9pIGQndW4gZXZlbmVtZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHVuIHBldSBlbiBkw6ljYWzDqSBwb3VyIGxhaXNzZXIgbGUgdGVtcHMgYXUgRE9NIGRlIGZhaXJlIGxlIGpvYi4uLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcC5kaXNwYXRjaEV2ZW50KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZCA6IGVkaXRvci5nZXRJRCgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBcImVkaXRvcjpsb2FkZWRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHlsZSA6IHAuc3R5bGVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxheWVyIDogcC5sYXllclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sIDEwMCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuY2F0Y2goZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gcHJvcGFnZSBsJ2V4Y2VwdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBlbnZvaSBkJ3VuIGV2ZW5lbWVudCAhXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXAuZGlzcGF0Y2hFdmVudCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQgOiBwLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBcInJlbmRlcjpzdWNjZXNzXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3R5bGUgOiBwLnN0eWxlc1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5jYXRjaChmdW5jdGlvbiAoZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLmVycm9yKGUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gZW52b2kgZCd1biBldmVuZW1lbnQgIVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFwLmRpc3BhdGNoRXZlbnQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkIDogcC5pZCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlIDogXCJyZW5kZXI6ZmFpbHVyZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVycm9yIDogZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgfTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gZXRhdCBkZXMgbGF5ZXJzIGVuIGNvdXJzXG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIud2FybihwLmxheWVyKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gYWpvdXQgZGVzIHN0eWxlcyBkYW5zIGxhIGNhcnRlIHBvdXIgdW5lIHV0aWxpc2F0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBldmVudHVlbGxlIChleC4gZWRpdGV1cilcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vID4gbWFwLnNldChcIm1hcGJveC1zdHlsZXNcIilcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzdHlsZXMgPSBtYXAuZ2V0KFwibWFwYm94LXN0eWxlc1wiKSB8fCB7fTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBpZCA9IHAuaWQ7IC8vIEZJWE1FIDogY29uc3RydWN0aW9uIGQndW4gaWQgdW5pcXVlXG4gICAgICAgICAgICAgICAgICAgICAgICBzdHlsZXNbaWRdID0gcC5zdHlsZXM7XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXAuc2V0KFwibWFwYm94LXN0eWxlc1wiLCBzdHlsZXMpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBham91dCBkZXMgZGlmZmVyZW50cyBzdHlsZXMgZGUgbGEgY291Y2hlXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBwb3VyIHVuZSB1dGlsaXNhdGlvbiBldmVudHVlbGxlIChleC4gZWRpdGV1cilcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vID4gbGF5ZXIuc2V0KFwibWFwYm94LXN0eWxlc1wiKVxuICAgICAgICAgICAgICAgICAgICAgICAgcC5sYXllci5zZXQoXCJtYXBib3gtc3R5bGVzXCIsIHAuc3R5bGVzKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gYWpvdXQgZHUgbGF5ZXIgc3VyIGxhIGNhcnRlXG4gICAgICAgICAgICAgICAgICAgICAgICBtYXAuYWRkTGF5ZXIocC5sYXllcik7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGFwcGxpY2F0aW9uIGR1IHN0eWxlXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocC5sYXllci5nZXRTb3VyY2UoKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldFN0eWxlKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHAubGF5ZXIub25jZShcImNoYW5nZTpzb3VyY2VcIiwgc2V0U3R5bGUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBtYWogZHUgZ2VzdGlvbm5haXJlIGRlIGNvdWNoZVxuICAgICAgICAgICAgICAgICAgICAgICAgbWFwLmdldENvbnRyb2xzKCkuZm9yRWFjaChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY29udHJvbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoY29udHJvbCBpbnN0YW5jZW9mIExheWVyU3dpdGNoZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRyb2wuYWRkTGF5ZXIoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcC5sYXllcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwLm9wdGlvbnNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICB9KShwYXJhbXMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgLy8gVE9ETyBzdHlsZSBwYXIgZGVmYXV0IGF1IGNhcyBvw7kgbCdhcHBsaWNhdGlvbiBkdSBzdHlsZSDDqWNob3VlICFcbiAgICAgICAgICAgIC8vIFRPRE8gYXUgbml2ZWF1IGRlIGxhIGNvdWNoZSA6IG1pblJlc29sdXRpb24gZXQgbWF4UmVzb2x1dGlvblxuICAgICAgICAgICAgLy8gRklYTUUgYnVnIGF2ZWMgbGUgZ2VvanNvbiwgdHLDqHMgYml6YXJyZSAhP1xuICAgICAgICAgICAgLy8gICAgICBTaSBvbiBkZXNhY3RpdmUgbCdlZGl0ZXVyLCBPS1xuICAgICAgICAgICAgLy8gICAgICBTaW5vbiBOT0sgIT9cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGlmICh0aGlzLl9jdXJyZW50SW1wb3J0VHlwZSA9PT0gXCJLTUxcIikge1xuICAgICAgICAgICAgICAgIC8vIGxlY3R1cmUgZHUgZmljaGllciBLTUwgOiBjcsOpYXRpb24gZCd1biBmb3JtYXQgb2wuZm9ybWF0LktNTCwgcXVpIHBvc3PDqGRlIHVuZSBtw6l0aG9kZSByZWFkRmVhdHVyZXMgKGV0IHJlYWRQcm9qZWN0aW9uKVxuICAgICAgICAgICAgICAgIHZlY3RvclN0eWxlID0gdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuZGVmYXVsdFN0eWxlO1xuICAgICAgICAgICAgICAgIHZlY3RvckZvcm1hdCA9IG5ldyBLTUxFeHRlbmRlZCh7XG4gICAgICAgICAgICAgICAgICAgIHNob3dQb2ludE5hbWVzIDogdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5LTUwuc2hvd1BvaW50TmFtZXMsXG4gICAgICAgICAgICAgICAgICAgIGV4dHJhY3RTdHlsZXMgOiB0aGlzLm9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLktNTC5leHRyYWN0U3R5bGVzLFxuICAgICAgICAgICAgICAgICAgICBkZWZhdWx0U3R5bGUgOiBbXG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JTdHlsZVxuICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2VcbiAgICAgICAgICAgIGlmICh0aGlzLl9jdXJyZW50SW1wb3J0VHlwZSA9PT0gXCJHUFhcIikge1xuICAgICAgICAgICAgICAgIC8vIGxlY3R1cmUgZHUgZmljaGllciBHUFggOiBjcsOpYXRpb24gZCd1biBmb3JtYXQgb2wuZm9ybWF0LkdQWCwgcXVpIHBvc3PDqGRlIHVuZSBtw6l0aG9kZSByZWFkRmVhdHVyZXMgKGV0IHJlYWRQcm9qZWN0aW9uKVxuICAgICAgICAgICAgICAgIHZlY3RvclN0eWxlID0gdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5HUFguZGVmYXVsdFN0eWxlO1xuICAgICAgICAgICAgICAgIHZlY3RvckZvcm1hdCA9IG5ldyB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2ogPSB0aGlzLl9nZXRNYXBQcm9qZWN0aW9uQ29kZSgpO1xuXG4gICAgICAgICAgICAvLyByw6ljdXDDqXJhdGlvbiBkZXMgZW50aXTDqXMgYXZlYyByZXByb2plY3Rpb24gw6l2ZW50dWVsbGUgZGVzIGfDqW9tw6l0cmllc1xuICAgICAgICAgICAgdmFyIGZlYXR1cmVzID0gbnVsbDtcbiAgICAgICAgICAgIGZlYXR1cmVzID0gdmVjdG9yRm9ybWF0LnJlYWRGZWF0dXJlcyhcbiAgICAgICAgICAgICAgICBmaWxlQ29udGVudCwge1xuICAgICAgICAgICAgICAgICAgICBkYXRhUHJvamVjdGlvbiA6IGZpbGVQcm9qLFxuICAgICAgICAgICAgICAgICAgICBmZWF0dXJlUHJvamVjdGlvbiA6IG1hcFByb2pcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICApO1xuXG4gICAgICAgICAgICBsb2dnZXIubG9nKFwibG9hZGVkIGZlYXR1cmVzIDogXCIsIGZlYXR1cmVzKTtcblxuICAgICAgICAgICAgLy8gY3LDqWF0aW9uIGQndW5lIGNvdWNoZSB2ZWN0b3JpZWxsZSDDoCBwYXJ0aXIgZGUgY2VzIGZlYXR1cmVzXG4gICAgICAgICAgICB2ZWN0b3JTb3VyY2UgPSBuZXcgVmVjdG9yU291cmNlKHtcbiAgICAgICAgICAgICAgICBmZWF0dXJlcyA6IG5ldyBDb2xsZWN0aW9uKClcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgdmVjdG9yU291cmNlLmFkZEZlYXR1cmVzKGZlYXR1cmVzKTtcblxuICAgICAgICAgICAgbG9nZ2VyLnRyYWNlKHZlY3RvclNvdXJjZSk7XG5cbiAgICAgICAgICAgIC8vIGFqb3V0IGRlcyBpbmZvcm1hdGlvbnMgcG91ciBsZSBsYXllclN3aXRjaGVyICh0aXRyZSwgZGVzY3JpcHRpb24pXG4gICAgICAgICAgICB2ZWN0b3JTb3VyY2UuX3RpdGxlID0gdmVjdG9yU291c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IFJvdXRlLCBuYW1lIDogXCJpdGluZXJhaXJlXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgaXNvY3VydmUgOiB7IGNsYXNzIDogSXNvY3VydmUsIG5hbWUgOiBcImlzb2N1cnZlXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgZWxldmF0aW9ucGF0aCA6IHsgY2xhc3MgOiBFbGV2YXRpb25QYXRoLCBuYW1lIDogXCJwcm9maWwgYWx0aW1ldHJpcXVlXCIgfVxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgLy8gaW5mb3JtYXRpb24gw6AgdHJhbnNtZXR0cmUgw6AgbGEgY291Y2hlXG4gICAgICAgICAgICAgICAgdmFyIHR5cGVDb250cm9sID0gY29uZmlnQ29udHJvbC50eXBlO1xuICAgICAgICAgICAgICAgIHZhciBncmFwaENvbnRyb2wgPSBjb25maWdDb250cm9sLnRyYW5zcG9ydDtcbiAgICAgICAgICAgICAgICBpZiAodHlwZUNvbnRyb2wpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gbGEgY2xhc3NlIGR1IGNvbnRyb2xlXG4gICAgICAgICAgICAgICAgICAgIHZhciBuYW1lQ29udHJvbCA9IGF1dGhvcml6ZWRDb250cm9sc1t0eXBlQ29udHJvbF0ubmFtZTtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHRpdGxlQ29udHJvbCA9IChncmFwaENvbnRyb2wpID8gbmFtZUNvbnRyb2wgKyBcIiAoXCIgKyBncmFwaENvbnRyb2wgKyBcIilcIiA6IG5hbWVDb250cm9sO1xuICAgICAgICAgICAgICAgICAgICB2YXIgY2xhc3NDb250cm9sID0gYXV0aG9yaXplZENvbnRyb2xzW3R5cGVDb250cm9sXS5jbGFzcztcbiAgICAgICAgICAgICAgICAgICAgaWYgKGNsYXNzQ29udHJvbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gZXN0IGJpZW4gc3VyIHVuZSBjb3VjaGUgZGUgY2FsY3VsIGF1dGhvcmlzw6kgIVxuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuZ3BSZXN1bHRMYXllcklkID0gXCJsYXllcmltcG9ydDpDT01QVVRFXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBvbiB0cmFuc21ldCBsZXMgaW5mb21hdGlvbnMgdXRpbGVzXG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5zZXQoXCJjb250cm9sXCIsIHR5cGVDb250cm9sKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLnNldChcIm5hbWVcIiwgbmFtZUNvbnRyb2wpO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuc2V0KFwiZ3JhcGhcIiwgZ3JhcGhDb250cm9sKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlY3RvckxheWVyLnNldChcImRhdGFcIiwgY29uZmlnQ29udHJvbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB2ZWN0b3JMYXllci5zZXQoXCJ0aXRsZVwiLCB0aXRsZUNvbnRyb2wpO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIGZvcm1hdEdlb0pTT04gPSBuZXcgR2VvSlNPTkV4dGVuZGVkKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0U3R5bGUgOiB2ZWN0b3JTdHlsZVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgZ2VvanNvbiA9IGZvcm1hdEdlb0pTT04ud3JpdGVGZWF0dXJlcyhmZWF0dXJlcywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGFQcm9qZWN0aW9uIDogXCJFUFNHOjQzMjZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlUHJvamVjdGlvbiA6IFwiRVBTRzozODU3XCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmVjdG9yTGF5ZXIuc2V0KFwiZ2VvanNvblwiLCBnZW9qc29uKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIHJlY2hlcmNoZSBldCBpbml0aWFsaXNlciBsZSBjb250cm9sZVxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5nZXRNYXAoKS5nZXRDb250cm9scygpLmZvckVhY2goKGNvbnRyb2wpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoY29udHJvbCBpbnN0YW5jZW9mIGNsYXNzQ29udHJvbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250cm9sLnNldERhdGEoY29uZmlnQ29udHJvbCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRyb2wuc2V0TGF5ZXIodmVjdG9yTGF5ZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250cm9sLmluaXQoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgbWFwLmFkZExheWVyKHZlY3RvckxheWVyKTtcblxuICAgICAgICAgICAgLy8gVE9ETyA6IGFwcGVsZXIgZm9uY3Rpb24gY29tbXVuZVxuICAgICAgICAgICAgLy8gem9vbSBzdXIgbCfDqXRlbmR1ZSBkZXMgZW50aXTDqXMgcsOpY3Vww6lyw6llcyAoc2kgcG9zc2libGUpXG4gICAgICAgICAgICBpZiAobWFwLmdldFZpZXcoKSAmJiBtYXAuZ2V0U2l6ZSgpICYmIHZlY3RvclNvdXJjZS5nZXRFeHRlbnQpIHtcbiAgICAgICAgICAgICAgICB2YXIgc291cmNlRXh0ZW50ID0gdmVjdG9yU291cmNlLmdldEV4dGVudCgpO1xuICAgICAgICAgICAgICAgIGlmIChz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AgICAgICAgICAgICAgIGZ1bmN0aW9uIChmZWF0dXJlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBhdWN1biBzdHlsZSBuJ2VzdCBhc3NvY2nDqSBhdSBmZWF0dXJlXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZmVhdHVyZS5nZXRTdHlsZSgpID09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIubG9nKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdIHNldCBkZWZhdWx0IHN0eWxlIGZvciBHUFggZmVhdHVyZVwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmZWF0dXJlLnNldFN0eWxlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9wdGlvbnMudmVjdG9yU3R5bGVPcHRpb25zLkdQWC5kZWZhdWx0U3R5bGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh0aGlzLl9jdXJyZW50SW1wb3J0VHlwZSA9PT0gXCJHZW9KU09OXCIpIHtcbiAgICAgICAgICAgICAgICB2ZWN0b3JTb3VyY2UuZm9yRWFjaEZlYXR1cmUoXG4gICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uIChmZWF0dXJlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBhdWN1biBzdHlsZSBuJ2VzdCBhc3NvY2nDqSBhdSBmZWF0dXJlXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZmVhdHVyZS5nZXRTdHlsZSgpID09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIubG9nKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdIHNldCBkZWZhdWx0IHN0eWxlIGZvciBHZW9KU09OIGZlYXR1cmVcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZmVhdHVyZS5zZXRTdHlsZShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRpb25zLnZlY3RvclN0eWxlT3B0aW9ucy5HZW9KU09OLmRlZmF1bHRTdHlsZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAvLyBham91dCBkZXMgaW5mb3JtYXRpb25zIHBvdXIgbGUgbGF5ZXJTd2l0Y2hlciAodGl0cmUsIGRlc2NyaXB0aW9uKVxuICAgICAgICAgICAgdmVjdG9yU291cmNlLl90aXRsZSA9IHZlY3RvclNvdXJjZS5fZGVzY3JpcHRpb24gPSBsYXllck5hbWU7XG5cbiAgICAgICAgICAgIHZlY3RvckxheWVyID0gbmV3IFZlY3RvckxheWVyKHtcbiAgICAgICAgICAgICAgICBzb3VyY2UgOiB2ZWN0b3JTb3VyY2VcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gb24gcmFqb3V0ZSBsZSBjaGFtcCBncFJlc3VsdExheWVySWQgcGVybWV0dGFudCBkJ2lkZW50aWZpZXIgdW5lIGNvdWNoZSBjcsOpZSBwYXIgbGUgY29tcG9zYW50LiAocG91ciBsYXllclN3aXRjaGVyIHBhciBleClcbiAgICAgICAgdmVjdG9yTGF5ZXIuZ3BSZXN1bHRMYXllcklkID0gXCJsYXllcmltcG9ydDpcIiArIHRoaXMuX2N1cnJlbnRJbXBvcnRUeXBlO1xuICAgICAgICBtYXAuYWRkTGF5ZXIodmVjdG9yTGF5ZXIpO1xuXG4gICAgICAgIC8vIFRPRE8gOiBhcHBlbGVyIGZvbmN0aW9uIGNvbW11bmVcbiAgICAgICAgLy8gem9vbSBzdXIgbCfDqXRlbmR1ZSBkZXMgZW50aXTDqXMgcsOpY3Vww6lyw6llcyAoc2kgcG9zc2libGUpXG4gICAgICAgIGlmIChtYXAuZ2V0VmlldygpICYmIG1hcC5nZXRTaXplKCkgJiYgdmVjdG9yU291cmNlLmdldEV4dGVudCkge1xuICAgICAgICAgICAgdmFyIHNvdXJjZUV4dGVudCA9IHZlY3RvclNvdXJjZS5nZXRFeHRlbnQoKTtcbiAgICAgICAgICAgIGlmIChzb3VyY2VFeHRlbnQgJiYgc291cmNlRXh0ZW50WzBdICE9PSBJbmZpbml0eSkge1xuICAgICAgICAgICAgICAgIG1hcC5nZXRWaWV3KCkuZml0KHZlY3RvclNvdXJjZS5nZXRFeHRlbnQoKSwgbWFwLmdldFNpemUoKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLy8gRXZlbnRzIE1hcEJveCBET01cblxuICAgIC8qKlxuICAgICAqIHRoaXMgbWV0aG9kIGlzIGNhbGxlZCB3aGVuIHRoZSBlZGl0b3IgaXMgbG9hZGVkXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge09iamVjdH0gZSAtIGVkaXRvclxuICAgICAqL1xuICAgIExheWVySW1wb3J0LnByb3RvdHlwZS5fb25Mb2FkZWRNYXBCb3ggPSBmdW5jdGlvbiAoZSkge1xuICAgICAgICB2YXIgZGF0YSA9IGUudGFyZ2V0LmRhdGEub2JqO1xuICAgICAgICB2YXIgbGF5ZXIgPSB0aGlzLmdldENvbnRleHQoXCJsYXllclwiKTtcbiAgICAgICAgaWYgKGxheWVyLmdldChcIm1hcGJveC1zb3VyY2VcIikgPT09IGRhdGEuc291cmNlICYmIGxheWVyLmdldChcIm1hcGJveC1lZGl0b3JcIikgPT09IGUudGFyZ2V0LmVkaXRvcklEKSB7XG4gICAgICAgICAgICAvLyBzb21lIHN0dWZmLi5cbiAgICAgICAgfVxuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlz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tcbiAgICAgICAgICAgICAgICAgICAgdmFyIGxheW91dCA9IGxheWVyc1tpXS5sYXlvdXQ7XG4gICAgICAgICAgICAgICAgICAgIGlmIChsYXlvdXQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxheW91dC52aXNpYmlsaXR5ID0gKHRhcmdldC5jaGVja2VkKSA/IFwidmlzaWJsZVwiIDogXCJub25lXCI7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllcnNbaV0ubGF5b3V0ID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZpc2liaWxpdHkgOiAodGFyZ2V0LmNoZWNrZWQpID8gXCJ2aXNpYmxlXCIgOiBcIm5vbmVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBhcHBseVN0eWxlT2xtcyhsYXllciwgc3R5bGVzLCBkYXRhLnNvdXJjZSlcbiAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7fSlcbiAgICAgICAgICAgICAgICAuY2F0Y2goZnVuY3Rpb24gKGVycm9yKSB7XG4gICAgICAgICAgICAgICAgICAgIGxvZ2dlci5lcnJvcihlcnJvcik7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgaXMgY2FsbGVkIG9uICdfYWRkSW1wb3J0TWFwQm94U2NhbGVTb3VyY2UnIGlucHV0IHNsaWRlXG4gICAgICogYW5kIGNoYW5nZSB6b29tIHNvdXJjZSB0byBtYXBcbiAgICAgKlxuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBlIC0gSFRNTEVsZW1lbnRcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIExheWVySW1wb3J0LnByb3RvdHlwZS5fb25DaGFuZ2VTY2FsZU1pblNvdXJjZU1hcEJveCA9IGZ1bmN0aW9uIChlKSB7XG4gICAgICAgIHZhciBkYXRhID0gZS50YXJnZXQuZGF0YS5vYmo7XG4gICAgICAgIHZhciB0YXJnZXQgPSBlLnRhcmdldC5zcmNFbGVtZW50O1xuICAgICAgICB2YXIgbGF5ZXIgPSB0aGlzLmdldENvbnRleHQoXCJsYXllclwiKTtcblxuICAgICAgICBpZiAobGF5ZXIuZ2V0KFwibWFwYm94LXNvdXJjZVwiKSA9PT0gZGF0YS5zb3VyY2UgJiYgbGF5ZXIuZ2V0KFwibWFwYm94LWVkaXRvclwiKSA9PT0gZS50YXJnZXQuZWRpdG9ySUQpIHtcbiAgICAgICAgICAgIC8vIHJlbG9hZCBzdHlsZSB3aXRoIG5ldyBwYXJhbSA6IG1pblpvb20gPSAuLi5cbiAgICAgICAgICAgIHZhciBzdHlsZXMgPSBsYXllci5nZXQoXCJtYXBib3gtc3R5bGVzXCIpO1xuICAgICAgICAgICAgdmFyIGxheWVycyA9IHN0eWxlcy5sYXllcnM7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxheWVycy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIGlmIChsYXllcnNbaV0uaWQgPT09IGRhdGEuaWQpIHtcbiAgICAgICAgICAgICAgICAgICAgbGF5ZXJzW2ldLm1pbnpvb20gPSB0YXJnZXQudmFsdWU7XG4gICAgICAgICAgICAgICAgICAgIHRhcmdldC50aXRsZSA9IHRhcmdldC52YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYXBwbHlTdHlsZU9sbXMobGF5ZXIsIHN0eWxlcywgZGF0YS5zb3VyY2UpXG4gICAgICAgICAgICAgICAgLnRoZW4oZnVuY3Rpb24gKCkge30pXG4gICAgICAgICAgICAgICAg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IDA7IGkgPCBsYXllcnMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICBpZiAobGF5ZXJzW2ldLmlkID09PSBkYXRhLmlkKSB7XG4gICAgICAgICAgICAgICAgICAgIGxheWVyc1tpXS5tYXh6b29tID0gdGFyZ2V0LnZhbHVlO1xuICAgICAgICAgICAgICAgICAgICB0YXJnZXQudGl0bGUgPSB0YXJnZXQudmFsdWU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGFwcGx5U3R5bGVPbG1zKGxheWVyLCBzdHlsZXMsIGRhdGEuc291cmNlKVxuICAgICAgICAgICAgICAgIC50aGVuKGZ1bmN0aW9uICgpIHt9KVxuICAgICAgICAgICAgICAgIC5jYXRjaChmdW5jdGlvbiAoZXJyb3IpIHtcbiAgICAgICAgICAgICAgICAgICAgbG9nZ2VyLmVycm9yKGVycm9yKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBpcyBjYWxsZWQgb24gJydcbiAgICAgKiBhbmQgY2hhbmdlIHpvb20gc291cmNlIHRvIG1hcFxuICAgICAqXG4gICAgICogQHBhcmFtIHtPYmplY3R9IGUgLSBIVE1MRWxlbWVudFxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgTGF5ZXJJbXBvcnQucHJvdG90eXBlLl9vbkNoYW5nZUxlZ2VuZFZhbHVlU291cmNlTWFwQm94ID0gZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgdmFyIGRhdGEgPSBlLnRhcmdldC5kYXRhLm9iajtcbiAgICAgICAgdmFyIHRhcmdldCA9IGUudGFyZ2V0LnNyY0VsZW1lbnQ7XG4gICAgICAgIHZhciBsYXllciA9IHRoaXMuZ2V0Q29udGV4dChcImxheWVyXCIpO1xuXG4gICAgICAgIC8vIGxvZ2dlci50cmFjZShsYXllcik7XG4gICAgICAgIGlmIChsYXllci5nZXQoXCJtYXBib3gtc291cmNlXCIpID09PSBkYXRhLnNvdXJjZSAmJiBsYXllci5nZXQoXCJtYXBib3gtZWRpdG9yXCIpID09PSBlLnRhcmdldC5lZGl0b3JJRCkge1xuICAgICAgICAgICAgLy8gcmVsb2FkIHN0eWxlIHdpdGggbmV3IHBhcmFtIDpcbiAgICAgICAgICAgIHZhciBzdHlsZXMgPSBsYXllci5nZXQoXCJtYXBib3gtc3R5bGVzXCIpO1xuICAgICAgICAgICAgdmFyIGxheWVycyA9IHN0eWxlcy5sYXllcnM7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxheWVycy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIGlmIChsYXllcnNbaV0uaWQgPT09IGRhdGEuaWQpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHBhaW50ID0gbGF5ZXJzW2ldLnBhaW50O1xuICAgICAgICAgICAgICAgICAgICBpZiAocGFpbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhaW50W3RhcmdldC5kYXRhc2V0LmlkXSA9IHRhcmdldC52YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBhcHBseVN0eWxlT2xtcyhsYXllciwgc3R5bGVzLCBkYXRhLnNvdXJjZSlcbiAgICAgICAgICAgICAgICAudGhlbihmdW5jdGlvbiAoKSB7fSlcbiAgICAgICAgICAgICAgICAuY2F0Y2goZnVuY3Rpb24gKGVycm9yKSB7XG4gICAgICAgICAgICAgICAgICAgIGxvZ2dlci5lcnJvcihlcnJvcik7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgaXMgY2FsbGVkIG9uICcnXG4gIC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ZXIpIHtcbiAgICAgICAgICAgICAgICBsYXllcnMgPSBnZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMuTGF5ZXI7XG5cbiAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShsYXllcnMpKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIG9uIHN0b2NrZSBsYSBsaXN0ZSBkZXMgY291Y2hlcyBwb3VyIGZhaXJlIGxlIGxpZW4gYXZlYyBsZSBET01cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fZ2V0Q2FwUmVzcG9uc2VXTVRTTGF5ZXJzID0gbGF5ZXJzO1xuXG4gICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGogPSAwOyBqIDwgbGF5ZXJzLmxlbmd0aDsgaisrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBvbiB2w6lyaWZpZSBxdWUgbGEgcHJvamVjdGlvbiBkZSBsYSBjb3VjaGUgV01UUyBlc3QgY29tcGF0aWJsZSBhdmVjIGNlbGxlIGRlIGxhIGNhcnRlXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyAoaWUgZWxsZSBkb2l0IMOqdHJlIGNvbm51ZSBwYXIgb2wucHJvailcbiAgICAgICAgICAgICAgICAgICAgICAgIHByb2plY3Rpb24gPSB0aGlzLl9nZXRXTVRTTGF5ZXJQcm9qZWN0aW9uKGxheWVyc1tqXSwgZ2V0Q2FwUmVzcG9uc2VXTVRTKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwcm9qZWN0aW9uICYmIHR5cGVvZiBwcm9qZWN0aW9uID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9sR2V0UHJvaihwcm9qZWN0aW9uKSB8fCBvbEdldFByb2oocHJvamVjdGlvbi50b1VwcGVyQ2FzZSgpKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBsYSBwcm9qZWN0aW9uIGRlIGxhIGNvdWNoZSBlc3QgY29ubnVlIHBhciBvbC5wcm9qLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBvbiBham91dGUgY2hhcXVlIGNvdWNoZSBkZSBsYSByw6lwb25zZSBkYW5zIGxhIGxpc3RlIGRlcyBjb3VjaGVzIGFjY2Vzc2libGVzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxheWVyRGVzY3JpcHRpb24gPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250ZW50IDogbGF5ZXJzW2pdLlRpdGxlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGl0bGUgOiBsYXllcnNbal0uQWJzdHJhY3QgfHwgbGF5ZXJzW2pdLlRpdGxlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLl9nZXRDYXBSZXN1bHRzTGlzdENvbnRhaW5lcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fYWRkSW1wb3J0R2V0Q2FwUmVzdWx0TGF5ZXIobGF5ZXJEZXNjcmlwdGlvbiwgaiwgdGhpcy5fZ2V0Q2FwUmVzdWx0c0xpc3RDb250YWluZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2kgbGEgcHJvamVjdGlvbiBkZSBsYSBjb3VjaGUgbidlc3QgcGFzIGNvbm51ZSBwYXIgb2wucHJvaixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gbidhZmZpY2hlIHBhcyBsYSBjb3VjaGUgZGFucyBsZSBwYW5lbCBkZXMgcsOpc3VsdGF0c1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIud2FybihcIltvbC5jb250cm9sLkxheWVySW1wb3J0XSB3bXRzIGxheWVyIGNhbm5vdCBiZSBhZGRlZCB0byBtYXAgOiB1bmtub3duIHByb2plY3Rpb25cIiwgbGF5ZXJzW2pdKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIHRoaXMgbWV0aG9kIGlzIGNhbGxlZCBieSB0aGlzLl9kaXNwbGF5R2V0Q2FwUmVzcG9uc2VMYXllcnMgbWV0aG9kXG4gICAgICogYW5kIGRpc3BsYXkgV01TIGxheWVyIGluIGxpc3QgZnJvbSBnZXRjYXBhYmlsaXRpZXMgcmVzcG9uc2VcbiAgICAgKlxuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBsYXllck9iaiAtIG9iamVjdCBjb3JyZXNwb25kaW5nIHRvIDxMYXllcj4gY29udGVudCBpbiBXTVMgR2V0Q2FwYWJpbGl0aWVzIHJlc3BvbnNlXG4gICAgICogQHBhcmFtIHtPYmplY3R9IFtwYXJlbnRMYXllcnNJbmZvc10gLSBvYmplY3QgY29ycmVzcG9uZGluZyB0byBwYXJlbnRzIDxMYXllcj4gY29udGVudCBpbiBXTVMgR2V0Q2FwYWJpbGl0aWVzIHJlc3BvbnNlICh3aXRob3V0IGNoaWxkcmVuIDxMYXllcj4gaW5mb3MpXG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBMYXllckltcG9ydC5wcm90b3R5cGUuX2Rpc3BsYXlHZXRDYXBSZXNwb25zZVdNU0xheWVyID0gZnVuY3Rpb24gKGxheWVyT2JqLCBwYXJlbnRMYXllcnNJbmZvcykge1xuICAgICAgICBpZiAoIWxheWVyT2JqKSB7XG4g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gICBcIkNSU1wiLFxuICAgICAgICAgICAgICAgIFwiU3R5bGVcIlxuICAgICAgICAgICAgICAgIC8vIFwiQXV0aG9yaXR5VVJMXCIgLy8gVE9ET1xuICAgICAgICAgICAgXTtcbiAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBhZGRLZXlzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAga2V5ID0gYWRkS2V5c1tpXTtcbiAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShwYXJlbnRMYXllcnNJbmZvc1trZXldKSAmJiBwYXJlbnRMYXllcnNJbmZvc1trZXldLmxlbmd0aCAhPT0gMCkge1xuICAgICAgICAgICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShsYXllck9ialtrZXldKSAmJiBsYXllck9ialtrZXldLmxlbmd0aCAhPT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gYWpvdXRlIGNlbGxlcyBkZSBsYSBjb3VjaGUgcGFyZW50XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBuID0gMDsgbiA8IHBhcmVudExheWVyc0luZm9zW2tleV0ubGVuZ3RoOyBuKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAobGF5ZXJPYmpba2V5XS5pbmRleE9mKHBhcmVudExheWVyc0luZm9zW2tleV1bbl0pID09PSAtMSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBsZSBDUlMvU3R5bGUgcGFyZW50IG4nZXN0IHBhcyBkYW5zIGxlcyBDUlMvU3R5bGUgZGUgbGEgY291Y2hlLCBvbiBsJ2Fqb3V0ZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXllck9ialtrZXldLnB1c2gocGFyZW50TGF5ZXJzSW5mb3Nba2V5XVtuXSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2kgbGEgY291Y2hlIG4nYSBwYXMgZGUgQ1JTIG91IFN0eWxlLCBvbiByw6ljdXDDqHJlIGNldXggZGUgbGEgY291Y2hlIHBhcmVudFxuICAgICAgICAgICAgICAgICAgICAgICAgbGF5ZXJPYmpba2V5XSA9IHBhcmVudExheWVyc0luZm9zW2tleV07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8vIHByb3ByacOpdMOpcyBxdWkgcmVtcGxhY2VudCBsZXMgdmFsZXVycyBkZXMgcHJvcHJpw6l0w6lzIGjDqXJpdMOpZXMsXG4gICAgICAgICAgICAvLyBjw6BkIG9uIHLDqWN1cMOocmUgbGEgcHJvcHJpw6l0w6kgcGFyZW50IHNldWxlbWVudCBzaSBlbGxlIG4nZXN0IHBhcyBkw6lmaW5pZSBwb3VyIGwnw6lsw6ltZW50IGVuZmFudFxuICAgICAgICAgICAgdmFyIHJlcGxhY2VLZXlzID0gW1xuICAgICAgICAgICAgICAgIFwiQm91bmRpbmdCb3hcIixcbiAgICAgICAgICAgICAgICBcIkVYX0dlb2dyYXBoaWNCb3VuZGluZ0JveFwiLFxuICAgICAgICAgICAgICAgIFwiTWF4U2NhbGVEZW5vbWluYXRvclwiLFxuICAgICAgICAgICAgICAgIFwiTWluU2NhbGVEZW5vbWluYXRvclwiLFxuICAgICAgICAgICAgICAgIFwiQXR0cmlidXRpb25cIixcbiAgICAgICAgICAgICAgICBcIkRpbWVuc2lvblwiLFxuICAgICAgICAgICAgICAgIFwicXVlcnlhYmxlXCIsXG4gICAgICAgICAgICAgICAgXCJjYXNjYWRlZFwiLFxuICAgICAgICAgICAgICAgIFwib3BhcXVlXCIsXG4gICAgICAgICAgICAgICAgXCJub1N1YnNldHNcIixcbiAgICAgICAgICAgICAgICBcImZpeGVkV2lkdGhcIixcbiAgICAgICAgICAgICAgICBcImZpeGVkSGVpZ2h0XCJcbiAgICAgICAgICAgIF07XG4gICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgcmVwbGFjZUtleXMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICBrZXkgPSByZXBsYWNlS2V5c1tpXTtcbiAgICAgICAgICAgICAgICBpZiAocGFyZW50TGF5ZXJzSW5mb3Nba2V5XSAmJiAhbGF5ZXJPYmpba2V5XSkge1xuICAgICAgICAgICAgICAgICAgICBsYXllck9ialtrZXldID0gcGFyZW50TGF5ZXJzSW5mb3Nba2V5XTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAvLyBzaSBvbiBuJ2EgcGFzIGQnaW5mb3MgZGUgY291Y2hlIHBhcmVudCwgb24gZXN0IMOgIGxhIHJhY2luZSBkdSBDYXBhYmlsaXR5LCBvbiBsZSBub3RlXG4gICAgICAgICAgICBsYXllck9iai5faXNSb290TGF5ZXIgPSB0cnVlO1xuICAgICAgICAgICAgbGF5ZXJPYmouX2NvbnRhaW5lciA9IHRoaXMuX2dldENhcFJlc3VsdHNMaXN0Q29udGFpbmVyO1xuICAgICAgICAgICAgaWYgKCFsYXllck9iai5UaXRsZSkge1xuICAgICAgICAgICAgICAgIGxheWVyT2JqLlRpdGxlID0gXCJMaXN0ZSBkZXMgY291Y2hlc1wiO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gMi4gc2kgb24gYSBkJ2F1dHJlcyBjb3VjaGVzIDxMYXllcj4gaW1icmlxdcOpZXMsIG9uIGRlc2NlbmQgZCd1biBuaXZlYXUsIHNpbm9uIG9uIGFmZmljaGUgbGEgY291Y2hlIGRhbnMgbGEgbGlzdGUgZGVzIHLDqXN1bHRhdHNcbiAgICAgICAgaWYgKGxheWVyT2JqLkxheWVyKSB7XG4gICAgICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShsYXllck9iai5MYXllcikpIHtcbiAgICAgICAgICAgICAgICB2YXIgX2NvbnRhaW5lciA9IChsYXllck9iaikgPyBsYXllck9iai5fY29udGFpbmVyIDogcGFyZW50TGF5ZXJzSW5mb3MuX2NvbnRhaW5lcjtcbiAgICAgICAgICAgICAgICB2YXIgX3RpdGxlID0gKGxheWVyT2JqKSA/IGxheWVyT2JqLlRpdGxlIDogcGFyZW50TGF5ZXJzSW5mb3MuVGl0bGU7XG4gICAgICAgICAgICAgICAgbGF5ZXJPYmouX2NvbnRhaW5lciA9IHRoaXMuX2FkZEltcG9ydEdldENhcFJlc3VsdExpc3RSdWJyaXF1ZShfdGl0bGUsIF9jb250YWluZXIpLmxhc3RDaGlsZDtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBqID0gMDsgaiA8IGxheWVyT2JqLkxheWVyLmxlbmd0aDsgaisrKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIG9uIHJlY29tbWVuY2UgcG91ciBjaGFxdWUgc291cyBjb3VjaGUsIGF2ZWMgbGVzIGluZm9zIMOpdmVudHVlbGxlbWVudCBow6lyaXTDqWVzXG4gICAgICAgICAgICAgICAgICAgIHZhciBiUnVicmlxdWVFeGlzdCA9IGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICB2YXIgbHN0UnVicmlxdWUgPSBsYXllck9iai5fY29udGFpbmVyLmdldEVsZW1lbnRzQnlDbGFzc05hbWUoXCJHUGltcG9ydEdldENhcFJ1YnJpcXVlVGl0bGVcIik7XG4gICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGlpID0gMDsgaWkgPCBsc3RSdWJyaXF1ZS5sZW5ndGg7IGlpKyspIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChsc3RSdWJyaXF1ZVtpaV0udGl0bGUgPT09IGxheWVyT2JqLlRpdGxlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYlJ1YnJpcXVlRXhpc3QgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxheWVyT2JqLkxheWVyW2pdLl9jb250YWluZXIgPSBsc3RSdWJyaXF1ZVtpaV0ucGFyZW50RWxlbWVudDtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBpZiAoIWJSdWJyaXF1ZUV4aXN0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYXllck9iai5MYXllcltqXS5fY29udGFpbmVyID0gdGhpcy5fYWRkSW1wb3J0R2V0Q2FwUmVzdWx0UnVicmlxdWUobGF5ZXJPYmouVGl0bGUsIGxheWVyT2JqLl9jb250YWluZXIpLmxhc3RDaGlsZDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9kaXNwbGF5R2V0Q2FwUmVzcG9uc2VXTVNMYXllcihsYXllck9iai5MYXllcltqXSwgbGF5ZXJPYmopO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIC8vIG9uIHLDqWN1cMOocmUgbGEgbG9uZ3VldXIgZGUgbGEgbGlzdGUgZGVzIGNvdWNoZXMgZMOpasOgIHLDqWN1cMOpcsOpZXMsIHBvdXIgYXZvaXIgY2UgcXVpIHNlcmEgbCdpbmRleCBkZSBsYSBjb3VjaGUgw6AgYWpvdXRlci5cbiAgICAgICAgICAgIHZhciBsYXN0SW5kZXggPSB0aGlzLl9nZXRDYXBSZXNwb25zZVdNU0xheWVycy5sZW5ndGg7XG5cbiAgICAgICAgICAgIC8vIG9uIHbDqXJpZmllIHF1ZSBsYSBjb3VjaGUgYWl0IHVuZSBwcm9qZWN0aW9uIGNvbXBhdGlibGUgYXZlYyBjZWxsZSBkZSBsYSBjYXJ0ZVxuICAgICAgICAgICAgLy8gb3Ugc29pdCBjb25udWUgcGFyIHByb2o0anMsIGV0IG9uIHN0b2NrZSBjZXR0ZSB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gICAgICAgICAgICAgICAgdGl0bGUgOiBsYXllck9iai5BYnN0cmFjdCB8fCBsYXllck9iai5UaXRsZVxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgLy8gRklYTUUgYmV1cmsgIT9cbiAgICAgICAgICAgICAgICB2YXIgX2lzR29vZENvbnRhaW5lciA9IGxheWVyT2JqLl9jb250YWluZXI7XG4gICAgICAgICAgICAgICAgaWYgKF9pc0dvb2RDb250YWluZXIubG9jYWxOYW1lID09PSBcInVsXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgX2lzR29vZENvbnRhaW5lciA9IF9pc0dvb2RDb250YWluZXIubGFzdENoaWxkO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLl9hZGRJbXBvcnRHZXRDYXBSZXN1bHRMYXllcihsYXllckRlc2NyaXB0aW9uLCBsYXN0SW5kZXgsIF9pc0dvb2RDb250YWluZXIpO1xuXG4gICAgICAgICAgICAgICAgLy8gcHVpcyBvbiBzdG9rZSBsYSBjb3VjaGUgZGFucyBsYSBsaXN0ZSBwb3VyIGZhaXJlIGxlIGxpZW4gYXZlYyBsZSBET01cbiAgICAgICAgICAgICAgICB0aGlzLl9nZXRDYXBSZXNwb25zZVdNU0xheWVyc1tsYXN0SW5kZXhdID0gbGF5ZXJPYmo7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgaXMgY2FsbGVkIG9uICdHUGltcG9ydEdldENhcFByb3Bvc2FsJyBkaXYgY2xpY2tcbiAgICAgKiBhbmQgYWRkIGNvcnJlc3BvbmRpbmcgbGF5ZXIgdG8gbWFwXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge09iamVjdH0gZSAtIEhUTUxFbGVtZW50XG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBMYXllckltcG9ydC5wcm90b3R5cGUuX29uR2V0Q2FwUmVzcG9uc2VMYXllckNsaWNrID0gZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgaWYgKGUudGFyZ2V0ICYmIGUudGFyZ2V0LmlkKSB7XG4gICAgICAgICAgICB2YXIgcHJvcG9zYWxJZCA9IHBhcnNlSW50KGUudGFyZ2V0LmlkLnN1YnN0cigyMyksIDEwKTtcblxuICAgICAgICAgICAgaWYgKGlzTmFOKHByb3Bvc2FsSWQpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB2YXIgbGF5ZXJJbmZvO1xuXG4gICAgICAgICAgICBpZiAodGhpcy5fY3VycmVudEltcG9ydFR5cGUgPT09IFwiV01TXCIpIHtcbiAgICAgICAgICAgICAgICAvLyByw6ljdXDDqXJhdGlvbiBkZXMgaW5mb3JtYXRpb25zIGxpw6llcyDDoCBsYSBjb3VjaGVcbiAgICAgICAgICAgICAgICBsYXllckluZm8gPSB0aGlzLl9nZXRDYXBSZXNwb25zZVdNU0xheWVyc1twcm9wb3NhbElkXTtcbiAgICAgICAgICAgICAgICAvLyBham91dCBkZSBsYSBjb3VjaGUgw6AgbGEgY2FydGVcbiAgICAgICAgICAgICAgICB0aGlzLl9hZGRHZXRDYXBXTVNMYXllcihsYXllckluZm8pO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLl9jdXJyZW50SW1wb3J0VHlwZSA9PT0gXCJXTVRTXCIpIHtcbiAgICAgICAgICAgICAgICAvLyByw6ljdXDDqXJhdGlvbiBkZXMgaW5mb3JtYXRpb25zIGxpw6llcyDDoCBsYSBjb3VjaGVcbiAgICAgICAgICAgICAgICBsYXllckluZm8gPSB0aGlzLl9nZXRDYXBSZXNwb25zZVdNVFNMYXllcnNbcHJvcG9zYWxJZF07XG4gICAgICAgICAgICAgICAgLy8gYWpvdXQgZGUgbGEgY291Y2hlIMOgIGxhIGNhcnRlXG4gICAgICAgICAgICAgICAgdGhpcy5fYWRkR2V0Q2FwV01UU0xheWVyKGxheWV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ICAgICogQHBhcmFtIHtTdHJpbmd9IG1hcFByb2pDb2RlIC0gbWFwIHByb2plY3Rpb24gY29kZSAoZS5nLiBcIkVQU0c6NDMyNlwiKVxuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBsYXllclRpbGVPcHRpb25zIC0gb3B0aW9ucyBmb3Igb2wubGF5ZXIuVGlsZSAodG8gYmUgZmlsbGVkKVxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgTGF5ZXJJbXBvcnQucHJvdG90eXBlLl9nZXRXTVNMYXllck1pbk1heFJlc29sdXRpb24gPSBmdW5jdGlvbiAobGF5ZXJJbmZvLCBtYXBQcm9qQ29kZSwgbGF5ZXJUaWxlT3B0aW9ucykge1xuICAgICAgICAvLyByw6ljdXDDqXJhdGlvbiBkZXMgcsOpc29sdXRpb25zIG1pbiBldCBtYXggw6AgcGFydGlyIGRlcyBkw6lub21pbmF0ZXVycyBkJ8OpY2hlbGxlXG4gICAgICAgIHZhciBtYXBVbml0cyA9IG9sR2V0UHJvaihtYXBQcm9qQ29kZSkuZ2V0VW5pdHMoKTtcbiAgICAgICAgaWYgKG1hcFVuaXRzID09PSBcIm1cIikge1xuICAgICAgICAgICAgLy8gaW5mbyA6IDEgcGl4ZWwgPSAwLjAwMDI4IG1cbiAgICAgICAgICAgIGlmIChsYXllckluZm8uTWluU2NhbGVEZW5vbWluYXRvcikge1xuICAgICAgICAgICAgICAgIGxheWVyVGlsZU9wdGlvbnMubWluUmVzb2x1dGlvbiA9IGxheWVySW5mby5NaW5TY2FsZURlbm9taW5hdG9yICogMC4wMDAyODtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChsYXllckluZm8uTWF4U2NhbGVEZW5vbWluYXRvcikge1xuICAgICAgICAgICAgICAgIGxheWVyVGlsZU9wdGlvbnMubWF4UmVzb2x1dGlvbiA9IGxheWVySW5mby5NYXhTY2FsZURlbm9taW5hdG9yICogMC4wMDAyODtcbiAgICAgICAgICAgIH1cbiAgICAgIC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IGlmIChib3VuZGluZ0JveCAmJiBBcnJheS5pc0FycmF5KGJvdW5kaW5nQm94KSkge1xuICAgICAgICAgICAgdmFyIGNycztcbiAgICAgICAgICAgIHZhciBleHRlbnQ7XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGJvdW5kaW5nQm94Lmxlbmd0aDsgaSsrKSB7IC8vIG9uIHBldXQgYXZvaXIgcGx1c2lldXJzIEJvdW5kaW5nQm94XG4gICAgICAgICAgICAgICAgY3JzID0gYm91bmRpbmdCb3hbaV0uY3JzO1xuICAgICAgICAgICAgICAgIGV4dGVudCA9IGJvdW5kaW5nQm94W2ldLmV4dGVudDtcbiAgICAgICAgICAgICAgICBpZiAoY3JzKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChjcnMgPT09IG1hcFByb2pDb2RlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBzaSBsYSBiYm94IGVzdCBkYW5zIGxhIHByb2plY3Rpb24gZGUgbGEgY2FydGUsIG9uIGxhIHBhc3NlIHRlbGxlIHF1ZWxsZVxuICAgICAgICAgICAgICAgICAgICAgICAgbGF5ZXJUaWxlT3B0aW9ucy5leHRlbnQgPSBleHRlbnQ7XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2YgY3JzID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIG9sUHJvaiA9IG9sR2V0UHJvaihjcnMpID8gb2xHZXRQcm9qKGNycykgOiBvbEdldFByb2ooY3JzLnRvVXBwZXJDYXNlKCkpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGlmICggb2xHZXRQcm9qKGNycykgfHwgb2xHZXRQcm9qKGNycy50b1VwcGVyQ2FzZSgpKSApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAob2xQcm9qKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHNpIGxhIGJib3ggZXN0IGRhbnMgdW5lIHByb2plY3Rpb24gY29ubnVlLCBvbiB2YSBsYSByZXByb2pldGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHRvdXQgZCdhYm9yZCwgb24gZ8OocmUgbGUgY2FzIGRlcyBzeXN0w6htZXMgRVBTRyBnw6lvZ3JhcGhpcXVlcyA6IGludmVyc2lvbiBkZXMgYXhlcyB4IGV0IHlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9sUHJvai5nZXRVbml0cygpID09PSBcImRlZ3JlZXNcIiAmJiBjcnMudG9VcHBlckNhc2UoKS5pbmRleE9mKFwiRVBTR1wiKSA9PT0gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gbGUgdGFibGVhdSBleHRlbnQgZXN0IGludmVyc8OpLCBvbiBhIGJlc29pbiBkZSA6IFttaW55LCBtaW54LCBtYXh4LCBtYXh5XVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHJldmVyc2VkRXh0ZW50ID0gW2V4dGVudFsxXSwgZXh0ZW50WzBdLCBleHRlbnRbM10sIGV4dGVudFsyXV07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXllclRpbGVPcHRpb25zLmV4dGVudCA9IG9sVHJhbnNmb3JtRXh0ZW50UHJvaihyZXZlcnNlZEV4dGVudCwgb2xQcm9qLCBtYXBQcm9qQ29kZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyByZXByb2plY3Rpb24gZGFucyBsYSBwcm9qZWN0aW9uIGRlIGxhIGNhcnRlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYXllclRpbGVPcHRpb25zLmV4dGV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IGluZm9ybWF0aW9ucyBwb3VyIGxlIGxheWVyU3dpdGNoZXIgKHRpdHJlLCBkZXNjcmlwdGlvbilcbiAgICAgICAgaWYgKGxheWVySW5mby5UaXRsZSkge1xuICAgICAgICAgICAgd21zU291cmNlLl90aXRsZSA9IGxheWVySW5mby5UaXRsZTtcbiAgICAgICAgICAgIHdtc1NvdXJjZS5fZGVzY3JpcHRpb24gPSBsYXllckluZm8uQWJzdHJhY3QgPyBsYXllckluZm8uQWJzdHJhY3QgOiBsYXllckluZm8uVGl0bGU7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB3bXNTb3VyY2UuX3RpdGxlID0gbGF5ZXJJbmZvLk5hbWU7XG4gICAgICAgICAgICB3bXNTb3VyY2UuX2Rlc2NyaXB0aW9uID0gbGF5ZXJJbmZvLkFic3RyYWN0ID8gbGF5ZXJJbmZvLkFic3RyYWN0IDogbGF5ZXJJbmZvLk5hbWU7XG4gICAgICAgIH1cbiAgICAgICAgLy8gYWpvdXQgZGUgbMOpZ2VuZGUgc2kgb24gZW4gYSB0cm91dsOpXG4gICAgICAgIGlmIChsZWdlbmQpIHtcbiAgICAgICAgICAgIHdtc1NvdXJjZS5fbGVnZW5kcyA9IFt7XG4gICAgICAgICAgICAgICAgdXJsIDogbGVnZW5kXG4gICAgICAgICAgICB9XTtcbiAgICAgICAgfVxuICAgICAgICAvLyBham91dCBkJ8OpdmVudHVlbGxlcyBtw6l0YWRvbm7DqWVzXG4gICAgICAgIGlmIChsYXllckluZm8uTWV0YWRhdGFVUkwgJiYgQXJyYXkuaXNBcnJheShsYXllckluZm8uTWV0YWRhdGFVUkwpKSB7XG4gICAgICAgICAgICB3bXNTb3VyY2UuX21ldGFkYXRhID0gW107XG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxheWVySW5mby5NZXRhZGF0YVVSTC5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIHZhciBtZXRhZGF0YSA9IGxheWVySW5mby5NZXRhZGF0YVVSTFtpXS5PbmxpbmVSZXNvdXJjZTtcbiAgICAgICAgICAgICAgICBpZiAobWV0YWRhdGEpIHtcbiAgICAgICAgICAgICAgICAgICAgd21zU291cmNlLl9tZXRhZGF0YS5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHVybCA6IG1ldGFkYXRhXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICAvLyBham91dCBkJ8OpdmVudHVlbGxlcyBhdHRyaWJ1dGlvbnMgLyBvcmlnaW5hdG9yc1xuICAgICAgICBpZiAobGF5ZXJJbmZvLkF0dHJpYnV0aW9uKSB7XG4gICAgICAgICAgICB2YXIgYXR0cmlidXRpb24gPSBsYXllckluZm8uQXR0cmlidXRpb247XG4gICAgICAgICAgICB3bXNTb3VyY2UuX29yaWdpbmF0b3JzID0ge307XG4gICAgICAgICAgICBpZiAoYXR0cmlidXRpb24uT25saW5lUmVzb3VyY2UpIHtcbiAgICAgICAgICAgICAgICB3bXNTb3VyY2UuX29yaWdpbmF0b3JzLnVybCA9IGF0dHJpYnV0aW9uLk9ubGluZVJlc291cmNlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGF0dHJpYnV0aW9uLlRpdGxlKSB7XG4gICAgICAgICAgICAgICAgd21zU291cmNlLl9vcmlnaW5hdG9ycy5uYW1lID0gd21zU291cmNlLl9vcmlnaW5hdG9ycy5hdHRyaWJ1dGlvbiA9IGF0dHJpYnV0aW9uLlRpdGxlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGF0dHJpYnV0aW9uLkxvZ29VUkwgJiYgYXR0cmlidXRpb24uTG9nb1VSTC5PbmxpbmVSZXNvdXJjZSkge1xuICAgICAgICAgICAgICAgIHdtc1NvdXJjZS5fb3JpZ2luYXRvcnMubG9nbyA9IGF0dHJpYnV0aW9uLkxvZ29VUkwuT25saW5lUm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ZW5kO1xuICAgICAgICBpZiAobGF5ZXJJbmZvLlN0eWxlICYmIEFycmF5LmlzQXJyYXkobGF5ZXJJbmZvLlN0eWxlKSkge1xuICAgICAgICAgICAgdmFyIHN0eWxlO1xuICAgICAgICAgICAgZm9yICh2YXIgcyA9IDA7IHMgPCBsYXllckluZm8uU3R5bGUubGVuZ3RoOyBzKyspIHtcbiAgICAgICAgICAgICAgICBzdHlsZSA9IGxheWVySW5mby5TdHlsZVtzXTtcbiAgICAgICAgICAgICAgICAvLyBvbiByw6ljdXDDqHJlIGxlIHN0eWxlXG4gICAgICAgICAgICAgICAgZGVmYXVsdFN0eWxlID0gc3R5bGUuSWRlbnRpZmllcjtcbiAgICAgICAgICAgICAgICBpZiAoc3R5bGUuaXNEZWZhdWx0KSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIHNpIGMnZXN0IGNlbHVpIHBhciBkw6lmYXV0LCBvbiBsZSBnYXJkZSAob24gbmUgYm91Y2xlIHBsdXMgc3VyIGxlcyBhdXRyZXMgc3R5bGVzKVxuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgLy8gZXQgdW5lIMOpdmVudHVlbGxlIGzDqWdlbmRlXG4gICAgICAgICAgICAgICAgaWYgKHN0eWxlLkxlZ2VuZFVSTCAmJiBBcnJheS5pc0FycmF5KHN0eWxlLkxlZ2VuZFVSTCkgJiYgc3R5bGUuTGVnZW5kVVJMLmxlbmd0aCAhPT0gMCkge1xuICAgICAgICAgICAgICAgICAgICBsZWdlbmQgPSBzdHlsZS5MZWdlbmRVUkxbMF0uaHJlZjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGRlZmF1bHRTdHlsZSA9PSBudWxsKSB7XG4gICAgICAgICAgICBsb2dnZXIud2FybihcIltvbC5jb250cm9sLkxheWVySW1wb3J0XSBzdHlsZSBpbmZvcm1hdGlvbiBub3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HlwZS5fZ2V0V01UU0xheWVyUHJvamVjdGlvbiA9IGZ1bmN0aW9uIChsYXllckluZm8sIGdldENhcFJlc3BvbnNlV01UUykge1xuICAgICAgICB2YXIgcHJvamVjdGlvbjtcblxuICAgICAgICBpZiAoIWxheWVySW5mbyB8fCB0eXBlb2YgbGF5ZXJJbmZvICE9PSBcIm9iamVjdFwiKSB7XG4gICAgICAgICAgICBsb2dnZXIud2FybihcIm1pc3NpbmcgbGF5ZXIgaW5mb3JtYXRpb24gKGZyb20gZ2V0Q2FwYWJpbGl0aWVzKVwiKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghZ2V0Q2FwUmVzcG9uc2VXTVRTIHx8IHR5cGVvZiBnZXRDYXBSZXNwb25zZVdNVFMgIT09IFwib2JqZWN0XCIpIHtcbiAgICAgICAgICAgIGxvZ2dlci53YXJuKFwibWlzc2luZyBnZXRDYXBhYmlsaXRpZXMgcmVzcG9uc2VcIik7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAobGF5ZXJJbmZvLlRpbGVNYXRyaXhTZXRMaW5rICYmIEFycmF5LmlzQXJyYXkobGF5ZXJJbmZvLlRpbGVNYXRyaXhTZXRMaW5rKSkge1xuICAgICAgICAgICAgdmFyIHRtcyA9IGxheWVySW5mby5UaWxlTWF0cml4U2V0TGlua1swXS5UaWxlTWF0cml4U2V0O1xuICAgICAgICAgICAgdmFyIGNycztcbiAgICAgICAgICAgIGlmIChnZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMgJiYgQXJyYXkuaXNBcnJheShnZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMuVGlsZU1hdHJpeFNldCkpIHtcbiAgICAgICAgICAgICAgICB2YXIgdGlsZU1hdHJpeFNldHMgPSBnZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMuVGlsZU1hdHJpeFNldDtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IHRpbGVNYXRyaXhTZXRzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aWxlTWF0cml4U2V0c1tpXS5JZGVudGlmaWVyID09PSB0bXMgJiYgdGlsZU1hdHJpeFNldHNbaV0uVGlsZU1hdHJpeCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gYSB0cm91dsOpIGxlIFRNUyBjb3JyZXNwb25kYW50XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGlsZU1hdHJpeFNldCA9IHRpbGVNYXRyaXhTZXRzW2ldO1xuICAgICAgICAgICAgICAgICAgICAgICAgY3JzID0gdGlsZU1hdHJpeFNldC5TdXBwb3J0ZWRDUlM7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoY3JzICYmIHR5cGVvZiBjcnMgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAob2xHZXRQcm9qKGNycykgfHwgb2xHZXRQcm9qKGNycy50b1VwcGVyQ2FzZSgpKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm9qZWN0aW9uID0gY3JzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuXG4gICAgICAgIHJldHVybiBwcm9qZWN0aW9uO1xuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBpcyBjYWxsZWQgYnkgdGhpcy5fYWRkR2V0Q2FwV01UU0xheWVyXG4gICAgICogYW5kIGdldCBvbC50aWxlR3JpZC5XTVRTIHBhcmFtZXRlcnMgdXNpbmcgZ2V0Q2FwYWJpbGl0aWVzIHJlc3BvbnNlXG4gICAgIC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ZXJJbmZvLlRpbGVNYXRyaXhTZXRMaW5rWzBdLlRpbGVNYXRyaXhTZXQ7XG5cbiAgICAgICAgICAgIGlmICh0aGlzLl9nZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMgJiYgQXJyYXkuaXNBcnJheSh0aGlzLl9nZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMuVGlsZU1hdHJpeFNldCkpIHtcbiAgICAgICAgICAgICAgICB2YXIgdGlsZU1hdHJpeFNldHMgPSB0aGlzLl9nZXRDYXBSZXNwb25zZVdNVFMuQ29udGVudHMuVGlsZU1hdHJpeFNldDtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IHRpbGVNYXRyaXhTZXRzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aWxlTWF0cml4U2V0c1tpXS5JZGVudGlmaWVyID09PSB0bXMgJiYgdGlsZU1hdHJpeFNldHNbaV0uVGlsZU1hdHJpeCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gb24gYSB0cm91dsOpIGxlIFRNUyBjb3JyZXNwb25kYW50XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGlsZU1hdHJpeFNldCA9IHRpbGVNYXRyaXhTZXRzW2ldO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgdGlsZW1hdHJpeDtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBpZDtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBzY2FsZWRlbm9taW5hdG9yO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFyIHJlc29sdXRpb247XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgdW5pdHM7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aWxlTWF0cml4U2V0LlN1cHBvcnRlZENSUykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb2pDb2RlID0gdGlsZU1hdHJpeFNldC5TdXBwb3J0ZWRDUlM7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvamVjdGlvbiA9IG9sR2V0UHJvaihwcm9qQ29kZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocHJvamVjdGlvbiAmJiBwcm9qZWN0aW9uLmdldFVuaXRzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5pdHMgPSBwcm9qZWN0aW9uLmdldFVuaXRzKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KHRpbGVNYXRyaXhTZXQuVGlsZU1hdHJpeCkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBqID0gMDsgaiA8IHRpbGVNYXRyaXhTZXQuVGlsZU1hdHJpeC5sZW5ndGg7IGorKykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zdHJ1Y3Rpb24gZHUgdGFibGVhdSBkZXMgbWF0cml4SWRzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpbGVtYXRyaXggPSB0aWxlTWF0cml4U2V0LlRpbGVNYXRyaXhbal07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aWxlbWF0cml4LklkZW50aWZpZXIgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQgPSBwYXJzZUludCh0aWxlbWF0cml4LklkZW50aWZpZXIsIDEwKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hdHJpeElkcy5wdXNoKGlkKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGNvbnN0cnVjdGlvbiBkdSB0YWJsZWF1IGRlcyByw6lzb2x1dGlvbnMsIGNhbGN1bMOpZXMgw6AgcGFydGlyIGRlcyBkw6lub21pbmF0ZXVycyBkJ8OpY2hlbGxlIChzY2FsZWRlbm9taW5hdG9yKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZWRlbm9taW5hdG9yID0gdGlsZW1hdHJpeC5TY2FsZURlbm9taW5hdG9yO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBjYWxjdWwgZGVzIHLDqXNvbHV0aW9ucyBzZWxvbiBsYSBwcm9qZWN0aW9uIGR1IFRNUyA6IHNlbG9uIHNpIG9uIGEgZGVzIGNvb3Jkb25uw6llcyBwbGFuZXMgb3UgZ8Opb2dyYXBoaXF1ZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHVuaXRzID09PSBcImRlZ3JlZXNcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gaW5mbyA6IDYzNzgxMzcgKiAyICogcGkgLyAzNjAgPSByYXlvbiBkZSBsYSB0ZXJyZSAoZWxsaXBzb2lkZSBXR1M4NClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdXRpb24gPSBzY2FsZWRlbm9taW5hdG9yICogMC4wMDAyOCAqIDE4MCAvIChNYXRoLlBJICogNjM3ODEzNyk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBpbmZvIDogMSBwaXhlbCA9IDAuMDAwMjggbVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x1dGlvbiA9IHNjYWxlZGVub21pbmF0b3IgKiAwLjAwMDI4O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdXRpb25zLnB1c2gocmVzb2x1dGlvbik7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3JpZ2luID0gdGlsZW1hdHJpeC5Ub3BMZWZ0Q29ybmVyO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdHJpIGRlcyByw6lzb2x1dGlvbnMgcGFyIG9yZHJlIGTDqWNyb2lzc2FudFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlc29sdXRpb25zLnNvcnQgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlc29sdXRpb25zLnNvcnQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uICh4LCB5KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4geSAtIHg7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdHJpIGRlcyBpZGVudGlmaWFudHMgZGVzIG5pdmVhdXggZGUgcHlyYW1pZGUgKG1hdHJpeElkcykgcGFyIG9yZHJlIGNyb2lzc2FudFxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG1hdHJpeElkcy5zb3J0ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXRyaXhJZHMuc29ydChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKHgsIHkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB4IC0geTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGxvZ2dlci53YXJuKFwiW29sLmNvbnRyb2wuTGF5ZXJJbXBvcnRdIFRpbGVNYXRyaXhTZXQgZGF0YSBub3QgZm91bmQgaW4gZ2V0Q2FwYWJpbGl0aWVzIHJlc3BvbnNlIGZvciBsYXllciBcIiArIGxheWVySW5mby5JZGVudGlmaWVyKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRtc09wdGlvbnMudG1zID0gdG1zO1xuICAgICAgICB0bXNPcHRpb25zLnByb2pDb2RlID0gcHJvakNvZGU7XG4gICAgICAgIHRtc09wdGlvbnMubWF0cml4SWRzID0gbWF0cml4SWRzO1xuICAgICAgICB0bXNPcHRpb25zLnJlc29sdXRpb25zID0gcmVzb2x1dGlvbnM7XG4gICAgICAgIHRtc09wdGlvbnMub3JpZ2luID0gb3JpZ2luO1xuXG4gICAgICAgIHJldHVybiB0bXNPcHRpb25zO1xuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBpcyBjYWxsZWQgYnkgdGhpcy5fYWRkR2V0Q2FwV01UU0xheWVyXG4gICAgICogYW5kIHNldHMgZXh0ZW50IGZvciBXTVRTIGxheWVyIGluIG1hcCBwcm9qZWN0aW9uIChpZiBhdmFpbGFibGUgaW4gZ2V0Q2FwYWJpbGl0aWVzIHJlc3BvbnNlKVxuICAgICAqXG4gICAgICogQHBhcmFtIHtPYmplY3R9IGxheWVySW5mbyAtIGxheWVyIGluZm9ybWF0aW9uIGZyb20gZ2V0Q2FwYWJpbGl0aWVzIHJlc3BvbnNlXG4gICAgICogQHJldHVybiB7QXJyYXl9IGV4dGVudCAtIGxheWVyIGV4dGVudFxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgTGF5ZXJJbXBvcnQucHJvdG90eXBl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29udGFpbmVyLmNsYXNzTmFtZSA9IFwiR1BpbXBvcnRXYWl0aW5nQ29udGFpbmVyVmlzaWJsZVwiO1xuICAgICAgICB0aGlzLl93YWl0aW5nID0gdHJ1ZTtcblxuICAgICAgICAvLyBtaXNlIGVuIHBsYWNlIGQndW4gdGltZW91dCBwb3VyIHLDqWluaXRpYWxpc2VyIGxlIHBhbmVsIChjYWNoZXIgbGEgcGF0aWVuY2UpXG4gICAgICAgIC8vIHNpIG9uIGVzdCB0b3Vqb3VycyBlbiBhdHRlbnRlIChzaSBsYSByZXF1w6p0ZSBlc3QgYmxvcXXDqWUgcGFyIGV4ZW1wbGUpXG4gICAgICAgIGlmICh0aGlzLl90aW1lcikge1xuICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRoaXMuX3RpbWVyKTtcbiAgICAgICAgICAgIHRoaXMuX3RpbWVyID0gbnVsbDtcbiAgICAgICAgfVxuICAgICAgICB2YXIgY29udGV4dCA9IHRoaXM7XG4gICAgICAgIHRoaXMuX3RpbWVyID0gc2V0VGltZW91dChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICBpZiAoY29udGV4dC5fd2FpdGluZyA9PT0gdHJ1ZSkge1xuICAgICAgICAgICAgICAgIGNvbnRleHQuX2hpZGVXYWl0aW5nQ29udGFpbmVyKCk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmIChjb250ZXh0Ll90aW1lcikge1xuICAgICAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQoY29udGV4dC5fdGltZXIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSwgMTYwMDApO1xuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBoaWRlcyB3YWl0aW5nIGNvbnRhaW5lciBhbmQgY2xlYXJzIHRpbWVvdXRcbiAgICAgKlxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgTGF5ZXJJbXBvc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tYXBCb3hSZXN1bHRzTGlzdENvbnRhaW5lcikge1xuICAgICAgICAgICAgdmFyIG5vZGVzID0gdGhpcy5fbWFwQm94UmVzdWx0c0xpc3RDb250YWluZXIuY2hpbGROb2RlcztcbiAgICAgICAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPCBub2Rlcy5sZW5ndGg7IGluZGV4KyspIHtcbiAgICAgICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gbm9kZXNbaW5kZXhdO1xuICAgICAgICAgICAgICAgIGlmIChlbGVtZW50LmlkID09PSBcIkdQRWRpdG9yTWFwQm94Q29udGFpbmVyX0lEX1wiICsgaWQpIHtcbiAgICAgICAgICAgICAgICAgICAgZWxlbWVudC5yZW1vdmUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgcmV0dXJuIExheWVySW1wb3J0O1xufShDb250cm9sKSk7XG5cbmV4cG9ydCBkZWZhdWx0IExheWVySW1wb3J0O1xuXG4vLyBFeHBvc2UgTGF5ZXJJbXBvcnQgYXMgb2wuY29udHJvbC5MYXllckltcG9ydCAoZm9yIGEgYnVpbGQgYnVuZGxlKVxuaWYgKHdpbmRvdy5vbCAmJiB3aW5kb3cub2wuY29udHJvbCkge1xuICAgIHdpbmRvdy5vbC5jb250cm9sLkxheWVySW1wb3J0ID0gTGF5ZXJJbXBvcnQ7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/OpenLayers/Controls/LayerImport.js\n"); /***/ }), @@ -2565,7 +2565,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CSS /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CSS_Controls_Route_GProuteOpenLayers_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../CSS/Controls/Route/GProuteOpenLayers.css */ \"./src/OpenLayers/CSS/Controls/Route/GProuteOpenLayers.css\");\n/* harmony import */ var _CSS_Controls_Route_GProuteOpenLayers_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CSS_Controls_Route_GProuteOpenLayers_css__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var ol_control_Control__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ol/control/Control */ \"ol/control/Control\");\n/* harmony import */ var ol_control_Control__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ol_control_Control__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ol_Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ol/Observable */ \"ol/Observable\");\n/* harmony import */ var ol_Observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(ol_Observable__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var ol_Overlay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ol/Overlay */ \"ol/Overlay\");\n/* harmony import */ var ol_Overlay__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ol_Overlay__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ol/layer/Vector */ \"ol/layer/Vector\");\n/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ol/source/Vector */ \"ol/source/Vector\");\n/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ol_source_Vector__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var ol_events_condition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ol/events/condition */ \"ol/events/condition\");\n/* harmony import */ var ol_events_condition__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ol_events_condition__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var ol_interaction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ol/interaction */ \"ol/interaction\");\n/* harmony import */ var ol_interaction__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ol_interaction__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ol/style */ \"ol/style\");\n/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ol_style__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ol/proj */ \"ol/proj\");\n/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(ol_proj__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var geoportal_access_lib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! geoportal-access-lib */ \"./node_modules/geoportal-access-lib/src/Gp.js\");\n/* harmony import */ var _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../Common/Utils/LoggerByDefault */ \"./src/Common/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Common_Utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../Common/Utils */ \"./src/Common/Utils.js\");\n/* harmony import */ var _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../Common/Utils/SelectorID */ \"./src/Common/Utils/SelectorID.js\");\n/* harmony import */ var _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Utils/Markers */ \"./src/OpenLayers/Controls/Utils/Markers.js\");\n/* harmony import */ var _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../Common/Utils/Draggable */ \"./src/Common/Utils/Draggable.js\");\n/* harmony import */ var _Utils_Interactions__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Utils/Interactions */ \"./src/OpenLayers/Controls/Utils/Interactions.js\");\n/* harmony import */ var _LocationSelector__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./LocationSelector */ \"./src/OpenLayers/Controls/LocationSelector.js\");\n/* harmony import */ var _Export__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Export */ \"./src/OpenLayers/Controls/Export.js\");\n/* harmony import */ var _LayerSwitcher__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./LayerSwitcher */ \"./src/OpenLayers/Controls/LayerSwitcher.js\");\n/* harmony import */ var _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../Formats/GeoJSON */ \"./src/OpenLayers/Formats/GeoJSON.js\");\n/* harmony import */ var _Common_Controls_RouteDOM__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../Common/Controls/RouteDOM */ \"./src/Common/Controls/RouteDOM.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n// import CSS\n\n// import OpenLayers\n\n\n\n\n\n// import GeoJSON from \"ol/format/GeoJSON\";\n\n\n\n\n// import geoportal library access\n\n// import local\n\n\n\n\n\n\n// import local with ol dependencies\n\n\n\n\n// DOM\n\nvar logger = _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getLogger(\"route\");\n\n/**\n * @classdesc\n *\n * Route Control.\n *\n * @constructor\n * @alias ol.control.Route\n * @type {ol.control.Route}\n * @extends {ol.control.Control}\n * @param {Object} options - route control options\n * @param {String} [options.apiKey] - API key for services call (route and autocomplete services). The key \"calcul\" is used by default.\n * @param {Boolean} [options.ssl = true] - use of ssl or not (default true, service requested using https protocol)\n * @param {Boolean} [options.collapsed = true] - Specify if widget has to be collapsed (true) or not (false) on map loading. Default is true.\n * @param {Boolean} [options.draggable = false] - Specify if widget is draggable\n * @param {Boolean|Object} [options.export = false] - Specify if button \"Export\" is displayed. For the use of the options of the \"Export\" control, see {@link ol.control.Export}\n * @param {Object} [options.exclusions = {\"toll\" : false, \"tunnel\" : false, \"bridge\" : false}] - list of exclusions with status (true = checked). By default : no exclusions checked.\n * @param {Array} [options.graphs = [\"Voiture\", \"Pieton\"]] - list of resources, by default : [\"Voiture\", \"Pieton\"]. The first element is selected.\n * @param {Object} [options.routeOptions = {}] - route service options. see {@link http://ignf.github.io/geoportal-access-lib/latest/jsdoc/module-Services.html#~route Gp.Services.route()} to know all route options.\n * @param {Object} [options.autocompleteOptions = {}] - autocomplete service options. see {@link http://ignf.github.io/geoportal-access-lib/latest/jsdoc/module-Services.html#~autoComplete Gp.Services.autoComplete()} to know all autocomplete options\n * @param {Object} [options.markersOpts] - options to use your own markers. Object properties can be \"departure\", \"stages\" or \"arrival\". Corresponding value is an object with following properties :\n * @param {String} [options.markersOpts.url] - marker base64 encoded url (ex \"data:image/png;base64,...\"\"). Mandatory for a custom marker\n * @param {Array} [options.markersOpts.offset] - Offsets in pixels used when positioning the overlay. The first element in the array is the horizontal offset. A positive value shifts the overlay right. The second element in the array is the vertical offset. A positive value shifts the overlay down. Default is [0, 0]. (see http://openlayers.org/en/latest/apidoc/ol.Overlay.html)\n * @param {Object} [options.layerDescription = {}] - Layer informations to be displayed in LayerSwitcher widget (only if a LayerSwitcher is also added to the map)\n * @param {String} [options.layerDescription.title = \"Itinéraire\"] - Layer title to be displayed in LayerSwitcher\n * @param {String} [options.layerDescription.description = \"Itinéraire basé sur un graphe\"] - Layer description to be displayed in LayerSwitcher\n * @fires route:drawstart\n * @fires route:drawend\n * @fires route:compute\n * @fires export:compute\n * @example\n * var route = ol.control.Route({\n * \"collapsed\" : true\n * \"draggable\" : true,\n * \"export\" : false,\n * \"exclusions\" : {\n * \"toll\" : true,\n * \"bridge\" : false,\n * \"tunnel\" : true\n * },\n * \"graphs\" : ['Pieton', 'Voiture'],\n * \"markersOpts\" : {\n * \"departure\" : {\n * \"url\" : \"...\",\n * \"offset\" : [0,0]\n * },\n * \"stages\" : {\n * \"url\" : \"...\",\n * \"offset\" : [0,0]\n * },\n * \"arrival\" : {\n * \"url\" : \"...\",\n * \"offset\" : [0,0]\n * }\n * }\n * \"autocompleteOptions\" : {},\n * \"routeOptions\" : {}\n * });\n *\n * // if you want to pluggued the control Export with options :\n * var route = new ol.control.Route({\n * export : {\n * name : \"export\",\n * format : \"geojson\",\n * title : \"Exporter\",\n * menu : false\n * }\n * });\n */\nvar Route = function (Control) {\n /**\n * See {@link ol.control.Route}\n * @module Route\n * @alias module:~Controls/Route\n * @param {*} options - options\n * @example\n * import Route from \"src/OpenLayers/Controls/Route\"\n */\n function Route(options) {\n options = options || {};\n if (!(this instanceof Route)) {\n throw new TypeError(\"ERROR CLASS_CONSTRUCTOR\");\n }\n\n // initialisation du composant\n this.initialize(options);\n\n // Widget main DOM container\n this._container = this._createMainContainerElement();\n this._containerElement = null;\n\n // on peut éventuellement encapsuler le composant dans une div passée par l'utilisateur\n if (options.element && options.element.appendChild) {\n // dans ce cas on stocke les deux container\n options.element.appendChild(this._container);\n this._containerElement = options.element;\n }\n\n // call ol.control.Control constructor\n Control.call(this, {\n element: this._containerElement || this._container,\n target: options.target,\n render: options.render\n });\n }\n\n // Inherits from ol.control.Control\n if (Control) Route.__proto__ = Control;\n\n /**\n * @lends module:Route\n */\n Route.prototype = Object.create(Control.prototype, {});\n\n // on récupère les méthodes de la classe commune RouteDOM\n _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign(Route.prototype, _Common_Controls_RouteDOM__WEBPACK_IMPORTED_MODULE_21__[\"default\"]);\n\n /**\n * Constructor (alias)\n * @private\n */\n Route.prototype.constructor = Route;\n\n /**\n * Overwrite OpenLayers setMap method\n *\n * @param {ol.Map} map - Map.\n */\n Route.prototype.setMap = function (map) {\n if (map) {\n // enrichissement du DOM du container\n this._container = this._initContainer(map);\n\n // ajout d'un bouton d'export\n if (this.options[\"export\"]) {\n var opts = _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign({\n control: this\n }, this.options[\"export\"]);\n this[\"export\"] = new _Export__WEBPACK_IMPORTED_MODULE_18__[\"default\"](opts);\n this[\"export\"].render();\n var self = this;\n this[\"export\"].on(\"export:compute\", function (e) {\n self.dispatchEvent({\n type: \"export:compute\",\n content: e.content\n });\n });\n }\n\n // mode \"draggable\"\n if (this.draggable) {\n _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_15__[\"default\"].dragElement(this._panelRouteContainer, this._panelHeaderRouteContainer, map.getTargetElement());\n }\n }\n\n // on appelle la méthode setMap originale d'OpenLayers\n Control.prototype.setMap.call(this, map);\n };\n\n // ################################################################### //\n // ##################### public methods ############################## //\n // ################################################################### //\n\n /**\n * Returns true if widget is collapsed (minimized), false otherwise\n *\n * @returns {Boolean} collapsed - true if widget is collapsed\n */\n Route.prototype.getCollapsed = function () {\n return this.collapsed;\n };\n\n /**\n * Collapse or display widget main container\n *\n * @param {Boolean} collapsed - True to collapse widget, False to display it\n */\n Route.prototype.setCollapsed = function (collapsed) {\n if (collapsed === undefined) {\n logger.log(\"[ERROR] Route:setCollapsed - missing collapsed parameter\");\n return;\n }\n if (collapsed && this.collapsed || !collapsed && !this.collapsed) {\n return;\n }\n if (collapsed) {\n document.getElementById(\"GProutePanelClose-\" + this._uid).click();\n } else {\n document.getElementById(\"GPshowRoute-\" + this._uid).click();\n }\n this.collapsed = collapsed;\n };\n\n /**\n * Get vector layer where geoJson route is drawn\n *\n * @returns {Object} layer - ol.layer.Vector route layer\n */\n Route.prototype.getLayer = function () {\n return this._geojsonSections;\n };\n\n /**\n * Set vector layer where route geometry is drawn\n *\n * @param {Object} layer - ol.layer.Vector route layer\n */\n Route.prototype.setLayer = function (layer) {\n if (!layer) {\n this._geojsonSections = null;\n return;\n }\n if (!(layer instanceof ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4___default.a)) {\n logger.log(\"no valid layer given for hosting drawn features.\");\n return;\n }\n\n // application des styles\n layer.setStyle(this._defaultFeatureStyle);\n // sauvegarde\n this._geojsonSections = layer;\n };\n\n /**\n * Get vector layer\n *\n * @returns {String} geojson - GeoJSON format layer\n */\n Route.prototype.getGeoJSON = function () {\n return JSON.stringify(this._geojsonObject);\n };\n\n /**\n * Set vector layer\n *\n * @param {String} geojson - GeoJSON format layer\n */\n Route.prototype.setGeoJSON = function (geojson) {\n try {\n this._geojsonObject = JSON.parse(geojson);\n } catch (e) {\n logger.log(\"no valid geojson given :\" + e.message);\n }\n };\n\n /**\n * Get route informations\n *\n * @returns {Object} data - route informations\n */\n Route.prototype.getData = function () {\n var points = [];\n for (var index = 0; index < this._currentPoints.length; index++) {\n var p = this._currentPoints[index];\n points.push(p.getCoordinate());\n }\n var data = {\n type: \"route\",\n points: points,\n transport: this._currentTransport,\n exclusions: this._currentExclusions,\n computation: this._currentComputation,\n results: {}\n };\n _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign(data.results, this._currentRouteInformations);\n return data;\n };\n\n /**\n * Set route data\n *\n * @param {Object} data - control informations\n * @param {String} data.transport - transport type\n * @param {String} data.computation - computation type\n * @param {Array} data.exclusions - list of exclusions\n * @param {Array} data.points - list of points : [[lon, lat]]\n * @param {Object} data.results - service response\n */\n Route.prototype.setData = function (data) {\n // INFO\n // transmettre toutes les informations necessaires pour reconstruire le panneau de resultats\n this._currentTransport = data.transport;\n this._currentComputation = data.computation;\n this._currentExclusions = data.exclusions;\n // INFO\n // nettoyer les points du calcul précedent\n for (var i = 0; i < this._currentPoints.length; i++) {\n var point = this._currentPoints[i];\n if (point.getCoordinate()) {\n // clean de l'objet sans declencher les evenements qui suppriment la couche précedente !\n // /!\\ point.clear()\n point.clearResults();\n // clean du dom\n var id = i + 1 + \"-\" + this._uid;\n document.getElementById(\"GPlocationOriginCoords_\" + id).value = \"\";\n document.getElementById(\"GPlocationOrigin_\" + id).value = \"\";\n document.getElementById(\"GPlocationPoint_\" + id).style.cssText = \"\";\n if (i > 0 && i < 6) {\n // on masque les points intermediaires\n document.getElementById(\"GPlocationPoint_\" + id).className = \"GPflexInput GPlocationStageFlexInputHidden\";\n }\n document.getElementById(\"GPlocationOriginPointer_\" + id).checked = false;\n document.getElementById(\"GPlocationOrigin_\" + id).className = \"GPlocationOriginVisible\";\n document.getElementById(\"GPlocationOriginCoords_\" + id).className = \"GPlocationOriginHidden\";\n }\n }\n // ajout des nouvelles coordonnnées\n for (var j = 0; j < data.points.length; j++) {\n var c = data.points[j];\n if (c) {\n this._currentPoints[j].setCoordinate(c, \"EPSG:4326\");\n }\n }\n this._currentRouteInformations = data.results;\n };\n\n /**\n * Get container\n *\n * @returns {DOMElement} container\n */\n Route.prototype.getContainer = function () {\n return this._container;\n };\n\n /**\n * Get default style\n *\n * @returns {ol.style} style\n */\n Route.prototype.getStyle = function () {\n return this._defaultFeatureStyle;\n };\n\n /**\n * This method is public.\n * It allows to init the control.\n */\n Route.prototype.init = function () {\n // INFO\n // reconstruire le panneau de resultats sans lancer de calcul\n // * construire la liste des points (cf. RouteDOM._createRoutePanelFormElement())\n // * construire les resultats\n\n // init points\n for (var index = 0; index < this._currentPoints.length; index++) {\n var point = this._currentPoints[index];\n var id = index + 1;\n var coordinate = point.getCoordinate();\n if (coordinate) {\n var input = document.getElementById(\"GPlocationOrigin_\" + id + \"-\" + this._uid);\n input.value = coordinate[1].toFixed(4) + \" / \" + coordinate[0].toFixed(4);\n if (index > 0 && index < 6) {\n document.getElementById(\"GPlocationPoint_\" + id + \"-\" + this._uid).className = \"GPflexInput GPlocationStageFlexInput\";\n }\n }\n }\n\n // add points into panel\n var points = document.getElementsByClassName(\"GPlocationPoint-\" + this._uid);\n this._addRouteResultsStagesValuesElement(points);\n\n // set transport mode\n var transportdiv;\n if (this._currentTransport === \"Pieton\") {\n transportdiv = document.getElementById(\"GProuteTransportPedestrian-\" + this._uid);\n if (transportdiv) {\n transportdiv.checked = \"true\";\n }\n } else {\n transportdiv = document.getElementById(\"GProuteTransportCar-\" + this._uid);\n if (transportdiv) {\n transportdiv.checked = \"true\";\n }\n }\n\n // set computation mode\n var computationdiv = document.getElementById(\"GProuteComputationSelect-\" + this._uid);\n if (computationdiv) {\n computationdiv.value = this._currentComputation;\n }\n\n // set exclusions\n var tollInput = document.getElementById(\"GProuteExclusionsToll-\" + this._uid);\n if (tollInput) {\n if (this._currentExclusions.indexOf(\"toll\") !== -1) {\n tollInput.checked = false;\n } else {\n tollInput.checked = true;\n }\n }\n var tunnelInput = document.getElementById(\"GProuteExclusionsTunnel-\" + this._uid);\n if (tunnelInput) {\n if (this._currentExclusions.indexOf(\"tunnel\") !== -1) {\n tunnelInput.checked = false;\n } else {\n tunnelInput.checked = true;\n }\n }\n var bridgeInput = document.getElementById(\"GProuteExclusionsBridge-\" + this._uid);\n if (bridgeInput) {\n if (this._currentExclusions.indexOf(\"bridge\") !== -1) {\n bridgeInput.checked = false;\n } else {\n bridgeInput.checked = true;\n }\n }\n var distance = this._currentRouteInformations.totalDistance;\n var duration = this._currentRouteInformations.totalTime;\n\n // Détails avec simplifications des troncons\n var instructions = this._simplifiedInstructions(this._currentRouteInformations.routeInstructions);\n if (instructions) {\n this._fillRouteResultsDetailsContainer(distance, duration, instructions);\n }\n\n // affichage du panneau de details du controle !\n this._formRouteContainer.className = \"GProuteComponentHidden\";\n this._hideWaitingContainer();\n this._resultsRouteContainer.className = \"\";\n };\n\n /**\n * Clean UI : reinit control\n */\n Route.prototype.clean = function () {\n this._currentTransport = null;\n this._currentExclusions = [];\n this._currentComputation = null;\n for (var i = 0; i < this._currentPoints.length; i++) {\n this._currentPoints[i].clear();\n }\n this._removeRouteStepLocations();\n this._clearRouteInputOptions();\n this._clearRouteResultsDetails();\n this.setLayer();\n this._formRouteContainer.className = \"\";\n this._resultsRouteContainer.className = \"GProuteComponentHidden\";\n };\n\n // ################################################################### //\n // ##################### init component ############################## //\n // ################################################################### //\n\n /**\n * Initialize route control (called by Route constructor)\n *\n * @param {Object} options - constructor options\n * @private\n */\n Route.prototype.initialize = function (options) {\n this._checkInputOptions(options);\n\n // set default options\n this.options = {\n collapsed: true,\n draggable: false,\n \"export\": false,\n graphs: [\"Voiture\", \"Pieton\"],\n exclusions: {\n toll: false,\n tunnel: false,\n bridge: false\n },\n routeOptions: {},\n autocompleteOptions: {},\n layerDescription: {\n title: \"Itinéraire\",\n description: \"Itinéraire basé sur un graphe\"\n }\n };\n\n // merge with user options\n _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign(this.options, options);\n\n // cas particulier des markers par défaut\n var defaultMarkersOpts = {\n departure: {\n url: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"][\"red\"],\n offset: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"].defaultOffset\n },\n stages: {\n url: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"][\"lightOrange\"],\n offset: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"].defaultOffset\n },\n arrival: {\n url: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"][\"darkOrange\"],\n offset: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"].defaultOffset\n }\n };\n // on récupère les options de chaque type de marker si spécifié\n this.options.markersOpts = _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign(defaultMarkersOpts, options.markersOpts);\n\n /** {Boolean} specify if Route control is collapsed (true) or not (false) */\n this.collapsed = this.options.collapsed;\n\n /** {Boolean} specify if Route control is draggable (true) or not (false) */\n this.draggable = this.options.draggable;\n this._uid = _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_13__[\"default\"].generate();\n\n // containers principaux\n this._panelRouteContainer = null;\n this._panelHeaderRouteContainer = null;\n this._waitingContainer = null;\n this._formRouteContainer = null;\n this._resultsRouteContainer = null;\n this._showRouteExclusionsElement = null;\n\n // liste de points selectionnée\n this._currentPoints = [];\n\n // Mode de transport selectionné : 'Voiture' ou 'Pieton'\n this._currentTransport = null;\n this._initTransport();\n\n // Mode de calcul selectionné : 'Plus rapide' ou 'plus court'\n this._currentComputation = null;\n this._initComputation();\n\n // Exclusions selectionnées : Tunnel, Toll et Bridge\n this._currentExclusions = [];\n this._initExclusions();\n\n // si un calcul est en cours ou non\n this._waiting = false;\n // timer pour cacher la patience après un certain temps\n this._timer = null;\n\n // la geometrie du parcours\n this._geojsonRoute = null;\n\n // la geometrie des troncons\n this._geojsonSections = null;\n\n // la geometrie des troncons au format GeoJSON\n this._geojsonObject = null;\n\n // bouton export\n this[\"export\"] = null;\n\n // le container de la popup (pour les troncons selectionnés)\n this._popupContent = null;\n this._popupDiv = this._initPopupDiv();\n // l'overlay ol.Overlay correspondant à la popup (pour les troncons selectionnés)\n this._popupOverlay = null;\n\n // ol.interaction.Select associées à la couche des résultats (troncons)\n this._resultsSelectInteraction = null;\n this._resultsHoverInteraction = null;\n\n // styles pour les sélections des features\n this._defaultFeatureStyle = new ol_style__WEBPACK_IMPORTED_MODULE_8__[\"Style\"]({\n stroke: new ol_style__WEBPACK_IMPORTED_MODULE_8__[\"Stroke\"]({\n color: \"rgba(0,183,152,0.9)\",\n width: 12\n })\n });\n this._selectedFeatureStyle = new ol_style__WEBPACK_IMPORTED_MODULE_8__[\"Style\"]({\n stroke: new ol_style__WEBPACK_IMPORTED_MODULE_8__[\"Stroke\"]({\n color: \"rgba(255,102,0,0.9)\",\n width: 12\n })\n });\n\n // reponse du service\n // Ex. {\n // totalTime, totalDistance, bbox, routeGeometry,\n // routeInstructions : [{duration, distance, code, instruction, bbox, geometry}]\n // }\n this._currentRouteInformations = null;\n\n // liste des ressources avec droits par service\n // Ex. {\n // \"Route\" : {\n // key : \"ger4g456re45er456t4er5ge5\",\n // resources : [\"Pieton\", \"Voiture\"]\n // }\n // }\n this._resources = {};\n\n // listener key for event on pointermove or moveend map\n this.listenerKey = null;\n };\n\n /**\n * this method is called by this.initialize()\n *\n * @param {Object} options - options\n *\n * @private\n */\n Route.prototype._checkInputOptions = function (options) {\n // vérification des options\n // mode de transport\n if (options.graphs) {\n // on ne permet pas de passer un tableau vide : on spécifie au moins un graph\n if (Array.isArray(options.graphs) && options.graphs.length) {\n for (var i = 0; i < options.graphs.length; i++) {\n if (typeof options.graphs[i] === \"string\") {\n if (options.graphs[i].toLowerCase() === \"pieton\") {\n options.graphs[i] = \"Pieton\";\n }\n if (options.graphs[i].toLowerCase() === \"voiture\") {\n options.graphs[i] = \"Voiture\";\n }\n } else {\n logger.log(\"[ol.control.Route] ERROR : parameter 'graphs' elements should be of type 'string'\");\n options.graphs[i] = null;\n }\n }\n } else {\n logger.warn(\"'graphs' parameter should be an array\");\n options.graphs = null;\n }\n }\n\n // collapsed\n if (options.collapsed === \"true\") {\n options.collapsed = true;\n }\n if (options.collapsed === \"false\") {\n options.collapsed = false;\n }\n };\n\n /**\n * initialize component container (DOM)\n *\n * @param {Object} map - the map\n *\n * @returns {DOMElement} DOM element\n *\n * @private\n */\n Route.prototype._initContainer = function (map) {\n var _this = this;\n // get main container\n var container = this._container;\n var inputShow = this._showRouteContainer = this._createShowRouteElement();\n container.appendChild(inputShow);\n\n // mode \"collapsed\"\n if (!this.collapsed) {\n inputShow.checked = true;\n }\n var picto = this._createShowRoutePictoElement();\n container.appendChild(picto);\n var routePanel = this._panelRouteContainer = this._createRoutePanelElement();\n\n // header form\n var routeHeader = this._panelHeaderRouteContainer = this._createRoutePanelHeaderElement();\n routePanel.appendChild(routeHeader);\n\n // form\n var routeForm = this._formRouteContainer = this._createRoutePanelFormElement();\n\n // form: menu des points\n var points = this._createRoutePanelFormPointsElement(map);\n for (var i = 0; i < points.length; i++) {\n routeForm.appendChild(points[i]);\n }\n\n // form: menu des modes\n var choice = this._createRoutePanelFormModeChoiceElement();\n choice.appendChild(this._createRoutePanelFormModeChoiceTransportElement(this.options.graphs));\n choice.appendChild(this._createRoutePanelFormModeChoiceComputeElement());\n routeForm.appendChild(choice);\n\n // form: menu des exclusions\n routeForm.appendChild(this._createShowRouteExclusionsElement());\n this._showRouteExclusionsElement = this._createShowRouteExclusionsPictoElement();\n routeForm.appendChild(this._showRouteExclusionsElement);\n var exclusion = this._createRoutePanelFormExclusionsElement();\n exclusion.appendChild(this._createRoutePanelFormExclusionOptionsElement(this.options.exclusions));\n routeForm.appendChild(exclusion);\n var divReset = this._createRouteFormResetElement();\n routeForm.appendChild(divReset);\n\n // form: bouton du calcul\n var submit = this._createRouteSubmitFormElement();\n routeForm.appendChild(submit);\n routePanel.appendChild(routeForm);\n\n // results\n var routeResults = this._resultsRouteContainer = this._createRoutePanelResultsElement();\n routePanel.appendChild(routeResults);\n\n // waiting\n var waiting = this._waitingContainer = this._createRouteWaitingElement();\n routePanel.appendChild(waiting);\n container.appendChild(routePanel);\n // hide autocomplete suggested locations on container click\n if (container.addEventListener) {\n container.addEventListener(\"click\", function (e) {\n return _this._hideRouteSuggestedLocations(e);\n });\n }\n return container;\n };\n\n // ################################################################### //\n // ####################### init application ########################## //\n // ################################################################### //\n\n /**\n * this method is called by the constructor and initialize transport mode\n * (\"Voiture\" ou \"Pieton\")\n *\n * @private\n */\n Route.prototype._initTransport = function () {\n // Mode de transport selectionné\n this._currentTransport = \"Voiture\"; // par defaut\n\n // par defaut\n var transport = this.options.graphs;\n if (!transport || transport.length === 0) {\n this.options.graphs = [\"Voiture\", \"Pieton\"];\n }\n\n // option\n if (Array.isArray(transport) && transport.length) {\n // FIXME pb si le 1er graphe n'est pas une ressource connue !\n if (transport[0] === \"Voiture\" || transport[0] === \"Pieton\") {\n this._currentTransport = transport[0];\n }\n }\n\n // TODO option sur le service\n var serviceOptions = this.options.routeOptions;\n if (serviceOptions.graph) {\n this._currentTransport = serviceOptions.graph;\n }\n };\n\n /**\n * this method is called by the constructor and initialize computation mode\n * (fastest or shortest)\n *\n * @private\n */\n Route.prototype._initComputation = function () {\n // Mode de calcul selectionné\n this._currentComputation = \"fastest\"; // par defaut\n\n // TODO option sur le service\n var serviceOptions = this.options.routeOptions;\n if (serviceOptions.routePreference) {\n this._currentComputation = serviceOptions.routePreference;\n }\n };\n\n /**\n * this method is called by the constructor and initialize exclusions\n *\n * @private\n */\n Route.prototype._initExclusions = function () {\n // Exclusions selectionnées : Tunnel, Toll et Bridge\n this._currentExclusions = []; // par defaut\n\n // par defaut\n var exclusion = this.options.exclusions;\n if (!exclusion || _typeof(exclusion) === \"object\" && Object.keys(exclusion).length === 0) {\n this.options.exclusions = {\n toll: false,\n tunnel: false,\n bridge: false\n };\n }\n\n // option\n if (exclusion && _typeof(exclusion) === \"object\" && Object.keys(exclusion).length) {\n for (var k in exclusion) {\n if (exclusion.hasOwnProperty(k)) {\n if (exclusion[k]) {\n this._currentExclusions.push(k);\n }\n }\n }\n }\n\n // TODO option sur le service\n var serviceOptions = this.options.routeOptions;\n if (Array.isArray(serviceOptions.exclusions)) {\n this._currentExclusions = serviceOptions.exclusions;\n }\n };\n\n /**\n * this method is called by this.initialize() and initialize popup div\n * (to display results information on route result click)\n *\n * @return {Object} element - DOM element for popup\n * @private\n */\n Route.prototype._initPopupDiv = function () {\n var context = this;\n var element = document.createElement(\"div\");\n element.className = \"gp-feature-info-div\";\n var closer = document.createElement(\"input\");\n closer.type = \"button\";\n closer.className = \"gp-styling-button closer\";\n // on closer click : remove popup\n closer.onclick = function () {\n if (context._popupOverlay != null) {\n context._popupOverlay.setPosition(undefined);\n }\n return false;\n };\n this._popupContent = document.createElement(\"div\");\n this._popupContent.className = \"gp-features-content-div\";\n element.appendChild(this._popupContent);\n element.appendChild(closer);\n return element;\n };\n\n // ################################################################### //\n // ############################## DOM ################################ //\n // ################################################################### //\n\n /**\n * Create List Points\n * Overwrite RouteDOM method !\n *\n * @param {Object} map - the map\n *\n * @returns {Array} List DOM element\n * @private\n */\n Route.prototype._createRoutePanelFormPointsElement = function (map) {\n var points = [];\n var count = 1;\n\n // point de depart\n var start = new _LocationSelector__WEBPACK_IMPORTED_MODULE_17__[\"default\"]({\n apiKey: this.options.apiKey || null,\n tag: {\n id: count,\n groupId: this._uid,\n markerOpts: this.options.markersOpts[\"departure\"],\n label: \"Départ\",\n display: true\n },\n autocompleteOptions: this.options.autocompleteOptions || null\n });\n start.setMap(map);\n // on ajoute des écouteurs d'évènements (en plus de ceux de LocationSelector),\n // pour prendre en compte les CSS spécifiques de GProuteForm\n this._addFormPointsEventListeners(start);\n points.push(start._container);\n this._currentPoints.push(start);\n\n // points intermediaires\n for (count = 2; count < 7; count++) {\n var step = new _LocationSelector__WEBPACK_IMPORTED_MODULE_17__[\"default\"]({\n apiKey: this.options.apiKey || null,\n tag: {\n id: count,\n groupId: this._uid,\n label: \"Etape\",\n markerOpts: this.options.markersOpts[\"stages\"],\n display: false,\n removeOption: true\n },\n autocompleteOptions: this.options.autocompleteOptions || null\n });\n step.setMap(map);\n this._addFormPointsEventListeners(step);\n points.push(step._container);\n this._currentPoints.push(step);\n }\n\n // point d'arrivée\n var end = new _LocationSelector__WEBPACK_IMPORTED_MODULE_17__[\"default\"]({\n apiKey: this.options.apiKey || null,\n tag: {\n id: count,\n groupId: this._uid,\n markerOpts: this.options.markersOpts[\"arrival\"],\n label: \"Arrivée\",\n display: true,\n addOption: true\n },\n autocompleteOptions: this.options.autocompleteOptions || null\n });\n end.setMap(map);\n this._addFormPointsEventListeners(end);\n points.push(end._container);\n this._currentPoints.push(end);\n return points;\n };\n\n /**\n * Attach events listeners to route form points (locationSelector)\n *\n * @param {Object} formPoint - route form point (locationSelector)\n * @private\n */\n Route.prototype._addFormPointsEventListeners = function (formPoint) {\n var _this2 = this;\n if (!formPoint) {\n return;\n }\n if (formPoint._inputLabelContainer.addEventListener) {\n // display form on origin label click\n formPoint._inputLabelContainer.addEventListener(\"click\", function (e) {\n return _this2.onRouteOriginLabelClick(e);\n });\n // minimize form on input show pointer, and set map event listeners (see this.onRouteOriginPointerClick)\n formPoint._inputShowPointer.addEventListener(\"click\", function (e) {\n return _this2.onRouteOriginPointerClick(e, formPoint);\n });\n if (formPoint._removePointElement) {\n formPoint._removePointElement.addEventListener(\"click\", function (e) {\n logger.trace(\"click on _removePointElement\", e);\n // Moving up exclusions picto\n // var exclusionsPictoTop = context._showRouteExclusionsElement.style.top;\n // context._showRouteExclusionsElement.style.top = (parseInt(exclusionsPictoTop, 10) - 33).toString() + \"px\";\n });\n }\n if (formPoint._addPointElement) {\n formPoint._addPointElement.addEventListener(\"click\", function (e) {\n logger.trace(\"click on _addPointElement\", e);\n // Moving down exclusions picto\n // var exclusionsPictoTop = context._showRouteExclusionsElement.style.top;\n // context._showRouteExclusionsElement.style.top = (parseInt(exclusionsPictoTop, 10) + 33).toString() + \"px\";\n });\n }\n } else if (formPoint._inputLabelContainer.attachEvent) {\n // attachEvent: Internet explorer event listeners management\n formPoint._inputLabelContainer.attachEvent(\"onclick\", function (e) {\n return _this2.onRouteOriginLabelClick(e);\n });\n formPoint._inputShowPointer.attachEvent(\"onclick\", function (e) {\n return _this2.onRouteOriginPointerClick(e, formPoint);\n });\n if (formPoint._removePointElement) {\n formPoint._removePointElement.attachEvent(\"onclick\", function (e) {\n // Moving up exclusions picto\n // var exclusionsPictoTop = context._showRouteExclusionsElement.style.top;\n // context._showRouteExclusionsElement.style.top = (parseInt(exclusionsPictoTop, 10) - 33).toString() + \"px\";\n });\n }\n if (formPoint._addPointElement) {\n formPoint._addPointElement.attachEvent(\"onclick\", function (e) {\n // Moving down exclusions picto\n // var exclusionsPictoTop = context._showRouteExclusionsElement.style.top;\n // context._showRouteExclusionsElement.style.top = (parseInt(exclusionsPictoTop, 10) + 33).toString() + \"px\";\n });\n }\n }\n };\n\n // ################################################################### //\n // ####################### handlers events to dom #################### //\n // ################################################################### //\n\n /**\n * this method is called by event 'submit' on 'GProuteForm' tag form\n * (cf. this._createRoutePanelFormElement), and it displays the results.\n *\n * @param {Object} options - options\n * @private\n */\n Route.prototype.onRouteComputationSubmit = function (options) {\n logger.log(\"onRouteComputationSubmit\", options);\n\n // FIXME on lance une requête en EPSG:4326, les coordonnées\n // doivent donc être du type cad en lat/lon.\n // or, BUG du service du calcul d'itineraire car les\n // coordonnées envoyées doivent être en lon/lat avec une SRS en EPSG:4326 !?\n // sinon, ça plante...\n\n // Liste des points\n var points = this._currentPoints;\n\n // - point de depart (info: points[0].getCoordinate est du type [lon, lat], en EPSG:4326)\n var start;\n if (points[0] && points[0].getCoordinate) {\n var startCoordinate = points[0].getCoordinate();\n start = {\n x: startCoordinate[0],\n y: startCoordinate[1]\n };\n logger.log(\"start\", start);\n }\n\n // - point d'arrivée\n var end;\n var endPoint = points[points.length - 1];\n if (endPoint && endPoint.getCoordinate) {\n var endCoordinate = endPoint.getCoordinate();\n end = {\n x: endCoordinate[0],\n y: endCoordinate[1]\n };\n logger.log(\"end\", end);\n }\n\n // - les étapes\n var step = [];\n for (var i = 1; i < points.length - 1; i++) {\n if (points[i] && points[i].getCoordinate) {\n var iCoordinate = points[i].getCoordinate();\n if (iCoordinate) {\n var coordinate = {\n x: iCoordinate[0],\n y: iCoordinate[1]\n };\n logger.log(\"step\", coordinate);\n step.push(coordinate);\n }\n }\n }\n\n // valeurs selectionnées\n this._currentTransport = options.transport;\n this._currentComputation = options.computation;\n this._currentExclusions = options.exclusions;\n\n // on recupere les éventuelles options du service passées par l'utilisateur\n var routeOptions = this.options.routeOptions;\n\n // gestion du protocole et du timeout\n // le timeout est indispensable sur le protocole JSONP.\n var _protocol = routeOptions.protocol || \"XHR\";\n var _timeout = routeOptions.timeOut || 0;\n if (_protocol === \"JSONP\" && _timeout === 0) {\n // FIXME le timeout est obligatoire pour ce type de protocole...\n _timeout = 15000;\n }\n\n // gestion des callback\n var bOnFailure = !!(routeOptions.onFailure !== null && typeof routeOptions.onFailure === \"function\"); // cast variable to boolean\n var bOnSuccess = !!(routeOptions.onSuccess !== null && typeof routeOptions.onSuccess === \"function\");\n\n // on met en place l'affichage des resultats dans la fenetre de resultats.\n var context = this;\n this._requestRouting({\n startPoint: start,\n endPoint: end,\n viaPoints: step,\n graph: routeOptions.graph || this._currentTransport,\n routePreference: routeOptions.routePreference || this._currentComputation,\n exclusions: routeOptions.exclusions || this._currentExclusions,\n geometryInInstructions: true,\n distanceUnit: \"m\",\n timeOut: _timeout,\n protocol: _protocol,\n resource: routeOptions.resource,\n // callback onSuccess\n onSuccess: function onSuccess(results) {\n logger.log(results);\n if (results) {\n context._fillRouteResultsDetails(results);\n }\n if (bOnSuccess) {\n routeOptions.onSuccess.call(context, results);\n }\n },\n // callback onFailure\n onFailure: function onFailure(error) {\n context._hideWaitingContainer();\n context._clearRouteResultsDetails();\n logger.log(error.message);\n if (bOnFailure) {\n routeOptions.onFailure.call(context, error);\n }\n }\n });\n };\n\n /**\n * this method is called by event 'click' on 'GPlocationOriginLabel' label\n * and set 'GProuteForm' CSS class to \"\" (normal)\n *\n * @param {Object} routeControl - context : route Control (this)\n * @private\n */\n Route.prototype.onRouteOriginLabelClick = function () {\n this._formRouteContainer.className = \"\";\n // on désactive l'écouteur d'événements sur la carte (pour ne pas placer un marker au clic)\n // map.un(\n // \"click\",\n // () => {\n // // on ne rétablit pas le mode \"normal\" si on est dans le panel des résultats (où className = \"GProuteComponentHidden\")\n // if (this._formRouteContainer.className === \"GProuteFormMini\") {\n // this._formRouteContainer.className = \"\";\n // }\n // }\n // );\n Object(ol_Observable__WEBPACK_IMPORTED_MODULE_2__[\"unByKey\"])(this.listenerKey);\n this.dispatchEvent(\"route:drawend\");\n };\n\n /**\n * this method is called by event 'click' on 'GPlocationOriginPointerImg' label\n * and display or minimize 'GProuteForm', using CSS class (\"GProuteFormMini\" or \"\")\n *\n * @param {Object} e - context : route Control (equivalent to this)\n * @param {Object} locationSelector - context : locationSelector input (one of this._currentPoints)\n * @private\n */\n Route.prototype.onRouteOriginPointerClick = function (e, locationSelector) {\n var _this3 = this;\n var map = this.getMap();\n if (locationSelector._inputShowPointerContainer.checked) {\n // au click sur l'input pour pointer sur la carte: on minimise le formulaire\n this._formRouteContainer.className = \"GProuteFormMini\";\n // et au clic sur la carte, on réaffichera le formulaire \"normal\"\n this.listenerKey = map.on(\"click\", function () {\n // on ne rétablit pas le mode \"normal\" si on est dans le panel des résultats (où className = \"GProuteComponentHidden\")\n if (_this3._formRouteContainer.className === \"GProuteFormMini\") {\n _this3._formRouteContainer.className = \"\";\n }\n Object(ol_Observable__WEBPACK_IMPORTED_MODULE_2__[\"unByKey\"])(_this3.listenerKey);\n /**\n * event triggered at the end of drawing input\n *\n * @event route:drawend\n */\n _this3.dispatchEvent(\"route:drawend\");\n });\n /**\n * event triggered at the start of drawing input\n *\n * @event route:drawstart\n */\n this.dispatchEvent(\"route:drawstart\");\n } else {\n // si on déselectionne le pointer, on rétablit le formulaire en mode normal\n this._formRouteContainer.className = \"\";\n // et on enlève l'écouteur d'évènement sur la carte\n // map.un(\n // \"click\",\n // () => {\n // // on ne rétablit pas le mode \"normal\" si on est dans le panel des résultats (où className = \"GProuteComponentHidden\")\n // if (this._formRouteContainer.className === \"GProuteFormMini\") {\n // this._formRouteContainer.className = \"\";\n // }\n // }\n // );\n Object(ol_Observable__WEBPACK_IMPORTED_MODULE_2__[\"unByKey\"])(this.listenerKey);\n this.dispatchEvent(\"route:drawend\");\n }\n };\n\n /**\n * this method is called by event 'click' on 'GPshowRoutePicto'\n * tag label (cf. this._createShowRoutePictoElement),\n * and it cleans all value of input.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onShowRoutePanelClick = function (e) {\n var map = this.getMap();\n // on supprime toutes les interactions\n _Utils_Interactions__WEBPACK_IMPORTED_MODULE_16__[\"default\"].unset(map);\n // clean !\n if (!this._geojsonSections && !this._waiting) {\n this._clear();\n }\n this.collapsed = document.getElementById(\"GPshowRoute-\" + this._uid).checked;\n // on génère nous même l'evenement OpenLayers de changement de pté\n // (utiliser ol.control.Route.on(\"change:collapsed\", function ) pour s'abonner à cet évènement)\n this.dispatchEvent(\"change:collapsed\");\n };\n\n /**\n * this method is called by event 'change' on 'GProuteComputationSelect' tag select\n * (cf. this._createRoutePanelFormModeChoiceComputeElement).\n * this value is saved as a parameter for the service route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteModeComputationChange = function (e) {\n var idx = e.target.selectedIndex;\n var value = e.target.options[idx].value;\n if (!value) {\n return;\n }\n logger.log(value);\n this._currentComputation = value;\n };\n\n /**\n * this method is called by event 'change' on 'GProuteResultsComputationSelect' tag select\n * (cf. this._createRouteResultsElement).\n * this value is saved as a parameter for the service route,\n * and this launches the route request !\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteModeComputationChangeAndRun = function (e) {\n // event choice computation\n this.onRouteModeComputationChange(e);\n\n // clean avant un nouveau calcul !\n this._clearRouteResultsDetails();\n this._clearRouteResultsGeometry();\n this._clearRouteResultsFeatureGeometry();\n\n // submit request\n this.onRouteComputationSubmit({\n computation: this._currentComputation,\n transport: this._currentTransport,\n exclusions: this._currentExclusions\n });\n };\n\n /**\n * this method is called by event 'change' on 'GProuteTransportCar' or 'GProuteTransportPedestrian' tag input\n * (cf. this._createRoutePanelFormModeChoiceTransportElement).\n * this value is saved as a parameter for the service route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteModeTransportChange = function (e) {\n var value = e.target.value;\n if (!value) {\n return;\n }\n this._currentTransport = value;\n };\n\n /**\n * TODO this method is called by event 'click' on 'GPshowRouteExclusionsPicto' tag input\n * (cf. this._createShowRouteExclusionsPictoElement), and it displays the panel options of exclusions.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onShowRouteExclusionsClick = function (e) {\n logger.log(\"onShowRouteExclusionsClick\", e);\n // FIXME not use ?!\n };\n\n /**\n * this method is called by event 'change' on 'GProuteExclusionsToll'\n * or 'GProuteExclusionsTunnel' or 'GProuteExclusionsBridge' tag input\n * (cf. this._createRoutePanelFormExclusionOptionsElement).\n * this value is saved as a parameter for the service route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteExclusionsChange = function (e) {\n var value = e.target.value;\n var checked = e.target.checked;\n if (!value || typeof value !== \"string\") {\n return;\n }\n value = value.toLowerCase();\n var bFound = false;\n var iFound = null;\n for (var i = 0; i < this._currentExclusions.length; i++) {\n if (this._currentExclusions[i] === value) {\n iFound = i;\n bFound = true;\n }\n }\n // on l'ajoute si la valeur n'existe pas et est déselectionnée\n // info : checked = passage autorisé (ce n'est pas une exclusion)\n if (!bFound && !checked) {\n this._currentExclusions.push(value);\n }\n // on la retire si la valeur existe et est selectionnée\n if (bFound && checked) {\n this._currentExclusions.splice(iFound, 1);\n }\n };\n\n /**\n * this method is called by event 'click' on 'GProuteReset'\n * tag label (cf. this._createRouteFormResetElement),\n * and it cleans all route input options and results.\n *\n * @private\n */\n Route.prototype.onRouteResetClick = function () {\n // clear points\n var currentPoints = this._currentPoints;\n for (var i = 0; i < currentPoints.length; i++) {\n currentPoints[i].clear();\n }\n\n // clear results\n this._clear();\n this._clearRouteInputOptions();\n };\n\n /**\n * this method is called by event 'click' on 'GProuteSubmit'\n * tag label (cf. this._createRouteSubmitFormElement),\n * and it cleans the route geometry.\n *\n * @private\n */\n Route.prototype.onShowRouteResultsNewClick = function () {\n // clean avant un nouveau calcul !\n this._clearRouteResultsDetails();\n this._clearRouteResultsGeometry();\n this._clearRouteResultsFeatureGeometry();\n };\n\n /**\n * this method is called by event 'mouseover' on 'GProuteResultsDetailsInstruction_'\n * tag label (cf. this._addRouteResultsDetailsElement),\n * and it makes a style on feature route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteResultsDetailsMouseOver = function (e) {\n // récupération de l'id de l'instruction survolée\n var tagid = e.target.id; // ex GProuteResultsDetailsInstruction_125\n var idx = tagid.substring(tagid.indexOf(\"_\") + 1); // ex. 125\n\n // on passe le texte en gras\n if (e.target.classList) {\n e.target.classList.add(\"GProuteResultsDetailsInstructionHighlight\");\n }\n if (!this._geojsonSections) {\n return;\n }\n\n // on récupère l'entité correspondante à l'instruction survolée\n var f = this._geojsonSections.getSource().getFeatureById(parseInt(idx, 10));\n // et on lui affecte un nouveau style\n f.setStyle(this._selectedFeatureStyle);\n };\n\n /**\n * this method is called by event 'mouseout' on 'GProuteResultsDetailsInstruction_'\n * tag label (cf. this._addRouteResultsDetailsElement),\n * and it deletes a style on feature route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteResultsDetailsMouseOut = function (e) {\n // récupération de l'id de l'instruction survolée\n var tagid = e.target.id; // ex GProuteResultsDetailsInstruction_125\n var idx = tagid.substring(tagid.indexOf(\"_\") + 1); // ex. 125\n\n // on repasse le texte en style normal\n if (e.target.classList) {\n e.target.classList.remove(\"GProuteResultsDetailsInstructionHighlight\");\n }\n if (!this._geojsonSections) {\n return;\n }\n // on récupère l'entité correspondante à l'instruction qui était survolée\n var f = this._geojsonSections.getSource().getFeatureById(parseInt(idx, 10));\n // et on lui réaffecte un style normal\n f.setStyle(null);\n };\n\n // ################################################################### //\n // ########################### Routing ############################### //\n // ############## (methods to request and results) ################### //\n\n /**\n * this method is called by this.onRouteComputationSubmit()\n * and executes a request to the service.\n *\n * @param {Object} options - route service request options\n * @param {Function} options.onSuccess - callback\n * @param {Function} options.onFailure - callback\n * @private\n */\n Route.prototype._requestRouting = function (options) {\n // on ne fait pas de requête si on n'a pas renseigné de parametres !\n if (!options || _typeof(options) === \"object\" && Object.keys(options).length === 0) {\n return;\n }\n\n // on ne fait pas de requête si\n // - la parametre 'startPoint' est vide !\n if (!options.startPoint) {\n return;\n }\n // - la parametre 'endPoint' est vide !\n if (!options.endPoint) {\n return;\n }\n\n // cas où la clef API n'est pas renseignée dans les options du service,\n // on utilise celle renseignée au niveau du controle (calcul par défaut)\n options.apiKey = this.options.routeOptions.apiKey || this.options.apiKey;\n\n // si l'utilisateur a spécifié le paramètre ssl au niveau du control, on s'en sert\n // true par défaut (https)\n if (typeof options.ssl !== \"boolean\") {\n if (typeof this.options.ssl === \"boolean\") {\n options.ssl = this.options.ssl;\n } else {\n options.ssl = true;\n }\n }\n logger.log(options);\n\n // mise en place de la patience\n this._displayWaitingContainer();\n\n // appel du service de calcul d'itinéraires\n geoportal_access_lib__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Services.route(options);\n };\n\n /**\n * this method is called by this.onRouteComputationSubmit() (in case of route computation success)\n * and fills the container of the route instructions list, distance and time\n * information, also, constructs the geometry route.\n *\n * @param {Object} results - results of the route calculation\n *\n * @private\n */\n Route.prototype._fillRouteResultsDetails = function (results) {\n // 1. Affichage des distances et durées\n var distance = results.totalDistance;\n var duration = results.totalTime;\n // Détails avec simplifications des troncons\n var instructions = this._simplifiedInstructions(results.routeInstructions);\n // var instructions = results.routeInstructions;\n\n if (instructions) {\n this._fillRouteResultsDetailsContainer(distance, duration, instructions);\n }\n\n // 2. Affichage des géométries\n // Geometrie simplifiée (si renseignée)\n var geometry = results.routeGeometry;\n if (geometry) {\n this._fillRouteResultsDetailsGeometry(geometry, this._defaultFeatureStyle);\n }\n\n // Geometries des tronçon (si renseignée)\n if (instructions && instructions[0].geometry) {\n this._fillRouteResultsDetailsFeatureGeometry(instructions, this._defaultFeatureStyle);\n }\n\n // 3. Zoom sur l'emprise de l'itinéraire (si spécifiée)\n var bbox = results.bbox;\n if (bbox) {\n var map = this.getMap();\n var bounds = [bbox.left, bbox.bottom, bbox.right, bbox.top];\n // reprojection dans la projection de la carte (bbox initialement en EPSG:4326)\n var mapProj = map.getView().getProjection().getCode();\n if (mapProj !== \"EPSG:4326\") {\n bounds = Object(ol_proj__WEBPACK_IMPORTED_MODULE_9__[\"transformExtent\"])(bounds, \"EPSG:4326\", mapProj);\n }\n map.getView().fit(bounds, map.getSize());\n }\n\n // sauvegarde de l'etat des resultats\n this._currentRouteInformations = results;\n\n /**\n * event triggered when the compute is finished\n *\n * @event route:compute\n * @property {Object} type - event\n * @property {Object} target - instance Route\n * @example\n * Route.on(\"route:compute\", function (e) {\n * console.log(e.target.getData());\n * })\n */\n this.dispatchEvent({\n type: \"route:compute\"\n });\n\n // mise à jour du controle !\n this._formRouteContainer.className = \"GProuteComponentHidden\";\n this._hideWaitingContainer();\n this._resultsRouteContainer.className = \"\";\n };\n\n /**\n * this method is called by this._fillRouteResultsDetails()\n * and fills the container of the route instructions list, distance and time\n * information.\n *\n * @param {Number} distance - distance\n * @param {Number} duration - duration\n * @param {Object[]} instructions - list of instructions\n *\n * @private\n */\n Route.prototype._fillRouteResultsDetailsContainer = function (distance, duration, instructions) {\n // Distance et Durée\n this._resultsRouteValuesContainer = this._addRouteResultsValuesElement(distance, duration, this._convertSecondsToTime);\n\n // Détails\n this._resultsRouteDetailsContainer = this._addRouteResultsDetailsElement(instructions, this._convertSecondsToTime);\n };\n\n /**\n * this method is called by this._fillRouteResultsDetails()\n * and constructs the geometry route.\n *\n * @param {Object} geometry - geoJSON object for route geometry\n * @param {Object} style - route ol.style.Style object\n * @private\n */\n Route.prototype._fillRouteResultsDetailsGeometry = function (geometry, style) {\n this._clearRouteResultsGeometry();\n var map = this.getMap();\n if (!geometry) {\n return;\n }\n\n // création de l'objet geoJSON\n var geojsonObject = {\n type: \"FeatureCollection\",\n features: [{\n type: \"Feature\",\n crs: {\n type: \"name\",\n properties: {\n name: \"EPSG:4326\"\n }\n },\n geometry: geometry\n }]\n };\n var geojsonformat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_20__[\"default\"]({\n defaultDataProjection: \"EPSG:4326\",\n defaultStyle: style\n });\n var features = geojsonformat.readFeatures(geojsonObject, {\n dataProjection: \"EPSG:4326\",\n featureProjection: \"EPSG:3857\"\n });\n\n // ajout de la géométrie comme nouvelle couche vecteur à la carte\n this._geojsonRoute = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4___default.a({\n source: new ol_source_Vector__WEBPACK_IMPORTED_MODULE_5___default.a({\n features: features\n }),\n style: style\n });\n map.addLayer(this._geojsonRoute);\n };\n\n /**\n * this method is called by this._fillRouteResultsDetails()\n * and constructs the geometries street with informations.\n *\n * @param {Array} instructions - route instructions list (containing geoJSON geometry)\n * @param {Object} style - route ol.style.Style object\n * @private\n */\n Route.prototype._fillRouteResultsDetailsFeatureGeometry = function (instructions, style) {\n var _this4 = this;\n this._clearRouteResultsFeatureGeometry();\n var map = this.getMap();\n\n // 1. création de l'objet geoJSON\n this._geojsonObject = {\n type: \"FeatureCollection\",\n crs: {\n type: \"name\",\n properties: {\n name: \"EPSG:4326\"\n }\n },\n features: []\n };\n\n // 2. Remplissage de l'objet geoJSON : ajout des géométries de chaque instruction\n for (var i = 0; i < instructions.length; i++) {\n var o = instructions[i];\n var id = i + 1;\n var coords = o.geometry.coordinates;\n for (var j = 0; j < coords.length; j++) {\n // remarque : les coordonnées sont au format string, à convertir en nombres\n if (typeof coords[j][0] === \"string\") {\n coords[j][0] = parseFloat(coords[j][0]);\n coords[j][1] = parseFloat(coords[j][1]);\n }\n }\n this._geojsonObject.features.push({\n type: \"Feature\",\n geometry: o.geometry,\n properties: {\n popupContent: \"(\" + id + \") distance : \" + this._convertDistance(o.distance) + \" / temps : \" + this._convertSecondsToTime(o.duration)\n },\n id: id\n });\n }\n\n // Ajout du point de depart du tracé\n this._geojsonObject.features.push({\n type: \"Feature\",\n geometry: {\n type: \"Point\",\n coordinates: this._currentPoints[0].getCoordinate()\n },\n properties: {\n description: \"Point de départ\",\n \"marker-symbol\": this.options.markersOpts.departure.url\n }\n });\n\n // Ajout des points d'étapes\n for (var k = 1; k < this._currentPoints.length - 1; k++) {\n if (this._currentPoints[k] && this._currentPoints[k].getCoordinate) {\n var coordinates = this._currentPoints[k].getCoordinate();\n if (coordinates) {\n this._geojsonObject.features.push({\n type: \"Feature\",\n geometry: {\n type: \"Point\",\n coordinates: coordinates\n },\n properties: {\n description: \"Point d'étape\",\n \"marker-symbol\": this.options.markersOpts.stages.url\n }\n });\n }\n }\n }\n\n // Ajout du point d'arrivée du tracé\n this._geojsonObject.features.push({\n type: \"Feature\",\n geometry: {\n type: \"Point\",\n coordinates: this._currentPoints[this._currentPoints.length - 1].getCoordinate()\n },\n properties: {\n description: \"Point d'arrivée\",\n \"marker-symbol\": this.options.markersOpts.arrival.url\n }\n });\n\n // Création du format GeoJSON, avec reprojection des géométries\n var geojsonformat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_20__[\"default\"]({\n defaultDataProjection: \"EPSG:4326\",\n defaultStyle: style\n });\n var mapProj = this.getMap().getView().getProjection().getCode();\n var features = geojsonformat.readFeatures(this._geojsonObject, {\n dataProjection: \"EPSG:4326\",\n featureProjection: mapProj\n });\n\n // 3. Ajout du tracé de l'itinéraire (geoJSON) comme nouvelle couche vecteur à la carte\n this._geojsonSections = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4___default.a({\n source: new ol_source_Vector__WEBPACK_IMPORTED_MODULE_5___default.a({\n features: features\n }),\n style: style,\n opacity: 0.9\n });\n var graph;\n if (this._currentTransport === \"Pieton\") {\n graph = \"piéton\";\n this._geojsonSections.gpResultLayerId = \"Pieton$OGC:OPENLS;Itineraire\";\n } else {\n graph = \"voiture\";\n this._geojsonSections.gpResultLayerId = \"Voiture$OGC:OPENLS;Itineraire\";\n }\n // ajout à la carte\n map.addLayer(this._geojsonSections);\n\n // 4. Si un layer switcher est présent dans la carte, on lui affecte des informations pour cette couche\n map.getControls().forEach(function (control) {\n if (control instanceof _LayerSwitcher__WEBPACK_IMPORTED_MODULE_19__[\"default\"]) {\n // un layer switcher est présent dans la carte\n var layerId = _this4._geojsonSections.gpLayerId;\n // on n'ajoute des informations que s'il n'y en a pas déjà (si le titre est le numéro par défaut)\n if (control._layers[layerId].title === layerId) {\n control.addLayer(_this4._geojsonSections, {\n title: _this4.options.layerDescription.title + \" (\" + graph + \")\",\n description: _this4.options.layerDescription.description\n });\n }\n }\n }, this);\n\n // 5. Ajout de popups aux troncons\n // Création de l'interaction : survol des features (=troncons de l'itinéraire)\n this._resultsHoverInteraction = new ol_interaction__WEBPACK_IMPORTED_MODULE_7__[\"Select\"]({\n condition: ol_events_condition__WEBPACK_IMPORTED_MODULE_6__[\"pointerMove\"],\n layers: [this._geojsonSections],\n style: this._selectedFeatureStyle\n });\n this._resultsHoverInteraction.on(\"select\", function (e) {\n return _this4._onResultsFeatureMouseOver(e);\n });\n map.addInteraction(this._resultsHoverInteraction);\n\n // Création de l'interaction : selection des features (=troncons de l'itinéraire)\n this._resultsSelectInteraction = new ol_interaction__WEBPACK_IMPORTED_MODULE_7__[\"Select\"]({\n layers: [this._geojsonSections],\n style: this._selectedFeatureStyle\n });\n this._resultsSelectInteraction.on(\"select\", function (e) {\n return _this4._onResultsFeatureSelect(e);\n });\n map.addInteraction(this._resultsSelectInteraction);\n };\n\n /**\n * this method is called on route features hover\n * and highlight instruction label\n *\n * @param {Object} e - event\n *\n * @private\n */\n Route.prototype._onResultsFeatureMouseOver = function (e) {\n if (e.selected.length !== 0) {\n // si on a bien survolé un tronçon, on surligne l'instruction correspondante\n var f = e.selected[0];\n var selectedInstruction = document.getElementById(\"GProuteResultsDetailsInstruction_\" + f.getId() + \"-\" + this._uid);\n if (selectedInstruction && selectedInstruction.classList) {\n selectedInstruction.classList.add(\"GProuteResultsDetailsInstructionHighlight\");\n }\n }\n\n // si on déselectionne un tronçon (mouseout), on rétablit un style normal pour l'instruction\n if (e.deselected.length !== 0) {\n var deselectedFeature = e.deselected[0];\n // on repasse l'instruction correspondante en normal\n var deSelectedInstruction = document.getElementById(\"GProuteResultsDetailsInstruction_\" + deselectedFeature.getId() + \"-\" + this._uid);\n if (deSelectedInstruction && deSelectedInstruction.classList) {\n deSelectedInstruction.classList.remove(\"GProuteResultsDetailsInstructionHighlight\");\n }\n }\n };\n\n /**\n * this method is called on route features select\n * and set a popup with feature information\n *\n * @param {Object} e - on select event\n * @private\n */\n Route.prototype._onResultsFeatureSelect = function (e) {\n var map = this.getMap();\n if (e.selected.length !== 0) {\n // si on a sélectionné un troncon, on lui ajoute une popup\n var f = e.selected[0];\n this._popupContent.innerHTML = f.getProperties().popupContent;\n if (!this._popupOverlay) {\n // ajout de la popup a la carte comme un overlay\n this._popupOverlay = new ol_Overlay__WEBPACK_IMPORTED_MODULE_3___default.a({\n element: this._popupDiv,\n positioning: \"bottom-center\",\n position: e.mapBrowserEvent.coordinate\n });\n map.addOverlay(this._popupOverlay);\n } else {\n // si l'overlay est déjà créé, on modifie juste sa position\n this._popupOverlay.setPosition(e.mapBrowserEvent.coordinate);\n }\n } else {\n // si aucun troncon n'est sélectionné (click à côté du tracé),\n // on fait disparaitre la popup si elle existe\n if (this._popupOverlay != null) {\n this._popupOverlay.setPosition(undefined);\n }\n }\n };\n\n // ################################################################### //\n // ############################# Clean ############################### //\n // ################################################################### //\n\n /**\n * this method is called by this.onShowRoutePanelClick()\n * and it clears all elements (reinit).\n *\n * @private\n */\n Route.prototype._clear = function () {\n this._currentTransport = null;\n this._currentExclusions = [];\n this._currentComputation = null;\n\n // les resultats\n this._clearRouteResultsDetails();\n // la geometrie\n this._clearRouteResultsGeometry();\n this._clearRouteResultsFeatureGeometry();\n // les points\n for (var i = 0; i < this._currentPoints.length; i++) {\n this._currentPoints[i].clear();\n }\n // suppression des points intermédiaires\n this._removeRouteStepLocations();\n };\n\n /**\n * this method is called by this.onRouteResetClick()\n * and it clears all options inputs (reinit).\n *\n * @private\n */\n Route.prototype._clearRouteInputOptions = function () {\n // reinit options to default\n this._initTransport();\n this._initComputation();\n this._initExclusions();\n\n // set transport mode to default\n var transportdiv;\n if (this._currentTransport === \"Pieton\") {\n transportdiv = document.getElementById(\"GProuteTransportPedestrian-\" + this._uid);\n if (transportdiv) {\n transportdiv.checked = \"true\";\n }\n } else {\n transportdiv = document.getElementById(\"GProuteTransportCar-\" + this._uid);\n if (transportdiv) {\n transportdiv.checked = \"true\";\n }\n }\n\n // set computation mode to default\n var computationdiv = document.getElementById(\"GProuteComputationSelect-\" + this._uid);\n if (computationdiv) {\n computationdiv.value = this._currentComputation;\n }\n\n // set exclusions to default\n var tollInput = document.getElementById(\"GProuteExclusionsToll-\" + this._uid);\n if (tollInput) {\n if (this._currentExclusions.indexOf(\"toll\") !== -1) {\n tollInput.checked = false;\n } else {\n tollInput.checked = true;\n }\n }\n var tunnelInput = document.getElementById(\"GProuteExclusionsTunnel-\" + this._uid);\n if (tunnelInput) {\n if (this._currentExclusions.indexOf(\"tunnel\") !== -1) {\n tunnelInput.checked = false;\n } else {\n tunnelInput.checked = true;\n }\n }\n var bridgeInput = document.getElementById(\"GProuteExclusionsBridge-\" + this._uid);\n if (bridgeInput) {\n if (this._currentExclusions.indexOf(\"bridge\") !== -1) {\n bridgeInput.checked = false;\n } else {\n bridgeInput.checked = true;\n }\n }\n };\n\n /**\n * this method is called by this._clear()\n * and it removes step location inputs (excepted departure and arrival)\n *\n * @private\n */\n Route.prototype._removeRouteStepLocations = function () {\n var points = document.querySelectorAll(\"div[id^=\\\"GPlocationPoint\\\"]\");\n if (points.length !== 0) {\n var goodPoints = [];\n for (var k = 0; k < points.length; k++) {\n if (points[k].id.indexOf(this._uid) !== -1) {\n goodPoints.push(points[k]);\n }\n }\n // on boucle sur les points intermédiaires\n for (var i = 1; i < goodPoints.length - 1; i++) {\n // on va regarder les classes associées\n var classList = goodPoints[i].classList;\n if (classList.length !== 0) {\n for (var j = 0; j < classList.length; j++) {\n if (classList[j] === \"GPlocationStageFlexInput\") {\n // si l'élément est visible, on le supprime en simulant un clic sur la croix (x)\n document.getElementById(this._addUID(\"GPlocationStageRemove_\" + (i + 1))).click();\n }\n }\n }\n }\n }\n };\n\n /**\n * this method is called by this.onRouteComputationSubmit() (in case of failure)\n * and it clears all route instructions.\n *\n * @private\n */\n Route.prototype._clearRouteResultsDetails = function () {\n this._currentRouteInformations = null;\n\n // doit on nettoyer le container \"GProuteResultsDetails\" ?\n // il sera de toute façon écrasé par la prochaine requête...\n if (this._resultsRouteDetailsContainer) {\n var detailsDiv = this._resultsRouteDetailsContainer;\n if (detailsDiv.childElementCount) {\n while (detailsDiv.firstChild) {\n detailsDiv.removeChild(detailsDiv.firstChild);\n }\n }\n }\n if (this._resultsRouteValuesContainer) {\n var valuesDiv = this._resultsRouteValuesContainer;\n if (valuesDiv.childElementCount) {\n while (valuesDiv.firstChild) {\n valuesDiv.removeChild(valuesDiv.firstChild);\n }\n }\n }\n };\n\n /**\n * this method is called by this.onRouteComputationSubmit()\n * and it clears all route geometries.\n *\n * @private\n */\n Route.prototype._clearRouteResultsGeometry = function () {\n var map = this.getMap();\n if (this._geojsonRoute != null) {\n map.removeLayer(this._geojsonRoute);\n this._geojsonRoute = null;\n }\n };\n\n /**\n * this method is called by this.onRouteComputationSubmit()\n * and it clears all route geometries.\n *\n * @private\n */\n Route.prototype._clearRouteResultsFeatureGeometry = function () {\n var map = this.getMap();\n\n // on retire la couche itinéraire de la carte\n if (this._geojsonSections != null) {\n map.removeLayer(this._geojsonSections);\n this._geojsonSections = null;\n this._geojsonObject = null;\n }\n // on retire l'overlay de la popup de la carte\n if (this._popupOverlay != null) {\n map.removeOverlay(this._popupOverlay);\n this._popupOverlay = null;\n }\n // et les interactions liées à cette couche\n if (this._resultsSelectInteraction != null) {\n map.removeInteraction(this._resultsSelectInteraction);\n this._resultsSelectInteraction = null;\n }\n if (this._resultsHoverInteraction != null) {\n map.removeInteraction(this._resultsHoverInteraction);\n this._resultsHoverInteraction = null;\n }\n };\n\n /**\n * this method is called by event 'click' on control main container\n * and hide suggested Locations (unless target is an autocomplete input)\n *\n * @param {Object} e - event\n *\n * @private\n */\n Route.prototype._hideRouteSuggestedLocations = function (e) {\n // si on clique sur un input de saisie de locationSelector\n if (e.target && e.target.id && e.target.id.indexOf(\"GPlocationOrigin_\") !== -1) {\n // on récupère le numéro du point\n var pointId = parseInt(e.target.id.split(\"_\")[1][0], 10) - 1;\n // et on cache les autres résultats d'autocomplétion (sauf celui sur lequel on clique)\n for (var j = 0; j < this._currentPoints.length; j++) {\n if (j !== parseInt(pointId, 10)) {\n this._currentPoints[j]._hideSuggestedLocation();\n }\n }\n } else {\n // si on clique ailleurs dans le DOM du control, on cache tous les résultats d'autocomplétion\n for (var i = 0; i < this._currentPoints.length; i++) {\n this._currentPoints[i]._hideSuggestedLocation();\n }\n }\n };\n\n /**\n * this method displays waiting container and sets a timeout\n *\n * @private\n */\n Route.prototype._displayWaitingContainer = function () {\n this._waitingContainer.className = \"GProuteCalcWaitingContainerVisible\";\n this._waiting = true;\n\n // mise en place d'un timeout pour réinitialiser le panel (cacher la patience)\n // si on est toujours en attente (si la requête est bloquée par exemple)\n // ceci est vrai, uniquement sur le protocole JSONP !\n var opts = this.options.routeOptions;\n if (opts && opts.timeOut) {\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n var context = this;\n this._timer = setTimeout(function () {\n if (context._waiting === true) {\n context._hideWaitingContainer();\n } else {\n if (context._timer) {\n clearTimeout(context._timer);\n }\n }\n }, 16000);\n }\n };\n\n /**\n * this method hides waiting container and clears timeout\n *\n * @private\n */\n Route.prototype._hideWaitingContainer = function () {\n if (this._waiting) {\n this._waitingContainer.className = \"GProuteCalcWaitingContainerHidden\";\n this._waiting = false;\n var opts = this.options.routeOptions;\n if (opts && opts.timeOut) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n }\n };\n\n // ################################################################### //\n // ########################## Geometry ############################### //\n // ################################################################### //\n\n /**\n * simplified instructions\n *\n * @param {Object[]} instructions - list of instructions\n *\n * @returns {Object[]} simplified instructions\n *\n * @private\n */\n Route.prototype._simplifiedInstructions = function (instructions) {\n var newInstructions = [];\n\n // cas où...\n var current = instructions[0];\n if (instructions.length === 1) {\n newInstructions.push(current);\n }\n for (var i = 1; i < instructions.length; i++) {\n var o = instructions[i];\n if (o.instruction === current.instruction) {\n current.distance = (parseFloat(o.distance) + parseFloat(current.distance)).toString();\n current.duration = (parseFloat(o.duration) + parseFloat(current.duration)).toString();\n for (var j = 1; j < o.geometry.coordinates.length; j++) {\n current.geometry.coordinates.push(o.geometry.coordinates[j]);\n }\n } else {\n newInstructions.push(current);\n current = o;\n // last\n if (i === instructions.length - 1) {\n newInstructions.push(o);\n current = null;\n }\n }\n }\n logger.log(newInstructions);\n return newInstructions;\n };\n\n // ################################################################### //\n // ################# Utils for Distance/Duration ##################### //\n // ################################################################### //\n\n /**\n * convert seconds to time : HH:MM:SS\n *\n * @param {Number} duration - duration in seconds\n *\n * @returns {String} time in hours/minutes/seconds\n *\n * @private\n */\n Route.prototype._convertSecondsToTime = function (duration) {\n var time = \"\";\n duration = Math.round(duration);\n var hours = Math.floor(duration / (60 * 60));\n var divisor4minutes = duration % (60 * 60);\n var minutes = Math.floor(divisor4minutes / 60);\n // if (!minutes) {\n // minutes = \"00\";\n // }\n\n // var divisor4seconds = divisor4minutes % 60;\n // var seconds = Math.ceil(divisor4seconds);\n // if (!seconds) {\n // seconds = \"00\";\n // }\n\n if (hours) {\n time = hours + \"h \";\n }\n time += minutes + \" min\";\n return time;\n };\n\n /**\n * convert distance in meters or kilometers\n *\n * @param {Number} distance - distance in meters\n *\n * @returns {String} distance in km\n *\n * @private\n */\n Route.prototype._convertDistance = function (distance) {\n var d = \"\";\n var distanceKm = parseInt(distance / 1000, 10);\n if (!distanceKm) {\n d = parseInt(distance, 10) + \" m\"; // arrondi !\n } else {\n d = distanceKm + \" km\";\n }\n return d;\n };\n return Route;\n}(ol_control_Control__WEBPACK_IMPORTED_MODULE_1___default.a);\n/* harmony default export */ __webpack_exports__[\"default\"] = (Route);\n\n// Expose Route as ol.control.Route (for a build bundle)\nif (window.ol && window.ol.control) {\n window.ol.control.Route = Route;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,ey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jaGVyXG4gKiBAZmlyZXMgcm91dGU6ZHJhd3N0YXJ0XG4gKiBAZmlyZXMgcm91dGU6ZHJhd2VuZFxuICogQGZpcmVzIHJvdXRlOmNvbXB1dGVcbiAqIEBmaXJlcyBleHBvcnQ6Y29tcHV0ZVxuICogQGV4YW1wbGVcbiAqICB2YXIgcm91dGUgPSBvbC5jb250cm9sLlJvdXRlKHtcbiAqICAgICAgXCJjb2xsYXBzZWRcIiA6IHRydWVcbiAqICAgICAgXCJkcmFnZ2FibGVcIiA6IHRydWUsXG4gKiAgICAgIFwiZXhwb3J0XCIgICAgOiBmYWxzZSxcbiAqICAgICAgXCJleGNsdXNpb25zXCIgOiB7XG4gKiAgICAgICAgIFwidG9sbFwiIDogdHJ1ZSxcbiAqICAgICAgICAgXCJicmlkZ2VcIiA6IGZhbHNlLFxuICogICAgICAgICBcInR1bm5lbFwiIDogdHJ1ZVxuICogICAgICB9LFxuICogICAgICBcImdyYXBoc1wiIDogWydQaWV0b24nLCAnVm9pdHVyZSddLFxuICogICAgICBcIm1hcmtlcnNPcHRzXCIgOiB7XG4gKiAgICAgICAgICBcImRlcGFydHVyZVwiIDoge1xuICogICAgICAgICAgICAgIFwidXJsXCIgOiBcIi4uLlwiLFxuICogICAgICAgICAgICAgIFwib2Zmc2V0XCIgOiBbMCwwXVxuICogICAgICAgICAgfSxcbiAqICAgICAgICAgIFwic3RhZ2VzXCIgOiB7XG4gKiAgICAgICAgICAgICAgXCJ1cmxcIiA6IFwiLi4uXCIsXG4gKiAgICAgICAgICAgICAgXCJvZmZzZXRcIiA6IFswLDBdXG4gKiAgICAgICAgICB9LFxuICogICAgICAgICAgXCJhcnJpdmFsXCIgOiB7XG4gKiAgICAgICAgICAgICAgXCJ1cmxcIiA6IFwiLi4uXCIsXG4gKiAgICAgICAgICAgICAgXCJvZmZzZXRcIiA6IFswLDBdXG4gKiAgICAgICAgICB9XG4gKiAgICAgIH1cbiAqICAgICAgXCJhdXRvY29tcGxldGVPcHRpb25z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iBAbGVuZHMgbW9kdWxlOlJvdXRlXG4gICAgICovXG4gICAgUm91dGUucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShDb250cm9sLnByb3RvdHlwZSwge30pO1xuXG4gICAgLy8gb24gcsOpY3Vww6hyZSBsZXMgbcOpdGhvZGVzIGRlIGxhIGNsYXNzZSBjb21tdW5lIFJvdXRlRE9NXG4gICAgVXRpbHMuYXNzaWduKFJvdXRlLnByb3RvdHlwZSwgUm91dGVET00pO1xuXG4gICAgLyoqXG4gICAgICogQ29uc3RydWN0b3IgKGFsaWFzKVxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgUm91dGUucHJvdG90eXBlLmNvbnN0cnVjdG9yID0gUm91dGU7XG5cbiAgICAvKipcbiAgICAgKiBPdmVyd3JpdGUgT3BlbkxheWVycyBzZXRNYXAgbWV0aG9kXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge29sLk1hcH0gbWFwIC0gTWFwLlxuICAgICAqL1xuICAgIFJvdXRlLnByb3RvdHlwZS5zZXRNYXAgPSBmdW5jdGlvbiAobWFwKSB7XG4gICAgICAgIGlmIChtYXApIHtcbiAgICAgICAgICAgIC8vIGVucmljaGlzc2VtZW50IGR1IERPTSBkdSBjb250YWluZXJcbiAgICAgICAgICAgIHRoaXMuX2NvbnRhaW5lciA9IHRoaXMuX2luaXRDb250YWluZXIobWFwKTtcblxuICAgICAgICAgICAgLy8gYWpvdXQgZCd1biBib3V0b24gZCdleHBvcnRcbiAgICAgICAgICAgIGlmICh0aGlzLm9wdGlvbnMuZXhwb3J0KSB7XG4gICAgICAgICAgICAgICAgdmFyIG9wdHMgPSBVdGlscy5hc3NpZ24oeyBjb250cm9sIDogdGhpcyB9LCB0aGlzLm9wdGlvbnMuZXhwb3J0KTtcbiAgICAgICAgICAgICAgICB0aGlzLmV4cG9ydCA9IG5ldyBCdXR0b25FeHBvcnQob3B0cyk7XG4gICAgICAgICAgICAgICAgdGhpcy5leHBvcnQucmVuZGVyKCk7XG4gICAgICAgICAgICAgICAgdmFyIHNlbGYgPSB0aGlzO1xuICAgICAgICAgICAgICAgIHRoaXMuZXhwb3J0Lm9uKFwiZXhwb3J0OmNvbXB1dGVcIiwgKGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgc2VsZi5kaXNwYXRjaEV2ZW50KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGUgOiBcImV4cG9ydDpjb21wdXRlXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBjb250ZW50IDogZS5jb250ZW50XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAvLyBtb2RlIFwiZHJhZ2dhYmxlXCJcbiAgICAgICAgICAgIGlmICh0aGlzLmRyYWdnYWJsZSkge1xuICAgICAgICAgICAgICAgIERyYWdnYWJsZS5kcmFnRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fcGFuZWxSb3V0ZUNvbnRhaW5lcixcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fcGFuZWxIZWFkZXJSb3V0ZUNvbnRhaW5lcixcbiAgICAgICAgICAgICAgICAgICAgbWFwLmdldFRhcmdldEVsZW1lbnQoKVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAvLyBvbiBhcHBlbGxlIGxhIG3DqXRob2RlIHNldE1hcCBvcmlnaW5hbGUgZCdPcGVuTGF5ZXJzXG4gICAgICAgIENvbnRyb2wucHJvdG90eXBlLnNldE1hcC5jYWxsKHRoaXMsIG1hcCk7XG4gICAgfTtcblxuICAgIC8vICMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMgLy9cbiAgICAvLyAjIyMjIyMjIyMjIyMjIyMjIyMjIyMgcHVibGljIG1ldGhvZHMgIyMj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c2VkKSkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGlmIChjb2xsYXBzZWQpIHtcbiAgICAgICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKFwiR1Byb3V0ZVBhbmVsQ2xvc2UtXCIgKyB0aGlzLl91aWQpLmNsaWNrKCk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChcIkdQc2hvd1JvdXRlLVwiICsgdGhpcy5fdWlkKS5jbGljaygpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuY29sbGFwc2VkID0gY29sbGFwc2VkO1xuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiBHZXQgdmVjdG9yIGxheWVyIHdoZXJlIGdlb0pzb24gcm91dGUgaXMgZHJhd25cbiAgICAgKlxuICAgICAqIEByZXR1cm5zIHtPYmplY3R9IGxheWVyIC0gb2wubGF5ZXIuVmVjdG9yIHJvdXRlIGxheWVyXG4gICAgICovXG4gICAgUm91dGUucHJvdG90eXBlLmdldExheWVyID0gZnVuY3Rpb24gKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fZ2VvanNvblNlY3Rpb25zO1xuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiBTZXQgdmVjdG9yIGxheWVyIHdoZXJlIHJvdXRlIGdlb21ldHJ5IGlzIGRyYXduXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge09iamVjdH0gbGF5ZXIgLSBvbC5sYXllci5WZWN0b3Igcm91dGUgbGF5ZXJcbiAgICAgKi9cbiAgICBSb3V0ZS5wcm90b3R5cGUuc2V0TGF5ZXIgPSBmdW5jdGlvbiAobGF5ZXIpIHtcbiAgICAgICAgaWYgKCFsYXllcikge1xuICAgICAgICAgICAgdGhpcy5fZ2VvanNvblNlY3Rpb25zID0gbnVsbDtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghKGxhe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ydGRpdikge1xuICAgICAgICAgICAgICAgIHRyYW5zcG9ydGRpdi5jaGVja2VkID0gXCJ0cnVlXCI7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0cmFuc3BvcnRkaXYgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChcIkdQcm91dGVUcmFuc3BvcnRDYXItXCIgKyB0aGlzLl91aWQpO1xuICAgICAgICAgICAgaWYgKHRyYW5zcG9ydGRpdikge1xuICAgICAgICAgICAgICAgIHRyYW5zcG9ydGRpdi5jaGVja2VkID0gXCJ0cnVlXCI7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAvLyBzZXQgY29tcHV0YXRpb24gbW9kZVxuICAgICAgICB2YXIgY29tcHV0YXRpb25kaXYgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChcIkdQcm91dGVDb21wdXRhdGlvblNlbGVjdC1cIiArIHRoaXMuX3VpZCk7XG4gICAgICAgIGlmIChjb21wdXRhdGlvbmRpdikge1xuICAgICAgICAgICAgY29tcHV0YXRpb25kaXYudmFsdWUgPSB0aGlzLl9jdXJyZW50Q29tcHV0YXRpb247XG4gICAgICAgIH1cblxuICAgICAgICAvLyBzZXQgZXhjbHVzaW9uc1xuICAgICAgICB2YXIgdG9sbElucHV0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoXCJHUHJvdXRlRXhjbHVzaW9uc1RvbGwtXCIgKyB0aGlzLl91aWQpO1xuICAgICAgICBpZiAodG9sbElucHV0KSB7XG4gICAgICAgICAgICBpZiAodGhpcy5fY3VycmVudEV4Y2x1c2lvbnMuaW5kZXhPZihcInRvbGxcIikgIT09IC0xKSB7XG4gICAgICAgICAgICAgICAgdG9sbElucHV0LmNoZWNrZWQgPSBmYWxzZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdG9sbElucHV0LmNoZWNrZWQgPSB0cnVlO1xuICAgICAgIC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pb25zKTtcblxuICAgICAgICAvLyBzZXQgZGVmYXVsdCBvcHRpb25zXG4gICAgICAgIHRoaXMub3B0aW9ucyA9IHtcbiAgICAgICAgICAgIGNvbGxhcHNlZCA6IHRydWUsXG4gICAgICAgICAgICBkcmFnZ2FibGUgOiBmYWxzZSxcbiAgICAgICAgICAgIGV4cG9ydCA6IGZhbHNlLFxuICAgICAgICAgICAgZ3JhcGhzIDogW1wiVm9pdHVyZVwiLCBcIlBpZXRvblwiXSxcbiAgICAgICAgICAgIGV4Y2x1c2lvbnMgOiB7XG4gICAgICAgICAgICAgICAgdG9sbCA6IGZhbHNlLFxuICAgICAgICAgICAgICAgIHR1bm5lbCA6IGZhbHNlLFxuICAgICAgICAgICAgICAgIGJyaWRnZSA6IGZhbHNlXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgcm91dGVPcHRpb25zIDoge30sXG4gICAgICAgICAgICBhdXRvY29tcGxldGVPcHRpb25zIDoge30sXG4gICAgICAgICAgICBsYXllckRlc2NyaXB0aW9uIDoge1xuICAgICAgICAgICAgICAgIHRpdGxlIDogXCJJdGluw6lyYWlyZVwiLFxuICAgICAgICAgICAgICAgIGRlc2NyaXB0aW9uIDogXCJJdGluw6lyYWlyZSBiYXPDqSBzdXIgdW4gZ3JhcGhlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgfTtcblxuICAgICAgICAvLyBtZXJnZSB3aXRoIHVzZXIgb3B0aW9uc1xuICAgICAgICBVdGlscy5hc3NpZ24odGhpcy5vcHRpb25zLCBvcHRpb25zKTtcblxuICAgICAgICAvLyBjYXMgcGFydGljdWxpZXIgZGVzIG1hcmtlcnMgcGFyIGTDqWZhdXRcbiAgICAgICAgdmFyIGRlZmF1bHRNYXJrZXJzT3B0cyA9IHtcbiAgICAgICAgICAgIGRlcGFydHVyZSA6IHtcbiAgICAgICAgICAgICAgICB1cmwgOiBNYXJrZXJzW1wicmVkXCJdLFxuICAgICAgICAgICAgICAgIG9mZnNldCA6IE1hcm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GkgPCBvcHRpb25zLmdyYXBocy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgICAgICBpZiAodHlwZW9mIG9wdGlvbnMuZ3JhcGhzW2ldID09PSBcInN0cmluZ1wiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAob3B0aW9ucy5ncmFwaHNbaV0udG9Mb3dlckNhc2UoKSA9PT0gXCJwaWV0b25cIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuZ3JhcGhzW2ldID0gXCJQaWV0b25cIjtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChvcHRpb25zLmdyYXBoc1tpXS50b0xvd2VyQ2FzZSgpID09PSBcInZvaXR1cmVcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9wdGlvbnMuZ3JhcGhzW2ldID0gXCJWb2l0dXJlXCI7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIubG9nKFwiW29sLmNvbnRyb2wuUm91dGVdIEVSUk9SIDogcGFyYW1ldGVyICdncmFwaHMnIGVsZW1lbnRzIHNob3VsZCBiZSBvZiB0eXBlICdzdHJpbmcnXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5ncmFwaHNbaV0gPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBsb2dnZXIud2FybihcIidncmFwaHMnIHBhcmFtZXRlciBzaG91bGQgYmUgYW4gYXJyYXlcIik7XG4gICAgICAgICAgICAgICAgb3B0aW9ucy5ncmFwaHMgPSBudWxsO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gY29sbGFwc2VkXG4gICAgICAgIGlmICh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sgaW4gZXhjbHVzaW9uKSB7XG4gICAgICAgICAgICAgICAgaWYgKGV4Y2x1c2lvbi5oYXNPd25Qcm9wZXJ0eShrKSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZXhjbHVzaW9uW2tdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9jdXJyZW50RXhjbHVzaW9ucy5wdXNoKGspO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gVE9ETyBvcHRpb24gc3VyIGxlIHNlcnZpY2VcbiAgICAgICAgdmFyIHNlcnZpY2VPcHRpb25zID0gdGhpcy5vcHRpb25zLnJvdXRlT3B0aW9ucztcbiAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoc2VydmljZU9wdGlvbnMuZXhjbHVzaW9ucykpIHtcbiAgICAgICAgICAgIHRoaXMuX2N1cnJlbnRFeGNsdXNpb25zID0gc2VydmljZU9wdGlvbnMuZXhjbHVzaW9ucztcbiAgICAgICAgfVxuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBpcyBjYWxsZWQgYnkgdGhpcy5pbml0aWFsaXplKCkgYW5kIGluaXRpYWxpemUgcG9wdXAgZGl2XG4gICAgICogKHRvIGRpc3BsYXkgcmVzdWx0cyBpbmZvcm1hdGlvbiBvbiByb3V0ZSByZXN1bHQgY2xpY2spXG4gICAgICpcbiAgICAgKiBAcmV0dXJuIHtPYmplY3R9IGVsZW1lbnQgLSBET00gZWxlbWVudCBmb3IgcG9wdXBcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIFJvdXRlLnByb3RvdHlwZS5faW5pdFBvcHVwRGl2ID0gZnVuY3Rpb24gKCkge1xuICAgICAgICB2YXIgY29udGV4dCA9IHRoaXM7XG4gICAgICAgIHZhciBlbGVtZW50ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudChcImR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GVPcHRpb25zIDogdGhpcy5vcHRpb25zLmF1dG9jb21wbGV0ZU9wdGlvbnMgfHwgbnVsbFxuICAgICAgICB9KTtcbiAgICAgICAgc3RhcnQuc2V0TWFwKG1hcCk7XG4gICAgICAgIC8vIG9uIGFqb3V0ZSBkZXMgw6ljb3V0ZXVycyBkJ8OpdsOobmVtZW50cyAoZW4gcGx1cyBkZSBjZXV4IGRlIExvY2F0aW9uU2VsZWN0b3IpLFxuICAgICAgICAvLyBwb3VyIHByZW5kcmUgZW4gY29tcHRlIGxlcyBDU1Mgc3DDqWNpZmlxdWVzIGRlIEdQcm91dGVGb3JtXG4gICAgICAgIHRoaXMuX2FkZEZvcm1Qb2ludHNFdmVudExpc3RlbmVycyhzdGFydCk7XG4gICAgICAgIHBvaW50cy5wdXNoKHN0YXJ0Ll9jb250YWluZXIpO1xuICAgICAgICB0aGlzLl9jdXJyZW50UG9pbnRzLnB1c2goc3RhcnQpO1xuXG4gICAgICAgIC8vIHBvaW50cyBpbnRlcm1lZGlhaXJlc1xuICAgICAgICBmb3IgKGNvdW50ID0gMjsgY291bnQgPCA3OyBjb3VudCsrKSB7XG4gICAgICAgICAgICB2YXIgc3RlcCA9IG5ldyBMb2NhdGlvblNlbGVjdG9yKHtcbiAgICAgICAgICAgICAgICBhcGlLZXkgOiB0aGlzLm9wdGlvbnMuYXBpS2V5IHx8IG51bGwsXG4gICAgICAgICAgICAgICAgdGFnIDoge1xuICAgICAgICAgICAgICAgICAgICBpZCA6IGNvdW50LFxuICAgICAgICAgICAgICAgICAgICBncm91cElkIDogdGhpcy5fdWlkLFxuICAgICAgICAgICAgICAgICAgICBsYWJlbCA6IFwiRXRhcGVcIixcbiAgICAgICAgICAgICAgICAgICAgbWFya2VyT3B0cyA6IHRoaXMub3B0aW9ucy5tYXJrZXJzT3B0c1tcInN0YWdlc1wiXSxcbiAgICAgICAgICAgICAgICAgICAgZGlzcGxheSA6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICByZW1vdmVPcHRpb24gOiB0cnVlXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBhdXRvY29tcGxldGVPcHRpb25zIDogdGhpcy5vcHRpb25zLmF1dG9jb21wbGV0ZU9wdGlvbnMgfHwgbnVsbFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBzdGVwLnNldE1hcChtYXApO1xuICAgICAgICAgICAgdGhpcy5fYWRkRm9ybVBvaW50c0V2ZW50TGlzdGVuZXJzKHN0ZXApO1xuICAgICAgICAgICAgcG9pbnRzLnB1c2goc3RlcC5fY29udGFpbmVyKTtcbiAgICAgICAgICAgIHRoaXMuX2N1cnJlbnRQb2ludHMucHVzaChzdGVwKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIHBvaW50IGQnYXJyaXbDqWVcbiAgICAgICAgdmFyIGVuZCA9IG5ldyBMb2NhdGlvblNlbGVjdG9yKHtcbiAgICAgICAgICAgIGFwaUtleSA6IHRoaXMub3B0aW9ucy5hcGlLZXkgfHwgbnVsbCxcbiAgICAgICAgICAgIHRhZyA6IHtcbiAgICAgICAgICAgICAgICBpZCA6IGNvdW50LFxuICAgICAgICAgICAgICAgIGdyb3VwSWQgOiB0aGlzLl91aWQsXG4gICAgICAgICAgICAgICAgbWFya2VyT3B0cyA6IHRoaXMub3B0aW9ucy5tYXJrZXJzT3B0c1tcImFycml2YWxcIl0sXG4gICAgICAgICAgICAgICAgbGFiZWwgOiBcIkFycml2w6llXCIsXG4gICAgICAgICAgICAgICAgZGlzcGxheSA6IHRydWUsXG4gICAgICAgICAgICAgICAgYWRkT3B0aW9uIDogdHJ1ZVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGF1dG9jb21wbGV0ZU9wdGlvbnMgOiB0aGlzLm9wdGlvbnMuYXV0b2NvbXBsZXRlT3B0aW9ucyB8fCBudWxsXG4gICAgICAgIH0pO1xuICAgICAgICBlbmQuc2V0TWFwKG1hcCk7XG4gICAgICAgIHRoaXMuX2FkZEZvcm1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pblBvaW50ZXJDbGljaylcbiAgICAgICAgICAgIGZvcm1Qb2ludC5faW5wdXRTaG93UG9pbnRlci5hZGRFdmVudExpc3RlbmVyKFxuICAgICAgICAgICAgICAgIFwiY2xpY2tcIixcbiAgICAgICAgICAgICAgICAoZSkgPT4gdGhpcy5vblJvdXRlT3JpZ2luUG9pbnRlckNsaWNrKGUsIGZvcm1Qb2ludClcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICBpZiAoZm9ybVBvaW50Ll9yZW1vdmVQb2ludEVsZW1lbnQpIHtcbiAgICAgICAgICAgICAgICBmb3JtUG9pbnQuX3JlbW92ZVBvaW50RWxlbWVudC5hZGRFdmVudExpc3RlbmVyKFxuICAgICAgICAgICAgICAgICAgICBcImNsaWNrXCIsXG4gICAgICAgICAgICAgICAgICAgIChlKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIudHJhY2UoXCJjbGljayBvbiBfcmVtb3ZlUG9pbnRFbGVtZW50XCIsIGUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gTW92aW5nIHVwIGV4Y2x1c2lvbnMgcGljdG9cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIHZhciBleGNsdXNpb25zUGljdG9Ub3AgPSBjb250ZXh0Ll9zaG93Um91dGVFeGNsdXNpb25zRWxlbWVudC5zdHlsZS50b3A7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb250ZXh0Ll9zaG93Um91dGVFeGNsdXNpb25zRWxlbWVudC5zdHlsZS50b3AgPSAocGFyc2VJbnQoZXhjbHVzaW9uc1BpY3RvVG9wLCAxMCkgLSAzMykudG9TdHJpbmcoKSArIFwicHhcIjtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoZm9ybVBvaW50Ll9hZGRQb2ludEVsZW1lbnQpIHtcbiAgICAgICAgICAgICAgICBmb3JtUG9pbnQuX2FkZFBvaW50RWxlbWVudC5hZGRFdmVudExpc3RlbmVyKFxuICAgICAgICAgICAgICAgICAgICBcImNsaWNrXCIsXG4gICAgICAgICAgICAgICAgICAgIChlKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dnZXIudHJhY2UoXCJjbGljayBvbiBfYWRkUG9pbnRFbGVtZW50XCIsIGUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gTW92aW5nIGRvd24gZXhjbHVzaW9ucyBwaWN0b1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdmFyIGV4Y2x1c2lvbnNQaWN0b1RvcCA9IGNvbnRleHQuX3Nob3dSb3V0ZUV4Y2x1c2lvbnNFbGVtZW50LnN0eWxlLnRvcDtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGNvbnRleHQuX3Nob3dSb3V0ZUV4Y2x1c2lvbnNFbGVtZW50LnN0eWxlLnRvcCA9IChwYXJzZUludChleGNsdXNpb25zUGljdG9Ub3AsIDEwKSArIDMzKS50b1N0cmluZygpICsgXCJweFwiO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIGlmIChmb3JtUG9pbnQuX2lucHV0TGFiZWxDb250YWluZXIuYXR0YWNoRXZlbnQpIHtcbiAgICAgICAgICAgIC8vIGF0dGFjaEV2ZW50OiBJbnRlcm5ldCBleHBsb3JlciBldmVudCBsaXN0ZW5lcnMgbWFuYWdlbWVudFxuICAgICAgICAgICAgZm9ybVBvaW50Ll9pbnB1dExhYmVsQ29udGFpbmVyLmF0dGFjaEV2ZW50KFxuICAgICAgICAgICAgICAgIFwib25jbGlja1wiLFxuICAgICAgICAgICAgICAgIChlKSA9PiB0aGlzLm9uUm91dGVPcmlnaW5MYWJlbENsaWNrKGUpXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgZm9ybVBvaW50Ll9pbnB1dFNob3dQb2ludGVyLmF0dGFjaEV2ZW50KFxuICAgICAgICAgICAgICAgIFwib25jbGlja1wiLFxuICAgICAgICAgICAgICAgIChlKSA9PiB0aGlzLm9uUm91dGVPcmlnaW5Qb2ludGVyQ2xpY2soZSwgZm9ybVBvaW50KVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGlmIChmb3JtUG9pbnQuX3JlbW92ZVBvaW50RWxlbWVudCkge1xuICAgICAgICAgICAgICAgIGZvcm1Qb2ludC5fcmVtb3ZlUG9pbnRFbGVtZW50LmF0dGFjaEV2ZW50KFxuICAgICAgICAgICAgICAgICAgICBcIm9uY2xpY2tcIixcbiAgICAgICAgICAgICAgICAgICAgKGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIE1vdmluZyB1cCBleGNsdXNpb25zIHBpY3RvXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyB2YXIgZXhjbHVzaW9uc1BpY3RvVG9wID0gY29udGV4dC5fc2hvd1JvdXRlRXhjbHVzaW9uc0VsZW1lbnQuc3R5bGUudG9wO1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gY29udGV4dC5fc2hvd1JvdXRlRXhjbHVzaW9uc0VsZW1lbnQuc3R5bGUudG9wID0gKHBhcnNlSW50KGV4Y2x1c2lvbnNQaWN0b1RvcCwgMTApIC0gMzMpLnRvU3RyaW5nKCkgKyBcInB4XCI7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGZvcm1Qb2ludC5fYWRkUG9pbnRFbGVtZW50KSB7XG4gICAgICAgICAgICAgICAgZm9ybVBvaW50Ll9hZGRQb2ludEVsZW1lbnQuYXR0YWNoRXZlbnQoXG4gICAgICAgICAgICAgICAgICAgIFwib25jbGlja1wiLFxuICAgICAgICAgICAgICAgICAgICAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gTW92aW5nIGRvd24gZXhjbHVzaW9ucyBwaWN0b1xuIC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gICAgICAgfTtcbiAgICAgICAgICAgIGxvZ2dlci5sb2coXCJzdGFydFwiLCBzdGFydCk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyAtIHBvaW50IGQnYXJyaXbDqWVcbiAgICAgICAgdmFyIGVuZDtcbiAgICAgICAgdmFyIGVuZFBvaW50ID0gcG9pbnRzW3BvaW50cy5sZW5ndGggLSAxXTtcbiAgICAgICAgaWYgKGVuZFBvaW50ICYmIGVuZFBvaW50LmdldENvb3JkaW5hdGUpIHtcbiAgICAgICAgICAgIHZhciBlbmRDb29yZGluYXRlID0gZW5kUG9pbnQuZ2V0Q29vcmRpbmF0ZSgpO1xuICAgICAgICAgICAgZW5kID0ge1xuICAgICAgICAgICAgICAgIHggOiBlbmRDb29yZGluYXRlWzBdLFxuICAgICAgICAgICAgICAgIHkgOiBlbmRDb29yZGluYXRlWzFdXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgbG9nZ2VyLmxvZyhcImVuZFwiLCBlbmQpO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gLSBsZXMgw6l0YXBlc1xuICAgICAgICB2YXIgc3RlcCA9IFtdO1xuICAgICAgICBmb3IgKHZhciBpID0gMTsgaSA8IHBvaW50cy5sZW5ndGggLSAxOyBpKyspIHtcbiAgICAgICAgICAgIGlmIChwb2ludHNbaV0gJiYgcG9pbnRzW2ldLmdldENvb3JkaW5hdGUpIHtcbiAgICAgICAgICAgICAgICB2YXIgaUNvb3JkaW5hdGUgPSBwb2ludHNbaV0uZ2V0Q29vcmRpbmF0ZSgpO1xuICAgICAgICAgICAgICAgIGlmIChpQ29vcmRpbmF0ZSkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgY29vcmRpbmF0ZSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHggOiBpQ29vcmRpbmF0ZVswXSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHkgOiBpQ29vcmRpbmF0ZVsxXVxuICAgICAgICAgICAgICAgICAgICB9O1xuICAgICA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UluSW5zdHJ1Y3Rpb25zIDogdHJ1ZSxcbiAgICAgICAgICAgIGRpc3RhbmNlVW5pdCA6IFwibVwiLFxuICAgICAgICAgICAgdGltZU91dCA6IF90aW1lb3V0LFxuICAgICAgICAgICAgcHJvdG9jb2wgOiBfcHJvdG9jb2wsXG4gICAgICAgICAgICByZXNvdXJjZSA6IHJvdXRlT3B0aW9ucy5yZXNvdXJjZSxcbiAgICAgICAgICAgIC8vIGNhbGxiYWNrIG9uU3VjY2Vzc1xuICAgICAgICAgICAgb25TdWNjZXNzIDogZnVuY3Rpb24gKHJlc3VsdHMpIHtcbiAgICAgICAgICAgICAgICBsb2dnZXIubG9nKHJlc3VsdHMpO1xuICAgICAgICAgICAgICAgIGlmIChyZXN1bHRzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnRleHQuX2ZpbGxSb3V0ZVJlc3VsdHNEZXRhaWxzKHJlc3VsdHMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAoYk9uU3VjY2Vzcykge1xuICAgICAgICAgICAgICAgICAgICByb3V0ZU9wdGlvbnMub25TdWNjZXNzLmNhbGwoY29udGV4dCwgcmVzdWx0cyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIC8vIGNhbGxiYWNrIG9uRmFpbHVyZVxuICAgICAgICAgICAgb25GYWlsdXJlIDogZnVuY3Rpb24gKGVycm9yKSB7XG4gICAgICAgICAgICAgICAgY29udGV4dC5faGlkZVdhaXRpbmdDb250YWluZXIoKTtcbiAgICAgICAgICAgICAgICBjb250ZXh0Ll9jbGVhclJvdXRlUmVzdWx0c0RldGFpbHMoKTtcbiAgICAgICAgICAgICAgICBsb2dnZXIubG9nKGVycm9yLm1lc3NhZ2UpO1xuICAgICAgICAgICAgICAgIGlmIChiT25GYWlsdXJlKSB7XG4gICAgICAgICAgICAgICAgICAgIHJvdXRlT3B0aW9ucy5vbkZhaWx1cmUuY2FsbChjb250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gICAgLy8gYXUgY2xpY2sgc3VyIGwnaW5wdXQgcG91ciBwb2ludGVyIHN1ciBsYSBjYXJ0ZTogb24gbWluaW1pc2UgbGUgZm9ybXVsYWlyZVxuICAgICAgICAgICAgdGhpcy5fZm9ybVJvdXRlQ29udGFpbmVyLmNsYXNzTmFtZSA9IFwiR1Byb3V0ZUZvcm1NaW5pXCI7XG4gICAgICAgICAgICAvLyBldCBhdSBjbGljIHN1ciBsYSBjYXJ0ZSwgb24gcsOpYWZmaWNoZXJhIGxlIGZvcm11bGFpcmUgXCJub3JtYWxcIlxuICAgICAgICAgICAgdGhpcy5saXN0ZW5lcktleSA9IG1hcC5vbihcbiAgICAgICAgICAgICAgICBcImNsaWNrXCIsXG4gICAgICAgICAgICAgICAgKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAvLyBvbiBuZSByw6l0YWJsaXQgcGFzIGxlIG1vZGUgXCJub3JtYWxcIiBzaSBvbiBlc3QgZGFucyBsZSBwYW5lbCBkZXMgcsOpc3VsdGF0cyAob8O5IGNsYXNzTmFtZSA9IFwiR1Byb3V0ZUNvbXBvbmVudEhpZGRlblwiKVxuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5fZm9ybVJvdXRlQ29udGFpbmVyLmNsYXNzTmFtZSA9PT0gXCJHUHJvdXRlRm9ybU1pbmlcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fZm9ybVJvdXRlQ29udGFpbmVyLmNsYXNzTmFtZSA9IFwiXCI7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgb2xPYnNlcnZhYmxlVW5CeUtleSh0aGlzLmxpc3RlbmVyS2V5KTtcbiAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICogZXZlbnQgdHJpZ2dlcmVkIGF0IHRoZSBlbmQgb2YgZHJhd2luZyBpbnB1dFxuICAgICAgICAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgICAgICAg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Ll9mb3JtUm91dGVDb250YWluZXIuY2xhc3NOYW1lID09PSBcIkdQcm91dGVGb3JtTWluaVwiKSB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICB0aGlzLl9mb3JtUm91dGVDb250YWluZXIuY2xhc3NOYW1lID0gXCJcIjtcbiAgICAgICAgICAgIC8vICAgICAgICAgfVxuICAgICAgICAgICAgLy8gICAgIH1cbiAgICAgICAgICAgIC8vICk7XG4gICAgICAgICAgICBvbE9ic2VydmFibGVVbkJ5S2V5KHRoaXMubGlzdGVuZXJLZXkpO1xuICAgICAgICAgICAgdGhpcy5kaXNwYXRjaEV2ZW50KFwicm91dGU6ZHJhd2VuZFwiKTtcbiAgICAgICAgfVxuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiB0aGlzIG1ldGhvZCBpcyBjYWxsZWQgYnkgZXZlbnQgJ2NsaWNrJyBvbiAnR1BzaG93Um91dGVQaWN0bydcbiAgICAgKiB0YWcgbGFiZWwgKGNmLiB0aGlzLl9jcmVhdGVTaG93Um91dGVQaWN0b0VsZW1lbnQpLFxuICAgICAqIGFuZCBpdCBjbGVhbnMgYWxsIHZhbHVlIG9mIGlucHV0LlxuICAgICAqXG4gICAgICogQHBhcmFtIHtPYmplY3R9IGUgLSBIVE1MRWxlbWVudFxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgUm91dGUucHJvdG90eXBlLm9uU2hvd1JvdXRlUGFuZWxDbGljayA9IGZ1bmN0aW9uIChlKSB7XG4gICAgICAgIHZhciBtYXAgPSB0aGlzLmdldE1hcCgpO1xuICAgICAgICAvLyBvbiBzdXBwcmltZSB0b3V0ZXMgbGVzIGludGVyYWN0aW9uc1xuICAgICAgICBJbnRlcmFjdGlvbnMudW5zZXQobWFwKTtcbiAgICAgICAgLy8gY2xlYW4gIVxuICAgICAgICBpZiAoIXRoaXMuX2dlb2pzb25TZWN0aW9ucyAmJiAhdGhpcy5fd2FpdGluZykge1xuICAgICAgICAgICAgdGhpcy5fY2xl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91dGUgb2wuc3R5bGUuU3R5bGUgb2JqZWN0XG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBSb3V0ZS5wcm90b3R5cGUuX2ZpbGxSb3V0ZVJlc3VsdHNEZXRhaWxzR2VvbWV0cnkgPSBmdW5jdGlvbiAoZ2VvbWV0cnksIHN0eWxlKSB7XG4gICAgICAgIHRoaXMuX2NsZWFyUm91dGVSZXN1bHRzR2VvbWV0cnkoKTtcblxuICAgICAgICB2YXIgbWFwID0gdGhpcy5nZXRNYXAoKTtcblxuICAgICAgICBpZiAoIWdlb21ldHJ5KSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICAvLyBjcsOpYXRpb24gZGUgbCdvYmpldCBnZW9KU09OXG4gICAgICAgIHZhciBnZW9qc29uT2JqZWN0ID0ge1xuICAgICAgICAgICAgdHlwZSA6IFwiRmVhdHVyZUNvbGxlY3Rpb25cIixcbiAgICAgICAgICAgIGZlYXR1cmVzIDogW1xuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA6IFwiRmVhdHVyZVwiLFxuICAgICAgICAgICAgICAgICAgICBjcnMgOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlIDogXCJuYW1lXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBwcm9wZXJ0aWVzIDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWUgOiBcIkVQU0c6NDMyNlwiXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIGdlb21ldHJ5IDogZ2VvbWV0cnlcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBdXG4gICAgICAgIH07XG5cbiAgICAgICAgdmFyIGdlb2pzb25mb3JtYXQgPSBuZXcgR2VvSlNPTkV4dGVuZGVkKHtcbiAgICAgICAgICAgIGRlZmF1bHREYXRhUHJvamVjdGl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G8uZ2VvbWV0cnkuY29vcmRpbmF0ZXM7XG4gICAgICAgICAgICBmb3IgKHZhciBqID0gMDsgaiA8IGNvb3Jkcy5sZW5ndGg7IGorKykge1xuICAgICAgICAgICAgICAgIC8vIHJlbWFycXVlIDogbGVzIGNvb3Jkb25uw6llcyBzb250IGF1IGZvcm1hdCBzdHJpbmcsIMOgIGNvbnZlcnRpciBlbiBub21icmVzXG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBjb29yZHNbal1bMF0gPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgY29vcmRzW2pdWzBdID0gcGFyc2VGbG9hdChjb29yZHNbal1bMF0pO1xuICAgICAgICAgICAgICAgICAgICBjb29yZHNbal1bMV0gPSBwYXJzZUZsb2F0KGNvb3Jkc1tqXVsxXSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLl9nZW9qc29uT2JqZWN0LmZlYXR1cmVzLnB1c2goe1xuICAgICAgICAgICAgICAgIHR5cGUgOiBcIkZlYXR1cmVcIixcbiAgICAgICAgICAgICAgICBnZW9tZXRyeSA6IG8uZ2VvbWV0cnksXG4gICAgICAgICAgICAgICAgcHJvcGVydGllcyA6IHtcbiAgICAgICAgICAgICAgICAgICAgcG9wdXBDb250ZW50IDogXCIoXCIgKyBpZCArIFwiKSBkaXN0YW5jZSA6IFwiICsgdGhpcy5fY29udmVydERpc3RhbmNlKG8uZGlzdGFuY2UpICtcbiAgICAgICAgICAgICAgICAgICAgICAgIFwiIC8gdGVtcHMgOiBcIiArIHRoaXMuX2NvbnZlcnRTZWNvbmRzVG9UaW1lKG8uZHVyYXRpb24pXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBpZCA6IGlkXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIEFqb3V0IGR1IHBvaW50IGRlIGRlcGFydCBkdSB0cmFjw6lcbiAgICAgICAgdGhpcy5fZ2VvanNvbk9iamVjdC5mZWF0dXJlcy5wdXNoKHtcbiAgICAgICAgICAgIHR5cGUgOiBcIkZlYXR1cmVcIixcbiAgICAgICAgICAgIGdlb21ldHJ5IDoge1xuICAgICAgICAgICAgICAgIHR5cGUgOiBcIlBvaW50XCIsXG4gICAgICAgICAgICAgICAgY29vcmRpbmF0ZXMgOiB0aGlzLl9jdXJyZW50UG9pbnRzWzBdLmdldENvb3JkaW5hdGUoKVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHByb3BlcnRpZXMgOiB7XG4gICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gOiBcIlBvaW50IGRlIGTDqXBhcnRcIixcbiAgICAgICAgICAgICAgICBcIm1hcmtlci1zeW1ib2xcIiA6IHRoaXMub3B0aW9ucy5tYXJrZXJzT3B0cy5kZXBhcnR1cmUudXJsXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIC8vIEFqb3V0IGRlcyBwb2ludHMgZCfDqXRhcGVzXG4gICAgICAgIGZvciAodmFyIGsgPSAxOyBrIDwgdGhpcy5fY3VycmVudFBvaW50cy5sZW5ndGggLSAxOyBrKyspIHtcbiAgICAgICAgICAgIGlmICh0aGlzLl9jdXJyZW50UG9pbnRzW2tdICYmIHRoaXMuX2N1cnJlbnRQb2ludHNba10uZ2V0Q29vcmRpbmF0ZSkge1xuICAgICAgICAgICAgICAgIHZhciBjb29yZGluYXRlcyA9IHRoaXMuX2N1cnJlbnRQb2ludHNba10uZ2V0Q29vcmRpbmF0ZSgpO1xuICAgICAgICAgICAgICAgIGlmIChjb29yZGluYXRlcykge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLl9nZW9qc29uT2JqZWN0LmZlYXR1cmVzLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IFwiRmVhdHVyZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbWV0cnkgOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IFwiUG9pbnRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb29yZGluYXRlcyA6IGNvb3JkaW5hdGVzXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgcHJvcGVydGllcyA6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZXNjcmlwdGlvbiA6IFwiUG9pbnQgZCfDqXRhcGVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIm1hcmtlci1zeW1ib2xcIiA6IHRoaXMub3B0aW9ucy5tYXJrZXJzT3B0cy5zdGFnZXMudXJsXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIEFqb3V0IGR1IHBvaW50IGQnYXJyaXbDqWUgZHUgdHJhY8OpXG4gICAgICAgIHRoaXMuX2dlb2pzb25PYmplY3QuZmVhdHVyZXMucHVzaCh7XG4gICAgICAgICAgICB0eXBlIDogXCJGZWF0dXJlXCIsXG4gICAgICAgICAgICBnZW9tZXRyeSA6IHtcbiAgICAgICAgICAgICAgICB0eXBlIDogXCJQb2ludFwiLFxuICAgICAgICAgICAgICAgIGNvb3JkaW5hdGVzIDogdGhpcy5fY3VycmVudFBvaW50c1t0aGlzLl9jdXJyZW50UG9pbnRzLmxlbmd0aCAtIDFdLmdldENvb3JkaW5hdGUoKVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHByb3BlcnRpZXMgOiB7XG4gICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gOiBcIlBvaW50IGQnYXJyaXbDqWVcIixcbiAgICAgICAgICAgICAgICBcIm1hcmtlci1zeW1ib2xcIiA6IHRoaXMub3B0aW9ucy5tYXJrZXJzT3B0cy5hcnJpdmFsLnVybFxuICAgICAgICAgICA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V0ZSBkZXMgaW5mb3JtYXRpb25zIHF1ZSBzJ2lsIG4neSBlbiBhIHBhcyBkw6lqw6AgKHNpIGxlIHRpdHJlIGVzdCBsZSBudW3DqXJvIHBhciBkw6lmYXV0KVxuICAgICAgICAgICAgICAgICAgICBpZiAoY29udHJvbC5fbGF5ZXJzW2xheWVySWRdLnRpdGxlID09PSBsYXllcklkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb250cm9sLmFkZExheWVyKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2dlb2pzb25TZWN0aW9ucywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZSA6IHRoaXMub3B0aW9ucy5sYXllckRlc2NyaXB0aW9uLnRpdGxlICsgXCIgKFwiICsgZ3JhcGggKyBcIilcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gOiB0aGlzLm9wdGlvbnMubGF5ZXJEZXNjcmlwdGlvbi5kZXNjcmlwdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgdGhpc1xuICAgICAgICApO1xuXG4gICAgICAgIC8vIDUuIEFqb3V0IGRlIHBvcHVwcyBhdXggdHJvbmNvbnNcbiAgICAgICAgLy8gQ3LDqWF0aW9uIGRlIGwnaW50ZXJhY3Rpb24gOiBzdXJ2b2wgZGVzIGZlYXR1cmVzICg9dHJvbmNvbnMgZGUgbCdpdGluw6lyYWlyZSlcbiAgICAgICAgdGhpcy5fcmVzdWx0c0hvdmVySW50ZXJhY3Rpb24gPSBuZXcgU2VsZWN0SW50ZXJhY3Rpb24oe1xuICAgICAgICAgICAgY29uZGl0aW9uIDogZXZlbnRQb2ludGVyTW92ZSxcbiAgICAgICAgICAgIGxheWVycyA6IFt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IDApIHtcbiAgICAgICAgICAgIC8vIHNpIG9uIGEgc8OpbGVjdGlvbm7DqSB1biB0cm9uY29uLCBvbiBsdWkgYWpvdXRlIHVuZSBwb3B1cFxuICAgICAgICAgICAgdmFyIGYgPSBlLnNlbGVjdGVkWzBdO1xuICAgICAgICAgICAgdGhpcy5fcG9wdXBDb250ZW50LmlubmVySFRNTCA9IGYuZ2V0UHJvcGVydGllcygpLnBvcHVwQ29udGVudDtcblxuICAgICAgICAgICAgaWYgKCF0aGlzLl9wb3B1cE92ZXJsYXkpIHtcbiAgICAgICAgICAgICAgICAvLyBham91dCBkZSBsYSBwb3B1cCBhIGxhIGNhcnRlIGNvbW1lIHVuIG92ZXJsYXlcbiAgICAgICAgICAgICAgICB0aGlzLl9wb3B1cE92ZXJsYXkgPSBuZXcgT3ZlcmxheSh7XG4gICAgICAgICAgICAgICAgICAgIGVsZW1lbnQgOiB0aGlzLl9wb3B1cERpdixcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb25pbmcgOiBcImJvdHRvbS1jZW50ZXJcIixcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb24gOiBlLm1hcEJyb3dzZXJFdmVudC5jb29yZGluYXRlXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgbWFwLmFkZE92ZXJsYXkodGhpcy5fcG9wdXBPdmVybGF5KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgLy8gc2kgbCdvdmVybGF5IGVzdCBkw6lqw6AgY3LDqcOpLCBvbiBtb2RpZmllIGp1c3RlIHNhIHBvc2l0aW9uXG4gICAgICAgICAgICAgICAgdGhpcy5fcG9wdXBPdmVybGF5LnNldFBvc2l0aW9uKGUubWFwQnJvd3NlckV2ZW50LmNvb3JkaW5hdGUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgLy8gc2kgYXVjdW4gdHJvbmNvbiBuJ2VzdCBzw6lsZWN0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ICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgYnJpZGdlSW5wdXQuY2hlY2tlZCA9IHRydWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgaXMgY2FsbGVkIGJ5IHRoaXMuX2NsZWFyKClcbiAgICAgKiBhbmQgaXQgcmVtb3ZlcyBzdGVwIGxvY2F0aW9uIGlucHV0cyAoZXhjZXB0ZWQgZGVwYXJ0dXJlIGFuZCBhcnJpdmFsKVxuICAgICAqXG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBSb3V0ZS5wcm90b3R5cGUuX3JlbW92ZVJvdXRlU3RlcExvY2F0aW9ucyA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgdmFyIHBvaW50cyA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoXCJkaXZbaWRePVxcXCJHUGxvY2F0aW9uUG9pbnRcXFwiXVwiKTtcbiAgICAgICAgaWYgKHBvaW50cy5sZW5ndGggIT09IDApIHtcbiAgICAgICAgICAgIHZhciBnb29kUG9pbnRzID0gW107XG4gICAgICAgICAgICBmb3IgKHZhciBrID0gMDsgayA8IHBvaW50cy5sZW5ndGg7IGsrKykge1xuICAgICAgICAgICAgICAgIGlmIChwb2ludHNba10uaWQuaW5kZXhPZih0aGlzLl91aWQpICE9PSAtMSkge1xuICAgICAgICAgICAgICAgICAgICBnb29kUG9pbnRzLnB1c2gocG9pbnRzW2tdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAvLyBvbiBib3VjbGUgc3VyIGxlcyBwb2ludHMgaW50ZXJtw6lkaWFpcmVzXG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMTsgaSA8IChnb29kUG9pbnRzLmxlbmd0aCAtIDEpOyBpKyspIHtcbiAgICAgICAgICAgICAgICAvLyBvbiB2YSByZWdhcmRlciBsZXMgY2xhc3NlcyBhc3NvY2nDqWVzXG4gICAgICAgICAgICAgICAgdmFyIGNsYXNzTGlzdCA9IGdvb2RQb2ludHNbaV0uY2xhc3NMaXN0O1xuICAgICAgICAgICAgICAgIGlmIChjbGFzc0xpc3QubGVuZ3RoICE9PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGogPSAwOyBqIDwgY2xhc3NMaXN0Lmxlbmd0aDsgaisrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoY2xhc3NMaXN0W2pdID09PSBcIkdQbG9jYXRpb25TdGFnZUZsZXhJbnB1dFwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2kgbCfDqWzDqW1lbnQgZXN0IHZpc2libGUsIG9uIGxlIHN1cHByaW1lIGVuIHNpbXVsYW50IHVuIGNsaWMgc3VyIGxhIGNyb2l4ICh4KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKHRoaXMuX2FkZFVJRChcIkdQbG9jYXRpb25TdGFnZVJlbW92ZV9cIiArIChpICsgMSkpKS5jbGljaygpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIHRoaXMgbWV0aG9kIGlzIGNhbGxlZCBieSB0aGlzLm9uUm91dGVDb21wdXRhdGlvblN1Ym1pdCgpIChpbiBjYXNlIG9mIGZhaWx1cmUpXG4gICAgICogYW5kIGl0IGNsZWFycyBhbGwgcm91dGUgaW5zdHJ1Y3Rpb25zLlxuICAgICAqXG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBSb3V0ZS5wcm90b3R5cGUuX2NsZWFyUm91dGVSZXN1bHRzRGV0YWlscyA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgdGhpcy5fY3VycmVudFJv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T3B0aW9ucztcbiAgICAgICAgaWYgKG9wdHMgJiYgb3B0cy50aW1lT3V0KSB7XG4gICAgICAgICAgICBpZiAodGhpcy5fdGltZXIpIHtcbiAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQodGhpcy5fdGltZXIpO1xuICAgICAgICAgICAgICAgIHRoaXMuX3RpbWVyID0gbnVsbDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZhciBjb250ZXh0ID0gdGhpcztcbiAgICAgICAgICAgIHRoaXMuX3RpbWVyID0gc2V0VGltZW91dChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgaWYgKGNvbnRleHQuX3dhaXRpbmcgPT09IHRydWUpIHtcbiAgICAgICAgICAgICAgICAgICAgY29udGV4dC5faGlkZVdhaXRpbmdDb250YWluZXIoKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBpZiAoY29udGV4dC5fdGltZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFyVGltZW91dChjb250ZXh0Ll90aW1lcik7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LCAxNjAwMCk7XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgaGlkZXMgd2FpdGluZyBjb250YWluZXIgYW5kIGNsZWFycyB0aW1lb3V0XG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIFJvdXRlLnByb3RvdHlwZS5faGlkZVdhaXRpbmdDb250YWluZXIgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgIGlmICh0aGlzLl93YWl0aW5nKSB7XG4gICAgICAgICAgICB0aGlzLl93YWl0aW5nQ29udGFpbmVyLmNsYXNzTmFtZSA9IFwiR1Byb3V0ZUNhbGNXYWl0aW5nQ29udGFpbmVySGlkZGVuXCI7XG4gICAgICAgICAgICB0aGlz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W50ID0gaW5zdHJ1Y3Rpb25zWzBdO1xuICAgICAgICBpZiAoaW5zdHJ1Y3Rpb25zLmxlbmd0aCA9PT0gMSkge1xuICAgICAgICAgICAgbmV3SW5zdHJ1Y3Rpb25zLnB1c2goY3VycmVudCk7XG4gICAgICAgIH1cblxuICAgICAgICBmb3IgKHZhciBpID0gMTsgaSA8IGluc3RydWN0aW9ucy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgdmFyIG8gPSBpbnN0cnVjdGlvbnNbaV07XG4gICAgICAgICAgICBpZiAoby5pbnN0cnVjdGlvbiA9PT0gY3VycmVudC5pbnN0cnVjdGlvbikge1xuICAgICAgICAgICAgICAgIGN1cnJlbnQuZGlzdGFuY2UgPSAocGFyc2VGbG9hdChvLmRpc3RhbmNlKSArIHBhcnNlRmxvYXQoY3VycmVudC5kaXN0YW5jZSkpLnRvU3RyaW5nKCk7XG4gICAgICAgICAgICAgICAgY3VycmVudC5kdXJhdGlvbiA9IChwYXJzZUZsb2F0KG8uZHVyYXRpb24pICsgcGFyc2VGbG9hdChjdXJyZW50LmR1cmF0aW9uKSkudG9TdHJpbmcoKTtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBqID0gMTsgaiA8IG8uZ2VvbWV0cnkuY29vcmRpbmF0ZXMubGVuZ3RoOyBqKyspIHtcbiAgICAgICAgICAgICAgICAgICAgY3VycmVudC5nZW9tZXRyeS5jb29yZGluYXRlcy5wdXNoKG8uZ2VvbWV0cnkuY29vcmRpbmF0ZXNbal0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgbmV3SW5zdHJ1Y3Rpb25zLnB1c2goY3VycmVudCk7XG4gICAgICAgICAgICAgICAgY3VycmVudCA9IG87XG4gICAgICAgICAgICAgICAgLy8gbGFzdFxuICAgICAgICAgICAgICAgIGlmIChpID09PSBpbnN0cnVjdGlvbnMubGVuZ3RoIC0gMSkge1xuICAgICAgICAgICAgIC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KDYwICogNjApKTtcblxuICAgICAgICB2YXIgZGl2aXNvcjRtaW51dGVzID0gZHVyYXRpb24gJSAoNjAgKiA2MCk7XG4gICAgICAgIHZhciBtaW51dGVzID0gTWF0aC5mbG9vcihkaXZpc29yNG1pbnV0ZXMgLyA2MCk7XG4gICAgICAgIC8vIGlmICghbWludXRlcykge1xuICAgICAgICAvLyAgICAgbWludXRlcyA9IFwiMDBcIjtcbiAgICAgICAgLy8gfVxuXG4gICAgICAgIC8vIHZhciBkaXZpc29yNHNlY29uZHMgPSBkaXZpc29yNG1pbnV0ZXMgJSA2MDtcbiAgICAgICAgLy8gdmFyIHNlY29uZHMgPSBNYXRoLmNlaWwoZGl2aXNvcjRzZWNvbmRzKTtcbiAgICAgICAgLy8gaWYgKCFzZWNvbmRzKSB7XG4gICAgICAgIC8vICAgICBzZWNvbmRzID0gXCIwMFwiO1xuICAgICAgICAvLyB9XG5cbiAgICAgICAgaWYgKGhvdXJzKSB7XG4gICAgICAgICAgICB0aW1lID0gaG91cnMgKyBcImggXCI7XG4gICAgICAgIH1cbiAgICAgICAgdGltZSArPSBtaW51dGVzICsgXCIgbWluXCI7XG4gICAgICAgIHJldHVybiB0aW1lO1xuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiBjb252ZXJ0IGRpc3RhbmNlIGluIG1ldGVycyBvciBraWxvbWV0ZXJzXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge051bWJlcn0gZGlzdGFuY2UgLSBkaXN0YW5jZSBpbiBtZXRlcnNcbiAgICAgKlxuICAgICAqIEByZXR1cm5zIHtTdHJpbmd9IGRpc3RhbmNlIGluIGttXG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIFJvdXRlLnByb3RvdHlwZS5fY29udmVydERpc3RhbmNlID0gZnVuY3Rpb24gKGRpc3RhbmNlKSB7XG4gICAgICAgIHZhciBkID0gXCJcIjtcblxuICAgICAgICB2YXIgZGlzdGFuY2VLbSA9IHBhcnNlSW50KGRpc3RhbmNlIC8gMTAwMCwgMTApO1xuICAgICAgICBpZiAoIWRpc3RhbmNlS20pIHtcbiAgICAgICAgICAgIGQgPSBwYXJzZUludChkaXN0YW5jZSwgMTApICsgXCIgbVwiOyAvLyBhcnJvbmRpICFcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGQgPSBkaXN0YW5jZUttICsgXCIga21cIjtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBkO1xuICAgIH07XG5cbiAgICByZXR1cm4gUm91dGU7XG59KENvbnRyb2wpKTtcblxuZXhwb3J0IGRlZmF1bHQgUm91dGU7XG5cbi8vIEV4cG9zZSBSb3V0ZSBhcyBvbC5jb250cm9sLlJvdXRlIChmb3IgYSBidWlsZCBidW5kbGUpXG5pZiAod2luZG93Lm9sICYmIHdpbmRvdy5vbC5jb250cm9sKSB7XG4gICAgd2luZG93Lm9sLmNvbnRyb2wuUm91dGUgPSBSb3V0ZTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/OpenLayers/Controls/Route.js\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _CSS_Controls_Route_GProuteOpenLayers_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../CSS/Controls/Route/GProuteOpenLayers.css */ \"./src/OpenLayers/CSS/Controls/Route/GProuteOpenLayers.css\");\n/* harmony import */ var _CSS_Controls_Route_GProuteOpenLayers_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CSS_Controls_Route_GProuteOpenLayers_css__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var ol_control_Control__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ol/control/Control */ \"ol/control/Control\");\n/* harmony import */ var ol_control_Control__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ol_control_Control__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var ol_Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ol/Observable */ \"ol/Observable\");\n/* harmony import */ var ol_Observable__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(ol_Observable__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var ol_Overlay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ol/Overlay */ \"ol/Overlay\");\n/* harmony import */ var ol_Overlay__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(ol_Overlay__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ol/layer/Vector */ \"ol/layer/Vector\");\n/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ol/source/Vector */ \"ol/source/Vector\");\n/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ol_source_Vector__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var ol_events_condition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ol/events/condition */ \"ol/events/condition\");\n/* harmony import */ var ol_events_condition__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ol_events_condition__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var ol_interaction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ol/interaction */ \"ol/interaction\");\n/* harmony import */ var ol_interaction__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ol_interaction__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ol/style */ \"ol/style\");\n/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ol_style__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ol/proj */ \"ol/proj\");\n/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(ol_proj__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var geoportal_access_lib__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! geoportal-access-lib */ \"./node_modules/geoportal-access-lib/src/Gp.js\");\n/* harmony import */ var _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../Common/Utils/LoggerByDefault */ \"./src/Common/Utils/LoggerByDefault.js\");\n/* harmony import */ var _Common_Utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../Common/Utils */ \"./src/Common/Utils.js\");\n/* harmony import */ var _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../Common/Utils/SelectorID */ \"./src/Common/Utils/SelectorID.js\");\n/* harmony import */ var _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Utils/Markers */ \"./src/OpenLayers/Controls/Utils/Markers.js\");\n/* harmony import */ var _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../Common/Utils/Draggable */ \"./src/Common/Utils/Draggable.js\");\n/* harmony import */ var _Utils_Interactions__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Utils/Interactions */ \"./src/OpenLayers/Controls/Utils/Interactions.js\");\n/* harmony import */ var _LocationSelector__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./LocationSelector */ \"./src/OpenLayers/Controls/LocationSelector.js\");\n/* harmony import */ var _Export__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Export */ \"./src/OpenLayers/Controls/Export.js\");\n/* harmony import */ var _LayerSwitcher__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./LayerSwitcher */ \"./src/OpenLayers/Controls/LayerSwitcher.js\");\n/* harmony import */ var _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../Formats/GeoJSON */ \"./src/OpenLayers/Formats/GeoJSON.js\");\n/* harmony import */ var _Common_Controls_RouteDOM__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../Common/Controls/RouteDOM */ \"./src/Common/Controls/RouteDOM.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n// import CSS\n\n// import OpenLayers\n\n\n\n\n\n// import GeoJSON from \"ol/format/GeoJSON\";\n\n\n\n\n// import geoportal library access\n\n// import local\n\n\n\n\n\n\n// import local with ol dependencies\n\n\n\n\n// DOM\n\nvar logger = _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_11__[\"default\"].getLogger(\"route\");\n\n/**\n * @classdesc\n *\n * Route Control.\n *\n * @constructor\n * @alias ol.control.Route\n * @type {ol.control.Route}\n * @extends {ol.control.Control}\n * @param {Object} options - route control options\n * @param {String} [options.apiKey] - API key for services call (route and autocomplete services). The key \"calcul\" is used by default.\n * @param {Boolean} [options.ssl = true] - use of ssl or not (default true, service requested using https protocol)\n * @param {Boolean} [options.collapsed = true] - Specify if widget has to be collapsed (true) or not (false) on map loading. Default is true.\n * @param {Boolean} [options.draggable = false] - Specify if widget is draggable\n * @param {Boolean|Object} [options.export = false] - Specify if button \"Export\" is displayed. For the use of the options of the \"Export\" control, see {@link ol.control.Export}\n * @param {Object} [options.exclusions = {\"toll\" : false, \"tunnel\" : false, \"bridge\" : false}] - list of exclusions with status (true = checked). By default : no exclusions checked.\n * @param {Array} [options.graphs = [\"Voiture\", \"Pieton\"]] - list of resources, by default : [\"Voiture\", \"Pieton\"]. The first element is selected.\n * @param {Object} [options.routeOptions = {}] - route service options. see {@link http://ignf.github.io/geoportal-access-lib/latest/jsdoc/module-Services.html#~route Gp.Services.route()} to know all route options.\n * @param {Object} [options.autocompleteOptions = {}] - autocomplete service options. see {@link http://ignf.github.io/geoportal-access-lib/latest/jsdoc/module-Services.html#~autoComplete Gp.Services.autoComplete()} to know all autocomplete options\n * @param {Object} [options.markersOpts] - options to use your own markers. Object properties can be \"departure\", \"stages\" or \"arrival\". Corresponding value is an object with following properties :\n * @param {String} [options.markersOpts.url] - marker base64 encoded url (ex \"data:image/png;base64,...\"\"). Mandatory for a custom marker\n * @param {Array} [options.markersOpts.offset] - Offsets in pixels used when positioning the overlay. The first element in the array is the horizontal offset. A positive value shifts the overlay right. The second element in the array is the vertical offset. A positive value shifts the overlay down. Default is [0, 0]. (see http://openlayers.org/en/latest/apidoc/ol.Overlay.html)\n * @param {Object} [options.layerDescription = {}] - Layer informations to be displayed in LayerSwitcher widget (only if a LayerSwitcher is also added to the map)\n * @param {String} [options.layerDescription.title = \"Itinéraire\"] - Layer title to be displayed in LayerSwitcher\n * @param {String} [options.layerDescription.description = \"Itinéraire basé sur un graphe\"] - Layer description to be displayed in LayerSwitcher\n * @fires route:drawstart\n * @fires route:drawend\n * @fires route:compute\n * @fires export:compute\n * @example\n * var route = ol.control.Route({\n * \"collapsed\" : true\n * \"draggable\" : true,\n * \"export\" : false,\n * \"exclusions\" : {\n * \"toll\" : true,\n * \"bridge\" : false,\n * \"tunnel\" : true\n * },\n * \"graphs\" : ['Pieton', 'Voiture'],\n * \"markersOpts\" : {\n * \"departure\" : {\n * \"url\" : \"...\",\n * \"offset\" : [0,0]\n * },\n * \"stages\" : {\n * \"url\" : \"...\",\n * \"offset\" : [0,0]\n * },\n * \"arrival\" : {\n * \"url\" : \"...\",\n * \"offset\" : [0,0]\n * }\n * }\n * \"autocompleteOptions\" : {},\n * \"routeOptions\" : {}\n * });\n *\n * // if you want to pluggued the control Export with options :\n * var route = new ol.control.Route({\n * export : {\n * name : \"export\",\n * format : \"geojson\",\n * title : \"Exporter\",\n * menu : false\n * }\n * });\n */\nvar Route = function (Control) {\n /**\n * See {@link ol.control.Route}\n * @module Route\n * @alias module:~Controls/Route\n * @param {*} options - options\n * @example\n * import Route from \"src/OpenLayers/Controls/Route\"\n */\n function Route(options) {\n options = options || {};\n if (!(this instanceof Route)) {\n throw new TypeError(\"ERROR CLASS_CONSTRUCTOR\");\n }\n\n // initialisation du composant\n this.initialize(options);\n\n // Widget main DOM container\n this._container = this._createMainContainerElement();\n this._containerElement = null;\n\n // on peut éventuellement encapsuler le composant dans une div passée par l'utilisateur\n if (options.element && options.element.appendChild) {\n // dans ce cas on stocke les deux container\n options.element.appendChild(this._container);\n this._containerElement = options.element;\n }\n\n // call ol.control.Control constructor\n Control.call(this, {\n element: this._containerElement || this._container,\n target: options.target,\n render: options.render\n });\n }\n\n // Inherits from ol.control.Control\n if (Control) Route.__proto__ = Control;\n\n /**\n * @lends module:Route\n */\n Route.prototype = Object.create(Control.prototype, {});\n\n // on récupère les méthodes de la classe commune RouteDOM\n _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign(Route.prototype, _Common_Controls_RouteDOM__WEBPACK_IMPORTED_MODULE_21__[\"default\"]);\n\n /**\n * Constructor (alias)\n * @private\n */\n Route.prototype.constructor = Route;\n\n /**\n * Overwrite OpenLayers setMap method\n *\n * @param {ol.Map} map - Map.\n */\n Route.prototype.setMap = function (map) {\n if (map) {\n // enrichissement du DOM du container\n this._container = this._initContainer(map);\n\n // ajout d'un bouton d'export\n if (this.options[\"export\"]) {\n var opts = _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign({\n control: this\n }, this.options[\"export\"]);\n this[\"export\"] = new _Export__WEBPACK_IMPORTED_MODULE_18__[\"default\"](opts);\n this[\"export\"].render();\n var self = this;\n this[\"export\"].on(\"export:compute\", function (e) {\n self.dispatchEvent({\n type: \"export:compute\",\n content: e.content\n });\n });\n }\n\n // mode \"draggable\"\n if (this.draggable) {\n _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_15__[\"default\"].dragElement(this._panelRouteContainer, this._panelHeaderRouteContainer, map.getTargetElement());\n }\n }\n\n // on appelle la méthode setMap originale d'OpenLayers\n Control.prototype.setMap.call(this, map);\n };\n\n // ################################################################### //\n // ##################### public methods ############################## //\n // ################################################################### //\n\n /**\n * Returns true if widget is collapsed (minimized), false otherwise\n *\n * @returns {Boolean} collapsed - true if widget is collapsed\n */\n Route.prototype.getCollapsed = function () {\n return this.collapsed;\n };\n\n /**\n * Collapse or display widget main container\n *\n * @param {Boolean} collapsed - True to collapse widget, False to display it\n */\n Route.prototype.setCollapsed = function (collapsed) {\n if (collapsed === undefined) {\n logger.log(\"[ERROR] Route:setCollapsed - missing collapsed parameter\");\n return;\n }\n if (collapsed && this.collapsed || !collapsed && !this.collapsed) {\n return;\n }\n if (collapsed) {\n document.getElementById(\"GProutePanelClose-\" + this._uid).click();\n } else {\n document.getElementById(\"GPshowRoute-\" + this._uid).click();\n }\n this.collapsed = collapsed;\n };\n\n /**\n * Get vector layer where geoJson route is drawn\n *\n * @returns {Object} layer - ol.layer.Vector route layer\n */\n Route.prototype.getLayer = function () {\n return this._geojsonSections;\n };\n\n /**\n * Set vector layer where route geometry is drawn\n *\n * @param {Object} layer - ol.layer.Vector route layer\n */\n Route.prototype.setLayer = function (layer) {\n if (!layer) {\n this._geojsonSections = null;\n return;\n }\n if (!(layer instanceof ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4___default.a)) {\n logger.log(\"no valid layer given for hosting drawn features.\");\n return;\n }\n\n // application des styles\n layer.setStyle(this._defaultFeatureStyle);\n // sauvegarde\n this._geojsonSections = layer;\n };\n\n /**\n * Get vector layer\n *\n * @returns {String} geojson - GeoJSON format layer\n */\n Route.prototype.getGeoJSON = function () {\n return JSON.stringify(this._geojsonObject);\n };\n\n /**\n * Set vector layer\n *\n * @param {String} geojson - GeoJSON format layer\n */\n Route.prototype.setGeoJSON = function (geojson) {\n try {\n this._geojsonObject = JSON.parse(geojson);\n } catch (e) {\n logger.log(\"no valid geojson given :\" + e.message);\n }\n };\n\n /**\n * Get route informations\n *\n * @returns {Object} data - route informations\n */\n Route.prototype.getData = function () {\n var points = [];\n for (var index = 0; index < this._currentPoints.length; index++) {\n var p = this._currentPoints[index];\n points.push(p.getCoordinate());\n }\n var data = {\n type: \"route\",\n points: points,\n transport: this._currentTransport,\n exclusions: this._currentExclusions,\n computation: this._currentComputation,\n results: {}\n };\n _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign(data.results, this._currentRouteInformations);\n return data;\n };\n\n /**\n * Set route data\n *\n * @param {Object} data - control informations\n * @param {String} data.transport - transport type\n * @param {String} data.computation - computation type\n * @param {Array} data.exclusions - list of exclusions\n * @param {Array} data.points - list of points : [[lon, lat]]\n * @param {Object} data.results - service response\n */\n Route.prototype.setData = function (data) {\n // INFO\n // transmettre toutes les informations necessaires pour reconstruire le panneau de resultats\n this._currentTransport = data.transport;\n this._currentComputation = data.computation;\n this._currentExclusions = data.exclusions;\n // INFO\n // nettoyer les points du calcul précedent\n for (var i = 0; i < this._currentPoints.length; i++) {\n var point = this._currentPoints[i];\n if (point.getCoordinate()) {\n // clean de l'objet sans declencher les evenements qui suppriment la couche précedente !\n // /!\\ point.clear()\n point.clearResults();\n // clean du dom\n var id = i + 1 + \"-\" + this._uid;\n document.getElementById(\"GPlocationOriginCoords_\" + id).value = \"\";\n document.getElementById(\"GPlocationOrigin_\" + id).value = \"\";\n document.getElementById(\"GPlocationPoint_\" + id).style.cssText = \"\";\n if (i > 0 && i < 6) {\n // on masque les points intermediaires\n document.getElementById(\"GPlocationPoint_\" + id).className = \"GPflexInput GPlocationStageFlexInputHidden\";\n }\n document.getElementById(\"GPlocationOriginPointer_\" + id).checked = false;\n document.getElementById(\"GPlocationOrigin_\" + id).className = \"GPlocationOriginVisible\";\n document.getElementById(\"GPlocationOriginCoords_\" + id).className = \"GPlocationOriginHidden\";\n }\n }\n // ajout des nouvelles coordonnnées\n for (var j = 0; j < data.points.length; j++) {\n var c = data.points[j];\n if (c) {\n this._currentPoints[j].setCoordinate(c, \"EPSG:4326\");\n }\n }\n this._currentRouteInformations = data.results;\n };\n\n /**\n * Get container\n *\n * @returns {DOMElement} container\n */\n Route.prototype.getContainer = function () {\n return this._container;\n };\n\n /**\n * Get default style\n *\n * @returns {ol.style} style\n */\n Route.prototype.getStyle = function () {\n return this._defaultFeatureStyle;\n };\n\n /**\n * This method is public.\n * It allows to init the control.\n */\n Route.prototype.init = function () {\n // INFO\n // reconstruire le panneau de resultats sans lancer de calcul\n // * construire la liste des points (cf. RouteDOM._createRoutePanelFormElement())\n // * construire les resultats\n\n // init points\n for (var index = 0; index < this._currentPoints.length; index++) {\n var point = this._currentPoints[index];\n var id = index + 1;\n var coordinate = point.getCoordinate();\n if (coordinate) {\n var input = document.getElementById(\"GPlocationOrigin_\" + id + \"-\" + this._uid);\n input.value = coordinate[1].toFixed(4) + \" / \" + coordinate[0].toFixed(4);\n if (index > 0 && index < 6) {\n document.getElementById(\"GPlocationPoint_\" + id + \"-\" + this._uid).className = \"GPflexInput GPlocationStageFlexInput\";\n }\n }\n }\n\n // add points into panel\n var points = document.getElementsByClassName(\"GPlocationPoint-\" + this._uid);\n this._addRouteResultsStagesValuesElement(points);\n\n // set transport mode\n var transportdiv;\n if (this._currentTransport === \"Pieton\") {\n transportdiv = document.getElementById(\"GProuteTransportPedestrian-\" + this._uid);\n if (transportdiv) {\n transportdiv.checked = \"true\";\n }\n } else {\n transportdiv = document.getElementById(\"GProuteTransportCar-\" + this._uid);\n if (transportdiv) {\n transportdiv.checked = \"true\";\n }\n }\n\n // set computation mode\n var computationdiv = document.getElementById(\"GProuteComputationSelect-\" + this._uid);\n if (computationdiv) {\n computationdiv.value = this._currentComputation;\n }\n\n // set exclusions\n var tollInput = document.getElementById(\"GProuteExclusionsToll-\" + this._uid);\n if (tollInput) {\n if (this._currentExclusions.indexOf(\"toll\") !== -1) {\n tollInput.checked = false;\n } else {\n tollInput.checked = true;\n }\n }\n var tunnelInput = document.getElementById(\"GProuteExclusionsTunnel-\" + this._uid);\n if (tunnelInput) {\n if (this._currentExclusions.indexOf(\"tunnel\") !== -1) {\n tunnelInput.checked = false;\n } else {\n tunnelInput.checked = true;\n }\n }\n var bridgeInput = document.getElementById(\"GProuteExclusionsBridge-\" + this._uid);\n if (bridgeInput) {\n if (this._currentExclusions.indexOf(\"bridge\") !== -1) {\n bridgeInput.checked = false;\n } else {\n bridgeInput.checked = true;\n }\n }\n var distance = this._currentRouteInformations.totalDistance;\n var duration = this._currentRouteInformations.totalTime;\n\n // Détails avec simplifications des troncons\n var instructions = this._simplifiedInstructions(this._currentRouteInformations.routeInstructions);\n if (instructions) {\n this._fillRouteResultsDetailsContainer(distance, duration, instructions);\n }\n\n // affichage du panneau de details du controle !\n this._formRouteContainer.className = \"GProuteComponentHidden\";\n this._hideWaitingContainer();\n this._resultsRouteContainer.className = \"\";\n };\n\n /**\n * Clean UI : reinit control\n */\n Route.prototype.clean = function () {\n this._currentTransport = null;\n this._currentExclusions = [];\n this._currentComputation = null;\n for (var i = 0; i < this._currentPoints.length; i++) {\n this._currentPoints[i].clear();\n }\n this._removeRouteStepLocations();\n this._clearRouteInputOptions();\n this._clearRouteResultsDetails();\n this.setLayer();\n this._formRouteContainer.className = \"\";\n this._resultsRouteContainer.className = \"GProuteComponentHidden\";\n };\n\n // ################################################################### //\n // ##################### init component ############################## //\n // ################################################################### //\n\n /**\n * Initialize route control (called by Route constructor)\n *\n * @param {Object} options - constructor options\n * @private\n */\n Route.prototype.initialize = function (options) {\n this._checkInputOptions(options);\n\n // set default options\n this.options = {\n collapsed: true,\n draggable: false,\n \"export\": false,\n graphs: [\"Voiture\", \"Pieton\"],\n exclusions: {\n toll: false,\n tunnel: false,\n bridge: false\n },\n routeOptions: {},\n autocompleteOptions: {},\n layerDescription: {\n title: \"Itinéraire\",\n description: \"Itinéraire basé sur un graphe\"\n }\n };\n\n // merge with user options\n _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign(this.options, options);\n\n // cas particulier des markers par défaut\n var defaultMarkersOpts = {\n departure: {\n url: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"][\"red\"],\n offset: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"].defaultOffset\n },\n stages: {\n url: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"][\"lightOrange\"],\n offset: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"].defaultOffset\n },\n arrival: {\n url: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"][\"darkOrange\"],\n offset: _Utils_Markers__WEBPACK_IMPORTED_MODULE_14__[\"default\"].defaultOffset\n }\n };\n // on récupère les options de chaque type de marker si spécifié\n this.options.markersOpts = _Common_Utils__WEBPACK_IMPORTED_MODULE_12__[\"default\"].assign(defaultMarkersOpts, options.markersOpts);\n\n /** {Boolean} specify if Route control is collapsed (true) or not (false) */\n this.collapsed = this.options.collapsed;\n\n /** {Boolean} specify if Route control is draggable (true) or not (false) */\n this.draggable = this.options.draggable;\n this._uid = _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_13__[\"default\"].generate();\n\n // containers principaux\n this._panelRouteContainer = null;\n this._panelHeaderRouteContainer = null;\n this._waitingContainer = null;\n this._formRouteContainer = null;\n this._resultsRouteContainer = null;\n this._showRouteExclusionsElement = null;\n\n // liste de points selectionnée\n this._currentPoints = [];\n\n // Mode de transport selectionné : 'Voiture' ou 'Pieton'\n this._currentTransport = null;\n this._initTransport();\n\n // Mode de calcul selectionné : 'Plus rapide' ou 'plus court'\n this._currentComputation = null;\n this._initComputation();\n\n // Exclusions selectionnées : Tunnel, Toll et Bridge\n this._currentExclusions = [];\n this._initExclusions();\n\n // si un calcul est en cours ou non\n this._waiting = false;\n // timer pour cacher la patience après un certain temps\n this._timer = null;\n\n // la geometrie du parcours\n this._geojsonRoute = null;\n\n // la geometrie des troncons\n this._geojsonSections = null;\n\n // la geometrie des troncons au format GeoJSON\n this._geojsonObject = null;\n\n // bouton export\n this[\"export\"] = null;\n\n // le container de la popup (pour les troncons selectionnés)\n this._popupContent = null;\n this._popupDiv = this._initPopupDiv();\n // l'overlay ol.Overlay correspondant à la popup (pour les troncons selectionnés)\n this._popupOverlay = null;\n\n // ol.interaction.Select associées à la couche des résultats (troncons)\n this._resultsSelectInteraction = null;\n this._resultsHoverInteraction = null;\n\n // styles pour les sélections des features\n this._defaultFeatureStyle = new ol_style__WEBPACK_IMPORTED_MODULE_8__[\"Style\"]({\n stroke: new ol_style__WEBPACK_IMPORTED_MODULE_8__[\"Stroke\"]({\n color: \"rgba(0,183,152,0.9)\",\n width: 12\n })\n });\n this._selectedFeatureStyle = new ol_style__WEBPACK_IMPORTED_MODULE_8__[\"Style\"]({\n stroke: new ol_style__WEBPACK_IMPORTED_MODULE_8__[\"Stroke\"]({\n color: \"rgba(255,102,0,0.9)\",\n width: 12\n })\n });\n\n // reponse du service\n // Ex. {\n // totalTime, totalDistance, bbox, routeGeometry,\n // routeInstructions : [{duration, distance, code, instruction, bbox, geometry}]\n // }\n this._currentRouteInformations = null;\n\n // liste des ressources avec droits par service\n // Ex. {\n // \"Route\" : {\n // key : \"ger4g456re45er456t4er5ge5\",\n // resources : [\"Pieton\", \"Voiture\"]\n // }\n // }\n this._resources = {};\n\n // listener key for event on pointermove or moveend map\n this.listenerKey = null;\n };\n\n /**\n * this method is called by this.initialize()\n *\n * @param {Object} options - options\n *\n * @private\n */\n Route.prototype._checkInputOptions = function (options) {\n // vérification des options\n // mode de transport\n if (options.graphs) {\n // on ne permet pas de passer un tableau vide : on spécifie au moins un graph\n if (Array.isArray(options.graphs) && options.graphs.length) {\n for (var i = 0; i < options.graphs.length; i++) {\n if (typeof options.graphs[i] === \"string\") {\n if (options.graphs[i].toLowerCase() === \"pieton\") {\n options.graphs[i] = \"Pieton\";\n }\n if (options.graphs[i].toLowerCase() === \"voiture\") {\n options.graphs[i] = \"Voiture\";\n }\n } else {\n logger.log(\"[ol.control.Route] ERROR : parameter 'graphs' elements should be of type 'string'\");\n options.graphs[i] = null;\n }\n }\n } else {\n logger.warn(\"'graphs' parameter should be an array\");\n options.graphs = null;\n }\n }\n\n // collapsed\n if (options.collapsed === \"true\") {\n options.collapsed = true;\n }\n if (options.collapsed === \"false\") {\n options.collapsed = false;\n }\n };\n\n /**\n * initialize component container (DOM)\n *\n * @param {Object} map - the map\n *\n * @returns {DOMElement} DOM element\n *\n * @private\n */\n Route.prototype._initContainer = function (map) {\n var _this = this;\n // get main container\n var container = this._container;\n var inputShow = this._showRouteContainer = this._createShowRouteElement();\n container.appendChild(inputShow);\n\n // mode \"collapsed\"\n if (!this.collapsed) {\n inputShow.checked = true;\n }\n var picto = this._createShowRoutePictoElement();\n container.appendChild(picto);\n var routePanel = this._panelRouteContainer = this._createRoutePanelElement();\n\n // header form\n var routeHeader = this._panelHeaderRouteContainer = this._createRoutePanelHeaderElement();\n routePanel.appendChild(routeHeader);\n\n // form\n var routeForm = this._formRouteContainer = this._createRoutePanelFormElement();\n\n // form: menu des points\n var points = this._createRoutePanelFormPointsElement(map);\n for (var i = 0; i < points.length; i++) {\n routeForm.appendChild(points[i]);\n }\n\n // form: menu des modes\n var choice = this._createRoutePanelFormModeChoiceElement();\n choice.appendChild(this._createRoutePanelFormModeChoiceTransportElement(this.options.graphs));\n choice.appendChild(this._createRoutePanelFormModeChoiceComputeElement());\n routeForm.appendChild(choice);\n\n // form: menu des exclusions\n routeForm.appendChild(this._createShowRouteExclusionsElement());\n this._showRouteExclusionsElement = this._createShowRouteExclusionsPictoElement();\n routeForm.appendChild(this._showRouteExclusionsElement);\n var exclusion = this._createRoutePanelFormExclusionsElement();\n exclusion.appendChild(this._createRoutePanelFormExclusionOptionsElement(this.options.exclusions));\n routeForm.appendChild(exclusion);\n var divReset = this._createRouteFormResetElement();\n routeForm.appendChild(divReset);\n\n // form: bouton du calcul\n var submit = this._createRouteSubmitFormElement();\n routeForm.appendChild(submit);\n routePanel.appendChild(routeForm);\n\n // results\n var routeResults = this._resultsRouteContainer = this._createRoutePanelResultsElement();\n routePanel.appendChild(routeResults);\n\n // waiting\n var waiting = this._waitingContainer = this._createRouteWaitingElement();\n routePanel.appendChild(waiting);\n container.appendChild(routePanel);\n // hide autocomplete suggested locations on container click\n if (container.addEventListener) {\n container.addEventListener(\"click\", function (e) {\n return _this._hideRouteSuggestedLocations(e);\n });\n }\n return container;\n };\n\n // ################################################################### //\n // ####################### init application ########################## //\n // ################################################################### //\n\n /**\n * this method is called by the constructor and initialize transport mode\n * (\"Voiture\" ou \"Pieton\")\n *\n * @private\n */\n Route.prototype._initTransport = function () {\n // Mode de transport selectionné\n this._currentTransport = \"Voiture\"; // par defaut\n\n // par defaut\n var transport = this.options.graphs;\n if (!transport || transport.length === 0) {\n this.options.graphs = [\"Voiture\", \"Pieton\"];\n }\n\n // option\n if (Array.isArray(transport) && transport.length) {\n // FIXME pb si le 1er graphe n'est pas une ressource connue !\n if (transport[0] === \"Voiture\" || transport[0] === \"Pieton\") {\n this._currentTransport = transport[0];\n }\n }\n\n // TODO option sur le service\n var serviceOptions = this.options.routeOptions;\n if (serviceOptions.graph) {\n this._currentTransport = serviceOptions.graph;\n }\n };\n\n /**\n * this method is called by the constructor and initialize computation mode\n * (fastest or shortest)\n *\n * @private\n */\n Route.prototype._initComputation = function () {\n // Mode de calcul selectionné\n this._currentComputation = \"fastest\"; // par defaut\n\n // TODO option sur le service\n var serviceOptions = this.options.routeOptions;\n if (serviceOptions.routePreference) {\n this._currentComputation = serviceOptions.routePreference;\n }\n };\n\n /**\n * this method is called by the constructor and initialize exclusions\n *\n * @private\n */\n Route.prototype._initExclusions = function () {\n // Exclusions selectionnées : Tunnel, Toll et Bridge\n this._currentExclusions = []; // par defaut\n\n // par defaut\n var exclusion = this.options.exclusions;\n if (!exclusion || _typeof(exclusion) === \"object\" && Object.keys(exclusion).length === 0) {\n this.options.exclusions = {\n toll: false,\n tunnel: false,\n bridge: false\n };\n }\n\n // option\n if (exclusion && _typeof(exclusion) === \"object\" && Object.keys(exclusion).length) {\n for (var k in exclusion) {\n if (exclusion.hasOwnProperty(k)) {\n if (exclusion[k]) {\n this._currentExclusions.push(k);\n }\n }\n }\n }\n\n // TODO option sur le service\n var serviceOptions = this.options.routeOptions;\n if (Array.isArray(serviceOptions.exclusions)) {\n this._currentExclusions = serviceOptions.exclusions;\n }\n };\n\n /**\n * this method is called by this.initialize() and initialize popup div\n * (to display results information on route result click)\n *\n * @return {Object} element - DOM element for popup\n * @private\n */\n Route.prototype._initPopupDiv = function () {\n var context = this;\n var element = document.createElement(\"div\");\n element.className = \"gp-feature-info-div\";\n var closer = document.createElement(\"input\");\n closer.type = \"button\";\n closer.className = \"gp-styling-button closer\";\n // on closer click : remove popup\n closer.onclick = function () {\n if (context._popupOverlay != null) {\n context._popupOverlay.setPosition(undefined);\n }\n return false;\n };\n this._popupContent = document.createElement(\"div\");\n this._popupContent.className = \"gp-features-content-div\";\n element.appendChild(this._popupContent);\n element.appendChild(closer);\n return element;\n };\n\n // ################################################################### //\n // ############################## DOM ################################ //\n // ################################################################### //\n\n /**\n * Create List Points\n * Overwrite RouteDOM method !\n *\n * @param {Object} map - the map\n *\n * @returns {Array} List DOM element\n * @private\n */\n Route.prototype._createRoutePanelFormPointsElement = function (map) {\n var points = [];\n var count = 1;\n\n // point de depart\n var start = new _LocationSelector__WEBPACK_IMPORTED_MODULE_17__[\"default\"]({\n apiKey: this.options.apiKey || null,\n tag: {\n id: count,\n groupId: this._uid,\n markerOpts: this.options.markersOpts[\"departure\"],\n label: \"Départ\",\n display: true\n },\n autocompleteOptions: this.options.autocompleteOptions || null\n });\n start.setMap(map);\n // on ajoute des écouteurs d'évènements (en plus de ceux de LocationSelector),\n // pour prendre en compte les CSS spécifiques de GProuteForm\n this._addFormPointsEventListeners(start);\n points.push(start._container);\n this._currentPoints.push(start);\n\n // points intermediaires\n for (count = 2; count < 7; count++) {\n var step = new _LocationSelector__WEBPACK_IMPORTED_MODULE_17__[\"default\"]({\n apiKey: this.options.apiKey || null,\n tag: {\n id: count,\n groupId: this._uid,\n label: \"Etape\",\n markerOpts: this.options.markersOpts[\"stages\"],\n display: false,\n removeOption: true\n },\n autocompleteOptions: this.options.autocompleteOptions || null\n });\n step.setMap(map);\n this._addFormPointsEventListeners(step);\n points.push(step._container);\n this._currentPoints.push(step);\n }\n\n // point d'arrivée\n var end = new _LocationSelector__WEBPACK_IMPORTED_MODULE_17__[\"default\"]({\n apiKey: this.options.apiKey || null,\n tag: {\n id: count,\n groupId: this._uid,\n markerOpts: this.options.markersOpts[\"arrival\"],\n label: \"Arrivée\",\n display: true,\n addOption: true\n },\n autocompleteOptions: this.options.autocompleteOptions || null\n });\n end.setMap(map);\n this._addFormPointsEventListeners(end);\n points.push(end._container);\n this._currentPoints.push(end);\n return points;\n };\n\n /**\n * Attach events listeners to route form points (locationSelector)\n *\n * @param {Object} formPoint - route form point (locationSelector)\n * @private\n */\n Route.prototype._addFormPointsEventListeners = function (formPoint) {\n var _this2 = this;\n if (!formPoint) {\n return;\n }\n if (formPoint._inputLabelContainer.addEventListener) {\n // display form on origin label click\n formPoint._inputLabelContainer.addEventListener(\"click\", function (e) {\n return _this2.onRouteOriginLabelClick(e);\n });\n // minimize form on input show pointer, and set map event listeners (see this.onRouteOriginPointerClick)\n formPoint._inputShowPointer.addEventListener(\"click\", function (e) {\n return _this2.onRouteOriginPointerClick(e, formPoint);\n });\n if (formPoint._removePointElement) {\n formPoint._removePointElement.addEventListener(\"click\", function (e) {\n logger.trace(\"click on _removePointElement\", e);\n // Moving up exclusions picto\n // var exclusionsPictoTop = context._showRouteExclusionsElement.style.top;\n // context._showRouteExclusionsElement.style.top = (parseInt(exclusionsPictoTop, 10) - 33).toString() + \"px\";\n });\n }\n if (formPoint._addPointElement) {\n formPoint._addPointElement.addEventListener(\"click\", function (e) {\n logger.trace(\"click on _addPointElement\", e);\n // Moving down exclusions picto\n // var exclusionsPictoTop = context._showRouteExclusionsElement.style.top;\n // context._showRouteExclusionsElement.style.top = (parseInt(exclusionsPictoTop, 10) + 33).toString() + \"px\";\n });\n }\n } else if (formPoint._inputLabelContainer.attachEvent) {\n // attachEvent: Internet explorer event listeners management\n formPoint._inputLabelContainer.attachEvent(\"onclick\", function (e) {\n return _this2.onRouteOriginLabelClick(e);\n });\n formPoint._inputShowPointer.attachEvent(\"onclick\", function (e) {\n return _this2.onRouteOriginPointerClick(e, formPoint);\n });\n if (formPoint._removePointElement) {\n formPoint._removePointElement.attachEvent(\"onclick\", function (e) {\n // Moving up exclusions picto\n // var exclusionsPictoTop = context._showRouteExclusionsElement.style.top;\n // context._showRouteExclusionsElement.style.top = (parseInt(exclusionsPictoTop, 10) - 33).toString() + \"px\";\n });\n }\n if (formPoint._addPointElement) {\n formPoint._addPointElement.attachEvent(\"onclick\", function (e) {\n // Moving down exclusions picto\n // var exclusionsPictoTop = context._showRouteExclusionsElement.style.top;\n // context._showRouteExclusionsElement.style.top = (parseInt(exclusionsPictoTop, 10) + 33).toString() + \"px\";\n });\n }\n }\n };\n\n // ################################################################### //\n // ####################### handlers events to dom #################### //\n // ################################################################### //\n\n /**\n * this method is called by event 'submit' on 'GProuteForm' tag form\n * (cf. this._createRoutePanelFormElement), and it displays the results.\n *\n * @param {Object} options - options\n * @private\n */\n Route.prototype.onRouteComputationSubmit = function (options) {\n logger.log(\"onRouteComputationSubmit\", options);\n\n // FIXME on lance une requête en EPSG:4326, les coordonnées\n // doivent donc être du type cad en lat/lon.\n // or, BUG du service du calcul d'itineraire car les\n // coordonnées envoyées doivent être en lon/lat avec une SRS en EPSG:4326 !?\n // sinon, ça plante...\n\n // Liste des points\n var points = this._currentPoints;\n\n // - point de depart (info: points[0].getCoordinate est du type [lon, lat], en EPSG:4326)\n var start;\n if (points[0] && points[0].getCoordinate) {\n var startCoordinate = points[0].getCoordinate();\n start = {\n x: startCoordinate[0],\n y: startCoordinate[1]\n };\n logger.log(\"start\", start);\n }\n\n // - point d'arrivée\n var end;\n var endPoint = points[points.length - 1];\n if (endPoint && endPoint.getCoordinate) {\n var endCoordinate = endPoint.getCoordinate();\n end = {\n x: endCoordinate[0],\n y: endCoordinate[1]\n };\n logger.log(\"end\", end);\n }\n\n // - les étapes\n var step = [];\n for (var i = 1; i < points.length - 1; i++) {\n if (points[i] && points[i].getCoordinate) {\n var iCoordinate = points[i].getCoordinate();\n if (iCoordinate) {\n var coordinate = {\n x: iCoordinate[0],\n y: iCoordinate[1]\n };\n logger.log(\"step\", coordinate);\n step.push(coordinate);\n }\n }\n }\n\n // valeurs selectionnées\n this._currentTransport = options.transport;\n this._currentComputation = options.computation;\n this._currentExclusions = options.exclusions;\n\n // on recupere les éventuelles options du service passées par l'utilisateur\n var routeOptions = this.options.routeOptions;\n\n // OVERLOAD : la resource bd-topo-osrm ne gère pas le calcul piéton en mode fastest\n // dans ce cas, on utilise valhalla dans le cas d'une utilisation par défaut du widget\n // sans paramétrage de resource explicitement demandé\n var routeResource;\n if (!routeOptions.resource) {\n if (this._currentComputation === \"fastest\" && this._currentTransport === \"Pieton\") {\n routeResource = \"bdtopo-valhalla\";\n }\n } else {\n routeResource = routeOptions.resource;\n }\n // gestion du protocole et du timeout\n // le timeout est indispensable sur le protocole JSONP.\n var _protocol = routeOptions.protocol || \"XHR\";\n var _timeout = routeOptions.timeOut || 0;\n if (_protocol === \"JSONP\" && _timeout === 0) {\n // FIXME le timeout est obligatoire pour ce type de protocole...\n _timeout = 15000;\n }\n\n // gestion des callback\n var bOnFailure = !!(routeOptions.onFailure !== null && typeof routeOptions.onFailure === \"function\"); // cast variable to boolean\n var bOnSuccess = !!(routeOptions.onSuccess !== null && typeof routeOptions.onSuccess === \"function\");\n\n // on met en place l'affichage des resultats dans la fenetre de resultats.\n var context = this;\n this._requestRouting({\n startPoint: start,\n endPoint: end,\n viaPoints: step,\n graph: routeOptions.graph || this._currentTransport,\n routePreference: routeOptions.routePreference || this._currentComputation,\n exclusions: routeOptions.exclusions || this._currentExclusions,\n geometryInInstructions: true,\n distanceUnit: \"m\",\n timeOut: _timeout,\n protocol: _protocol,\n resource: routeResource,\n // callback onSuccess\n onSuccess: function onSuccess(results) {\n logger.log(results);\n if (results) {\n context._fillRouteResultsDetails(results);\n }\n if (bOnSuccess) {\n routeOptions.onSuccess.call(context, results);\n }\n },\n // callback onFailure\n onFailure: function onFailure(error) {\n context._hideWaitingContainer();\n context._clearRouteResultsDetails();\n logger.log(error.message);\n if (bOnFailure) {\n routeOptions.onFailure.call(context, error);\n }\n }\n });\n };\n\n /**\n * this method is called by event 'click' on 'GPlocationOriginLabel' label\n * and set 'GProuteForm' CSS class to \"\" (normal)\n *\n * @param {Object} routeControl - context : route Control (this)\n * @private\n */\n Route.prototype.onRouteOriginLabelClick = function () {\n this._formRouteContainer.className = \"\";\n // on désactive l'écouteur d'événements sur la carte (pour ne pas placer un marker au clic)\n // map.un(\n // \"click\",\n // () => {\n // // on ne rétablit pas le mode \"normal\" si on est dans le panel des résultats (où className = \"GProuteComponentHidden\")\n // if (this._formRouteContainer.className === \"GProuteFormMini\") {\n // this._formRouteContainer.className = \"\";\n // }\n // }\n // );\n Object(ol_Observable__WEBPACK_IMPORTED_MODULE_2__[\"unByKey\"])(this.listenerKey);\n this.dispatchEvent(\"route:drawend\");\n };\n\n /**\n * this method is called by event 'click' on 'GPlocationOriginPointerImg' label\n * and display or minimize 'GProuteForm', using CSS class (\"GProuteFormMini\" or \"\")\n *\n * @param {Object} e - context : route Control (equivalent to this)\n * @param {Object} locationSelector - context : locationSelector input (one of this._currentPoints)\n * @private\n */\n Route.prototype.onRouteOriginPointerClick = function (e, locationSelector) {\n var _this3 = this;\n var map = this.getMap();\n if (locationSelector._inputShowPointerContainer.checked) {\n // au click sur l'input pour pointer sur la carte: on minimise le formulaire\n this._formRouteContainer.className = \"GProuteFormMini\";\n // et au clic sur la carte, on réaffichera le formulaire \"normal\"\n this.listenerKey = map.on(\"click\", function () {\n // on ne rétablit pas le mode \"normal\" si on est dans le panel des résultats (où className = \"GProuteComponentHidden\")\n if (_this3._formRouteContainer.className === \"GProuteFormMini\") {\n _this3._formRouteContainer.className = \"\";\n }\n Object(ol_Observable__WEBPACK_IMPORTED_MODULE_2__[\"unByKey\"])(_this3.listenerKey);\n /**\n * event triggered at the end of drawing input\n *\n * @event route:drawend\n */\n _this3.dispatchEvent(\"route:drawend\");\n });\n /**\n * event triggered at the start of drawing input\n *\n * @event route:drawstart\n */\n this.dispatchEvent(\"route:drawstart\");\n } else {\n // si on déselectionne le pointer, on rétablit le formulaire en mode normal\n this._formRouteContainer.className = \"\";\n // et on enlève l'écouteur d'évènement sur la carte\n // map.un(\n // \"click\",\n // () => {\n // // on ne rétablit pas le mode \"normal\" si on est dans le panel des résultats (où className = \"GProuteComponentHidden\")\n // if (this._formRouteContainer.className === \"GProuteFormMini\") {\n // this._formRouteContainer.className = \"\";\n // }\n // }\n // );\n Object(ol_Observable__WEBPACK_IMPORTED_MODULE_2__[\"unByKey\"])(this.listenerKey);\n this.dispatchEvent(\"route:drawend\");\n }\n };\n\n /**\n * this method is called by event 'click' on 'GPshowRoutePicto'\n * tag label (cf. this._createShowRoutePictoElement),\n * and it cleans all value of input.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onShowRoutePanelClick = function (e) {\n var map = this.getMap();\n // on supprime toutes les interactions\n _Utils_Interactions__WEBPACK_IMPORTED_MODULE_16__[\"default\"].unset(map);\n // clean !\n if (!this._geojsonSections && !this._waiting) {\n this._clear();\n }\n this.collapsed = document.getElementById(\"GPshowRoute-\" + this._uid).checked;\n // on génère nous même l'evenement OpenLayers de changement de pté\n // (utiliser ol.control.Route.on(\"change:collapsed\", function ) pour s'abonner à cet évènement)\n this.dispatchEvent(\"change:collapsed\");\n };\n\n /**\n * this method is called by event 'change' on 'GProuteComputationSelect' tag select\n * (cf. this._createRoutePanelFormModeChoiceComputeElement).\n * this value is saved as a parameter for the service route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteModeComputationChange = function (e) {\n var idx = e.target.selectedIndex;\n var value = e.target.options[idx].value;\n if (!value) {\n return;\n }\n logger.log(value);\n this._currentComputation = value;\n };\n\n /**\n * this method is called by event 'change' on 'GProuteResultsComputationSelect' tag select\n * (cf. this._createRouteResultsElement).\n * this value is saved as a parameter for the service route,\n * and this launches the route request !\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteModeComputationChangeAndRun = function (e) {\n // event choice computation\n this.onRouteModeComputationChange(e);\n\n // clean avant un nouveau calcul !\n this._clearRouteResultsDetails();\n this._clearRouteResultsGeometry();\n this._clearRouteResultsFeatureGeometry();\n\n // submit request\n this.onRouteComputationSubmit({\n computation: this._currentComputation,\n transport: this._currentTransport,\n exclusions: this._currentExclusions\n });\n };\n\n /**\n * this method is called by event 'change' on 'GProuteTransportCar' or 'GProuteTransportPedestrian' tag input\n * (cf. this._createRoutePanelFormModeChoiceTransportElement).\n * this value is saved as a parameter for the service route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteModeTransportChange = function (e) {\n var value = e.target.value;\n if (!value) {\n return;\n }\n this._currentTransport = value;\n };\n\n /**\n * TODO this method is called by event 'click' on 'GPshowRouteExclusionsPicto' tag input\n * (cf. this._createShowRouteExclusionsPictoElement), and it displays the panel options of exclusions.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onShowRouteExclusionsClick = function (e) {\n logger.log(\"onShowRouteExclusionsClick\", e);\n // FIXME not use ?!\n };\n\n /**\n * this method is called by event 'change' on 'GProuteExclusionsToll'\n * or 'GProuteExclusionsTunnel' or 'GProuteExclusionsBridge' tag input\n * (cf. this._createRoutePanelFormExclusionOptionsElement).\n * this value is saved as a parameter for the service route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteExclusionsChange = function (e) {\n var value = e.target.value;\n var checked = e.target.checked;\n if (!value || typeof value !== \"string\") {\n return;\n }\n value = value.toLowerCase();\n var bFound = false;\n var iFound = null;\n for (var i = 0; i < this._currentExclusions.length; i++) {\n if (this._currentExclusions[i] === value) {\n iFound = i;\n bFound = true;\n }\n }\n // on l'ajoute si la valeur n'existe pas et est déselectionnée\n // info : checked = passage autorisé (ce n'est pas une exclusion)\n if (!bFound && !checked) {\n this._currentExclusions.push(value);\n }\n // on la retire si la valeur existe et est selectionnée\n if (bFound && checked) {\n this._currentExclusions.splice(iFound, 1);\n }\n };\n\n /**\n * this method is called by event 'click' on 'GProuteReset'\n * tag label (cf. this._createRouteFormResetElement),\n * and it cleans all route input options and results.\n *\n * @private\n */\n Route.prototype.onRouteResetClick = function () {\n // clear points\n var currentPoints = this._currentPoints;\n for (var i = 0; i < currentPoints.length; i++) {\n currentPoints[i].clear();\n }\n\n // clear results\n this._clear();\n this._clearRouteInputOptions();\n };\n\n /**\n * this method is called by event 'click' on 'GProuteSubmit'\n * tag label (cf. this._createRouteSubmitFormElement),\n * and it cleans the route geometry.\n *\n * @private\n */\n Route.prototype.onShowRouteResultsNewClick = function () {\n // clean avant un nouveau calcul !\n this._clearRouteResultsDetails();\n this._clearRouteResultsGeometry();\n this._clearRouteResultsFeatureGeometry();\n };\n\n /**\n * this method is called by event 'mouseover' on 'GProuteResultsDetailsInstruction_'\n * tag label (cf. this._addRouteResultsDetailsElement),\n * and it makes a style on feature route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteResultsDetailsMouseOver = function (e) {\n // récupération de l'id de l'instruction survolée\n var tagid = e.target.id; // ex GProuteResultsDetailsInstruction_125\n var idx = tagid.substring(tagid.indexOf(\"_\") + 1); // ex. 125\n\n // on passe le texte en gras\n if (e.target.classList) {\n e.target.classList.add(\"GProuteResultsDetailsInstructionHighlight\");\n }\n if (!this._geojsonSections) {\n return;\n }\n\n // on récupère l'entité correspondante à l'instruction survolée\n var f = this._geojsonSections.getSource().getFeatureById(parseInt(idx, 10));\n // et on lui affecte un nouveau style\n f.setStyle(this._selectedFeatureStyle);\n };\n\n /**\n * this method is called by event 'mouseout' on 'GProuteResultsDetailsInstruction_'\n * tag label (cf. this._addRouteResultsDetailsElement),\n * and it deletes a style on feature route.\n *\n * @param {Object} e - HTMLElement\n * @private\n */\n Route.prototype.onRouteResultsDetailsMouseOut = function (e) {\n // récupération de l'id de l'instruction survolée\n var tagid = e.target.id; // ex GProuteResultsDetailsInstruction_125\n var idx = tagid.substring(tagid.indexOf(\"_\") + 1); // ex. 125\n\n // on repasse le texte en style normal\n if (e.target.classList) {\n e.target.classList.remove(\"GProuteResultsDetailsInstructionHighlight\");\n }\n if (!this._geojsonSections) {\n return;\n }\n // on récupère l'entité correspondante à l'instruction qui était survolée\n var f = this._geojsonSections.getSource().getFeatureById(parseInt(idx, 10));\n // et on lui réaffecte un style normal\n f.setStyle(null);\n };\n\n // ################################################################### //\n // ########################### Routing ############################### //\n // ############## (methods to request and results) ################### //\n\n /**\n * this method is called by this.onRouteComputationSubmit()\n * and executes a request to the service.\n *\n * @param {Object} options - route service request options\n * @param {Function} options.onSuccess - callback\n * @param {Function} options.onFailure - callback\n * @private\n */\n Route.prototype._requestRouting = function (options) {\n // on ne fait pas de requête si on n'a pas renseigné de parametres !\n if (!options || _typeof(options) === \"object\" && Object.keys(options).length === 0) {\n return;\n }\n\n // on ne fait pas de requête si\n // - la parametre 'startPoint' est vide !\n if (!options.startPoint) {\n return;\n }\n // - la parametre 'endPoint' est vide !\n if (!options.endPoint) {\n return;\n }\n\n // cas où la clef API n'est pas renseignée dans les options du service,\n // on utilise celle renseignée au niveau du controle (calcul par défaut)\n options.apiKey = this.options.routeOptions.apiKey || this.options.apiKey;\n\n // si l'utilisateur a spécifié le paramètre ssl au niveau du control, on s'en sert\n // true par défaut (https)\n if (typeof options.ssl !== \"boolean\") {\n if (typeof this.options.ssl === \"boolean\") {\n options.ssl = this.options.ssl;\n } else {\n options.ssl = true;\n }\n }\n logger.log(options);\n\n // mise en place de la patience\n this._displayWaitingContainer();\n\n // appel du service de calcul d'itinéraires\n geoportal_access_lib__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Services.route(options);\n };\n\n /**\n * this method is called by this.onRouteComputationSubmit() (in case of route computation success)\n * and fills the container of the route instructions list, distance and time\n * information, also, constructs the geometry route.\n *\n * @param {Object} results - results of the route calculation\n *\n * @private\n */\n Route.prototype._fillRouteResultsDetails = function (results) {\n // 1. Affichage des distances et durées\n var distance = results.totalDistance;\n var duration = results.totalTime;\n // Détails avec simplifications des troncons\n var instructions = this._simplifiedInstructions(results.routeInstructions);\n // var instructions = results.routeInstructions;\n\n if (instructions) {\n this._fillRouteResultsDetailsContainer(distance, duration, instructions);\n }\n\n // 2. Affichage des géométries\n // Geometrie simplifiée (si renseignée)\n var geometry = results.routeGeometry;\n if (geometry) {\n this._fillRouteResultsDetailsGeometry(geometry, this._defaultFeatureStyle);\n }\n\n // Geometries des tronçon (si renseignée)\n if (instructions && instructions[0].geometry) {\n this._fillRouteResultsDetailsFeatureGeometry(instructions, this._defaultFeatureStyle);\n }\n\n // 3. Zoom sur l'emprise de l'itinéraire (si spécifiée)\n var bbox = results.bbox;\n if (bbox) {\n var map = this.getMap();\n var bounds = [bbox.left, bbox.bottom, bbox.right, bbox.top];\n // reprojection dans la projection de la carte (bbox initialement en EPSG:4326)\n var mapProj = map.getView().getProjection().getCode();\n if (mapProj !== \"EPSG:4326\") {\n bounds = Object(ol_proj__WEBPACK_IMPORTED_MODULE_9__[\"transformExtent\"])(bounds, \"EPSG:4326\", mapProj);\n }\n map.getView().fit(bounds, map.getSize());\n }\n\n // sauvegarde de l'etat des resultats\n this._currentRouteInformations = results;\n\n /**\n * event triggered when the compute is finished\n *\n * @event route:compute\n * @property {Object} type - event\n * @property {Object} target - instance Route\n * @example\n * Route.on(\"route:compute\", function (e) {\n * console.log(e.target.getData());\n * })\n */\n this.dispatchEvent({\n type: \"route:compute\"\n });\n\n // mise à jour du controle !\n this._formRouteContainer.className = \"GProuteComponentHidden\";\n this._hideWaitingContainer();\n this._resultsRouteContainer.className = \"\";\n };\n\n /**\n * this method is called by this._fillRouteResultsDetails()\n * and fills the container of the route instructions list, distance and time\n * information.\n *\n * @param {Number} distance - distance\n * @param {Number} duration - duration\n * @param {Object[]} instructions - list of instructions\n *\n * @private\n */\n Route.prototype._fillRouteResultsDetailsContainer = function (distance, duration, instructions) {\n // Distance et Durée\n this._resultsRouteValuesContainer = this._addRouteResultsValuesElement(distance, duration, this._convertSecondsToTime);\n\n // Détails\n this._resultsRouteDetailsContainer = this._addRouteResultsDetailsElement(instructions, this._convertSecondsToTime);\n };\n\n /**\n * this method is called by this._fillRouteResultsDetails()\n * and constructs the geometry route.\n *\n * @param {Object} geometry - geoJSON object for route geometry\n * @param {Object} style - route ol.style.Style object\n * @private\n */\n Route.prototype._fillRouteResultsDetailsGeometry = function (geometry, style) {\n this._clearRouteResultsGeometry();\n var map = this.getMap();\n if (!geometry) {\n return;\n }\n\n // création de l'objet geoJSON\n var geojsonObject = {\n type: \"FeatureCollection\",\n features: [{\n type: \"Feature\",\n crs: {\n type: \"name\",\n properties: {\n name: \"EPSG:4326\"\n }\n },\n geometry: geometry\n }]\n };\n var geojsonformat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_20__[\"default\"]({\n defaultDataProjection: \"EPSG:4326\",\n defaultStyle: style\n });\n var features = geojsonformat.readFeatures(geojsonObject, {\n dataProjection: \"EPSG:4326\",\n featureProjection: \"EPSG:3857\"\n });\n\n // ajout de la géométrie comme nouvelle couche vecteur à la carte\n this._geojsonRoute = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4___default.a({\n source: new ol_source_Vector__WEBPACK_IMPORTED_MODULE_5___default.a({\n features: features\n }),\n style: style\n });\n map.addLayer(this._geojsonRoute);\n };\n\n /**\n * this method is called by this._fillRouteResultsDetails()\n * and constructs the geometries street with informations.\n *\n * @param {Array} instructions - route instructions list (containing geoJSON geometry)\n * @param {Object} style - route ol.style.Style object\n * @private\n */\n Route.prototype._fillRouteResultsDetailsFeatureGeometry = function (instructions, style) {\n var _this4 = this;\n this._clearRouteResultsFeatureGeometry();\n var map = this.getMap();\n\n // 1. création de l'objet geoJSON\n this._geojsonObject = {\n type: \"FeatureCollection\",\n crs: {\n type: \"name\",\n properties: {\n name: \"EPSG:4326\"\n }\n },\n features: []\n };\n\n // 2. Remplissage de l'objet geoJSON : ajout des géométries de chaque instruction\n for (var i = 0; i < instructions.length; i++) {\n var o = instructions[i];\n var id = i + 1;\n var coords = o.geometry.coordinates;\n for (var j = 0; j < coords.length; j++) {\n // remarque : les coordonnées sont au format string, à convertir en nombres\n if (typeof coords[j][0] === \"string\") {\n coords[j][0] = parseFloat(coords[j][0]);\n coords[j][1] = parseFloat(coords[j][1]);\n }\n }\n this._geojsonObject.features.push({\n type: \"Feature\",\n geometry: o.geometry,\n properties: {\n popupContent: \"(\" + id + \") distance : \" + this._convertDistance(o.distance) + \" / temps : \" + this._convertSecondsToTime(o.duration)\n },\n id: id\n });\n }\n\n // Ajout du point de depart du tracé\n this._geojsonObject.features.push({\n type: \"Feature\",\n geometry: {\n type: \"Point\",\n coordinates: this._currentPoints[0].getCoordinate()\n },\n properties: {\n description: \"Point de départ\",\n \"marker-symbol\": this.options.markersOpts.departure.url\n }\n });\n\n // Ajout des points d'étapes\n for (var k = 1; k < this._currentPoints.length - 1; k++) {\n if (this._currentPoints[k] && this._currentPoints[k].getCoordinate) {\n var coordinates = this._currentPoints[k].getCoordinate();\n if (coordinates) {\n this._geojsonObject.features.push({\n type: \"Feature\",\n geometry: {\n type: \"Point\",\n coordinates: coordinates\n },\n properties: {\n description: \"Point d'étape\",\n \"marker-symbol\": this.options.markersOpts.stages.url\n }\n });\n }\n }\n }\n\n // Ajout du point d'arrivée du tracé\n this._geojsonObject.features.push({\n type: \"Feature\",\n geometry: {\n type: \"Point\",\n coordinates: this._currentPoints[this._currentPoints.length - 1].getCoordinate()\n },\n properties: {\n description: \"Point d'arrivée\",\n \"marker-symbol\": this.options.markersOpts.arrival.url\n }\n });\n\n // Création du format GeoJSON, avec reprojection des géométries\n var geojsonformat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_20__[\"default\"]({\n defaultDataProjection: \"EPSG:4326\",\n defaultStyle: style\n });\n var mapProj = this.getMap().getView().getProjection().getCode();\n var features = geojsonformat.readFeatures(this._geojsonObject, {\n dataProjection: \"EPSG:4326\",\n featureProjection: mapProj\n });\n\n // 3. Ajout du tracé de l'itinéraire (geoJSON) comme nouvelle couche vecteur à la carte\n this._geojsonSections = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_4___default.a({\n source: new ol_source_Vector__WEBPACK_IMPORTED_MODULE_5___default.a({\n features: features\n }),\n style: style,\n opacity: 0.9\n });\n var graph;\n if (this._currentTransport === \"Pieton\") {\n graph = \"piéton\";\n this._geojsonSections.gpResultLayerId = \"Pieton$OGC:OPENLS;Itineraire\";\n } else {\n graph = \"voiture\";\n this._geojsonSections.gpResultLayerId = \"Voiture$OGC:OPENLS;Itineraire\";\n }\n // ajout à la carte\n map.addLayer(this._geojsonSections);\n\n // 4. Si un layer switcher est présent dans la carte, on lui affecte des informations pour cette couche\n map.getControls().forEach(function (control) {\n if (control instanceof _LayerSwitcher__WEBPACK_IMPORTED_MODULE_19__[\"default\"]) {\n // un layer switcher est présent dans la carte\n var layerId = _this4._geojsonSections.gpLayerId;\n // on n'ajoute des informations que s'il n'y en a pas déjà (si le titre est le numéro par défaut)\n if (control._layers[layerId].title === layerId) {\n control.addLayer(_this4._geojsonSections, {\n title: _this4.options.layerDescription.title + \" (\" + graph + \")\",\n description: _this4.options.layerDescription.description\n });\n }\n }\n }, this);\n\n // 5. Ajout de popups aux troncons\n // Création de l'interaction : survol des features (=troncons de l'itinéraire)\n this._resultsHoverInteraction = new ol_interaction__WEBPACK_IMPORTED_MODULE_7__[\"Select\"]({\n condition: ol_events_condition__WEBPACK_IMPORTED_MODULE_6__[\"pointerMove\"],\n layers: [this._geojsonSections],\n style: this._selectedFeatureStyle\n });\n this._resultsHoverInteraction.on(\"select\", function (e) {\n return _this4._onResultsFeatureMouseOver(e);\n });\n map.addInteraction(this._resultsHoverInteraction);\n\n // Création de l'interaction : selection des features (=troncons de l'itinéraire)\n this._resultsSelectInteraction = new ol_interaction__WEBPACK_IMPORTED_MODULE_7__[\"Select\"]({\n layers: [this._geojsonSections],\n style: this._selectedFeatureStyle\n });\n this._resultsSelectInteraction.on(\"select\", function (e) {\n return _this4._onResultsFeatureSelect(e);\n });\n map.addInteraction(this._resultsSelectInteraction);\n };\n\n /**\n * this method is called on route features hover\n * and highlight instruction label\n *\n * @param {Object} e - event\n *\n * @private\n */\n Route.prototype._onResultsFeatureMouseOver = function (e) {\n if (e.selected.length !== 0) {\n // si on a bien survolé un tronçon, on surligne l'instruction correspondante\n var f = e.selected[0];\n var selectedInstruction = document.getElementById(\"GProuteResultsDetailsInstruction_\" + f.getId() + \"-\" + this._uid);\n if (selectedInstruction && selectedInstruction.classList) {\n selectedInstruction.classList.add(\"GProuteResultsDetailsInstructionHighlight\");\n }\n }\n\n // si on déselectionne un tronçon (mouseout), on rétablit un style normal pour l'instruction\n if (e.deselected.length !== 0) {\n var deselectedFeature = e.deselected[0];\n // on repasse l'instruction correspondante en normal\n var deSelectedInstruction = document.getElementById(\"GProuteResultsDetailsInstruction_\" + deselectedFeature.getId() + \"-\" + this._uid);\n if (deSelectedInstruction && deSelectedInstruction.classList) {\n deSelectedInstruction.classList.remove(\"GProuteResultsDetailsInstructionHighlight\");\n }\n }\n };\n\n /**\n * this method is called on route features select\n * and set a popup with feature information\n *\n * @param {Object} e - on select event\n * @private\n */\n Route.prototype._onResultsFeatureSelect = function (e) {\n var map = this.getMap();\n if (e.selected.length !== 0) {\n // si on a sélectionné un troncon, on lui ajoute une popup\n var f = e.selected[0];\n this._popupContent.innerHTML = f.getProperties().popupContent;\n if (!this._popupOverlay) {\n // ajout de la popup a la carte comme un overlay\n this._popupOverlay = new ol_Overlay__WEBPACK_IMPORTED_MODULE_3___default.a({\n element: this._popupDiv,\n positioning: \"bottom-center\",\n position: e.mapBrowserEvent.coordinate\n });\n map.addOverlay(this._popupOverlay);\n } else {\n // si l'overlay est déjà créé, on modifie juste sa position\n this._popupOverlay.setPosition(e.mapBrowserEvent.coordinate);\n }\n } else {\n // si aucun troncon n'est sélectionné (click à côté du tracé),\n // on fait disparaitre la popup si elle existe\n if (this._popupOverlay != null) {\n this._popupOverlay.setPosition(undefined);\n }\n }\n };\n\n // ################################################################### //\n // ############################# Clean ############################### //\n // ################################################################### //\n\n /**\n * this method is called by this.onShowRoutePanelClick()\n * and it clears all elements (reinit).\n *\n * @private\n */\n Route.prototype._clear = function () {\n this._currentTransport = null;\n this._currentExclusions = [];\n this._currentComputation = null;\n\n // les resultats\n this._clearRouteResultsDetails();\n // la geometrie\n this._clearRouteResultsGeometry();\n this._clearRouteResultsFeatureGeometry();\n // les points\n for (var i = 0; i < this._currentPoints.length; i++) {\n this._currentPoints[i].clear();\n }\n // suppression des points intermédiaires\n this._removeRouteStepLocations();\n };\n\n /**\n * this method is called by this.onRouteResetClick()\n * and it clears all options inputs (reinit).\n *\n * @private\n */\n Route.prototype._clearRouteInputOptions = function () {\n // reinit options to default\n this._initTransport();\n this._initComputation();\n this._initExclusions();\n\n // set transport mode to default\n var transportdiv;\n if (this._currentTransport === \"Pieton\") {\n transportdiv = document.getElementById(\"GProuteTransportPedestrian-\" + this._uid);\n if (transportdiv) {\n transportdiv.checked = \"true\";\n }\n } else {\n transportdiv = document.getElementById(\"GProuteTransportCar-\" + this._uid);\n if (transportdiv) {\n transportdiv.checked = \"true\";\n }\n }\n\n // set computation mode to default\n var computationdiv = document.getElementById(\"GProuteComputationSelect-\" + this._uid);\n if (computationdiv) {\n computationdiv.value = this._currentComputation;\n }\n\n // set exclusions to default\n var tollInput = document.getElementById(\"GProuteExclusionsToll-\" + this._uid);\n if (tollInput) {\n if (this._currentExclusions.indexOf(\"toll\") !== -1) {\n tollInput.checked = false;\n } else {\n tollInput.checked = true;\n }\n }\n var tunnelInput = document.getElementById(\"GProuteExclusionsTunnel-\" + this._uid);\n if (tunnelInput) {\n if (this._currentExclusions.indexOf(\"tunnel\") !== -1) {\n tunnelInput.checked = false;\n } else {\n tunnelInput.checked = true;\n }\n }\n var bridgeInput = document.getElementById(\"GProuteExclusionsBridge-\" + this._uid);\n if (bridgeInput) {\n if (this._currentExclusions.indexOf(\"bridge\") !== -1) {\n bridgeInput.checked = false;\n } else {\n bridgeInput.checked = true;\n }\n }\n };\n\n /**\n * this method is called by this._clear()\n * and it removes step location inputs (excepted departure and arrival)\n *\n * @private\n */\n Route.prototype._removeRouteStepLocations = function () {\n var points = document.querySelectorAll(\"div[id^=\\\"GPlocationPoint\\\"]\");\n if (points.length !== 0) {\n var goodPoints = [];\n for (var k = 0; k < points.length; k++) {\n if (points[k].id.indexOf(this._uid) !== -1) {\n goodPoints.push(points[k]);\n }\n }\n // on boucle sur les points intermédiaires\n for (var i = 1; i < goodPoints.length - 1; i++) {\n // on va regarder les classes associées\n var classList = goodPoints[i].classList;\n if (classList.length !== 0) {\n for (var j = 0; j < classList.length; j++) {\n if (classList[j] === \"GPlocationStageFlexInput\") {\n // si l'élément est visible, on le supprime en simulant un clic sur la croix (x)\n document.getElementById(this._addUID(\"GPlocationStageRemove_\" + (i + 1))).click();\n }\n }\n }\n }\n }\n };\n\n /**\n * this method is called by this.onRouteComputationSubmit() (in case of failure)\n * and it clears all route instructions.\n *\n * @private\n */\n Route.prototype._clearRouteResultsDetails = function () {\n this._currentRouteInformations = null;\n\n // doit on nettoyer le container \"GProuteResultsDetails\" ?\n // il sera de toute façon écrasé par la prochaine requête...\n if (this._resultsRouteDetailsContainer) {\n var detailsDiv = this._resultsRouteDetailsContainer;\n if (detailsDiv.childElementCount) {\n while (detailsDiv.firstChild) {\n detailsDiv.removeChild(detailsDiv.firstChild);\n }\n }\n }\n if (this._resultsRouteValuesContainer) {\n var valuesDiv = this._resultsRouteValuesContainer;\n if (valuesDiv.childElementCount) {\n while (valuesDiv.firstChild) {\n valuesDiv.removeChild(valuesDiv.firstChild);\n }\n }\n }\n };\n\n /**\n * this method is called by this.onRouteComputationSubmit()\n * and it clears all route geometries.\n *\n * @private\n */\n Route.prototype._clearRouteResultsGeometry = function () {\n var map = this.getMap();\n if (this._geojsonRoute != null) {\n map.removeLayer(this._geojsonRoute);\n this._geojsonRoute = null;\n }\n };\n\n /**\n * this method is called by this.onRouteComputationSubmit()\n * and it clears all route geometries.\n *\n * @private\n */\n Route.prototype._clearRouteResultsFeatureGeometry = function () {\n var map = this.getMap();\n\n // on retire la couche itinéraire de la carte\n if (this._geojsonSections != null) {\n map.removeLayer(this._geojsonSections);\n this._geojsonSections = null;\n this._geojsonObject = null;\n }\n // on retire l'overlay de la popup de la carte\n if (this._popupOverlay != null) {\n map.removeOverlay(this._popupOverlay);\n this._popupOverlay = null;\n }\n // et les interactions liées à cette couche\n if (this._resultsSelectInteraction != null) {\n map.removeInteraction(this._resultsSelectInteraction);\n this._resultsSelectInteraction = null;\n }\n if (this._resultsHoverInteraction != null) {\n map.removeInteraction(this._resultsHoverInteraction);\n this._resultsHoverInteraction = null;\n }\n };\n\n /**\n * this method is called by event 'click' on control main container\n * and hide suggested Locations (unless target is an autocomplete input)\n *\n * @param {Object} e - event\n *\n * @private\n */\n Route.prototype._hideRouteSuggestedLocations = function (e) {\n // si on clique sur un input de saisie de locationSelector\n if (e.target && e.target.id && e.target.id.indexOf(\"GPlocationOrigin_\") !== -1) {\n // on récupère le numéro du point\n var pointId = parseInt(e.target.id.split(\"_\")[1][0], 10) - 1;\n // et on cache les autres résultats d'autocomplétion (sauf celui sur lequel on clique)\n for (var j = 0; j < this._currentPoints.length; j++) {\n if (j !== parseInt(pointId, 10)) {\n this._currentPoints[j]._hideSuggestedLocation();\n }\n }\n } else {\n // si on clique ailleurs dans le DOM du control, on cache tous les résultats d'autocomplétion\n for (var i = 0; i < this._currentPoints.length; i++) {\n this._currentPoints[i]._hideSuggestedLocation();\n }\n }\n };\n\n /**\n * this method displays waiting container and sets a timeout\n *\n * @private\n */\n Route.prototype._displayWaitingContainer = function () {\n this._waitingContainer.className = \"GProuteCalcWaitingContainerVisible\";\n this._waiting = true;\n\n // mise en place d'un timeout pour réinitialiser le panel (cacher la patience)\n // si on est toujours en attente (si la requête est bloquée par exemple)\n // ceci est vrai, uniquement sur le protocole JSONP !\n var opts = this.options.routeOptions;\n if (opts && opts.timeOut) {\n if (this._timer) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n var context = this;\n this._timer = setTimeout(function () {\n if (context._waiting === true) {\n context._hideWaitingContainer();\n } else {\n if (context._timer) {\n clearTimeout(context._timer);\n }\n }\n }, 16000);\n }\n };\n\n /**\n * this method hides waiting container and clears timeout\n *\n * @private\n */\n Route.prototype._hideWaitingContainer = function () {\n if (this._waiting) {\n this._waitingContainer.className = \"GProuteCalcWaitingContainerHidden\";\n this._waiting = false;\n var opts = this.options.routeOptions;\n if (opts && opts.timeOut) {\n clearTimeout(this._timer);\n this._timer = null;\n }\n }\n };\n\n // ################################################################### //\n // ########################## Geometry ############################### //\n // ################################################################### //\n\n /**\n * simplified instructions\n *\n * @param {Object[]} instructions - list of instructions\n *\n * @returns {Object[]} simplified instructions\n *\n * @private\n */\n Route.prototype._simplifiedInstructions = function (instructions) {\n var newInstructions = [];\n\n // cas où...\n var current = instructions[0];\n if (instructions.length === 1) {\n newInstructions.push(current);\n }\n for (var i = 1; i < instructions.length; i++) {\n var o = instructions[i];\n if (o.instruction === current.instruction) {\n current.distance = (parseFloat(o.distance) + parseFloat(current.distance)).toString();\n current.duration = (parseFloat(o.duration) + parseFloat(current.duration)).toString();\n for (var j = 1; j < o.geometry.coordinates.length; j++) {\n current.geometry.coordinates.push(o.geometry.coordinates[j]);\n }\n } else {\n newInstructions.push(current);\n current = o;\n // last\n if (i === instructions.length - 1) {\n newInstructions.push(o);\n current = null;\n }\n }\n }\n logger.log(newInstructions);\n return newInstructions;\n };\n\n // ################################################################### //\n // ################# Utils for Distance/Duration ##################### //\n // ################################################################### //\n\n /**\n * convert seconds to time : HH:MM:SS\n *\n * @param {Number} duration - duration in seconds\n *\n * @returns {String} time in hours/minutes/seconds\n *\n * @private\n */\n Route.prototype._convertSecondsToTime = function (duration) {\n var time = \"\";\n duration = Math.round(duration);\n var hours = Math.floor(duration / (60 * 60));\n var divisor4minutes = duration % (60 * 60);\n var minutes = Math.floor(divisor4minutes / 60);\n // if (!minutes) {\n // minutes = \"00\";\n // }\n\n // var divisor4seconds = divisor4minutes % 60;\n // var seconds = Math.ceil(divisor4seconds);\n // if (!seconds) {\n // seconds = \"00\";\n // }\n\n if (hours) {\n time = hours + \"h \";\n }\n time += minutes + \" min\";\n return time;\n };\n\n /**\n * convert distance in meters or kilometers\n *\n * @param {Number} distance - distance in meters\n *\n * @returns {String} distance in km\n *\n * @private\n */\n Route.prototype._convertDistance = function (distance) {\n var d = \"\";\n var distanceKm = parseInt(distance / 1000, 10);\n if (!distanceKm) {\n d = parseInt(distance, 10) + \" m\"; // arrondi !\n } else {\n d = distanceKm + \" km\";\n }\n return d;\n };\n return Route;\n}(ol_control_Control__WEBPACK_IMPORTED_MODULE_1___default.a);\n/* harmony default export */ __webpack_exports__[\"default\"] = (Route);\n\n// Expose Route as ol.control.Route (for a build bundle)\nif (window.ol && window.ol.control) {\n window.ol.control.Route = Route;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC8uL3NyYy9PcGVuTGF5ZXJzL0NvbnRyb2xzL1JvdXRlLmpzP2QxNTYiXSwibmFtZXMiOlsibG9nZ2VyIiwiT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ICAgICAgICAgIHRoaXMuZXhwb3J0ID0gbmV3IEJ1dHRvbkV4cG9ydChvcHRzKTtcbiAgICAgICAgICAgICAgICB0aGlzLmV4cG9ydC5yZW5kZXIoKTtcbiAgICAgICAgICAgICAgICB2YXIgc2VsZiA9IHRoaXM7XG4gICAgICAgICAgICAgICAgdGhpcy5leHBvcnQub24oXCJleHBvcnQ6Y29tcHV0ZVwiLCAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBzZWxmLmRpc3BhdGNoRXZlbnQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IFwiZXhwb3J0OmNvbXB1dGVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRlbnQgOiBlLmNvbnRlbnRcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8vIG1vZGUgXCJkcmFnZ2FibGVcIlxuICAgICAgICAgICAgaWYgKHRoaXMuZHJhZ2dhYmxlKSB7XG4gICAgICAgICAgICAgICAgRHJhZ2dhYmxlLmRyYWdFbGVtZW50KFxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9wYW5lbFJvdXRlQ29udGFpbmVyLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9wYW5lbEhlYWRlclJvdXRlQ29udGFpbmVyLFxuICAgICAgICAgICAgICAgICAgICBtYXAuZ2V0VGFyZ2V0RWxlbWVudCgpXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIG9uIGFwcGVsbGUgbGEgbcOpdGhvZGUgc2V0TWFwIG9yaWdpbmFsZSBkJ09wZW5MYXllcnNcbiAgICAgICAgQ29udHJvbC5wcm90b3R5cGUuc2V0TWFwLmNhbGwodGhpcywgbWFwKTtcbiAgICB9O1xuXG4gICAgLy8gIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjI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9IEpTT04ucGFyc2UoZ2VvanNvbik7XG4gICAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgICAgIGxvZ2dlci5sb2coXCJubyB2YWxpZCBnZW9qc29uIGdpdmVuIDpcIiArIGUubWVzc2FnZSk7XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogR2V0IHJvdXRlIGluZm9ybWF0aW9uc1xuICAgICAqXG4gICAgICogQHJldHVybnMge09iamVjdH0gZGF0YSAtIHJvdXRlIGluZm9ybWF0aW9uc1xuICAgICAqL1xuICAgIFJvdXRlLnByb3RvdHlwZS5nZXREYXRhID0gZnVuY3Rpb24gKCkge1xuICAgICAgICB2YXIgcG9pbnRzID0gW107XG4gICAgICAgIGZvciAobGV0IGluZGV4ID0gMDsgaW5kZXggPCB0aGlzLl9jdXJyZW50UG9pbnRzLmxlbmd0aDsgaW5kZXgrKykge1xuICAgICAgICAgICAgY29uc3QgcCA9IHRoaXMuX2N1cnJlbnRQb2ludHNbaW5kZXhdO1xuICAgICAgICAgICAgcG9pbnRzLnB1c2gocC5nZXRDb29yZGluYXRlKCkpO1xuICAgICAgICB9XG4gICAgICAgIHZhciBkYXRhID0ge1xuICAgICAgICAgICAgdHlwZSA6IFwicm91dGVcIixcbiAgICAgICAgICAgIHBvaW50cyA6IHBvaW50cyxcbiAgICAgICAgICAgIHRyYW5zcG9ydCA6IHRoaXMuX2N1cnJlbnRUcmFuc3BvcnQsXG4gICAgICAgICAgICBleGNsdXNpb25zIDogdGhpcy5fY3VycmVudEV4Y2x1c2lvbnMsXG4gICAgICAgICAgICBjb21wdXRhdGlvbiA6IHRoaXMuX2N1cnJlbnRDb21wdXRhdGlvbixcbiAgICAgICAgICAgIHJlc3VsdHMgOiB7fVxuICAgICAgICB9O1xuICAgICAgICBVdGlscy5hc3NpZ24oZGF0YS5yZXN1bHRzLCB0aGlzLl9jdXJyZW50Um91dGVJbmZvcm1hdGlvbnMpO1xuICAgICAgICByZXR1cm4gZ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GNvbnRhaW5lclxuICAgICAqL1xuICAgIFJvdXRlLnByb3RvdHlwZS5nZXRDb250YWluZXIgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9jb250YWluZXI7XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIEdldCBkZWZhdWx0IHN0eWxlXG4gICAgICpcbiAgICAgKiBAcmV0dXJucyB7b2wuc3R5bGV9IHN0eWxlXG4gICAgICovXG4gICAgUm91dGUucHJvdG90eXBlLmdldFN0eWxlID0gZnVuY3Rpb24gKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fZGVmYXVsdEZlYXR1cmVTdHlsZTtcbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogVGhpcyBtZXRob2QgaXMgcHVibGljLlxuICAgICAqIEl0IGFsbG93cyB0byBpbml0IHRoZSBjb250cm9sLlxuICAgICAqL1xuICAgIFJvdXRlLnByb3RvdHlwZS5pbml0ID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAvLyBJTkZPXG4gICAgICAgIC8vIHJlY29uc3RydWlyZSBsZSBwYW5uZWF1IGRlIHJlc3VsdGF0cyBzYW5zIGxhbmNlciBkZSBjYWxjdWxcbiAgICAgICAgLy8gKiBjb25zdHJ1aXJlIGxhIGxpc3RlIGRlcyBwb2ludHMgKGNmLiBSb3V0ZURPTS5fY3JlYXRlUm91dGVQYW5lbEZvcm1FbGVtZW50KCkpXG4gICAgICAgIC8vICogY29uc3RydWlyZSBsZXMgcmVzdWx0YXRzXG5cbiAgICAgICAgLy8gaW5pdCBwb2ludHNcbiAgICAgICAgZm9yIChsZXQgaW5kZXggPSAwOyBpbmRleCA8IHRoaXMuX2N1cnJlbnRQb2ludHMubGVuZ3RoOyBpbmRleCsrKSB7XG4gICAgICAgICAgICBjb25zdCBwb2ludCA9IHRoaXMuX2N1cnJlbnRQb2ludHNbaW5kZXhdO1xuICAgICAgICAgICAgdmFyIGlkID0gaW5kZXggKyAxO1xuICAgICAgICAgICA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AgICAgICAgICAgICB0b2xsSW5wdXQuY2hlY2tlZCA9IGZhbHNlO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0b2xsSW5wdXQuY2hlY2tlZCA9IHRydWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICB2YXIgdHVubmVsSW5wdXQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChcIkdQcm91dGVFeGNsdXNpb25zVHVubmVsLVwiICsgdGhpcy5fdWlkKTtcbiAgICAgICAgaWYgKHR1bm5lbElucHV0KSB7XG4gICAgICAgICAgICBpZiAodGhpcy5fY3VycmVudEV4Y2x1c2lvbnMuaW5kZXhPZihcInR1bm5lbFwiKSAhPT0gLTEpIHtcbiAgICAgICAgICAgICAgICB0dW5uZWxJbnB1dC5jaGVja2VkID0gZmFsc2U7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHR1bm5lbElucHV0LmNoZWNrZWQgPSB0cnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgdmFyIGJyaWRnZUlucHV0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoXCJHUHJvdXRlRXhjbHVzaW9uc0JyaWRnZS1cIiArIHRoaXMuX3VpZCk7XG4gICAgICAgIGlmIChicmlkZ2VJbnB1dCkge1xuICAgICAgICAgICAgaWYgKHRoaXMuX2N1cnJlbnRFeGNsdXNpb25zLmluZGV4T2YoXCJicmlkZ2VcIikgIT09IC0xKSB7XG4gICAgICAgICAgICAgICAgYnJpZGdlSW5wdXQuY2hlY2tlZCA9IGZhbHNlO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBicmlkZ2VJbnB1dC5jaGVja2VkID0gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHZhciBkaXN0YW5jZSA9IHRoaXMuX2N1cnJlbnRSb3V0ZUluZm9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biAgICAgKi9cbiAgICBSb3V0ZS5wcm90b3R5cGUuaW5pdGlhbGl6ZSA9IGZ1bmN0aW9uIChvcHRpb25zKSB7XG4gICAgICAgIHRoaXMuX2NoZWNrSW5wdXRPcHRpb25zKG9wdGlvbnMpO1xuXG4gICAgICAgIC8vIHNldCBkZWZhdWx0IG9wdGlvbnNcbiAgICAgICAgdGhpcy5vcHRpb25zID0ge1xuICAgICAgICAgICAgY29sbGFwc2VkIDogdHJ1ZSxcbiAgICAgICAgICAgIGRyYWdnYWJsZSA6IGZhbHNlLFxuICAgICAgICAgICAgZXhwb3J0IDogZmFsc2UsXG4gICAgICAgICAgICBncmFwaHMgOiBbXCJWb2l0dXJlXCIsIFwiUGlldG9uXCJdLFxuICAgICAgICAgICAgZXhjbHVzaW9ucyA6IHtcbiAgICAgICAgICAgICAgICB0b2xsIDogZmFsc2UsXG4gICAgICAgICAgICAgICAgdHVubmVsIDogZmFsc2UsXG4gICAgICAgICAgICAgICAgYnJpZGdlIDogZmFsc2VcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICByb3V0ZU9wdGlvbnMgOiB7fSxcbiAgICAgICAgICAgIGF1dG9jb21wbGV0ZU9wdGlvbnMgOiB7fSxcbiAgICAgICAgICAgIGxheWVyRGVzY3JpcHRpb24gOiB7XG4gICAgICAgICAgICAgICAgdGl0bGUgOiBcIkl0aW7DqXJhaXJlXCIsXG4gICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gOiBcIkl0aW7DqXJhaXJlIGJhc8OpIHN1ciB1biBncmFwaGVcIlxuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuXG4gICAgICAgIC8vIG1lcmdlIHdpdGggdXNlciBvcHRpb25zXG4gICAgICAgIFV0aWxzLmFzc2lnbih0aGlzLm9wdGlvbnMsIG9wdGlvbnMpO1xuXG4gICAgICAgIC8vIGNhcyBwYXJ0aWN1bGllciBkZXMgbWFya2VycyBwYXIgZMOpZmF1dFxuICAgICAgICB2YXIgZGVmYXVs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Y2lmaWUgYXUgbW9pbnMgdW4gZ3JhcGhcbiAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KG9wdGlvbnMuZ3JhcGhzKSAmJiBvcHRpb25zLmdyYXBocy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IG9wdGlvbnMuZ3JhcGhzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0eXBlb2Ygb3B0aW9ucy5ncmFwaHNbaV0gPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChvcHRpb25zLmdyYXBoc1tpXS50b0xvd2VyQ2FzZSgpID09PSBcInBpZXRvblwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5ncmFwaHNbaV0gPSBcIlBpZXRvblwiO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG9wdGlvbnMuZ3JhcGhzW2ldLnRvTG93ZXJDYXNlKCkgPT09IFwidm9pdHVyZVwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9ucy5ncmFwaHNbaV0gPSBcIlZvaXR1cmVcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci5sb2coXCJbb2wuY29udHJvbC5Sb3V0ZV0gRVJST1IgOiBwYXJhbWV0ZXIgJ2dyYXBocycgZWxlbWVudHMgc2hvdWxkIGJlIG9mIHR5cGUgJ3N0cmluZydcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICBvcHRpb25zLmdyYXBoc1tpXSA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGxvZ2dlci53YXJuKFwiJ2dyYXBocycgcGFyYW1ldGVyIHNob3VsZCBiZSBhbiBhcnJheVwiKTtcbiAgICAgICAgICAgICAgICBvcHRpb25zLmdyYXBocyA9IG51bGw7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAvLyBjb2xsYXBzZWRcbiAgICAgICAgaWYgKG9wdGlvbnMuY29sbGFwc2VkID09PSBcInRydWVcIikge1xuICAgICAgICAgICAgb3B0aW9ucy5jb2xsYXBzZWQgPSB0cnVlO1xuICAgICAgICB9XG4gICAgICAgIGlmIChvcHRpb25zLmNvbGxhcHNlZCA9PT0gXCJmYWxzZVwiKSB7XG4gICAgICAgICAgICBvcHRpb25zLmNvbGxhcHNlZCA9IGZhbHNlO1xuICAgICAgICB9XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIGluaXRpYWxpemUgY29tcG9uZW50IGNvbnRhaW5lciAoRE9NKVxuICAgICAqXG4gICAgICogQHBhcmFtIHtPYmplY3R9IG1hcCAtIHRoZSBtYXBcbiAgICAgKlxuICAgICAqIEByZXR1cm5zIHtET01FbGVtZW50fSBET00gZWxlbWVudFxuICAgICAqXG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBSb3V0ZS5wcm90b3R5cGUuX2luaXRDb250YWluZXIgPSBmdW5jdGlvbiAobWFwKSB7XG4gICAgICAgIC8vIGdldCBtYWluIGNvbnRhaW5lclxuICAgICAgICB2YXIgY29udGFpbmVyID0gdGhpcy5fY29udGFpbmVyO1xuXG4gICAgICAgIHZhciBpbnB1dFNob3cgPSB0aGlzLl9zaG93Um91dGVDb250YWluZXIgPSB0aGlzLl9jcmVhdGVTaG93Um91dGVFbGVtZW50KCk7XG4gICAgICAgIGNvbnRhaW5lci5hcHBlbmRDaGlsZChpbnB1dFNob3cpO1xuXG4gICAgICAgIC8vIG1vZGUgXCJjb2xsYXBzZWRcIlxuICAgICAgICBpZiAoIXRoaXMuY29sbGFwc2VkKSB7XG4gICAgICAgICAg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gICAgdmFyIHNlcnZpY2VPcHRpb25zID0gdGhpcy5vcHRpb25zLnJvdXRlT3B0aW9ucztcbiAgICAgICAgaWYgKHNlcnZpY2VPcHRpb25zLnJvdXRlUHJlZmVyZW5jZSkge1xuICAgICAgICAgICAgdGhpcy5fY3VycmVudENvbXB1dGF0aW9uID0gc2VydmljZU9wdGlvbnMucm91dGVQcmVmZXJlbmNlO1xuICAgICAgICB9XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIHRoaXMgbWV0aG9kIGlzIGNhbGxlZCBieSB0aGUgY29uc3RydWN0b3IgYW5kIGluaXRpYWxpemUgZXhjbHVzaW9uc1xuICAgICAqXG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBSb3V0ZS5wcm90b3R5cGUuX2luaXRFeGNsdXNpb25zID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAvLyBFeGNsdXNpb25zIHNlbGVjdGlvbm7DqWVzIDogVHVubmVsLCBUb2xsIGV0IEJyaWRnZVxuICAgICAgICB0aGlzLl9jdXJyZW50RXhjbHVzaW9ucyA9IFtdOyAvLyBwYXIgZGVmYXV0XG5cbiAgICAgICAgLy8gcGFyIGRlZmF1dFxuICAgICAgICB2YXIgZXhjbHVzaW9uID0gdGhpcy5vcHRpb25zLmV4Y2x1c2lvbnM7XG4gICAgICAgIGlmICghZXhjbHVzaW9uIHx8ICh0eXBlb2YgZXhjbHVzaW9uID09PSBcIm9iamVjdFwiICYmIE9iamVjdC5rZXlzKGV4Y2x1c2lvbikubGVuZ3RoID09PSAwKSkge1xuICAgICAgICAgICAgdGhpcy5vcHRpb25zLmV4Y2x1c2lvbnMgPSB7XG4gICAgICAgICAgICAgICAgdG9sbCA6IGZhbHNlLFxuICAgICAgICAgICAgICAgIHR1bm5lbCA6IGZhbHNlLFxuICAgICAgICAgICAgICAgIGJyaWRnZSA6IGZhbHNlXG4gICAgICAgICAgICB9O1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gb3B0aW9uXG4gICAgICAgIGlmIChleGNsdXNpb24gJiYgdHlwZW9mIGV4Y2x1c2lvbiA9PT0gXCJvYmplY3RcIiAmJiBPYmplY3Qua2V5cyhleGNsdXNpb24pLmxlbmd0aCkge1xuICAgICAgICAgICAgZm9yICh2YXIgayBpbiBleGNsdXNpb24pIHtcbiAgICAgICAgICAgICAgICBpZiAoZXhjbHVzaW9uLmhhc093blByb3BlcnR5KGspKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChleGNsdXNpb25ba10pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2N1cnJlbnRFeGNsdXNpb25zLnB1c2goayk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICAvLyBUT0RPIG9wdGlvbiBzdXIgbGUgc2VydmljZVxuICAgICAgICB2YXIgc2VydmljZU9wdGlvbnMgPSB0aGlzLm9wdGlvbnMucm91dGVPcHRpb25zO1xuICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShzZXJ2aWNlT3B0aW9ucy5leGNsdXNpb25zKSkge1xuICAgICAgICAgICAgdGhpcy5fY3VycmVudEV4Y2x1c2lvbnMgPSBzZXJ2aWNlT3B0aW9ucy5leGNsdXNpb25zO1xuICAgICAgICB9XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIHRoaXMgbWV0aG9kIGlzIGNhbGxlZCBieSB0aGlzLmluaXRpYWxpemUoKSBhbmQgaW5pdGlhbGl6ZSBwb3B1cCBkaXZcbiAgICAgKiAodG8gZGlzcGxheSByZXN1bHRzIGluZm9ybWF0aW9uIG9uIHJvdXRlIHJlc3VsdCBjbGljaylcbiAgICAgKlxuICAgICAqIEByZXR1cm4ge09iamVjdH0gZWxlbWVudCAtIERPTSBlbGVtZW50IGZvciBwb3B1cFxuICAgICAqIEBwcml2YXRlXG4gICAgICovXG4gICAgUm91dGUucHJvdG90eXBlLl9pbml0UG9wdXBEaX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AgICAgICAgbGFiZWwgOiBcIkTDqXBhcnRcIixcbiAgICAgICAgICAgICAgICBkaXNwbGF5IDogdHJ1ZVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGF1dG9jb21wbGV0ZU9wdGlvbnMgOiB0aGlzLm9wdGlvbnMuYXV0b2NvbXBsZXRlT3B0aW9ucyB8fCBudWxsXG4gICAgICAgIH0pO1xuICAgICAgICBzdGFydC5zZXRNYXAobWFwKTtcbiAgICAgICAgLy8gb24gYWpvdXRlIGRlcyDDqWNvdXRldXJzIGQnw6l2w6huZW1lbnRzIChlbiBwbHVzIGRlIGNldXggZGUgTG9jYXRpb25TZWxlY3RvciksXG4gICAgICAgIC8vIHBvdXIgcHJlbmRyZSBlbiBjb21wdGUgbGVzIENTUyBzcMOpY2lmaXF1ZXMgZGUgR1Byb3V0ZUZvcm1cbiAgICAgICAgdGhpcy5fYWRkRm9ybVBvaW50c0V2ZW50TGlzdGVuZXJzKHN0YXJ0KTtcbiAgICAgICAgcG9pbnRzLnB1c2goc3RhcnQuX2NvbnRhaW5lcik7XG4gICAgICAgIHRoaXMuX2N1cnJlbnRQb2ludHMucHVzaChzdGFydCk7XG5cbiAgICAgICAgLy8gcG9pbnRzIGludGVybWVkaWFpcmVzXG4gICAgICAgIGZvciAoY291bnQgPSAyOyBjb3VudCA8IDc7IGNvdW50KyspIHtcbiAgICAgICAgICAgIHZhciBzdGVwID0gbmV3IExvY2F0aW9uU2VsZWN0b3Ioe1xuICAgICAgICAgICAgICAgIGFwaUtleSA6IHRoaXMub3B0aW9ucy5hcGlLZXkgfHwgbnVsbCxcbiAgICAgICAgICAgICAgICB0YWcgOiB7XG4gICAgICAgICAgICAgICAgICAgIGlkIDogY291bnQsXG4gICAgICAgICAgICAgICAgICAgIGdyb3VwSWQgOiB0aGlzLl91aWQsXG4gICAgICAgICAgICAgICAgICAgIGxhYmVsIDogXCJFdGFwZVwiLFxuICAgICAgICAgICAgICAgICAgICBtYXJrZXJPcHRzIDogdGhpcy5vcHRpb25zLm1hcmtlcnNPcHRzW1wic3RhZ2VzXCJdLFxuICAgICAgICAgICAgICAgICAgICBkaXNwbGF5IDogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIHJlbW92ZU9wdGlvbiA6IHRydWVcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGF1dG9jb21wbGV0ZU9wdGlvbnMgOiB0aGlzLm9wdGlvbnMuYXV0b2NvbXBsZXRlT3B0aW9ucyB8fCBudWxsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHN0ZXAuc2V0TWFwKG1hcCk7XG4gICAgICAgICAgICB0aGlzLl9hZGRGb3JtUG9pbnRzRXZlbnRMaXN0ZW5lcnMoc3RlcCk7XG4gICAgICAgICAgICBwb2ludHMucHVzaChzdGVwLl9jb250YWluZXIpO1xuICAgICAgICAgICAgdGhpcy5fY3VycmVudFBvaW50cy5wdXNoKHN0ZXApO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gcG9pbnQgZCdhcnJpdsOpZVxuICAgICAgICB2YXIgZW5kID0gbmV3IExvY2F0aW9uU2VsZWN0b3Ioe1xuICAgICAgICAgICAgYXBpS2V5IDogdGhpcy5vcHRpb25zLmFwaUtleSB8fCBudWxsLFxuICAgICAgICAgICAgdGFnIDoge1xuICAgICAgICAgICAgICAgIGlkIDogY291bnQsXG4gICAgICAgICAgICAgICAgZ3JvdXBJZCA6IHRoaXMuX3VpZCxcbiAgICAgICAgICAgICAgICBtYXJrZXJPcHRzIDogdGhpcy5vcHRpb25zLm1hcmtlcnNPcHRzW1wiYXJyaXZhbFwiXSxcbiAgICAgICAgICAgICAgICBsYWJlbCA6IFwiQXJyaXbDqWVcIixcbiAgICAgICAgICAgICAgICBkaXNwbGF5IDogdHJ1ZSxcbiAgICAgICAgICAgICAgICBhZGRPcHRpb24gOiB0cnVlXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYXV0b2NvbXBsZXRlT3B0aW9ucyA6IHRo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4gICAgICAgICAgICAvLyBtaW5pbWl6ZSBmb3JtIG9uIGlucHV0IHNob3cgcG9pbnRlciwgYW5kIHNldCBtYXAgZXZlbnQgbGlzdGVuZXJzIChzZWUgdGhpcy5vblJvdXRlT3JpZ2luUG9pbnRlckNsaWNrKVxuICAgICAgICAgICAgZm9ybVBvaW50Ll9pbnB1dFNob3dQb2ludGVyLmFkZEV2ZW50TGlzdGVuZXIoXG4gICAgICAgICAgICAgICAgXCJjbGlja1wiLFxuICAgICAgICAgICAgICAgIChlKSA9PiB0aGlzLm9uUm91dGVPcmlnaW5Qb2ludGVyQ2xpY2soZSwgZm9ybVBvaW50KVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGlmIChmb3JtUG9pbnQuX3JlbW92ZVBvaW50RWxlbWVudCkge1xuICAgICAgICAgICAgICAgIGZvcm1Qb2ludC5fcmVtb3ZlUG9pbnRFbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoXG4gICAgICAgICAgICAgICAgICAgIFwiY2xpY2tcIixcbiAgICAgICAgICAgICAgICAgICAgKGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci50cmFjZShcImNsaWNrIG9uIF9yZW1vdmVQb2ludEVsZW1lbnRcIiwgZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBNb3ZpbmcgdXAgZXhjbHVzaW9ucyBwaWN0b1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdmFyIGV4Y2x1c2lvbnNQaWN0b1RvcCA9IGNvbnRleHQuX3Nob3dSb3V0ZUV4Y2x1c2lvbnNFbGVtZW50LnN0eWxlLnRvcDtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGNvbnRleHQuX3Nob3dSb3V0ZUV4Y2x1c2lvbnNFbGVtZW50LnN0eWxlLnRvcCA9IChwYXJzZUludChleGNsdXNpb25zUGljdG9Ub3AsIDEwKSAtIDMzKS50b1N0cmluZygpICsgXCJweFwiO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChmb3JtUG9pbnQuX2FkZFBvaW50RWxlbWVudCkge1xuICAgICAgICAgICAgICAgIGZvcm1Qb2ludC5fYWRkUG9pbnRFbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoXG4gICAgICAgICAgICAgICAgICAgIFwiY2xpY2tcIixcbiAgICAgICAgICAgICAgICAgICAgKGUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZ2dlci50cmFjZShcImNsaWNrIG9uIF9hZGRQb2ludEVsZW1lbnRcIiwgZSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBNb3ZpbmcgZG93biBleGNsdXNpb25zIHBpY3RvXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyB2YXIgZXhjbHVzaW9uc1BpY3RvVG9wID0gY29udGV4dC5fc2hvd1JvdXRlRXhjbHVzaW9uc0VsZW1lbnQuc3R5bGUudG9wO1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gY29udGV4dC5fc2hvd1JvdXRlRXhjbHVzaW9uc0VsZW1lbnQuc3R5bGUudG9wID0gKHBhcnNlSW50KGV4Y2x1c2lvbnNQaWN0b1RvcCwgMTApICsgMzMpLnRvU3RyaW5nKCkgKyBcInB4XCI7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2UgaWYgKGZvcm1Qb2ludC5faW5wdXRMYWJlbENvbnRhaW5lci5hdHRhY2hFdmVudCkge1xuICAgICAgICAgICAgLy8gYXR0YWNoRXZlbnQ6IEludGVybmV0IGV4cGxvcmVyIGV2ZW50IGxpc3RlbmVycyBtYW5hZ2VtZW50XG4gICAgICAgICAgICBmb3JtUG9pbnQuX2lucHV0TGFiZWxDb250YWluZXIuYXR0YWNoRXZlbnQoXG4gICAgICAgICAgICAgICAgXCJvbmNsaWNrXCIsXG4gICAgICAgICAgICAgICAgKGUpID0+IHRoaXMub25Sb3V0ZU9yaWdpbkxhYmVsQ2xpY2soZSlcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICBmb3JtUG9pbnQuX2lucHV0U2hvd1BvaW50ZXIuYXR0YWNoRXZlbnQoXG4gICAgICAgICAgICAgICAgXCJvbmNsaWNrXCIsXG4gICAgICAgICAgICAgICAgKGUpID0+IHRoaXMub25Sb3V0ZU9yaWdpblBvaW50ZXJDbGljayhlLCBmb3JtUG9pbnQpXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgaWYgKGZvcm1Qb2ludC5fcmVtb3ZlUG9pbnRFbGVtZW50KSB7XG4gICAgICAgICAgICAgICAgZm9ybVBvaW50Ll9yZW1vdmVQb2ludEVsZW1lbnQuYXR0YWNoRXZlbnQoXG4gICAgICAgICAgICAgICAgICAgIFwib25jbGlja1wiLFxuICAgICAgICAgICAgICAgICAgICAoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gTW92aW5nIHVwIGV4Y2x1c2lvbnMgcGljdG9cbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIHZhciBleGNsdXNpb25zUGljdG9Ub3AgPSBjb250ZXh0Ll9zaG93Um91dGVFeGNsdXNpb25zRWxlbWVudC5zdHlsZS50b3A7XG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb250ZXh0Ll9zaG93Um91dGVFeGNsdXNpb25zRWxlbWVudC5zdHlsZS50b3AgPSAocGFyc2VJbnQoZXhjbHVzaW9uc1BpY3RvVG9wLCAxMCkgLSAzMykudG9TdHJpbmcoKSArIFwicHhcIjtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoZm9ybVBvaW50Ll9hZGRQb2ludEVsZW1lbnQpIHtcbiAgICAgICAgICAgICAgICBmb3JtUG9pbnQuX2FkZFBvaW50RWxlbWVudC5hdHRhY2hFdm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vcmRpbmF0ZSgpO1xuICAgICAgICAgICAgc3RhcnQgPSB7XG4gICAgICAgICAgICAgICAgeCA6IHN0YXJ0Q29vcmRpbmF0ZVswXSxcbiAgICAgICAgICAgICAgICB5IDogc3RhcnRDb29yZGluYXRlWzFdXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgbG9nZ2VyLmxvZyhcInN0YXJ0XCIsIHN0YXJ0KTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIC0gcG9pbnQgZCdhcnJpdsOpZVxuICAgICAgICB2YXIgZW5kO1xuICAgICAgICB2YXIgZW5kUG9pbnQgPSBwb2ludHNbcG9pbnRzLmxlbmd0aCAtIDFdO1xuICAgICAgICBpZiAoZW5kUG9pbnQgJiYgZW5kUG9pbnQuZ2V0Q29vcmRpbmF0ZSkge1xuICAgICAgICAgICAgdmFyIGVuZENvb3JkaW5hdGUgPSBlbmRQb2ludC5nZXRDb29yZGluYXRlKCk7XG4gICAgICAgICAgICBlbmQgPSB7XG4gICAgICAgICAgICAgICAgeCA6IGVuZENvb3JkaW5hdGVbMF0sXG4gICAgICAgICAgICAgICAgeSA6IGVuZENvb3JkaW5hdGVbMV1cbiAgICAgICAgICAgIH07XG4gICAgICAgICAgICBsb2dnZXIubG9nKFwiZW5kXCIsIGVuZCk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyAtIGxlcyDDqXRhcGVzXG4gICAgICAgIHZhciBzdGVwID0gW107XG4gICAgICAgIGZvciAodmFyIGkgPSAxOyBpIDwgcG9pbnRzLmxlbmd0aCAtIDE7IGkrKykge1xuICAgICAgICAgICAgaWYgKHBvaW50c1tpXSAmJiBwb2ludHNbaV0uZ2V0Q29vcmRpbmF0ZSkge1xuICAgICAgICAgICAgICAgIHZhciBpQ29vcmRpbmF0ZSA9IHBvaW50c1tpXS5nZXRDb29yZGluYXRlKCk7XG4gICAgICAgICAgICAgICAgaWYgKGlDb29yZGluYXRlKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBjb29y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dlIGRlIHJlc291cmNlIGV4cGxpY2l0ZW1lbnQgZGVtYW5kw6lcbiAgICAgICAgdmFyIHJvdXRlUmVzb3VyY2U7XG4gICAgICAgIGlmICghcm91dGVPcHRpb25zLnJlc291cmNlKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5fY3VycmVudENvbXB1dGF0aW9uID09PSBcImZhc3Rlc3RcIiAmJiB0aGlzLl9jdXJyZW50VHJhbnNwb3J0ID09PSBcIlBpZXRvblwiKSB7XG4gICAgICAgICAgICAgICAgcm91dGVSZXNvdXJjZSA9IFwiYmR0b3BvLXZhbGhhbGxhXCI7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByb3V0ZVJlc291cmNlID0gcm91dGVPcHRpb25zLnJlc291cmNlO1xuICAgICAgICB9XG4gICAgICAgIC8vIGdlc3Rpb24gZHUgcHJvdG9jb2xlIGV0IGR1IHRpbWVvdXRcbiAgICAgICAgLy8gbGUgdGltZW91dCBlc3QgaW5kaXNwZW5zYWJsZSBzdXIgbGUgcHJvdG9jb2xlIEpTT05QLlxuICAgICAgICB2YXIgX3Byb3RvY29sID0gcm91dGVPcHRpb25zLnByb3RvY29sIHx8IFwiWEhSXCI7XG4gICAgICAgIHZhciBfdGltZW91dCA9IHJvdXRlT3B0aW9ucy50aW1lT3V0IHx8IDA7XG4gICAgICAgIGlmIChfcHJvdG9jb2wgPT09IFwiSlNPTlBcIiAmJiBfdGltZW91dCA9PT0gMCkge1xuICAgICAgICAgICAgLy8gRklYTUUgbGUgdGltZW91dCBlc3Qgb2JsaWdhdG9pcmUgcG91ciBjZSB0eXBlIGRlIHByb3RvY29sZS4uLlxuICAgICAgICAgICAgX3RpbWVvdXQgPSAxNTAwMDtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIGdlc3Rpb24gZGVzIGNhbGxiYWNrXG4gICAgICAgIHZhciBiT25GYWlsdXJlID0gISEocm91dGVPcHRpb25zLm9uRmFpbHVyZSAhPT0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AgICAgIHJlc291cmNlIDogcm91dGVSZXNvdXJjZSxcbiAgICAgICAgICAgIC8vIGNhbGxiYWNrIG9uU3VjY2Vzc1xuICAgICAgICAgICAgb25TdWNjZXNzIDogZnVuY3Rpb24gKHJlc3VsdHMpIHtcbiAgICAgICAgICAgICAgICBsb2dnZXIubG9nKHJlc3VsdHMpO1xuICAgICAgICAgICAgICAgIGlmIChyZXN1bHRzKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnRleHQuX2ZpbGxSb3V0ZVJlc3VsdHNEZXRhaWxzKHJlc3VsdHMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAoYk9uU3VjY2Vzcykge1xuICAgICAgICAgICAgICAgICAgICByb3V0ZU9wdGlvbnMub25TdWNjZXNzLmNhbGwoY29udGV4dCwgcmVzdWx0cyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIC8vIGNhbGxiYWNrIG9uRmFpbHVyZVxuICAgICAgICAgICAgb25GYWlsdXJlIDogZnVuY3Rpb24gKGVycm9yKSB7XG4gICAgICAgICAgICAgICAgY29udGV4dC5faGlkZVdhaXRpbmdDb250YWluZXIoKTtcbiAgICAgICAgICAgICAgICBjb250ZXh0Ll9jbGVhclJvdXRlUmVzdWx0c0RldGFpbHMoKTtcbiAgICAgICAgICAgICAgICBsb2dnZXIubG9nKGVycm9yLm1lc3NhZ2UpO1xuICAgICAgICAgICAgICAgIGlmIChiT25GYWlsdXJlKSB7XG4gICAgICAgICAgICAgICAgICAgIHJvdXRlT3B0aW9ucy5vbkZhaWx1cmUuY2FsbChjb250ZXh0LCBlcnJvcik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgaXMgY2FsbGVkIGJ5IGV2ZW50ICdjbGljaycgb24gJ0dQbG9jYXRpb25PcmlnaW5MY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ZUZvcm1NaW5pXCI7XG4gICAgICAgICAgICAvLyBldCBhdSBjbGljIHN1ciBsYSBjYXJ0ZSwgb24gcsOpYWZmaWNoZXJhIGxlIGZvcm11bGFpcmUgXCJub3JtYWxcIlxuICAgICAgICAgICAgdGhpcy5saXN0ZW5lcktleSA9IG1hcC5vbihcbiAgICAgICAgICAgICAgICBcImNsaWNrXCIsXG4gICAgICAgICAgICAgICAgKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAvLyBvbiBuZSByw6l0YWJsaXQgcGFzIGxlIG1vZGUgXCJub3JtYWxcIiBzaSBvbiBlc3QgZGFucyBsZSBwYW5lbCBkZXMgcsOpc3VsdGF0cyAob8O5IGNsYXNzTmFtZSA9IFwiR1Byb3V0ZUNvbXBvbmVudEhpZGRlblwiKVxuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5fZm9ybVJvdXRlQ29udGFpbmVyLmNsYXNzTmFtZSA9PT0gXCJHUHJvdXRlRm9ybU1pbmlcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fZm9ybVJvdXRlQ29udGFpbmVyLmNsYXNzTmFtZSA9IFwiXCI7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgb2xPYnNlcnZhYmxlVW5CeUtleSh0aGlzLmxpc3RlbmVyS2V5KTtcbiAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICogZXZlbnQgdHJpZ2dlcmVkIGF0IHRoZSBlbmQgb2YgZHJhd2luZyBpbnB1dFxuICAgICAgICAgICAgICAgICAgICAqXG4gICAgICAgICAgICAgICAgICAgICogQGV2ZW50IHJvdXRlOmRyYXdlbmRcbiAgICAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5kaXNwYXRjaEV2ZW50KFwicm91dGU6ZHJhd2VuZFwiKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICApO1xuICAgICAgICAg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kZSBsJ2l0aW7DqXJhaXJlIChzaSBzcMOpY2lmacOpZSlcbiAgICAgICAgdmFyIGJib3ggPSByZXN1bHRzLmJib3g7XG4gICAgICAgIGlmIChiYm94KSB7XG4gICAgICAgICAgICB2YXIgbWFwID0gdGhpcy5nZXRNYXAoKTtcbiAgICAgICAgICAgIHZhciBib3VuZHMgPSBbYmJveC5sZWZ0LCBiYm94LmJvdHRvbSwgYmJveC5yaWdodCwgYmJveC50b3BdO1xuICAgICAgICAgICAgLy8gcmVwcm9qZWN0aW9uIGRhbnMgbGEgcHJvamVjdGlvbiBkZSBsYSBjYXJ0ZSAoYmJveCBpbml0aWFsZW1lbnQgZW4gRVBTRzo0MzI2KVxuICAgICAgICAgICAgdmFyIG1hcFByb2ogPSBtYXAuZ2V0VmlldygpLmdldFByb2plY3Rpb24oKS5nZXRDb2RlKCk7XG4gICAgICAgICAgICBpZiAobWFwUHJvaiAhPT0gXCJFUFNHOjQzMjZcIikge1xuICAgICAgICAgICAgICAgIGJvdW5kcyA9IG9sVHJhbnNmb3JtRXh0ZW50UHJvaihib3VuZHMsIFwiRVBTRzo0MzI2XCIsIG1hcFByb2opO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgbWFwLmdldFZpZXcoKS5maXQoYm91bmRzLCBtYXAuZ2V0U2l6ZSgpKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIHNhdXZlZ2FyZGUgZGUgbCdldGF0IGRlcyByZXN1bHRhdHNcbiAgICAgICAgdGhpcy5fY3VycmVudFJvdXRlSW5mb3JtYXRpb25zID0gcmVzdWx0cztcblxuICAgICAgICAvKipcbiAgICAgICAgICogZXZlbnQgdHJpZ2dlcmVkIHdoZW4gdGhlIGNvbXB1dGUgaXMgZmluaXNoZWRcbiAgICAgICAgICpcbiAgICAgICAgICogQGV2ZW50IHJvdXRlOmNvbXB1dGVcbiAgICAgICAgICogQHByb3BlcnR5IHtPYmplY3R9IHR5cGUgLSBldmVudFxuICAgICAgICAgKiBAcH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7XG4gICAgICAgIHRoaXMuX2NsZWFyUm91dGVSZXN1bHRzR2VvbWV0cnkoKTtcblxuICAgICAgICB2YXIgbWFwID0gdGhpcy5nZXRNYXAoKTtcblxuICAgICAgICBpZiAoIWdlb21ldHJ5KSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICAvLyBjcsOpYXRpb24gZGUgbCdvYmpldCBnZW9KU09OXG4gICAgICAgIHZhciBnZW9qc29uT2JqZWN0ID0ge1xuICAgICAgICAgICAgdHlwZSA6IFwiRmVhdHVyZUNvbGxlY3Rpb25cIixcbiAgICAgICAgICAgIGZlYXR1cmVzIDogW1xuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA6IFwiRmVhdHVyZVwiLFxuICAgICAgICAgICAgICAgICAgICBjcnMgOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlIDogXCJuYW1lXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBwcm9wZXJ0aWVzIDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWUgOiBcIkVQU0c6NDMyNlwiXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIGdlb21ldHJ5IDogZ2VvbWV0cnlcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBdXG4gICAgICAgIH07XG5cbiAgICAgICAgdmFyIGdlb2pzb25mb3JtYXQgPSBuZXcgR2VvSlNPTkV4dGVuZGVkKHtcbiAgICAgICAgICAgIGRlZmF1bHREYXRhUHJvamVjdGlvbiA6IFwiRVBTRzo0MzI2XCIsXG4gICAgICAgICAgICBkZWZhdWx0U3R5bGUgOiBzdHlsZVxuXG4gICAgICAgIH0pO1xuICAgICAgICB2YXIgZmVhdHVyZXMgPSBnZW9qc29uZm9ybWF0LnJlYWRGZWF0dXJlcyhcbiAgICAgICAgICAgIGdlb2pzb25PY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VvbWV0cnkgPSBmdW5jdGlvbiAoaW5zdHJ1Y3Rpb25zLCBzdHlsZSkge1xuICAgICAgICB0aGlzLl9jbGVhclJvdXRlUmVzdWx0c0ZlYXR1cmVHZW9tZXRyeSgpO1xuXG4gICAgICAgIHZhciBtYXAgPSB0aGlzLmdldE1hcCgpO1xuXG4gICAgICAgIC8vIDEuIGNyw6lhdGlvbiBkZSBsJ29iamV0IGdlb0pTT05cbiAgICAgICAgdGhpcy5fZ2VvanNvbk9iamVjdCA9IHtcbiAgICAgICAgICAgIHR5cGUgOiBcIkZlYXR1cmVDb2xsZWN0aW9uXCIsXG4gICAgICAgICAgICBjcnMgOiB7XG4gICAgICAgICAgICAgICAgdHlwZSA6IFwibmFtZVwiLFxuICAgICAgICAgICAgICAgIHByb3BlcnRpZXMgOiB7XG4gICAgICAgICAgICAgICAgICAgIG5hbWUgOiBcIkVQU0c6NDMyNlwiXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZlYXR1cmVzIDogW11cbiAgICAgICAgfTtcblxuICAgICAgICAvLyAyLiBSZW1wbGlzc2FnZSBkZSBsJ29iamV0IGdlb0pTT04gOiBham91dCBkZXMgZ8Opb23DqXRyaWVzIGRlIGNoYXF1ZSBpbnN0cnVjdGlvblxuICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGluc3RydWN0aW9ucy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgdmFyIG8gPSBpbnN0cnVjdGlvbnNbaV07XG4gICAgICAgICAgICB2YXIgaWQgPSBpICsgMTtcblxuICAgICAgICAgICAgdmFyIGNvb3JkcyA9IG8uZ2VvbWV0cnkuY29vcmRpbmF0ZXM7XG4gICAgICAgICAgICBmb3IgKHZhciBqID0gMDsgaiA8IGNvb3Jkcy5sZW5ndGg7IGorKykge1xuICAgICAgICAgICAgICAgIC8vIHJlbWFycXVlIDogbGVzIGNvb3Jkb25uw6llcyBzb250IGF1IGZvcm1hdCBzdHJpbmcsIMOgIGNvbnZlcnRpciBlbiBub21icmVzXG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBjb29yZHNbal1bMF0gPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgY29vcmRzW2pdWzBdID0gcGFyc2VGbG9hdChjb29yZHNbal1bMF0pO1xuICAgICAgICAgICAgICAgICAgICBjb29yZHNbal1bMV0gPSBwYXJzZUZsb2F0KGNvb3Jkc1tqXVsxXSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLl9nZW9qc29uT2JqZWN0LmZlYXR1cmVzLnB1c2goe1xuICAgICAgICAgICAgICAgIHR5cGUgOiBcIkZlYXR1cmVcIixcbiAgICAgICAgICAgICAgICBnZW9tZXRyeSA6IG8uZ2VvbWV0cnksXG4gICAgICAgICAgICAgICAgcHJvcGVydGllcyA6IHtcbiAgICAgICAgICAgICAgICAgICAgcG9wdXBDb250ZW50IDogXCIoXCIgKyBpZCArIFwiKSBkaXN0YW5jZSA6IFwiICsgdGhpcy5fY29udmVydERpc3RhbmNlKG8uZGlzdGFuY2UpICtcbiAgICAgICAgICAgICAgICAgICAgICAgIFwiIC8gdGVtcHMgOiBcIiArIHRoaXMuX2NvbnZlcnRTZWNvbmRzVG9UaW1lKG8uZHVyYXRpb24pXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBpZCA6IGlkXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIEFqb3V0IGR1IHBvaW50IGRlIGRlcGFydCBkdSB0cmFjw6lcbiAgICAgICAgdGhpcy5fZ2VvanNvbk9iamVjdC5mZWF0dXJlcy5wdXNoKHtcbiAgICAgICAgICAgIHR5cGUgOiBcIkZlYXR1cmVcIixcbiAgICAgICAgICAgIGdlb21ldHJ5IDoge1xuICAgICAgICAgICAgICAgIHR5cGUgOiBcIlBvaW50XCIsXG4gICAgICAgICAgICAgICAgY29vcmRpbmF0ZXMgOiB0aGlzLl9jdXJyZW50UG9pbnRzWzBdLmdldENvb3JkaW5hdGUoKVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHByb3BlcnRpZXMgOiB7XG4gICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gOiBcIlBvaW50IGRlIGTDqXBhcnRcIixcbiAgICAgICAgICAgICAgICBcIm1hcmtlci1zeW1ib2xcIiA6IHRoaXMub3B0aW9ucy5tYXJrZXJzT3B0cy5kZXBhcnR1cmUudXJsXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIC8vIEFqb3V0IGRlcyBwb2ludHMgZCfDqXRhcGVzXG4gICAgICAgIGZvciAodmFyIGsgPSAxOyBrIDwgdGhpcy5fY3VycmVudFBvaW50cy5sZW5ndGggLSAxOyBrKyspIHtcbiAgICAgICAgICAgIGlmICh0aGlzLl9jdXJyZW50UG9pbnRzW2tdICYmIHRoaXMuX2N1cnJlbnRQb2ludHNba10uZ2V0Q29vcmRpbmF0ZSkge1xuICAgICAgICAgICAgICAgIHZhciBjb29yZGluYXRlcyA9IHRoaXMuX2N1cnJlbnRQb2ludHNba10uZ2V0Q29vcmRpbmF0ZSgpO1xuICAgICAgICAgICAgICAgIGlmIChjb29yZGluYXRlcykge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLl9nZW9qc29uT2JqZWN0LmZlYXR1cmVzLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IFwiRmVhdHVyZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbWV0cnkgOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZSA6IFwiUG9pbnRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb29yZGluYXRlcyA6IGNvb3JkaW5hdGVzXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgcHJvcGVydGllcyA6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZXNjcmlwdGlvbiA6IFwiUG9pbnQgZCfDqXRhcGVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIm1hcmtlci1zeW1ib2xcIiA6IHRoaXMub3B0aW9ucy5tYXJrZXJzT3B0cy5zdGFnZXMudXJsXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIEFqb3V0IGR1IHBvaW50IGQnYXJyaXbDqWUgZHUgdHJhY8OpXG4gICAgICAgIHRoaXMuX2dlb2pzb25PYmplY3QuZmVhdHVyZXMucHVzaCh7XG4gICAgICAgICAgICB0eXBlIDogXCJGZWF0dXJlXCIsXG4gICAgICAgICAgICBnZW9tZXRyeSA6IHtcbiAgICAgICAgICAgICAgICB0eXBlIDogXCJQb2ludFwiLFxuICAgICAgICAgICAgICAgIGNvb3JkaW5hdGVzIDogdGhpcy5fY3VycmVudFBvaW50c1t0aGlzLl9jdXJyZW50UG9pbnRzLmxlbmd0aCAtIDFdLmdldENvb3JkaW5hdGUoKVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHByb3BlcnRpZXMgOiB7XG4gICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gOiBcIlBvaW50IGQnYXJyaXbDqWVcIixcbiAgICAgICAgICAgICAgICBcIm1hcmtlci1zeW1ib2xcIiA6IHRoaXMub3B0aW9ucy5tYXJrZXJzT3B0cy5hcnJpdmFsLnVybFxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICAvLyBDcsOpYXRpb24gZHUgZm9ybWF0IEdlb0pTT04sIGF2ZWMgcmVwcm9qZWN0aW9uIGRlcyBnw6lvbcOpdHJpZXNcbiAgICAgICAgdmFyIGdlb2pzb25mb3JtYXQgPSBuZXcgR2VvSlNPTkV4dGVuZG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nRpdGxlID09PSBsYXllcklkKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb250cm9sLmFkZExheWVyKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2dlb2pzb25TZWN0aW9ucywge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZSA6IHRoaXMub3B0aW9ucy5sYXllckRlc2NyaXB0aW9uLnRpdGxlICsgXCIgKFwiICsgZ3JhcGggKyBcIilcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVzY3JpcHRpb24gOiB0aGlzLm9wdGlvbnMubGF5ZXJEZXNjcmlwdGlvbi5kZXNjcmlwdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgdGhpc1xuICAgICAgICApO1xuXG4gICAgICAgIC8vIDUuIEFqb3V0IGRlIHBvcHVwcyBhdXggdHJvbmNvbnNcbiAgICAgICAgLy8gQ3LDqWF0aW9uIGRlIGwnaW50ZXJhY3Rpb24gOiBzdXJ2b2wgZGVzIGZlYXR1cmVzICg9dHJvbmNvbnMgZGUgbCdpdGluw6lyYWlyZSlcbiAgICAgICAgdGhpcy5fcmVzdWx0c0hvdmVySW50ZXJhY3Rpb24gPSBuZXcgU2VsZWN0SW50ZXJhY3Rpb24oe1xuICAgICAgICAgICAgY29uZGl0aW9uIDogZXZlbnRQb2ludGVyTW92ZSxcbiAgICAgICAgICAgIGxheWVycyA6IFt0aGlzLl9nZW9qc29uU2VjdGlvbnNdLFxuICAgICAgICAgICAgc3R5bGUgOiB0aGlzLl9zZWxlY3RlZEZlYXR1cmVTdHlsZVxuICAgICAgICB9KTtcbiAgICAgICAgdGhpcy5fcmVzdWx0c0hvdmVySW50ZXJhY3Rpb24ub24oXG4gICAgICAgICAgICBcInNl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ZW50LmlubmVySFRNTCA9IGYuZ2V0UHJvcGVydGllcygpLnBvcHVwQ29udGVudDtcblxuICAgICAgICAgICAgaWYgKCF0aGlzLl9wb3B1cE92ZXJsYXkpIHtcbiAgICAgICAgICAgICAgICAvLyBham91dCBkZSBsYSBwb3B1cCBhIGxhIGNhcnRlIGNvbW1lIHVuIG92ZXJsYXlcbiAgICAgICAgICAgICAgICB0aGlzLl9wb3B1cE92ZXJsYXkgPSBuZXcgT3ZlcmxheSh7XG4gICAgICAgICAgICAgICAgICAgIGVsZW1lbnQgOiB0aGlzLl9wb3B1cERpdixcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb25pbmcgOiBcImJvdHRvbS1jZW50ZXJcIixcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb24gOiBlLm1hcEJyb3dzZXJFdmVudC5jb29yZGluYXRlXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgbWFwLmFkZE92ZXJsYXkodGhpcy5fcG9wdXBPdmVybGF5KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgLy8gc2kgbCdvdmVybGF5IGVzdCBkw6lqw6AgY3LDqcOpLCBvbiBtb2RpZmllIGp1c3RlIHNhIHBvc2l0aW9uXG4gICAgICAgICAgICAgICAgdGhpcy5fcG9wdXBPdmVybGF5LnNldFBvc2l0aW9uKGUubWFwQnJvd3NlckV2ZW50LmNvb3JkaW5hdGUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgLy8gc2kgYXVjdW4gdHJvbmNvbiBuJ2VzdCBzw6lsZWN0aW9ubsOpIChjbGljayDDoCBjw7R0w6kgZHUgdHJhY8OpKSxcbiAgICAgICAgICAgIC8vIG9uIGZhaXQgZGlzcGFyYWl0cmUgbGEgcG9wdXAgc2kgZWxsZSBleGlzdGVcbiAgICAgICAgICAgIGlmICh0aGlzLl9wb3B1cE92ZXJsYXkgIT0gbnVsbCk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FyKClcbiAgICAgKiBhbmQgaXQgcmVtb3ZlcyBzdGVwIGxvY2F0aW9uIGlucHV0cyAoZXhjZXB0ZWQgZGVwYXJ0dXJlIGFuZCBhcnJpdmFsKVxuICAgICAqXG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBSb3V0ZS5wcm90b3R5cGUuX3JlbW92ZVJvdXRlU3RlcExvY2F0aW9ucyA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgdmFyIHBvaW50cyA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoXCJkaXZbaWRePVxcXCJHUGxvY2F0aW9uUG9pbnRcXFwiXVwiKTtcbiAgICAgICAgaWYgKHBvaW50cy5sZW5ndGggIT09IDApIHtcbiAgICAgICAgICAgIHZhciBnb29kUG9pbnRzID0gW107XG4gICAgICAgICAgICBmb3IgKHZhciBrID0gMDsgayA8IHBvaW50cy5sZW5ndGg7IGsrKykge1xuICAgICAgICAgICAgICAgIGlmIChwb2ludHNba10uaWQuaW5kZXhPZih0aGlzLl91aWQpICE9PSAtMSkge1xuICAgICAgICAgICAgICAgICAgICBnb29kUG9pbnRzLnB1c2gocG9pbnRzW2tdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAvLyBvbiBib3VjbGUgc3VyIGxlcyBwb2ludHMgaW50ZXJtw6lkaWFpcmVzXG4gICAgICAgICAgICBmb3IgKHZhciBpID0gMTsgaSA8IChnb29kUG9pbnRzLmxlbmd0aCAtIDEpOyBpKyspIHtcbiAgICAgICAgICAgICAgICAvLyBvbiB2YSByZWdhcmRlciBsZXMgY2xhc3NlcyBhc3NvY2nDqWVzXG4gICAgICAgICAgICAgICAgdmFyIGNsYXNzTGlzdCA9IGdvb2RQb2ludHNbaV0uY2xhc3NMaXN0O1xuICAgICAgICAgICAgICAgIGlmIChjbGFzc0xpc3QubGVuZ3RoICE9PSAwKSB7XG4gICAgICAgICAgICAgICAgICAgIGZvciAodmFyIGogPSAwOyBqIDwgY2xhc3NMaXN0Lmxlbmd0aDsgaisrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoY2xhc3NMaXN0W2pdID09PSBcIkdQbG9jYXRpb25TdGFnZUZsZXhJbnB1dFwiKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLy8gc2kgbCfDqWzDqW1lbnQgZXN0IHZpc2libGUsIG9uIGxlIHN1cHByaW1lIGVuIHNpbXVsYW50IHVuIGNsaWMgc3VyIGxhIGNyb2l4ICh4KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKHRoaXMuX2FkZFVJRChcIkdQbG9jYXRpb25TdGFnZVJlbW92ZV9cIiArIChpICsgMSkpKS5jbGljaygpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfTtcblxuICAgIC8qKlxuICAgICAqIHRoaXMgbWV0aG9kIGlzIGNhbGxlZCBieSB0aGlzLm9uUm91dGVDb21wdXRhdGlvblN1Ym1pdCgpIChpbiBjYXNlIG9mIGZhaWx1cmUpXG4gICAgICogYW5kIGl0IGNsZWFycyBhbGwgcm91dGUgaW5zdHJ1Y3Rpb25zLlxuICAgICAqXG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBSb3V0ZS5wcm90b3R5cGUuX2NsZWFyUm91dGVSZXN1bHRzRGV0YWlscyA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgdGhpcy5fY3VycmVudFJvdXRlSW5mb3JtYXRpb25zID0gbnVsbDtcblxuICAgICAgICAvLyBkb2l0IG9uIG5ldHRveWVyIGxlIGNvbnRhaW5lciBcIkdQcm91dGVSZXN1bHRzRGV0YWlsc1wiID9cbiAgICAgICAgLy8gaWwgc2VyYSBkZSB0b3V0ZSBmYcOnb24gw6ljcmFzw6kg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yID0gbnVsbDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZhciBjb250ZXh0ID0gdGhpcztcbiAgICAgICAgICAgIHRoaXMuX3RpbWVyID0gc2V0VGltZW91dChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgaWYgKGNvbnRleHQuX3dhaXRpbmcgPT09IHRydWUpIHtcbiAgICAgICAgICAgICAgICAgICAgY29udGV4dC5faGlkZVdhaXRpbmdDb250YWluZXIoKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBpZiAoY29udGV4dC5fdGltZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFyVGltZW91dChjb250ZXh0Ll90aW1lcik7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LCAxNjAwMCk7XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgLyoqXG4gICAgICogdGhpcyBtZXRob2QgaGlkZXMgd2FpdGluZyBjb250YWluZXIgYW5kIGNsZWFycyB0aW1lb3V0XG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIFJvdXRlLnByb3RvdHlwZS5faGlkZVdhaXRpbmdDb250YWluZXIgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgIGlmICh0aGlzLl93YWl0aW5nKSB7XG4gICAgICAgICAgICB0aGlzLl93YWl0aW5nQ29udGFpbmVyLmNsYXNzTmFtZSA9IFwiR1Byb3V0ZUNhbGNXYWl0aW5nQ29udGFpbmVySGlkZGVuXCI7XG4gICAgICAgICAgICB0aGlzLl93YWl0aW5nID0gZmFsc2U7XG4gICAgICAgICAgICB2YXIgb3B0cyA9IHRoaXMub3B0aW9ucy5yb3V0ZU9wdGlvbnM7XG4gICAgICAgICAgICBpZiAob3B0cyAmJiBvcHRzLnRpbWVPdXQpIHtcbiAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQodGhpcy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gMTsgaSA8IGluc3RydWN0aW9ucy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgdmFyIG8gPSBpbnN0cnVjdGlvbnNbaV07XG4gICAgICAgICAgICBpZiAoby5pbnN0cnVjdGlvbiA9PT0gY3VycmVudC5pbnN0cnVjdGlvbikge1xuICAgICAgICAgICAgICAgIGN1cnJlbnQuZGlzdGFuY2UgPSAocGFyc2VGbG9hdChvLmRpc3RhbmNlKSArIHBhcnNlRmxvYXQoY3VycmVudC5kaXN0YW5jZSkpLnRvU3RyaW5nKCk7XG4gICAgICAgICAgICAgICAgY3VycmVudC5kdXJhdGlvbiA9IChwYXJzZUZsb2F0KG8uZHVyYXRpb24pICsgcGFyc2VGbG9hdChjdXJyZW50LmR1cmF0aW9uKSkudG9TdHJpbmcoKTtcbiAgICAgICAgICAgICAgICBmb3IgKHZhciBqID0gMTsgaiA8IG8uZ2VvbWV0cnkuY29vcmRpbmF0ZXMubGVuZ3RoOyBqKyspIHtcbiAgICAgICAgICAgICAgICAgICAgY3VycmVudC5nZW9tZXRyeS5jb29yZGluYXRlcy5wdXNoKG8uZ2VvbWV0cnkuY29vcmRpbmF0ZXNbal0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgbmV3SW5zdHJ1Y3Rpb25zLnB1c2goY3VycmVudCk7XG4gICAgICAgICAgICAgICAgY3VycmVudCA9IG87XG4gICAgICAgICAgICAgICAgLy8gbGFzdFxuICAgICAgICAgICAgICAgIGlmIChpID09PSBpbnN0cnVjdGlvbnMubGVuZ3RoIC0gMSkge1xuICAgICAgICAgICAgICAgICAgICBuZXdJbnN0cnVjdGlvbnMucHVzaChvKTtcbiAgICAgICAgICAgICAgICAgICAgY3VycmVudCA9IG51bGw7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGxvZ2dlci5sb2cobmV3SW5zdHJ1Y3Rpb25zKTtc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ge1xuICAgICAgICAvLyAgICAgbWludXRlcyA9IFwiMDBcIjtcbiAgICAgICAgLy8gfVxuXG4gICAgICAgIC8vIHZhciBkaXZpc29yNHNlY29uZHMgPSBkaXZpc29yNG1pbnV0ZXMgJSA2MDtcbiAgICAgICAgLy8gdmFyIHNlY29uZHMgPSBNYXRoLmNlaWwoZGl2aXNvcjRzZWNvbmRzKTtcbiAgICAgICAgLy8gaWYgKCFzZWNvbmRzKSB7XG4gICAgICAgIC8vICAgICBzZWNvbmRzID0gXCIwMFwiO1xuICAgICAgICAvLyB9XG5cbiAgICAgICAgaWYgKGhvdXJzKSB7XG4gICAgICAgICAgICB0aW1lID0gaG91cnMgKyBcImggXCI7XG4gICAgICAgIH1cbiAgICAgICAgdGltZSArPSBtaW51dGVzICsgXCIgbWluXCI7XG4gICAgICAgIHJldHVybiB0aW1lO1xuICAgIH07XG5cbiAgICAvKipcbiAgICAgKiBjb252ZXJ0IGRpc3RhbmNlIGluIG1ldGVycyBvciBraWxvbWV0ZXJzXG4gICAgICpcbiAgICAgKiBAcGFyYW0ge051bWJlcn0gZGlzdGFuY2UgLSBkaXN0YW5jZSBpbiBtZXRlcnNcbiAgICAgKlxuICAgICAqIEByZXR1cm5zIHtTdHJpbmd9IGRpc3RhbmNlIGluIGttXG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqL1xuICAgIFJvdXRlLnByb3RvdHlwZS5fY29udmVydERpc3RhbmNlID0gZnVuY3Rpb24gKGRpc3RhbmNlKSB7XG4gICAgICAgIHZhciBkID0gXCJcIjtcblxuICAgICAgICB2YXIgZGlzdGFuY2VLbSA9IHBhcnNlSW50KGRpc3RhbmNlIC8gMTAwMCwgMTApO1xuICAgICAgICBpZiAoIWRpc3RhbmNlS20pIHtcbiAgICAgICAgICAgIGQgPSBwYXJzZUludChkaXN0YW5jZSwgMTApICsgXCIgbVwiOyAvLyBhcnJvbmRpICFcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGQgPSBkaXN0YW5jZUttICsgXCIga21cIjtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBkO1xuICAgIH07XG5cbiAgICByZXR1cm4gUm91dGU7XG59KENvbnRyb2wpKTtcblxuZXhwb3J0IGRlZmF1bHQgUm91dGU7XG5cbi8vIEV4cG9zZSBSb3V0ZSBhcyBvbC5jb250cm9sLlJvdXRlIChmb3IgYSBidWlsZCBidW5kbGUpXG5pZiAod2luZG93Lm9sICYmIHdpbmRvdy5vbC5jb250cm9sKSB7XG4gICAgd2luZG93Lm9sLmNvbnRyb2wuUm91dGUgPSBSb3V0ZTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/OpenLayers/Controls/Route.js\n"); /***/ }), @@ -3281,14 +3281,14 @@ eval("module.exports = ol.style.Text;//# sourceURL=[module]\n//# sourceMappingUR /***/ }), -/***/ "ol/tilegrid": +/***/ "ol/tilegrid.js": /*!******************************!*\ !*** external "ol.tilegrid" ***! \******************************/ /*! no static exports found */ /***/ (function(module, exports) { -eval("module.exports = ol.tilegrid;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC9leHRlcm5hbCBcIm9sLnRpbGVncmlkXCI/ZDgzZCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsImZpbGUiOiJvbC90aWxlZ3JpZC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gb2wudGlsZWdyaWQ7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///ol/tilegrid\n"); +eval("module.exports = ol.tilegrid;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9HcC9leHRlcm5hbCBcIm9sLnRpbGVncmlkXCI/ZDgzZCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsImZpbGUiOiJvbC90aWxlZ3JpZC5qcy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gb2wudGlsZWdyaWQ7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///ol/tilegrid.js\n"); /***/ }), diff --git a/current/dist/openlayers/GpPluginOpenLayers-src.css b/current/dist/openlayers/GpPluginOpenLayers-src.css index 7ac9f1ac7..1450ef858 100644 --- a/current/dist/openlayers/GpPluginOpenLayers-src.css +++ b/current/dist/openlayers/GpPluginOpenLayers-src.css @@ -9,8 +9,8 @@ * @copyright copyright (c) IGN * @license CeCILL-B * @author IGN - * @version 3.4.0 - * @date 19/03/2024 + * @version 3.4.1 + * @date 04/04/2024 * */ diff --git a/current/dist/openlayers/GpPluginOpenLayers-src.js b/current/dist/openlayers/GpPluginOpenLayers-src.js index 01ad4d6eb..b7ba382af 100644 --- a/current/dist/openlayers/GpPluginOpenLayers-src.js +++ b/current/dist/openlayers/GpPluginOpenLayers-src.js @@ -9,8 +9,8 @@ * @copyright copyright (c) IGN * @license CeCILL-B * @author IGN - * @version 3.4.0 - * @date 19/03/2024 + * @version 3.4.1 + * @date 04/04/2024 * */ @@ -1033,7 +1033,7 @@ if (window.ol) { /* 3 */ /***/ (function(module) { -module.exports = JSON.parse("{\"name\":\"geoportal-extensions\",\"description\":\"French Geoportal Extensions for OpenLayers, Leaflet and iTowns libraries\",\"version\":\"3.0.0\",\"date\":\"19/03/2024\",\"leafletExtName\":\"French Geoportal Extension for Leaflet\",\"leafletExtVersion\":\"2.4.0\",\"olExtName\":\"French Geoportal Extension for OpenLayers\",\"olExtVersion\":\"3.4.0\",\"itownsExtName\":\"French Geoportal Extension for Itowns\",\"itownsExtVersion\":\"2.5.0\",\"main\":\"dist/leaflet/GpPluginLeaflet.js, dist/openlayers/GpPluginOpenLayers.js, dist/itowns/GpPluginItowns.js\",\"types\":\"dist/leaflet/index.d.ts, dist/openlayers/index.d.ts, dist/itowns/index.d.ts\",\"module\":\"src/Leaflet/index.js, src/OpenLayers/index.js, src/Itowns/index.js\",\"directories\":{},\"scripts\":{\"setup\":\"npm install\",\"clean\":\"echo \\\"Warning: target not yet implemented!\\\" && exit 0\",\"eslint\":\"eslint src/\",\"test\":\"npm run test:serve\",\"test:serve\":\"cd test && webpack-dev-server --hot --config webpack.test.serve.js\",\"sample\":\"npm run sample:serve\",\"sample:serve\":\"npm run sample:ol:serve\",\"sample:itowns:serve\":\"webpack-dev-server --config build/webpack/webpack.config.itowns --mode=development --https --open-page samples/index-itowns-map.html --content-base . --output-public-path '/dist/itowns/' --port 9001 --open\",\"sample:leaflet:serve\":\"webpack-dev-server --config build/webpack/webpack.config.leaflet --mode=development --https --open-page samples/index-leaflet-map.html --content-base . --output-public-path '/dist/leaflet/' --port 9001 --open\",\"sample:ol:serve\":\"webpack-dev-server --config build/webpack/webpack.config.openlayers --mode=development --https --open-page samples/index-openlayers-map.html --content-base . --output-public-path '/dist/openlayers/' --port 9001 --open\",\"generate-types:ol\":\"npx tsc -p build/types/tsconfig-openlayers.json\",\"generate-types:leaflet\":\"npx tsc -p build/types/tsconfig-leaflet.json\",\"generate-types:itowns\":\"npx tsc -p build/types/tsconfig-itowns.json\",\"generate-jsdoc:ol\":\"jsdoc -c build/jsdoc/jsdoc-openlayers.json\",\"generate-jsdoc:leaflet\":\"jsdoc -c build/jsdoc/jsdoc-leaflet.json\",\"generate-jsdoc:itowns\":\"jsdoc -c build/jsdoc/jsdoc-itowns.json\",\"doc\":\"npm run doc:serve\",\"doc:serve\":\"npm run doc:ol:serve\",\"doc:itowns:serve\":\"webpack-dev-server --hot --config build/webpack/webpack.config.itowns --content-base jsdoc/itowns --port 9001 --open\",\"doc:leaflet:serve\":\"webpack-dev-server --hot --config build/webpack/webpack.config.leaflet --content-base jsdoc/leaflet --port 9001 --open\",\"doc:ol:serve\":\"webpack-dev-server --hot --config build/webpack/webpack.config.openlayers --content-base jsdoc/openlayers --port 9001 --open\",\"build:dev\":\"npm-run-all --print-label --print-name build:*:dev\",\"build:prod\":\"npm-run-all --print-label --print-name build:*:prod\",\"build:src\":\"npm-run-all --print-label --print-name build:*:src\",\"build\":\"npm-run-all --print-label --print-name build:*:*\",\"build:itowns\":\"npm-run-all --print-label --print-name build:itowns:*\",\"build:itowns:dev\":\"webpack --config build/webpack/webpack.config.itowns --mode=development\",\"build:itowns:prod\":\"webpack --config build/webpack/webpack.config.itowns --mode=production\",\"build:itowns:src\":\"webpack --config build/webpack/webpack.config.itowns --mode=none\",\"build:ol\":\"npm-run-all --print-label --print-name build:ol:*\",\"build:ol:dev\":\"webpack --config build/webpack/webpack.config.openlayers --mode=development\",\"build:ol:prod\":\"webpack --config build/webpack/webpack.config.openlayers --mode=production\",\"build:ol:src\":\"webpack --config build/webpack/webpack.config.openlayers --mode=none\",\"build:leaflet\":\"npm-run-all --print-label --print-name build:leaflet:*\",\"build:leaflet:dev\":\"webpack --config build/webpack/webpack.config.leaflet --mode=development\",\"build:leaflet:prod\":\"webpack --config build/webpack/webpack.config.leaflet --mode=production\",\"build:leaflet:src\":\"webpack --config build/webpack/webpack.config.leaflet --mode=none\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/IGNF/geoportal-extensions.git\"},\"author\":\"IGNF\",\"keywords\":[\"geoportail\",\"geoplateforme\",\"javascript\",\"OpenLayers\",\"Leaflet\",\"Itowns\",\"3D\"],\"license\":\"CECILL-B\",\"bugs\":{\"url\":\"https://github.com/IGNF/geoportal-extensions/issues\"},\"homepage\":\"https://github.com/IGNF/geoportal-extensions#readme\",\"dependencies\":{\"@mapbox/mapbox-gl-style-spec\":\"13.20.1\",\"eventbusjs\":\"0.2.0\",\"geoportal-access-lib\":\"3.4.0\",\"itowns\":\"2.38.2\",\"leaflet\":\"1.7.1\",\"leaflet-draw\":\"1.0.4\",\"loglevel\":\"^1.6.7\",\"markdown-toc\":\"^1.2.0\",\"ol\":\"6.9.0\",\"ol-mapbox-style\":\"6.7.0\",\"proj4\":\"2.7.5\",\"proj4leaflet\":\"1.0.2\",\"sortablejs\":\"1.14.0\",\"three\":\"0.137.5\",\"typescript\":\"^4.5.5\",\"whatwg-fetch\":\"3.0.0\"},\"devDependencies\":{\"@babel/core\":\"^7.4.4\",\"@babel/plugin-transform-template-literals\":\"^7.7.4\",\"@babel/preset-env\":\"^7.4.4\",\"babel-loader\":\"^8.0.5\",\"chai\":\"^4.2.0\",\"chalk\":\"^4.0.0\",\"clean-webpack-plugin\":\"^3.0.0\",\"copy-webpack-plugin\":\"^5.0.3\",\"core-js\":\"^3.6.4\",\"css-loader\":\"^3.4.2\",\"eslint\":\"^6.8.0\",\"eslint-config-standard\":\"^14.1.1\",\"eslint-loader\":\"^4.0.0\",\"eslint-plugin-import\":\"^2.17.2\",\"eslint-plugin-node\":\"^11.1.0\",\"eslint-plugin-promise\":\"^4.1.1\",\"eslint-plugin-standard\":\"^4.0.0\",\"exports-loader\":\"^0.7.0\",\"expose-loader\":\"^0.7.5\",\"fs-extra\":\"^9.0.0\",\"handlebars\":\"^4.7.5\",\"handlebars-layouts\":\"^3.1.4\",\"html-webpack-plugin\":\"^4.0.4\",\"jsdoc-webpack-plugin\":\"^0.3.0\",\"mini-css-extract-plugin\":\"^0.9.0\",\"mocha\":\"^7.1.1\",\"mocha-loader\":\"^5.0.0\",\"npm-run-all\":\"^4.1.5\",\"optimize-css-assets-webpack-plugin\":\"^5.0.1\",\"path\":\"^0.12.7\",\"replace-bundle-webpack-plugin\":\"^1.0.0\",\"requirejs\":\"^2.3.6\",\"responsive-loader\":\"^1.2.0\",\"speed-measure-webpack-plugin\":\"^1.3.0\",\"string-template\":\"^1.0.0\",\"style-loader\":\"^1.1.3\",\"terser-webpack-plugin\":\"^2.0.0\",\"url-loader\":\"^4.0.0\",\"webpack\":\"^4.30.0\",\"webpack-cli\":\"^3.3.1\",\"webpack-dev-server\":\"^3.3.1\",\"webpack-node-externals\":\"^1.7.2\"}}"); +module.exports = JSON.parse("{\"name\":\"geoportal-extensions\",\"description\":\"French Geoportal Extensions for OpenLayers, Leaflet and iTowns libraries\",\"version\":\"3.0.1\",\"date\":\"04/04/2024\",\"leafletExtName\":\"French Geoportal Extension for Leaflet\",\"leafletExtVersion\":\"2.4.0\",\"olExtName\":\"French Geoportal Extension for OpenLayers\",\"olExtVersion\":\"3.4.1\",\"itownsExtName\":\"French Geoportal Extension for Itowns\",\"itownsExtVersion\":\"2.5.0\",\"main\":\"dist/leaflet/GpPluginLeaflet.js, dist/openlayers/GpPluginOpenLayers.js, dist/itowns/GpPluginItowns.js\",\"types\":\"dist/leaflet/index.d.ts, dist/openlayers/index.d.ts, dist/itowns/index.d.ts\",\"module\":\"src/Leaflet/index.js, src/OpenLayers/index.js, src/Itowns/index.js\",\"directories\":{},\"scripts\":{\"setup\":\"npm install\",\"clean\":\"echo \\\"Warning: target not yet implemented!\\\" && exit 0\",\"eslint\":\"eslint src/\",\"test\":\"npm run test:serve\",\"test:serve\":\"cd test && webpack-dev-server --hot --config webpack.test.serve.js\",\"sample\":\"npm run sample:serve\",\"sample:serve\":\"npm run sample:ol:serve\",\"sample:itowns:serve\":\"webpack-dev-server --config build/webpack/webpack.config.itowns --mode=development --https --open-page samples/index-itowns-map.html --content-base . --output-public-path '/dist/itowns/' --port 9001 --open\",\"sample:leaflet:serve\":\"webpack-dev-server --config build/webpack/webpack.config.leaflet --mode=development --https --open-page samples/index-leaflet-map.html --content-base . --output-public-path '/dist/leaflet/' --port 9001 --open\",\"sample:ol:serve\":\"webpack-dev-server --config build/webpack/webpack.config.openlayers --mode=development --https --open-page samples/index-openlayers-map.html --content-base . --output-public-path '/dist/openlayers/' --port 9001 --open\",\"generate-types:ol\":\"npx tsc -p build/types/tsconfig-openlayers.json\",\"generate-types:leaflet\":\"npx tsc -p build/types/tsconfig-leaflet.json\",\"generate-types:itowns\":\"npx tsc -p build/types/tsconfig-itowns.json\",\"generate-jsdoc:ol\":\"jsdoc -c build/jsdoc/jsdoc-openlayers.json\",\"generate-jsdoc:leaflet\":\"jsdoc -c build/jsdoc/jsdoc-leaflet.json\",\"generate-jsdoc:itowns\":\"jsdoc -c build/jsdoc/jsdoc-itowns.json\",\"doc\":\"npm run doc:serve\",\"doc:serve\":\"npm run doc:ol:serve\",\"doc:itowns:serve\":\"webpack-dev-server --hot --config build/webpack/webpack.config.itowns --content-base jsdoc/itowns --port 9001 --open\",\"doc:leaflet:serve\":\"webpack-dev-server --hot --config build/webpack/webpack.config.leaflet --content-base jsdoc/leaflet --port 9001 --open\",\"doc:ol:serve\":\"webpack-dev-server --hot --config build/webpack/webpack.config.openlayers --content-base jsdoc/openlayers --port 9001 --open\",\"build:dev\":\"npm-run-all --print-label --print-name build:*:dev\",\"build:prod\":\"npm-run-all --print-label --print-name build:*:prod\",\"build:src\":\"npm-run-all --print-label --print-name build:*:src\",\"build\":\"npm-run-all --print-label --print-name build:*:*\",\"build:itowns\":\"npm-run-all --print-label --print-name build:itowns:*\",\"build:itowns:dev\":\"webpack --config build/webpack/webpack.config.itowns --mode=development\",\"build:itowns:prod\":\"webpack --config build/webpack/webpack.config.itowns --mode=production\",\"build:itowns:src\":\"webpack --config build/webpack/webpack.config.itowns --mode=none\",\"build:ol\":\"npm-run-all --print-label --print-name build:ol:*\",\"build:ol:dev\":\"webpack --config build/webpack/webpack.config.openlayers --mode=development\",\"build:ol:prod\":\"webpack --config build/webpack/webpack.config.openlayers --mode=production\",\"build:ol:src\":\"webpack --config build/webpack/webpack.config.openlayers --mode=none\",\"build:leaflet\":\"npm-run-all --print-label --print-name build:leaflet:*\",\"build:leaflet:dev\":\"webpack --config build/webpack/webpack.config.leaflet --mode=development\",\"build:leaflet:prod\":\"webpack --config build/webpack/webpack.config.leaflet --mode=production\",\"build:leaflet:src\":\"webpack --config build/webpack/webpack.config.leaflet --mode=none\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/IGNF/geoportal-extensions.git\"},\"author\":\"IGNF\",\"keywords\":[\"geoportail\",\"geoplateforme\",\"javascript\",\"OpenLayers\",\"Leaflet\",\"Itowns\",\"3D\"],\"license\":\"CECILL-B\",\"bugs\":{\"url\":\"https://github.com/IGNF/geoportal-extensions/issues\"},\"homepage\":\"https://github.com/IGNF/geoportal-extensions#readme\",\"dependencies\":{\"@mapbox/mapbox-gl-style-spec\":\"13.20.1\",\"eventbusjs\":\"0.2.0\",\"geoportal-access-lib\":\"3.4.0\",\"itowns\":\"2.38.2\",\"leaflet\":\"1.7.1\",\"leaflet-draw\":\"1.0.4\",\"loglevel\":\"^1.6.7\",\"markdown-toc\":\"^1.2.0\",\"ol\":\"6.9.0\",\"ol-mapbox-style\":\"6.7.0\",\"proj4\":\"2.7.5\",\"proj4leaflet\":\"1.0.2\",\"sortablejs\":\"1.14.0\",\"three\":\"0.137.5\",\"typescript\":\"^4.5.5\",\"whatwg-fetch\":\"3.0.0\"},\"devDependencies\":{\"@babel/core\":\"^7.4.4\",\"@babel/plugin-transform-template-literals\":\"^7.7.4\",\"@babel/preset-env\":\"^7.4.4\",\"babel-loader\":\"^8.0.5\",\"chai\":\"^4.2.0\",\"chalk\":\"^4.0.0\",\"clean-webpack-plugin\":\"^3.0.0\",\"copy-webpack-plugin\":\"^5.0.3\",\"core-js\":\"^3.6.4\",\"css-loader\":\"^3.4.2\",\"eslint\":\"^6.8.0\",\"eslint-config-standard\":\"^14.1.1\",\"eslint-loader\":\"^4.0.0\",\"eslint-plugin-import\":\"^2.17.2\",\"eslint-plugin-node\":\"^11.1.0\",\"eslint-plugin-promise\":\"^4.1.1\",\"eslint-plugin-standard\":\"^4.0.0\",\"exports-loader\":\"^0.7.0\",\"expose-loader\":\"^0.7.5\",\"fs-extra\":\"^9.0.0\",\"handlebars\":\"^4.7.5\",\"handlebars-layouts\":\"^3.1.4\",\"html-webpack-plugin\":\"^4.0.4\",\"jsdoc-webpack-plugin\":\"^0.3.0\",\"mini-css-extract-plugin\":\"^0.9.0\",\"mocha\":\"^7.1.1\",\"mocha-loader\":\"^5.0.0\",\"npm-run-all\":\"^4.1.5\",\"optimize-css-assets-webpack-plugin\":\"^5.0.1\",\"path\":\"^0.12.7\",\"replace-bundle-webpack-plugin\":\"^1.0.0\",\"requirejs\":\"^2.3.6\",\"responsive-loader\":\"^1.2.0\",\"speed-measure-webpack-plugin\":\"^1.3.0\",\"string-template\":\"^1.0.0\",\"style-loader\":\"^1.1.3\",\"terser-webpack-plugin\":\"^2.0.0\",\"url-loader\":\"^4.0.0\",\"webpack\":\"^4.30.0\",\"webpack-cli\":\"^3.3.1\",\"webpack-dev-server\":\"^3.3.1\",\"webpack-node-externals\":\"^1.7.2\"}}"); /***/ }), /* 4 */ @@ -65720,6 +65720,17 @@ var Route = function (Control) { // on recupere les éventuelles options du service passées par l'utilisateur var routeOptions = this.options.routeOptions; + // OVERLOAD : la resource bd-topo-osrm ne gère pas le calcul piéton en mode fastest + // dans ce cas, on utilise valhalla dans le cas d'une utilisation par défaut du widget + // sans paramétrage de resource explicitement demandé + var routeResource; + if (!routeOptions.resource) { + if (this._currentComputation === "fastest" && this._currentTransport === "Pieton") { + routeResource = "bdtopo-valhalla"; + } + } else { + routeResource = routeOptions.resource; + } // gestion du protocole et du timeout // le timeout est indispensable sur le protocole JSONP. var _protocol = routeOptions.protocol || "XHR"; @@ -65746,7 +65757,7 @@ var Route = function (Control) { distanceUnit: "m", timeOut: _timeout, protocol: _protocol, - resource: routeOptions.resource, + resource: routeResource, // callback onSuccess onSuccess: function onSuccess(results) { logger.log(results); @@ -74498,52 +74509,50 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var ol_Feature__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(ol_Feature__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(137); /* harmony import */ var ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(ol_tilegrid_WMTS__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var ol_tilegrid__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(195); -/* harmony import */ var ol_tilegrid__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ol_tilegrid__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(142); -/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ol_proj__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var ol_format_MVT__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(148); -/* harmony import */ var ol_format_MVT__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ol_format_MVT__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(239); -/* harmony import */ var ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(240); -/* harmony import */ var ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(146); -/* harmony import */ var ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(153); -/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(143); -/* harmony import */ var ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(44); -/* harmony import */ var ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(45); -/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(ol_source_Vector__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(46); -/* harmony import */ var ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_16__); -/* harmony import */ var ol_source_WMTS__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(47); -/* harmony import */ var ol_source_WMTS__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(ol_source_WMTS__WEBPACK_IMPORTED_MODULE_17__); -/* harmony import */ var ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(147); -/* harmony import */ var ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_18__); -/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(113); -/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(ol_style__WEBPACK_IMPORTED_MODULE_19__); -/* harmony import */ var ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(150); -/* harmony import */ var geoportal_access_lib__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(50); -/* harmony import */ var _Editor__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(241); -/* harmony import */ var _Utils_Markers__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(116); -/* harmony import */ var _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(210); -/* harmony import */ var _Utils_Interactions__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(204); -/* harmony import */ var _Common_Utils__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(127); -/* harmony import */ var _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(109); -/* harmony import */ var _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(198); -/* harmony import */ var _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(110); -/* harmony import */ var _Common_Controls_LayerImportDOM__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(253); -/* harmony import */ var _Formats_KML__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(111); -/* harmony import */ var _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(132); -/* harmony import */ var _Formats_GPX__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(128); -/* harmony import */ var _LayerSwitcher__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(196); -/* harmony import */ var _Route__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(227); -/* harmony import */ var _Isocurve__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(234); -/* harmony import */ var _ElevationPath__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(254); +/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(142); +/* harmony import */ var ol_proj__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(ol_proj__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var ol_format_MVT__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(148); +/* harmony import */ var ol_format_MVT__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(ol_format_MVT__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(239); +/* harmony import */ var ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(240); +/* harmony import */ var ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_9__); +/* harmony import */ var ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(146); +/* harmony import */ var ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10__); +/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(153); +/* harmony import */ var ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11__); +/* harmony import */ var ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(143); +/* harmony import */ var ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12__); +/* harmony import */ var ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(44); +/* harmony import */ var ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13__); +/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(45); +/* harmony import */ var ol_source_Vector__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(ol_source_Vector__WEBPACK_IMPORTED_MODULE_14__); +/* harmony import */ var ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(46); +/* harmony import */ var ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_15__); +/* harmony import */ var ol_source_WMTS__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(47); +/* harmony import */ var ol_source_WMTS__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(ol_source_WMTS__WEBPACK_IMPORTED_MODULE_16__); +/* harmony import */ var ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(147); +/* harmony import */ var ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_17__); +/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(113); +/* harmony import */ var ol_style__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(ol_style__WEBPACK_IMPORTED_MODULE_18__); +/* harmony import */ var ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(150); +/* harmony import */ var geoportal_access_lib__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(50); +/* harmony import */ var _Editor__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(241); +/* harmony import */ var _Utils_Markers__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(116); +/* harmony import */ var _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(210); +/* harmony import */ var _Utils_Interactions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(204); +/* harmony import */ var _Common_Utils__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(127); +/* harmony import */ var _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(109); +/* harmony import */ var _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(198); +/* harmony import */ var _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(110); +/* harmony import */ var _Common_Controls_LayerImportDOM__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(253); +/* harmony import */ var _Formats_KML__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(111); +/* harmony import */ var _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(132); +/* harmony import */ var _Formats_GPX__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(128); +/* harmony import */ var _LayerSwitcher__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(196); +/* harmony import */ var _Route__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(227); +/* harmony import */ var _Isocurve__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(234); +/* harmony import */ var _ElevationPath__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(254); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } // import CSS @@ -74553,7 +74562,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == - // FIXME olCreateXYZTileGrid !? +// import { createXYZ as olCreateXYZTileGrid } from "ol/tilegrid"; // FIXME olCreateXYZTileGrid !? @@ -74591,7 +74600,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == -var logger = _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_27__["default"].getLogger("layerimport"); +var logger = _Common_Utils_LoggerByDefault__WEBPACK_IMPORTED_MODULE_26__["default"].getLogger("layerimport"); /** * @classdesc @@ -74711,27 +74720,27 @@ var LayerImport = function (Control) { * @private */ LayerImport.DefaultStyles = { - image: new ol_style__WEBPACK_IMPORTED_MODULE_19__["Icon"]({ - src: _Utils_Markers__WEBPACK_IMPORTED_MODULE_23__["default"]["lightOrange"], + image: new ol_style__WEBPACK_IMPORTED_MODULE_18__["Icon"]({ + src: _Utils_Markers__WEBPACK_IMPORTED_MODULE_22__["default"]["lightOrange"], anchor: [25.5, 38], anchorOrigin: "top-left", anchorXUnits: "pixels", anchorYUnits: "pixels" }), - stroke: new ol_style__WEBPACK_IMPORTED_MODULE_19__["Stroke"]({ + stroke: new ol_style__WEBPACK_IMPORTED_MODULE_18__["Stroke"]({ color: "rgba(0,42,80,0.8)", width: 4 }), - fill: new ol_style__WEBPACK_IMPORTED_MODULE_19__["Fill"]({ + fill: new ol_style__WEBPACK_IMPORTED_MODULE_18__["Fill"]({ color: "rgba(0, 183, 152, 0.5)" }), - text: new ol_style__WEBPACK_IMPORTED_MODULE_19__["Text"]({ + text: new ol_style__WEBPACK_IMPORTED_MODULE_18__["Text"]({ font: "16px Sans", textAlign: "left", - fill: new ol_style__WEBPACK_IMPORTED_MODULE_19__["Fill"]({ + fill: new ol_style__WEBPACK_IMPORTED_MODULE_18__["Fill"]({ color: "rgba(255, 255, 255, 1)" }), - stroke: new ol_style__WEBPACK_IMPORTED_MODULE_19__["Stroke"]({ + stroke: new ol_style__WEBPACK_IMPORTED_MODULE_18__["Stroke"]({ color: "rgba(0, 0, 0, 1)", width: 2 }) @@ -74744,7 +74753,7 @@ var LayerImport = function (Control) { LayerImport.prototype = Object.create(Control.prototype, {}); // on récupère les méthodes de la classe commune LayerImportDOM - _Common_Utils__WEBPACK_IMPORTED_MODULE_26__["default"].assign(LayerImport.prototype, _Common_Controls_LayerImportDOM__WEBPACK_IMPORTED_MODULE_30__["default"]); + _Common_Utils__WEBPACK_IMPORTED_MODULE_25__["default"].assign(LayerImport.prototype, _Common_Controls_LayerImportDOM__WEBPACK_IMPORTED_MODULE_29__["default"]); /** * Constructor (alias) @@ -74787,11 +74796,11 @@ var LayerImport = function (Control) { // mode "draggable" if (this.draggable) { - _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_24__["default"].dragElement(this._importPanel, this._importPanelHeader, map.getTargetElement()); + _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_23__["default"].dragElement(this._importPanel, this._importPanelHeader, map.getTargetElement()); // panneau draggable pour les resultats ? - _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_24__["default"].dragElement(this._getCapPanel, this._getCapPanelHeader, map.getTargetElement()); - _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_24__["default"].dragElement(this._mapBoxPanel, this._mapBoxPanelHeader, map.getTargetElement()); + _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_23__["default"].dragElement(this._getCapPanel, this._getCapPanelHeader, map.getTargetElement()); + _Common_Utils_Draggable__WEBPACK_IMPORTED_MODULE_23__["default"].dragElement(this._mapBoxPanel, this._mapBoxPanelHeader, map.getTargetElement()); } } @@ -74915,7 +74924,7 @@ var LayerImport = function (Control) { this.options.vectorStyleOptions.KML.defaultStyle = options.vectorStyleOptions.KML.defaultStyle; } else { // get from control default options otherwise - this.options.vectorStyleOptions.KML.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__["Style"]({ + this.options.vectorStyleOptions.KML.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__["Style"]({ image: LayerImport.DefaultStyles.image, stroke: LayerImport.DefaultStyles.stroke, fill: LayerImport.DefaultStyles.fill, @@ -74927,7 +74936,7 @@ var LayerImport = function (Control) { this.options.vectorStyleOptions.GPX.defaultStyle = options.vectorStyleOptions.GPX.defaultStyle; } else { // get from control default options otherwise - this.options.vectorStyleOptions.GPX.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__["Style"]({ + this.options.vectorStyleOptions.GPX.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__["Style"]({ image: LayerImport.DefaultStyles.image, stroke: LayerImport.DefaultStyles.stroke, fill: LayerImport.DefaultStyles.fill, @@ -74939,7 +74948,7 @@ var LayerImport = function (Control) { this.options.vectorStyleOptions.GeoJSON.defaultStyle = options.vectorStyleOptions.GeoJSON.defaultStyle; } else { // get from control default options otherwise - this.options.vectorStyleOptions.GeoJSON.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__["Style"]({ + this.options.vectorStyleOptions.GeoJSON.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__["Style"]({ image: LayerImport.DefaultStyles.image, stroke: LayerImport.DefaultStyles.stroke, fill: LayerImport.DefaultStyles.fill, @@ -74952,7 +74961,7 @@ var LayerImport = function (Control) { this.options.vectorStyleOptions.MapBox.defaultStyle = options.vectorStyleOptions.MapBox.defaultStyle; } else { // get from control default options otherwise - this.options.vectorStyleOptions.MapBox.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__["Style"]({ + this.options.vectorStyleOptions.MapBox.defaultStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__["Style"]({ image: LayerImport.DefaultStyles.image, stroke: LayerImport.DefaultStyles.stroke, fill: LayerImport.DefaultStyles.fill, @@ -74990,7 +74999,7 @@ var LayerImport = function (Control) { } // merge with user options - _Common_Utils__WEBPACK_IMPORTED_MODULE_26__["default"].mergeParams(this.options, options); + _Common_Utils__WEBPACK_IMPORTED_MODULE_25__["default"].mergeParams(this.options, options); /** {Boolean} specify if LayerImport control is collapsed (true) or not (false) */ this.collapsed = this.options.collapsed; @@ -74999,7 +75008,7 @@ var LayerImport = function (Control) { this.draggable = this.options.draggable; // identifiant du contrôle : utile pour suffixer les identifiants CSS (pour gérer le cas où il y en a plusieurs dans la même page) - this._uid = _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_28__["default"].generate(); + this._uid = _Common_Utils_SelectorID__WEBPACK_IMPORTED_MODULE_27__["default"].generate(); // si une requête est en cours ou non this._waiting = false; @@ -75110,28 +75119,28 @@ var LayerImport = function (Control) { */ LayerImport.prototype._initDefaultStyles = function () { var kmlDefaultStyles = this.options.vectorStyleOptions.KML.defaultStyle; - this._defaultKMLStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__["Style"]({ + this._defaultKMLStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__["Style"]({ image: kmlDefaultStyles.image, stroke: kmlDefaultStyles.stroke, fill: kmlDefaultStyles.fill, text: kmlDefaultStyles.text }); var gpxDefaultStyles = this.options.vectorStyleOptions.GPX.defaultStyle; - this._defaultGPXStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__["Style"]({ + this._defaultGPXStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__["Style"]({ image: gpxDefaultStyles.image, stroke: gpxDefaultStyles.stroke, fill: gpxDefaultStyles.fill, text: gpxDefaultStyles.text }); var geoJSONDefaultStyles = this.options.vectorStyleOptions.GeoJSON.defaultStyle; - this._defaultGeoJSONStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__["Style"]({ + this._defaultGeoJSONStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__["Style"]({ image: geoJSONDefaultStyles.image, stroke: geoJSONDefaultStyles.stroke, fill: geoJSONDefaultStyles.fill, text: geoJSONDefaultStyles.text }); var MapBoxDefaultStyles = this.options.vectorStyleOptions.MapBox.defaultStyle; - this._defaultMapBoxStyle = new ol_style__WEBPACK_IMPORTED_MODULE_19__["Style"]({ + this._defaultMapBoxStyle = new ol_style__WEBPACK_IMPORTED_MODULE_18__["Style"]({ image: MapBoxDefaultStyles.image, stroke: MapBoxDefaultStyles.stroke, fill: MapBoxDefaultStyles.fill, @@ -75303,7 +75312,7 @@ var LayerImport = function (Control) { LayerImport.prototype._onShowImportClick = function () { var map = this.getMap(); // on supprime toutes les interactions - _Utils_Interactions__WEBPACK_IMPORTED_MODULE_25__["default"].unset(map); + _Utils_Interactions__WEBPACK_IMPORTED_MODULE_24__["default"].unset(map); // on affiche les resultats d'une couche MapBox if (this._hasMapBoxResults) { this._mapBoxPanel.style.display = "block"; @@ -75469,7 +75478,7 @@ var LayerImport = function (Control) { // 2. récupération proxy if (this.options.webServicesOptions && this.options.webServicesOptions.proxyUrl) { - url = _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_29__["default"].proxifyUrl(url, this.options.webServicesOptions); + url = _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_28__["default"].proxifyUrl(url, this.options.webServicesOptions); } // FIXME pb de surcharge en mode UMD !? ça ne marche pas... @@ -75477,7 +75486,7 @@ var LayerImport = function (Control) { // this._addFeaturesFromImportStaticLayerUrl(url, layerName); var context = this; - geoportal_access_lib__WEBPACK_IMPORTED_MODULE_21__["default"].Protocols.XHR.call({ + geoportal_access_lib__WEBPACK_IMPORTED_MODULE_20__["default"].Protocols.XHR.call({ url: url, method: "GET", timeOut: 15000, @@ -75704,22 +75713,20 @@ var LayerImport = function (Control) { } if (_glTiles) { // service tuilé et/ou mapbox - vectorFormat = new ol_format_MVT__WEBPACK_IMPORTED_MODULE_8___default.a({ + vectorFormat = new ol_format_MVT__WEBPACK_IMPORTED_MODULE_7___default.a({ featureClass: ol_Feature__WEBPACK_IMPORTED_MODULE_4___default.a }); - vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14___default.a({ + vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13___default.a({ attributions: _glSource.attribution, format: vectorFormat, // INFO // surcharge : grille en 256 sur du vecteur tuilé - tileGrid: Object(ol_tilegrid__WEBPACK_IMPORTED_MODULE_6__["createXYZ"])({ - // TODO scheme tms ? - extent: _glSource.bounds, - // [minx, miny, maxx, maxy] - maxZoom: _glSource.maxzoom || 22, - minZoom: _glSource.minzoom || 1, - tileSize: _glSource.tileSize || 256 - }), + // tileGrid : olCreateXYZTileGrid({ // TODO scheme tms ? + // extent : _glSource.bounds, // [minx, miny, maxx, maxy] + // maxZoom : _glSource.maxzoom || 22, + // minZoom : _glSource.minzoom || 1, + // tileSize : _glSource.tileSize || 256 + // }), urls: _glTiles }); vectorSource._title = _title; @@ -75738,7 +75745,7 @@ var LayerImport = function (Control) { vectorSource.on("tileloaderror", function (e) { self._loadingContainer.className = ""; }); - vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11___default.a({ + vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10___default.a({ source: vectorSource, visible: false, // zIndex: 0, // FIXME gerer l'ordre sur des multisources ? @@ -75748,17 +75755,17 @@ var LayerImport = function (Control) { vectorLayer.gpResultLayerId = "layerimport:" + this._currentImportType; } else if (_glUrl) { // service avec un tilejson - vectorFormat = new ol_format_MVT__WEBPACK_IMPORTED_MODULE_8___default.a({ + vectorFormat = new ol_format_MVT__WEBPACK_IMPORTED_MODULE_7___default.a({ featureClass: ol_Feature__WEBPACK_IMPORTED_MODULE_4___default.a }); - vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11___default.a({ + vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10___default.a({ visible: false, // zIndex : 0 declutter: true }); vectorLayer.id = _glSourceId; vectorLayer.gpResultLayerId = "layerimport:" + this._currentImportType; - var vectorTileJson = new ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_18___default.a({ + var vectorTileJson = new ol_source_TileJSON__WEBPACK_IMPORTED_MODULE_17___default.a({ url: _glUrl }); // lecture du tilejson avec extension IGN @@ -75775,19 +75782,17 @@ var LayerImport = function (Control) { tiles[i] = _glUrl + tile; } } - vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14___default.a({ + vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13___default.a({ attributions: vectorTileJson.getAttributions() || _tileJSONDoc.attribution, format: vectorFormat, // INFO // surcharge : grille en 256 sur du vecteur tuilé - tileGrid: Object(ol_tilegrid__WEBPACK_IMPORTED_MODULE_6__["createXYZ"])({ - // TODO scheme tms ? - extent: _glSource.bounds, - // [minx, miny, maxx, maxy] - maxZoom: _glSource.maxzoom || 22, - minZoom: _glSource.minzoom || 1, - tileSize: _glSource.tileSize || 256 - }), + // tileGrid : olCreateXYZTileGrid({ // TODO scheme tms ? + // extent : _glSource.bounds, // [minx, miny, maxx, maxy] + // maxZoom : _glSource.maxzoom || 22, + // minZoom : _glSource.minzoom || 1, + // tileSize : _glSource.tileSize || 256 + // }), urls: tiles }); vectorSource._title = _title; @@ -75814,8 +75819,8 @@ var LayerImport = function (Control) { // - cas avec un objet de type features ? // - cas avec une url relative ? var _glData = _glSource.data; - vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__["default"](); - vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_14___default.a({ + vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__["default"](); + vectorSource = new ol_source_VectorTile__WEBPACK_IMPORTED_MODULE_13___default.a({ attributions: _glSource.attribution, format: vectorFormat, url: _glData @@ -75826,7 +75831,7 @@ var LayerImport = function (Control) { vectorSource._metadata = _metadata; vectorSource._legends = _legends; vectorSource._originators = _originators; - vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_11___default.a({ + vectorLayer = new ol_layer_VectorTile__WEBPACK_IMPORTED_MODULE_10___default.a({ source: vectorSource, visible: false, // zIndex: 0, // FIXME gerer l'ordre sur des multisources ? @@ -75881,7 +75886,7 @@ var LayerImport = function (Control) { // TODO ajouter le style de type background ! // fonction de style de la couche var setStyle = function setStyle() { - Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__["applyStyle"])(p.layer, p.styles, p.id).then(function () { + Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__["applyStyle"])(p.layer, p.styles, p.id).then(function () { var visibility = true; p.layer.setVisible(visibility); var opacity = 1; @@ -75890,7 +75895,7 @@ var LayerImport = function (Control) { // gestion du centre sur la carte si center renseigné ! var projCode = map.getView().getProjection().getCode(); if (map.getView() && p.styles.center && p.styles.center.length) { - map.getView().setCenter(Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["transform"])(p.styles.center, "EPSG:4326", projCode)); + map.getView().setCenter(Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["transform"])(p.styles.center, "EPSG:4326", projCode)); } // gestion du zoom sur la carte si zoom renseigné ! @@ -75911,7 +75916,7 @@ var LayerImport = function (Control) { self._importPanel.style.display = "none"; // editeur de styles - var editor = new _Editor__WEBPACK_IMPORTED_MODULE_22__["default"]({ + var editor = new _Editor__WEBPACK_IMPORTED_MODULE_21__["default"]({ target: self._mapBoxResultsListContainer, style: JSON.parse(JSON.stringify(p.styles)), // clone @@ -76012,7 +76017,7 @@ var LayerImport = function (Control) { // maj du gestionnaire de couche map.getControls().forEach(function (control) { - if (control instanceof _LayerSwitcher__WEBPACK_IMPORTED_MODULE_34__["default"]) { + if (control instanceof _LayerSwitcher__WEBPACK_IMPORTED_MODULE_33__["default"]) { control.addLayer(p.layer, p.options); } }); @@ -76029,7 +76034,7 @@ var LayerImport = function (Control) { if (this._currentImportType === "KML") { // lecture du fichier KML : création d'un format ol.format.KML, qui possède une méthode readFeatures (et readProjection) vectorStyle = this.options.vectorStyleOptions.KML.defaultStyle; - vectorFormat = new _Formats_KML__WEBPACK_IMPORTED_MODULE_31__["default"]({ + vectorFormat = new _Formats_KML__WEBPACK_IMPORTED_MODULE_30__["default"]({ showPointNames: this.options.vectorStyleOptions.KML.showPointNames, extractStyles: this.options.vectorStyleOptions.KML.extractStyles, defaultStyle: [vectorStyle] @@ -76037,13 +76042,13 @@ var LayerImport = function (Control) { } else if (this._currentImportType === "GPX") { // lecture du fichier GPX : création d'un format ol.format.GPX, qui possède une méthode readFeatures (et readProjection) vectorStyle = this.options.vectorStyleOptions.GPX.defaultStyle; - vectorFormat = new _Formats_GPX__WEBPACK_IMPORTED_MODULE_33__["default"]({ + vectorFormat = new _Formats_GPX__WEBPACK_IMPORTED_MODULE_32__["default"]({ defaultStyle: vectorStyle }); } else if (this._currentImportType === "GeoJSON") { // lecture du fichier GeoJSON : création d'un format ol.format.GeoJSON, qui possède une méthode readFeatures (et readProjection) vectorStyle = this.options.vectorStyleOptions.GeoJSON.defaultStyle; - vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__["default"]({ + vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__["default"]({ defaultStyle: vectorStyle }); } @@ -76062,7 +76067,7 @@ var LayerImport = function (Control) { logger.log("loaded features : ", features); // création d'une couche vectorielle à partir de ces features - vectorSource = new ol_source_Vector__WEBPACK_IMPORTED_MODULE_15___default.a({ + vectorSource = new ol_source_Vector__WEBPACK_IMPORTED_MODULE_14___default.a({ features: new ol_Collection__WEBPACK_IMPORTED_MODULE_3___default.a() }); vectorSource.addFeatures(features); @@ -76070,7 +76075,7 @@ var LayerImport = function (Control) { // ajout des informations pour le layerSwitcher (titre, description) vectorSource._title = vectorSource._description = layerName; - vectorLayer = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12___default.a({ + vectorLayer = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11___default.a({ source: vectorSource, style: vectorStyle }); @@ -76087,15 +76092,15 @@ var LayerImport = function (Control) { // * elevationpath var authorizedControls = { route: { - "class": _Route__WEBPACK_IMPORTED_MODULE_35__["default"], + "class": _Route__WEBPACK_IMPORTED_MODULE_34__["default"], name: "itineraire" }, isocurve: { - "class": _Isocurve__WEBPACK_IMPORTED_MODULE_36__["default"], + "class": _Isocurve__WEBPACK_IMPORTED_MODULE_35__["default"], name: "isocurve" }, elevationpath: { - "class": _ElevationPath__WEBPACK_IMPORTED_MODULE_37__["default"], + "class": _ElevationPath__WEBPACK_IMPORTED_MODULE_36__["default"], name: "profil altimetrique" } }; @@ -76116,7 +76121,7 @@ var LayerImport = function (Control) { vectorLayer.set("graph", graphControl); vectorLayer.set("data", configControl); vectorLayer.set("title", titleControl); - var formatGeoJSON = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__["default"]({ + var formatGeoJSON = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__["default"]({ defaultStyle: vectorStyle }); var geojson = formatGeoJSON.writeFeatures(features, { @@ -76171,7 +76176,7 @@ var LayerImport = function (Control) { } else { if (this._currentImportType === "KML") { // lecture du fichier KML : création d'un format ol.format.KML, qui possède une méthode readFeatures (et readProjection) - vectorFormat = new _Formats_KML__WEBPACK_IMPORTED_MODULE_31__["default"]({ + vectorFormat = new _Formats_KML__WEBPACK_IMPORTED_MODULE_30__["default"]({ showPointNames: true, // FIXME option ! extractStyles: this.options.vectorStyleOptions.KML.extractStyles, @@ -76179,18 +76184,18 @@ var LayerImport = function (Control) { }); } else if (this._currentImportType === "GPX") { // lecture du fichier GPX : création d'un format ol.format.GPX, qui possède une méthode readFeatures (et readProjection) - vectorFormat = new _Formats_GPX__WEBPACK_IMPORTED_MODULE_33__["default"]({ + vectorFormat = new _Formats_GPX__WEBPACK_IMPORTED_MODULE_32__["default"]({ defaultStyle: this.options.vectorStyleOptions.GPX.defaultStyle }); } else if (this._currentImportType === "GeoJSON") { // lecture du fichier GeoJSON : création d'un format ol.format.GeoJSON, qui possède une méthode readFeatures (et readProjection) - vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_32__["default"]({ + vectorFormat = new _Formats_GeoJSON__WEBPACK_IMPORTED_MODULE_31__["default"]({ defaultStyle: this.options.vectorStyleOptions.GeoJSON.defaultStyle }); } // création d'une couche vectorielle à partir de ces features - vectorSource = new ol_source_Vector__WEBPACK_IMPORTED_MODULE_15___default.a({ + vectorSource = new ol_source_Vector__WEBPACK_IMPORTED_MODULE_14___default.a({ url: url, format: vectorFormat }); @@ -76215,7 +76220,7 @@ var LayerImport = function (Control) { // ajout des informations pour le layerSwitcher (titre, description) vectorSource._title = vectorSource._description = layerName; - vectorLayer = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_12___default.a({ + vectorLayer = new ol_layer_Vector__WEBPACK_IMPORTED_MODULE_11___default.a({ source: vectorSource }); } @@ -76279,7 +76284,7 @@ var LayerImport = function (Control) { break; } } - Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__["applyStyle"])(layer, styles, data.source).then(function () {})["catch"](function (error) { + Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__["applyStyle"])(layer, styles, data.source).then(function () {})["catch"](function (error) { logger.error(error); }); } @@ -76307,7 +76312,7 @@ var LayerImport = function (Control) { break; } } - Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__["applyStyle"])(layer, styles, data.source).then(function () {})["catch"](function (error) { + Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__["applyStyle"])(layer, styles, data.source).then(function () {})["catch"](function (error) { logger.error(error); }); } @@ -76337,7 +76342,7 @@ var LayerImport = function (Control) { break; } } - Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__["applyStyle"])(layer, styles, data.source).then(function () {})["catch"](function (error) { + Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__["applyStyle"])(layer, styles, data.source).then(function () {})["catch"](function (error) { logger.error(error); }); } @@ -76369,7 +76374,7 @@ var LayerImport = function (Control) { break; } } - Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_20__["applyStyle"])(layer, styles, data.source).then(function () {})["catch"](function (error) { + Object(ol_mapbox_style__WEBPACK_IMPORTED_MODULE_19__["applyStyle"])(layer, styles, data.source).then(function () {})["catch"](function (error) { logger.error(error); }); } @@ -76437,7 +76442,7 @@ var LayerImport = function (Control) { // 2. récupération proxy if (this.options.webServicesOptions && this.options.webServicesOptions.proxyUrl) { - url = _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_29__["default"].proxifyUrl(url, this.options.webServicesOptions); + url = _Common_Utils_ProxyUtils__WEBPACK_IMPORTED_MODULE_28__["default"].proxifyUrl(url, this.options.webServicesOptions); } // 3. affichage d'une patience le temps de la requête @@ -76445,7 +76450,7 @@ var LayerImport = function (Control) { // 4. send getcapabilities request (XHR protocol => proxy Url is needed) var context = this; - geoportal_access_lib__WEBPACK_IMPORTED_MODULE_21__["default"].Protocols.XHR.call({ + geoportal_access_lib__WEBPACK_IMPORTED_MODULE_20__["default"].Protocols.XHR.call({ url: url, method: "GET", timeOut: 15000, @@ -76489,7 +76494,7 @@ var LayerImport = function (Control) { // Parse GetCapabilities Response if (this._currentImportType === "WMS") { - parser = new ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_9___default.a(); + parser = new ol_format_WMSCapabilities__WEBPACK_IMPORTED_MODULE_8___default.a(); var getCapResponseWMS = this._getCapResponseWMS = parser.read(xmlResponse); logger.log("getCapabilities response : ", getCapResponseWMS); if (getCapResponseWMS && getCapResponseWMS.Capability && getCapResponseWMS.Capability.Layer) { @@ -76509,7 +76514,7 @@ var LayerImport = function (Control) { } } } else if (this._currentImportType === "WMTS") { - parser = new ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_10___default.a(); + parser = new ol_format_WMTSCapabilities__WEBPACK_IMPORTED_MODULE_9___default.a(); var getCapResponseWMTS = this._getCapResponseWMTS = parser.read(xmlResponse); logger.log("getCapabilities response : ", getCapResponseWMTS); if (getCapResponseWMTS && getCapResponseWMTS.Contents && getCapResponseWMTS.Contents.Layer) { @@ -76522,7 +76527,7 @@ var LayerImport = function (Control) { // (ie elle doit être connue par ol.proj) projection = this._getWMTSLayerProjection(layers[j], getCapResponseWMTS); if (projection && typeof projection === "string") { - if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(projection) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(projection.toUpperCase())) { + if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(projection) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(projection.toUpperCase())) { // si la projection de la couche est connue par ol.proj, // on ajoute chaque couche de la réponse dans la liste des couches accessibles layerDescription = { @@ -76771,7 +76776,7 @@ var LayerImport = function (Control) { } // Création de la source (tester un try catch ?) - var wmsSource = new ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_16___default.a(wmsSourceOptions); + var wmsSource = new ol_source_TileWMS__WEBPACK_IMPORTED_MODULE_15___default.a(wmsSourceOptions); // ajout des informations pour le layerSwitcher (titre, description, legendes, metadata) ou originators this._getWMSLayerInfoForLayerSwitcher(layerInfo, legend, wmsSource); var layerTileOptions = {}; @@ -76782,7 +76787,7 @@ var LayerImport = function (Control) { this._getWMSLayerExtent(layerInfo, mapProjCode, layerTileOptions); // création de la couche à partir de la source - var wmsLayer = new ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13___default.a(layerTileOptions); + var wmsLayer = new ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12___default.a(layerTileOptions); // on rajoute le champ gpResultLayerId permettant d'identifier une couche crée par le composant. (pour layerSwitcher par ex) wmsLayer.gpResultLayerId = "layerimport:WMS"; // on rajoute le champ gpGFIparams permettant d'identifier si la couche est queryable, et de transmettre les formats reconnus par GetFeatureInfo @@ -76853,7 +76858,7 @@ var LayerImport = function (Control) { for (i = 0; i < CRSList.length; i++) { layerCRS = CRSList[i]; if (layerCRS && typeof layerCRS === "string") { - if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(layerCRS) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(layerCRS.toUpperCase())) { + if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(layerCRS) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(layerCRS.toUpperCase())) { projection = layerCRS; // on renvoie la première projection gérée par openLayers return projection; @@ -76877,7 +76882,7 @@ var LayerImport = function (Control) { */ LayerImport.prototype._getWMSLayerMinMaxResolution = function (layerInfo, mapProjCode, layerTileOptions) { // récupération des résolutions min et max à partir des dénominateurs d'échelle - var mapUnits = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(mapProjCode).getUnits(); + var mapUnits = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(mapProjCode).getUnits(); if (mapUnits === "m") { // info : 1 pixel = 0.00028 m if (layerInfo.MinScaleDenominator) { @@ -76924,7 +76929,7 @@ var LayerImport = function (Control) { // si la projection de la carte est la même que celle de l'extent (EPSG:4326), on la passe telle quelle layerTileOptions.extent = exGeographicBoundingBox; } else { - layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["transformExtent"])(exGeographicBoundingBox, "EPSG:4326", mapProjCode); + layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["transformExtent"])(exGeographicBoundingBox, "EPSG:4326", mapProjCode); } // si jamais EX_GeographicBoundingBox n'est pas ou est mal renseigné, on essaie de récupérer via le paramètre BoundingBox @@ -76942,7 +76947,7 @@ var LayerImport = function (Control) { break; } else { if (typeof crs === "string") { - var olProj = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(crs) ? Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(crs) : Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(crs.toUpperCase()); + var olProj = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(crs) ? Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(crs) : Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(crs.toUpperCase()); // if ( olGetProj(crs) || olGetProj(crs.toUpperCase()) ) { if (olProj) { // si la bbox est dans une projection connue, on va la reprojeter @@ -76950,10 +76955,10 @@ var LayerImport = function (Control) { if (olProj.getUnits() === "degrees" && crs.toUpperCase().indexOf("EPSG") === 0) { // le tableau extent est inversé, on a besoin de : [miny, minx, maxx, maxy] var reversedExtent = [extent[1], extent[0], extent[3], extent[2]]; - layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["transformExtent"])(reversedExtent, olProj, mapProjCode); + layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["transformExtent"])(reversedExtent, olProj, mapProjCode); } else { // reprojection dans la projection de la carte - layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["transformExtent"])(extent, olProj, mapProjCode); + layerTileOptions.extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["transformExtent"])(extent, olProj, mapProjCode); } break; } @@ -77102,7 +77107,7 @@ var LayerImport = function (Control) { wmtsSourceOptions.format = format; // Création de la source (tester un try catch ?) - var wmtsSource = new ol_source_WMTS__WEBPACK_IMPORTED_MODULE_17___default.a(wmtsSourceOptions); + var wmtsSource = new ol_source_WMTS__WEBPACK_IMPORTED_MODULE_16___default.a(wmtsSourceOptions); // ajout des informations pour le layerSwitcher (titre, description) if (layerInfo.Title) { @@ -77124,7 +77129,7 @@ var LayerImport = function (Control) { layerTileOptions.extent = this._getWMTSLayerExtent(layerInfo); var wmtsLayer; try { - wmtsLayer = new ol_layer_Tile__WEBPACK_IMPORTED_MODULE_13___default.a(layerTileOptions); + wmtsLayer = new ol_layer_Tile__WEBPACK_IMPORTED_MODULE_12___default.a(layerTileOptions); } catch (e) { logger.warn("[ol.control.LayerImport] an error occured while trying to create ol.layer.Tile from getCapabilities information. error : ", e); return; @@ -77182,7 +77187,7 @@ var LayerImport = function (Control) { var tileMatrixSet = tileMatrixSets[i]; crs = tileMatrixSet.SupportedCRS; if (crs && typeof crs === "string") { - if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(crs) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(crs.toUpperCase())) { + if (Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(crs) || Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(crs.toUpperCase())) { projection = crs; } } @@ -77235,7 +77240,7 @@ var LayerImport = function (Control) { var units; if (tileMatrixSet.SupportedCRS) { projCode = tileMatrixSet.SupportedCRS; - projection = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["get"])(projCode); + projection = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["get"])(projCode); } if (projection && projection.getUnits) { units = projection.getUnits(); @@ -77306,7 +77311,7 @@ var LayerImport = function (Control) { // récupération de l'étendue (bbox) if (layerInfo.WGS84BoundingBox && Array.isArray(layerInfo.WGS84BoundingBox)) { - extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_7__["transformExtent"])(layerInfo.WGS84BoundingBox, "EPSG:4326", mapProjCode); + extent = Object(ol_proj__WEBPACK_IMPORTED_MODULE_6__["transformExtent"])(layerInfo.WGS84BoundingBox, "EPSG:4326", mapProjCode); } return extent; }; diff --git a/current/dist/openlayers/GpPluginOpenLayers.css b/current/dist/openlayers/GpPluginOpenLayers.css index 1ffc682e4..f36c828f2 100644 --- a/current/dist/openlayers/GpPluginOpenLayers.css +++ b/current/dist/openlayers/GpPluginOpenLayers.css @@ -9,8 +9,8 @@ * @copyright copyright (c) IGN * @license CeCILL-B * @author IGN - * @version 3.4.0 - * @date 19/03/2024 + * @version 3.4.1 + * @date 04/04/2024 * */ diff --git a/current/dist/openlayers/GpPluginOpenLayers.js b/current/dist/openlayers/GpPluginOpenLayers.js index 431631442..b1abefa68 100644 --- a/current/dist/openlayers/GpPluginOpenLayers.js +++ b/current/dist/openlayers/GpPluginOpenLayers.js @@ -9,8 +9,8 @@ * @copyright copyright (c) IGN * @license CeCILL-B * @author IGN - * @version 3.4.0 - * @date 19/03/2024 + * @version 3.4.1 + * @date 04/04/2024 * */ /*! @@ -89,14 +89,14 @@ * @version 2.7.5 */ var Gp=function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=77)}([function(e,t){e.exports=ol.style},function(e,t){e.exports=ol.proj},function(e,t){e.exports=ol.Observable},function(e,t){e.exports=ol.interaction},function(e,t){e.exports=ol.control.Control},function(e,t){e.exports=ol.layer.Vector},function(e,t,o){(function(t){e.exports=t.eventbus=o(105)}).call(this,o(28))},function(e,t,o){"use strict";(function(e){var o={configuration:{},isConfigLoaded:function(){if(this.configuration&&0!==Object.keys(this.configuration).length)return!0;var t="undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==e?e:{};return!!(t.Gp&&t.Gp.Config&&t.Gp.Config.layers&&0!==Object.keys(t.Gp.Config.layers).length)&&(this.configuration=t.Gp.Config,!0)}};t.a=o}).call(this,o(28))},function(e,t){e.exports=ol.geom},function(e,t){e.exports=ol.source.Vector},function(e,t){e.exports=ol.Overlay},function(e,t){e.exports=ol.sphere},function(e,t){e.exports=ol.Feature},function(e,t){e.exports=ol.style.Style},function(e,t){e.exports=ol.source.VectorTile},function(e,t){e.exports=ol.style.Fill},function(e,t){e.exports=ol.style.Stroke},function(e,t,o){"use strict";(function(e,n){function i(e){return function(e){if(Array.isArray(e))return I(e)}(e)||r(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e,t){return l(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,i,r,a,s=[],l=!0,c=!1;try{if(r=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=r.call(o)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=o.return&&(a=o.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||C(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){if(Array.isArray(e))return e}function c(e,t){for(var o=0;o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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 r,a=!0,s=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==o.return||o.return()}finally{if(s)throw r}}}}function C(e,t){if(e){if("string"==typeof e)return I(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{: }`. If specified as a string for a vector tile source, the same property is used across all its source layers."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster:{type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{doc:"A RGB-encoded raster DEM source"}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},encoding:{type:"enum",values:{terrarium:{doc:"Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info."},mapbox:{doc:"Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info."}},default:"mapbox",doc:"The encoding used by this source. Mapbox Terrain RGB is used by default"},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{doc:"A GeoJSON data source."}},doc:"The data type of the GeoJSON source."},data:{type:"*",doc:"A URL to a GeoJSON file, or inline GeoJSON."},maxzoom:{type:"number",default:18,doc:"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},buffer:{type:"number",default:128,maximum:512,minimum:0,doc:"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},filter:{type:"*",doc:"An expression for filtering features prior to processing them for rendering."},tolerance:{type:"number",default:.375,doc:"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},cluster:{type:"boolean",default:!1,doc:"If the data is a collection of point features, setting this to true clusters the points by radius into groups. Cluster groups become new `Point` features in the source with additional properties:\n * `cluster` Is `true` if the point is a cluster \n * `cluster_id` A unqiue id for the cluster to be used in conjunction with the [cluster inspection methods](https://www.mapbox.com/mapbox-gl-js/api/#geojsonsource#getclusterexpansionzoom)\n * `point_count` Number of original points grouped into this cluster\n * `point_count_abbreviated` An abbreviated point count"},clusterRadius:{type:"number",default:50,minimum:0,doc:"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},clusterMaxZoom:{type:"number",doc:"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered). Clusters are re-evaluated at integer zoom levels so setting clusterMaxZoom to 14 means the clusters will be displayed until z15."},clusterMinPoints:{type:"number",doc:"Minimum number of points necessary to form a cluster if clustering is enabled. Defaults to `2`."},clusterProperties:{type:"*",doc:'An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. Has the form `{"property_name": [operator, map_expression]}`. `operator` is any expression function that accepts at least 2 operands (e.g. `"+"` or `"max"`) — it accumulates the property value from clusters/points the cluster contains; `map_expression` produces the value of a single point.\n\nExample: `{"sum": ["+", ["get", "scalerank"]]}`.\n\nFor more advanced use cases, in place of `operator`, you can use a custom reduce expression that references a special `["accumulated"]` value, e.g.:\n`{"sum": [["+", ["accumulated"], ["get", "sum"]], ["get", "scalerank"]]}`'},lineMetrics:{type:"boolean",default:!1,doc:"Whether to calculate line distance metrics. This is required for line layers that specify `line-gradient` values."},generateId:{type:"boolean",default:!1,doc:"Whether to generate ids for the geojson features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{: }`."}},source_video:{type:{required:!0,type:"enum",values:{video:{doc:"A video data source."}},doc:"The data type of the video source."},urls:{required:!0,type:"array",value:"string",doc:"URLs to video content in order of preferred format."},coordinates:{required:!0,doc:"Corners of video specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},source_image:{type:{required:!0,type:"enum",values:{image:{doc:"An image data source."}},doc:"The data type of the image source."},url:{required:!0,type:"string",doc:"URL that points to an image."},coordinates:{required:!0,doc:"Corners of image specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},layer:{id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},sky:{doc:"A spherical dome around the map that is always rendered behind all other layers.","sdk-support":{"basic functionality":{js:"2.0.0"}}}},doc:"Rendering type of this layer.",required:!0},metadata:{type:"*",doc:"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{type:"string",doc:"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."},filter:{type:"filter",doc:"A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `feature-state` expression is not supported in filter expressions."},layout:{type:"layout",doc:"Layout properties for the layer."},paint:{type:"paint",doc:"Default paint properties for this layer."}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],layout_background:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_sky:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"},"data-driven styling":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},"property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{doc:"A cap with a squared-off end which is drawn to the exact endpoint of the line."},round:{doc:"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},square:{doc:"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."}},default:"butt",doc:"The display of line endings.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.3.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{doc:"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."},round:{doc:"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},miter:{doc:"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},default:"miter",doc:"The display of lines when joining.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,doc:"Used to automatically convert miter joins to bevel joins for sharp angles.",requires:[{"line-join":"miter"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,doc:"Used to automatically convert round joins to miter joins for shallow angles.",requires:[{"line-join":"round"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{doc:"The label is placed at the point where the geometry is located."},line:{doc:"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."},"line-center":{doc:"The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries."}},default:"point",doc:"Label placement relative to its geometry.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`line-center` value":{js:"0.47.0",android:"6.4.0",ios:"4.3.0",macos:"0.10.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",doc:"Distance between two symbol anchors.",requires:[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,doc:"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `icon-allow-overlap` or `text-allow-overlap` is `false`, features with a lower sort key will have priority during placement. When `icon-allow-overlap` or `text-allow-overlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.","sdk-support":{"basic functionality":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"},"data-driven styling":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},"viewport-y":{doc:"Sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},source:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, no sorting is applied; symbols are rendered in the same order as the source data."}},default:"auto",doc:"Determines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their y-position relative to the viewport. To control the order and prioritization of symbols otherwise, use `symbol-sort-key`.","sdk-support":{"basic functionality":{js:"0.49.0",android:"6.6.0",ios:"4.5.0",macos:"0.12.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,doc:"If true, the icon will be visible even if it collides with other previously drawn symbols.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the icon.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,doc:"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line."},viewport:{doc:"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",doc:"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{doc:"The icon is displayed at its intrinsic aspect ratio."},width:{doc:"The icon is scaled in the x-dimension to fit the width of the text."},height:{doc:"The icon is scaled in the y-dimension to fit the height of the text."},both:{doc:"The icon is scaled in both x- and y-dimensions."}},default:"none",doc:"Scales the icon to fit around the associated text.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"stretchable icons":{js:"1.6.0",android:"9.2.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",doc:"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",doc:"Name of image in sprite to use for drawing an image background.",tokens:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the icon clockwise.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the icon bounding box used for detecting symbol collisions.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,doc:"If true, the icon may be flipped to prevent it from being rendered upside-down.",requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],doc:"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{doc:"The center of the icon is placed closest to the anchor."},left:{doc:"The left side of the icon is placed closest to the anchor."},right:{doc:"The right side of the icon is placed closest to the anchor."},top:{doc:"The top of the icon is placed closest to the anchor."},bottom:{doc:"The bottom of the icon is placed closest to the anchor."},"top-left":{doc:"The top left corner of the icon is placed closest to the anchor."},"top-right":{doc:"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the icon is placed closest to the anchor."}},default:"center",doc:"Part of the icon placed closest to the anchor.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{doc:"The icon is aligned to the plane of the map."},viewport:{doc:"The icon is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `icon-rotation-alignment`."}},default:"auto",doc:"Orientation of icon when map is pitched.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{doc:"The text is aligned to the plane of the map."},viewport:{doc:"The text is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `text-rotation-alignment`."}},default:"auto",doc:"Orientation of text when map is pitched.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line."},viewport:{doc:"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,doc:"Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],doc:"Font stack to use for displaying text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",doc:"Font size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",doc:"The maximum line width for text wrapping.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",doc:"Text leading value for multi-line text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.3.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",doc:"Text tracking amount.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{doc:"The text is aligned towards the anchor position."},left:{doc:"The text is aligned to the left."},center:{doc:"The text is centered."},right:{doc:"The text is aligned to the right."}},default:"center",doc:"Text justification options.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},auto:{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,doc:"Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `text-variable-anchor`, which defaults to using the two-dimensional `text-offset` if present.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"},"data-driven styling":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},requires:["text-field",{"symbol-placement":["point"]}],doc:"To increase the chance of placing high-priority labels on the map, you can provide an array of `text-anchor` locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `text-justify: auto` to choose justification based on anchor position. To apply an offset, use the `text-radial-offset` or the two-dimensional `text-offset`.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},default:"center",doc:"Part of the text placed closest to the anchor.",requires:["text-field",{"!":"text-variable-anchor"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",doc:"Maximum angle change between adjacent characters.",requires:["text-field",{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{doc:"If a text's language supports horizontal writing mode, symbols with point placement would be laid out horizontally."},vertical:{doc:"If a text's language supports vertical writing mode, symbols with point placement would be laid out vertically."}},doc:"The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.",requires:["text-field",{"symbol-placement":["point"]}],"sdk-support":{"basic functionality":{js:"1.3.0",android:"8.3.0",ios:"5.3.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the text clockwise.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the text bounding box used for detecting symbol collisions.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,doc:"If true, the text may be flipped vertically to prevent it from being rendered upside-down.",requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{doc:"The text is not altered."},uppercase:{doc:"Forces all letters to be displayed in uppercase."},lowercase:{doc:"Forces all letters to be displayed in lowercase."}},default:"none",doc:"Specifies how to capitalize text, similar to the CSS `text-transform` property.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",doc:"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with text-variable-anchor, input values will be taken as absolute values. Offsets along the x- and y-axis will be applied automatically based on the anchor position.",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,doc:"If true, the text will be visible even if it collides with other previously drawn symbols.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,doc:"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.",requires:["text-field","icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},filter:{type:"array",value:"*",doc:"A filter selects specific features from a layer."},filter_operator:{type:"enum",values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'},within:{doc:'`["within", object]` feature geometry is within object geometry'}},doc:"The filter operator."},geometry_type:{type:"enum",values:{Point:{doc:"Filter to point geometries."},LineString:{doc:"Filter to line geometries."},Polygon:{doc:"Filter to polygon geometries."}},doc:"The geometry type for the filter to select."},function:{expression:{type:"expression",doc:"An expression."},stops:{type:"array",doc:"An array of stops.",value:"function_stop"},base:{type:"number",default:1,minimum:0,doc:"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},property:{type:"string",doc:"The name of a feature property to use as the function input.",default:"$zoom"},type:{type:"enum",values:{identity:{doc:"Return the input value as the output value."},exponential:{doc:"Generate an output by interpolating between stops just less than and just greater than the function input."},interval:{doc:"Return the output value of the stop just less than the function input."},categorical:{doc:"Return the output value of the stop equal to the function input."}},doc:"The interpolation strategy to use in function evaluation.",default:"exponential"},colorSpace:{type:"enum",values:{rgb:{doc:"Use the RGB color space to interpolate color values"},lab:{doc:"Use the LAB color space to interpolate color values."},hcl:{doc:"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},doc:"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.",default:"rgb"},default:{type:"*",required:!1,doc:"A value to serve as a fallback function result when a value isn't otherwise available. It is used in the following circumstances:\n* In categorical functions, when the feature value does not match any of the stop domain values.\n* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.\n* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a `circle-color` property but the feature property value is not a string or not a valid color).\n* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.\nIf no default is provided, the style property's default is used in these circumstances."}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2,doc:"Zoom level and value pair."},expression:{type:"array",value:"*",minimum:1,doc:"An expression defines a function that can be used for data-driven style properties or feature filters."},expression_name:{doc:"",type:"enum",values:{let:{doc:'Binds expressions to named variables, which can then be referenced in the result expression using ["var", "variable_name"].',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},var:{doc:'References variable bound using "let".',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},literal:{doc:"Provides a literal array or object value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},array:{doc:"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},at:{doc:"Retrieves an item from an array.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},in:{doc:"Determines whether an item exists in an array or a substring exists in a string.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.6.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"index-of":{doc:"Returns the first position at which an item can be found in an array or a substring can be found in a string, or `-1` if the input cannot be found. Accepts an optional index from where to begin the search.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0"}}},slice:{doc:"Returns an item from an array or a substring from a string from a specified start index, or between a start index and an end index if set. The return value is inclusive of the start index but not of the end index.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0"}}},case:{doc:"Selects the first output whose corresponding test condition evaluates to true, or the fallback value otherwise.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},match:{doc:'Selects the output for which the label value matches the input value, or the fallback value if no match is found. The input can be any expression (for example, `["get", "building_type"]`). Each label must be unique, and must be either:\n - a single literal value; or\n - an array of literal values, the values of which must be all strings or all numbers (for example `[100, 101]` or `["c", "b"]`).\n\nThe input matches if any of the values in the array matches using strict equality, similar to the `"in"` operator.\nIf the input type does not match the type of the labels, the result will be the fallback value.',group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},coalesce:{doc:"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},step:{doc:'Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first output if the input is less than the first stop.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},interpolate:{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array`, or `color`.\n\nInterpolation types:\n- `["linear"]`: Interpolates linearly between the pair of stops just less than and just greater than the input.\n- `["exponential", base]`: Interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\n- `["cubic-bezier", x1, y1, x2, y2]`: Interpolates using the cubic bezier curve defined by the given control points.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"interpolate-hcl":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the Hue-Chroma-Luminance color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},"interpolate-lab":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the CIELAB color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},ln2:{doc:"Returns mathematical constant ln(2).",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},pi:{doc:"Returns the mathematical constant pi.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},e:{doc:"Returns the mathematical constant e.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},typeof:{doc:"Returns a string describing the type of the given value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},string:{doc:"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string is obtained. If none of the inputs are strings, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},number:{doc:"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number is obtained. If none of the inputs are numbers, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},boolean:{doc:"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean is obtained. If none of the inputs are booleans, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},object:{doc:"Asserts that the input value is an object. If multiple values are provided, each one is evaluated in order until an object is obtained. If none of the inputs are objects, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},collator:{doc:"Returns a `collator` for use in locale-dependent comparison operations. The `case-sensitive` and `diacritic-sensitive` options default to `false`. The `locale` argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the `collator` will use a system-defined fallback locale. Use `resolved-locale` to test the results of locale fallback behavior.",group:"Types","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},format:{doc:'Returns a `formatted` string for displaying mixed-format text in the `text-field` property. The input may contain a string literal or expression, including an [`\'image\'`](#types-image) expression. Strings may be followed by a style override object that supports the following properties:\n- `"text-font"`: Overrides the font stack specified by the root layout property.\n- `"text-color"`: Overrides the color specified by the root paint property.\n- `"font-scale"`: Applies a scaling factor on `text-size` as specified by the root layout property.',group:"Types","sdk-support":{"basic functionality":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-font":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"font-scale":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-color":{js:"1.3.0",android:"7.3.0",ios:"4.10.0",macos:"0.14.0"},image:{js:"1.6.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},image:{doc:"Returns an `image` type for use in `icon-image`, `*-pattern` entries and as a section in the `format` expression. If set, the `image` argument will check that the requested image exists in the style and will return either the resolved image name or `null`, depending on whether or not the image is currently in the style. This validation process is synchronous and requires the image to have been added to the style before requesting it in the `image` argument.",group:"Types","sdk-support":{"basic functionality":{js:"1.4.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},"number-format":{doc:"Converts the input number into a string representation using the providing formatting rules. If set, the `locale` argument specifies the locale to use, as a BCP 47 language tag. If set, the `currency` argument specifies an ISO 4217 code to use for currency-style formatting. If set, the `min-fraction-digits` and `max-fraction-digits` arguments specify the minimum and maximum number of fractional digits to include.",group:"Types","sdk-support":{"basic functionality":{js:"0.54.0"}}},"to-string":{doc:'Converts the input value to a string. If the input is `null`, the result is `""`. If the input is a boolean, the result is `"true"` or `"false"`. If the input is a number, it is converted to a string as specified by the ["NumberToString" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `"rgba(r,g,b,a)"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-number":{doc:'Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the ["ToNumber Applied to the String Type" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-boolean":{doc:"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-rgba":{doc:"Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-color":{doc:"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgb:{doc:"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgba:{doc:"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},get:{doc:"Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns null if the requested property is missing.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},has:{doc:"Tests for the presence of an property value in the current feature's properties, or from another object if a second argument is provided.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},length:{doc:"Gets the length of an array or string.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},properties:{doc:'Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly.',group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"feature-state":{doc:"Retrieves a property value from the current feature's state. Returns null if the requested property is not present on the feature's state. A feature's state is not part of the GeoJSON or vector tile data, and must be set programmatically on each feature. Features are identified by their `id` attribute, which must be an integer or a string that can be cast to an integer. Note that [\"feature-state\"] can only be used with paint properties that support data-driven styling.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.46.0"}}},"geometry-type":{doc:"Gets the feature's geometry type: `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},id:{doc:"Gets the feature's id, if it has one.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},zoom:{doc:'Gets the current zoom level. Note that in style layout and paint properties, ["zoom"] may only appear as the input to a top-level "step" or "interpolate" expression.',group:"Zoom","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"heatmap-density":{doc:"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.",group:"Heatmap","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"line-progress":{doc:"Gets the progress along a gradient line. Can only be used in the `line-gradient` property.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.6.0",macos:"0.12.0"}}},"sky-radial-progress":{doc:"Gets the distance of a point on the sky from the sun position. Returns 0 at sun position and 1 when the distance reaches `sky-gradient-radius`. Can only be used in the `sky-gradient` property.",group:"sky","sdk-support":{"basic functionality":{js:"2.0.0"}}},accumulated:{doc:"Gets the value of a cluster property accumulated so far. Can only be used in the `clusterProperties` option of a clustered GeoJSON source.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.53.0"}}},"+":{doc:"Returns the sum of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"*":{doc:"Returns the product of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"-":{doc:"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"/":{doc:"Returns the result of floating point division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"%":{doc:"Returns the remainder after integer division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"^":{doc:"Returns the result of raising the first input to the power specified by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sqrt:{doc:"Returns the square root of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log10:{doc:"Returns the base-ten logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ln:{doc:"Returns the natural logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log2:{doc:"Returns the base-two logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sin:{doc:"Returns the sine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},cos:{doc:"Returns the cosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},tan:{doc:"Returns the tangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},asin:{doc:"Returns the arcsine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},acos:{doc:"Returns the arccosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},atan:{doc:"Returns the arctangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},min:{doc:"Returns the minimum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},max:{doc:"Returns the maximum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},round:{doc:'Rounds the input to the nearest integer. Halfway values are rounded away from zero. For example, `["round", -1.5]` evaluates to -2.',group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},abs:{doc:"Returns the absolute value of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ceil:{doc:"Returns the smallest integer that is greater than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},floor:{doc:"Returns the largest integer that is less than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},distance:{doc:"Returns the shortest distance in meters between the evaluated feature and the input geometry. The input value can be a valid GeoJSON of type `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Distance values returned may vary in precision due to loss in precision from encoding geometries, particularly below zoom level 13.",group:"Math","sdk-support":{"basic functionality":{android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}}},"==":{doc:"Returns `true` if the input values are equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"!=":{doc:"Returns `true` if the input values are not equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">":{doc:"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<":{doc:"Returns `true` if the first input is strictly less than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">=":{doc:"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<=":{doc:"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},all:{doc:"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},any:{doc:"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"!":{doc:"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},within:{doc:"Returns `true` if the evaluated feature is fully contained inside a boundary of the input geometry, `false` otherwise. The input value can be a valid GeoJSON of type `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Supported features for evaluation:\n- `Point`: Returns `false` if a point is on the boundary or falls outside the boundary.\n- `LineString`: Returns `false` if any part of a line falls outside the boundary, the line intersects the boundary, or a line's endpoint is on the boundary.",group:"Decision","sdk-support":{"basic functionality":{js:"1.9.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"is-supported-script":{doc:"Returns `true` if the input string is expected to render legibly. Returns `false` if the input string contains sections that cannot be rendered without potential loss of meaning (e.g. Indic scripts that require complex text shaping, or right-to-left scripts if the the `mapbox-gl-rtl-text` plugin is not in use in Mapbox GL JS).",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.6.0"}}},upcase:{doc:"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},downcase:{doc:"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},concat:{doc:"Returns a `string` consisting of the concatenation of the inputs. Each input is converted to a string as if by `to-string`.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"resolved-locale":{doc:"Returns the IETF language tag of the locale being used by the provided `collator`. This can be used to determine the default system locale, or to determine if a requested locale was successfully loaded.",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}}}},fog:{range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"The start and end distance range in which fog fades from fully transparent to fully opaque. The distance to the point at the center of the map is defined as zero, so that negative range values are closer to the camera, and positive values are farther away.",example:[.5,10],"sdk-support":{"basic functionality":{js:"2.3.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"The color of the fog. Using opacity is recommended only for smoothly transitioning fog on/off as anything less than 100% opacity results in more tiles loaded and drawn.","sdk-support":{"basic functionality":{js:"2.3.0"}}},"horizon-blend":{type:"number","property-type":"data-constant",default:.1,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Horizon blend applies a smooth fade from the color of the fog to the color of the sky. A value of zero leaves a sharp transition from fog to sky. Increasing the value blends the color of fog into increasingly high angles of the sky.","sdk-support":{"basic functionality":{js:"2.3.0"}}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}}},terrain:{source:{type:"string",doc:"Name of a source of `raster_dem` type to be used for terrain elevation.",required:!0,"sdk-support":{"basic functionality":{js:"2.0.0"}}},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value.","sdk-support":{"basic functionality":{js:"2.0.0"}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,doc:"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",doc:"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.",transition:!0,requires:[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",doc:"The outline color of the fill. Matches the value of `fill-color` if unspecified.",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{doc:"The fill is translated relative to the map."},viewport:{doc:"The fill is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-translate`.",default:"map",requires:["fill-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",doc:"The opacity at which the line will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",doc:"The color with which the line will be drawn.",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.23.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{doc:"The line is translated relative to the map."},viewport:{doc:"The line is translated relative to the viewport."}},doc:"Controls the frame of reference for `line-translate`.",default:"map",requires:["line-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",doc:"Stroke thickness.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,doc:"Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,doc:"The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.12.1",android:"3.0.0",ios:"3.1.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",doc:"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.3.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",doc:'Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.',transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],"sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.4.0",macos:"0.11.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",doc:"Circle radius.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",doc:"The fill color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,doc:"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",doc:"The opacity at which the circle will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{doc:"The circle is translated relative to the map."},viewport:{doc:"The circle is translated relative to the viewport."}},doc:"Controls the frame of reference for `circle-translate`.",default:"map",requires:["circle-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{doc:"Circles are scaled according to their apparent distance to the camera."},viewport:{doc:"Circles are not scaled."}},default:"map",doc:"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{doc:"The circle is aligned to the plane of the map."},viewport:{doc:"The circle is aligned to the plane of the viewport."}},default:"viewport",doc:"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The width of the circle's stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",doc:"The stroke color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",doc:"The opacity of the circle's stroke.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",doc:"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,doc:"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,doc:"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],doc:'Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.',transition:!1,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",doc:"The global opacity at which the heatmap layer will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{doc:"The opacity at which the icon will be drawn.",type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,doc:"The color of the icon. This can only be used with sdf icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the icon's halo. Icon halos can only be used with SDF icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the icon outline.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Fade out the halo towards the outside.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{doc:"Icons are translated relative to the map."},viewport:{doc:"Icons are translated relative to the viewport."}},doc:"Controls the frame of reference for `icon-translate`.",default:"map",requires:["icon-image","icon-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",doc:"The opacity at which the text will be drawn.",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",doc:"The color with which the text will be drawn.",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,doc:"The color of the text's halo, which helps it stand out from backgrounds.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The halo's fadeout distance towards the outside.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{doc:"The text is translated relative to the map."},viewport:{doc:"The text is translated relative to the viewport."}},doc:"Controls the frame of reference for `text-translate`.",default:"map",requires:["text-field","text-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",doc:"The opacity at which the image will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",doc:"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the minimum brightness.",default:0,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the maximum brightness.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",doc:"Increase or reduce the saturation of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",doc:"Increase or reduce the contrast of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0",macos:"0.9.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,doc:"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",doc:"The shading color of areas that face away from the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_sky:{"sky-type":{type:"enum",values:{gradient:{doc:"Renders the sky with a gradient that can be configured with `sky-gradient-radius` and `sky-gradient`."},atmosphere:{doc:"Renders the sky with a simulated atmospheric scattering algorithm, the sun direction can be attached to the light position or explicitly set through `sky-atmosphere-sun`."}},default:"atmosphere",doc:"The type of the sky","sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,doc:"Position of the sun center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the sun relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the sun, where 0° is directly above, at zenith, and 90° at the horizon. When this property is ommitted, the sun center is directly inherited from the light position.","sdk-support":{"basic functionality":{js:"2.0.0"}},requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,doc:"Intensity of the sun as a light source in the atmosphere (on a scale from 0 to a 100). Setting higher values will brighten up the sky.","sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,doc:"Position of the gradient center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the gradient center relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the gradient center, where 0° is directly above, at zenith, and 90° at the horizon.","sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,doc:"The angular distance (measured in degrees) from `sky-gradient-center` up to which the gradient extends. A value of 180 causes the gradient to wrap around to the opposite direction from `sky-gradient-center`.","sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],doc:"Defines a radial color gradient with which to color the sky. The color values can be interpolated with an expression using `sky-radial-progress`. The range [0, 1] for the interpolant covers a radial distance (in degrees) of [0, `sky-gradient-radius`] centered at the position specified by `sky-gradient-center`.",transition:!1,requires:[{"sky-type":"gradient"}],"sdk-support":{"basic functionality":{js:"2.0.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",doc:"A color applied to the atmosphere sun halo. The alpha channel describes how strongly the sun halo is represented in an atmosphere sky layer.",transition:!1,requires:[{"sky-type":"atmosphere"}],"sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",doc:"A color used to tweak the main atmospheric scattering coefficients. Using white applies the default coefficients giving the natural blue color to the atmosphere. This color affects how heavily the corresponding wavelength is represented during scattering. The alpha channel describes the density of the atmosphere, with 1 maximum density and 0 no density.",transition:!1,requires:[{"sky-type":"atmosphere"}],"sdk-support":{"basic functionality":{js:"2.0.0"}},"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire sky layer.",transition:!0,"sdk-support":{"basic functionality":{js:"2.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}},promoteId:{"*":{type:"string",doc:"A name of a feature property to use as ID for feature state."}}};var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function E(e){var t={exports:{}};return e(t,t.exports),t.exports}function S(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')} -/*! https://mths.be/punycode v1.3.2 by @mathias */var M=E((function(e,t){!function(o){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,r="object"==b(_)&&_;r.global!==r&&r.window!==r&&r.self!==r||(o=r);var a,s,l=2147483647,c=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,g=String.fromCharCode;function m(e){throw RangeError(p[e])}function f(e,t){for(var o=e.length,n=[];o--;)n[o]=t(e[o]);return n}function y(e,t){var o=e.split("@"),n="";return o.length>1&&(n=o[0]+"@",e=o[1]),n+f((e=e.replace(d,".")).split("."),t).join(".")}function A(e){for(var t,o,n=[],i=0,r=e.length;i=55296&&t<=56319&&i65535&&(t+=g((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=g(e)})).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,o){var n=0;for(e=o?h(e/700):e>>1,e+=h(e/t);e>455;n+=36)e=h(e/35);return h(n+36*e/(e+38))}function w(e){var t,o,n,i,r,a,s,c,u,d,p,g=[],f=e.length,y=0,A=128,C=72;for((o=e.lastIndexOf("-"))<0&&(o=0),n=0;n=128&&m("not-basic"),g.push(e.charCodeAt(n));for(i=o>0?o+1:0;i=f&&m("invalid-input"),((c=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||c>h((l-y)/a))&&m("overflow"),y+=c*a,!(c<(u=s<=C?1:s>=C+26?26:s-C));s+=36)a>h(l/(d=36-u))&&m("overflow"),a*=d;C=I(y-r,t=g.length+1,0==r),h(y/t)>l-A&&m("overflow"),A+=h(y/t),y%=t,g.splice(y++,0,A)}return v(g)}function E(e){var t,o,n,i,r,a,s,c,u,d,p,f,y,v,b,w=[];for(f=(e=A(e)).length,t=128,o=0,r=72,a=0;a=t&&ph((l-o)/(y=n+1))&&m("overflow"),o+=(s-t)*y,t=s,a=0;al&&m("overflow"),p==t){for(c=o,u=36;!(c<(d=u<=r?1:u>=r+26?26:u-r));u+=36)b=c-d,v=36-d,w.push(g(C(d+b%v,0))),c=h(b/v);w.push(g(C(c,0))),r=I(o,y,n==i),o=0,++n}++o,++t}return w.join("")}if(a={version:"1.3.2",ucs2:{decode:A,encode:v},decode:w,encode:E,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return y(e,(function(e){return c.test(e)?w(e.slice(4).toLowerCase()):e}))}},n&&i)if(e.exports==n)i.exports=a;else for(s in a)a.hasOwnProperty(s)&&(n[s]=a[s]);else o.punycode=a}(_)})),P=function(e){return"string"==typeof e},x=function(e){return"object"===b(e)&&null!==e},k=function(e){return null===e},G=function(e){return null==e};function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T=function(e,t,o,n){t=t||"&",o=o||"=";var i={};if("string"!=typeof e||0===e.length)return i;var r=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l=0?(c=h.substr(0,g),u=h.substr(g+1)):(c=h,u=""),d=decodeURIComponent(c),p=decodeURIComponent(u),R(i,d)?Array.isArray(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i},O=function(e){switch(b(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},L=function(e,t,o,n){return t=t||"&",o=o||"=",null===e&&(e=void 0),"object"===b(e)?Object.keys(e).map((function(n){var i=encodeURIComponent(O(n))+o;return Array.isArray(e[n])?e[n].map((function(e){return i+encodeURIComponent(O(e))})).join(t):i+encodeURIComponent(O(e[n]))})).join(t):n?encodeURIComponent(O(n))+o+encodeURIComponent(O(e)):""},D=E((function(e,t){t.decode=t.parse=T,t.encode=t.stringify=L}));function j(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var U=/^([a-z0-9.+-]+:)/i,N=/:[0-9]*$/,B=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,F=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),z=["'"].concat(F),V=["%","/","?",";","#"].concat(z),W=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,H=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Y={javascript:!0,"javascript:":!0},J={javascript:!0,"javascript:":!0},Z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function K(e,t,o){if(e&&x(e)&&e instanceof j)return e;var n=new j;return n.parse(e,t,o),n}j.prototype.parse=function(e,t,o){if(!P(e))throw new TypeError("Parameter 'url' must be a string, not "+b(e));var n=e.indexOf("?"),i=-1!==n&&n127?C+="x":C+=v[I];if(!C.match(q)){var _=y.slice(0,g),E=y.slice(g+1),S=v.match(H);S&&(_.push(S[1]),E.unshift(S[2])),E.length&&(a="/"+E.join(".")+a),this.hostname=_.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),f||(this.hostname=M.toASCII(this.hostname));var x=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+x,this.href+=this.host,f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!Y[c])for(g=0,A=z.length;g0)&&o.host.split("@"))&&(o.auth=E.shift(),o.host=o.hostname=E.shift());return o.search=e.search,o.query=e.query,k(o.pathname)&&k(o.search)||(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.href=o.format(),o}if(!v.length)return o.pathname=null,o.search?o.path="/"+o.search:o.path=null,o.href=o.format(),o;for(var I=v.slice(-1)[0],b=(o.host||e.host||v.length>1)&&("."===I||".."===I)||""===I,w=0,_=v.length;_>=0;_--)"."===(I=v[_])?v.splice(_,1):".."===I?(v.splice(_,1),w++):w&&(v.splice(_,1),w--);if(!y&&!A)for(;w--;w)v.unshift("..");!y||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),b&&"/"!==v.join("/").substr(-1)&&v.push("");var E,S=""===v[0]||v[0]&&"/"===v[0].charAt(0);C&&(o.hostname=o.host=S?"":v.length?v.shift():"",(E=!!(o.host&&o.host.indexOf("@")>0)&&o.host.split("@"))&&(o.auth=E.shift(),o.host=o.hostname=E.shift()));return(y=y||o.host&&v.length)&&!S&&v.unshift(""),v.length?o.pathname=v.join("/"):(o.pathname=null,o.path=null),k(o.pathname)&&k(o.search)||(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.auth=e.auth||o.auth,o.slashes=o.slashes||e.slashes,o.href=o.format(),o},j.prototype.parseHost=function(){var e=this.host,t=N.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};function X(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:[];p(this,e),this.parent=t,this.bindings={};var n,i=v(o);try{for(i.s();!(n=i.n()).done;){var r=a(n.value,2),s=r[0],l=r[1];this.bindings[s]=l}}catch(e){i.e(e)}finally{i.f()}}return u(e,[{key:"concat",value:function(t){return new e(this,t)}},{key:"get",value:function(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error("".concat(e," not found in scope."))}},{key:"has",value:function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}])}(),ee={kind:"null"},te={kind:"number"},oe={kind:"string"},ne={kind:"boolean"},ie={kind:"color"},re={kind:"object"},ae={kind:"value"},se={kind:"collator"},le={kind:"formatted"},ce={kind:"resolvedImage"};function ue(e,t){return{kind:"array",itemType:e,N:t}}function de(e){if("array"===e.kind){var t=de(e.itemType);return"number"==typeof e.N?"array<".concat(t,", ").concat(e.N,">"):"value"===e.itemType.kind?"array":"array<".concat(t,">")}return e.kind}var pe=[ee,te,oe,ne,ie,le,re,ue(ae),ce];function he(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!he(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(var o=0,n=pe;o255?255:e}function i(e){return e<0?0:e>1?1:e}function r(e){return"%"===e[e.length-1]?n(parseFloat(e)/100*255):n(parseInt(e))}function a(e){return"%"===e[e.length-1]?i(parseFloat(e)/100):i(parseFloat(e))}function s(e,t,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?e+(t-e)*o*6:2*o<1?t:3*o<2?e+(t-e)*(2/3-o)*6:e}try{t.parseCSSColor=function(e){var t,i=e.replace(/ /g,"").toLowerCase();if(i in o)return o[i].slice();if("#"===i[0])return 4===i.length?(t=parseInt(i.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===i.length&&(t=parseInt(i.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=i.indexOf("("),c=i.indexOf(")");if(-1!==l&&c+1===i.length){var u=i.substr(0,l),d=i.substr(l+1,c-(l+1)).split(","),p=1;switch(u){case"rgba":if(4!==d.length)return null;p=a(d.pop());case"rgb":return 3!==d.length?null:[r(d[0]),r(d[1]),r(d[2]),p];case"hsla":if(4!==d.length)return null;p=a(d.pop());case"hsl":if(3!==d.length)return null;var h=(parseFloat(d[0])%360+360)%360/360,g=a(d[1]),m=a(d[2]),f=m<=.5?m*(g+1):m+g-m*g,y=2*m-f;return[n(255*s(y,f,h+1/3)),n(255*s(y,f,h)),n(255*s(y,f,h-1/3)),p];default:return null}}return null}}catch(e){}})),ye=function(){function e(t,o,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;p(this,e),this.r=t,this.g=o,this.b=n,this.a=i}return u(e,[{key:"toString",value:function(){var e=a(this.toArray(),4),t=e[0],o=e[1],n=e[2],i=e[3];return"rgba(".concat(Math.round(t),",").concat(Math.round(o),",").concat(Math.round(n),",").concat(i,")")}},{key:"toArray",value:function(){var e=this.r,t=this.g,o=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*e/n,255*t/n,255*o/n,n]}}],[{key:"parse",value:function(t){if(t){if(t instanceof e)return t;if("string"==typeof t){var o=fe.parseCSSColor(t);if(o)return new e(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3])}}}}])}();ye.black=new ye(0,0,0,1),ye.white=new ye(1,1,1,1),ye.transparent=new ye(0,0,0,0),ye.red=new ye(1,0,0,1),ye.blue=new ye(0,0,1,1);var Ae=function(){return u((function e(t,o,n){p(this,e),this.sensitivity=t?o?"variant":"case":o?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}),[{key:"compare",value:function(e,t){return this.collator.compare(e,t)}},{key:"resolvedLocale",value:function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}])}(),ve=u((function e(t,o,n,i,r){p(this,e),this.text=t,this.image=o,this.scale=n,this.fontStack=i,this.textColor=r})),Ce=function(){function e(t){p(this,e),this.sections=t}return u(e,[{key:"isEmpty",value:function(){return 0===this.sections.length||!this.sections.some((function(e){return 0!==e.text.length||e.image&&0!==e.image.name.length}))}},{key:"toString",value:function(){return 0===this.sections.length?"":this.sections.map((function(e){return e.text})).join("")}},{key:"serialize",value:function(){var e,t=["format"],o=v(this.sections);try{for(o.s();!(e=o.n()).done;){var n=e.value;if(n.image)t.push(["image",n.image.name]);else{t.push(n.text);var i={};n.fontStack&&(i["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(i["font-scale"]=n.scale),n.textColor&&(i["text-color"]=["rgba"].concat(n.textColor.toArray())),t.push(i)}}}catch(e){o.e(e)}finally{o.f()}return t}}],[{key:"fromString",value:function(t){return new e([new ve(t,null,null,null,null)])}},{key:"factory",value:function(t){return t instanceof e?t:e.fromString(t)}}])}(),Ie=function(){function e(t){p(this,e),this.name=t.name,this.available=t.available}return u(e,[{key:"toString",value:function(){return this.name}},{key:"serialize",value:function(){return["image",this.name]}}],[{key:"fromString",value:function(t){return t?new e({name:t,available:!1}):null}}])}();function be(e,t,o,n){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof o&&o>=0&&o<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value [".concat([e,t,o,n].join(", "),"]: 'a' must be between 0 and 1."):"Invalid rgba value [".concat(("number"==typeof n?[e,t,o,n]:[e,t,o]).join(", "),"]: 'r', 'g', and 'b' must be between 0 and 255.")}function we(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof ye)return!0;if(e instanceof Ae)return!0;if(e instanceof Ce)return!0;if(e instanceof Ie)return!0;if(Array.isArray(e)){var t,o=v(e);try{for(o.s();!(t=o.n()).done;){if(!we(t.value))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}if("object"===b(e)){for(var n in e)if(!we(e[n]))return!1;return!0}return!1}function _e(e){if(null===e)return ee;if("string"==typeof e)return oe;if("boolean"==typeof e)return ne;if("number"==typeof e)return te;if(e instanceof ye)return ie;if(e instanceof Ae)return se;if(e instanceof Ce)return le;if(e instanceof Ie)return ce;if(Array.isArray(e)){var t,o,n=e.length,i=v(e);try{for(i.s();!(o=i.n()).done;){var r=_e(o.value);if(t){if(t===r)continue;t=ae;break}t=r}}catch(e){i.e(e)}finally{i.f()}return ue(t||ae,n)}return re}function Ee(e){var t=b(e);return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof ye||e instanceof Ce||e instanceof Ie?e.toString():JSON.stringify(e)}var Se=function(){function e(t,o){p(this,e),this.type=t,this.value=o}return u(e,[{key:"evaluate",value:function(){return this.value}},{key:"eachChild",value:function(){}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof ye?["rgba"].concat(this.value.toArray()):this.value instanceof Ce?this.value.serialize():this.value}}],[{key:"parse",value:function(t,o){if(2!==t.length)return o.error("'literal' expression requires exactly one argument, but found ".concat(t.length-1," instead."));if(!we(t[1]))return o.error("invalid value");var n=t[1],i=_e(n),r=o.expectedType;return"array"!==i.kind||0!==i.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(i=r),new e(i,n)}}])}(),Me=function(){return u((function e(t){p(this,e),this.name="ExpressionEvaluationError",this.message=t}),[{key:"toJSON",value:function(){return this.message}}])}(),Pe={string:oe,number:te,boolean:ne,object:re},xe=function(){function e(t,o){p(this,e),this.type=t,this.args=o}return u(e,[{key:"evaluate",value:function(e){for(var t=0;t1)&&t.push(n)}}return t.concat(this.args.map((function(e){return e.serialize()})))}}],[{key:"parse",value:function(t,o){if(t.length<2)return o.error("Expected at least one argument.");var n,i=1,r=t[0];if("array"===r){var a,s;if(t.length>2){var l=t[1];if("string"!=typeof l||!(l in Pe)||"object"===l)return o.error('The item type argument of "array" must be one of string, number, boolean',1);a=Pe[l],i++}else a=ae;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return o.error('The length argument to "array" must be a positive integer literal',2);s=t[2],i++}n=ue(a,s)}else n=Pe[r];for(var c=[];i-1),o}},{key:"eachChild",value:function(e){e(this.input)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return["image",this.input.serialize()]}}],[{key:"parse",value:function(t,o){if(2!==t.length)return o.error("Expected two arguments.");var n=o.parse(t[1],1,oe);return n?new e(n):o.error("No image name provided.")}}])}(),Re={"to-boolean":ne,"to-color":ie,"to-number":te,"to-string":oe},Te=function(){function e(t,o){p(this,e),this.type=t,this.args=o}return u(e,[{key:"evaluate",value:function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){var t,o,n,i=v(this.args);try{for(i.s();!(n=i.n()).done;){if(t=n.value.evaluate(e),o=null,t instanceof ye)return t;if("string"==typeof t){var r=e.parseColor(t);if(r)return r}else if(Array.isArray(t)&&!(o=t.length<3||t.length>4?"Invalid rbga value ".concat(JSON.stringify(t),": expected an array containing either three or four numeric values."):be(t[0],t[1],t[2],t[3])))return new ye(t[0]/255,t[1]/255,t[2]/255,t[3])}}catch(e){i.e(e)}finally{i.f()}throw new Me(o||"Could not parse color from value '".concat("string"==typeof t?t:String(JSON.stringify(t)),"'"))}if("number"===this.type.kind){var a,s=null,l=v(this.args);try{for(l.s();!(a=l.n()).done;){if(null===(s=a.value.evaluate(e)))return 0;var c=Number(s);if(!isNaN(c))return c}}catch(e){l.e(e)}finally{l.f()}throw new Me("Could not convert ".concat(JSON.stringify(s)," to number."))}return"formatted"===this.type.kind?Ce.fromString(Ee(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Ie.fromString(Ee(this.args[0].evaluate(e))):Ee(this.args[0].evaluate(e))}},{key:"eachChild",value:function(e){this.args.forEach(e)}},{key:"outputDefined",value:function(){return this.args.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){if("formatted"===this.type.kind)return new ke([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ge(this.args[0]).serialize();var e=["to-".concat(this.type.kind)];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,o){if(t.length<2)return o.error("Expected at least one argument.");var n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return o.error("Expected one argument.");for(var i=Re[n],r=[],a=1;a=t[2])&&(!(e[1]<=t[1])&&!(e[3]>=t[3])))}function Be(e,t){var o,n=(180+e[0])/360,i=(o=e[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+o*Math.PI/360)))/360),r=Math.pow(2,t.z);return[Math.round(n*r*8192),Math.round(i*r*8192)]}function Fe(e,t,o){return t[1]>e[1]!=o[1]>e[1]&&e[0]<(o[0]-t[0])*(e[1]-t[1])/(o[1]-t[1])+t[0]}function ze(e,t){for(var o,n,i,r,a,s,l,c=!1,u=0,d=t.length;u0&&d<0||u<0&&d>0}function qe(e,t,o){var n,i,r,a,s,l,c,u,d,p=v(o);try{for(p.s();!(n=p.n()).done;)for(var h=n.value,g=0;go[2]){var i=.5*n,r=e[0]-o[0]>i?-n:o[0]-e[0]>i?n:0;0===r&&(r=e[0]-o[2]>i?-n:o[2]-e[0]>i?n:0),e[0]+=r}Ue(t,e)}function Xe(e,t,o,n){var i,r=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],s=[],l=v(e);try{for(l.s();!(i=l.n()).done;){var c,u=v(i.value);try{for(u.s();!(c=u.n()).done;){var d=c.value,p=[d.x+a[0],d.y+a[1]];Ke(p,t,o,r),s.push(p)}}catch(e){u.e(e)}finally{u.f()}}}catch(e){l.e(e)}finally{l.f()}return s}function Qe(e,t,o,n){var i,r,a=8192*Math.pow(2,n.z),s=[8192*n.x,8192*n.y],l=[],c=v(e);try{for(c.s();!(i=c.n()).done;){var u,d=i.value,p=[],h=v(d);try{for(h.s();!(u=h.n()).done;){var g=u.value,m=[g.x+s[0],g.y+s[1]];Ue(t,m),p.push(m)}}catch(e){h.e(e)}finally{h.f()}l.push(p)}}catch(e){c.e(e)}finally{c.f()}if(t[2]-t[0]<=a/2){(r=t)[0]=r[1]=1/0,r[2]=r[3]=-1/0;var f,y=v(l);try{for(y.s();!(f=y.n()).done;){var A,C=v(f.value);try{for(C.s();!(A=C.n()).done;){Ke(A.value,t,o,a)}}catch(e){C.e(e)}finally{C.f()}}}catch(e){y.e(e)}finally{y.f()}}return l}var $e=function(){function e(t,o){p(this,e),this.type=ne,this.geojson=t,this.geometries=o}return u(e,[{key:"evaluate",value:function(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){var o=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if("Polygon"===t.type){var r=Je(t.coordinates,n,i),a=Xe(e.geometry(),o,n,i);if(!Ne(o,n))return!1;var s,l=v(a);try{for(l.s();!(s=l.n()).done;){if(!ze(s.value,r))return!1}}catch(e){l.e(e)}finally{l.f()}}if("MultiPolygon"===t.type){var c=Ze(t.coordinates,n,i),u=Xe(e.geometry(),o,n,i);if(!Ne(o,n))return!1;var d,p=v(u);try{for(p.s();!(d=p.n()).done;){if(!Ve(d.value,c))return!1}}catch(e){p.e(e)}finally{p.f()}}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){var o=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if("Polygon"===t.type){var r=Je(t.coordinates,n,i),a=Qe(e.geometry(),o,n,i);if(!Ne(o,n))return!1;var s,l=v(a);try{for(l.s();!(s=l.n()).done;){if(!He(s.value,r))return!1}}catch(e){l.e(e)}finally{l.f()}}if("MultiPolygon"===t.type){var c=Ze(t.coordinates,n,i),u=Qe(e.geometry(),o,n,i);if(!Ne(o,n))return!1;var d,p=v(u);try{for(p.s();!(d=p.n()).done;){if(!Ye(d.value,c))return!1}}catch(e){p.e(e)}finally{p.f()}}return!0}(e,this.geometries)}return!1}},{key:"eachChild",value:function(){}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){return["within",this.geojson]}}],[{key:"parse",value:function(t,o){if(2!==t.length)return o.error("'within' expression requires exactly one argument, but found ".concat(t.length-1," instead."));if(we(t[1])){var n=t[1];if("FeatureCollection"===n.type)for(var i=0;i=0)return!1;var o=!0;return e.eachChild((function(e){o&&!ot(e,t)&&(o=!1)})),o}var nt=function(){function e(t,o){p(this,e),this.type=o.type,this.name=t,this.boundExpression=o}return u(e,[{key:"evaluate",value:function(e){return this.boundExpression.evaluate(e)}},{key:"eachChild",value:function(){}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return["var",this.name]}}],[{key:"parse",value:function(t,o){if(2!==t.length||"string"!=typeof t[1])return o.error("'var' expression requires exactly one string literal argument.");var n=t[1];return o.scope.has(n)?new e(n,o.scope.get(n)):o.error('Unknown variable "'.concat(n,'". Make sure "').concat(n,'" has been bound in an enclosing "let" expression before using it.'),1)}}])}(),it=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new $,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];p(this,e),this.registry=t,this.path=o,this.key=o.map((function(e){return"[".concat(e,"]")})).join(""),this.scope=i,this.errors=r,this.expectedType=n}return u(e,[{key:"parse",value:function(e,t,o,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return t?this.concat(t,o,n)._parse(e,i):this._parse(e,i)}},{key:"_parse",value:function(e,t){function o(e,t,o){return"assert"===o?new xe(t,[e]):"coerce"===o?new Te(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=e[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found ".concat(b(n),' instead. If you wanted a literal array, use ["literal", [...]].'),0),null;var i=this.registry[n];if(i){var r=i.parse(e,this);if(!r)return null;if(this.expectedType){var a=this.expectedType,s=r.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else r=o(r,a,t.typeAnnotation||"coerce");else r=o(r,a,t.typeAnnotation||"assert")}if(!(r instanceof Se)&&"resolvedImage"!==r.type.kind&&function e(t){if(t instanceof nt)return e(t.boundExpression);if(t instanceof De&&"error"===t.name)return!1;if(t instanceof je)return!1;if(t instanceof $e)return!1;var o=t instanceof Te||t instanceof xe,n=!0;if(t.eachChild((function(t){n=o?n&&e(t):n&&t instanceof Se})),!n)return!1;return et(t)&&ot(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script"])}(r)){var l=new Le;try{r=new Se(r.type,r.evaluate(l))}catch(e){return this.error(e.message),null}}return r}return this.error('Unknown expression "'.concat(n,'". If you wanted a literal array, use ["literal", [...]].'),0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"===b(e)?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found ".concat(b(e)," instead."))}},{key:"concat",value:function(t,o,n){var i="number"==typeof t?this.path.concat(t):this.path,r=n?this.scope.concat(n):this.scope;return new e(this.registry,i,o||null,r,this.errors)}},{key:"error",value:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;nt))throw new Me("Input is not a number.");a=s-1}return 0}var at=function(){function e(t,o,n){p(this,e),this.type=t,this.input=o,this.labels=[],this.outputs=[];var i,r=v(n);try{for(r.s();!(i=r.n()).done;){var s=a(i.value,2),l=s[0],c=s[1];this.labels.push(l),this.outputs.push(c)}}catch(e){r.e(e)}finally{r.f()}}return u(e,[{key:"evaluate",value:function(e){var t=this.labels,o=this.outputs;if(1===t.length)return o[0].evaluate(e);var n=this.input.evaluate(e);if(n<=t[0])return o[0].evaluate(e);var i=t.length;return n>=t[i-1]?o[i-1].evaluate(e):o[rt(t,n)].evaluate(e)}},{key:"eachChild",value:function(e){e(this.input);var t,o=v(this.outputs);try{for(o.s();!(t=o.n()).done;){e(t.value)}}catch(e){o.e(e)}finally{o.f()}}},{key:"outputDefined",value:function(){return this.outputs.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){for(var e=["step",this.input.serialize()],t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}],[{key:"parse",value:function(t,o){if(t.length-1<4)return o.error("Expected at least 4 arguments, but found only ".concat(t.length-1,"."));if((t.length-1)%2!=0)return o.error("Expected an even number of arguments.");var n=o.parse(t[1],1,te);if(!n)return null;var i=[],r=null;o.expectedType&&"value"!==o.expectedType.kind&&(r=o.expectedType);for(var a=1;a=s)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',c);var d=o.parse(l,u,r);if(!d)return null;r=r||d.type,i.push([s,d])}return new e(r,n,i)}}])}(),st=lt;function lt(e,t,o,n){this.cx=3*e,this.bx=3*(o-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=n,this.p2x=o,this.p2y=n}function ct(e,t,o){return e*(1-o)+t*o}lt.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},lt.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},lt.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},lt.prototype.solveCurveX=function(e,t){var o,n,i,r,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(r=this.sampleCurveX(i)-e,Math.abs(r)(n=1))return n;for(;or?o=i:n=i,i=.5*(n-o)+o}return i},lt.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var ut=Object.freeze({__proto__:null,number:ct,color:function(e,t,o){return new ye(ct(e.r,t.r,o),ct(e.g,t.g,o),ct(e.b,t.b,o),ct(e.a,t.a,o))},array:function(e,t,o){return e.map((function(e,n){return ct(e,t[n],o)}))}}),dt=6/29,pt=3*dt*dt,ht=Math.PI/180,gt=180/Math.PI;function mt(e){return e>.008856451679035631?Math.pow(e,1/3):e/pt+4/29}function ft(e){return e>dt?e*e*e:pt*(e-4/29)}function yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function At(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vt(e){var t=At(e.r),o=At(e.g),n=At(e.b),i=mt((.4124564*t+.3575761*o+.1804375*n)/.95047),r=mt((.2126729*t+.7151522*o+.072175*n)/1);return{l:116*r-16,a:500*(i-r),b:200*(r-mt((.0193339*t+.119192*o+.9503041*n)/1.08883)),alpha:e.a}}function Ct(e){var t=(e.l+16)/116,o=isNaN(e.a)?t:t+e.a/500,n=isNaN(e.b)?t:t-e.b/200;return t=1*ft(t),o=.95047*ft(o),n=1.08883*ft(n),new ye(yt(3.2404542*o-1.5371385*t-.4985314*n),yt(-.969266*o+1.8760108*t+.041556*n),yt(.0556434*o-.2040259*t+1.0572252*n),e.alpha)}function It(e,t,o){var n=t-e;return e+o*(n>180||n<-180?n-360*Math.round(n/360):n)}var bt={forward:vt,reverse:Ct,interpolate:function(e,t,o){return{l:ct(e.l,t.l,o),a:ct(e.a,t.a,o),b:ct(e.b,t.b,o),alpha:ct(e.alpha,t.alpha,o)}}},wt={forward:function(e){var t=vt(e),o=t.l,n=t.a,i=t.b,r=Math.atan2(i,n)*gt;return{h:r<0?r+360:r,c:Math.sqrt(n*n+i*i),l:o,alpha:e.a}},reverse:function(e){var t=e.h*ht,o=e.c;return Ct({l:e.l,a:Math.cos(t)*o,b:Math.sin(t)*o,alpha:e.alpha})},interpolate:function(e,t,o){return{h:It(e.h,t.h,o),c:ct(e.c,t.c,o),l:ct(e.l,t.l,o),alpha:ct(e.alpha,t.alpha,o)}}},_t=Object.freeze({__proto__:null,lab:bt,hcl:wt}),Et=function(){function e(t,o,n,i,r){p(this,e),this.type=t,this.operator=o,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];var s,l=v(r);try{for(l.s();!(s=l.n()).done;){var c=a(s.value,2),u=c[0],d=c[1];this.labels.push(u),this.outputs.push(d)}}catch(e){l.e(e)}finally{l.f()}}return u(e,[{key:"evaluate",value:function(t){var o=this.labels,n=this.outputs;if(1===o.length)return n[0].evaluate(t);var i=this.input.evaluate(t);if(i<=o[0])return n[0].evaluate(t);var r=o.length;if(i>=o[r-1])return n[r-1].evaluate(t);var a=rt(o,i),s=o[a],l=o[a+1],c=e.interpolationFactor(this.interpolation,i,s,l),u=n[a].evaluate(t),d=n[a+1].evaluate(t);return"interpolate"===this.operator?ut[this.type.kind.toLowerCase()](u,d,c):"interpolate-hcl"===this.operator?wt.reverse(wt.interpolate(wt.forward(u),wt.forward(d),c)):bt.reverse(bt.interpolate(bt.forward(u),bt.forward(d),c))}},{key:"eachChild",value:function(e){e(this.input);var t,o=v(this.outputs);try{for(o.s();!(t=o.n()).done;){e(t.value)}}catch(e){o.e(e)}finally{o.f()}}},{key:"outputDefined",value:function(){return this.outputs.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){var e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var t=[this.operator,e,this.input.serialize()],o=0;o1})))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);c={name:"cubic-bezier",controlPoints:h}}if(t.length-1<4)return o.error("Expected at least 4 arguments, but found only ".concat(t.length-1,"."));if((t.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(!(u=o.parse(u,2,te)))return null;var g=[],m=null;"interpolate-hcl"===a||"interpolate-lab"===a?m=ie:o.expectedType&&"value"!==o.expectedType.kind&&(m=o.expectedType);for(var f=0;f=y)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',v);var b=o.parse(A,I,m);if(!b)return null;m=m||b.type,g.push([y,b])}return"number"===m.kind||"color"===m.kind||"array"===m.kind&&"number"===m.itemType.kind&&"number"==typeof m.N?new e(m,a,c,u,g):o.error("Type ".concat(de(m)," is not interpolatable."))}}])}();function St(e,t,o,n){var i=n-o,r=e-o;return 0===i?0:1===t?r/i:(Math.pow(t,r)-1)/(Math.pow(t,i)-1)}var Mt=function(){function e(t,o){p(this,e),this.type=t,this.args=o}return u(e,[{key:"evaluate",value:function(e){var t,o,n=null,i=0,r=v(this.args);try{for(r.s();!(o=r.n()).done;){var a=o.value;if(i++,(n=a.evaluate(e))&&n instanceof Ie&&!n.available&&(t||(t=n.name),n=null,i===this.args.length&&(n=t)),null!==n)break}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"eachChild",value:function(e){this.args.forEach(e)}},{key:"outputDefined",value:function(){return this.args.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){var e=["coalesce"];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,o){if(t.length<2)return o.error("Expectected at least one argument.");var n=null,i=o.expectedType;i&&"value"!==i.kind&&(n=i);var r,a=[],s=v(t.slice(1));try{for(s.s();!(r=s.n()).done;){var l=r.value,c=o.parse(l,1+a.length,n,void 0,{typeAnnotation:"omit"});if(!c)return null;n=n||c.type,a.push(c)}}catch(e){s.e(e)}finally{s.f()}return new e(i&&a.some((function(e){return he(i,e.type)}))?ae:n,a)}}])}(),Pt=function(){function e(t,o){p(this,e),this.type=o.type,this.bindings=[].concat(t),this.result=o}return u(e,[{key:"evaluate",value:function(e){return this.result.evaluate(e)}},{key:"eachChild",value:function(e){var t,o=v(this.bindings);try{for(o.s();!(t=o.n()).done;){e(t.value[1])}}catch(e){o.e(e)}finally{o.f()}e(this.result)}},{key:"outputDefined",value:function(){return this.result.outputDefined()}},{key:"serialize",value:function(){var e,t=["let"],o=v(this.bindings);try{for(o.s();!(e=o.n()).done;){var n=a(e.value,2),i=n[0],r=n[1];t.push(i,r.serialize())}}catch(e){o.e(e)}finally{o.f()}return t.push(this.result.serialize()),t}}],[{key:"parse",value:function(t,o){if(t.length<4)return o.error("Expected at least 3 arguments, but found ".concat(t.length-1," instead."));for(var n=[],i=1;i=o.length)throw new Me("Array index out of bounds: ".concat(t," > ").concat(o.length-1,"."));if(t!==Math.floor(t))throw new Me("Array index must be an integer, but found ".concat(t," instead."));return o[t]}},{key:"eachChild",value:function(e){e(this.index),e(this.input)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return["at",this.index.serialize(),this.input.serialize()]}}],[{key:"parse",value:function(t,o){if(3!==t.length)return o.error("Expected 2 arguments, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1,te),i=o.parse(t[2],2,ue(o.expectedType||ae));return n&&i?new e(i.type.itemType,n,i):null}}])}(),kt=function(){function e(t,o){p(this,e),this.type=ne,this.needle=t,this.haystack=o}return u(e,[{key:"evaluate",value:function(e){var t=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!o)return!1;if(!me(t,["boolean","string","number","null"]))throw new Me("Expected first argument to be of type boolean, string, number or null, but found ".concat(de(_e(t))," instead."));if(!me(o,["string","array"]))throw new Me("Expected second argument to be of type array or string, but found ".concat(de(_e(o))," instead."));return o.indexOf(t)>=0}},{key:"eachChild",value:function(e){e(this.needle),e(this.haystack)}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){return["in",this.needle.serialize(),this.haystack.serialize()]}}],[{key:"parse",value:function(t,o){if(3!==t.length)return o.error("Expected 2 arguments, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1,ae),i=o.parse(t[2],2,ae);return n&&i?ge(n.type,[ne,oe,te,ee,ae])?new e(n,i):o.error("Expected first argument to be of type boolean, string, number or null, but found ".concat(de(n.type)," instead")):null}}])}(),Gt=function(){function e(t,o,n){p(this,e),this.type=te,this.needle=t,this.haystack=o,this.fromIndex=n}return u(e,[{key:"evaluate",value:function(e){var t=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!me(t,["boolean","string","number","null"]))throw new Me("Expected first argument to be of type boolean, string, number or null, but found ".concat(de(_e(t))," instead."));if(!me(o,["string","array"]))throw new Me("Expected second argument to be of type array or string, but found ".concat(de(_e(o))," instead."));if(this.fromIndex){var n=this.fromIndex.evaluate(e);return o.indexOf(t,n)}return o.indexOf(t)}},{key:"eachChild",value:function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}],[{key:"parse",value:function(t,o){if(t.length<=2||t.length>=5)return o.error("Expected 3 or 4 arguments, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1,ae),i=o.parse(t[2],2,ae);if(!n||!i)return null;if(!ge(n.type,[ne,oe,te,ee,ae]))return o.error("Expected first argument to be of type boolean, string, number or null, but found ".concat(de(n.type)," instead"));if(4===t.length){var r=o.parse(t[3],3,te);return r?new e(n,i,r):null}return new e(n,i)}}])}(),Rt=function(){function e(t,o,n,i,r,a){p(this,e),this.inputType=t,this.type=o,this.input=n,this.cases=i,this.outputs=r,this.otherwise=a}return u(e,[{key:"evaluate",value:function(e){var t=this.input.evaluate(e);return(_e(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}},{key:"eachChild",value:function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}},{key:"outputDefined",value:function(){return this.outputs.every((function(e){return e.outputDefined()}))&&this.otherwise.outputDefined()}},{key:"serialize",value:function(){var e,t=this,o=["match",this.input.serialize()],n=[],i={},r=v(Object.keys(this.cases).sort());try{for(r.s();!(e=r.n()).done;){var s=e.value,l=i[this.cases[s]];void 0===l?(i[this.cases[s]]=n.length,n.push([this.cases[s],[s]])):n[l][1].push(s)}}catch(e){r.e(e)}finally{r.f()}for(var c=function(e){return"number"===t.inputType.kind?Number(e):e},u=0,d=n;uNumber.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than ".concat(Number.MAX_SAFE_INTEGER,"."));if("number"==typeof h&&Math.floor(h)!==h)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,_e(h)))return null}else n=_e(h);if(void 0!==r[String(h)])return u.error("Branch labels must be unique.");r[String(h)]=a.length}}catch(e){p.e(e)}finally{p.f()}var g=o.parse(c,s,i);if(!g)return null;i=i||g.type,a.push(g)}var m=o.parse(t[1],1,ae);if(!m)return null;var f=o.parse(t[t.length-1],t.length-1,i);return f?"value"!==m.type.kind&&o.concat(1).checkSubtype(n,m.type)?null:new e(n,i,m,r,a,f):null}}])}(),Tt=function(){function e(t,o,n){p(this,e),this.type=t,this.branches=o,this.otherwise=n}return u(e,[{key:"evaluate",value:function(e){var t,o=v(this.branches);try{for(o.s();!(t=o.n()).done;){var n=a(t.value,2),i=n[0],r=n[1];if(i.evaluate(e))return r.evaluate(e)}}catch(e){o.e(e)}finally{o.f()}return this.otherwise.evaluate(e)}},{key:"eachChild",value:function(e){var t,o=v(this.branches);try{for(o.s();!(t=o.n()).done;){var n=a(t.value,2),i=n[0],r=n[1];e(i),e(r)}}catch(e){o.e(e)}finally{o.f()}e(this.otherwise)}},{key:"outputDefined",value:function(){return this.branches.every((function(e){var t=a(e,2);t[0];return t[1].outputDefined()}))&&this.otherwise.outputDefined()}},{key:"serialize",value:function(){var e=["case"];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,o){if(t.length<4)return o.error("Expected at least 3 arguments, but found only ".concat(t.length-1,"."));if(t.length%2!=0)return o.error("Expected an odd number of arguments.");var n;o.expectedType&&"value"!==o.expectedType.kind&&(n=o.expectedType);for(var i=[],r=1;r=5)return o.error("Expected 3 or 4 arguments, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1,ae),i=o.parse(t[2],2,te);if(!n||!i)return null;if(!ge(n.type,[ue(ae),oe,ae]))return o.error("Expected first argument to be of type array or string, but found ".concat(de(n.type)," instead"));if(4===t.length){var r=o.parse(t[3],3,te);return r?new e(n.type,n,i,r):null}return new e(n.type,n,i)}}])}();function Lt(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Dt(e,t,o,n){return 0===n.compare(t,o)}function jt(e,t,o){var n="=="!==e&&"!="!==e;return function(){function i(e,t,o){p(this,i),this.type=ne,this.lhs=e,this.rhs=t,this.collator=o,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return u(i,[{key:"evaluate",value:function(i){var r=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=_e(r),l=_e(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new Me('Expected arguments for "'.concat(e,'" to be (string, string) or (number, number), but found (').concat(s.kind,", ").concat(l.kind,") instead."))}if(this.collator&&!n&&this.hasUntypedArgument){var c=_e(r),u=_e(a);if("string"!==c.kind||"string"!==u.kind)return t(i,r,a)}return this.collator?o(i,r,a,this.collator.evaluate(i)):t(i,r,a)}},{key:"eachChild",value:function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){var t=[e];return this.eachChild((function(e){t.push(e.serialize())})),t}}],[{key:"parse",value:function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var o=e[0],r=t.parse(e[1],1,ae);if(!r)return null;if(!Lt(o,r.type))return t.concat(1).error('"'.concat(o,"\" comparisons are not supported for type '").concat(de(r.type),"'."));var a=t.parse(e[2],2,ae);if(!a)return null;if(!Lt(o,a.type))return t.concat(2).error('"'.concat(o,"\" comparisons are not supported for type '").concat(de(a.type),"'."));if(r.type.kind!==a.type.kind&&"value"!==r.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '".concat(de(r.type),"' and '").concat(de(a.type),"'."));n&&("value"===r.type.kind&&"value"!==a.type.kind?r=new xe(a.type,[r]):"value"!==r.type.kind&&"value"===a.type.kind&&(a=new xe(r.type,[a])));var s=null;if(4===e.length){if("string"!==r.type.kind&&"string"!==a.type.kind&&"value"!==r.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,se)))return null}return new i(r,a,s)}}])}()}var Ut=jt("==",(function(e,t,o){return t===o}),Dt),Nt=jt("!=",(function(e,t,o){return t!==o}),(function(e,t,o,n){return!Dt(0,t,o,n)})),Bt=jt("<",(function(e,t,o){return t",(function(e,t,o){return t>o}),(function(e,t,o,n){return n.compare(t,o)>0})),zt=jt("<=",(function(e,t,o){return t<=o}),(function(e,t,o,n){return n.compare(t,o)<=0})),Vt=jt(">=",(function(e,t,o){return t>=o}),(function(e,t,o,n){return n.compare(t,o)>=0})),Wt=function(){function e(t,o,n,i,r){p(this,e),this.type=oe,this.number=t,this.locale=o,this.currency=n,this.minFractionDigits=i,this.maxFractionDigits=r}return u(e,[{key:"evaluate",value:function(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}},{key:"eachChild",value:function(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){var e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}],[{key:"parse",value:function(t,o){if(3!==t.length)return o.error("Expected two arguments.");var n=o.parse(t[1],1,te);if(!n)return null;var i=t[2];if("object"!==b(i)||Array.isArray(i))return o.error("NumberFormat options argument must be an object.");var r=null;if(i.locale&&!(r=o.parse(i.locale,1,oe)))return null;var a=null;if(i.currency&&!(a=o.parse(i.currency,1,oe)))return null;var s=null;if(i["min-fraction-digits"]&&!(s=o.parse(i["min-fraction-digits"],1,te)))return null;var l=null;return i["max-fraction-digits"]&&!(l=o.parse(i["max-fraction-digits"],1,te))?null:new e(n,r,a,s,l)}}])}(),qt={"==":Ut,"!=":Nt,">":Ft,"<":Bt,">=":Vt,"<=":zt,array:xe,at:xt,boolean:xe,case:Tt,coalesce:Mt,collator:je,format:ke,image:Ge,in:kt,"index-of":Gt,interpolate:Et,"interpolate-hcl":Et,"interpolate-lab":Et,length:function(){function e(t){p(this,e),this.type=te,this.input=t}return u(e,[{key:"evaluate",value:function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Me("Expected value to be of type string or array, but found ".concat(de(_e(t))," instead."))}},{key:"eachChild",value:function(e){e(this.input)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,o){if(2!==t.length)return o.error("Expected 1 argument, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?o.error("Expected argument of type string or array, but found ".concat(de(n.type)," instead.")):new e(n):null}}])}(),let:Pt,literal:Se,match:Rt,number:xe,"number-format":Wt,object:xe,slice:Ot,step:at,string:xe,"to-boolean":Te,"to-color":Te,"to-number":Te,"to-string":Te,var:nt,within:$e};function Ht(e,t){var o=a(t,4),n=o[0],i=o[1],r=o[2],s=o[3];n=n.evaluate(e),i=i.evaluate(e),r=r.evaluate(e);var l=s?s.evaluate(e):1,c=be(n,i,r,l);if(c)throw new Me(c);return new ye(n/255*l,i/255*l,r/255*l,l)}function Yt(e,t){return e in t}function Jt(e,t){var o=t[e];return void 0===o?null:o}function Zt(e){return{type:e}}function Kt(e){return{result:"success",value:e}}function Xt(e){return{result:"error",value:e}}function Qt(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function $t(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function eo(e){return!!e.expression&&e.expression.interpolated}function to(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":b(e)}function oo(e){return"object"===b(e)&&null!==e&&!Array.isArray(e)}function no(e){return e}function io(e,t){var o,n,i,r="color"===t.type,a=e.stops&&"object"===b(e.stops[0][0]),s=a||void 0!==e.property,l=a||!s,c=e.type||(eo(t)?"exponential":"interval");if(r&&((e=X({},e)).stops&&(e.stops=e.stops.map((function(e){return[e[0],ye.parse(e[1])]}))),e.default?e.default=ye.parse(e.default):e.default=ye.parse(t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!_t[e.colorSpace])throw new Error("Unknown color space: ".concat(e.colorSpace));if("exponential"===c)o=lo;else if("interval"===c)o=so;else if("categorical"===c){o=ao,n=Object.create(null);var u,d=v(e.stops);try{for(d.s();!(u=d.n()).done;){var p=u.value;n[p[0]]=p[1]}}catch(e){d.e(e)}finally{d.f()}i=b(e.stops[0][0])}else{if("identity"!==c)throw new Error('Unknown function type "'.concat(c,'"'));o=co}if(a){for(var h={},g=[],m=0;m=e.stops[n-1][0])return e.stops[n-1][1];var i=rt(e.stops.map((function(e){return e[0]})),o);return e.stops[i][1]}function lo(e,t,o){var n=void 0!==e.base?e.base:1;if("number"!==to(o))return ro(e.default,t.default);var i=e.stops.length;if(1===i)return e.stops[0][1];if(o<=e.stops[0][0])return e.stops[0][1];if(o>=e.stops[i-1][0])return e.stops[i-1][1];var r=rt(e.stops.map((function(e){return e[0]})),o),a=function(e,t,o,n){var i=n-o,r=e-o;return 0===i?0:1===t?r/i:(Math.pow(t,r)-1)/(Math.pow(t,i)-1)}(o,n,e.stops[r][0],e.stops[r+1][0]),s=e.stops[r][1],l=e.stops[r+1][1],c=ut[t.type]||no;if(e.colorSpace&&"rgb"!==e.colorSpace){var u=_t[e.colorSpace];c=function(e,t){return u.reverse(u.interpolate(u.forward(e),u.forward(t),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var e=arguments.length,t=new Array(e),o=0;o":[ne,[oe,ae],function(e,t){var o=a(t,2),n=o[0],i=o[1],r=e.properties()[n.value],s=i.value;return b(r)===b(s)&&r>s}],"filter-id->":[ne,[ae],function(e,t){var o=a(t,1)[0],n=e.id(),i=o.value;return b(n)===b(i)&&n>i}],"filter-<=":[ne,[oe,ae],function(e,t){var o=a(t,2),n=o[0],i=o[1],r=e.properties()[n.value],s=i.value;return b(r)===b(s)&&r<=s}],"filter-id-<=":[ne,[ae],function(e,t){var o=a(t,1)[0],n=e.id(),i=o.value;return b(n)===b(i)&&n<=i}],"filter->=":[ne,[oe,ae],function(e,t){var o=a(t,2),n=o[0],i=o[1],r=e.properties()[n.value],s=i.value;return b(r)===b(s)&&r>=s}],"filter-id->=":[ne,[ae],function(e,t){var o=a(t,1)[0],n=e.id(),i=o.value;return b(n)===b(i)&&n>=i}],"filter-has":[ne,[ae],function(e,t){return a(t,1)[0].value in e.properties()}],"filter-has-id":[ne,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[ne,[ue(oe)],function(e,t){return a(t,1)[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[ne,[ue(ae)],function(e,t){return a(t,1)[0].value.indexOf(e.id())>=0}],"filter-in-small":[ne,[oe,ue(ae)],function(e,t){var o=a(t,2),n=o[0];return o[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[ne,[oe,ue(ae)],function(e,t){var o=a(t,2),n=o[0],i=o[1];return function(e,t,o,n){for(;o<=n;){var i=o+n>>1;if(t[i]===e)return!0;t[i]>e?n=i-1:o=i+1}return!1}(e.properties()[n.value],i.value,0,i.value.length-1)}],all:{type:ne,overloads:[[[ne,ne],function(e,t){var o=a(t,2),n=o[0],i=o[1];return n.evaluate(e)&&i.evaluate(e)}],[Zt(ne),function(e,t){var o,n=v(t);try{for(n.s();!(o=n.n()).done;){if(!o.value.evaluate(e))return!1}}catch(e){n.e(e)}finally{n.f()}return!0}]]},any:{type:ne,overloads:[[[ne,ne],function(e,t){var o=a(t,2),n=o[0],i=o[1];return n.evaluate(e)||i.evaluate(e)}],[Zt(ne),function(e,t){var o,n=v(t);try{for(n.s();!(o=n.n()).done;){if(o.value.evaluate(e))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}]]},"!":[ne,[ne],function(e,t){return!a(t,1)[0].evaluate(e)}],"is-supported-script":[ne,[oe],function(e,t){var o=a(t,1)[0],n=e.globals&&e.globals.isSupportedScript;return!n||n(o.evaluate(e))}],upcase:[oe,[oe],function(e,t){return a(t,1)[0].evaluate(e).toUpperCase()}],downcase:[oe,[oe],function(e,t){return a(t,1)[0].evaluate(e).toLowerCase()}],concat:[oe,Zt(ae),function(e,t){return t.map((function(t){return Ee(t.evaluate(e))})).join("")}],"resolved-locale":[oe,[se],function(e,t){return a(t,1)[0].evaluate(e).resolvedLocale()}]});var uo=function(){return u((function e(t,o){var n;p(this,e),this.expression=t,this._warningHistory={},this._evaluator=new Le,this._defaultValue=o?"color"===(n=o).type&&oo(n.default)?new ye(0,0,0,0):"color"===n.type?ye.parse(n.default)||null:void 0===n.default?null:n.default:null,this._enumValues=o&&"enum"===o.type?o.values:null}),[{key:"evaluateWithoutErrorHandling",value:function(e,t,o,n,i,r){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=o,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=r,this.expression.evaluate(this._evaluator)}},{key:"evaluate",value:function(e,t,o,n,i,r){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=o||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=r||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new Me("Expected value to be one of ".concat(Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", "),", but found ").concat(JSON.stringify(a)," instead."));return a}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}])}();function po(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in qt}function ho(e,t){var o=new it(qt,[],t?function(e){var t={color:ie,string:oe,number:te,enum:oe,boolean:ne,formatted:le,resolvedImage:ce};if("array"===e.type)return ue(t[e.value]||ae,e.length);return t[e.type]}(t):void 0),n=o.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return n?Kt(new uo(n,t)):Xt(o.errors)}var go=function(){return u((function e(t,o){p(this,e),this.kind=t,this._styleExpression=o,this.isStateDependent="constant"!==t&&!tt(o.expression)}),[{key:"evaluateWithoutErrorHandling",value:function(e,t,o,n,i,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,o,n,i,r)}},{key:"evaluate",value:function(e,t,o,n,i,r){return this._styleExpression.evaluate(e,t,o,n,i,r)}}])}(),mo=function(){return u((function e(t,o,n,i){p(this,e),this.kind=t,this.zoomStops=n,this._styleExpression=o,this.isStateDependent="camera"!==t&&!tt(o.expression),this.interpolationType=i}),[{key:"evaluateWithoutErrorHandling",value:function(e,t,o,n,i,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,o,n,i,r)}},{key:"evaluate",value:function(e,t,o,n,i,r){return this._styleExpression.evaluate(e,t,o,n,i,r)}},{key:"interpolationFactor",value:function(e,t,o){return this.interpolationType?Et.interpolationFactor(this.interpolationType,e,t,o):0}}])}();function fo(e,t){if("error"===(e=ho(e,t)).result)return e;var o=e.value.expression,n=et(o);if(!n&&!Qt(t))return Xt([new Q("","data expressions not supported")]);var i=ot(o,["zoom"]);if(!i&&!$t(t))return Xt([new Q("","zoom expressions not supported")]);var r=function e(t){var o=null;if(t instanceof Pt)o=e(t.result);else if(t instanceof Mt){var n,i=v(t.args);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(o=e(r))break}}catch(e){i.e(e)}finally{i.f()}}else(t instanceof at||t instanceof Et)&&t.input instanceof De&&"zoom"===t.input.name&&(o=t);if(o instanceof Q)return o;return t.eachChild((function(t){var n=e(t);n instanceof Q?o=n:!o&&n?o=new Q("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):o&&n&&o!==n&&(o=new Q("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),o}(o);if(!r&&!i)return Xt([new Q("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(r instanceof Q)return Xt([r]);if(r instanceof Et&&!eo(t))return Xt([new Q("",'"interpolate" expressions cannot be used with this property')]);if(!r)return Kt(new go(n?"constant":"source",e.value));var a=r instanceof Et?r.interpolation:void 0;return Kt(new mo(n?"camera":"composite",e.value,r.labels,a))}var yo=function(){function e(t,o){p(this,e),this._parameters=t,this._specification=o,X(this,io(this._parameters,this._specification))}return u(e,null,[{key:"deserialize",value:function(t){return new e(t._parameters,t._specification)}},{key:"serialize",value:function(e){return{_parameters:e._parameters,_specification:e._specification}}}])}();function Ao(e){return"object"===b(e)?["literal",e]:e}function vo(e,t){var o=e.stops;if(!o)return function(e,t){var o=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",o]:o;if("enum"===t.type)return["match",o,Object.keys(t.values),o,e.default];var n=["color"===t.type?"to-color":t.type,o,Ao(e.default)];return"array"===t.type&&n.splice(1,0,t.value,t.length||null),n}(e,t);var n=o&&"object"===b(o[0][0]),i=n||void 0!==e.property,r=n||!i;return o=o.map((function(e){return!i&&t.tokens&&"string"==typeof e[1]?[e[0],So(e[1])]:[e[0],Ao(e[1])]})),n?function(e,t,o){for(var n={},i={},r=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:["zoom"],r=Eo(e,t),a=!1;if("interval"===r)n=["step",i],a=!0;else{if("exponential"!==r)throw new Error('Unknown zoom function type "'.concat(r,'"'));var s=void 0!==e.base?e.base:1;n=[Co(e),1===s?["linear"]:["exponential",s],i]}var l,c=v(o);try{for(c.s();!(l=c.n()).done;){var u=l.value;_o(n,u[0],u[1],a)}}catch(e){c.e(e)}finally{c.f()}return wo(n),n}(e,t,o):bo(e,t,o)}function Co(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function Io(e,t){var o,n,i=Ao((o=e.default,n=t.default,void 0!==o?o:void 0!==n?n:void 0));return void 0===i&&"resolvedImage"===t.type?"":i}function bo(e,t,o){var n=Eo(e,t),i=["get",e.property];if("categorical"===n&&"boolean"==typeof o[0][0]){var r,a=["case"],s=v(o);try{for(s.s();!(r=s.n()).done;){var l=r.value;a.push(["==",i,l[0]],l[1])}}catch(e){s.e(e)}finally{s.f()}return a.push(Io(e,t)),a}if("categorical"===n){var c,u=["match",i],d=v(o);try{for(d.s();!(c=d.n()).done;){var p=c.value;_o(u,p[0],p[1],!1)}}catch(e){d.e(e)}finally{d.f()}return u.push(Io(e,t)),u}if("interval"===n){var h,g=["step",["number",i]],m=v(o);try{for(m.s();!(h=m.n()).done;){var f=h.value;_o(g,f[0],f[1],!0)}}catch(e){m.e(e)}finally{m.f()}return wo(g),void 0===e.default?g:["case",["==",["typeof",i],"number"],g,Ao(e.default)]}if("exponential"===n){var y,A=void 0!==e.base?e.base:1,C=[Co(e),1===A?["linear"]:["exponential",A],["number",i]],I=v(o);try{for(I.s();!(y=I.n()).done;){var b=y.value;_o(C,b[0],b[1],!1)}}catch(e){I.e(e)}finally{I.f()}return void 0===e.default?C:["case",["==",["typeof",i],"number"],C,Ao(e.default)]}throw new Error("Unknown property function type ".concat(n))}function wo(e){"step"===e[0]&&3===e.length&&(e.push(0),e.push(e[3]))}function _o(e,t,o,n){e.length>3&&t===e[e.length-2]||(n&&2===e.length||e.push(t),e.push(o))}function Eo(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function So(e){for(var t=["concat"],o=/{([^{}]+)}/g,n=0,i=o.exec(e);null!==i;i=o.exec(e)){var r=e.slice(n,o.lastIndex-i[0].length);n=o.lastIndex,r.length>0&&t.push(r),t.push(["get",i[1]])}if(1===t.length)return e;if(n=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":var t,o=v(e.slice(1));try{for(o.s();!(t=o.n()).done;){var n=t.value;if(!Mo(n)&&"boolean"!=typeof n)return!1}}catch(e){o.e(e)}finally{o.f()}return!0;default:return!0}}var Po={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function xo(e){if(null==e)return{filter:function(){return!0},needGeometry:!1};Mo(e)||(e=Go(e));var t=ho(e,Po);if("error"===t.result)throw new Error(t.value.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join(", "));return{filter:function(e,o,n){return t.value.evaluate(e,o,{},n)},needGeometry:function e(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var o=1;ot?1:0}function Go(e){if(!e)return!0;var t,o=e[0];return e.length<=1?"any"!==o:"=="===o?Ro(e[1],e[2],"=="):"!="===o?Lo(Ro(e[1],e[2],"==")):"<"===o||">"===o||"<="===o||">="===o?Ro(e[1],e[2],o):"any"===o?(t=e.slice(1),["any"].concat(t.map(Go))):"all"===o?["all"].concat(e.slice(1).map(Go)):"none"===o?["all"].concat(e.slice(1).map(Go).map(Lo)):"in"===o?To(e[1],e.slice(2)):"!in"===o?Lo(To(e[1],e.slice(2))):"has"===o?Oo(e[1]):"!has"===o?Lo(Oo(e[1])):"within"!==o||e}function Ro(e,t,o){switch(e){case"$type":return["filter-type-".concat(o),t];case"$id":return["filter-id-".concat(o),t];default:return["filter-".concat(o),e,t]}}function To(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((function(e){return b(e)!==b(t[0])}))?["filter-in-large",e,["literal",t.sort(ko)]]:["filter-in-small",e,["literal",t]]}}function Oo(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Lo(e){return["!",e]}var Do=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function jo(e,t){var o={};for(var n in e)"ref"!==n&&(o[n]=e[n]);return Do.forEach((function(e){e in t&&(o[e]=t[e])})),o}function Uo(e){e=e.slice();for(var t=Object.create(null),o=0;os)return[new No(t,o,"".concat(o," is greater than the maximum value ").concat(s))]}return[]}function Yo(e){var t,o,n,i=e.valueSpec,r=zo(e.value.type),a={},s="categorical"!==r&&void 0===e.value.property,l=!s,c="array"===to(e.value.stops)&&"array"===to(e.value.stops[0])&&"object"===to(e.value.stops[0][0]),u=Wo({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===r)return[new No(e.key,e.value,'identity function may not have a "stops" property')];var t=[],o=e.value;t=t.concat(qo({key:e.key,value:o,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:d})),"array"===to(o)&&0===o.length&&t.push(new No(e.key,o,"array must have at least one stop"));return t},default:function(e){return cn({key:e.key,value:e.value,valueSpec:i,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===r&&s&&u.push(new No(e.key,e.value,'missing required property "property"')),"identity"===r||e.value.stops||u.push(new No(e.key,e.value,'missing required property "stops"')),"exponential"===r&&e.valueSpec.expression&&!eo(e.valueSpec)&&u.push(new No(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!Qt(e.valueSpec)?u.push(new No(e.key,e.value,"property functions not supported")):s&&!$t(e.valueSpec)&&u.push(new No(e.key,e.value,"zoom functions not supported"))),"categorical"!==r&&!c||void 0!==e.value.property||u.push(new No(e.key,e.value,'"property" property is required')),u;function d(e){var t=[],r=e.value,s=e.key;if("array"!==to(r))return[new No(s,r,"array expected, ".concat(to(r)," found"))];if(2!==r.length)return[new No(s,r,"array length 2 expected, length ".concat(r.length," found"))];if(c){if("object"!==to(r[0]))return[new No(s,r,"object expected, ".concat(to(r[0])," found"))];if(void 0===r[0].zoom)return[new No(s,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new No(s,r,"object stop key must have value")];if(n&&n>zo(r[0].zoom))return[new No(s,r[0].zoom,"stop zoom values must appear in ascending order")];zo(r[0].zoom)!==n&&(n=zo(r[0].zoom),o=void 0,a={}),t=t.concat(Wo({key:"".concat(s,"[0]"),value:r[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Ho,value:p}}))}else t=t.concat(p({key:"".concat(s,"[0]"),value:r[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},r));return po(Vo(r[1]))?t.concat([new No("".concat(s,"[1]"),r[1],"expressions are not allowed in function stops.")]):t.concat(cn({key:"".concat(s,"[1]"),value:r[1],valueSpec:i,style:e.style,styleSpec:e.styleSpec}))}function p(e,n){var s=to(e.value),l=zo(e.value),c=null!==e.value?e.value:n;if(t){if(s!==t)return[new No(e.key,c,"".concat(s," stop domain type must match previous stop domain type ").concat(t))]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new No(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==r){var u="number expected, ".concat(s," found");return Qt(i)&&void 0===r&&(u+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new No(e.key,c,u)]}return"categorical"!==r||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==r&&"number"===s&&void 0!==o&&l":case">=":o.length>=2&&"$type"===zo(o[1])&&a.push(new No(n,o,'"$type" cannot be use with operator "'.concat(o[0],'"')));case"==":case"!=":3!==o.length&&a.push(new No(n,o,'filter array for operator "'.concat(o[0],'" must have 3 elements')));case"in":case"!in":o.length>=2&&"string"!==(i=to(o[1]))&&a.push(new No("".concat(n,"[1]"),o[1],"string expected, ".concat(i," found")));for(var s=2;s1&&void 0!==arguments[1]?arguments[1]:w,o=[];return o=o.concat(cn({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:un,"*":function(){return[]}}})),e.constants&&(o=o.concat(Fo({key:"constants",value:e.constants,style:e,styleSpec:t}))),pn(o)}function pn(e){return[].concat(e).sort((function(e,t){return e.line-t.line}))}function hn(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;nc&&E.push("'"+this.terminals_[b]+"'");M=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[A]||A)+"'":"Parse error on line "+(s+1)+": Unexpected "+(A==u?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[A]||A,line:p.yylineno,loc:m,expected:E})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+A);switch(C[0]){case 1:o.push(A),n.push(p.yytext),i.push(p.yylloc),o.push(C[1]),A=null,l=p.yyleng,a=p.yytext,s=p.yylineno,m=p.yylloc;break;case 2:if(w=this.productions_[C[1]][1],S.$=n[n.length-w],S._$={first_line:i[i.length-(w||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(w||1)].first_column,last_column:i[i.length-1].last_column},f&&(S._$.range=[i[i.length-(w||1)].range[0],i[i.length-1].range[1]]),void 0!==(I=this.performAction.apply(S,[a,l,s,h.yy,C[1],n,i].concat(d))))return I;w&&(o=o.slice(0,-1*w*2),n=n.slice(0,-1*w),i=i.slice(0,-1*w)),o.push(this.productions_[C[1]][0]),n.push(S.$),i.push(S._$),_=r[o[o.length-2]][o[o.length-1]],o.push(_);break;case 3:return!0}}return!0}},p={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,o=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===n.length?this.yylloc.first_column:0)+n[n.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var o,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],o=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in i)this[r]=i[r];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,o,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),r=0;rt[0].length)){if(t=o,n=r,this.options.backtrack_lexer){if(!1!==(e=this.test_match(o,i[r])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,o,n){switch(o){case 0:break;case 1:return 6;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function h(){this.yy={}}return d.lexer=p,h.prototype=d,d.Parser=h,new h}();void 0!==S&&(t.parser=o,t.Parser=o.Parser,t.parse=function(){return o.parse.apply(o,arguments)})}));function mn(e){if(e instanceof String||"string"==typeof e||e instanceof n)try{return gn.parse(e.toString())}catch(e){throw new Bo(e)}return e}function fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w,o=e;try{o=mn(o)}catch(e){return[e]}return dn(o,t)}new Set(["vector","raster","raster-dem"]);var yn={StyleExpression:uo,isExpression:po,isExpressionFilter:Mo,createExpression:ho,createPropertyExpression:fo,normalizePropertyExpression:function(e,t){if(oo(e))return new yo(e,t);if(po(e)){var o=fo(e,t);if("error"===o.result)throw new Error(o.value.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join(", "));return o.value}var n=e;return"string"==typeof e&&"color"===t.type&&(n=ye.parse(e)),{kind:"constant",evaluate:function(){return n}}},ZoomConstantExpression:go,ZoomDependentExpression:mo,StylePropertyFunction:yo},An={convertFunction:vo,createFunction:io,isFunction:oo};fn.parsed=fn,fn.latest=fn}).call(this,o(28),o(99).Buffer)},function(e){e.exports=JSON.parse('{"name":"geoportal-extensions","description":"French Geoportal Extensions for OpenLayers, Leaflet and iTowns libraries","version":"3.0.0","date":"19/03/2024","leafletExtName":"French Geoportal Extension for Leaflet","leafletExtVersion":"2.4.0","olExtName":"French Geoportal Extension for OpenLayers","olExtVersion":"3.4.0","itownsExtName":"French Geoportal Extension for Itowns","itownsExtVersion":"2.5.0","main":"dist/leaflet/GpPluginLeaflet.js, dist/openlayers/GpPluginOpenLayers.js, dist/itowns/GpPluginItowns.js","types":"dist/leaflet/index.d.ts, dist/openlayers/index.d.ts, dist/itowns/index.d.ts","module":"src/Leaflet/index.js, src/OpenLayers/index.js, src/Itowns/index.js","directories":{},"scripts":{"setup":"npm install","clean":"echo \\"Warning: target not yet implemented!\\" && exit 0","eslint":"eslint src/","test":"npm run test:serve","test:serve":"cd test && webpack-dev-server --hot --config webpack.test.serve.js","sample":"npm run sample:serve","sample:serve":"npm run sample:ol:serve","sample:itowns:serve":"webpack-dev-server --config build/webpack/webpack.config.itowns --mode=development --https --open-page samples/index-itowns-map.html --content-base . --output-public-path \'/dist/itowns/\' --port 9001 --open","sample:leaflet:serve":"webpack-dev-server --config build/webpack/webpack.config.leaflet --mode=development --https --open-page samples/index-leaflet-map.html --content-base . --output-public-path \'/dist/leaflet/\' --port 9001 --open","sample:ol:serve":"webpack-dev-server --config build/webpack/webpack.config.openlayers --mode=development --https --open-page samples/index-openlayers-map.html --content-base . --output-public-path \'/dist/openlayers/\' --port 9001 --open","generate-types:ol":"npx tsc -p build/types/tsconfig-openlayers.json","generate-types:leaflet":"npx tsc -p build/types/tsconfig-leaflet.json","generate-types:itowns":"npx tsc -p build/types/tsconfig-itowns.json","generate-jsdoc:ol":"jsdoc -c build/jsdoc/jsdoc-openlayers.json","generate-jsdoc:leaflet":"jsdoc -c build/jsdoc/jsdoc-leaflet.json","generate-jsdoc:itowns":"jsdoc -c build/jsdoc/jsdoc-itowns.json","doc":"npm run doc:serve","doc:serve":"npm run doc:ol:serve","doc:itowns:serve":"webpack-dev-server --hot --config build/webpack/webpack.config.itowns --content-base jsdoc/itowns --port 9001 --open","doc:leaflet:serve":"webpack-dev-server --hot --config build/webpack/webpack.config.leaflet --content-base jsdoc/leaflet --port 9001 --open","doc:ol:serve":"webpack-dev-server --hot --config build/webpack/webpack.config.openlayers --content-base jsdoc/openlayers --port 9001 --open","build:dev":"npm-run-all --print-label --print-name build:*:dev","build:prod":"npm-run-all --print-label --print-name build:*:prod","build:src":"npm-run-all --print-label --print-name build:*:src","build":"npm-run-all --print-label --print-name build:*:*","build:itowns":"npm-run-all --print-label --print-name build:itowns:*","build:itowns:dev":"webpack --config build/webpack/webpack.config.itowns --mode=development","build:itowns:prod":"webpack --config build/webpack/webpack.config.itowns --mode=production","build:itowns:src":"webpack --config build/webpack/webpack.config.itowns --mode=none","build:ol":"npm-run-all --print-label --print-name build:ol:*","build:ol:dev":"webpack --config build/webpack/webpack.config.openlayers --mode=development","build:ol:prod":"webpack --config build/webpack/webpack.config.openlayers --mode=production","build:ol:src":"webpack --config build/webpack/webpack.config.openlayers --mode=none","build:leaflet":"npm-run-all --print-label --print-name build:leaflet:*","build:leaflet:dev":"webpack --config build/webpack/webpack.config.leaflet --mode=development","build:leaflet:prod":"webpack --config build/webpack/webpack.config.leaflet --mode=production","build:leaflet:src":"webpack --config build/webpack/webpack.config.leaflet --mode=none"},"repository":{"type":"git","url":"https://github.com/IGNF/geoportal-extensions.git"},"author":"IGNF","keywords":["geoportail","geoplateforme","javascript","OpenLayers","Leaflet","Itowns","3D"],"license":"CECILL-B","bugs":{"url":"https://github.com/IGNF/geoportal-extensions/issues"},"homepage":"https://github.com/IGNF/geoportal-extensions#readme","dependencies":{"@mapbox/mapbox-gl-style-spec":"13.20.1","eventbusjs":"0.2.0","geoportal-access-lib":"3.4.0","itowns":"2.38.2","leaflet":"1.7.1","leaflet-draw":"1.0.4","loglevel":"^1.6.7","markdown-toc":"^1.2.0","ol":"6.9.0","ol-mapbox-style":"6.7.0","proj4":"2.7.5","proj4leaflet":"1.0.2","sortablejs":"1.14.0","three":"0.137.5","typescript":"^4.5.5","whatwg-fetch":"3.0.0"},"devDependencies":{"@babel/core":"^7.4.4","@babel/plugin-transform-template-literals":"^7.7.4","@babel/preset-env":"^7.4.4","babel-loader":"^8.0.5","chai":"^4.2.0","chalk":"^4.0.0","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^5.0.3","core-js":"^3.6.4","css-loader":"^3.4.2","eslint":"^6.8.0","eslint-config-standard":"^14.1.1","eslint-loader":"^4.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-standard":"^4.0.0","exports-loader":"^0.7.0","expose-loader":"^0.7.5","fs-extra":"^9.0.0","handlebars":"^4.7.5","handlebars-layouts":"^3.1.4","html-webpack-plugin":"^4.0.4","jsdoc-webpack-plugin":"^0.3.0","mini-css-extract-plugin":"^0.9.0","mocha":"^7.1.1","mocha-loader":"^5.0.0","npm-run-all":"^4.1.5","optimize-css-assets-webpack-plugin":"^5.0.1","path":"^0.12.7","replace-bundle-webpack-plugin":"^1.0.0","requirejs":"^2.3.6","responsive-loader":"^1.2.0","speed-measure-webpack-plugin":"^1.3.0","string-template":"^1.0.0","style-loader":"^1.1.3","terser-webpack-plugin":"^2.0.0","url-loader":"^4.0.0","webpack":"^4.30.0","webpack-cli":"^3.3.1","webpack-dev-server":"^3.3.1","webpack-node-externals":"^1.7.2"}}')},function(e,t,o){(function(t){e.exports=t.proj4=o(103)}).call(this,o(28))},function(e,t){e.exports=ol.layer.Tile},function(e,t){e.exports=ol.extent},function(e,t){e.exports=ol.layer.VectorTile},function(e,t){e.exports=ol.Collection},function(e,t,o){var n,i;!function(r,a){"use strict";void 0===(i="function"==typeof(n=function(){var e=function(){},t="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],n={},i=null;function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(o){return"debug"===o&&(o="log"),"undefined"!=typeof console&&("trace"===o&&t?a:void 0!==console[o]?r(console,o):void 0!==console.log?r(console,"log"):e)}function l(){for(var t=this.getLevel(),n=0;n=0&&t<=c.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),c.name=e,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=t||u,c.getLevel=function(){return null!=s?s:null!=a?a:r},c.setLevel=function(e,t){return s=h(e),!1!==t&&function(e){var t=(o[e]||"silent").toUpperCase();if("undefined"!=typeof window&&d){try{return void(window.localStorage[d]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+t+";"}catch(e){}}}(s),l.call(c)},c.setDefaultLevel=function(e){a=h(e),p()||c.setLevel(e,!1)},c.resetLevel=function(){s=null,function(){if("undefined"!=typeof window&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),l.call(c)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)},c.rebuild=function(){if(i!==c&&(r=h(i.getLevel())),l.call(c),i===c)for(var e in n)n[e].rebuild()},r=h(i?i.getLevel():"WARN");var g=p();null!=g&&(s=h(g)),l.call(c)}(i=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=n[e];return t||(t=n[e]=new d(e,i.methodFactory)),t};var p="undefined"!=typeof window?window.log:void 0;return i.noConflict=function(){return"undefined"!=typeof window&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return n},i.default=i,i})?n.call(t,o,t,e):n)||(e.exports=i)}()},function(e,t){e.exports=ol.source.TileJSON},function(e,t){e.exports=ol.format.MVT},function(e,t){e.exports=ol.events.condition},function(e,t){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"==typeof window&&(o=window)}e.exports=o},function(e,t){e.exports=ol.source.TileWMS},function(e,t){e.exports=ol.source.WMTS},function(e){e.exports=JSON.parse('{"_from":"geoportal-access-lib@3.4.0","_id":"geoportal-access-lib@3.4.0","_inBundle":false,"_integrity":"sha512-+xnrMHpABTE9Pc/Ti0otv9M/pG9YXYqHgpzw/qnJILSDpR54lKCF5kd1gwne1sBqjbYZue5+jfLL7lZNfrD13g==","_location":"/geoportal-access-lib","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"geoportal-access-lib@3.4.0","name":"geoportal-access-lib","escapedName":"geoportal-access-lib","rawSpec":"3.4.0","saveSpec":null,"fetchSpec":"3.4.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/geoportal-access-lib/-/geoportal-access-lib-3.4.0.tgz","_shasum":"79dcd9faa9b0e78d4613e3431c0ab5e648221a09","_spec":"geoportal-access-lib@3.4.0","_where":"/home/runner/work/geoportal-extensions/geoportal-extensions","author":{"name":"IGNF"},"bugs":{"url":"https://github.com/IGNF/geoportal-access-lib/issues"},"bundleDependencies":false,"date":"18/03/2024","dependencies":{"es6-promise":"^4.2.4","node-fetch":"^2.6.1","xmldom":"^0.1.27"},"deprecated":false,"description":"French Geoportal resources access library","devDependencies":{"@babel/core":"^7.12.10","@babel/plugin-transform-template-literals":"^7.12.1","@babel/preset-env":"^7.12.11","babel-loader":"^8.2.2","chai":"^4.1.2","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^5.1.2","eslint":"^7.18.0","eslint-config-standard":"^16.0.2","eslint-loader":"^4.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^5.0.0","glob":"^7.1.2","handlebars-layouts":"^3.1.4","handlebars-webpack-plugin":"^1.4.1","html-webpack-plugin":"^4.5.1","istanbul-instrumenter-loader":"^3.0.1","jsdoc-webpack-plugin":"^0.3.0","loglevel":"^1.6.1","mocha":"^7.2.0","mocha-loader":"^5.1.5","mocha-webpack":"^2.0.0-beta.0","mochawesome":"^6.2.1","nyc":"^15.1.0","path":"^0.12.7","replace-bundle-webpack-plugin":"^1.0.0","sinon":"^9.2.4","sinon-es6":"0.0.3","speed-measure-webpack-plugin":"^1.4.2","string-template":"^1.0.0","terser-webpack-plugin":"^2.3.8","webpack":"^4.46.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.2","webpack-node-externals":"^2.5.2","webpack-shell-plugin":"^0.5.0"},"homepage":"https://github.com/IGNF/geoportal-access-lib#readme","keywords":["geoplateforme","geoportail","webservice","javascript","es6"],"license":"CECILL-B","main":"dist/GpServices-src.js","module":"src/Gp.js","name":"geoportal-access-lib","nyc":{"include":["src/**/*.js"],"instrument":false,"sourceMap":false},"optionalDependencies":{},"peerDependencies":{},"repository":{"type":"git","url":"git+https://github.com/IGNF/geoportal-access-lib.git"},"scripts":{"build":"webpack --mode=none","build:dev":"webpack --mode=development","build:prod":"webpack --mode=production","clean":"echo \\"Warning: no yet implemented!\\" && exit 0","cover":"nyc --reporter=lcov --reporter=text npm run test","doc":"npm run doc:serve","doc:serve":"webpack-dev-server --content-base jsdoc --port 9001 --open","eslint":"eslint src/","sample":"npm run sample:serve","sample:serve":"webpack-dev-server --mode=none --open-page samples/index-src.html --https --content-base . --output-public-path \'/dist/\' --port 9001 --open","sample:serve:dev":"webpack-dev-server --mode=development --open-page samples/index-map.html --content-base . --output-public-path \'/dist/\' --port 9001 --open","sample:serve:prod":"webpack-dev-server --mode=production --open-page samples/index-prod.html --content-base . --output-public-path \'/dist/\' --port 9001 --open","setup":"npm install","test":"mocha-webpack --reporter mochawesome --reporter-options reportDir=test-report,reportFilename=index --webpack-config ./test/webpack/webpack.test.js --glob \\"test_*.js\\" test/spec/","test:end-to-end:serve":"webpack-dev-server --hot --config ./test/webpack/webpack.end-to-end.serve.js","test:end-to-end:serve:docker":"webpack-dev-server --hot --config ./test/webpack/webpack.end-to-end.serve.docker.js","test:serve":"webpack-dev-server --hot --config ./test/webpack/webpack.test.serve.js","test:serve:docker":"webpack-dev-server --hot --config ./test/webpack/webpack.test.serve.docker.js"},"version":"3.4.0"}')},function(e,t){e.exports=ol.style.Circle},function(e,t){e.exports=ol.style.Icon},function(e,t){e.exports=ol.style.Text},function(e,t){e.exports=ol.tilegrid},function(e,t){e.exports=void 0},function(e,t){e.exports=ol.format.GeoJSON},function(e,t){e.exports=ol.tilegrid.WMTS},function(e,t){var o={thin:100,hairline:100,"ultra-light":200,"extra-light":200,light:300,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,"extra-bold":800,"ultra-bold":800,heavy:900,black:900,"heavy-black":900,fat:900,poster:900,"ultra-black":950,"extra-black":950},n=/(italic|oblique)$/i,i={};e.exports=function(e,t,r){var a=i[e];if(!a){Array.isArray(e)||(e=[e]);for(var s,l,c=400,u="normal",d=[],p=0,h=e.length;p1?g[g.length-2].toLowerCase():"";if(m==f||m==f.replace("-","")||y+"-"+m==f){c=s?c:o[f],g.pop(),y&&f.startsWith(y)&&g.pop();break}}s||"number"!=typeof m||(c=m,s=!0);var A=g.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==A.indexOf(" ")&&(A='"'+A+'"'),d.push(A)}a=i[e]=[u,c,d]}return a[0]+" "+a[1]+" "+t+"px"+(r?"/"+r:"")+" "+a[2]}},function(e,t){e.exports=ol.Map},function(e,t){e.exports=ol.tilegrid.TileGrid},function(e,t){e.exports=ol.render.canvas},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t){e.exports=void 0},function(e,t){e.exports=ol.source.ImageWMS},function(e,t,o){(function(t,o){ +/*! https://mths.be/punycode v1.3.2 by @mathias */var M=E((function(e,t){!function(o){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,r="object"==b(_)&&_;r.global!==r&&r.window!==r&&r.self!==r||(o=r);var a,s,l=2147483647,c=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,g=String.fromCharCode;function m(e){throw RangeError(p[e])}function f(e,t){for(var o=e.length,n=[];o--;)n[o]=t(e[o]);return n}function y(e,t){var o=e.split("@"),n="";return o.length>1&&(n=o[0]+"@",e=o[1]),n+f((e=e.replace(d,".")).split("."),t).join(".")}function A(e){for(var t,o,n=[],i=0,r=e.length;i=55296&&t<=56319&&i65535&&(t+=g((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=g(e)})).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function I(e,t,o){var n=0;for(e=o?h(e/700):e>>1,e+=h(e/t);e>455;n+=36)e=h(e/35);return h(n+36*e/(e+38))}function w(e){var t,o,n,i,r,a,s,c,u,d,p,g=[],f=e.length,y=0,A=128,C=72;for((o=e.lastIndexOf("-"))<0&&(o=0),n=0;n=128&&m("not-basic"),g.push(e.charCodeAt(n));for(i=o>0?o+1:0;i=f&&m("invalid-input"),((c=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||c>h((l-y)/a))&&m("overflow"),y+=c*a,!(c<(u=s<=C?1:s>=C+26?26:s-C));s+=36)a>h(l/(d=36-u))&&m("overflow"),a*=d;C=I(y-r,t=g.length+1,0==r),h(y/t)>l-A&&m("overflow"),A+=h(y/t),y%=t,g.splice(y++,0,A)}return v(g)}function E(e){var t,o,n,i,r,a,s,c,u,d,p,f,y,v,b,w=[];for(f=(e=A(e)).length,t=128,o=0,r=72,a=0;a=t&&ph((l-o)/(y=n+1))&&m("overflow"),o+=(s-t)*y,t=s,a=0;al&&m("overflow"),p==t){for(c=o,u=36;!(c<(d=u<=r?1:u>=r+26?26:u-r));u+=36)b=c-d,v=36-d,w.push(g(C(d+b%v,0))),c=h(b/v);w.push(g(C(c,0))),r=I(o,y,n==i),o=0,++n}++o,++t}return w.join("")}if(a={version:"1.3.2",ucs2:{decode:A,encode:v},decode:w,encode:E,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return y(e,(function(e){return c.test(e)?w(e.slice(4).toLowerCase()):e}))}},n&&i)if(e.exports==n)i.exports=a;else for(s in a)a.hasOwnProperty(s)&&(n[s]=a[s]);else o.punycode=a}(_)})),P=function(e){return"string"==typeof e},x=function(e){return"object"===b(e)&&null!==e},k=function(e){return null===e},G=function(e){return null==e};function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T=function(e,t,o,n){t=t||"&",o=o||"=";var i={};if("string"!=typeof e||0===e.length)return i;var r=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l=0?(c=h.substr(0,g),u=h.substr(g+1)):(c=h,u=""),d=decodeURIComponent(c),p=decodeURIComponent(u),R(i,d)?Array.isArray(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i},O=function(e){switch(b(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},L=function(e,t,o,n){return t=t||"&",o=o||"=",null===e&&(e=void 0),"object"===b(e)?Object.keys(e).map((function(n){var i=encodeURIComponent(O(n))+o;return Array.isArray(e[n])?e[n].map((function(e){return i+encodeURIComponent(O(e))})).join(t):i+encodeURIComponent(O(e[n]))})).join(t):n?encodeURIComponent(O(n))+o+encodeURIComponent(O(e)):""},D=E((function(e,t){t.decode=t.parse=T,t.encode=t.stringify=L}));function j(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var U=/^([a-z0-9.+-]+:)/i,N=/:[0-9]*$/,B=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,F=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),z=["'"].concat(F),V=["%","/","?",";","#"].concat(z),W=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,H=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Y={javascript:!0,"javascript:":!0},J={javascript:!0,"javascript:":!0},Z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function K(e,t,o){if(e&&x(e)&&e instanceof j)return e;var n=new j;return n.parse(e,t,o),n}j.prototype.parse=function(e,t,o){if(!P(e))throw new TypeError("Parameter 'url' must be a string, not "+b(e));var n=e.indexOf("?"),i=-1!==n&&n127?C+="x":C+=v[I];if(!C.match(q)){var _=y.slice(0,g),E=y.slice(g+1),S=v.match(H);S&&(_.push(S[1]),E.unshift(S[2])),E.length&&(a="/"+E.join(".")+a),this.hostname=_.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),f||(this.hostname=M.toASCII(this.hostname));var x=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+x,this.href+=this.host,f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!Y[c])for(g=0,A=z.length;g0)&&o.host.split("@"))&&(o.auth=E.shift(),o.host=o.hostname=E.shift());return o.search=e.search,o.query=e.query,k(o.pathname)&&k(o.search)||(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.href=o.format(),o}if(!v.length)return o.pathname=null,o.search?o.path="/"+o.search:o.path=null,o.href=o.format(),o;for(var I=v.slice(-1)[0],b=(o.host||e.host||v.length>1)&&("."===I||".."===I)||""===I,w=0,_=v.length;_>=0;_--)"."===(I=v[_])?v.splice(_,1):".."===I?(v.splice(_,1),w++):w&&(v.splice(_,1),w--);if(!y&&!A)for(;w--;w)v.unshift("..");!y||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),b&&"/"!==v.join("/").substr(-1)&&v.push("");var E,S=""===v[0]||v[0]&&"/"===v[0].charAt(0);C&&(o.hostname=o.host=S?"":v.length?v.shift():"",(E=!!(o.host&&o.host.indexOf("@")>0)&&o.host.split("@"))&&(o.auth=E.shift(),o.host=o.hostname=E.shift()));return(y=y||o.host&&v.length)&&!S&&v.unshift(""),v.length?o.pathname=v.join("/"):(o.pathname=null,o.path=null),k(o.pathname)&&k(o.search)||(o.path=(o.pathname?o.pathname:"")+(o.search?o.search:"")),o.auth=e.auth||o.auth,o.slashes=o.slashes||e.slashes,o.href=o.format(),o},j.prototype.parseHost=function(){var e=this.host,t=N.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};function X(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:[];p(this,e),this.parent=t,this.bindings={};var n,i=v(o);try{for(i.s();!(n=i.n()).done;){var r=a(n.value,2),s=r[0],l=r[1];this.bindings[s]=l}}catch(e){i.e(e)}finally{i.f()}}return u(e,[{key:"concat",value:function(t){return new e(this,t)}},{key:"get",value:function(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error("".concat(e," not found in scope."))}},{key:"has",value:function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}])}(),ee={kind:"null"},te={kind:"number"},oe={kind:"string"},ne={kind:"boolean"},ie={kind:"color"},re={kind:"object"},ae={kind:"value"},se={kind:"collator"},le={kind:"formatted"},ce={kind:"resolvedImage"};function ue(e,t){return{kind:"array",itemType:e,N:t}}function de(e){if("array"===e.kind){var t=de(e.itemType);return"number"==typeof e.N?"array<".concat(t,", ").concat(e.N,">"):"value"===e.itemType.kind?"array":"array<".concat(t,">")}return e.kind}var pe=[ee,te,oe,ne,ie,le,re,ue(ae),ce];function he(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!he(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(var o=0,n=pe;o255?255:e}function i(e){return e<0?0:e>1?1:e}function r(e){return"%"===e[e.length-1]?n(parseFloat(e)/100*255):n(parseInt(e))}function a(e){return"%"===e[e.length-1]?i(parseFloat(e)/100):i(parseFloat(e))}function s(e,t,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?e+(t-e)*o*6:2*o<1?t:3*o<2?e+(t-e)*(2/3-o)*6:e}try{t.parseCSSColor=function(e){var t,i=e.replace(/ /g,"").toLowerCase();if(i in o)return o[i].slice();if("#"===i[0])return 4===i.length?(t=parseInt(i.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===i.length&&(t=parseInt(i.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var l=i.indexOf("("),c=i.indexOf(")");if(-1!==l&&c+1===i.length){var u=i.substr(0,l),d=i.substr(l+1,c-(l+1)).split(","),p=1;switch(u){case"rgba":if(4!==d.length)return null;p=a(d.pop());case"rgb":return 3!==d.length?null:[r(d[0]),r(d[1]),r(d[2]),p];case"hsla":if(4!==d.length)return null;p=a(d.pop());case"hsl":if(3!==d.length)return null;var h=(parseFloat(d[0])%360+360)%360/360,g=a(d[1]),m=a(d[2]),f=m<=.5?m*(g+1):m+g-m*g,y=2*m-f;return[n(255*s(y,f,h+1/3)),n(255*s(y,f,h)),n(255*s(y,f,h-1/3)),p];default:return null}}return null}}catch(e){}})),ye=function(){function e(t,o,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;p(this,e),this.r=t,this.g=o,this.b=n,this.a=i}return u(e,[{key:"toString",value:function(){var e=a(this.toArray(),4),t=e[0],o=e[1],n=e[2],i=e[3];return"rgba(".concat(Math.round(t),",").concat(Math.round(o),",").concat(Math.round(n),",").concat(i,")")}},{key:"toArray",value:function(){var e=this.r,t=this.g,o=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*e/n,255*t/n,255*o/n,n]}}],[{key:"parse",value:function(t){if(t){if(t instanceof e)return t;if("string"==typeof t){var o=fe.parseCSSColor(t);if(o)return new e(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3])}}}}])}();ye.black=new ye(0,0,0,1),ye.white=new ye(1,1,1,1),ye.transparent=new ye(0,0,0,0),ye.red=new ye(1,0,0,1),ye.blue=new ye(0,0,1,1);var Ae=function(){return u((function e(t,o,n){p(this,e),this.sensitivity=t?o?"variant":"case":o?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}),[{key:"compare",value:function(e,t){return this.collator.compare(e,t)}},{key:"resolvedLocale",value:function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}])}(),ve=u((function e(t,o,n,i,r){p(this,e),this.text=t,this.image=o,this.scale=n,this.fontStack=i,this.textColor=r})),Ce=function(){function e(t){p(this,e),this.sections=t}return u(e,[{key:"isEmpty",value:function(){return 0===this.sections.length||!this.sections.some((function(e){return 0!==e.text.length||e.image&&0!==e.image.name.length}))}},{key:"toString",value:function(){return 0===this.sections.length?"":this.sections.map((function(e){return e.text})).join("")}},{key:"serialize",value:function(){var e,t=["format"],o=v(this.sections);try{for(o.s();!(e=o.n()).done;){var n=e.value;if(n.image)t.push(["image",n.image.name]);else{t.push(n.text);var i={};n.fontStack&&(i["text-font"]=["literal",n.fontStack.split(",")]),n.scale&&(i["font-scale"]=n.scale),n.textColor&&(i["text-color"]=["rgba"].concat(n.textColor.toArray())),t.push(i)}}}catch(e){o.e(e)}finally{o.f()}return t}}],[{key:"fromString",value:function(t){return new e([new ve(t,null,null,null,null)])}},{key:"factory",value:function(t){return t instanceof e?t:e.fromString(t)}}])}(),Ie=function(){function e(t){p(this,e),this.name=t.name,this.available=t.available}return u(e,[{key:"toString",value:function(){return this.name}},{key:"serialize",value:function(){return["image",this.name]}}],[{key:"fromString",value:function(t){return t?new e({name:t,available:!1}):null}}])}();function be(e,t,o,n){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof o&&o>=0&&o<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value [".concat([e,t,o,n].join(", "),"]: 'a' must be between 0 and 1."):"Invalid rgba value [".concat(("number"==typeof n?[e,t,o,n]:[e,t,o]).join(", "),"]: 'r', 'g', and 'b' must be between 0 and 255.")}function we(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof ye)return!0;if(e instanceof Ae)return!0;if(e instanceof Ce)return!0;if(e instanceof Ie)return!0;if(Array.isArray(e)){var t,o=v(e);try{for(o.s();!(t=o.n()).done;){if(!we(t.value))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}if("object"===b(e)){for(var n in e)if(!we(e[n]))return!1;return!0}return!1}function _e(e){if(null===e)return ee;if("string"==typeof e)return oe;if("boolean"==typeof e)return ne;if("number"==typeof e)return te;if(e instanceof ye)return ie;if(e instanceof Ae)return se;if(e instanceof Ce)return le;if(e instanceof Ie)return ce;if(Array.isArray(e)){var t,o,n=e.length,i=v(e);try{for(i.s();!(o=i.n()).done;){var r=_e(o.value);if(t){if(t===r)continue;t=ae;break}t=r}}catch(e){i.e(e)}finally{i.f()}return ue(t||ae,n)}return re}function Ee(e){var t=b(e);return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof ye||e instanceof Ce||e instanceof Ie?e.toString():JSON.stringify(e)}var Se=function(){function e(t,o){p(this,e),this.type=t,this.value=o}return u(e,[{key:"evaluate",value:function(){return this.value}},{key:"eachChild",value:function(){}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof ye?["rgba"].concat(this.value.toArray()):this.value instanceof Ce?this.value.serialize():this.value}}],[{key:"parse",value:function(t,o){if(2!==t.length)return o.error("'literal' expression requires exactly one argument, but found ".concat(t.length-1," instead."));if(!we(t[1]))return o.error("invalid value");var n=t[1],i=_e(n),r=o.expectedType;return"array"!==i.kind||0!==i.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(i=r),new e(i,n)}}])}(),Me=function(){return u((function e(t){p(this,e),this.name="ExpressionEvaluationError",this.message=t}),[{key:"toJSON",value:function(){return this.message}}])}(),Pe={string:oe,number:te,boolean:ne,object:re},xe=function(){function e(t,o){p(this,e),this.type=t,this.args=o}return u(e,[{key:"evaluate",value:function(e){for(var t=0;t1)&&t.push(n)}}return t.concat(this.args.map((function(e){return e.serialize()})))}}],[{key:"parse",value:function(t,o){if(t.length<2)return o.error("Expected at least one argument.");var n,i=1,r=t[0];if("array"===r){var a,s;if(t.length>2){var l=t[1];if("string"!=typeof l||!(l in Pe)||"object"===l)return o.error('The item type argument of "array" must be one of string, number, boolean',1);a=Pe[l],i++}else a=ae;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return o.error('The length argument to "array" must be a positive integer literal',2);s=t[2],i++}n=ue(a,s)}else n=Pe[r];for(var c=[];i-1),o}},{key:"eachChild",value:function(e){e(this.input)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return["image",this.input.serialize()]}}],[{key:"parse",value:function(t,o){if(2!==t.length)return o.error("Expected two arguments.");var n=o.parse(t[1],1,oe);return n?new e(n):o.error("No image name provided.")}}])}(),Re={"to-boolean":ne,"to-color":ie,"to-number":te,"to-string":oe},Te=function(){function e(t,o){p(this,e),this.type=t,this.args=o}return u(e,[{key:"evaluate",value:function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){var t,o,n,i=v(this.args);try{for(i.s();!(n=i.n()).done;){if(t=n.value.evaluate(e),o=null,t instanceof ye)return t;if("string"==typeof t){var r=e.parseColor(t);if(r)return r}else if(Array.isArray(t)&&!(o=t.length<3||t.length>4?"Invalid rbga value ".concat(JSON.stringify(t),": expected an array containing either three or four numeric values."):be(t[0],t[1],t[2],t[3])))return new ye(t[0]/255,t[1]/255,t[2]/255,t[3])}}catch(e){i.e(e)}finally{i.f()}throw new Me(o||"Could not parse color from value '".concat("string"==typeof t?t:String(JSON.stringify(t)),"'"))}if("number"===this.type.kind){var a,s=null,l=v(this.args);try{for(l.s();!(a=l.n()).done;){if(null===(s=a.value.evaluate(e)))return 0;var c=Number(s);if(!isNaN(c))return c}}catch(e){l.e(e)}finally{l.f()}throw new Me("Could not convert ".concat(JSON.stringify(s)," to number."))}return"formatted"===this.type.kind?Ce.fromString(Ee(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Ie.fromString(Ee(this.args[0].evaluate(e))):Ee(this.args[0].evaluate(e))}},{key:"eachChild",value:function(e){this.args.forEach(e)}},{key:"outputDefined",value:function(){return this.args.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){if("formatted"===this.type.kind)return new ke([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Ge(this.args[0]).serialize();var e=["to-".concat(this.type.kind)];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,o){if(t.length<2)return o.error("Expected at least one argument.");var n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return o.error("Expected one argument.");for(var i=Re[n],r=[],a=1;a=t[2])&&(!(e[1]<=t[1])&&!(e[3]>=t[3])))}function Be(e,t){var o,n=(180+e[0])/360,i=(o=e[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+o*Math.PI/360)))/360),r=Math.pow(2,t.z);return[Math.round(n*r*8192),Math.round(i*r*8192)]}function Fe(e,t,o){return t[1]>e[1]!=o[1]>e[1]&&e[0]<(o[0]-t[0])*(e[1]-t[1])/(o[1]-t[1])+t[0]}function ze(e,t){for(var o,n,i,r,a,s,l,c=!1,u=0,d=t.length;u0&&d<0||u<0&&d>0}function qe(e,t,o){var n,i,r,a,s,l,c,u,d,p=v(o);try{for(p.s();!(n=p.n()).done;)for(var h=n.value,g=0;go[2]){var i=.5*n,r=e[0]-o[0]>i?-n:o[0]-e[0]>i?n:0;0===r&&(r=e[0]-o[2]>i?-n:o[2]-e[0]>i?n:0),e[0]+=r}Ue(t,e)}function Xe(e,t,o,n){var i,r=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],s=[],l=v(e);try{for(l.s();!(i=l.n()).done;){var c,u=v(i.value);try{for(u.s();!(c=u.n()).done;){var d=c.value,p=[d.x+a[0],d.y+a[1]];Ke(p,t,o,r),s.push(p)}}catch(e){u.e(e)}finally{u.f()}}}catch(e){l.e(e)}finally{l.f()}return s}function Qe(e,t,o,n){var i,r,a=8192*Math.pow(2,n.z),s=[8192*n.x,8192*n.y],l=[],c=v(e);try{for(c.s();!(i=c.n()).done;){var u,d=i.value,p=[],h=v(d);try{for(h.s();!(u=h.n()).done;){var g=u.value,m=[g.x+s[0],g.y+s[1]];Ue(t,m),p.push(m)}}catch(e){h.e(e)}finally{h.f()}l.push(p)}}catch(e){c.e(e)}finally{c.f()}if(t[2]-t[0]<=a/2){(r=t)[0]=r[1]=1/0,r[2]=r[3]=-1/0;var f,y=v(l);try{for(y.s();!(f=y.n()).done;){var A,C=v(f.value);try{for(C.s();!(A=C.n()).done;){Ke(A.value,t,o,a)}}catch(e){C.e(e)}finally{C.f()}}}catch(e){y.e(e)}finally{y.f()}}return l}var $e=function(){function e(t,o){p(this,e),this.type=ne,this.geojson=t,this.geometries=o}return u(e,[{key:"evaluate",value:function(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){var o=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if("Polygon"===t.type){var r=Je(t.coordinates,n,i),a=Xe(e.geometry(),o,n,i);if(!Ne(o,n))return!1;var s,l=v(a);try{for(l.s();!(s=l.n()).done;){if(!ze(s.value,r))return!1}}catch(e){l.e(e)}finally{l.f()}}if("MultiPolygon"===t.type){var c=Ze(t.coordinates,n,i),u=Xe(e.geometry(),o,n,i);if(!Ne(o,n))return!1;var d,p=v(u);try{for(p.s();!(d=p.n()).done;){if(!Ve(d.value,c))return!1}}catch(e){p.e(e)}finally{p.f()}}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){var o=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if("Polygon"===t.type){var r=Je(t.coordinates,n,i),a=Qe(e.geometry(),o,n,i);if(!Ne(o,n))return!1;var s,l=v(a);try{for(l.s();!(s=l.n()).done;){if(!He(s.value,r))return!1}}catch(e){l.e(e)}finally{l.f()}}if("MultiPolygon"===t.type){var c=Ze(t.coordinates,n,i),u=Qe(e.geometry(),o,n,i);if(!Ne(o,n))return!1;var d,p=v(u);try{for(p.s();!(d=p.n()).done;){if(!Ye(d.value,c))return!1}}catch(e){p.e(e)}finally{p.f()}}return!0}(e,this.geometries)}return!1}},{key:"eachChild",value:function(){}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){return["within",this.geojson]}}],[{key:"parse",value:function(t,o){if(2!==t.length)return o.error("'within' expression requires exactly one argument, but found ".concat(t.length-1," instead."));if(we(t[1])){var n=t[1];if("FeatureCollection"===n.type)for(var i=0;i=0)return!1;var o=!0;return e.eachChild((function(e){o&&!ot(e,t)&&(o=!1)})),o}var nt=function(){function e(t,o){p(this,e),this.type=o.type,this.name=t,this.boundExpression=o}return u(e,[{key:"evaluate",value:function(e){return this.boundExpression.evaluate(e)}},{key:"eachChild",value:function(){}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return["var",this.name]}}],[{key:"parse",value:function(t,o){if(2!==t.length||"string"!=typeof t[1])return o.error("'var' expression requires exactly one string literal argument.");var n=t[1];return o.scope.has(n)?new e(n,o.scope.get(n)):o.error('Unknown variable "'.concat(n,'". Make sure "').concat(n,'" has been bound in an enclosing "let" expression before using it.'),1)}}])}(),it=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new $,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];p(this,e),this.registry=t,this.path=o,this.key=o.map((function(e){return"[".concat(e,"]")})).join(""),this.scope=i,this.errors=r,this.expectedType=n}return u(e,[{key:"parse",value:function(e,t,o,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return t?this.concat(t,o,n)._parse(e,i):this._parse(e,i)}},{key:"_parse",value:function(e,t){function o(e,t,o){return"assert"===o?new xe(t,[e]):"coerce"===o?new Te(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var n=e[0];if("string"!=typeof n)return this.error("Expression name must be a string, but found ".concat(b(n),' instead. If you wanted a literal array, use ["literal", [...]].'),0),null;var i=this.registry[n];if(i){var r=i.parse(e,this);if(!r)return null;if(this.expectedType){var a=this.expectedType,s=r.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else r=o(r,a,t.typeAnnotation||"coerce");else r=o(r,a,t.typeAnnotation||"assert")}if(!(r instanceof Se)&&"resolvedImage"!==r.type.kind&&function e(t){if(t instanceof nt)return e(t.boundExpression);if(t instanceof De&&"error"===t.name)return!1;if(t instanceof je)return!1;if(t instanceof $e)return!1;var o=t instanceof Te||t instanceof xe,n=!0;if(t.eachChild((function(t){n=o?n&&e(t):n&&t instanceof Se})),!n)return!1;return et(t)&&ot(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script"])}(r)){var l=new Le;try{r=new Se(r.type,r.evaluate(l))}catch(e){return this.error(e.message),null}}return r}return this.error('Unknown expression "'.concat(n,'". If you wanted a literal array, use ["literal", [...]].'),0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"===b(e)?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found ".concat(b(e)," instead."))}},{key:"concat",value:function(t,o,n){var i="number"==typeof t?this.path.concat(t):this.path,r=n?this.scope.concat(n):this.scope;return new e(this.registry,i,o||null,r,this.errors)}},{key:"error",value:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;nt))throw new Me("Input is not a number.");a=s-1}return 0}var at=function(){function e(t,o,n){p(this,e),this.type=t,this.input=o,this.labels=[],this.outputs=[];var i,r=v(n);try{for(r.s();!(i=r.n()).done;){var s=a(i.value,2),l=s[0],c=s[1];this.labels.push(l),this.outputs.push(c)}}catch(e){r.e(e)}finally{r.f()}}return u(e,[{key:"evaluate",value:function(e){var t=this.labels,o=this.outputs;if(1===t.length)return o[0].evaluate(e);var n=this.input.evaluate(e);if(n<=t[0])return o[0].evaluate(e);var i=t.length;return n>=t[i-1]?o[i-1].evaluate(e):o[rt(t,n)].evaluate(e)}},{key:"eachChild",value:function(e){e(this.input);var t,o=v(this.outputs);try{for(o.s();!(t=o.n()).done;){e(t.value)}}catch(e){o.e(e)}finally{o.f()}}},{key:"outputDefined",value:function(){return this.outputs.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){for(var e=["step",this.input.serialize()],t=0;t0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}],[{key:"parse",value:function(t,o){if(t.length-1<4)return o.error("Expected at least 4 arguments, but found only ".concat(t.length-1,"."));if((t.length-1)%2!=0)return o.error("Expected an even number of arguments.");var n=o.parse(t[1],1,te);if(!n)return null;var i=[],r=null;o.expectedType&&"value"!==o.expectedType.kind&&(r=o.expectedType);for(var a=1;a=s)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',c);var d=o.parse(l,u,r);if(!d)return null;r=r||d.type,i.push([s,d])}return new e(r,n,i)}}])}(),st=lt;function lt(e,t,o,n){this.cx=3*e,this.bx=3*(o-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=n,this.p2x=o,this.p2y=n}function ct(e,t,o){return e*(1-o)+t*o}lt.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},lt.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},lt.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},lt.prototype.solveCurveX=function(e,t){var o,n,i,r,a;for(void 0===t&&(t=1e-6),i=e,a=0;a<8;a++){if(r=this.sampleCurveX(i)-e,Math.abs(r)(n=1))return n;for(;or?o=i:n=i,i=.5*(n-o)+o}return i},lt.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var ut=Object.freeze({__proto__:null,number:ct,color:function(e,t,o){return new ye(ct(e.r,t.r,o),ct(e.g,t.g,o),ct(e.b,t.b,o),ct(e.a,t.a,o))},array:function(e,t,o){return e.map((function(e,n){return ct(e,t[n],o)}))}}),dt=6/29,pt=3*dt*dt,ht=Math.PI/180,gt=180/Math.PI;function mt(e){return e>.008856451679035631?Math.pow(e,1/3):e/pt+4/29}function ft(e){return e>dt?e*e*e:pt*(e-4/29)}function yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function At(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vt(e){var t=At(e.r),o=At(e.g),n=At(e.b),i=mt((.4124564*t+.3575761*o+.1804375*n)/.95047),r=mt((.2126729*t+.7151522*o+.072175*n)/1);return{l:116*r-16,a:500*(i-r),b:200*(r-mt((.0193339*t+.119192*o+.9503041*n)/1.08883)),alpha:e.a}}function Ct(e){var t=(e.l+16)/116,o=isNaN(e.a)?t:t+e.a/500,n=isNaN(e.b)?t:t-e.b/200;return t=1*ft(t),o=.95047*ft(o),n=1.08883*ft(n),new ye(yt(3.2404542*o-1.5371385*t-.4985314*n),yt(-.969266*o+1.8760108*t+.041556*n),yt(.0556434*o-.2040259*t+1.0572252*n),e.alpha)}function It(e,t,o){var n=t-e;return e+o*(n>180||n<-180?n-360*Math.round(n/360):n)}var bt={forward:vt,reverse:Ct,interpolate:function(e,t,o){return{l:ct(e.l,t.l,o),a:ct(e.a,t.a,o),b:ct(e.b,t.b,o),alpha:ct(e.alpha,t.alpha,o)}}},wt={forward:function(e){var t=vt(e),o=t.l,n=t.a,i=t.b,r=Math.atan2(i,n)*gt;return{h:r<0?r+360:r,c:Math.sqrt(n*n+i*i),l:o,alpha:e.a}},reverse:function(e){var t=e.h*ht,o=e.c;return Ct({l:e.l,a:Math.cos(t)*o,b:Math.sin(t)*o,alpha:e.alpha})},interpolate:function(e,t,o){return{h:It(e.h,t.h,o),c:ct(e.c,t.c,o),l:ct(e.l,t.l,o),alpha:ct(e.alpha,t.alpha,o)}}},_t=Object.freeze({__proto__:null,lab:bt,hcl:wt}),Et=function(){function e(t,o,n,i,r){p(this,e),this.type=t,this.operator=o,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];var s,l=v(r);try{for(l.s();!(s=l.n()).done;){var c=a(s.value,2),u=c[0],d=c[1];this.labels.push(u),this.outputs.push(d)}}catch(e){l.e(e)}finally{l.f()}}return u(e,[{key:"evaluate",value:function(t){var o=this.labels,n=this.outputs;if(1===o.length)return n[0].evaluate(t);var i=this.input.evaluate(t);if(i<=o[0])return n[0].evaluate(t);var r=o.length;if(i>=o[r-1])return n[r-1].evaluate(t);var a=rt(o,i),s=o[a],l=o[a+1],c=e.interpolationFactor(this.interpolation,i,s,l),u=n[a].evaluate(t),d=n[a+1].evaluate(t);return"interpolate"===this.operator?ut[this.type.kind.toLowerCase()](u,d,c):"interpolate-hcl"===this.operator?wt.reverse(wt.interpolate(wt.forward(u),wt.forward(d),c)):bt.reverse(bt.interpolate(bt.forward(u),bt.forward(d),c))}},{key:"eachChild",value:function(e){e(this.input);var t,o=v(this.outputs);try{for(o.s();!(t=o.n()).done;){e(t.value)}}catch(e){o.e(e)}finally{o.f()}}},{key:"outputDefined",value:function(){return this.outputs.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){var e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var t=[this.operator,e,this.input.serialize()],o=0;o1})))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);c={name:"cubic-bezier",controlPoints:h}}if(t.length-1<4)return o.error("Expected at least 4 arguments, but found only ".concat(t.length-1,"."));if((t.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(!(u=o.parse(u,2,te)))return null;var g=[],m=null;"interpolate-hcl"===a||"interpolate-lab"===a?m=ie:o.expectedType&&"value"!==o.expectedType.kind&&(m=o.expectedType);for(var f=0;f=y)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',v);var b=o.parse(A,I,m);if(!b)return null;m=m||b.type,g.push([y,b])}return"number"===m.kind||"color"===m.kind||"array"===m.kind&&"number"===m.itemType.kind&&"number"==typeof m.N?new e(m,a,c,u,g):o.error("Type ".concat(de(m)," is not interpolatable."))}}])}();function St(e,t,o,n){var i=n-o,r=e-o;return 0===i?0:1===t?r/i:(Math.pow(t,r)-1)/(Math.pow(t,i)-1)}var Mt=function(){function e(t,o){p(this,e),this.type=t,this.args=o}return u(e,[{key:"evaluate",value:function(e){var t,o,n=null,i=0,r=v(this.args);try{for(r.s();!(o=r.n()).done;){var a=o.value;if(i++,(n=a.evaluate(e))&&n instanceof Ie&&!n.available&&(t||(t=n.name),n=null,i===this.args.length&&(n=t)),null!==n)break}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"eachChild",value:function(e){this.args.forEach(e)}},{key:"outputDefined",value:function(){return this.args.every((function(e){return e.outputDefined()}))}},{key:"serialize",value:function(){var e=["coalesce"];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,o){if(t.length<2)return o.error("Expectected at least one argument.");var n=null,i=o.expectedType;i&&"value"!==i.kind&&(n=i);var r,a=[],s=v(t.slice(1));try{for(s.s();!(r=s.n()).done;){var l=r.value,c=o.parse(l,1+a.length,n,void 0,{typeAnnotation:"omit"});if(!c)return null;n=n||c.type,a.push(c)}}catch(e){s.e(e)}finally{s.f()}return new e(i&&a.some((function(e){return he(i,e.type)}))?ae:n,a)}}])}(),Pt=function(){function e(t,o){p(this,e),this.type=o.type,this.bindings=[].concat(t),this.result=o}return u(e,[{key:"evaluate",value:function(e){return this.result.evaluate(e)}},{key:"eachChild",value:function(e){var t,o=v(this.bindings);try{for(o.s();!(t=o.n()).done;){e(t.value[1])}}catch(e){o.e(e)}finally{o.f()}e(this.result)}},{key:"outputDefined",value:function(){return this.result.outputDefined()}},{key:"serialize",value:function(){var e,t=["let"],o=v(this.bindings);try{for(o.s();!(e=o.n()).done;){var n=a(e.value,2),i=n[0],r=n[1];t.push(i,r.serialize())}}catch(e){o.e(e)}finally{o.f()}return t.push(this.result.serialize()),t}}],[{key:"parse",value:function(t,o){if(t.length<4)return o.error("Expected at least 3 arguments, but found ".concat(t.length-1," instead."));for(var n=[],i=1;i=o.length)throw new Me("Array index out of bounds: ".concat(t," > ").concat(o.length-1,"."));if(t!==Math.floor(t))throw new Me("Array index must be an integer, but found ".concat(t," instead."));return o[t]}},{key:"eachChild",value:function(e){e(this.index),e(this.input)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){return["at",this.index.serialize(),this.input.serialize()]}}],[{key:"parse",value:function(t,o){if(3!==t.length)return o.error("Expected 2 arguments, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1,te),i=o.parse(t[2],2,ue(o.expectedType||ae));return n&&i?new e(i.type.itemType,n,i):null}}])}(),kt=function(){function e(t,o){p(this,e),this.type=ne,this.needle=t,this.haystack=o}return u(e,[{key:"evaluate",value:function(e){var t=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!o)return!1;if(!me(t,["boolean","string","number","null"]))throw new Me("Expected first argument to be of type boolean, string, number or null, but found ".concat(de(_e(t))," instead."));if(!me(o,["string","array"]))throw new Me("Expected second argument to be of type array or string, but found ".concat(de(_e(o))," instead."));return o.indexOf(t)>=0}},{key:"eachChild",value:function(e){e(this.needle),e(this.haystack)}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){return["in",this.needle.serialize(),this.haystack.serialize()]}}],[{key:"parse",value:function(t,o){if(3!==t.length)return o.error("Expected 2 arguments, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1,ae),i=o.parse(t[2],2,ae);return n&&i?ge(n.type,[ne,oe,te,ee,ae])?new e(n,i):o.error("Expected first argument to be of type boolean, string, number or null, but found ".concat(de(n.type)," instead")):null}}])}(),Gt=function(){function e(t,o,n){p(this,e),this.type=te,this.needle=t,this.haystack=o,this.fromIndex=n}return u(e,[{key:"evaluate",value:function(e){var t=this.needle.evaluate(e),o=this.haystack.evaluate(e);if(!me(t,["boolean","string","number","null"]))throw new Me("Expected first argument to be of type boolean, string, number or null, but found ".concat(de(_e(t))," instead."));if(!me(o,["string","array"]))throw new Me("Expected second argument to be of type array or string, but found ".concat(de(_e(o))," instead."));if(this.fromIndex){var n=this.fromIndex.evaluate(e);return o.indexOf(t,n)}return o.indexOf(t)}},{key:"eachChild",value:function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}],[{key:"parse",value:function(t,o){if(t.length<=2||t.length>=5)return o.error("Expected 3 or 4 arguments, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1,ae),i=o.parse(t[2],2,ae);if(!n||!i)return null;if(!ge(n.type,[ne,oe,te,ee,ae]))return o.error("Expected first argument to be of type boolean, string, number or null, but found ".concat(de(n.type)," instead"));if(4===t.length){var r=o.parse(t[3],3,te);return r?new e(n,i,r):null}return new e(n,i)}}])}(),Rt=function(){function e(t,o,n,i,r,a){p(this,e),this.inputType=t,this.type=o,this.input=n,this.cases=i,this.outputs=r,this.otherwise=a}return u(e,[{key:"evaluate",value:function(e){var t=this.input.evaluate(e);return(_e(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}},{key:"eachChild",value:function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}},{key:"outputDefined",value:function(){return this.outputs.every((function(e){return e.outputDefined()}))&&this.otherwise.outputDefined()}},{key:"serialize",value:function(){var e,t=this,o=["match",this.input.serialize()],n=[],i={},r=v(Object.keys(this.cases).sort());try{for(r.s();!(e=r.n()).done;){var s=e.value,l=i[this.cases[s]];void 0===l?(i[this.cases[s]]=n.length,n.push([this.cases[s],[s]])):n[l][1].push(s)}}catch(e){r.e(e)}finally{r.f()}for(var c=function(e){return"number"===t.inputType.kind?Number(e):e},u=0,d=n;uNumber.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than ".concat(Number.MAX_SAFE_INTEGER,"."));if("number"==typeof h&&Math.floor(h)!==h)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,_e(h)))return null}else n=_e(h);if(void 0!==r[String(h)])return u.error("Branch labels must be unique.");r[String(h)]=a.length}}catch(e){p.e(e)}finally{p.f()}var g=o.parse(c,s,i);if(!g)return null;i=i||g.type,a.push(g)}var m=o.parse(t[1],1,ae);if(!m)return null;var f=o.parse(t[t.length-1],t.length-1,i);return f?"value"!==m.type.kind&&o.concat(1).checkSubtype(n,m.type)?null:new e(n,i,m,r,a,f):null}}])}(),Tt=function(){function e(t,o,n){p(this,e),this.type=t,this.branches=o,this.otherwise=n}return u(e,[{key:"evaluate",value:function(e){var t,o=v(this.branches);try{for(o.s();!(t=o.n()).done;){var n=a(t.value,2),i=n[0],r=n[1];if(i.evaluate(e))return r.evaluate(e)}}catch(e){o.e(e)}finally{o.f()}return this.otherwise.evaluate(e)}},{key:"eachChild",value:function(e){var t,o=v(this.branches);try{for(o.s();!(t=o.n()).done;){var n=a(t.value,2),i=n[0],r=n[1];e(i),e(r)}}catch(e){o.e(e)}finally{o.f()}e(this.otherwise)}},{key:"outputDefined",value:function(){return this.branches.every((function(e){var t=a(e,2);t[0];return t[1].outputDefined()}))&&this.otherwise.outputDefined()}},{key:"serialize",value:function(){var e=["case"];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,o){if(t.length<4)return o.error("Expected at least 3 arguments, but found only ".concat(t.length-1,"."));if(t.length%2!=0)return o.error("Expected an odd number of arguments.");var n;o.expectedType&&"value"!==o.expectedType.kind&&(n=o.expectedType);for(var i=[],r=1;r=5)return o.error("Expected 3 or 4 arguments, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1,ae),i=o.parse(t[2],2,te);if(!n||!i)return null;if(!ge(n.type,[ue(ae),oe,ae]))return o.error("Expected first argument to be of type array or string, but found ".concat(de(n.type)," instead"));if(4===t.length){var r=o.parse(t[3],3,te);return r?new e(n.type,n,i,r):null}return new e(n.type,n,i)}}])}();function Lt(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Dt(e,t,o,n){return 0===n.compare(t,o)}function jt(e,t,o){var n="=="!==e&&"!="!==e;return function(){function i(e,t,o){p(this,i),this.type=ne,this.lhs=e,this.rhs=t,this.collator=o,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return u(i,[{key:"evaluate",value:function(i){var r=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){var s=_e(r),l=_e(a);if(s.kind!==l.kind||"string"!==s.kind&&"number"!==s.kind)throw new Me('Expected arguments for "'.concat(e,'" to be (string, string) or (number, number), but found (').concat(s.kind,", ").concat(l.kind,") instead."))}if(this.collator&&!n&&this.hasUntypedArgument){var c=_e(r),u=_e(a);if("string"!==c.kind||"string"!==u.kind)return t(i,r,a)}return this.collator?o(i,r,a,this.collator.evaluate(i)):t(i,r,a)}},{key:"eachChild",value:function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}},{key:"outputDefined",value:function(){return!0}},{key:"serialize",value:function(){var t=[e];return this.eachChild((function(e){t.push(e.serialize())})),t}}],[{key:"parse",value:function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var o=e[0],r=t.parse(e[1],1,ae);if(!r)return null;if(!Lt(o,r.type))return t.concat(1).error('"'.concat(o,"\" comparisons are not supported for type '").concat(de(r.type),"'."));var a=t.parse(e[2],2,ae);if(!a)return null;if(!Lt(o,a.type))return t.concat(2).error('"'.concat(o,"\" comparisons are not supported for type '").concat(de(a.type),"'."));if(r.type.kind!==a.type.kind&&"value"!==r.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '".concat(de(r.type),"' and '").concat(de(a.type),"'."));n&&("value"===r.type.kind&&"value"!==a.type.kind?r=new xe(a.type,[r]):"value"!==r.type.kind&&"value"===a.type.kind&&(a=new xe(r.type,[a])));var s=null;if(4===e.length){if("string"!==r.type.kind&&"string"!==a.type.kind&&"value"!==r.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(s=t.parse(e[3],3,se)))return null}return new i(r,a,s)}}])}()}var Ut=jt("==",(function(e,t,o){return t===o}),Dt),Nt=jt("!=",(function(e,t,o){return t!==o}),(function(e,t,o,n){return!Dt(0,t,o,n)})),Bt=jt("<",(function(e,t,o){return t",(function(e,t,o){return t>o}),(function(e,t,o,n){return n.compare(t,o)>0})),zt=jt("<=",(function(e,t,o){return t<=o}),(function(e,t,o,n){return n.compare(t,o)<=0})),Vt=jt(">=",(function(e,t,o){return t>=o}),(function(e,t,o,n){return n.compare(t,o)>=0})),Wt=function(){function e(t,o,n,i,r){p(this,e),this.type=oe,this.number=t,this.locale=o,this.currency=n,this.minFractionDigits=i,this.maxFractionDigits=r}return u(e,[{key:"evaluate",value:function(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}},{key:"eachChild",value:function(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){var e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}],[{key:"parse",value:function(t,o){if(3!==t.length)return o.error("Expected two arguments.");var n=o.parse(t[1],1,te);if(!n)return null;var i=t[2];if("object"!==b(i)||Array.isArray(i))return o.error("NumberFormat options argument must be an object.");var r=null;if(i.locale&&!(r=o.parse(i.locale,1,oe)))return null;var a=null;if(i.currency&&!(a=o.parse(i.currency,1,oe)))return null;var s=null;if(i["min-fraction-digits"]&&!(s=o.parse(i["min-fraction-digits"],1,te)))return null;var l=null;return i["max-fraction-digits"]&&!(l=o.parse(i["max-fraction-digits"],1,te))?null:new e(n,r,a,s,l)}}])}(),qt={"==":Ut,"!=":Nt,">":Ft,"<":Bt,">=":Vt,"<=":zt,array:xe,at:xt,boolean:xe,case:Tt,coalesce:Mt,collator:je,format:ke,image:Ge,in:kt,"index-of":Gt,interpolate:Et,"interpolate-hcl":Et,"interpolate-lab":Et,length:function(){function e(t){p(this,e),this.type=te,this.input=t}return u(e,[{key:"evaluate",value:function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new Me("Expected value to be of type string or array, but found ".concat(de(_e(t))," instead."))}},{key:"eachChild",value:function(e){e(this.input)}},{key:"outputDefined",value:function(){return!1}},{key:"serialize",value:function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e}}],[{key:"parse",value:function(t,o){if(2!==t.length)return o.error("Expected 1 argument, but found ".concat(t.length-1," instead."));var n=o.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?o.error("Expected argument of type string or array, but found ".concat(de(n.type)," instead.")):new e(n):null}}])}(),let:Pt,literal:Se,match:Rt,number:xe,"number-format":Wt,object:xe,slice:Ot,step:at,string:xe,"to-boolean":Te,"to-color":Te,"to-number":Te,"to-string":Te,var:nt,within:$e};function Ht(e,t){var o=a(t,4),n=o[0],i=o[1],r=o[2],s=o[3];n=n.evaluate(e),i=i.evaluate(e),r=r.evaluate(e);var l=s?s.evaluate(e):1,c=be(n,i,r,l);if(c)throw new Me(c);return new ye(n/255*l,i/255*l,r/255*l,l)}function Yt(e,t){return e in t}function Jt(e,t){var o=t[e];return void 0===o?null:o}function Zt(e){return{type:e}}function Kt(e){return{result:"success",value:e}}function Xt(e){return{result:"error",value:e}}function Qt(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function $t(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function eo(e){return!!e.expression&&e.expression.interpolated}function to(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":b(e)}function oo(e){return"object"===b(e)&&null!==e&&!Array.isArray(e)}function no(e){return e}function io(e,t){var o,n,i,r="color"===t.type,a=e.stops&&"object"===b(e.stops[0][0]),s=a||void 0!==e.property,l=a||!s,c=e.type||(eo(t)?"exponential":"interval");if(r&&((e=X({},e)).stops&&(e.stops=e.stops.map((function(e){return[e[0],ye.parse(e[1])]}))),e.default?e.default=ye.parse(e.default):e.default=ye.parse(t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!_t[e.colorSpace])throw new Error("Unknown color space: ".concat(e.colorSpace));if("exponential"===c)o=lo;else if("interval"===c)o=so;else if("categorical"===c){o=ao,n=Object.create(null);var u,d=v(e.stops);try{for(d.s();!(u=d.n()).done;){var p=u.value;n[p[0]]=p[1]}}catch(e){d.e(e)}finally{d.f()}i=b(e.stops[0][0])}else{if("identity"!==c)throw new Error('Unknown function type "'.concat(c,'"'));o=co}if(a){for(var h={},g=[],m=0;m=e.stops[n-1][0])return e.stops[n-1][1];var i=rt(e.stops.map((function(e){return e[0]})),o);return e.stops[i][1]}function lo(e,t,o){var n=void 0!==e.base?e.base:1;if("number"!==to(o))return ro(e.default,t.default);var i=e.stops.length;if(1===i)return e.stops[0][1];if(o<=e.stops[0][0])return e.stops[0][1];if(o>=e.stops[i-1][0])return e.stops[i-1][1];var r=rt(e.stops.map((function(e){return e[0]})),o),a=function(e,t,o,n){var i=n-o,r=e-o;return 0===i?0:1===t?r/i:(Math.pow(t,r)-1)/(Math.pow(t,i)-1)}(o,n,e.stops[r][0],e.stops[r+1][0]),s=e.stops[r][1],l=e.stops[r+1][1],c=ut[t.type]||no;if(e.colorSpace&&"rgb"!==e.colorSpace){var u=_t[e.colorSpace];c=function(e,t){return u.reverse(u.interpolate(u.forward(e),u.forward(t),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var e=arguments.length,t=new Array(e),o=0;o":[ne,[oe,ae],function(e,t){var o=a(t,2),n=o[0],i=o[1],r=e.properties()[n.value],s=i.value;return b(r)===b(s)&&r>s}],"filter-id->":[ne,[ae],function(e,t){var o=a(t,1)[0],n=e.id(),i=o.value;return b(n)===b(i)&&n>i}],"filter-<=":[ne,[oe,ae],function(e,t){var o=a(t,2),n=o[0],i=o[1],r=e.properties()[n.value],s=i.value;return b(r)===b(s)&&r<=s}],"filter-id-<=":[ne,[ae],function(e,t){var o=a(t,1)[0],n=e.id(),i=o.value;return b(n)===b(i)&&n<=i}],"filter->=":[ne,[oe,ae],function(e,t){var o=a(t,2),n=o[0],i=o[1],r=e.properties()[n.value],s=i.value;return b(r)===b(s)&&r>=s}],"filter-id->=":[ne,[ae],function(e,t){var o=a(t,1)[0],n=e.id(),i=o.value;return b(n)===b(i)&&n>=i}],"filter-has":[ne,[ae],function(e,t){return a(t,1)[0].value in e.properties()}],"filter-has-id":[ne,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[ne,[ue(oe)],function(e,t){return a(t,1)[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[ne,[ue(ae)],function(e,t){return a(t,1)[0].value.indexOf(e.id())>=0}],"filter-in-small":[ne,[oe,ue(ae)],function(e,t){var o=a(t,2),n=o[0];return o[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[ne,[oe,ue(ae)],function(e,t){var o=a(t,2),n=o[0],i=o[1];return function(e,t,o,n){for(;o<=n;){var i=o+n>>1;if(t[i]===e)return!0;t[i]>e?n=i-1:o=i+1}return!1}(e.properties()[n.value],i.value,0,i.value.length-1)}],all:{type:ne,overloads:[[[ne,ne],function(e,t){var o=a(t,2),n=o[0],i=o[1];return n.evaluate(e)&&i.evaluate(e)}],[Zt(ne),function(e,t){var o,n=v(t);try{for(n.s();!(o=n.n()).done;){if(!o.value.evaluate(e))return!1}}catch(e){n.e(e)}finally{n.f()}return!0}]]},any:{type:ne,overloads:[[[ne,ne],function(e,t){var o=a(t,2),n=o[0],i=o[1];return n.evaluate(e)||i.evaluate(e)}],[Zt(ne),function(e,t){var o,n=v(t);try{for(n.s();!(o=n.n()).done;){if(o.value.evaluate(e))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}]]},"!":[ne,[ne],function(e,t){return!a(t,1)[0].evaluate(e)}],"is-supported-script":[ne,[oe],function(e,t){var o=a(t,1)[0],n=e.globals&&e.globals.isSupportedScript;return!n||n(o.evaluate(e))}],upcase:[oe,[oe],function(e,t){return a(t,1)[0].evaluate(e).toUpperCase()}],downcase:[oe,[oe],function(e,t){return a(t,1)[0].evaluate(e).toLowerCase()}],concat:[oe,Zt(ae),function(e,t){return t.map((function(t){return Ee(t.evaluate(e))})).join("")}],"resolved-locale":[oe,[se],function(e,t){return a(t,1)[0].evaluate(e).resolvedLocale()}]});var uo=function(){return u((function e(t,o){var n;p(this,e),this.expression=t,this._warningHistory={},this._evaluator=new Le,this._defaultValue=o?"color"===(n=o).type&&oo(n.default)?new ye(0,0,0,0):"color"===n.type?ye.parse(n.default)||null:void 0===n.default?null:n.default:null,this._enumValues=o&&"enum"===o.type?o.values:null}),[{key:"evaluateWithoutErrorHandling",value:function(e,t,o,n,i,r){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=o,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=r,this.expression.evaluate(this._evaluator)}},{key:"evaluate",value:function(e,t,o,n,i,r){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=o||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=r||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new Me("Expected value to be one of ".concat(Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", "),", but found ").concat(JSON.stringify(a)," instead."));return a}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}])}();function po(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in qt}function ho(e,t){var o=new it(qt,[],t?function(e){var t={color:ie,string:oe,number:te,enum:oe,boolean:ne,formatted:le,resolvedImage:ce};if("array"===e.type)return ue(t[e.value]||ae,e.length);return t[e.type]}(t):void 0),n=o.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return n?Kt(new uo(n,t)):Xt(o.errors)}var go=function(){return u((function e(t,o){p(this,e),this.kind=t,this._styleExpression=o,this.isStateDependent="constant"!==t&&!tt(o.expression)}),[{key:"evaluateWithoutErrorHandling",value:function(e,t,o,n,i,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,o,n,i,r)}},{key:"evaluate",value:function(e,t,o,n,i,r){return this._styleExpression.evaluate(e,t,o,n,i,r)}}])}(),mo=function(){return u((function e(t,o,n,i){p(this,e),this.kind=t,this.zoomStops=n,this._styleExpression=o,this.isStateDependent="camera"!==t&&!tt(o.expression),this.interpolationType=i}),[{key:"evaluateWithoutErrorHandling",value:function(e,t,o,n,i,r){return this._styleExpression.evaluateWithoutErrorHandling(e,t,o,n,i,r)}},{key:"evaluate",value:function(e,t,o,n,i,r){return this._styleExpression.evaluate(e,t,o,n,i,r)}},{key:"interpolationFactor",value:function(e,t,o){return this.interpolationType?Et.interpolationFactor(this.interpolationType,e,t,o):0}}])}();function fo(e,t){if("error"===(e=ho(e,t)).result)return e;var o=e.value.expression,n=et(o);if(!n&&!Qt(t))return Xt([new Q("","data expressions not supported")]);var i=ot(o,["zoom"]);if(!i&&!$t(t))return Xt([new Q("","zoom expressions not supported")]);var r=function e(t){var o=null;if(t instanceof Pt)o=e(t.result);else if(t instanceof Mt){var n,i=v(t.args);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(o=e(r))break}}catch(e){i.e(e)}finally{i.f()}}else(t instanceof at||t instanceof Et)&&t.input instanceof De&&"zoom"===t.input.name&&(o=t);if(o instanceof Q)return o;return t.eachChild((function(t){var n=e(t);n instanceof Q?o=n:!o&&n?o=new Q("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):o&&n&&o!==n&&(o=new Q("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),o}(o);if(!r&&!i)return Xt([new Q("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(r instanceof Q)return Xt([r]);if(r instanceof Et&&!eo(t))return Xt([new Q("",'"interpolate" expressions cannot be used with this property')]);if(!r)return Kt(new go(n?"constant":"source",e.value));var a=r instanceof Et?r.interpolation:void 0;return Kt(new mo(n?"camera":"composite",e.value,r.labels,a))}var yo=function(){function e(t,o){p(this,e),this._parameters=t,this._specification=o,X(this,io(this._parameters,this._specification))}return u(e,null,[{key:"deserialize",value:function(t){return new e(t._parameters,t._specification)}},{key:"serialize",value:function(e){return{_parameters:e._parameters,_specification:e._specification}}}])}();function Ao(e){return"object"===b(e)?["literal",e]:e}function vo(e,t){var o=e.stops;if(!o)return function(e,t){var o=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",o]:o;if("enum"===t.type)return["match",o,Object.keys(t.values),o,e.default];var n=["color"===t.type?"to-color":t.type,o,Ao(e.default)];return"array"===t.type&&n.splice(1,0,t.value,t.length||null),n}(e,t);var n=o&&"object"===b(o[0][0]),i=n||void 0!==e.property,r=n||!i;return o=o.map((function(e){return!i&&t.tokens&&"string"==typeof e[1]?[e[0],So(e[1])]:[e[0],Ao(e[1])]})),n?function(e,t,o){for(var n={},i={},r=[],a=0;a3&&void 0!==arguments[3]?arguments[3]:["zoom"],r=Eo(e,t),a=!1;if("interval"===r)n=["step",i],a=!0;else{if("exponential"!==r)throw new Error('Unknown zoom function type "'.concat(r,'"'));var s=void 0!==e.base?e.base:1;n=[Co(e),1===s?["linear"]:["exponential",s],i]}var l,c=v(o);try{for(c.s();!(l=c.n()).done;){var u=l.value;_o(n,u[0],u[1],a)}}catch(e){c.e(e)}finally{c.f()}return wo(n),n}(e,t,o):bo(e,t,o)}function Co(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function Io(e,t){var o,n,i=Ao((o=e.default,n=t.default,void 0!==o?o:void 0!==n?n:void 0));return void 0===i&&"resolvedImage"===t.type?"":i}function bo(e,t,o){var n=Eo(e,t),i=["get",e.property];if("categorical"===n&&"boolean"==typeof o[0][0]){var r,a=["case"],s=v(o);try{for(s.s();!(r=s.n()).done;){var l=r.value;a.push(["==",i,l[0]],l[1])}}catch(e){s.e(e)}finally{s.f()}return a.push(Io(e,t)),a}if("categorical"===n){var c,u=["match",i],d=v(o);try{for(d.s();!(c=d.n()).done;){var p=c.value;_o(u,p[0],p[1],!1)}}catch(e){d.e(e)}finally{d.f()}return u.push(Io(e,t)),u}if("interval"===n){var h,g=["step",["number",i]],m=v(o);try{for(m.s();!(h=m.n()).done;){var f=h.value;_o(g,f[0],f[1],!0)}}catch(e){m.e(e)}finally{m.f()}return wo(g),void 0===e.default?g:["case",["==",["typeof",i],"number"],g,Ao(e.default)]}if("exponential"===n){var y,A=void 0!==e.base?e.base:1,C=[Co(e),1===A?["linear"]:["exponential",A],["number",i]],I=v(o);try{for(I.s();!(y=I.n()).done;){var b=y.value;_o(C,b[0],b[1],!1)}}catch(e){I.e(e)}finally{I.f()}return void 0===e.default?C:["case",["==",["typeof",i],"number"],C,Ao(e.default)]}throw new Error("Unknown property function type ".concat(n))}function wo(e){"step"===e[0]&&3===e.length&&(e.push(0),e.push(e[3]))}function _o(e,t,o,n){e.length>3&&t===e[e.length-2]||(n&&2===e.length||e.push(t),e.push(o))}function Eo(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function So(e){for(var t=["concat"],o=/{([^{}]+)}/g,n=0,i=o.exec(e);null!==i;i=o.exec(e)){var r=e.slice(n,o.lastIndex-i[0].length);n=o.lastIndex,r.length>0&&t.push(r),t.push(["get",i[1]])}if(1===t.length)return e;if(n=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":var t,o=v(e.slice(1));try{for(o.s();!(t=o.n()).done;){var n=t.value;if(!Mo(n)&&"boolean"!=typeof n)return!1}}catch(e){o.e(e)}finally{o.f()}return!0;default:return!0}}var Po={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function xo(e){if(null==e)return{filter:function(){return!0},needGeometry:!1};Mo(e)||(e=Go(e));var t=ho(e,Po);if("error"===t.result)throw new Error(t.value.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join(", "));return{filter:function(e,o,n){return t.value.evaluate(e,o,{},n)},needGeometry:function e(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var o=1;ot?1:0}function Go(e){if(!e)return!0;var t,o=e[0];return e.length<=1?"any"!==o:"=="===o?Ro(e[1],e[2],"=="):"!="===o?Lo(Ro(e[1],e[2],"==")):"<"===o||">"===o||"<="===o||">="===o?Ro(e[1],e[2],o):"any"===o?(t=e.slice(1),["any"].concat(t.map(Go))):"all"===o?["all"].concat(e.slice(1).map(Go)):"none"===o?["all"].concat(e.slice(1).map(Go).map(Lo)):"in"===o?To(e[1],e.slice(2)):"!in"===o?Lo(To(e[1],e.slice(2))):"has"===o?Oo(e[1]):"!has"===o?Lo(Oo(e[1])):"within"!==o||e}function Ro(e,t,o){switch(e){case"$type":return["filter-type-".concat(o),t];case"$id":return["filter-id-".concat(o),t];default:return["filter-".concat(o),e,t]}}function To(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((function(e){return b(e)!==b(t[0])}))?["filter-in-large",e,["literal",t.sort(ko)]]:["filter-in-small",e,["literal",t]]}}function Oo(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Lo(e){return["!",e]}var Do=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function jo(e,t){var o={};for(var n in e)"ref"!==n&&(o[n]=e[n]);return Do.forEach((function(e){e in t&&(o[e]=t[e])})),o}function Uo(e){e=e.slice();for(var t=Object.create(null),o=0;os)return[new No(t,o,"".concat(o," is greater than the maximum value ").concat(s))]}return[]}function Yo(e){var t,o,n,i=e.valueSpec,r=zo(e.value.type),a={},s="categorical"!==r&&void 0===e.value.property,l=!s,c="array"===to(e.value.stops)&&"array"===to(e.value.stops[0])&&"object"===to(e.value.stops[0][0]),u=Wo({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===r)return[new No(e.key,e.value,'identity function may not have a "stops" property')];var t=[],o=e.value;t=t.concat(qo({key:e.key,value:o,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:d})),"array"===to(o)&&0===o.length&&t.push(new No(e.key,o,"array must have at least one stop"));return t},default:function(e){return cn({key:e.key,value:e.value,valueSpec:i,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===r&&s&&u.push(new No(e.key,e.value,'missing required property "property"')),"identity"===r||e.value.stops||u.push(new No(e.key,e.value,'missing required property "stops"')),"exponential"===r&&e.valueSpec.expression&&!eo(e.valueSpec)&&u.push(new No(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!Qt(e.valueSpec)?u.push(new No(e.key,e.value,"property functions not supported")):s&&!$t(e.valueSpec)&&u.push(new No(e.key,e.value,"zoom functions not supported"))),"categorical"!==r&&!c||void 0!==e.value.property||u.push(new No(e.key,e.value,'"property" property is required')),u;function d(e){var t=[],r=e.value,s=e.key;if("array"!==to(r))return[new No(s,r,"array expected, ".concat(to(r)," found"))];if(2!==r.length)return[new No(s,r,"array length 2 expected, length ".concat(r.length," found"))];if(c){if("object"!==to(r[0]))return[new No(s,r,"object expected, ".concat(to(r[0])," found"))];if(void 0===r[0].zoom)return[new No(s,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new No(s,r,"object stop key must have value")];if(n&&n>zo(r[0].zoom))return[new No(s,r[0].zoom,"stop zoom values must appear in ascending order")];zo(r[0].zoom)!==n&&(n=zo(r[0].zoom),o=void 0,a={}),t=t.concat(Wo({key:"".concat(s,"[0]"),value:r[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Ho,value:p}}))}else t=t.concat(p({key:"".concat(s,"[0]"),value:r[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},r));return po(Vo(r[1]))?t.concat([new No("".concat(s,"[1]"),r[1],"expressions are not allowed in function stops.")]):t.concat(cn({key:"".concat(s,"[1]"),value:r[1],valueSpec:i,style:e.style,styleSpec:e.styleSpec}))}function p(e,n){var s=to(e.value),l=zo(e.value),c=null!==e.value?e.value:n;if(t){if(s!==t)return[new No(e.key,c,"".concat(s," stop domain type must match previous stop domain type ").concat(t))]}else t=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new No(e.key,c,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==r){var u="number expected, ".concat(s," found");return Qt(i)&&void 0===r&&(u+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new No(e.key,c,u)]}return"categorical"!==r||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==r&&"number"===s&&void 0!==o&&l":case">=":o.length>=2&&"$type"===zo(o[1])&&a.push(new No(n,o,'"$type" cannot be use with operator "'.concat(o[0],'"')));case"==":case"!=":3!==o.length&&a.push(new No(n,o,'filter array for operator "'.concat(o[0],'" must have 3 elements')));case"in":case"!in":o.length>=2&&"string"!==(i=to(o[1]))&&a.push(new No("".concat(n,"[1]"),o[1],"string expected, ".concat(i," found")));for(var s=2;s1&&void 0!==arguments[1]?arguments[1]:w,o=[];return o=o.concat(cn({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:un,"*":function(){return[]}}})),e.constants&&(o=o.concat(Fo({key:"constants",value:e.constants,style:e,styleSpec:t}))),pn(o)}function pn(e){return[].concat(e).sort((function(e,t){return e.line-t.line}))}function hn(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;nc&&E.push("'"+this.terminals_[b]+"'");M=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[A]||A)+"'":"Parse error on line "+(s+1)+": Unexpected "+(A==u?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(M,{text:p.match,token:this.terminals_[A]||A,line:p.yylineno,loc:m,expected:E})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+A);switch(C[0]){case 1:o.push(A),n.push(p.yytext),i.push(p.yylloc),o.push(C[1]),A=null,l=p.yyleng,a=p.yytext,s=p.yylineno,m=p.yylloc;break;case 2:if(w=this.productions_[C[1]][1],S.$=n[n.length-w],S._$={first_line:i[i.length-(w||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(w||1)].first_column,last_column:i[i.length-1].last_column},f&&(S._$.range=[i[i.length-(w||1)].range[0],i[i.length-1].range[1]]),void 0!==(I=this.performAction.apply(S,[a,l,s,h.yy,C[1],n,i].concat(d))))return I;w&&(o=o.slice(0,-1*w*2),n=n.slice(0,-1*w),i=i.slice(0,-1*w)),o.push(this.productions_[C[1]][0]),n.push(S.$),i.push(S._$),_=r[o[o.length-2]][o[o.length-1]],o.push(_);break;case 3:return!0}}return!0}},p={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,o=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===n.length?this.yylloc.first_column:0)+n[n.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var o,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],o=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in i)this[r]=i[r];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,o,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),r=0;rt[0].length)){if(t=o,n=r,this.options.backtrack_lexer){if(!1!==(e=this.test_match(o,i[r])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,o,n){switch(o){case 0:break;case 1:return 6;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};function h(){this.yy={}}return d.lexer=p,h.prototype=d,d.Parser=h,new h}();void 0!==S&&(t.parser=o,t.Parser=o.Parser,t.parse=function(){return o.parse.apply(o,arguments)})}));function mn(e){if(e instanceof String||"string"==typeof e||e instanceof n)try{return gn.parse(e.toString())}catch(e){throw new Bo(e)}return e}function fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w,o=e;try{o=mn(o)}catch(e){return[e]}return dn(o,t)}new Set(["vector","raster","raster-dem"]);var yn={StyleExpression:uo,isExpression:po,isExpressionFilter:Mo,createExpression:ho,createPropertyExpression:fo,normalizePropertyExpression:function(e,t){if(oo(e))return new yo(e,t);if(po(e)){var o=fo(e,t);if("error"===o.result)throw new Error(o.value.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join(", "));return o.value}var n=e;return"string"==typeof e&&"color"===t.type&&(n=ye.parse(e)),{kind:"constant",evaluate:function(){return n}}},ZoomConstantExpression:go,ZoomDependentExpression:mo,StylePropertyFunction:yo},An={convertFunction:vo,createFunction:io,isFunction:oo};fn.parsed=fn,fn.latest=fn}).call(this,o(28),o(99).Buffer)},function(e){e.exports=JSON.parse('{"name":"geoportal-extensions","description":"French Geoportal Extensions for OpenLayers, Leaflet and iTowns libraries","version":"3.0.1","date":"04/04/2024","leafletExtName":"French Geoportal Extension for Leaflet","leafletExtVersion":"2.4.0","olExtName":"French Geoportal Extension for OpenLayers","olExtVersion":"3.4.1","itownsExtName":"French Geoportal Extension for Itowns","itownsExtVersion":"2.5.0","main":"dist/leaflet/GpPluginLeaflet.js, dist/openlayers/GpPluginOpenLayers.js, dist/itowns/GpPluginItowns.js","types":"dist/leaflet/index.d.ts, dist/openlayers/index.d.ts, dist/itowns/index.d.ts","module":"src/Leaflet/index.js, src/OpenLayers/index.js, src/Itowns/index.js","directories":{},"scripts":{"setup":"npm install","clean":"echo \\"Warning: target not yet implemented!\\" && exit 0","eslint":"eslint src/","test":"npm run test:serve","test:serve":"cd test && webpack-dev-server --hot --config webpack.test.serve.js","sample":"npm run sample:serve","sample:serve":"npm run sample:ol:serve","sample:itowns:serve":"webpack-dev-server --config build/webpack/webpack.config.itowns --mode=development --https --open-page samples/index-itowns-map.html --content-base . --output-public-path \'/dist/itowns/\' --port 9001 --open","sample:leaflet:serve":"webpack-dev-server --config build/webpack/webpack.config.leaflet --mode=development --https --open-page samples/index-leaflet-map.html --content-base . --output-public-path \'/dist/leaflet/\' --port 9001 --open","sample:ol:serve":"webpack-dev-server --config build/webpack/webpack.config.openlayers --mode=development --https --open-page samples/index-openlayers-map.html --content-base . --output-public-path \'/dist/openlayers/\' --port 9001 --open","generate-types:ol":"npx tsc -p build/types/tsconfig-openlayers.json","generate-types:leaflet":"npx tsc -p build/types/tsconfig-leaflet.json","generate-types:itowns":"npx tsc -p build/types/tsconfig-itowns.json","generate-jsdoc:ol":"jsdoc -c build/jsdoc/jsdoc-openlayers.json","generate-jsdoc:leaflet":"jsdoc -c build/jsdoc/jsdoc-leaflet.json","generate-jsdoc:itowns":"jsdoc -c build/jsdoc/jsdoc-itowns.json","doc":"npm run doc:serve","doc:serve":"npm run doc:ol:serve","doc:itowns:serve":"webpack-dev-server --hot --config build/webpack/webpack.config.itowns --content-base jsdoc/itowns --port 9001 --open","doc:leaflet:serve":"webpack-dev-server --hot --config build/webpack/webpack.config.leaflet --content-base jsdoc/leaflet --port 9001 --open","doc:ol:serve":"webpack-dev-server --hot --config build/webpack/webpack.config.openlayers --content-base jsdoc/openlayers --port 9001 --open","build:dev":"npm-run-all --print-label --print-name build:*:dev","build:prod":"npm-run-all --print-label --print-name build:*:prod","build:src":"npm-run-all --print-label --print-name build:*:src","build":"npm-run-all --print-label --print-name build:*:*","build:itowns":"npm-run-all --print-label --print-name build:itowns:*","build:itowns:dev":"webpack --config build/webpack/webpack.config.itowns --mode=development","build:itowns:prod":"webpack --config build/webpack/webpack.config.itowns --mode=production","build:itowns:src":"webpack --config build/webpack/webpack.config.itowns --mode=none","build:ol":"npm-run-all --print-label --print-name build:ol:*","build:ol:dev":"webpack --config build/webpack/webpack.config.openlayers --mode=development","build:ol:prod":"webpack --config build/webpack/webpack.config.openlayers --mode=production","build:ol:src":"webpack --config build/webpack/webpack.config.openlayers --mode=none","build:leaflet":"npm-run-all --print-label --print-name build:leaflet:*","build:leaflet:dev":"webpack --config build/webpack/webpack.config.leaflet --mode=development","build:leaflet:prod":"webpack --config build/webpack/webpack.config.leaflet --mode=production","build:leaflet:src":"webpack --config build/webpack/webpack.config.leaflet --mode=none"},"repository":{"type":"git","url":"https://github.com/IGNF/geoportal-extensions.git"},"author":"IGNF","keywords":["geoportail","geoplateforme","javascript","OpenLayers","Leaflet","Itowns","3D"],"license":"CECILL-B","bugs":{"url":"https://github.com/IGNF/geoportal-extensions/issues"},"homepage":"https://github.com/IGNF/geoportal-extensions#readme","dependencies":{"@mapbox/mapbox-gl-style-spec":"13.20.1","eventbusjs":"0.2.0","geoportal-access-lib":"3.4.0","itowns":"2.38.2","leaflet":"1.7.1","leaflet-draw":"1.0.4","loglevel":"^1.6.7","markdown-toc":"^1.2.0","ol":"6.9.0","ol-mapbox-style":"6.7.0","proj4":"2.7.5","proj4leaflet":"1.0.2","sortablejs":"1.14.0","three":"0.137.5","typescript":"^4.5.5","whatwg-fetch":"3.0.0"},"devDependencies":{"@babel/core":"^7.4.4","@babel/plugin-transform-template-literals":"^7.7.4","@babel/preset-env":"^7.4.4","babel-loader":"^8.0.5","chai":"^4.2.0","chalk":"^4.0.0","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^5.0.3","core-js":"^3.6.4","css-loader":"^3.4.2","eslint":"^6.8.0","eslint-config-standard":"^14.1.1","eslint-loader":"^4.0.0","eslint-plugin-import":"^2.17.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.1.1","eslint-plugin-standard":"^4.0.0","exports-loader":"^0.7.0","expose-loader":"^0.7.5","fs-extra":"^9.0.0","handlebars":"^4.7.5","handlebars-layouts":"^3.1.4","html-webpack-plugin":"^4.0.4","jsdoc-webpack-plugin":"^0.3.0","mini-css-extract-plugin":"^0.9.0","mocha":"^7.1.1","mocha-loader":"^5.0.0","npm-run-all":"^4.1.5","optimize-css-assets-webpack-plugin":"^5.0.1","path":"^0.12.7","replace-bundle-webpack-plugin":"^1.0.0","requirejs":"^2.3.6","responsive-loader":"^1.2.0","speed-measure-webpack-plugin":"^1.3.0","string-template":"^1.0.0","style-loader":"^1.1.3","terser-webpack-plugin":"^2.0.0","url-loader":"^4.0.0","webpack":"^4.30.0","webpack-cli":"^3.3.1","webpack-dev-server":"^3.3.1","webpack-node-externals":"^1.7.2"}}')},function(e,t,o){(function(t){e.exports=t.proj4=o(103)}).call(this,o(28))},function(e,t){e.exports=ol.layer.Tile},function(e,t){e.exports=ol.extent},function(e,t){e.exports=ol.layer.VectorTile},function(e,t){e.exports=ol.Collection},function(e,t,o){var n,i;!function(r,a){"use strict";void 0===(i="function"==typeof(n=function(){var e=function(){},t="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],n={},i=null;function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(o){return"debug"===o&&(o="log"),"undefined"!=typeof console&&("trace"===o&&t?a:void 0!==console[o]?r(console,o):void 0!==console.log?r(console,"log"):e)}function l(){for(var t=this.getLevel(),n=0;n=0&&t<=c.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),c.name=e,c.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},c.methodFactory=t||u,c.getLevel=function(){return null!=s?s:null!=a?a:r},c.setLevel=function(e,t){return s=h(e),!1!==t&&function(e){var t=(o[e]||"silent").toUpperCase();if("undefined"!=typeof window&&d){try{return void(window.localStorage[d]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+t+";"}catch(e){}}}(s),l.call(c)},c.setDefaultLevel=function(e){a=h(e),p()||c.setLevel(e,!1)},c.resetLevel=function(){s=null,function(){if("undefined"!=typeof window&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),l.call(c)},c.enableAll=function(e){c.setLevel(c.levels.TRACE,e)},c.disableAll=function(e){c.setLevel(c.levels.SILENT,e)},c.rebuild=function(){if(i!==c&&(r=h(i.getLevel())),l.call(c),i===c)for(var e in n)n[e].rebuild()},r=h(i?i.getLevel():"WARN");var g=p();null!=g&&(s=h(g)),l.call(c)}(i=new d).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=n[e];return t||(t=n[e]=new d(e,i.methodFactory)),t};var p="undefined"!=typeof window?window.log:void 0;return i.noConflict=function(){return"undefined"!=typeof window&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return n},i.default=i,i})?n.call(t,o,t,e):n)||(e.exports=i)}()},function(e,t){e.exports=ol.source.TileJSON},function(e,t){e.exports=ol.format.MVT},function(e,t){e.exports=ol.events.condition},function(e,t){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"==typeof window&&(o=window)}e.exports=o},function(e,t){e.exports=ol.source.TileWMS},function(e,t){e.exports=ol.source.WMTS},function(e){e.exports=JSON.parse('{"_from":"geoportal-access-lib@3.4.0","_id":"geoportal-access-lib@3.4.0","_inBundle":false,"_integrity":"sha512-+xnrMHpABTE9Pc/Ti0otv9M/pG9YXYqHgpzw/qnJILSDpR54lKCF5kd1gwne1sBqjbYZue5+jfLL7lZNfrD13g==","_location":"/geoportal-access-lib","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"geoportal-access-lib@3.4.0","name":"geoportal-access-lib","escapedName":"geoportal-access-lib","rawSpec":"3.4.0","saveSpec":null,"fetchSpec":"3.4.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/geoportal-access-lib/-/geoportal-access-lib-3.4.0.tgz","_shasum":"79dcd9faa9b0e78d4613e3431c0ab5e648221a09","_spec":"geoportal-access-lib@3.4.0","_where":"/home/runner/work/geoportal-extensions/geoportal-extensions","author":{"name":"IGNF"},"bugs":{"url":"https://github.com/IGNF/geoportal-access-lib/issues"},"bundleDependencies":false,"date":"18/03/2024","dependencies":{"es6-promise":"^4.2.4","node-fetch":"^2.6.1","xmldom":"^0.1.27"},"deprecated":false,"description":"French Geoportal resources access library","devDependencies":{"@babel/core":"^7.12.10","@babel/plugin-transform-template-literals":"^7.12.1","@babel/preset-env":"^7.12.11","babel-loader":"^8.2.2","chai":"^4.1.2","clean-webpack-plugin":"^3.0.0","copy-webpack-plugin":"^5.1.2","eslint":"^7.18.0","eslint-config-standard":"^16.0.2","eslint-loader":"^4.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^5.0.0","glob":"^7.1.2","handlebars-layouts":"^3.1.4","handlebars-webpack-plugin":"^1.4.1","html-webpack-plugin":"^4.5.1","istanbul-instrumenter-loader":"^3.0.1","jsdoc-webpack-plugin":"^0.3.0","loglevel":"^1.6.1","mocha":"^7.2.0","mocha-loader":"^5.1.5","mocha-webpack":"^2.0.0-beta.0","mochawesome":"^6.2.1","nyc":"^15.1.0","path":"^0.12.7","replace-bundle-webpack-plugin":"^1.0.0","sinon":"^9.2.4","sinon-es6":"0.0.3","speed-measure-webpack-plugin":"^1.4.2","string-template":"^1.0.0","terser-webpack-plugin":"^2.3.8","webpack":"^4.46.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.2","webpack-node-externals":"^2.5.2","webpack-shell-plugin":"^0.5.0"},"homepage":"https://github.com/IGNF/geoportal-access-lib#readme","keywords":["geoplateforme","geoportail","webservice","javascript","es6"],"license":"CECILL-B","main":"dist/GpServices-src.js","module":"src/Gp.js","name":"geoportal-access-lib","nyc":{"include":["src/**/*.js"],"instrument":false,"sourceMap":false},"optionalDependencies":{},"peerDependencies":{},"repository":{"type":"git","url":"git+https://github.com/IGNF/geoportal-access-lib.git"},"scripts":{"build":"webpack --mode=none","build:dev":"webpack --mode=development","build:prod":"webpack --mode=production","clean":"echo \\"Warning: no yet implemented!\\" && exit 0","cover":"nyc --reporter=lcov --reporter=text npm run test","doc":"npm run doc:serve","doc:serve":"webpack-dev-server --content-base jsdoc --port 9001 --open","eslint":"eslint src/","sample":"npm run sample:serve","sample:serve":"webpack-dev-server --mode=none --open-page samples/index-src.html --https --content-base . --output-public-path \'/dist/\' --port 9001 --open","sample:serve:dev":"webpack-dev-server --mode=development --open-page samples/index-map.html --content-base . --output-public-path \'/dist/\' --port 9001 --open","sample:serve:prod":"webpack-dev-server --mode=production --open-page samples/index-prod.html --content-base . --output-public-path \'/dist/\' --port 9001 --open","setup":"npm install","test":"mocha-webpack --reporter mochawesome --reporter-options reportDir=test-report,reportFilename=index --webpack-config ./test/webpack/webpack.test.js --glob \\"test_*.js\\" test/spec/","test:end-to-end:serve":"webpack-dev-server --hot --config ./test/webpack/webpack.end-to-end.serve.js","test:end-to-end:serve:docker":"webpack-dev-server --hot --config ./test/webpack/webpack.end-to-end.serve.docker.js","test:serve":"webpack-dev-server --hot --config ./test/webpack/webpack.test.serve.js","test:serve:docker":"webpack-dev-server --hot --config ./test/webpack/webpack.test.serve.docker.js"},"version":"3.4.0"}')},function(e,t){e.exports=ol.style.Circle},function(e,t){e.exports=ol.style.Icon},function(e,t){e.exports=ol.style.Text},function(e,t){e.exports=void 0},function(e,t){e.exports=ol.format.GeoJSON},function(e,t){e.exports=ol.tilegrid.WMTS},function(e,t){var o={thin:100,hairline:100,"ultra-light":200,"extra-light":200,light:300,book:300,regular:400,normal:400,plain:400,roman:400,standard:400,medium:500,"semi-bold":600,"demi-bold":600,bold:700,"extra-bold":800,"ultra-bold":800,heavy:900,black:900,"heavy-black":900,fat:900,poster:900,"ultra-black":950,"extra-black":950},n=/(italic|oblique)$/i,i={};e.exports=function(e,t,r){var a=i[e];if(!a){Array.isArray(e)||(e=[e]);for(var s,l,c=400,u="normal",d=[],p=0,h=e.length;p1?g[g.length-2].toLowerCase():"";if(m==f||m==f.replace("-","")||y+"-"+m==f){c=s?c:o[f],g.pop(),y&&f.startsWith(y)&&g.pop();break}}s||"number"!=typeof m||(c=m,s=!0);var A=g.join(" ").replace("Klokantech Noto Sans","Noto Sans");-1!==A.indexOf(" ")&&(A='"'+A+'"'),d.push(A)}a=i[e]=[u,c,d]}return a[0]+" "+a[1]+" "+t+"px"+(r?"/"+r:"")+" "+a[2]}},function(e,t){e.exports=ol.Map},function(e,t){e.exports=ol.tilegrid.TileGrid},function(e,t){e.exports=ol.render.canvas},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t){e.exports=void 0},function(e,t){e.exports=ol.source.ImageWMS},function(e,t,o){(function(t,o){ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 - */var n;n=function(){"use strict";function e(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,r=void 0,a=void 0,s=function(e,t){g[i]=e,g[i+1]=t,2===(i+=2)&&(a?a(m):C())},l="undefined"!=typeof window?window:void 0,c=l||{},u=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(m,1)}}var g=new Array(1e3);function m(){for(var e=0;e-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,o){e.onload=function(){t(e.result)},e.onerror=function(){o(e.error)}}))}function f(e){var t=new FileReader,o=m(t);return t.readAsArrayBuffer(e),o}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,o,n=g(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,o=m(t),t.readAsText(e),o;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),o=new Array(t.length),n=0;n-1?n:o),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function I(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var o=e.split("="),n=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},A.call(C.prototype),A.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];b.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})};var _=self.DOMException;try{new _}catch(e){(_=function(e,t){this.message=e,this.name=t;var o=Error(e);this.stack=o.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function E(e,t){return new Promise((function(o,n){var i=new C(e,t);if(i.signal&&i.signal.aborted)return n(new _("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var o=e.split(":"),n=o.shift().trim();if(n){var i=o.join(":").trim();t.append(n,i)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;o(new b(i,n))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new _("Aborted","AbortError"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",s)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}E.polyfill=!0,self.fetch||(self.fetch=E,self.Headers=h,self.Request=C,self.Response=b)},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t){var o,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(o===setTimeout)return setTimeout(e,0);if((o===r||!o)&&setTimeout)return o=setTimeout,setTimeout(e,0);try{return o(e,0)}catch(t){try{return o.call(null,e,0)}catch(t){return o.call(this,e,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:r}catch(e){o=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d1)for(var o=1;o-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,o){e.onload=function(){t(e.result)},e.onerror=function(){o(e.error)}}))}function f(e){var t=new FileReader,o=m(t);return t.readAsArrayBuffer(e),o}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,o,n=g(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,o=m(t),t.readAsText(e),o;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),o=new Array(t.length),n=0;n-1?n:o),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function I(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var o=e.split("="),n=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},A.call(C.prototype),A.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];b.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})};var _=self.DOMException;try{new _}catch(e){(_=function(e,t){this.message=e,this.name=t;var o=Error(e);this.stack=o.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function E(e,t){return new Promise((function(o,n){var i=new C(e,t);if(i.signal&&i.signal.aborted)return n(new _("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var o=e.split(":"),n=o.shift().trim();if(n){var i=o.join(":").trim();t.append(n,i)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;o(new b(i,n))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new _("Aborted","AbortError"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",s)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}E.polyfill=!0,self.fetch||(self.fetch=E,self.Headers=h,self.Request=C,self.Response=b)},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t,o){},function(e,t){var o,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(o===setTimeout)return setTimeout(e,0);if((o===r||!o)&&setTimeout)return o=setTimeout,setTimeout(e,0);try{return o(e,0)}catch(t){try{return o.call(null,e,0)}catch(t){return o.call(this,e,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:r}catch(e){o=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d1)for(var o=1;o=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var o=e.length;if(0===o)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return F(e).length;default:if(n)return B(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,o){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if((o>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,o);case"utf8":case"utf-8":return S(this,t,o);case"ascii":return M(this,t,o);case"latin1":case"binary":return P(this,t,o);case"base64":return E(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,o);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function f(e,t,o){var n=e[t];e[t]=e[o],e[o]=n}function y(e,t,o,n,i){if(0===e.length)return-1;if("string"==typeof o?(n=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=i?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(i)return-1;o=e.length-1}else if(o<0){if(!i)return-1;o=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:A(e,t,o,n,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,o):Uint8Array.prototype.lastIndexOf.call(e,t,o):A(e,[t],o,n,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,o,n,i){var r,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,o/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(r=o;rs&&(o=s-l),r=o;r>=0;r--){for(var d=!0,p=0;pi&&(n=i):n=i;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");n>r/2&&(n=r/2);for(var a=0;a>8,i=o%256,r.push(i),r.push(n);return r}(t,e.length-o),e,o,n)}function E(e,t,o){return 0===t&&o===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,o))}function S(e,t,o){o=Math.min(e.length,o);for(var n=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=o)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(r=e[i+1]))&&(l=(31&c)<<6|63&r)>127&&(u=l);break;case 3:r=e[i+1],a=e[i+2],128==(192&r)&&128==(192&a)&&(l=(15&c)<<12|(63&r)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:r=e[i+1],a=e[i+2],s=e[i+3],128==(192&r)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&r)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var o="",n=0;for(;n0&&(e=this.toString("hex",0,o).match(/.{2}/g).join(" "),this.length>o&&(e+=" ... ")),""},l.prototype.compare=function(e,t,o,n,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===o&&(o=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||o>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=o)return 0;if(n>=i)return-1;if(t>=o)return 1;if(this===e)return 0;for(var r=(i>>>=0)-(n>>>=0),a=(o>>>=0)-(t>>>=0),s=Math.min(r,a),c=this.slice(n,i),u=e.slice(t,o),d=0;di)&&(o=i),e.length>0&&(o<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return v(this,e,t,o);case"utf8":case"utf-8":return C(this,e,t,o);case"ascii":return I(this,e,t,o);case"latin1":case"binary":return b(this,e,t,o);case"base64":return w(this,e,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,o);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(e,t,o){var n="";o=Math.min(e.length,o);for(var i=t;in)&&(o=n);for(var i="",r=t;ro)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,o,n,i,r){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function T(e,t,o,n){t<0&&(t=65535+t+1);for(var i=0,r=Math.min(e.length-o,2);i>>8*(n?i:1-i)}function O(e,t,o,n){t<0&&(t=4294967295+t+1);for(var i=0,r=Math.min(e.length-o,4);i>>8*(n?i:3-i)&255}function L(e,t,o,n,i,r){if(o+n>e.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function D(e,t,o,n,r){return r||L(e,0,o,4),i.write(e,t,o,n,23,4),o+4}function j(e,t,o,n,r){return r||L(e,0,o,8),i.write(e,t,o,n,52,8),o+8}l.prototype.slice=function(e,t){var o,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUInt8=function(e,t){return t||G(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||G(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||G(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||G(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||G(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,o){e|=0,t|=0,o||G(e,t,this.length);for(var n=this[e],i=1,r=0;++r=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,o){e|=0,t|=0,o||G(e,t,this.length);for(var n=t,i=1,r=this[e+--n];n>0&&(i*=256);)r+=this[e+--n]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return t||G(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||G(e,2,this.length);var o=this[e]|this[e+1]<<8;return 32768&o?4294901760|o:o},l.prototype.readInt16BE=function(e,t){t||G(e,2,this.length);var o=this[e+1]|this[e]<<8;return 32768&o?4294901760|o:o},l.prototype.readInt32LE=function(e,t){return t||G(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||G(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||G(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||G(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||G(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||G(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,o,n){(e=+e,t|=0,o|=0,n)||R(this,e,t,o,Math.pow(2,8*o)-1,0);var i=1,r=0;for(this[t]=255&e;++r=0&&(r*=256);)this[t+i]=e/r&255;return t+o},l.prototype.writeUInt8=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,o,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*o-1);R(this,e,t,o,i-1,-i)}var r=0,a=1,s=0;for(this[t]=255&e;++r>0)-s&255;return t+o},l.prototype.writeIntBE=function(e,t,o,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*o-1);R(this,e,t,o,i-1,-i)}var r=o-1,a=1,s=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/a>>0)-s&255;return t+o},l.prototype.writeInt8=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):T(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):T(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,o){return e=+e,t|=0,o||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,o){return D(this,e,t,!0,o)},l.prototype.writeFloatBE=function(e,t,o){return D(this,e,t,!1,o)},l.prototype.writeDoubleLE=function(e,t,o){return j(this,e,t,!0,o)},l.prototype.writeDoubleBE=function(e,t,o){return j(this,e,t,!1,o)},l.prototype.copy=function(e,t,o,n){if(o||(o=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+o];else if(r<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,o=void 0===o?this.length:o>>>0,e||(e=0),"number"==typeof e)for(r=t;r55295&&o<57344){if(!i){if(o>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&r.push(239,191,189);continue}i=o;continue}if(o<56320){(t-=3)>-1&&r.push(239,191,189),i=o;continue}o=65536+(i-55296<<10|o-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,o<128){if((t-=1)<0)break;r.push(o)}else if(o<2048){if((t-=2)<0)break;r.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;r.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return r}function F(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,o,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+o]=e[i];return i}}).call(this,o(28))},function(e,t,o){"use strict";t.byteLength=function(e){var t=c(e),o=t[0],n=t[1];return 3*(o+n)/4-n},t.toByteArray=function(e){var t,o,n=c(e),a=n[0],s=n[1],l=new r(function(e,t,o){return 3*(t+o)/4-o}(0,a,s)),u=0,d=s>0?a-4:a;for(o=0;o>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=i[e.charCodeAt(o)]<<2|i[e.charCodeAt(o+1)]>>4,l[u++]=255&t);1===s&&(t=i[e.charCodeAt(o)]<<10|i[e.charCodeAt(o+1)]<<4|i[e.charCodeAt(o+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,o=e.length,i=o%3,r=[],a=0,s=o-i;as?s:a+16383));1===i?(t=e[o-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[o-2]<<8)+e[o-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return r.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");return-1===o&&(o=t),[o,o===t?0:4-o%4]}function u(e,t,o){for(var i,r,a=[],s=t;s>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -t.read=function(e,t,o,n,i){var r,a,s=8*i-n-1,l=(1<>1,u=-7,d=o?i-1:0,p=o?-1:1,h=e[t+d];for(d+=p,r=h&(1<<-u)-1,h>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===r)r=1-c;else{if(r===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),r-=c}return(h?-1:1)*a*Math.pow(2,r-n)},t.write=function(e,t,o,n,i,r){var a,s,l,c=8*r-i-1,u=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:r-1,g=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[o+h]=255&s,h+=g,s/=256,i-=8);for(a=a<0;e[o+h]=255&a,h+=g,a/=256,c-=8);e[o+h-g]|=128*m}},function(e,t){var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},function(e,t,o){e.exports=function(){"use strict";var e=484813681109536e-20,t=Math.PI/2,o=.017453292519943295,n=57.29577951308232,i=Math.PI/4,r=2*Math.PI,a=3.14159265359,s={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},l={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},c=/[\s_\-\/\(\)]/g;function u(e,t){if(e[t])return e[t];for(var o,n=Object.keys(e),i=t.toLowerCase().replace(c,""),r=-1;++r=this.text.length)return;e=this.text[this.place++]}switch(this.state){case 1:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},y.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(m.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},y.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},y.prototype.number=function(e){if(!f.test(e)){if(m.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},y.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},y.prototype.keyword=function(e){if(g.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!m.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},y.prototype.neutral=function(e){if(h.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(f.test(e))return this.word=e,void(this.state=3);if(!m.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},y.prototype.output=function(){for(;this.place0?90:-90),e.lat_ts=e.lat1)}(i),i};function b(e){var t=this;if(2===arguments.length){var o=arguments[1];"string"==typeof o?"+"===o.charAt(0)?b[e]=d(arguments[1]):b[e]=I(arguments[1]):b[e]=o}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?b.apply(t,e):b(e)}));if("string"==typeof e){if(e in b)return b[e]}else"EPSG"in e?b["EPSG:"+e.EPSG]=e:"ESRI"in e?b["ESRI:"+e.ESRI]=e:"IAU2000"in e?b["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(b);var w=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"],_=["3857","900913","3785","102113"];function E(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in b}(e))return b[e];if(function(e){return w.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=I(e);if(function(e){var t=u(e,"authority");if(t){var o=u(t,"epsg");return o&&_.indexOf(o)>-1}}(t))return b["EPSG:3857"];var o=function(e){var t=u(e,"extension");if(t)return u(t,"proj4")}(t);return o?d(o):t}return function(e){return"+"===e[0]}(e)?d(e):void 0}var S=function(e,t){var o,n;if(e=e||{},!t)return e;for(n in t)void 0!==(o=t[n])&&(e[n]=o);return e},M=function(e,t,o){var n=e*t;return o/Math.sqrt(1-n*n)},P=function(e){return e<0?-1:1},x=function(e){return Math.abs(e)<=a?e:e-P(e)*r},k=function(e,o,n){var i=e*n,r=.5*e;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(t-o))/i},G=function(e,o){for(var n,i,r=.5*e,a=t-2*Math.atan(o),s=0;s<=15;s++)if(n=e*Math.sin(a),a+=i=t-2*Math.atan(o*Math.pow((1-n)/(1+n),r))-a,Math.abs(i)<=1e-10)return a;return-9999};function R(e){return e}var T=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=M(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var o,r,a=e.x,s=e.y;if(s*n>90&&s*n<-90&&a*n>180&&a*n<-180)return null;if(Math.abs(Math.abs(s)-t)<=1e-10)return null;if(this.sphere)o=this.x0+this.a*this.k0*x(a-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(i+.5*s));else{var l=Math.sin(s),c=k(this.e,s,l);o=this.x0+this.a*this.k0*x(a-this.long0),r=this.y0-this.a*this.k0*Math.log(c)}return e.x=o,e.y=r,e},inverse:function(e){var o,n,i=e.x-this.x0,r=e.y-this.y0;if(this.sphere)n=t-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var a=Math.exp(-r/(this.a*this.k0));if(-9999===(n=G(this.e,a)))return null}return o=x(this.long0+i/(this.a*this.k0)),e.x=o,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:R,inverse:R,names:["longlat","identity"]}],O={},L=[];function D(e,t){var o=L.length;return e.names?(L[o]=e,e.names.forEach((function(e){O[e.toLowerCase()]=o})),this):(console.log(t),!0)}var j={start:function(){T.forEach(D)},add:D,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==O[t]&&L[O[t]]?L[O[t]]:void 0}},U={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},N=U.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};U.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var B={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},F={};function z(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:F[e]||null,isNull:!1}}function V(e){return e/3600*Math.PI/180}function W(e,t,o){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,o)))}function q(e){return e.map((function(e){return[V(e.longitudeShift),V(e.latitudeShift)]}))}function H(e,t,o){return{name:W(e,t+8,t+16).trim(),parent:W(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,o),upperLatitude:e.getFloat64(t+88,o),lowerLongitude:e.getFloat64(t+104,o),upperLongitude:e.getFloat64(t+120,o),latitudeInterval:e.getFloat64(t+136,o),longitudeInterval:e.getFloat64(t+152,o),gridNodeCount:e.getInt32(t+168,o)}}function Y(e,t,o,n){for(var i=t+176,r=[],a=0;a3&&(0===l.datum_params[3]&&0===l.datum_params[4]&&0===l.datum_params[5]&&0===l.datum_params[6]||(l.datum_type=2,l.datum_params[3]*=e,l.datum_params[4]*=e,l.datum_params[5]*=e,l.datum_params[6]=l.datum_params[6]/1e6+1))),s&&(l.datum_type=3,l.grids=s),l.a=n,l.b=i,l.es=r,l.ep2=a,l}(n.datumCode,n.datum_params,g.a,g.b,m.es,m.ep2,f);S(this,n),S(this,i),this.a=g.a,this.b=g.b,this.rf=g.rf,this.sphere=g.sphere,this.es=m.es,this.e=m.e,this.ep2=m.ep2,this.datum=y,this.init(),o(null,this)}else o(t)}else o(t)}function Z(e,o,n){var i,r,a,s,l=e.x,c=e.y,u=e.z?e.z:0;if(c<-t&&c>-1.001*t)c=-t;else if(c>t&&c<1.001*t)c=t;else{if(c<-t)return{x:-1/0,y:-1/0,z:e.z};if(c>t)return{x:1/0,y:1/0,z:e.z}}return l>Math.PI&&(l-=2*Math.PI),r=Math.sin(c),s=Math.cos(c),a=r*r,{x:((i=n/Math.sqrt(1-o*a))+u)*s*Math.cos(l),y:(i+u)*s*Math.sin(l),z:(i*(1-o)+u)*r}}function K(e,t,o,n){var i,r,a,s,l,c,u,d,p,h,g,m,f,y,A,v=e.x,C=e.y,I=e.z?e.z:0;if(i=Math.sqrt(v*v+C*C),r=Math.sqrt(v*v+C*C+I*I),i/o<1e-12){if(y=0,r/o<1e-12)return A=-n,{x:e.x,y:e.y,z:e.z}}else y=Math.atan2(C,v);a=I/r,d=(s=i/r)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*s*s)),p=a*l,f=0;do{f++,c=t*(u=o/Math.sqrt(1-t*p*p))/(u+(A=i*d+I*p-u*(1-t*p*p))),m=(g=a*(l=1/Math.sqrt(1-c*(2-c)*s*s)))*d-(h=s*(1-c)*l)*p,d=h,p=g}while(m*m>1e-24&&f<30);return{x:y,y:Math.atan(g/Math.abs(h)),z:A}}function X(e){return 1===e||2===e}J.projections=j,J.projections.start();var Q=function(e,t,o){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return o;if(5===e.datum_type||5===t.datum_type)return o;var n=e.a,i=e.es;if(3===e.datum_type){if(0!==$(e,!1,o))return;n=6378137,i=.0066943799901413165}var r=t.a,a=t.b,s=t.es;return 3===t.datum_type&&(r=6378137,a=6356752.314,s=.0066943799901413165),i!==s||n!==r||X(e.datum_type)||X(t.datum_type)?(o=Z(o,i,n),X(e.datum_type)&&(o=function(e,t,o){if(1===t)return{x:e.x+o[0],y:e.y+o[1],z:e.z+o[2]};if(2===t){var n=o[0],i=o[1],r=o[2],a=o[3],s=o[4],l=o[5],c=o[6];return{x:c*(e.x-l*e.y+s*e.z)+n,y:c*(l*e.x+e.y-a*e.z)+i,z:c*(-s*e.x+a*e.y+e.z)+r}}}(o,e.datum_type,e.datum_params)),X(t.datum_type)&&(o=function(e,t,o){if(1===t)return{x:e.x-o[0],y:e.y-o[1],z:e.z-o[2]};if(2===t){var n=o[0],i=o[1],r=o[2],a=o[3],s=o[4],l=o[5],c=o[6],u=(e.x-n)/c,d=(e.y-i)/c,p=(e.z-r)/c;return{x:u+l*d-s*p,y:-l*u+d+a*p,z:s*u-a*d+p}}}(o,t.datum_type,t.datum_params)),o=K(o,s,r,a),3!==t.datum_type||0===$(t,!0,o)?o:void 0):o};function $(e,t,o){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;for(var i={x:-o.x,y:o.y},r={x:Number.NaN,y:Number.NaN},a=[],s=0;si.y||d>i.x||g1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=x(r.x+o.ll[0]),n.y=r.y+o.ll[1]}else isNaN(r.x)||(n.x=e.x+r.x,n.y=e.y+r.y);return n}function te(e,t){var o,n={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(n.x),r=Math.floor(n.y),a=n.x-1*i,s=n.y-1*r,l={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return l;if(r<0||r>=t.lim[1])return l;o=r*t.lim[0]+i;var c=t.cvs[o][0],u=t.cvs[o][1];o++;var d=t.cvs[o][0],p=t.cvs[o][1];o+=t.lim[0];var h=t.cvs[o][0],g=t.cvs[o][1];o--;var m=t.cvs[o][0],f=t.cvs[o][1],y=a*s,A=a*(1-s),v=(1-a)*(1-s),C=(1-a)*s;return l.x=v*c+A*d+C*m+y*h,l.y=v*u+A*p+C*f+y*g,l}var oe=function(e,t,o){var n,i,r,a=o.x,s=o.y,l=o.z||0,c={};for(r=0;r<3;r++)if(!t||2!==r||void 0!==o.z)switch(0===r?(n=a,i=-1!=="ew".indexOf(e.axis[r])?"x":"y"):1===r?(n=s,i=-1!=="ns".indexOf(e.axis[r])?"y":"x"):(n=l,i="z"),e.axis[r]){case"e":c[i]=n;break;case"w":c[i]=-n;break;case"n":c[i]=n;break;case"s":c[i]=-n;break;case"u":void 0!==o[i]&&(c.z=n);break;case"d":void 0!==o[i]&&(c.z=-n);break;default:return null}return c},ne=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t};function ie(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function re(e,t,i,r){var a;if(Array.isArray(i)&&(i=ne(i)),function(e){ie(e.x),ie(e.y)}(i),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(i=re(e,a=new J("WGS84"),i,r),e=a),r&&"enu"!==e.axis&&(i=oe(e,!1,i)),"longlat"===e.projName)i={x:i.x*o,y:i.y*o,z:i.z||0};else if(e.to_meter&&(i={x:i.x*e.to_meter,y:i.y*e.to_meter,z:i.z||0}),!(i=e.inverse(i)))return;if(e.from_greenwich&&(i.x+=e.from_greenwich),i=Q(e.datum,t.datum,i))return t.from_greenwich&&(i={x:i.x-t.from_greenwich,y:i.y,z:i.z||0}),"longlat"===t.projName?i={x:i.x*n,y:i.y*n,z:i.z||0}:(i=t.forward(i),t.to_meter&&(i={x:i.x/t.to_meter,y:i.y/t.to_meter,z:i.z||0})),r&&"enu"!==t.axis?oe(t,!0,i):i}var ae=J("WGS84");function se(e,t,o,n){var i,r,a;return Array.isArray(o)?(i=re(e,t,o,n)||{x:NaN,y:NaN},o.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(o.splice(3)):[i.x,i.y,o[2]].concat(o.splice(3)):[i.x,i.y].concat(o.splice(2)):[i.x,i.y]):(r=re(e,t,o,n),2===(a=Object.keys(o)).length||a.forEach((function(n){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===n||"y"===n||"z"===n)return}else if("x"===n||"y"===n)return;r[n]=o[n]})),r)}function le(e){return e instanceof J?e:e.oProj?e.oProj:J(e)}function ce(e,t,o){e=le(e);var n,i=!1;return void 0===t?(t=e,e=ae,i=!0):(void 0!==t.x||Array.isArray(t))&&(o=t,t=e,e=ae,i=!0),t=le(t),o?se(e,t,o):(n={forward:function(o,n){return se(e,t,o,n)},inverse:function(o,n){return se(t,e,o,n)}},i&&(n.oProj=t),n)}var ue=65,de=73,pe=79,he={forward:ge,inverse:function(e){var t=Ae(Ce(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]},toPoint:me};function ge(e,t){return t=t||5,function(e,t){var o,n,i,r,a,s,l,c,u,d,p,h,g,m,f="00000"+e.easting,y="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(u=e.easting,d=e.northing,p=e.zoneNumber,h=ve(p),g=Math.floor(u/1e5),m=Math.floor(d/1e5)%20,o=g,n=m,r="AJSAJS".charCodeAt(i=h-1),a="AFAFAF".charCodeAt(i),c=!1,(s=r+o-1)>90&&(s=s-90+ue-1,c=!0),(s===de||rde||(s>de||rpe||(s>pe||r90&&(s=s-90+ue-1),(l=a+n)>86?(l=l-86+ue-1,c=!0):c=!1,(l===de||ade||(l>de||ape||(l>pe||a86&&(l=l-86+ue-1),String.fromCharCode(s)+String.fromCharCode(l))+f.substr(f.length-5,t)+y.substr(y.length-5,t)}(function(e){var t,o,n,i,r,a,s,l=e.lat,c=e.lon,u=6378137,d=fe(l),p=fe(c);s=Math.floor((c+180)/6)+1,180===c&&(s=60),l>=56&&l<64&&c>=3&&c<12&&(s=32),l>=72&&l<84&&(c>=0&&c<9?s=31:c>=9&&c<21?s=33:c>=21&&c<33?s=35:c>=33&&c<42&&(s=37)),a=fe(6*(s-1)-180+3),t=u/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),o=Math.tan(d)*Math.tan(d),n=.006739496752268451*Math.cos(d)*Math.cos(d),i=Math.cos(d)*(p-a),r=u*(.9983242984503243*d-.002514607064228144*Math.sin(2*d)+2639046602129982e-21*Math.sin(4*d)-3.418046101696858e-9*Math.sin(6*d));var h,g,m=.9996*t*(i+(1-o+n)*i*i*i/6+(5-18*o+o*o+72*n-.39089081163157013)*i*i*i*i*i/120)+5e5,f=.9996*(r+t*Math.tan(d)*(i*i/2+(5-o+9*n+4*n*n)*i*i*i*i/24+(61-58*o+o*o+600*n-2.2240339282485886)*i*i*i*i*i*i/720));return l<0&&(f+=1e7),{northing:Math.round(f),easting:Math.round(m),zoneNumber:s,zoneLetter:(h=l,g="Z",84>=h&&h>=72?g="X":72>h&&h>=64?g="W":64>h&&h>=56?g="V":56>h&&h>=48?g="U":48>h&&h>=40?g="T":40>h&&h>=32?g="S":32>h&&h>=24?g="R":24>h&&h>=16?g="Q":16>h&&h>=8?g="P":8>h&&h>=0?g="N":0>h&&h>=-8?g="M":-8>h&&h>=-16?g="L":-16>h&&h>=-24?g="K":-24>h&&h>=-32?g="J":-32>h&&h>=-40?g="H":-40>h&&h>=-48?g="G":-48>h&&h>=-56?g="F":-56>h&&h>=-64?g="E":-64>h&&h>=-72?g="D":-72>h&&h>=-80&&(g="C"),g)}}({lat:e[1],lon:e[0]}),t)}function me(e){var t=Ae(Ce(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function fe(e){return e*(Math.PI/180)}function ye(e){return e/Math.PI*180}function Ae(e){var t=e.northing,o=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var r,a,s,l,c,u,d,p,h=6378137,g=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=o-5e5,f=t;n<"N"&&(f-=1e7),u=6*(i-1)-180+3,p=(d=f/.9996/6367449.145945056)+(3*g/2-27*g*g*g/32)*Math.sin(2*d)+(21*g*g/16-55*g*g*g*g/32)*Math.sin(4*d)+151*g*g*g/96*Math.sin(6*d),r=h/Math.sqrt(1-.00669438*Math.sin(p)*Math.sin(p)),a=Math.tan(p)*Math.tan(p),s=.006739496752268451*Math.cos(p)*Math.cos(p),l=.99330562*h/Math.pow(1-.00669438*Math.sin(p)*Math.sin(p),1.5),c=m/(.9996*r);var y=p-r*Math.tan(p)/l*(c*c/2-(5+3*a+10*s-4*s*s-.06065547077041606)*c*c*c*c/24+(61+90*a+298*s+45*a*a-1.6983531815716497-3*s*s)*c*c*c*c*c*c/720);y=ye(y);var A,v=(c-(1+2*a+s)*c*c*c/6+(5-2*s+28*a-3*s*s+.05391597401814761+24*a*a)*c*c*c*c*c/120)/Math.cos(p);if(v=u+ye(v),e.accuracy){var C=Ae({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});A={top:C.lat,right:C.lon,bottom:y,left:v}}else A={lat:y,lon:v};return A}function ve(e){var t=e%6;return 0===t&&(t=6),t}function Ce(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,o=e.length,n=null,i="",r=0;!/[A-Z]/.test(t=e.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,r++}var a=parseInt(i,10);if(0===r||r+3>o)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(r++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;n=e.substring(r,r+=2);for(var l=ve(a),c=function(e,t){for(var o="AJSAJS".charCodeAt(t-1),n=1e5,i=!1;o!==e.charCodeAt(0);){if(++o===de&&o++,o===pe&&o++,o>90){if(i)throw"Bad character: "+e;o=ue,i=!0}n+=1e5}return n}(n.charAt(0),l),u=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var o="AFAFAF".charCodeAt(t-1),n=0,i=!1;o!==e.charCodeAt(0);){if(++o===de&&o++,o===pe&&o++,o>86){if(i)throw"Bad character: "+e;o=ue,i=!0}n+=1e5}return n}(n.charAt(1),l);u0&&(p=1e5/Math.pow(10,m),h=e.substring(r,r+m),f=parseFloat(h)*p,g=e.substring(r+m),y=parseFloat(g)*p),{easting:f+c,northing:y+u,zoneLetter:s,zoneNumber:a,accuracy:p}}function Ie(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function be(e,t,o){if(!(this instanceof be))return new be(e,t,o);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=o||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}be.fromMGRS=function(e){return new be(me(e))},be.prototype.toMGRS=function(e){return ge([this.x,this.y],e)};var we=.01068115234375,_e=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*we))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*we)));var o=e*e;return t[2]=o*(.46875-e*(.013020833333333334+.007120768229166667*e)),o*=e,t[3]=o*(.3645833333333333-.005696614583333333*e),t[4]=o*e*.3076171875,t},Ee=function(e,t,o,n){return o*=t,t*=t,n[0]*e-o*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))},Se=function(e,t,o){for(var n=1/(1-t),i=e,r=20;r;--r){var a=Math.sin(i),s=1-t*a*a;if(i-=s=(Ee(i,a,Math.cos(i),o)-e)*(s*Math.sqrt(s))*n,Math.abs(s)<1e-10)return i}return i},Me={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=_e(this.es),this.ml0=Ee(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,o,n,i=e.x,r=e.y,a=x(i-this.long0),s=Math.sin(r),l=Math.cos(r);if(this.es){var c=l*a,u=Math.pow(c,2),d=this.ep2*Math.pow(l,2),p=Math.pow(d,2),h=Math.abs(l)>1e-10?Math.tan(r):0,g=Math.pow(h,2),m=Math.pow(g,2);t=1-this.es*Math.pow(s,2),c/=Math.sqrt(t);var f=Ee(r,s,l,this.en);o=this.a*(this.k0*c*(1+u/6*(1-g+d+u/20*(5-18*g+m+14*d-58*g*d+u/42*(61+179*m-m*g-479*g)))))+this.x0,n=this.a*(this.k0*(f-this.ml0+s*a*c/2*(1+u/12*(5-g+9*d+4*p+u/30*(61+m-58*g+270*d-330*g*d+u/56*(1385+543*m-m*g-3111*g))))))+this.y0}else{var y=l*Math.sin(a);if(Math.abs(Math.abs(y)-1)<1e-10)return 93;if(o=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,n=l*Math.cos(a)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(n))>=1){if(y-1>1e-10)return 93;n=0}else n=Math.acos(n);r<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=o,e.y=n,e},inverse:function(e){var o,n,i,r,a=(e.x-this.x0)*(1/this.a),s=(e.y-this.y0)*(1/this.a);if(this.es)if(o=this.ml0+s/this.k0,n=Se(o,this.es,this.en),Math.abs(n)1e-10?Math.tan(n):0,d=this.ep2*Math.pow(c,2),p=Math.pow(d,2),h=Math.pow(u,2),g=Math.pow(h,2);o=1-this.es*Math.pow(l,2);var m=a*Math.sqrt(o)/this.k0,f=Math.pow(m,2);i=n-(o*=u)*f/(1-this.es)*.5*(1-f/12*(5+3*h-9*d*h+d-4*p-f/30*(61+90*h-252*d*h+45*g+46*d-f/56*(1385+3633*h+4095*g+1574*g*h)))),r=x(this.long0+m*(1-f/6*(1+2*h+d-f/20*(5+28*h+24*g+8*d*h+6*d-f/42*(61+662*h+1320*g+720*g*h))))/c)}else i=t*P(s),r=0;else{var y=Math.exp(a/this.k0),A=.5*(y-1/y),v=this.lat0+s/this.k0,C=Math.cos(v);o=Math.sqrt((1-Math.pow(C,2))/(1+Math.pow(A,2))),i=Math.asin(o),s<0&&(i=-i),r=0===A&&0===C?0:x(Math.atan2(A,C)+this.long0)}return e.x=r,e.y=i,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]},Pe=function(e){var t=Math.exp(e);return t=(t-1/t)/2},xe=function(e,t){e=Math.abs(e),t=Math.abs(t);var o=Math.max(e,t),n=Math.min(e,t)/(o||1);return o*Math.sqrt(1+Math.pow(n,2))},ke=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,o=t-1;return 0===o?e:e*Math.log(t)/o}(t*(1+t/(xe(1,t)+1))),e<0?-t:t},Ge=function(e,t){for(var o,n=2*Math.cos(2*t),i=e.length-1,r=e[i],a=0;--i>=0;)o=n*r-a+e[i],a=r,r=o;return t+o*Math.sin(2*t)},Re=function(e,t,o){for(var n,i,r=Math.sin(t),a=Math.cos(t),s=Pe(o),l=function(e){var t=Math.exp(e);return t=(t+1/t)/2}(o),c=2*a*l,u=-2*r*s,d=e.length-1,p=e[d],h=0,g=0,m=0;--d>=0;)n=g,i=h,p=c*(g=p)-n-u*(h=m)+e[d],m=u*g-i+c*h;return[(c=r*l)*p-(u=a*s)*m,c*m+u*p]},Te={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Me.init.apply(this),this.forward=Me.forward,this.inverse=Me.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),o=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),o*=t,this.cgb[1]=o*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=o*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),o*=t,this.cgb[2]=o*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=o*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),o*=t,this.cgb[3]=o*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=o*(1237/630+t*(t*(-24832/14175)-2.4)),o*=t,this.cgb[4]=o*(4174/315+t*(-144838/6237)),this.cbg[4]=o*(-734/315+t*(109598/31185)),o*=t,this.cgb[5]=o*(601676/22275),this.cbg[5]=o*(444337/155925),o=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+o*(1/4+o*(1/64+o/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=o*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=o*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),o*=t,this.utg[2]=o*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=o*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),o*=t,this.utg[3]=o*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=o*(49561/161280+t*(-179/168+t*(6601661/7257600))),o*=t,this.utg[4]=o*(-4583/161280+t*(108847/3991680)),this.gtu[4]=o*(34729/80640+t*(-3418889/1995840)),o*=t,this.utg[5]=o*(-20648693/638668800),this.gtu[5]=.6650675310896665*o;var n=Ge(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(e,t){for(var o,n=2*Math.cos(t),i=e.length-1,r=e[i],a=0;--i>=0;)o=n*r-a+e[i],a=r,r=o;return Math.sin(t)*o}(this.gtu,2*n))},forward:function(e){var t=x(e.x-this.long0),o=e.y;o=Ge(this.cbg,o);var n=Math.sin(o),i=Math.cos(o),r=Math.sin(t),a=Math.cos(t);o=Math.atan2(n,a*i),t=Math.atan2(r*i,xe(n,i*a)),t=ke(Math.tan(t));var s,l,c=Re(this.gtu,2*o,2*t);return o+=c[0],t+=c[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*o+this.Zb)+this.y0):(s=1/0,l=1/0),e.x=s,e.y=l,e},inverse:function(e){var t,o,n=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var r=Re(this.utg,2*i,2*n);i+=r[0],n+=r[1],n=Math.atan(Pe(n));var a=Math.sin(i),s=Math.cos(i),l=Math.sin(n),c=Math.cos(n);i=Math.atan2(a*c,xe(l,c*s)),n=Math.atan2(l,c*s),t=x(n+this.long0),o=Ge(this.cgb,i)}else t=1/0,o=1/0;return e.x=t,e.y=o,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"]},Oe={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(x(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*o,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Te.init.apply(this),this.forward=Te.forward,this.inverse=Te.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},Le=function(e,t){return Math.pow((1-e)/(1+e),t)},De={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+i)/(Math.pow(Math.tan(.5*this.lat0+i),this.C)*Le(this.e*e,this.ratexp))},forward:function(e){var o=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+i),this.C)*Le(this.e*Math.sin(n),this.ratexp))-t,e.x=this.C*o,e},inverse:function(e){for(var o=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+i)/this.K,1/this.C),a=20;a>0&&(n=2*Math.atan(r*Le(this.e*Math.sin(e.y),-.5*this.e))-t,!(Math.abs(n-e.y)<1e-14));--a)e.y=n;return a?(e.x=o,e.y=n,e):null},names:["gauss"]},je={init:function(){De.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,o,n,i;return e.x=x(e.x-this.long0),De.forward.apply(this,[e]),t=Math.sin(e.y),o=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*o*n),e.x=i*o*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*o*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,o,n,i,r;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,r=Math.sqrt(e.x*e.x+e.y*e.y)){var a=2*Math.atan2(r,this.R2);t=Math.sin(a),o=Math.cos(a),i=Math.asin(o*this.sinc0+e.y*t*this.cosc0/r),n=Math.atan2(e.x*t,r*this.cosc0*o-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,De.inverse.apply(this,[e]),e.x=x(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},Ue={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+P(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*M(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/k(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=M(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-t,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var o,n,i,r,a,s,l=e.x,c=e.y,u=Math.sin(c),d=Math.cos(c),p=x(l-this.long0);return Math.abs(Math.abs(l-this.long0)-Math.PI)<=1e-10&&Math.abs(c+this.lat0)<=1e-10?(e.x=NaN,e.y=NaN,e):this.sphere?(o=2*this.k0/(1+this.sinlat0*u+this.coslat0*d*Math.cos(p)),e.x=this.a*o*d*Math.sin(p)+this.x0,e.y=this.a*o*(this.coslat0*u-this.sinlat0*d*Math.cos(p))+this.y0,e):(n=2*Math.atan(this.ssfn_(c,u,this.e))-t,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=1e-10?(a=k(this.e,c*this.con,this.con*u),s=2*this.a*this.k0*a/this.cons,e.x=this.x0+s*Math.sin(l-this.long0),e.y=this.y0-this.con*s*Math.cos(l-this.long0),e):(Math.abs(this.sinlat0)<1e-10?(o=2*this.a*this.k0/(1+r*Math.cos(p)),e.y=o*i):(o=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*r*Math.cos(p))),e.y=o*(this.cosX0*i-this.sinX0*r*Math.cos(p))+this.y0),e.x=o*r*Math.sin(p)+this.x0,e))},inverse:function(e){var o,n,i,r,a;e.x-=this.x0,e.y-=this.y0;var s=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var l=2*Math.atan(s/(2*this.a*this.k0));return o=this.long0,n=this.lat0,s<=1e-10?(e.x=o,e.y=n,e):(n=Math.asin(Math.cos(l)*this.sinlat0+e.y*Math.sin(l)*this.coslat0/s),o=Math.abs(this.coslat0)<1e-10?this.lat0>0?x(this.long0+Math.atan2(e.x,-1*e.y)):x(this.long0+Math.atan2(e.x,e.y)):x(this.long0+Math.atan2(e.x*Math.sin(l),s*this.coslat0*Math.cos(l)-e.y*this.sinlat0*Math.sin(l))),e.x=o,e.y=n,e)}if(Math.abs(this.coslat0)<=1e-10){if(s<=1e-10)return n=this.lat0,o=this.long0,e.x=o,e.y=n,e;e.x*=this.con,e.y*=this.con,i=s*this.cons/(2*this.a*this.k0),n=this.con*G(this.e,i),o=this.con*x(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else r=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),o=this.long0,s<=1e-10?a=this.X0:(a=Math.asin(Math.cos(r)*this.sinX0+e.y*Math.sin(r)*this.cosX0/s),o=x(this.long0+Math.atan2(e.x*Math.sin(r),s*this.cosX0*Math.cos(r)-e.y*this.sinX0*Math.sin(r)))),n=-1*G(this.e,Math.tan(.5*(t+a)));return e.x=o,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,o,n){return o*=n,Math.tan(.5*(t+e))*Math.pow((1-o)/(1+o),.5*n)}},Ne={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),o=this.a,n=1/this.rf,i=2*n-Math.pow(n,2),r=this.e=Math.sqrt(i);this.R=this.k0*o*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+r*t)/(1-r*t));this.K=a-this.alpha*s+this.alpha*r/2*l},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),o=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+o)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),r=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(r)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(r))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(r));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,o=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(o/this.R))-Math.PI/4),r=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,l=0,c=r,u=-1e3,d=0;Math.abs(c-u)>1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+r/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),u=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=s,e.y=c,e},names:["somerc"]},Be={init:function(){var e,n,a,s,l,c,u,d,p,h,g,m,f,y=0,A=0,v=0,C=0,I=0,b=0,w=0;this.no_off=(f="object"==typeof(m=this).PROJECTION?Object.keys(m.PROJECTION)[0]:m.PROJECTION,"no_uoff"in m||"no_off"in m||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(f)),this.no_rot="no_rot"in this;var _=!1;"alpha"in this&&(_=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),_&&(w=this.alpha),E&&(y=this.rectified_grid_angle*o),_||E)A=this.longc;else if(v=this.long1,I=this.lat1,C=this.long2,b=this.lat2,Math.abs(I-b)<=1e-7||(e=Math.abs(I))<=1e-7||Math.abs(e-t)<=1e-7||Math.abs(Math.abs(this.lat0)-t)<=1e-7||Math.abs(Math.abs(b)-t)<=1e-7)throw new Error;var S=1-this.es;n=Math.sqrt(S),Math.abs(this.lat0)>1e-10?(d=Math.sin(this.lat0),a=Math.cos(this.lat0),e=1-this.es*d*d,this.B=a*a,this.B=Math.sqrt(1+this.es*this.B*this.B/S),this.A=this.B*this.k0*n/e,(l=(s=this.B*n/(a*Math.sqrt(e)))*s-1)<=0?l=0:(l=Math.sqrt(l),this.lat0<0&&(l=-l)),this.E=l+=s,this.E*=Math.pow(k(this.e,this.lat0,d),this.B)):(this.B=1/n,this.A=this.k0,this.E=s=l=1),_||E?(_?(g=Math.asin(Math.sin(w)/s),E||(y=w)):(g=y,w=Math.asin(s*Math.sin(g))),this.lam0=A-Math.asin(.5*(l-1/l)*Math.tan(g))/this.B):(c=Math.pow(k(this.e,I,Math.sin(I)),this.B),u=Math.pow(k(this.e,b,Math.sin(b)),this.B),l=this.E/c,p=(u-c)/(u+c),h=((h=this.E*this.E)-u*c)/(h+u*c),(e=v-C)<-Math.pi?C-=r:e>Math.pi&&(C+=r),this.lam0=x(.5*(v+C)-Math.atan(h*Math.tan(.5*this.B*(v-C))/p)/this.B),g=Math.atan(2*Math.sin(this.B*x(v-this.lam0))/(l-1/l)),y=w=Math.asin(s*Math.sin(g))),this.singam=Math.sin(g),this.cosgam=Math.cos(g),this.sinrot=Math.sin(y),this.cosrot=Math.cos(y),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(s*s-1)/Math.cos(w))),this.lat0<0&&(this.u_0=-this.u_0)),l=.5*g,this.v_pole_n=this.ArB*Math.log(Math.tan(i-l)),this.v_pole_s=this.ArB*Math.log(Math.tan(i+l))},forward:function(e){var o,n,i,r,a,s,l,c,u={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-t)>1e-10){if(o=.5*((a=this.E/Math.pow(k(this.e,e.y,Math.sin(e.y)),this.B))-(s=1/a)),n=.5*(a+s),r=Math.sin(this.B*e.x),i=(o*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(i)-1)<1e-10)throw new Error;c=.5*this.ArB*Math.log((1-i)/(1+i)),s=Math.cos(this.B*e.x),l=Math.abs(s)<1e-7?this.A*e.x:this.ArB*Math.atan2(o*this.cosgam+r*this.singam,s)}else c=e.y>0?this.v_pole_n:this.v_pole_s,l=this.ArB*e.y;return this.no_rot?(u.x=l,u.y=c):(l-=this.u_0,u.x=c*this.cosrot+l*this.sinrot,u.y=l*this.cosrot-c*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(e){var o,n,i,r,a,s,l,c={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(n=e.y,o=e.x):(n=e.x*this.cosrot-e.y*this.sinrot,o=e.y*this.cosrot+e.x*this.sinrot+this.u_0),r=.5*((i=Math.exp(-this.BrA*n))-1/i),a=.5*(i+1/i),l=((s=Math.sin(this.BrA*o))*this.cosgam+r*this.singam)/a,Math.abs(Math.abs(l)-1)<1e-10)c.x=0,c.y=l<0?-t:t;else{if(c.y=this.E/Math.sqrt((1+l)/(1-l)),c.y=G(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(r*this.cosgam-s*this.singam,Math.cos(this.BrA*o))}return c.x+=this.lam0,c},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},Fe={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),o=Math.cos(this.lat1),n=M(this.e,t,o),i=k(this.e,this.lat1,t),r=Math.sin(this.lat2),a=Math.cos(this.lat2),s=M(this.e,r,a),l=k(this.e,this.lat2,r),c=k(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(n/s)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var o=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=1e-10&&(n=P(n)*(t-2e-10));var i,r,a=Math.abs(Math.abs(n)-t);if(a>1e-10)i=k(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if((a=n*this.ns)<=0)return null;r=0}var s=this.ns*x(o-this.long0);return e.x=this.k0*(r*Math.sin(s))+this.x0,e.y=this.k0*(this.rh-r*Math.cos(s))+this.y0,e},inverse:function(e){var o,n,i,r,a,s=(e.x-this.x0)/this.k0,l=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(o=Math.sqrt(s*s+l*l),n=1):(o=-Math.sqrt(s*s+l*l),n=-1);var c=0;if(0!==o&&(c=Math.atan2(n*s,n*l)),0!==o||this.ns>0){if(n=1/this.ns,i=Math.pow(o/(this.a*this.f0),n),-9999===(r=G(this.e,i)))return null}else r=-t;return a=x(c/this.ns+this.long0),e.x=a,e.y=r,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc"]},ze={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,o,n,i,r,a,s,l=e.x,c=e.y,u=x(l-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),o=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),n=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(o)+Math.sin(this.ad)*Math.cos(o)*Math.cos(n)),r=Math.asin(Math.cos(o)*Math.sin(n)/Math.cos(i)),a=this.n*r,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,o,n,i,r,a,s,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),r=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/r,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),o=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-o/this.alfa,a=t,s=0;var c=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,c+=1}while(0===s&&c<15);return c>=15?null:e},names:["Krovak","krovak"]},Ve=function(e,t,o,n,i){return e*i-t*Math.sin(2*i)+o*Math.sin(4*i)-n*Math.sin(6*i)},We=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},qe=function(e){return.375*e*(1+.25*e*(1+.46875*e))},He=function(e){return.05859375*e*e*(1+.75*e)},Ye=function(e){return e*e*e*(35/3072)},Je=function(e,t,o){var n=t*o;return e/Math.sqrt(1-n*n)},Ze=function(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(o=e*t)*o)-.5/e*Math.log((1-o)/(1+o))):2*t},$e={init:function(){var e,o=Math.abs(this.lat0);if(Math.abs(o-t)<1e-10?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(o)<1e-10?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Qe(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,o=[];return o[0]=.3333333333333333*e,t=e*e,o[0]+=.17222222222222222*t,o[1]=.06388888888888888*t,t*=e,o[0]+=.10257936507936508*t,o[1]+=.0664021164021164*t,o[2]=.016415012942191543*t,o}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Qe(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var o,n,r,a,s,l,c,u,d,p,h=e.x,g=e.y;if(h=x(h-this.long0),this.sphere){if(s=Math.sin(g),p=Math.cos(g),r=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+p*r:1+this.sinph0*s+this.cosph0*p*r)<=1e-10)return null;o=(n=Math.sqrt(2/n))*p*Math.sin(h),n*=this.mode===this.EQUIT?s:this.cosph0*s-this.sinph0*p*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(g+this.lat0)<1e-10)return null;n=i-.5*g,o=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(h),n*=r}}else{switch(c=0,u=0,d=0,r=Math.cos(h),a=Math.sin(h),s=Math.sin(g),l=Qe(this.e,s),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(c=l/this.qp,u=Math.sqrt(1-c*c)),this.mode){case this.OBLIQ:d=1+this.sinb1*c+this.cosb1*u*r;break;case this.EQUIT:d=1+u*r;break;case this.N_POLE:d=t+g,l=this.qp-l;break;case this.S_POLE:d=g-t,l=this.qp+l}if(Math.abs(d)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),n=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*c-this.sinb1*u*r):(d=Math.sqrt(2/(1+u*r)))*c*this.ymf,o=this.xmf*d*u*a;break;case this.N_POLE:case this.S_POLE:l>=0?(o=(d=Math.sqrt(l))*a,n=r*(this.mode===this.S_POLE?d:-d)):o=n=0}}return e.x=this.a*o+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var o,n,i,r,a,s,l,c,u,d,p=e.x/this.a,h=e.y/this.a;if(this.sphere){var g,m=0,f=0;if((n=.5*(g=Math.sqrt(p*p+h*h)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(f=Math.sin(n),m=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(g)<=1e-10?0:Math.asin(h*f/g),p*=f,h=m*g;break;case this.OBLIQ:n=Math.abs(g)<=1e-10?this.lat0:Math.asin(m*this.sinph0+h*f*this.cosph0/g),p*=f*this.cosph0,h=(m-Math.sin(n)*this.sinph0)*g;break;case this.N_POLE:h=-h,n=t-n;break;case this.S_POLE:n-=t}o=0!==h||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(p,h):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(p/=this.dd,h*=this.dd,(s=Math.sqrt(p*p+h*h))<1e-10)return e.x=this.long0,e.y=this.lat0,e;r=2*Math.asin(.5*s/this.rq),i=Math.cos(r),p*=r=Math.sin(r),this.mode===this.OBLIQ?(l=i*this.sinb1+h*r*this.cosb1/s,a=this.qp*l,h=s*this.cosb1*i-h*this.sinb1*r):(l=h*r/s,a=this.qp*l,h=s*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(h=-h),!(a=p*p+h*h))return e.x=this.long0,e.y=this.lat0,e;l=1-a/this.qp,this.mode===this.S_POLE&&(l=-l)}o=Math.atan2(p,h),c=Math.asin(l),u=this.apa,d=c+c,n=c+u[0]*Math.sin(d)+u[1]*Math.sin(d+d)+u[2]*Math.sin(d+d+d)}return e.x=x(this.long0+o),e.y=n,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},et=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)},tt={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=M(this.e3,this.sin_po,this.cos_po),this.qs1=Qe(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=M(this.e3,this.sin_po,this.cos_po),this.qs2=Qe(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Qe(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,o=e.y;this.sin_phi=Math.sin(o),this.cos_phi=Math.cos(o);var n=Qe(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,r=this.ns0*x(t-this.long0),a=i*Math.sin(r)+this.x0,s=this.rh-i*Math.cos(r)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,o,n,i,r,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,0!==t&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(o=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,o)),r=x(i/this.ns0+this.long0),e.x=r,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var o,n,i,r,a=et(.5*t);if(e<1e-10)return a;for(var s=e*e,l=1;l<=25;l++)if(a+=r=.5*(i=1-(n=e*(o=Math.sin(a)))*n)*i/Math.cos(a)*(t/(1-s)-o/i+.5/e*Math.log((1-n)/(1+n))),Math.abs(r)<=1e-7)return a;return null}},ot={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,o,n,i,r,a,s,l=e.x,c=e.y;return n=x(l-this.long0),t=Math.sin(c),o=Math.cos(c),i=Math.cos(n),(r=this.sin_p14*t+this.cos_p14*o*i)>0||Math.abs(r)<=1e-10?(a=this.x0+1*this.a*o*Math.sin(n)/r,s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*o*i)/r):(a=this.x0+this.infinity_dist*o*Math.sin(n),s=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*o*i)),e.x=a,e.y=s,e},inverse:function(e){var t,o,n,i,r,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),o=Math.sin(i),n=Math.cos(i),a=et(n*this.sin_p14+e.y*o*this.cos_p14/t),r=Math.atan2(e.x*o,t*this.cos_p14*n-e.y*this.sin_p14*o),r=x(this.long0+r)):(a=this.phic0,r=0),e.x=r,e.y=a,e},names:["gnom"]},nt={init:function(){this.sphere||(this.k0=M(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,o,n=e.x,i=e.y,r=x(n-this.long0);if(this.sphere)t=this.x0+this.a*r*Math.cos(this.lat_ts),o=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=Qe(this.e,Math.sin(i));t=this.x0+this.a*this.k0*r,o=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=o,e},inverse:function(e){var o,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(o=x(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,o){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(o)-n)<1e-6)return o<0?-1*t:t;for(var i,r,a,s,l=Math.asin(.5*o),c=0;c<30;c++)if(r=Math.sin(l),a=Math.cos(l),s=e*r,l+=i=Math.pow(1-s*s,2)/(2*a)*(o/(1-e*e)-r/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return l;return NaN}(this.e,2*e.y*this.k0/this.a),o=x(this.long0+e.x/(this.a*this.k0))),e.x=o,e.y=n,e},names:["cea"]},it={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,o=e.y,n=x(t-this.long0),i=Ze(o-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,o=e.y;return e.x=x(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Ze(this.lat0+(o-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},rt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=We(this.es),this.e1=qe(this.es),this.e2=He(this.es),this.e3=Ye(this.es),this.ml0=this.a*Ve(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,o,n,i=e.x,r=e.y,a=x(i-this.long0);if(n=a*Math.sin(r),this.sphere)Math.abs(r)<=1e-10?(t=this.a*a,o=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(r),o=this.a*(Ze(r-this.lat0)+(1-Math.cos(n))/Math.tan(r)));else if(Math.abs(r)<=1e-10)t=this.a*a,o=-1*this.ml0;else{var s=Je(this.a,this.e,Math.sin(r))/Math.tan(r);t=s*Math.sin(n),o=this.a*Ve(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+s*(1-Math.cos(n))}return e.x=t+this.x0,e.y=o+this.y0,e},inverse:function(e){var t,o,n,i,r,a,s,l,c;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=1e-10)t=x(n/this.a+this.long0),o=0;else{var u;for(a=this.lat0+i/this.a,s=n*n/this.a/this.a+a*a,l=a,r=20;r;--r)if(l+=c=-1*(a*(l*(u=Math.tan(l))+1)-l-.5*(l*l+s)*u)/((l-a)/u-1),Math.abs(c)<=1e-10){o=l;break}t=x(this.long0+Math.asin(n*Math.tan(l)/this.a)/Math.sin(o))}else if(Math.abs(i+this.ml0)<=1e-10)o=0,t=x(this.long0+n/this.a);else{var d,p,h,g,m;for(a=(this.ml0+i)/this.a,s=n*n/this.a/this.a+a*a,l=a,r=20;r;--r)if(m=this.e*Math.sin(l),d=Math.sqrt(1-m*m)*Math.tan(l),p=this.a*Ve(this.e0,this.e1,this.e2,this.e3,l),h=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(a*(d*(g=p/this.a)+1)-g-.5*d*(g*g+s))/(this.es*Math.sin(2*l)*(g*g+s-2*a*g)/(4*d)+(a-g)*(d*h-2/Math.sin(2*l))-h),Math.abs(c)<=1e-10){o=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(o),2))*Math.tan(o),t=x(this.long0+Math.asin(n*d/this.a)/Math.sin(o))}return e.x=t,e.y=o,e},names:["Polyconic","poly"]},at={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var o,n=t.x,i=t.y-this.lat0,r=n-this.long0,a=i/e*1e-5,s=r,l=1,c=0;for(o=1;o<=10;o++)l*=a,c+=this.A[o]*l;var u,d=c,p=s,h=1,g=0,m=0,f=0;for(o=1;o<=6;o++)u=g*d+h*p,h=h*d-g*p,g=u,m=m+this.B_re[o]*h-this.B_im[o]*g,f=f+this.B_im[o]*h+this.B_re[o]*g;return t.x=f*this.a+this.x0,t.y=m*this.a+this.y0,t},inverse:function(t){var o,n,i=t.x,r=t.y,a=i-this.x0,s=(r-this.y0)/this.a,l=a/this.a,c=1,u=0,d=0,p=0;for(o=1;o<=6;o++)n=u*s+c*l,c=c*s-u*l,u=n,d=d+this.C_re[o]*c-this.C_im[o]*u,p=p+this.C_im[o]*c+this.C_re[o]*u;for(var h=0;h.999999999999&&(o=.999999999999),t=Math.asin(o);var n=x(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),o=(2*t+Math.sin(2*t))/Math.PI,Math.abs(o)>1&&(o=1);var i=Math.asin(o);return e.x=n,e.y=i,e},names:["Mollweide","moll"]},ut={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=We(this.es),this.e1=qe(this.es),this.e2=He(this.es),this.e3=Ye(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=M(this.e,this.sinphi,this.cosphi),this.ml1=Ve(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=M(this.e,this.sinphi,this.cosphi),this.ml2=Ve(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Ve(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,o=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var i=Ve(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-i)}var r=this.ns*x(o-this.long0),a=this.x0+t*Math.sin(r),s=this.y0+this.rh-t*Math.cos(r);return e.x=a,e.y=s,e},inverse:function(e){var t,o,n,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(o=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(o=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var r=0;if(0!==o&&(r=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=x(this.long0+r/this.ns),n=Ze(this.g-o/this.a),e.x=i,e.y=n,e;var a=this.g-o/this.a;return n=Ke(a,this.e0,this.e1,this.e2,this.e3),i=x(this.long0+r/this.ns),e.x=i,e.y=n,e},names:["Equidistant_Conic","eqdc"]},dt={init:function(){this.R=this.a},forward:function(e){var o,n,i=e.x,r=e.y,a=x(i-this.long0);Math.abs(r)<=1e-10&&(o=this.x0+this.R*a,n=this.y0);var s=et(2*Math.abs(r/Math.PI));(Math.abs(a)<=1e-10||Math.abs(Math.abs(r)-t)<=1e-10)&&(o=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math.tan(.5*s));var l=.5*Math.abs(Math.PI/a-a/Math.PI),c=l*l,u=Math.sin(s),d=Math.cos(s),p=d/(u+d-1),h=p*p,g=p*(2/u-1),m=g*g,f=Math.PI*this.R*(l*(p-m)+Math.sqrt(c*(p-m)*(p-m)-(m+c)*(h-m)))/(m+c);a<0&&(f=-f),o=this.x0+f;var y=c+p;return f=Math.PI*this.R*(g*y-l*Math.sqrt((m+c)*(c+1)-y*y))/(m+c),n=r>=0?this.y0+f:this.y0-f,e.x=o,e.y=n,e},inverse:function(e){var t,o,n,i,r,a,s,l,c,u,d,p;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,r=(n=e.x/d)*n+(i=e.y/d)*i,d=3*(i*i/(l=-2*(a=-Math.abs(i)*(1+r))+1+2*i*i+r*r)+(2*(s=a-2*i*i+n*n)*s*s/l/l/l-9*a*s/l/l)/27)/(c=(a-s*s/3/l)/l)/(u=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),p=Math.acos(d)/3,o=e.y>=0?(-u*Math.cos(p+Math.PI/3)-s/3/l)*Math.PI:-(-u*Math.cos(p+Math.PI/3)-s/3/l)*Math.PI,t=Math.abs(n)<1e-10?this.long0:x(this.long0+Math.PI*(r-1+Math.sqrt(1+2*(n*n-i*i)+r*r))/2/n),e.x=t,e.y=o,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},pt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var o,n,i,r,a,s,l,c,u,d,p,h,g,m,f,y,A,v,C,I,b,w,_=e.x,E=e.y,S=Math.sin(e.y),M=Math.cos(e.y),P=x(_-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(e.x=this.x0+this.a*(t-E)*Math.sin(P),e.y=this.y0-this.a*(t-E)*Math.cos(P),e):Math.abs(this.sin_p12+1)<=1e-10?(e.x=this.x0+this.a*(t+E)*Math.sin(P),e.y=this.y0+this.a*(t+E)*Math.cos(P),e):(v=this.sin_p12*S+this.cos_p12*M*Math.cos(P),A=(y=Math.acos(v))?y/Math.sin(y):1,e.x=this.x0+this.a*A*M*Math.sin(P),e.y=this.y0+this.a*A*(this.cos_p12*S-this.sin_p12*M*Math.cos(P)),e):(o=We(this.es),n=qe(this.es),i=He(this.es),r=Ye(this.es),Math.abs(this.sin_p12-1)<=1e-10?(a=this.a*Ve(o,n,i,r,t),s=this.a*Ve(o,n,i,r,E),e.x=this.x0+(a-s)*Math.sin(P),e.y=this.y0-(a-s)*Math.cos(P),e):Math.abs(this.sin_p12+1)<=1e-10?(a=this.a*Ve(o,n,i,r,t),s=this.a*Ve(o,n,i,r,E),e.x=this.x0+(a+s)*Math.sin(P),e.y=this.y0+(a+s)*Math.cos(P),e):(l=S/M,c=Je(this.a,this.e,this.sin_p12),u=Je(this.a,this.e,S),d=Math.atan((1-this.es)*l+this.es*c*this.sin_p12/(u*M)),C=0===(p=Math.atan2(Math.sin(P),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(P)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(p)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(P)*Math.cos(d)/Math.sin(p)),h=this.e*this.sin_p12/Math.sqrt(1-this.es),y=c*C*(1-(I=C*C)*(f=(g=this.e*this.cos_p12*Math.cos(p)/Math.sqrt(1-this.es))*g)*(1-f)/6+(b=I*C)/8*(m=h*g)*(1-2*f)+(w=b*C)/120*(f*(4-7*f)-3*h*h*(1-7*f))-w*C/48*m),e.x=this.x0+y*Math.sin(p),e.y=this.y0+y*Math.cos(p),e))},inverse:function(e){var o,n,i,r,a,s,l,c,u,d,p,h,g,m,f,y,A,v,C,I,b,w,_;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((o=Math.sqrt(e.x*e.x+e.y*e.y))>2*t*this.a)return;return n=o/this.a,i=Math.sin(n),r=Math.cos(n),a=this.long0,Math.abs(o)<=1e-10?s=this.lat0:(s=et(r*this.sin_p12+e.y*i*this.cos_p12/o),l=Math.abs(this.lat0)-t,a=Math.abs(l)<=1e-10?this.lat0>=0?x(this.long0+Math.atan2(e.x,-e.y)):x(this.long0-Math.atan2(-e.x,e.y)):x(this.long0+Math.atan2(e.x*i,o*this.cos_p12*r-e.y*this.sin_p12*i))),e.x=a,e.y=s,e}return c=We(this.es),u=qe(this.es),d=He(this.es),p=Ye(this.es),Math.abs(this.sin_p12-1)<=1e-10?(h=this.a*Ve(c,u,d,p,t),o=Math.sqrt(e.x*e.x+e.y*e.y),s=Ke((h-o)/this.a,c,u,d,p),a=x(this.long0+Math.atan2(e.x,-1*e.y)),e.x=a,e.y=s,e):Math.abs(this.sin_p12+1)<=1e-10?(h=this.a*Ve(c,u,d,p,t),o=Math.sqrt(e.x*e.x+e.y*e.y),s=Ke((o-h)/this.a,c,u,d,p),a=x(this.long0+Math.atan2(e.x,e.y)),e.x=a,e.y=s,e):(o=Math.sqrt(e.x*e.x+e.y*e.y),f=Math.atan2(e.x,e.y),g=Je(this.a,this.e,this.sin_p12),y=Math.cos(f),v=-(A=this.e*this.cos_p12*y)*A/(1-this.es),C=3*this.es*(1-v)*this.sin_p12*this.cos_p12*y/(1-this.es),w=1-v*(b=(I=o/g)-v*(1+v)*Math.pow(I,3)/6-C*(1+3*v)*Math.pow(I,4)/24)*b/2-I*b*b*b/6,m=Math.asin(this.sin_p12*Math.cos(b)+this.cos_p12*Math.sin(b)*y),a=x(this.long0+Math.asin(Math.sin(f)*Math.sin(b)/Math.cos(m))),_=Math.sin(m),s=Math.atan2((_-this.es*w*this.sin_p12)*Math.tan(m),_*(1-this.es)),e.x=a,e.y=s,e)},names:["Azimuthal_Equidistant","aeqd"]},ht={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,o,n,i,r,a,s,l=e.x,c=e.y;return n=x(l-this.long0),t=Math.sin(c),o=Math.cos(c),i=Math.cos(n),((r=this.sin_p14*t+this.cos_p14*o*i)>0||Math.abs(r)<=1e-10)&&(a=1*this.a*o*Math.sin(n),s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*o*i)),e.x=a,e.y=s,e},inverse:function(e){var o,n,i,r,a,s,l;return e.x-=this.x0,e.y-=this.y0,o=Math.sqrt(e.x*e.x+e.y*e.y),n=et(o/this.a),i=Math.sin(n),r=Math.cos(n),s=this.long0,Math.abs(o)<=1e-10?(l=this.lat0,e.x=s,e.y=l,e):(l=et(r*this.sin_p14+e.y*i*this.cos_p14/o),a=Math.abs(this.lat0)-t,Math.abs(a)<=1e-10?(s=this.lat0>=0?x(this.long0+Math.atan2(e.x,-e.y)):x(this.long0-Math.atan2(-e.x,e.y)),e.x=s,e.y=l,e):(s=x(this.long0+Math.atan2(e.x*i,o*this.cos_p14*r-e.y*this.sin_p14*i)),e.x=s,e.y=l,e))},names:["ortho"]},gt=1,mt=2,ft=3,yt=4,At=5,vt=6,Ct=1,It=2,bt=3,wt=4;function _t(e,o,n,r){var s;return e<1e-10?(r.value=Ct,s=0):(s=Math.atan2(o,n),Math.abs(s)<=i?r.value=Ct:s>i&&s<=t+i?(r.value=It,s-=t):s>t+i||s<=-(t+i)?(r.value=bt,s=s>=0?s-a:s+a):(r.value=wt,s+=t)),s}function Et(e,t){var o=e+t;return o<-a?o+=r:o>+a&&(o-=r),o}var St,Mt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=t-i/2?this.face=At:this.lat0<=-(t-i/2)?this.face=vt:Math.abs(this.long0)<=i?this.face=gt:Math.abs(this.long0)<=t+i?this.face=this.long0>0?mt:yt:this.face=ft,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var o,n,r,s,l,c,u={x:0,y:0},d={value:0};if(e.x-=this.long0,o=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===At)s=t-o,n>=i&&n<=t+i?(d.value=Ct,r=n-t):n>t+i||n<=-(t+i)?(d.value=It,r=n>0?n-a:n+a):n>-(t+i)&&n<=-i?(d.value=bt,r=n+t):(d.value=wt,r=n);else if(this.face===vt)s=t+o,n>=i&&n<=t+i?(d.value=Ct,r=-n+t):n=-i?(d.value=It,r=-n):n<-i&&n>=-(t+i)?(d.value=bt,r=-n-t):(d.value=wt,r=n>0?-n+a:-n-a);else{var p,h,g,m,f,y;this.face===mt?n=Et(n,+t):this.face===ft?n=Et(n,+a):this.face===yt&&(n=Et(n,-t)),m=Math.sin(o),f=Math.cos(o),y=Math.sin(n),p=f*Math.cos(n),h=f*y,g=m,this.face===gt?r=_t(s=Math.acos(p),g,h,d):this.face===mt?r=_t(s=Math.acos(h),g,-p,d):this.face===ft?r=_t(s=Math.acos(-p),g,-h,d):this.face===yt?r=_t(s=Math.acos(-h),g,p,d):(s=r=0,d.value=Ct)}return c=Math.atan(12/a*(r+Math.acos(Math.sin(r)*Math.cos(i))-t)),l=Math.sqrt((1-Math.cos(s))/(Math.cos(c)*Math.cos(c))/(1-Math.cos(Math.atan(1/Math.cos(r))))),d.value===It?c+=t:d.value===bt?c+=a:d.value===wt&&(c+=1.5*a),u.x=l*Math.cos(c),u.y=l*Math.sin(c),u.x=u.x*this.a+this.x0,u.y=u.y*this.a+this.y0,e.x=u.x,e.y=u.y,e},inverse:function(e){var o,n,i,r,s,l,c,u,d,p,h,g,m={lam:0,phi:0},f={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),o=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?f.value=Ct:e.y>=0&&e.y>=Math.abs(e.x)?(f.value=It,o-=t):e.x<0&&-e.x>=Math.abs(e.y)?(f.value=bt,o=o<0?o+a:o-a):(f.value=wt,o+=t),d=a/12*Math.tan(o),s=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),l=Math.atan(s),(c=1-(i=Math.cos(o))*i*(r=Math.tan(n))*r*(1-Math.cos(Math.atan(1/Math.cos(l)))))<-1?c=-1:c>1&&(c=1),this.face===At)u=Math.acos(c),m.phi=t-u,f.value===Ct?m.lam=l+t:f.value===It?m.lam=l<0?l+a:l-a:f.value===bt?m.lam=l-t:m.lam=l;else if(this.face===vt)u=Math.acos(c),m.phi=u-t,f.value===Ct?m.lam=-l+t:f.value===It?m.lam=-l:f.value===bt?m.lam=-l-t:m.lam=l<0?-l-a:-l+a;else{var y,A,v;d=(y=c)*y,A=(d+=(v=d>=1?0:Math.sqrt(1-d)*Math.sin(l))*v)>=1?0:Math.sqrt(1-d),f.value===It?(d=A,A=-v,v=d):f.value===bt?(A=-A,v=-v):f.value===wt&&(d=A,A=v,v=-d),this.face===mt?(d=y,y=-A,A=d):this.face===ft?(y=-y,A=-A):this.face===yt&&(d=y,y=A,A=-d),m.phi=Math.acos(-v)-t,m.lam=Math.atan2(A,y),this.face===mt?m.lam=Et(m.lam,-t):this.face===ft?m.lam=Et(m.lam,-a):this.face===yt&&(m.lam=Et(m.lam,+t))}return 0!==this.es&&(p=m.phi<0?1:0,h=Math.tan(m.phi),g=this.b/Math.sqrt(h*h+this.one_minus_f_squared),m.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),p&&(m.phi=-m.phi)),m.lam+=this.long0,e.x=m.lam,e.y=m.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},Pt=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],xt=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],kt=n/5,Gt=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},Rt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=x(e.x-this.long0),o=Math.abs(e.y),i=Math.floor(o*kt);i<0?i=0:i>=18&&(i=17);var r={x:Gt(Pt[i],o=n*(o-.08726646259971647*i))*t,y:Gt(xt[i],o)};return e.y<0&&(r.y=-r.y),r.x=r.x*this.a*.8487+this.x0,r.y=r.y*this.a*1.3523+this.y0,r},inverse:function(e){var n={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(n.y>=1)n.x/=Pt[18][0],n.y=e.y<0?-t:t;else{var i=Math.floor(18*n.y);for(i<0?i=0:i>=18&&(i=17);;)if(xt[i][0]>n.y)--i;else{if(!(xt[i+1][0]<=n.y))break;++i}var r=xt[i],a=5*(n.y-r[0])/(xt[i+1][0]-r[0]);a=function(e,t,o,n){for(var i=t;n;--n){var r=e(i);if(i-=r,Math.abs(r)1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var r=function(e,t,o){for(var n=[],i=0;i3?n.splice(3,n.length-1):[],void 0!==this.listeners[e]?this.listeners[e].push({scope:o,callback:t,args:n}):this.listeners[e]=[{scope:o,callback:t,args:n}]},removeEventListener:function(e,t,o){if(void 0!==this.listeners[e]){for(var n=this.listeners[e].length,i=[],r=0;r0;for(var i=0;i2?n.splice(2,n.length-1):[],n=[o].concat(n),void 0!==this.listeners[e]){var a=this.listeners[e].slice(),s=a.length;for(r=0;r0?r.replace("%var%",i.join(" - ")):r.replace("%var%","%var% (not specified)")}catch(e){}return r}},I={normalyzeParameters:function(e){var t=null;if(e){var o=[];for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];i||(i=""),o.push(n+"="+i)}t=o.join("&")}return t},normalyzeUrl:function(e,t,o){var n=e;if(e){var i=e.indexOf("?");-1===i&&(n+="?"),-1!==i&&i!==e.length-1&&(n+="&")}return t&&(n+="string"==typeof t?t=t.replace("?",""):this.normalyzeParameters(t)),o&&(n=encodeURIComponent(n)),n},indent:function(e,t){return new Array((e||0)+1).join("\t")+t}},b=o(62),w=o.n(b),_={call:function(e){var t=v.getLogger("XHR");if(t.trace("[XHR::call()]"),w.a.polyfill(),!e.url)throw new Error("missing parameter : url is not defined !");if(!e.method)throw new Error("missing parameter : method is not defined !");e.format||(e.format="text");var o={};switch(o.url=e.url,o.data=e.data?e.data:null,o.method=e.method,o.timeOut=e.timeOut||0,o.scope=e.scope||this,o.proxy=e.proxy||null,o.content=e.content||null,o.headers=e.headers||{referer:"http://localhost"},e.method){case"DELETE":case"GET":break;case"PUT":case"POST":o.content=e.content?e.content:"application/x-www-form-urlencoded",o.headers=e.headers?e.headers:{referer:"http://localhost"};break;case"HEAD":case"OPTIONS":throw new Error("HTTP method not yet supported !");default:throw new Error("HTTP method unknown !")}switch(e.format){case"text":this.__call(o).then((function(o){t.trace(o),e.onResponse.call(this,o)})).catch((function(t){e.onFailure.call(this,t)}));break;case"json":this.__callJSON(o).then((function(o){t.trace(o),e.onResponse.call(this,o)})).catch((function(t){e.onFailure.call(this,t)}));break;case"xml":this.__callXML(o).then((function(o){t.trace(o),e.onResponse.call(this,o)})).catch((function(t){e.onFailure.call(this,t)}));break;default:throw new Error("This output Format is not yet supported !")}},__call:function(e){var t=v.getLogger("XHR");return t.trace("[XHR::__call()]"),new Promise((function(n,i){var r="POST"===e.method||"PUT"===e.method?1:0;e.data&&("object"==typeof e.data&&Object.keys(e.data).length||"string"==typeof e.data&&e.data.length)&&!r&&(e.url=I.normalyzeUrl(e.url,e.data)),t.trace("URL = ",e.url);var a=null;if("undefined"==typeof window){var s=o(60),l={headers:{Referer:"https://localhost"}};return e.data&&"string"==typeof e.data&&r&&(l={method:e.method,body:e.data,headers:{"Content-Type":e.content,Referer:"https://localhost"}}),s(e.url,l).then((function(e){if(e.ok)n(e.text());else{var t="Errors Occured on Http Request (status : '"+e.statusText+"' | url : '"+e.url+"')",o=e.status;i({message:t,status:o})}})).catch((function(e){i({message:e,status:-1})}))}if(window.XMLHttpRequest){t.trace("XMLHttpRequest"),(a=new XMLHttpRequest).open(e.method,e.url,!0),a.overrideMimeType=e.content;var c=null;e.timeOut>0&&(t.trace("XHR - TimeOut actif !"),c=window.setTimeout((function(){i({message:"TimeOut Occured on Http Request with XMLHttpRequest !",status:-1})}),e.timeOut)),r&&(t.trace("data = ",e.data),a.setRequestHeader("Content-type",e.content)),a.onerror=function(e){console.log(e),i(new Error("Errors Occured on Http Request with XMLHttpRequest !"))},a.ontimeout=function(e){console.log(e),i(new Error("TimeOut Occured on Http Request with XMLHttpRequest !"))},a.onreadystatechange=function(e){if(4===a.readyState)if(200===a.status)window.clearTimeout(c),n(a.response);else{var t="Errors Occured on Http Request (status : '"+e.target.statusText+"' | url : '"+e.target.responseURL+"' | response : '"+e.target.response+"')",o=e.target.status;i({message:t,status:o})}};var u=e.data&&r?e.data:null;a.send(u)}else{if(!window.XDomainRequest)throw new Error("CORS not supported");t.trace("XDomainRequest"),(a=new XDomainRequest).open(e.method,e.url),a.overrideMimeType=e.content,e.timeOut>0&&(a.timeout=e.timeout,t.trace("XHR - TimeOut actif !")),r&&a.setRequestHeader("Content-type",e.content),a.onerror=function(){i(new Error("Errors Occured on Http Request with XMLHttpRequest !"))},a.ontimeout=function(){i(new Error("TimeOut Occured on Http Request with XMLHttpRequest !"))},a.onload=function(e){if(200===a.status)n(a.responseText);else{var t="Errors Occured on Http Request (status : '"+e.target.statusText+"' | url : '"+e.target.responseURL+"')",o=e.target.status;i({message:t,status:o})}};var d=e.data&&r?e.data:null;a.send(d)}}))},__callJSON:function(e){return this.__call(e).then(JSON.parse).catch((function(t){console.log("_callJSON failed on : ",e.url,t)}))},__callXML:function(e){return this.__call(e).then((function(e){var t;"undefined"==typeof window?t=(new(0,o(36).DOMParser)).parseFromString(e,"text/xml"):window.DOMParser?t=(new window.DOMParser).parseFromString(e,"text/xml"):((t=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e));return t})).catch((function(t){console.log("__callXML failed on : ",e.url,t)}))}},E={uuid:(n=Math.floor(Date.now()),function(){return n++}),call:function(e){var t=v.getLogger("JSONP");if(t.trace("[JSONP::call ()]"),!e)throw t.error("missing parameter : options !"),new Error("missing parameter : options !");if(!e.url)throw t.error("missing parameter : options.url !"),new Error("missing parameter : options.url !");if(e.timeOut||(t.info("setting 'options.timeOut' default value"),e.timeOut=0),!e.onResponse)throw t.error("missing parameter : options.onResponse !"),new Error("missing parameter : options.onResponse !");var o="string"==typeof e.callbackSuffix?e.callbackSuffix:this.uuid(),n=!1,i=!1,r=e.url.indexOf("callback=");if(-1!==r){n=!0;var a=e.url.indexOf("&",r);-1===a&&(a=e.url.length);var s=e.url.substring(r+9,a);s&&(i=!0,e.callbackName=s,t.info("setting 'options.callbackName' value ("+e.callbackName+") from 'options.url' parameter"))}if(!n){var l=e.url.indexOf("?");-1===l?e.url=e.url+"?callback=":l===e.url.length?e.url=e.url+"callback=":e.url=e.url+"&callback=",t.info("setting callback default key in 'options.url' : "+e.url)}var c=!!e.callbackName||i;if(i||(e.callbackName||(t.info("setting 'options.callbackName' default value"),e.callbackName="callback",(o||""===o)&&(e.callbackName+=o)),e.url=e.url.replace("callback=","callback="+e.callbackName),t.info("setting callback function name in 'options.url' : "+e.url)),e.onTimeOut||(t.info("setting 'options.onTimeOut' default value"),e.onTimeOut=function(){console.log("TimeOut while invoking url : "+e.url)}),!c){var u=this,d=null;e.timeOut>0&&(d=window.setTimeout((function(){window[e.callbackName]=function(){},e.onTimeOut(),u._deleteScript(o)}),e.timeOut)),window[e.callbackName]=function(t){window.clearTimeout(d),e.onResponse(t),u._deleteScript(o)}}this._createScript(o,e.url)},_createScript:function(e,t){var o,n=document.getElementById("results"+e);(o=document.createElement("script")).setAttribute("type","text/javascript"),o.setAttribute("src",t),o.setAttribute("charset","UTF-8"),o.setAttribute("id","results"+e),o.setAttribute("async","true");var i=document.documentElement||document.getElementsByTagName("head")[0];null===n?i.appendChild(o):i.replaceChild(o,n)},_deleteScript:function(e){var t=document.getElementById("results"+e);if(t){var o=t.parentNode||document.documentElement;if(!o)return;o.removeChild(t)}}},S={send:function(e){var t=e||{method:"GET",protocol:"XHR",timeOut:0,format:null,wrap:!0,nocache:!0,output:"json",callback:null,callbackSuffix:null};if("undefined"!=typeof window||"JSONP"!==e.protocol){if("XHR"===e.protocol||"json"===e.format?t.wrap=!1:"JSONP"===e.protocol&&"xml"===e.format&&(t.wrap=!0),t.callback=null,t.output=t.wrap?"json":null,t.wrap){var o={};o.output=t.output,o.callback=t.callback,delete o.callback,t.url=I.normalyzeUrl(e.url,o)}switch(t.protocol){case"XHR":"GET"===e.method&&e.nocache&&(t.url=I.normalyzeUrl(t.url,{t:(new Date).getTime()})),_.call(t);break;case"JSONP":t.data&&(t.url=I.normalyzeUrl(t.url,t.data)),E.call(t);break;default:throw new Error("protocol not supported (XHR|JSONP) !")}}else console.log("Value (s) for parameter (s) 'protocol=JSONP (instead use XHR)' not supported to NodeJS")}};function M(e){if(!(this instanceof M))throw new TypeError("ErrorService constructor cannot be called as a function.");var t=e;"string"==typeof e||e instanceof String?(this.message=e,this.status=-1,this.type=M.TYPE_UNKERR):(this.message=t.message||"undefined!?",this.type=t.type,this.status=t.status||-1),this.name="ErrorService",this.stack=(new Error).stack}M.TYPE_SRVERR="SERVICE_ERROR",M.TYPE_USEERR="USAGE_ERROR",M.TYPE_UNKERR="UNKNOWN_ERROR",M.prototype=Object.create(Error.prototype,{constructor:{value:M,writable:!0,configurable:!0}});var P=M,x=o(31);function k(e){if(!(this instanceof k))throw new TypeError(C.getMessage("CLASS_CONSTRUCTOR"));for(var t in this.logger=v.getLogger("CommonService"),this.logger.trace("[Constructeur CommonService (options)]"),this.options={protocol:"XHR",ssl:!0,proxyURL:"",callbackSuffix:null,httpMethod:"GET",timeOut:0,rawResponse:!1,scope:this,onSuccess:function(e){console.log("onSuccess - la reponse est la suivante : ",e)},onFailure:function(e){200!==e.status&&e.status?console.log("onFailure - Erreur (",e.status,") : ",e.message):console.log("onFailure : ",e.message)}},e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);if(this.options.rawResponse&&!this.options.onSuccess&&(this.options.onSuccess=function(e){console.log("onSuccess - la réponse brute du service est la suivante : ",e)}),!!(null===this.options.onSuccess||"function"!=typeof this.options.onSuccess))throw new Error(C.getMessage("PARAM_MISSING","onSuccess()"));switch(this.options.httpMethod="string"==typeof e.httpMethod?e.httpMethod.toUpperCase():"GET",this.options.httpMethod){case"POST":case"GET":break;case"PUT":case"DELETE":case"HEAD":case"OPTIONS":throw new Error(C.getMessage("PARAM_NOT_SUPPORT","httpMethod"));default:throw new Error(C.getMessage("PARAM_UNKNOWN","httpMethod"))}switch(this.options.protocol="string"==typeof e.protocol?e.protocol.toUpperCase():"XHR",this.options.protocol){case"JSONP":case"XHR":break;default:throw new Error(C.getMessage("PARAM_UNKNOWN","protocol"))}if("undefined"==typeof window&&"JSONP"===this.options.protocol)throw new Error(C.getMessage("PARAM_NOT_SUPPORT_NODEJS","protocol=JSONP (instead use XHR)"));"JSONP"===this.options.protocol&&(this.options.httpMethod="GET"),this.options.nocache=e.nocache||!1,this.options.outputFormat=null,this.request=null,this.response=null}k.prototype={constructor:k,call:function(){this.logger.trace("CommonService::call ()");var e=this;function t(t){this.logger.trace("CommonService::onBuildRequest : ",t),this.callService.call(e,i,o)}function o(t){this.logger.trace("CommonService::onCallService : ",t),this.analyzeResponse.call(e,i,n)}function n(e){if(this.logger.trace("CommonService::onAnalyzeResponse : ",e),!e)return i.call(this,new P("Analyse de la reponse en échec !?"));this.options.onSuccess.call(this,e)}function i(e){this.logger.trace("CommonService::onError()");var t=e;t instanceof P||(t=new P(e.message)),this.options.onFailure.call(this,t)}(function(){this.logger.trace("CommonService::run ()"),this.buildRequest.call(e,i,t)}).call(e)},buildRequest:function(e,t){this.logger.error("overwritten method !"),e&&e.call(this,"This method must be overwritten !"),t.call(this,"This method must be overwritten !")},callService:function(e,t){var o=null,n=this.request,i=!(!this.options.proxyURL||"XHR"!==this.options.protocol),r={"gp-access-lib":x.version};this.options.apiKey&&(r.apiKey=this.options.apiKey),this.options.serverUrl=I.normalyzeUrl(this.options.serverUrl,r,!1),i&&("GET"===this.options.httpMethod&&(o=this.options.proxyURL+I.normalyzeUrl(this.options.serverUrl,this.request,!0),n=null),"POST"===this.options.httpMethod&&(o=this.options.proxyURL+I.normalyzeUrl(this.options.serverUrl,null,!0),n=this.request));var a=this,s={url:o||this.options.serverUrl,method:this.options.httpMethod,protocol:this.options.protocol,timeOut:this.options.timeOut||0,format:this.options.outputFormat,nocache:this.options.nocache||!1,wrap:"XHR"!==this.options.protocol,callbackSuffix:this.options.callbackSuffix,data:n,headers:null,content:this.options.contentType||"application/xml",scope:this.options.scope||this,onResponse:function(o){a.logger.trace("callService::onResponse()");var n=null;if("XHR"===a.options.protocol&&(a.logger.trace("Response XHR",o),n=o),"JSONP"===a.options.protocol){if(a.logger.trace("Response JSON",o),!o)return void e.call(a,new P("Le contenu de la reponse est vide !?"));if(o.http){if(200!==o.http.status)return void e.call(a,new P({status:o.http.status,message:o.http.error,type:P.TYPE_SRVERR}));n=o.xml,a.options.rawResponse&&(n=o)}else n=o}if("function"==typeof a.options.onBeforeParse){var i=a.options.onBeforeParse(n);"string"==typeof i&&(n=i)}a.response=n,t.call(a,n)},onFailure:function(t){a.logger.trace("callService::onFailure()"),t.type=P.TYPE_SRVERR,e.call(a,new P(t))},onTimeOut:function(){a.logger.trace("callService::onTimeOut()"),e.call(a,new P("TimeOut!"))}};S.send(s)},analyzeResponse:function(e,t){this.logger.error("overwritten method !"),e&&e.call(this,"This method must be overwritten !"),t.call(this,"This method must be overwritten !")}};var G=k,R={ssl:!0,newUrl:function(e){return(!1===R.ssl?"http://":"https://")+"data.geopf.fr"+e},Alti:{new_key:{"elevation-json":"/altimetrie/1.0/calcul/alti/rest/elevation.json","elevation-xml":"/altimetrie/1.0/calcul/alti/rest/elevation.xml","profil-json":"/altimetrie/1.0/calcul/alti/rest/elevationLine.json","profil-xml":"/altimetrie/1.0/calcul/alti/rest/elevationLine.xml"},newUrl:function(){return{"elevation-json":R.newUrl(this.new_key["elevation-json"]),"elevation-xml":R.newUrl(this.new_key["elevation-xml"]),"profil-json":R.newUrl(this.new_key["profil-json"]),"profil-xml":R.newUrl(this.new_key["profil-xml"])}}},ProcessIsoCurve:{new_key:"/navigation/isochrone",newUrl:function(){return R.newUrl(this.new_key)}},Config:{_key:"https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/",url:function(e){Array.isArray(e)||(e=e.split(","));for(var t=[],o=0;on(e,{credentials:"same-origin"}).then(e=>{if(e.ok)return e.json().then(e=>e).catch(e=>{throw new Error("Exception Json : "+e)});throw new Error("Exception HTTP : "+e.status+" (status code) !")}).catch(e=>new Promise((t,o)=>{o(e)})),a=[];for(let e=0;e{if(!e)throw new Error("results config empty !?");e.forEach(e=>{this.listConfigResults.push(e)})}).then(()=>{t.call(this,this.listConfigResults)}).catch(t=>{e.call(this,t)})},U=function(e,t){this.listConfigResults=[];for(var o=0;ot||e__IDENTIFIER__\x3c!-- __DATAINPUTS__ --\x3e__RAWDATAOUTPUT__',input:"__KEY____DATA__"}},namespaceByDefault:function(){return['xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"','xmlns="http://www.opengis.net/wps/1.0.0"','xmlns:wfs="http://www.opengis.net/wfs"','xmlns:wps="http://www.opengis.net/wps/1.0.0"','xmlns:ows="http://www.opengis.net/ows/1.1"','xmlns:gml="http://www.opengis.net/gml"','xmlns:ogc="http://www.opengis.net/ogc"','xmlns:wcs="http://www.opengis.net/wcs/1.1.1"','xmlns:xlink="http://www.w3.org/1999/xlink"'].join(" ")},schemaLocationByDefault:function(){return'xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"'},processRequestString:function(){this.logger.trace("WPS::processRequestString ()");var e="";if("POST"===this.method)e=this.template.post.value;else{if("GET"!==this.method)return this.logger.error("No other method supported by the service !"),!1;e=this.template.get.value}return e=(e=(e=(e=(e=e.replace(/__SERVICE__/g,this.paramservice)).replace(/__VERSION__/g,this.paramversion)).replace(/__RAWDATAOUTPUT__/g,this.paramrawdataoutput)).replace(/__IDENTIFIER__/g,this.paramidentifier)).replace(/__REQUEST__/g,this.paramrequest),"POST"===this.method&&(e=(e=e.replace(/__NAMESPACE__/g,this.namespaceByDefault)).replace(/__SCHEMALOCATION__/g,this.schemaLocationByDefault)),(e=e.replace(//g,this.__addDataInputs()))?(this.requestString=e,this.logger.trace("traduction tmpl",e),!0):(this.logger.warn("traduction tmpl : empty request !?"),!1)},__addDataInputs:function(){this.logger.trace("WPS::__addDataInputs ()");for(var e,t="GET"===this.method?this.template.get.input:this.template.post.input,o="GET"===this.method?";":"",n="",i=this,r=this.DataObject.getData(),a=0;a0)for(var a=n.getElementsByTagName("parsererror"),s=0;s0){var n=function(e){if(e.attributes.length>0){for(var t={},o=e.attributes,n=0;n0?t.index=t.filters.type[0]:t.index=t.filters.type),delete t.filters.type),t.filters.bbox&&(this.logger.warn("The parameter 'filterOptions.bbox' is deprecated"),delete t.filters.bbox)),delete t.filterOptions),t.position&&(t.position.x&&(this.logger.warn("The parameter 'position.x' is deprecated"),t.position.lon||(t.position.lon=t.position.x),delete t.position.x),t.position.y&&(this.logger.warn("The parameter 'position.y' is deprecated"),t.position.lat||(t.position.lat=t.position.y),delete t.position.y)),t.returnFreeForm&&(this.logger.warn("The parameter 'returnFreeForm' is deprecated"),delete t.returnFreeForm),t.srs&&(this.logger.warn("The parameter 'srs' is deprecated"),delete t.srs),t},Ee.prototype.buildRequest=function(e,t){var o={httpMethod:this.options.httpMethod,geocodeMethod:"search",query:this.options.query,index:this.options.index,returnTrueGeometry:this.options.returnTrueGeometry,position:this.options.position,maxResp:this.options.maximumResponses,filters:this.options.filters};this.request=fe.build(o),this.request?t.call(this,this.request):e.call(this,new P(C.getMessage("SERVICE_REQUEST_BUILD")))},Ee.prototype.analyzeResponse=function(e,t){if(this.response){var o={response:this.response,rawResponse:this.options.rawResponse,onError:e,onSuccess:t,scope:this};_e.build(o)}else e.call(this,new P(C.getMessage("SERVICE_RESPONSE_EMPTY")))};var Se=Ee;function Me(e){if(!(this instanceof Me))throw new TypeError(C.getMessage("CLASS_CONSTRUCTOR","ReverseGeocode"));this.CLASSNAME="ReverseGeocode",this.logger=v.getLogger("Gp.Services.ReverseGeocode"),this.logger.trace("[Constructeur ReverseGeocode (options)]");var t=this.patchOptionConvertor(e);if(t.serverUrl||(t.serverUrl=T.ReverseGeocode.newUrl()),G.apply(this,[t]),t.searchGeometry)this.options.searchGeometry=t.searchGeometry;else if(!t.position)throw new Error(C.getMessage("PARAM_MISSING","searchGeometry"));if(t.index||(this.options.index=t.index="StreetAddress"),t.filters)for(var o=Object.keys(t.filters),n=0;n0?t.index=t.filterOptions.type[0]:t.index=t.filterOptions.type),delete t.filterOptions.type),t.filterOptions.bbox&&(this.logger.warn("The parameter 'filterOptions.bbox' is deprecated"),t.searchGeometry||(t.searchGeometry=this.bbox2Json(t.filterOptions.bbox)),delete t.filterOptions.bbox),t.filterOptions.circle&&(this.logger.warn("The parameter 'filterOptions.circle' is deprecated"),t.searchGeometry||(t.searchGeometry=this.circle2Json(t.filterOptions.circle)),delete t.filterOptions.circle),t.filterOptions.polygon&&(this.logger.warn("The parameter 'filterOptions.polygon' is deprecated"),t.searchGeometry||(t.searchGeometry=this.polygon2Json(t.filterOptions.polygon)),delete t.filterOptions.polygon),!t.filters&&Object.keys(t.filterOptions).length>0&&(t.filters=t.filterOptions),delete t.filterOptions),t.position&&(t.position.x&&(this.logger.warn("The parameter 'position.x' is deprecated"),t.position.lon||(t.position.lon=t.position.x),delete t.position.x),t.position.y&&(this.logger.warn("The parameter 'position.y' is deprecated"),t.position.lat||(t.position.lat=t.position.y),delete t.position.y)),t.srs&&(this.logger.warn("The parameter 'srs' is deprecated"),delete t.srs),t},Me.prototype.buildRequest=function(e,t){var o={httpMethod:this.options.httpMethod,geocodeMethod:"reverse",searchGeometry:this.options.searchGeometry,index:this.options.index,position:this.options.position,returnTrueGeometry:this.options.returnTrueGeometry,maxResp:this.options.maximumResponses,filters:this.options.filters};this.request=fe.build(o),this.request?t.call(this,this.request):e.call(this,new P(C.getMessage("SERVICE_REQUEST_BUILD")))},Me.prototype.analyzeResponse=function(e,t){if(this.response){var o={response:this.response,rawResponse:this.options.rawResponse,onError:e,onSuccess:t,scope:this};_e.build(o)}else e.call(this,new P(C.getMessage("SERVICE_RESPONSE_EMPTY")))},Me.prototype.bbox2Json=function(e){return{type:"Polygon",coordinates:[[[e.left,e.top],[e.right,e.top],[e.right,e.bottom],[e.left,e.bottom],[e.left,e.top]]]}},Me.prototype.circle2Json=function(e){return{type:"Circle",radius:e.radius,coordinates:[e.x,e.y]}},Me.prototype.polygon2Json=function(e){for(var t={type:"Polygon",coordinates:[[]]},o=0;o0)for(var n in t.noProxyDomains)if(o.trace("[ProxyUtils] proxifyUrl : analyzing "+t.noProxyDomains[n]),-1!==e.indexOf(t.noProxyDomains[n]))return o.info("[ProxyUtils] proxifyUrl : "+e+" found in noProxyDomains list ("+t.noProxyDomains[n]+")."),e;return t.proxyUrl+encodeURIComponent(e)}};function ut(e){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var dt=lt.getLogger("GfiUtils"),pt={getLayerFormat:function(e){var t="function"==typeof e.getType?e.getType():null,o=e.getSource();if(t){if("VECTOR"===t||"VECTOR_TILE"===t)return"vector";if("TILE"===t)return o.tileGrid?"wmts":"wms";if("IMAGE"===t)return"wms"}else{if(o instanceof p.a||o instanceof f.a)return"wms";if(o instanceof g.a)return"wmts";if(o instanceof u.a||o instanceof l.a)return"vector"}return"unknown"},displayInfo:function(e,t,n,i,r){if(dt.trace("[GfiUtils] : displayInfo..."),i||(i="text/html"),null!==n){var s=null,l=n;l=(l=l.replace(/\n/g,"")).replace(/(>)\s*(<)/g,"$1$2");var c="undefined"!=typeof window?window:null;if("object"===("undefined"==typeof exports?"undefined":ut(exports))&&null===window)s=(new(0,o(36).DOMParser)).parseFromString(l,i);else if(c.DOMParser)s=(new c.DOMParser).parseFromString(l,i);else{if(!c.ActiveXObject)return dt.log("Incompatible environment for DOM Parser !"),!1;(s=new c.ActiveXObject("Microsoft.XMLDOM")).async=!1,s.loadXML(l)}var u=s.getElementsByTagName("body");if(u&&1===u.length&&!u[0].hasChildNodes())return!1;var d=document.createElement("div");d.className="gp-feature-info-div";var p=document.createElement("input");p.type="button",p.className="gp-styling-button closer",p.onclick=function(){return e.featuresOverlay&&(e.removeOverlay(e.featuresOverlay),e.featuresOverlay=null),!1};var h=document.createElement("div");return h.className="gp-features-content-div",h.innerHTML=n,d.appendChild(h),d.appendChild(p),e.featuresOverlay&&(e.removeOverlay(e.featuresOverlay),e.featuresOverlay=null),e.featuresOverlay=new a.a({element:d,autoPan:r.autoPan,autoPanAnimation:r.autoPanAnimation,autoPanMargin:r.autoPanMargin,positioning:"bottom-center",insertFirst:!1,stopEvent:!0}),e.addOverlay(e.featuresOverlay),e.featuresOverlay.setPosition(t),e.featuresOverlay.render(),!0}},features2html:function(e,t){var o=document.createElement("div");return t.forEach((function(e){var t=e.getProperties();if(t.hasOwnProperty("render"))o.insertAdjacentHTML("beforeend",t.render);else{if(t.hasOwnProperty("name")){var n=document.createElement("div");n.className="gp-att-name-div",n.insertAdjacentHTML("afterbegin",t.name),o.appendChild(n)}if(t.hasOwnProperty("description")){var i=document.createElement("div");i.className="gp-att-description-div",i.insertAdjacentHTML("afterbegin",t.description),o.appendChild(i)}var r=null,a=!1,s=null,l=null,c=null,u=["fill","fill-opacity","stroke","stroke-opacity","stroke-width","marker-symbol","marker-color","marker-size","geometry","value","name","description","styleUrl","extensionsNode_","icon"];for(r in t)if(void 0!==t[r]&&-1===u.indexOf(r)){a||((s=document.createElement("div")).className="gp-att-others-div",l=document.createElement("ul"),a=!0),c=document.createElement("li");var d=document.createElement("span");d.className="gp-attname-others-span",d.appendChild(document.createTextNode(r+" : ")),c.appendChild(d),c.appendChild(document.createTextNode(t[r])),l.appendChild(c)}l&&(s.appendChild(l),o.appendChild(s))}}),e),o.hasChildNodes()||(o=null),o},layerGetFeatureAtCoordinates:function(e,t,o){var n=e.getPixelFromCoordinate(o);return e.hasFeatureAtPixel(n,(function(e){return e===t}))},displayVectorFeatureInfo:function(e,t,o,n){var i=e.getPixelFromCoordinate(t),r=[];if(e.forEachFeatureAtPixel(i,(function(e,t){(!o||o.indexOf(t)>-1)&&r.push(e)})),0===r.length)return!1;var a=this.features2html(e,r);return null!==a&&(this.displayInfo(e,t,a.innerHTML,"text/html",n),!0)},displayFeatureInfo:function(e,t,o,n,i){for(var r={},a=0;ae.getResolution()&&(f=!1),f&&g.maxResolution&&g.maxResolution255)throw new Error("'"+e+"'' is greater than 255(0xff);");return("0"+Number(e).toString(16)).slice(-2)},num:function(e){return parseInt(e,16)},arrayToRgba:function(e){if(!Array.isArray(e))throw new Error("Not an array !");var t=e[0],o=e[1],n=e[2],i=e[3]||1;return"rgba("+t+", "+o+", "+n+", "+parseFloat(i)+")"},arrayToHex:function(e){if(!Array.isArray(e))throw new Error("Not an array !");var t=e[0],o=e[1],n=e[2],i=e[3],r=[this.hex(t),this.hex(o),this.hex(n)],a={};return a.hex="#"+r.join(""),i&&(a.opacity=parseFloat(i)),a},rgbaToHex:function(e){var t=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(0?.?\d+)\s*)?\)/.exec(e);if(!t)throw new Error("Invalid format: "+e);var o=t[1],n=t[2],i=t[3],r=t[4],a=[this.hex(o),this.hex(n),this.hex(i)],s={};return s.hex="#"+a.join(""),r&&(s.opacity=parseFloat(r)),s},hexToRgba:function(e,t){if(!e)throw new Error("Invalid format");e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,o,n){return t+t+o+o+n+n}));var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return(o=o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null)?"rgba("+o.r+", "+o.g+", "+o.b+", "+t+")":null},isHex:function(e){if(!e)return!1;if("#"!==e.charAt(0))return!1;return!!/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e)},isRGB:function(e){if(!e)return!1;return!!/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(0?.?\d+)\s*)?\)/.exec(e)}},At={lightOrange:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAgCAYAAAC/40AfAAASf3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjapZpptuO4DYX/cxVZAsEBIJfD8ZzsIMvPB8mvpq5OupN6Xc8uW5Yo4OIOdIfzr3/e8A/+lNo1lGpNu2rkT+mlp8GTFt8/4/ktsTy/nz85f96Tn18P6fN6TLzkB30ObPo5/ut1+XaC92HwrP5worY+b8yf3+jlc/72y4k+F8q+Il/F/pyof06U0/uGfE4w3tuK2pv9eAvzvI/7607a+zf4r/tVE3sffv13Maq3K9fJKZ0sOfL7U6ycsv/NIQ+eVH6nXDhQsj3P31fssxIK8rs6ffvTWdH1pZbfHvRTV749+6Vbnwpwa790q6TPIfmXIuu3x9++HqT+vitP6X+4cmmfZ+nn10eVz4p+qf5T/Lvbfe6ZuxhFKbV+burrFp9nHDe5hF+6BZamdEfBUOPRfzo/jZtfQGHHFSc/S7ok2nWlyJYhV87zuGSxxJJOSMaTlFbKz4stW+ppZe9f8R+5yXLPOze6uJ62l5y+rUWey/a4wnO1xpW3cGgSTiZ85G//hL/7gXt9FES8luOtFetKyYvNMrxz/pvD6IjcT1HrU+Cvn1//eF8zHaxeZR+Rzqnne4r5NvPFVn4anTmw8vjOoNj+nIAScenKYiTTAbomuYpKtJRMhEI2GjRYus/MpANSa9osMpWcld605JfmIybPoakmXg68DpnRiZqVOWt0aNCsUir4sdLA0Ki5llqrVqut9jo0a9GqqqZOisOylWDV1MyadRstt9Jq02attd5GTz1DmhBpt95672NwzcGZB58eHDDGTDPPMmuYOm222edYwGeVVZcuW231NXbaecMfW7fttvseRw5QOuX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i4xMCAoTGludXgpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA1LTI0VDE3OjI1OjI3KzAyOjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PofUkY4AAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfnBRgPGRuA4VZTAAAFcElEQVRYw82YW2xbVRaGv7XP8bHjXByHQkNhWigdVX1AikRBMBoQ8wASl4fRqPDAAxIPKAVxeRqQRohHBEVCaoGKUBCl4qHcNKCZVKMRRQxtgTaACLRKqlwB14NzM2ni2D2XvXjgBFXQOnFiA1uy/HB89u9/7bX+vf4l1HnpK57hTNCE0AzqAS5gAAuEID5KiWSiLPf4tp7YUjcSu4yLZzdi2IJyNXANcBlwAdAKzAHTwDhwDKEPywC+GZWHbPi7IKOvZIWguAnlr8BtwJ+AxDJeDYCPgF6Ed0hkh+Weov5mZLTHJMDeBjwYk0itYJtKTOpZML3SbYNfnYz2SBr0buARYENcFytdFvga2AGyT7p14Vcjoz3ShOgdKDuAi+pUewpMIDyCypvSreWGk9HdroOEV2F4A1hfTxGJCX2D5U7U/UzuD6NaXq49NRJhBsOjwMVLEtE4gaL4W5cV3IsxPEoizDT0ZLTHcSH6M/BWLLlVwpQKuPzhb+i8sRkv04Y/e5rvPigxtnM9trKU2k0D28A5LN3RsmXbrbFOU8DtQLpqfJqu97nh6TydmzvwWpOI8VDbxqbrkmz62yk+/Ps6yoe8KkeV/hHHfgrMNyrNEkBX1SAktgRs3T7ApV1rSWayiEkDLmLSJDNZLu1ay9btAyS2BEsEuWuZ99WKyRhgHeCcn8wGw/qbOnAS3jmfOwmP9Td1kNhQDduJcUwjyciS0RJXMMkWkPPUo/z4XFxZRhZII8mEwFCsT+f5xXTE7FAOteduItV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yOjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgIC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6aW5zdGFuY2VJRD0ieG1wLmlpZDowMjQ4MDc5ZS1kMTYyLTQxZmItOGViYS1lMzY2NTRiNGRjMjYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTGludXgpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA1LTI0VDE3OjIwOjQwKzAyOjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PkaovgIAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfnBRgPFCiKn0kIAAAFfUlEQVRYw82YTWxc1RXHf+e+N2/GH+Px2IEEV02AgqIsIkwgoYS2ahepVGCBUOiCRRdsAAnECthErBBCICGFj4gqRQqBRSABUrVm1URtCSATJ5ASZCPHH0kGgx1/xJl5nvH7uIcFY4iIM/GzZyhHenqL994993/u+f/fOUeos+nNnkHCJoQWRD0UFzCARYhQCVB8NFWWTwNbT99SNxC3GZfIXg9sADYDWxCuRekEskARYQplFPgEOAr045ph6bXRzwKM3pEX5mduQLkHuAvYCqSW8GkIfAT0IBwknT8lH87o/w2M3mpSqL0LeLQKIrOMZSpVUC8hpkf6bPiTg9FbpBn0L8ATwLoqL5ZrFjgNPAeyV47p3E8GRjdLE6r3oTwHXF0n7ikwgfAEIvvlqJYbDkY3uw4a3YLyNrC2niJSBXQG4c+Ie0yORnGSj5OnRhzlUJ4ErrkikBAoAjPVe7ik4F6D8iRxlGvoyegmx4X4NwgHgM6a8fUyIfc8doZbf99Ca66N0uwF+v7tc3DnWoJK6gqep1C2g3NEjsdLlm03GXSbAe4GmmvGZ91vA3Y8P8aN6ztoyaYxxsPaNrbcnmbbvV/x9ONdnPnA+w71otaMcDfYPqDUmDQTUgjdNYPQsSHkgYf62di9mm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gogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo1NGFiYzNkYS1lZWJiLTRlZjctYjdjNS04ZDRjODY5OGVjODMiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTGludXgpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA1LTI0VDE3OjI0OjI2KzAyOjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pj0tlUwAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfnBRgPGBru/VeEAAAABmJLR0QA/wD/AP+gvaeTAAAFO0lEQVRYw9WYe2xTVRzHTx97dYS5B1UHa+/tY12dDoOKWyIGlfgHkCkSNTHGwHxA3NiAP/A5x4CMKEzdYL29YyAyBxKQZbI+NvYIaowaH9Ogi2GRbGjcFrbBNrq2a2/9nq5LCFnbbfSOeZJPTs/t6Tm/7/39zu+cU0IiXc7WSImNX0BsZiVYAhigmah5tHklsZrjSYtJSuZtaeSiiJU3gHUwfC9oARfBIHBP1DzaPH1eRuzmp0E6aTgSNX9EWMwSvOkMGPgG+CpguG8a0H7nA78zkMYqye0V0lYXDSHrYUw7cE5TxM04/b+38+vJ+RPRt0eIjVeAAhhyCQizFDKJEBjndaCY49Di4+CRlzFxfwSE3Ciol9i4DSBujoRUy7HIszFxdwSF3CioBy8qm1g5ufhirHwyJqwHrrDGWTlg8hFL1URN2+EF0XFPkyYuSWwhUVgnT2CygXBG3dFcM7bz1/au1u7OK9/93eWidUlHe1dCc810EsUAsXO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adb4aErNwpCCh5J2pnfoH0ga08g7invBfaQjXjjuQifhyEgLdNolJP5UqR17y+QnSwvk1i565OZK6F8RzubvWwvDH8LvKZnmHXY8HKws+sNLJtI5muJ/7hYElOzJ1V+fN9R7CVDClPJOVXuqo06vS4HQjTwgDKDZRXk/1JiD7wrieFLk6T1lczCXUVK7aPZinS9XrTw+Q+Tql7SUmvGuQAAAABJRU5ErkJggg==",defaultOffset:[-25.5,-32]},vt=o(12),Ct=o.n(vt),It=o(13),bt=o.n(It),wt=o(32),_t=o.n(wt),Et=o(33),St=o.n(Et),Mt=o(15),Pt=o.n(Mt),xt=o(16),kt=o.n(xt),Gt=o(34),Rt=o.n(Gt),Tt=o(64),Ot=o.n(Tt),Lt=o(65),Dt=o.n(Lt),jt=lt.getLogger("styling");Ct.a.prototype.setPropertyFill=function(){var e=this.getStyle();if(e&&(!Array.isArray(e)||0!==e.length)){var t=e.getFill();if(t){var o=t.getColor();if(Array.isArray(o)){var n="rgba(";n+=o[0]+",",n+=o[1]+",",n+=o[2]+",",o=n+=o[3]+")"}if(yt.isRGB(o)){var i=yt.rgbaToHex(o);this.set("fill",i.hex),this.set("fill-opacity",i.opacity)}else this.set("fill",o),this.set("fill-opacity",1)}}},Ct.a.prototype.setPropertyStroke=function(){var e=this.getStyle();if(e&&(!Array.isArray(e)||0!==e.length)){var t=e.getStroke();if(t){var o=t.getColor();if(Array.isArray(o)){var n="rgba(";n+=o[0]+",",n+=o[1]+",",n+=o[2]+",",o=n+=o[3]+")"}if(yt.isRGB(o)){var i=yt.rgbaToHex(o);this.set("stroke",i.hex),this.set("stroke-opacity",i.opacity)}else this.set("stroke",o),this.set("stroke-opacity",1);this.set("stroke-width",t.getWidth())}}},Ct.a.prototype.setPropertyLabel=function(){var e=this.getStyle();if(e&&(!Array.isArray(e)||0!==e.length)){var t=void 0!==this.get("name");if(e.getText()&&t){var o=e.getText().getFill();if(o){var n=o.getColor();if(Array.isArray(n)){var i="rgba(";i+=n[0]+",",i+=n[1]+",",i+=n[2]+",",n=i+=n[3]+")"}if(yt.isRGB(n)){var r=yt.rgbaToHex(n);this.set("label-fill",r.hex),this.set("label-fill-opacity",r.opacity)}else this.set("label-fill",n),this.set("label-fill-opacity",1)}var a=e.getText().getStroke();if(a){var s=a.getColor();if(Array.isArray(s)){var l="rgba(";l+=s[0]+",",l+=s[1]+",",l+=s[2]+",",s=l+=s[3]+")"}if(yt.isRGB(s)){var c=yt.rgbaToHex(s);this.set("label-stroke",c.hex),this.set("label-stroke-opacity",c.opacity)}else this.set("label-stroke",s),this.set("label-stroke-opacity",1);this.set("label-stroke-width",a.getWidth())}this.set("label-font",e.getText().getFont()||Ut.DEFAULT_TEXT.font),this.set("label-textAlign",e.getText().getTextAlign()||Ut.DEFAULT_TEXT.textAlign)}}},Ct.a.prototype.setPropertyMarker=function(){var e=this.getStyle();if(e&&(!Array.isArray(e)||0!==e.length)){var t=e.getImage();if(t)if(t instanceof St.a){var o=t.getColor();if(Array.isArray(o)){var n="rgba(";n+=o[0]+",",n+=o[1]+",",n+=o[2]+",",o=n+=o[3]+")"}if(o){var i=yt.rgbaToHex(o);this.set("marker-color",i.hex)}var r=t.getScale();switch(Math.round(2*r)/2){case 0:case.5:this.set("marker-size","small");break;case 1:this.set("marker-size","medium");break;case 1.5:case 2:this.set("marker-size","large")}var a=t.getSrc();a&&this.set("marker-symbol",a),this.unset("circle-fill"),this.unset("circle-fill-opacity"),this.unset("circle-stroke"),this.unset("circle-stroke-width"),this.unset("circle-stroke-opacity"),this.unset("circle-radius")}else{var s=t.getFill();if(s){var l=s.getColor();if(Array.isArray(l)){var c="rgba(";c+=l[0]+",",c+=l[1]+",",c+=l[2]+",",l=c+=l[3]+")"}if(yt.isRGB(l)){var u=yt.rgbaToHex(l);this.set("circle-fill",u.hex),this.set("circle-fill-opacity",u.opacity)}else this.set("circle-fill",l),this.set("circle-fill-opacity",1)}var d=t.getStroke();if(d){var p=d.getColor();if(Array.isArray(p)){var h="rgba(";h+=p[0]+",",h+=p[1]+",",h+=p[2]+",",p=h+=p[3]+")"}if(yt.isRGB(p)){var g=yt.rgbaToHex(p);this.set("circle-stroke",g.hex),this.set("circle-stroke-opacity",g.opacity)}else this.set("circle-stroke",p),this.set("circle-stroke-opacity",1);this.set("circle-stroke-width",d.getWidth())}var m=t.getRadius();this.set("circle-radius",m)}}};var Ut={APPLY_CONVERT_GEOM_GPX:!0,DEFAULT_ICON:{src:At.lightOrange,anchor:[.5,1],scale:1},DEFAULT_CIRCLE:{radius:10,fill:{opacity:1,color:[0,0,0,1]},stroke:{width:1,opacity:1,color:[0,0,0,1]}},DEFAULT_STROKE:{width:5,opacity:1,color:[250,250,250,1]},DEFAULT_FILL:{opacity:1,color:[0,0,0,1]},DEFAULT_TEXT:{font:"16px sans",textAlign:"left",stroke:{color:[250,250,250,1],width:5,opactity:1},fill:{opacity:1,color:[0,0,0,1]}},getListTags:function(){return["type","fill","fill-opacity","stroke","stroke-opacity","stroke-width","circle-fill","circle-fill-opacity","circle-stroke","circle-stroke-opacity","circle-stroke-width","circle-radius","marker-symbol","marker-color","marker-size","label-fill","label-fill-opacity","label-stroke","label-stroke-width","label-stroke-opacity","label-font","label-textAlign"]},defineStyleFromProperties:function(e){var t=null,o={},n=null;if(e.get("marker-color")||e.get("marker-size")||e.get("marker-symbol")){(n={}).src=this.DEFAULT_ICON.src,n.anchor=this.DEFAULT_ICON.anchor;var i=e.get("marker-symbol");i&&-1!==i.search("data:image/png;base64")&&(n.src=i);var r=e.get("marker-color");yt.isHex(r)&&(n.color=yt.hexToRgba(r,1));var a=e.get("marker-size");if(a)switch(a){case"small":n.scale=.5;break;case"medium":n.scale=1;break;case"large":n.scale=1.5;break;default:n.scale=this.DEFAULT_ICON.scale}}var s=null;(e.get("stroke")||e.get("stroke-opacity")||e.get("stroke-width"))&&((s={}).color=yt.hexToRgba(e.get("stroke"),+e.get("stroke-opacity")||this.DEFAULT_STROKE.opacity),s.width=+e.get("stroke-width")||this.DEFAULT_STROKE.width);var l=null;(e.get("fill")||e.get("fill-opacity"))&&((l={}).color=yt.hexToRgba(e.get("fill"),+e.get("fill-opacity")||this.DEFAULT_FILL.opacity));var c=null,u=null,d=""!==e.get("name");d&&((e.get("label-fill")||e.get("label-fill-opacity"))&&((u={}).color=yt.hexToRgba(e.get("label-fill"),+e.get("label-fill-opacity")||this.DEFAULT_TEXT.fill.opacity)),(e.get("label-stroke")||e.get("label-stroke-opacity")||e.get("label-stroke-width"))&&((c={}).color=yt.hexToRgba(e.get("label-stroke"),+e.get("label-stroke-opacity")||this.DEFAULT_TEXT.stroke.opacity),c.width=+e.get("label-stroke-width")||this.DEFAULT_TEXT.stroke.width));var p=e.get("circle-radius")||this.DEFAULT_CIRCLE.radius,h=null;(e.get("circle-stroke")||e.get("circle-stroke-opacity")||e.get("circle-stroke-width"))&&((h={}).color=yt.hexToRgba(e.get("circle-stroke"),+e.get("circle-stroke-opacity")||this.DEFAULT_CIRCLE.stroke.opacity),h.width=+e.get("circle-stroke-width")||this.DEFAULT_CIRCLE.stroke.width);var g=null;(e.get("circle-fill")||e.get("circle-fill-opacity"))&&((g={}).color=yt.hexToRgba(e.get("circle-fill"),+e.get("circle-fill-opacity")||this.DEFAULT_CIRCLE.fill.opacity));var m=e.getGeometry().getType();switch(m){case"Circle":case"Point":case"MultiPoint":var f=!1,y={};if(h&&(y.stroke=new kt.a(h)),g&&(y.fill=new Pt.a(g)),0!==Object.keys(y).length&&(f=!0,y.radius=+p,o.image=new _t.a(y)),n&&(o.image=new St.a(n)),d){var A={};if(c&&(A.stroke=new kt.a(c)),u&&(A.fill=new Pt.a(u)),0!==Object.keys(A).length)A.text=e.get("name"),A.textAlign=e.get("label-textAlign")||this.DEFAULT_TEXT.textAlign,A.font=e.get("label-font")||this.DEFAULT_TEXT.font,o.text=new Rt.a(Object.assign({},this.DEFAULT_TEXT,A));else if(n||f){var v=new Rt.a(Object.assign({},this.DEFAULT_TEXT,{fill:new Pt.a(this.DEFAULT_TEXT.fill),stroke:new kt.a(this.DEFAULT_TEXT.stroke)}));if(v){var C=v.clone();C.setText(e.get("name")),o.text=C}}}break;case"Polygon":case"MultiPolygon":s&&(o.stroke=new kt.a(s)),l&&(o.fill=new Pt.a(l));break;case"LineString":case"MultiLineString":if(s&&(o.stroke=new kt.a(s)),this.APPLY_CONVERT_GEOM_GPX&&l){var I=e.get("type");if(I&&("Polygon"===I||"MultiPolygon"===I)){o.fill=new Pt.a(l);var b=e.clone(),w="LineString"===m?Ot.a:Dt.a;e.setGeometry(new w([b.getGeometry().getCoordinates()]))}}}return 0!==Object.keys(o).length&&(t=new bt.a(o)),t},defineStyleFunctionByDefault:function(e){if(!e)return[];if(0===Object.keys(e).length)return[];return function(t,o){var n=null;switch(t.getGeometry().getType()){case"Point":case"MultiPoint":var i={};if(e.getImage()&&(i.image=e.getImage()),e.getText()&&t.get("name")){var r=e.getText().clone();r.setText(t.get("name")),i.text=r}n=new bt.a(i);break;case"Circle":var a={},s={};if(e.getFill()&&(s.fill=e.getFill()),e.getStroke()&&(s.stroke=e.getStroke()),e.getText()&&t.get("name")){var l=e.getText().clone();l.setText(t.get("name")),a.text=l}0!==Object.keys(s).length&&(s.radius=3,a.image=new _t.a(s)),n=new bt.a(a);break;case"Polygon":case"MultiPolygon":var c={};e.getFill()&&(c.fill=e.getFill()),e.getStroke()&&(c.stroke=e.getStroke()),n=new bt.a(c);break;case"LineString":case"LinearRing":case"MultiLineString":var u={};e.getStroke()&&(u.stroke=e.getStroke()),n=new bt.a(u)}return[n]}},definePropertiesFromStyleByType:function(e){switch(e.getGeometry().getType()){case"Point":case"MultiPoint":e.setPropertyMarker(),e.setPropertyLabel();break;case"LineString":case"MultiLineString":e.setPropertyStroke();break;case"Polygon":case"MultiPolygon":e.setPropertyStroke(),e.setPropertyFill()}},definePropertiesFromStyle:function(e){var t=e.getStyle()||e.getStyleFunction();if(t){if("function"==typeof t){var o=t.call(this,e,0);if(!o||0===o.length)return;t=Array.isArray(o)?o[0]:o,e.setStyle(t)}this.definePropertiesFromStyleByType(e)}},defineTagFromStyle:function(e,t){return jt.trace("todo..."),null}},Nt=Ut;function Bt(e){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ft=lt.getLogger("parser"),zt={parse:function(e){var t=null,n="undefined"!=typeof window?window:null;"object"===("undefined"==typeof exports?"undefined":Bt(exports))&&null===window?t=(new(0,o(36).DOMParser)).parseFromString(e,"text/xml"):n.DOMParser?t=(new n.DOMParser).parseFromString(e,"text/xml"):n.ActiveXObject?((t=new n.ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e)):Ft.log("Incompatible environment for DOM Parser !");var i=t.querySelector("parsererror");return i?(console.error(i),null):(Ft.trace(t),t)},toString:function(e){var t=(new XMLSerializer).serializeToString(e);return Ft.trace(t),t},format:function(e){for(var t="",o=(e=e.replace(/(>)\s*(<)(\/*)/g,"$1\n$2$3").replace(/ *(.*) +\n/g,"$1\n").replace(/(<.+>)(.+\n)/g,"$1\n$2")).split("\n"),n=0,i="other",r={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0},a=0;a/)),c=Boolean(s.match(/<\/.+>/)),u=Boolean(s.match(/<[^!].*>/)),d=l?"single":c?"closing":u?"opening":"other",p=i+"->"+d;i=d;var h="";n+=r[p];for(var g=0;gclosing"===p?t=t.substr(0,t.length-1)+s+"\n":t+=h+s+"\n"}return Ft.trace(t),t}};function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Wt={detectSupport:function(){var e=!0,t=window.navigator.userAgent.toLowerCase();return-1===t.indexOf("iphone")&&-1===t.indexOf("ipod")&&-1===t.indexOf("ipad")&&-1===t.indexOf("android")&&-1===t.indexOf("mobile")&&-1===t.indexOf("blackberry")&&-1===t.indexOf("tablet")&&-1===t.indexOf("phone")&&-1===t.indexOf("touch")||(e=!1),-1===t.indexOf("msie")&&-1===t.indexOf("trident")||(e=!0),e},assign:function(e,t){for(var o in e=e||{},t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},mergeParams:function(e,t,o){if(e&&t)for(var n in void 0===o&&(o=!0),t)t.hasOwnProperty(n)&&("object"===Vt(t[n])?e.hasOwnProperty(n)?this.mergeParams(e[n],t[n],o):e[n]=t[n]:e.hasOwnProperty(n)?o&&(e[n]=t[n]):e[n]=t[n])}},qt=lt.getLogger("extended KML format"),Ht=function(e){function t(o){if(!(this instanceof t))throw new TypeError("ERROR CLASS_CONSTRUCTOR");o=o||{},this.source=null,this.extensions=o.extensions||null,o.defaultStyle&&!Array.isArray(o.defaultStyle)&&(o.defaultStyle=[o.defaultStyle]),null!==o.defaultStyle&&void 0!==o.defaultStyle||(o.defaultStyle=[]),e.call(this,o)}function o(e,t,o){for(var n="#document"===e.nodeName?e.childNodes[0].childNodes:e.childNodes,i=n,r=0;r)\s*(<)/g,"$1$2"),null===(i=zt.parse(a)))return r;function s(e){var t="";t+=e.substr(6,2),t+=e.substr(4,2),t+=e.substr(2,2);for(var o=parseInt(t,16).toString(16),n="",i=o.length||0,r=0;r<6-i;r++)n+="0";return o="#"+n+o}var l=function(e,t){if(qt.trace("label with style :",t),e){for(var o=e.getProperties().name,n=s("ff000000"),i="#FFFFFF",r=0,a="Sans",l="16px",c=null,u=5,d="#000000",p="#ffffff",h=1,g=!1,m=!1,f=t.childNodes,y=0;yt&&(n=!1),n&&p&&pt?1:er&&(c-s)*(r-l)-(i-s)*(u-l)>0&&a++:u<=r&&(c-s)*(r-l)-(i-s)*(u-l)<0&&a--,s=c,l=u}return 0!==a}function Xo(e,t,o,n,i,r){if(0===o.length)return!1;if(!Ko(e,t,o[0],n,i,r))return!1;for(var a=1,s=o.length;aC&&Xo(e,t,o,n,c=(u+d)/2,g)&&(v=c,C=I),u=d}return isNaN(v)&&(v=i[r]),a?(a.push(v,g,C),a):[v,g,C]}var $o={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"};var en={};en[$o.RADIANS]=6370997/(2*Math.PI),en[$o.DEGREES]=2*Math.PI*6370997/360,en[$o.FEET]=.3048,en[$o.METERS]=1,en[$o.USFEET]=1200/3937;var tn=$o,on=function(){function e(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return e.prototype.canWrapX=function(){return this.canWrapX_},e.prototype.getCode=function(){return this.code_},e.prototype.getExtent=function(){return this.extent_},e.prototype.getUnits=function(){return this.units_},e.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||en[this.units_]},e.prototype.getWorldExtent=function(){return this.worldExtent_},e.prototype.getAxisOrientation=function(){return this.axisOrientation_},e.prototype.isGlobal=function(){return this.global_},e.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},e.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},e.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},e.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},e.prototype.setWorldExtent=function(e){this.worldExtent_=e},e.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},e.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e}();var nn="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2};"log2"in Math&&Math.log2;function rn(e,t,o){return e+o*(t-e)}var an=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),sn=6378137*Math.PI,ln=[-sn,-sn,sn,sn],cn=[-180,-85,180,85],un=6378137*Math.log(Math.tan(Math.PI/2)),dn=function(e){function t(t){return e.call(this,{code:t,units:tn.METERS,extent:ln,global:!0,worldExtent:cn,getPointResolution:function(e,t){return e/nn(t[1]/6378137)}})||this}return an(t,e),t}(on),pn=[new dn("EPSG:3857"),new dn("EPSG:102100"),new dn("EPSG:102113"),new dn("EPSG:900913"),new dn("http://www.opengis.net/def/crs/EPSG/0/3857"),new dn("http://www.opengis.net/gml/srs/epsg.xml#3857")];function hn(e,t,o){var n=e.length,i=o>1?o:2,r=t;void 0===r&&(r=i>2?e.slice():new Array(n));for(var a=0;aun?s=un:s<-un&&(s=-un),r[a+1]=s}return r}function gn(e,t,o){var n=e.length,i=o>1?o:2,r=t;void 0===r&&(r=i>2?e.slice():new Array(n));for(var a=0;a>1)],t))<0?a=n+1:(s=n,l=!i);return l?a:~a}(h,y);A<0?(l=(y-h[-A-2])/(h[-A-1]-h[-A-2]),s=t+(-A-2)*n):s=t+A*n}var v=a>1?a:2,C=r||new Array(v);for(g=0;g=.05){for(var o="",n=e.split("\n"),i=Vn.slice(0,Math.round(t/.1)),r=0,a=n.length;r0&&(o+="\n"),o+=n[r].split("").join(i);return o}return e}function qn(){return zn||(zn=Fn(1,1).getContext("2d")),zn}function Hn(e,t){return qn().measureText(e).width+(e.length-1)*t}var Yn={};jn.labelCache&&Un(jn.labelCache,"clear",(function(){Yn={}}));var Jn,Zn,Kn=Dn.e.isFunction,Xn=Dn.e.convertFunction,Qn=Dn.c.isExpression,$n=Dn.c.createPropertyExpression,ei={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},ti={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},oi={},ni={zoom:0};function ii(e,t,o,n,i,r){var a=e.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[a]||(r[a]={});var s=r[a];if(!s[o]){var l=(e[t]||oi)[o],c=Dn.f["".concat(t,"_").concat(e.type)][o];void 0===l&&(l=c.default);var u=Qn(l);if(!u&&Kn(l)&&(l=Xn(l,c),u=!0),u){var d=function(e,t){var o=$n(e,t);if("error"===o.result)throw new Error(o.value.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join(", "));return o.value}(l,c);s[o]=d.evaluate.bind(d)}else"color"==c.type&&(l=Dn.a.parse(l)),s[o]=function(){return l}}return ni.zoom=n,s[o](ni,i)}function ri(e,t){if(e){if(0===e.a||0===t)return;var o=e.a;return t=void 0===t?1:t,"rgba("+Math.round(255*e.r/o)+","+Math.round(255*e.g/o)+","+Math.round(255*e.b/o)+","+o*t+")"}return e}var ai=/^([^]*)\{(.*)\}([^]*)$/;function si(e,t){var o;do{if(o=e.match(ai)){var n=t[o[2]]||"";e=o[1]+n+o[3]}}while(o);return e}var li=!1;var ci=function(e,t,o,n,i,r,a){if(void 0===n&&(n=Bn),"string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");var s,l;if(r)if("undefined"!=typeof Image){var c=new Image;c.crossOrigin="anonymous",c.onload=function(){s=c,l=[c.width,c.height],e.changed(),c.onload=null},c.src=r}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var u=self;u.postMessage({action:"loadImage",src:r}),u.addEventListener("message",(function(e){"imageLoaded"===e.data.action&&e.data.src===r&&(s=e.data.image,l=[s.width,s.height])}))}for(var d,p=Object(Dn.b)(t.layers),h={},g=[],m={},f={},y={},A={},v=0,C=p.length;v=C.maxzoom)return"continue";var _=C.filter;if(!_||function(e,t,o,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=Object(Dn.d)(t).filter),ni.zoom=n,i[e](ni,o)}(I,_,p,c,A)){u=C;var E=void 0,S=void 0,k=void 0,G=void 0,R=void 0,T=void 0,O=v.index;if(3==d&&("fill"==C.type||"fill-extrusion"==C.type))if(S=ii(C,"paint",C.type+"-opacity",c,p,y),C.type+"-pattern"in w){var L=ii(C,"paint",C.type+"-pattern",c,p,y);if(L){var D="string"==typeof L?si(L,o):L.toString();if(s&&i&&i[D]){++g,(T=x[g])&&T.getFill()&&!T.getStroke()&&!T.getText()||(T=new bt.a({fill:new Pt.a}),x[g]=T),k=T.getFill(),T.setZIndex(O);var j=f[he=D+"."+S];if(!j){var U=Fn((ge=i[D]).width,ge.height),N=U.getContext("2d");N.globalAlpha=S,N.drawImage(s,ge.x,ge.y,ge.width,ge.height,0,0,ge.width,ge.height),j=N.createPattern(U,"repeat"),f[he]=j}k.setColor(j)}}}else(E=ri(ii(C,"paint",C.type+"-color",c,p,y),S))&&(C.type+"-outline-color"in w&&(R=ri(ii(C,"paint",C.type+"-outline-color",c,p,y),S)),R||(R=E),++g,(T=x[g])&&T.getFill()&&T.getStroke()&&!T.getText()||(T=new bt.a({fill:new Pt.a,stroke:new kt.a}),x[g]=T),(k=T.getFill()).setColor(E),(G=T.getStroke()).setColor(R),G.setWidth(1),T.setZIndex(O));if(1!=d&&"line"==C.type){E=!("line-pattern"in w)&&"line-color"in w?ri(ii(C,"paint","line-color",c,p,y),ii(C,"paint","line-opacity",c,p,y)):void 0;var B=ii(C,"paint","line-width",c,p,y);E&&B>0&&(++g,(T=x[g])&&T.getStroke()&&!T.getFill()&&!T.getText()||(T=new bt.a({stroke:new kt.a}),x[g]=T),(G=T.getStroke()).setLineCap(ii(C,"layout","line-cap",c,p,y)),G.setLineJoin(ii(C,"layout","line-join",c,p,y)),G.setMiterLimit(ii(C,"layout","line-miter-limit",c,p,y)),G.setColor(E),G.setWidth(B),G.setLineDash(w["line-dasharray"]?ii(C,"paint","line-dasharray",c,p,y).map((function(e){return e*B})):null),T.setZIndex(O))}var F=!1,z=null,V=0,W=void 0,q=void 0,H=void 0;if((1==d||2==d)&&"icon-image"in b){var Y=ii(C,"layout","icon-image",c,p,y);if(Y){W="string"==typeof Y?si(Y,o):Y.toString();var J=void 0;if(s&&i&&i[W]){var Z=ii(C,"layout","icon-rotation-alignment",c,p,y);if(2==d){var K=e.getGeometry();if(K.getFlatMidpoint||K.getFlatMidpoints){var X=K.getExtent();if(Math.sqrt(Math.max(Math.pow((X[2]-X[0])/t,2),Math.pow((X[3]-X[1])/t,2)))>150){var Q="MultiLineString"===K.getType()?K.getFlatMidpoints():K.getFlatMidpoint();if(Zn||(Zn=new Tn("Point",Jn=[NaN,NaN],[],{},null)),J=Zn,Jn[0]=Q[0],Jn[1]=Q[1],"line"===(ke=ii(C,"layout","symbol-placement",c,p,y))&&"map"===Z)for(var $=K.getStride(),ee=K.getFlatCoordinates(),te=0,oe=ee.length-$;te=se&&Q[0]<=ce&&Q[1]>=le&&Q[1]<=ue){V=Math.atan2(ie-ae,re-ne);break}}}}}if(2!==d||J){var de=ii(C,"layout","icon-size",c,p,y),pe=void 0!==w["icon-color"]?ii(C,"paint","icon-color",c,p,y):null;if(!pe||0!==pe.a){var he=W+"."+de;if(null!==pe&&(he+="."+pe),!(q=m[he])){var ge=i[W];q=new St.a({color:pe?[255*pe.r,255*pe.g,255*pe.b,pe.a]:void 0,img:s,imgSize:l,size:[ge.width,ge.height],offset:[ge.x,ge.y],rotateWithView:"map"===Z,scale:de/ge.pixelRatio}),m[he]=q}}q&&(++g,(T=x[g])&&T.getImage()&&!T.getFill()&&!T.getStroke()||(T=new bt.a,x[g]=T),T.setGeometry(J),q.setRotation(V+Nn(ii(C,"layout","icon-rotate",c,p,y))),q.setOpacity(ii(C,"paint","icon-opacity",c,p,y)),q.setAnchor(ti[ii(C,"layout","icon-anchor",c,p,y)]),T.setImage(q),z=T.getText(),T.setText(void 0),T.setZIndex(O),F=!0,H=!1)}else H=!0}}}if(1==d&&"circle-radius"in w){++g,(T=x[g])&&T.getImage()&&!T.getFill()&&!T.getStroke()||(T=new bt.a,x[g]=T);var me=ii(C,"paint","circle-radius",c,p,y),fe=ri(ii(C,"paint","circle-stroke-color",c,p,y),ii(C,"paint","circle-stroke-opacity",c,p,y)),ye=ri(ii(C,"paint","circle-color",c,p,y),ii(C,"paint","circle-opacity",c,p,y)),Ae=ii(C,"paint","circle-stroke-width",c,p,y),ve=me+"."+fe+"."+ye+"."+Ae;(q=m[ve])||(q=new _t.a({radius:me,stroke:fe&&Ae>0?new kt.a({width:Ae,color:fe}):void 0,fill:ye?new Pt.a({color:ye}):void 0}),m[ve]=q),T.setImage(q),z=T.getText(),T.setText(void 0),T.setGeometry(void 0),T.setZIndex(O),F=!0}var Ce=void 0;if("text-field"in b)Ce=si(ii(C,"layout","text-field",c,p,y).toString(),o).trim(),S=ii(C,"paint","text-opacity",c,p,y);if(Ce&&S&&!H){F||(++g,(T=x[g])&&T.getText()&&!T.getFill()&&!T.getStroke()||(T=new bt.a,x[g]=T),T.setImage(void 0),T.setGeometry(void 0)),T.getText()||T.setText(z||new Rt.a({padding:[2,2,2,2]})),z=T.getText();var Ie=Math.round(ii(C,"layout","text-size",c,p,y)),be=ii(C,"layout","text-font",c,p,y),we=ii(C,"layout","text-line-height",c,p,y),_e=Ln()(a?a(be):be,Ie,we),Ee=b["text-transform"];"uppercase"==Ee?Ce=Ce.toUpperCase():"lowercase"==Ee&&(Ce=Ce.toLowerCase());var Se=ii(C,"layout","text-max-width",c,p,y),Me=ii(C,"layout","text-letter-spacing",c,p,y),Pe=2==d?Wn(Ce,Me):function e(t,o,n,i){if(-1!==t.indexOf("\n")){for(var r=t.split("\n"),a=[],s=0,l=r.length;s1){var p=qn();p.font=o;var h=p.measureText("M").width*n,g="";for(a=[],s=0,l=d.length;s1;++s){var y=a[s];if(Hn(y,i)<.35*h){var A=s>0?Hn(a[s-1],i):1/0,v=s.7*h&&Hn(I,i)<.6*h){var b=C.split(" "),w=b.pop();Hn(w,i)<.2*h&&(a[s]=b.join(" "),a[s+1]=w+" "+I),l-=1}}u=a.join("\n")}else u=t;u=Wn(u,i),Yn[c]=u}return u}(Ce,_e,Se,Me);z.setText(Pe),z.setFont(_e),z.setRotation(Nn(ii(C,"layout","text-rotate",c,p,y)));var xe=ii(C,"layout","text-anchor",c,p,y),ke=F||1==d?"point":ii(C,"layout","symbol-placement",c,p,y);z.setPlacement(ke);var Ge=ii(C,"paint","text-halo-width",c,p,y),Re=ii(C,"layout","text-offset",c,p,y),Te=ii(C,"paint","text-translate",c,p,y),Oe=0,Le=0;if("point"==ke){var De="center";-1!==xe.indexOf("left")?(De="left",Le=Ge):-1!==xe.indexOf("right")&&(De="right",Le=-Ge),z.setTextAlign(De);var je=ii(C,"layout","text-rotation-alignment",c,p,y);z.setRotateWithView("map"==je)}else z.setMaxAngle(Nn(ii(C,"layout","text-max-angle",c,p,y))*Ce.length/Pe.length),z.setTextAlign(),z.setRotateWithView(!1);var Ue="middle";0==xe.indexOf("bottom")?(Ue="bottom",Oe=-Ge-.5*(we-1)*Ie):0==xe.indexOf("top")&&(Ue="top",Oe=Ge+.5*(we-1)*Ie),z.setTextBaseline(Ue),z.setOffsetX(Re[0]*Ie+Le+Te[0]),z.setOffsetY(Re[1]*Ie+Oe+Te[1]),P.setColor(ri(ii(C,"paint","text-color",c,p,y),S)),z.setFill(P);var Ne=ri(ii(C,"paint","text-halo-color",c,p,y),S);if(Ne){M.setColor(Ne),Ge*=2;var Be=.5*Ie;M.setWidth(Ge<=Be?Ge:Be),z.setStroke(M)}else z.setStroke(void 0);var Fe=ii(C,"layout","text-padding",c,p,y),ze=z.getPadding();Fe!==ze[0]&&(ze[0]=Fe,ze[1]=Fe,ze[2]=Fe,ze[3]=Fe),T.setZIndex(O)}}},C=0,I=r.length;C-1?(x.length=g+1,li&&("function"==typeof e.set?e.set("mapbox-layer",u):e.getProperties()["mapbox-layer"]=u),x):void 0}};return e.setStyle(k),e.set("mapbox-source",d),e.set("mapbox-layers",g),k},ui=o(70),di=o.n(ui),pi=o(35);function hi(e){return(hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var gi,mi=/font-family: ?([^;]*);/,fi=/("|')/g;function yi(e){if(!gi){gi={};for(var t=document.styleSheets,o=0,n=t.length;o2?n[2]:""):e+o}function _i(e,t,o,n,i){return new Promise((function(r,a){if("object"!=hi(t)&&(t=JSON.parse(t)),8!=t.version)return a(new Error("glStyle version 8 required."));if(!(e instanceof Do.a||e instanceof xo.a))return a(new Error("Can only apply to VectorLayer or VectorTileLayer"));var s,l,c;function u(){c||t.sprite&&!s?c?(e.setStyle(c),r()):a(new Error("Something went wrong trying to apply style.")):(c=ci(e,t,o,i,s,l,Ci),e.getStyle()?r():a(new Error("Nothing to show for source [".concat(o,"]"))))}if(t.sprite){var d=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",p=wi(t.sprite,n,d+".json");fetch(p,{credentials:"same-origin"}).then((function(e){return e.ok||""===d?e:(p=wi(t.sprite,n,".json"),fetch(p,{credentials:"same-origin"}))})).then((function(e){if(e.ok)return e.json();a(new Error("Problem fetching sprite from ".concat(p,": ").concat(e.statusText)))})).then((function(e){if(void 0===e)return a(new Error("No sprites found."));s=e,l=wi(t.sprite,n,d+".png"),u()})).catch((function(e){a(new Error("Sprites cannot be loaded: ".concat(p,": ").concat(e.message)))}))}else u()}))}new no.a;var Ei=function(e){function t(o,n){if(!(this instanceof t))throw new TypeError("ERROR CLASS_CONSTRUCTOR");if(!o.layer)throw new Error("ERROR PARAM_MISSING : layer");if("string"!=typeof o.layer)throw new Error("ERROR WRONG TYPE : layer");if(this.layerName=o.layer,this.styleName=o.style,this.sourceId=o.source,void 0===o.ssl&&(o.ssl=!0),this.protocol=!1===o.ssl?"http://":"https://",!ho.a.isConfigLoaded())throw new Error("ERROR : contract key configuration has to be loaded to load Geoportal layers.");var i=this.layerName+"$GEOPORTAIL:GPP:TMS",r=ho.a.configuration.getLayerConf(i);if(!r)throw new Error("ERROR : Layer ID not found into the catalogue !?");this.styleUrl=null,this.styleTitle="";for(var a=0;a>1,u=-7,d=o?i-1:0,p=o?-1:1,h=e[t+d];for(d+=p,r=h&(1<<-u)-1,h>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===r)r=1-c;else{if(r===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),r-=c}return(h?-1:1)*a*Math.pow(2,r-n)},t.write=function(e,t,o,n,i,r){var a,s,l,c=8*r-i-1,u=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:r-1,g=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[o+h]=255&s,h+=g,s/=256,i-=8);for(a=a<0;e[o+h]=255&a,h+=g,a/=256,c-=8);e[o+h-g]|=128*m}},function(e,t){var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},function(e,t,o){e.exports=function(){"use strict";var e=484813681109536e-20,t=Math.PI/2,o=.017453292519943295,n=57.29577951308232,i=Math.PI/4,r=2*Math.PI,a=3.14159265359,s={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},l={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},c=/[\s_\-\/\(\)]/g;function u(e,t){if(e[t])return e[t];for(var o,n=Object.keys(e),i=t.toLowerCase().replace(c,""),r=-1;++r=this.text.length)return;e=this.text[this.place++]}switch(this.state){case 1:return this.neutral(e);case 2:return this.keyword(e);case 4:return this.quoted(e);case 5:return this.afterquote(e);case 3:return this.number(e);case-1:return}},y.prototype.afterquote=function(e){if('"'===e)return this.word+='"',void(this.state=4);if(m.test(e))return this.word=this.word.trim(),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in afterquote yet, index '+this.place)},y.prototype.afterItem=function(e){return","===e?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===e?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},y.prototype.number=function(e){if(!f.test(e)){if(m.test(e))return this.word=parseFloat(this.word),void this.afterItem(e);throw new Error("havn't handled \""+e+'" in number yet, index '+this.place)}this.word+=e},y.prototype.quoted=function(e){'"'!==e?this.word+=e:this.state=5},y.prototype.keyword=function(e){if(g.test(e))this.word+=e;else{if("["===e){var t=[];return t.push(this.word),this.level++,null===this.root?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,void(this.state=1)}if(!m.test(e))throw new Error("havn't handled \""+e+'" in keyword yet, index '+this.place);this.afterItem(e)}},y.prototype.neutral=function(e){if(h.test(e))return this.word=e,void(this.state=2);if('"'===e)return this.word="",void(this.state=4);if(f.test(e))return this.word=e,void(this.state=3);if(!m.test(e))throw new Error("havn't handled \""+e+'" in neutral yet, index '+this.place);this.afterItem(e)},y.prototype.output=function(){for(;this.place0?90:-90),e.lat_ts=e.lat1)}(i),i};function b(e){var t=this;if(2===arguments.length){var o=arguments[1];"string"==typeof o?"+"===o.charAt(0)?b[e]=d(arguments[1]):b[e]=I(arguments[1]):b[e]=o}else if(1===arguments.length){if(Array.isArray(e))return e.map((function(e){Array.isArray(e)?b.apply(t,e):b(e)}));if("string"==typeof e){if(e in b)return b[e]}else"EPSG"in e?b["EPSG:"+e.EPSG]=e:"ESRI"in e?b["ESRI:"+e.ESRI]=e:"IAU2000"in e?b["IAU2000:"+e.IAU2000]=e:console.log(e);return}}!function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}(b);var w=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"],_=["3857","900913","3785","102113"];function E(e){if(!function(e){return"string"==typeof e}(e))return e;if(function(e){return e in b}(e))return b[e];if(function(e){return w.some((function(t){return e.indexOf(t)>-1}))}(e)){var t=I(e);if(function(e){var t=u(e,"authority");if(t){var o=u(t,"epsg");return o&&_.indexOf(o)>-1}}(t))return b["EPSG:3857"];var o=function(e){var t=u(e,"extension");if(t)return u(t,"proj4")}(t);return o?d(o):t}return function(e){return"+"===e[0]}(e)?d(e):void 0}var S=function(e,t){var o,n;if(e=e||{},!t)return e;for(n in t)void 0!==(o=t[n])&&(e[n]=o);return e},M=function(e,t,o){var n=e*t;return o/Math.sqrt(1-n*n)},P=function(e){return e<0?-1:1},x=function(e){return Math.abs(e)<=a?e:e-P(e)*r},k=function(e,o,n){var i=e*n,r=.5*e;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(t-o))/i},G=function(e,o){for(var n,i,r=.5*e,a=t-2*Math.atan(o),s=0;s<=15;s++)if(n=e*Math.sin(a),a+=i=t-2*Math.atan(o*Math.pow((1-n)/(1+n),r))-a,Math.abs(i)<=1e-10)return a;return-9999};function R(e){return e}var T=[{init:function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=M(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(e){var o,r,a=e.x,s=e.y;if(s*n>90&&s*n<-90&&a*n>180&&a*n<-180)return null;if(Math.abs(Math.abs(s)-t)<=1e-10)return null;if(this.sphere)o=this.x0+this.a*this.k0*x(a-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(i+.5*s));else{var l=Math.sin(s),c=k(this.e,s,l);o=this.x0+this.a*this.k0*x(a-this.long0),r=this.y0-this.a*this.k0*Math.log(c)}return e.x=o,e.y=r,e},inverse:function(e){var o,n,i=e.x-this.x0,r=e.y-this.y0;if(this.sphere)n=t-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var a=Math.exp(-r/(this.a*this.k0));if(-9999===(n=G(this.e,a)))return null}return o=x(this.long0+i/(this.a*this.k0)),e.x=o,e.y=n,e},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:R,inverse:R,names:["longlat","identity"]}],O={},L=[];function D(e,t){var o=L.length;return e.names?(L[o]=e,e.names.forEach((function(e){O[e.toLowerCase()]=o})),this):(console.log(t),!0)}var j={start:function(){T.forEach(D)},add:D,get:function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==O[t]&&L[O[t]]?L[O[t]]:void 0}},U={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},N=U.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};U.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var B={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},F={};function z(e){if(0===e.length)return null;var t="@"===e[0];return t&&(e=e.slice(1)),"null"===e?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:F[e]||null,isNull:!1}}function V(e){return e/3600*Math.PI/180}function W(e,t,o){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,o)))}function q(e){return e.map((function(e){return[V(e.longitudeShift),V(e.latitudeShift)]}))}function H(e,t,o){return{name:W(e,t+8,t+16).trim(),parent:W(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,o),upperLatitude:e.getFloat64(t+88,o),lowerLongitude:e.getFloat64(t+104,o),upperLongitude:e.getFloat64(t+120,o),latitudeInterval:e.getFloat64(t+136,o),longitudeInterval:e.getFloat64(t+152,o),gridNodeCount:e.getInt32(t+168,o)}}function Y(e,t,o,n){for(var i=t+176,r=[],a=0;a3&&(0===l.datum_params[3]&&0===l.datum_params[4]&&0===l.datum_params[5]&&0===l.datum_params[6]||(l.datum_type=2,l.datum_params[3]*=e,l.datum_params[4]*=e,l.datum_params[5]*=e,l.datum_params[6]=l.datum_params[6]/1e6+1))),s&&(l.datum_type=3,l.grids=s),l.a=n,l.b=i,l.es=r,l.ep2=a,l}(n.datumCode,n.datum_params,g.a,g.b,m.es,m.ep2,f);S(this,n),S(this,i),this.a=g.a,this.b=g.b,this.rf=g.rf,this.sphere=g.sphere,this.es=m.es,this.e=m.e,this.ep2=m.ep2,this.datum=y,this.init(),o(null,this)}else o(t)}else o(t)}function Z(e,o,n){var i,r,a,s,l=e.x,c=e.y,u=e.z?e.z:0;if(c<-t&&c>-1.001*t)c=-t;else if(c>t&&c<1.001*t)c=t;else{if(c<-t)return{x:-1/0,y:-1/0,z:e.z};if(c>t)return{x:1/0,y:1/0,z:e.z}}return l>Math.PI&&(l-=2*Math.PI),r=Math.sin(c),s=Math.cos(c),a=r*r,{x:((i=n/Math.sqrt(1-o*a))+u)*s*Math.cos(l),y:(i+u)*s*Math.sin(l),z:(i*(1-o)+u)*r}}function K(e,t,o,n){var i,r,a,s,l,c,u,d,p,h,g,m,f,y,A,v=e.x,C=e.y,I=e.z?e.z:0;if(i=Math.sqrt(v*v+C*C),r=Math.sqrt(v*v+C*C+I*I),i/o<1e-12){if(y=0,r/o<1e-12)return A=-n,{x:e.x,y:e.y,z:e.z}}else y=Math.atan2(C,v);a=I/r,d=(s=i/r)*(1-t)*(l=1/Math.sqrt(1-t*(2-t)*s*s)),p=a*l,f=0;do{f++,c=t*(u=o/Math.sqrt(1-t*p*p))/(u+(A=i*d+I*p-u*(1-t*p*p))),m=(g=a*(l=1/Math.sqrt(1-c*(2-c)*s*s)))*d-(h=s*(1-c)*l)*p,d=h,p=g}while(m*m>1e-24&&f<30);return{x:y,y:Math.atan(g/Math.abs(h)),z:A}}function X(e){return 1===e||2===e}J.projections=j,J.projections.start();var Q=function(e,t,o){if(function(e,t){return e.datum_type===t.datum_type&&!(e.a!==t.a||Math.abs(e.es-t.es)>5e-11)&&(1===e.datum_type?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:2!==e.datum_type||e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6])}(e,t))return o;if(5===e.datum_type||5===t.datum_type)return o;var n=e.a,i=e.es;if(3===e.datum_type){if(0!==$(e,!1,o))return;n=6378137,i=.0066943799901413165}var r=t.a,a=t.b,s=t.es;return 3===t.datum_type&&(r=6378137,a=6356752.314,s=.0066943799901413165),i!==s||n!==r||X(e.datum_type)||X(t.datum_type)?(o=Z(o,i,n),X(e.datum_type)&&(o=function(e,t,o){if(1===t)return{x:e.x+o[0],y:e.y+o[1],z:e.z+o[2]};if(2===t){var n=o[0],i=o[1],r=o[2],a=o[3],s=o[4],l=o[5],c=o[6];return{x:c*(e.x-l*e.y+s*e.z)+n,y:c*(l*e.x+e.y-a*e.z)+i,z:c*(-s*e.x+a*e.y+e.z)+r}}}(o,e.datum_type,e.datum_params)),X(t.datum_type)&&(o=function(e,t,o){if(1===t)return{x:e.x-o[0],y:e.y-o[1],z:e.z-o[2]};if(2===t){var n=o[0],i=o[1],r=o[2],a=o[3],s=o[4],l=o[5],c=o[6],u=(e.x-n)/c,d=(e.y-i)/c,p=(e.z-r)/c;return{x:u+l*d-s*p,y:-l*u+d+a*p,z:s*u-a*d+p}}}(o,t.datum_type,t.datum_params)),o=K(o,s,r,a),3!==t.datum_type||0===$(t,!0,o)?o:void 0):o};function $(e,t,o){if(null===e.grids||0===e.grids.length)return console.log("Grid shift grids not found"),-1;for(var i={x:-o.x,y:o.y},r={x:Number.NaN,y:Number.NaN},a=[],s=0;si.y||d>i.x||g1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=x(r.x+o.ll[0]),n.y=r.y+o.ll[1]}else isNaN(r.x)||(n.x=e.x+r.x,n.y=e.y+r.y);return n}function te(e,t){var o,n={x:e.x/t.del[0],y:e.y/t.del[1]},i=Math.floor(n.x),r=Math.floor(n.y),a=n.x-1*i,s=n.y-1*r,l={x:Number.NaN,y:Number.NaN};if(i<0||i>=t.lim[0])return l;if(r<0||r>=t.lim[1])return l;o=r*t.lim[0]+i;var c=t.cvs[o][0],u=t.cvs[o][1];o++;var d=t.cvs[o][0],p=t.cvs[o][1];o+=t.lim[0];var h=t.cvs[o][0],g=t.cvs[o][1];o--;var m=t.cvs[o][0],f=t.cvs[o][1],y=a*s,A=a*(1-s),v=(1-a)*(1-s),C=(1-a)*s;return l.x=v*c+A*d+C*m+y*h,l.y=v*u+A*p+C*f+y*g,l}var oe=function(e,t,o){var n,i,r,a=o.x,s=o.y,l=o.z||0,c={};for(r=0;r<3;r++)if(!t||2!==r||void 0!==o.z)switch(0===r?(n=a,i=-1!=="ew".indexOf(e.axis[r])?"x":"y"):1===r?(n=s,i=-1!=="ns".indexOf(e.axis[r])?"y":"x"):(n=l,i="z"),e.axis[r]){case"e":c[i]=n;break;case"w":c[i]=-n;break;case"n":c[i]=n;break;case"s":c[i]=-n;break;case"u":void 0!==o[i]&&(c.z=n);break;case"d":void 0!==o[i]&&(c.z=-n);break;default:return null}return c},ne=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t};function ie(e){if("function"==typeof Number.isFinite){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof e||e!=e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function re(e,t,i,r){var a;if(Array.isArray(i)&&(i=ne(i)),function(e){ie(e.x),ie(e.y)}(i),e.datum&&t.datum&&function(e,t){return(1===e.datum.datum_type||2===e.datum.datum_type)&&"WGS84"!==t.datumCode||(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==e.datumCode}(e,t)&&(i=re(e,a=new J("WGS84"),i,r),e=a),r&&"enu"!==e.axis&&(i=oe(e,!1,i)),"longlat"===e.projName)i={x:i.x*o,y:i.y*o,z:i.z||0};else if(e.to_meter&&(i={x:i.x*e.to_meter,y:i.y*e.to_meter,z:i.z||0}),!(i=e.inverse(i)))return;if(e.from_greenwich&&(i.x+=e.from_greenwich),i=Q(e.datum,t.datum,i))return t.from_greenwich&&(i={x:i.x-t.from_greenwich,y:i.y,z:i.z||0}),"longlat"===t.projName?i={x:i.x*n,y:i.y*n,z:i.z||0}:(i=t.forward(i),t.to_meter&&(i={x:i.x/t.to_meter,y:i.y/t.to_meter,z:i.z||0})),r&&"enu"!==t.axis?oe(t,!0,i):i}var ae=J("WGS84");function se(e,t,o,n){var i,r,a;return Array.isArray(o)?(i=re(e,t,o,n)||{x:NaN,y:NaN},o.length>2?void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name?"number"==typeof i.z?[i.x,i.y,i.z].concat(o.splice(3)):[i.x,i.y,o[2]].concat(o.splice(3)):[i.x,i.y].concat(o.splice(2)):[i.x,i.y]):(r=re(e,t,o,n),2===(a=Object.keys(o)).length||a.forEach((function(n){if(void 0!==e.name&&"geocent"===e.name||void 0!==t.name&&"geocent"===t.name){if("x"===n||"y"===n||"z"===n)return}else if("x"===n||"y"===n)return;r[n]=o[n]})),r)}function le(e){return e instanceof J?e:e.oProj?e.oProj:J(e)}function ce(e,t,o){e=le(e);var n,i=!1;return void 0===t?(t=e,e=ae,i=!0):(void 0!==t.x||Array.isArray(t))&&(o=t,t=e,e=ae,i=!0),t=le(t),o?se(e,t,o):(n={forward:function(o,n){return se(e,t,o,n)},inverse:function(o,n){return se(t,e,o,n)}},i&&(n.oProj=t),n)}var ue=65,de=73,pe=79,he={forward:ge,inverse:function(e){var t=Ae(Ce(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]},toPoint:me};function ge(e,t){return t=t||5,function(e,t){var o,n,i,r,a,s,l,c,u,d,p,h,g,m,f="00000"+e.easting,y="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(u=e.easting,d=e.northing,p=e.zoneNumber,h=ve(p),g=Math.floor(u/1e5),m=Math.floor(d/1e5)%20,o=g,n=m,r="AJSAJS".charCodeAt(i=h-1),a="AFAFAF".charCodeAt(i),c=!1,(s=r+o-1)>90&&(s=s-90+ue-1,c=!0),(s===de||rde||(s>de||rpe||(s>pe||r90&&(s=s-90+ue-1),(l=a+n)>86?(l=l-86+ue-1,c=!0):c=!1,(l===de||ade||(l>de||ape||(l>pe||a86&&(l=l-86+ue-1),String.fromCharCode(s)+String.fromCharCode(l))+f.substr(f.length-5,t)+y.substr(y.length-5,t)}(function(e){var t,o,n,i,r,a,s,l=e.lat,c=e.lon,u=6378137,d=fe(l),p=fe(c);s=Math.floor((c+180)/6)+1,180===c&&(s=60),l>=56&&l<64&&c>=3&&c<12&&(s=32),l>=72&&l<84&&(c>=0&&c<9?s=31:c>=9&&c<21?s=33:c>=21&&c<33?s=35:c>=33&&c<42&&(s=37)),a=fe(6*(s-1)-180+3),t=u/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),o=Math.tan(d)*Math.tan(d),n=.006739496752268451*Math.cos(d)*Math.cos(d),i=Math.cos(d)*(p-a),r=u*(.9983242984503243*d-.002514607064228144*Math.sin(2*d)+2639046602129982e-21*Math.sin(4*d)-3.418046101696858e-9*Math.sin(6*d));var h,g,m=.9996*t*(i+(1-o+n)*i*i*i/6+(5-18*o+o*o+72*n-.39089081163157013)*i*i*i*i*i/120)+5e5,f=.9996*(r+t*Math.tan(d)*(i*i/2+(5-o+9*n+4*n*n)*i*i*i*i/24+(61-58*o+o*o+600*n-2.2240339282485886)*i*i*i*i*i*i/720));return l<0&&(f+=1e7),{northing:Math.round(f),easting:Math.round(m),zoneNumber:s,zoneLetter:(h=l,g="Z",84>=h&&h>=72?g="X":72>h&&h>=64?g="W":64>h&&h>=56?g="V":56>h&&h>=48?g="U":48>h&&h>=40?g="T":40>h&&h>=32?g="S":32>h&&h>=24?g="R":24>h&&h>=16?g="Q":16>h&&h>=8?g="P":8>h&&h>=0?g="N":0>h&&h>=-8?g="M":-8>h&&h>=-16?g="L":-16>h&&h>=-24?g="K":-24>h&&h>=-32?g="J":-32>h&&h>=-40?g="H":-40>h&&h>=-48?g="G":-48>h&&h>=-56?g="F":-56>h&&h>=-64?g="E":-64>h&&h>=-72?g="D":-72>h&&h>=-80&&(g="C"),g)}}({lat:e[1],lon:e[0]}),t)}function me(e){var t=Ae(Ce(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function fe(e){return e*(Math.PI/180)}function ye(e){return e/Math.PI*180}function Ae(e){var t=e.northing,o=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var r,a,s,l,c,u,d,p,h=6378137,g=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=o-5e5,f=t;n<"N"&&(f-=1e7),u=6*(i-1)-180+3,p=(d=f/.9996/6367449.145945056)+(3*g/2-27*g*g*g/32)*Math.sin(2*d)+(21*g*g/16-55*g*g*g*g/32)*Math.sin(4*d)+151*g*g*g/96*Math.sin(6*d),r=h/Math.sqrt(1-.00669438*Math.sin(p)*Math.sin(p)),a=Math.tan(p)*Math.tan(p),s=.006739496752268451*Math.cos(p)*Math.cos(p),l=.99330562*h/Math.pow(1-.00669438*Math.sin(p)*Math.sin(p),1.5),c=m/(.9996*r);var y=p-r*Math.tan(p)/l*(c*c/2-(5+3*a+10*s-4*s*s-.06065547077041606)*c*c*c*c/24+(61+90*a+298*s+45*a*a-1.6983531815716497-3*s*s)*c*c*c*c*c*c/720);y=ye(y);var A,v=(c-(1+2*a+s)*c*c*c/6+(5-2*s+28*a-3*s*s+.05391597401814761+24*a*a)*c*c*c*c*c/120)/Math.cos(p);if(v=u+ye(v),e.accuracy){var C=Ae({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});A={top:C.lat,right:C.lon,bottom:y,left:v}}else A={lat:y,lon:v};return A}function ve(e){var t=e%6;return 0===t&&(t=6),t}function Ce(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,o=e.length,n=null,i="",r=0;!/[A-Z]/.test(t=e.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+e;i+=t,r++}var a=parseInt(i,10);if(0===r||r+3>o)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(r++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+e;n=e.substring(r,r+=2);for(var l=ve(a),c=function(e,t){for(var o="AJSAJS".charCodeAt(t-1),n=1e5,i=!1;o!==e.charCodeAt(0);){if(++o===de&&o++,o===pe&&o++,o>90){if(i)throw"Bad character: "+e;o=ue,i=!0}n+=1e5}return n}(n.charAt(0),l),u=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var o="AFAFAF".charCodeAt(t-1),n=0,i=!1;o!==e.charCodeAt(0);){if(++o===de&&o++,o===pe&&o++,o>86){if(i)throw"Bad character: "+e;o=ue,i=!0}n+=1e5}return n}(n.charAt(1),l);u0&&(p=1e5/Math.pow(10,m),h=e.substring(r,r+m),f=parseFloat(h)*p,g=e.substring(r+m),y=parseFloat(g)*p),{easting:f+c,northing:y+u,zoneLetter:s,zoneNumber:a,accuracy:p}}function Ie(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function be(e,t,o){if(!(this instanceof be))return new be(e,t,o);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"==typeof e)this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=o||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}be.fromMGRS=function(e){return new be(me(e))},be.prototype.toMGRS=function(e){return ge([this.x,this.y],e)};var we=.01068115234375,_e=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*we))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*we)));var o=e*e;return t[2]=o*(.46875-e*(.013020833333333334+.007120768229166667*e)),o*=e,t[3]=o*(.3645833333333333-.005696614583333333*e),t[4]=o*e*.3076171875,t},Ee=function(e,t,o,n){return o*=t,t*=t,n[0]*e-o*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))},Se=function(e,t,o){for(var n=1/(1-t),i=e,r=20;r;--r){var a=Math.sin(i),s=1-t*a*a;if(i-=s=(Ee(i,a,Math.cos(i),o)-e)*(s*Math.sqrt(s))*n,Math.abs(s)<1e-10)return i}return i},Me={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=_e(this.es),this.ml0=Ee(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(e){var t,o,n,i=e.x,r=e.y,a=x(i-this.long0),s=Math.sin(r),l=Math.cos(r);if(this.es){var c=l*a,u=Math.pow(c,2),d=this.ep2*Math.pow(l,2),p=Math.pow(d,2),h=Math.abs(l)>1e-10?Math.tan(r):0,g=Math.pow(h,2),m=Math.pow(g,2);t=1-this.es*Math.pow(s,2),c/=Math.sqrt(t);var f=Ee(r,s,l,this.en);o=this.a*(this.k0*c*(1+u/6*(1-g+d+u/20*(5-18*g+m+14*d-58*g*d+u/42*(61+179*m-m*g-479*g)))))+this.x0,n=this.a*(this.k0*(f-this.ml0+s*a*c/2*(1+u/12*(5-g+9*d+4*p+u/30*(61+m-58*g+270*d-330*g*d+u/56*(1385+543*m-m*g-3111*g))))))+this.y0}else{var y=l*Math.sin(a);if(Math.abs(Math.abs(y)-1)<1e-10)return 93;if(o=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,n=l*Math.cos(a)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(n))>=1){if(y-1>1e-10)return 93;n=0}else n=Math.acos(n);r<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return e.x=o,e.y=n,e},inverse:function(e){var o,n,i,r,a=(e.x-this.x0)*(1/this.a),s=(e.y-this.y0)*(1/this.a);if(this.es)if(o=this.ml0+s/this.k0,n=Se(o,this.es,this.en),Math.abs(n)1e-10?Math.tan(n):0,d=this.ep2*Math.pow(c,2),p=Math.pow(d,2),h=Math.pow(u,2),g=Math.pow(h,2);o=1-this.es*Math.pow(l,2);var m=a*Math.sqrt(o)/this.k0,f=Math.pow(m,2);i=n-(o*=u)*f/(1-this.es)*.5*(1-f/12*(5+3*h-9*d*h+d-4*p-f/30*(61+90*h-252*d*h+45*g+46*d-f/56*(1385+3633*h+4095*g+1574*g*h)))),r=x(this.long0+m*(1-f/6*(1+2*h+d-f/20*(5+28*h+24*g+8*d*h+6*d-f/42*(61+662*h+1320*g+720*g*h))))/c)}else i=t*P(s),r=0;else{var y=Math.exp(a/this.k0),A=.5*(y-1/y),v=this.lat0+s/this.k0,C=Math.cos(v);o=Math.sqrt((1-Math.pow(C,2))/(1+Math.pow(A,2))),i=Math.asin(o),s<0&&(i=-i),r=0===A&&0===C?0:x(Math.atan2(A,C)+this.long0)}return e.x=r,e.y=i,e},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]},Pe=function(e){var t=Math.exp(e);return t=(t-1/t)/2},xe=function(e,t){e=Math.abs(e),t=Math.abs(t);var o=Math.max(e,t),n=Math.min(e,t)/(o||1);return o*Math.sqrt(1+Math.pow(n,2))},ke=function(e){var t=Math.abs(e);return t=function(e){var t=1+e,o=t-1;return 0===o?e:e*Math.log(t)/o}(t*(1+t/(xe(1,t)+1))),e<0?-t:t},Ge=function(e,t){for(var o,n=2*Math.cos(2*t),i=e.length-1,r=e[i],a=0;--i>=0;)o=n*r-a+e[i],a=r,r=o;return t+o*Math.sin(2*t)},Re=function(e,t,o){for(var n,i,r=Math.sin(t),a=Math.cos(t),s=Pe(o),l=function(e){var t=Math.exp(e);return t=(t+1/t)/2}(o),c=2*a*l,u=-2*r*s,d=e.length-1,p=e[d],h=0,g=0,m=0;--d>=0;)n=g,i=h,p=c*(g=p)-n-u*(h=m)+e[d],m=u*g-i+c*h;return[(c=r*l)*p-(u=a*s)*m,c*m+u*p]},Te={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Me.init.apply(this),this.forward=Me.forward,this.inverse=Me.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),o=t;this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+t*(-2854/675)))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))-2),o*=t,this.cgb[1]=o*(7/3+t*(t*(-227/45+t*(2704/315+t*(2323/945)))-1.6)),this.cbg[1]=o*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),o*=t,this.cgb[2]=o*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=o*(-26/15+t*(34/21+t*(1.6+t*(-12686/2835)))),o*=t,this.cgb[3]=o*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=o*(1237/630+t*(t*(-24832/14175)-2.4)),o*=t,this.cgb[4]=o*(4174/315+t*(-144838/6237)),this.cbg[4]=o*(-734/315+t*(109598/31185)),o*=t,this.cgb[5]=o*(601676/22275),this.cbg[5]=o*(444337/155925),o=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+o*(1/4+o*(1/64+o/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=o*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=o*(13/48+t*(t*(557/1440+t*(281/630+t*(-1983433/1935360)))-.6)),o*=t,this.utg[2]=o*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=o*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),o*=t,this.utg[3]=o*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=o*(49561/161280+t*(-179/168+t*(6601661/7257600))),o*=t,this.utg[4]=o*(-4583/161280+t*(108847/3991680)),this.gtu[4]=o*(34729/80640+t*(-3418889/1995840)),o*=t,this.utg[5]=o*(-20648693/638668800),this.gtu[5]=.6650675310896665*o;var n=Ge(this.cbg,this.lat0);this.Zb=-this.Qn*(n+function(e,t){for(var o,n=2*Math.cos(t),i=e.length-1,r=e[i],a=0;--i>=0;)o=n*r-a+e[i],a=r,r=o;return Math.sin(t)*o}(this.gtu,2*n))},forward:function(e){var t=x(e.x-this.long0),o=e.y;o=Ge(this.cbg,o);var n=Math.sin(o),i=Math.cos(o),r=Math.sin(t),a=Math.cos(t);o=Math.atan2(n,a*i),t=Math.atan2(r*i,xe(n,i*a)),t=ke(Math.tan(t));var s,l,c=Re(this.gtu,2*o,2*t);return o+=c[0],t+=c[1],Math.abs(t)<=2.623395162778?(s=this.a*(this.Qn*t)+this.x0,l=this.a*(this.Qn*o+this.Zb)+this.y0):(s=1/0,l=1/0),e.x=s,e.y=l,e},inverse:function(e){var t,o,n=(e.x-this.x0)*(1/this.a),i=(e.y-this.y0)*(1/this.a);if(i=(i-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var r=Re(this.utg,2*i,2*n);i+=r[0],n+=r[1],n=Math.atan(Pe(n));var a=Math.sin(i),s=Math.cos(i),l=Math.sin(n),c=Math.cos(n);i=Math.atan2(a*c,xe(l,c*s)),n=Math.atan2(l,c*s),t=x(n+this.long0),o=Ge(this.cgb,i)}else t=1/0,o=1/0;return e.x=t,e.y=o,e},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"]},Oe={init:function(){var e=function(e,t){if(void 0===e){if((e=Math.floor(30*(x(t)+Math.PI)/Math.PI)+1)<0)return 0;if(e>60)return 60}return e}(this.zone,this.long0);if(void 0===e)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*o,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Te.init.apply(this),this.forward=Te.forward,this.inverse=Te.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"},Le=function(e,t){return Math.pow((1-e)/(1+e),t)},De={init:function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+i)/(Math.pow(Math.tan(.5*this.lat0+i),this.C)*Le(this.e*e,this.ratexp))},forward:function(e){var o=e.x,n=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+i),this.C)*Le(this.e*Math.sin(n),this.ratexp))-t,e.x=this.C*o,e},inverse:function(e){for(var o=e.x/this.C,n=e.y,r=Math.pow(Math.tan(.5*n+i)/this.K,1/this.C),a=20;a>0&&(n=2*Math.atan(r*Le(this.e*Math.sin(e.y),-.5*this.e))-t,!(Math.abs(n-e.y)<1e-14));--a)e.y=n;return a?(e.x=o,e.y=n,e):null},names:["gauss"]},je={init:function(){De.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(e){var t,o,n,i;return e.x=x(e.x-this.long0),De.forward.apply(this,[e]),t=Math.sin(e.y),o=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*o*n),e.x=i*o*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*o*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},inverse:function(e){var t,o,n,i,r;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,r=Math.sqrt(e.x*e.x+e.y*e.y)){var a=2*Math.atan2(r,this.R2);t=Math.sin(a),o=Math.cos(a),i=Math.asin(o*this.sinc0+e.y*t*this.cosc0/r),n=Math.atan2(e.x*t,r*this.cosc0*o-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,De.inverse.apply(this,[e]),e.x=x(e.x+this.long0),e},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]},Ue={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+P(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*M(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/k(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=M(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-t,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(e){var o,n,i,r,a,s,l=e.x,c=e.y,u=Math.sin(c),d=Math.cos(c),p=x(l-this.long0);return Math.abs(Math.abs(l-this.long0)-Math.PI)<=1e-10&&Math.abs(c+this.lat0)<=1e-10?(e.x=NaN,e.y=NaN,e):this.sphere?(o=2*this.k0/(1+this.sinlat0*u+this.coslat0*d*Math.cos(p)),e.x=this.a*o*d*Math.sin(p)+this.x0,e.y=this.a*o*(this.coslat0*u-this.sinlat0*d*Math.cos(p))+this.y0,e):(n=2*Math.atan(this.ssfn_(c,u,this.e))-t,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=1e-10?(a=k(this.e,c*this.con,this.con*u),s=2*this.a*this.k0*a/this.cons,e.x=this.x0+s*Math.sin(l-this.long0),e.y=this.y0-this.con*s*Math.cos(l-this.long0),e):(Math.abs(this.sinlat0)<1e-10?(o=2*this.a*this.k0/(1+r*Math.cos(p)),e.y=o*i):(o=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*r*Math.cos(p))),e.y=o*(this.cosX0*i-this.sinX0*r*Math.cos(p))+this.y0),e.x=o*r*Math.sin(p)+this.x0,e))},inverse:function(e){var o,n,i,r,a;e.x-=this.x0,e.y-=this.y0;var s=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var l=2*Math.atan(s/(2*this.a*this.k0));return o=this.long0,n=this.lat0,s<=1e-10?(e.x=o,e.y=n,e):(n=Math.asin(Math.cos(l)*this.sinlat0+e.y*Math.sin(l)*this.coslat0/s),o=Math.abs(this.coslat0)<1e-10?this.lat0>0?x(this.long0+Math.atan2(e.x,-1*e.y)):x(this.long0+Math.atan2(e.x,e.y)):x(this.long0+Math.atan2(e.x*Math.sin(l),s*this.coslat0*Math.cos(l)-e.y*this.sinlat0*Math.sin(l))),e.x=o,e.y=n,e)}if(Math.abs(this.coslat0)<=1e-10){if(s<=1e-10)return n=this.lat0,o=this.long0,e.x=o,e.y=n,e;e.x*=this.con,e.y*=this.con,i=s*this.cons/(2*this.a*this.k0),n=this.con*G(this.e,i),o=this.con*x(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else r=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),o=this.long0,s<=1e-10?a=this.X0:(a=Math.asin(Math.cos(r)*this.sinX0+e.y*Math.sin(r)*this.cosX0/s),o=x(this.long0+Math.atan2(e.x*Math.sin(r),s*this.cosX0*Math.cos(r)-e.y*this.sinX0*Math.sin(r)))),n=-1*G(this.e,Math.tan(.5*(t+a)));return e.x=o,e.y=n,e},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(e,o,n){return o*=n,Math.tan(.5*(t+e))*Math.pow((1-o)/(1+o),.5*n)}},Ne={init:function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),o=this.a,n=1/this.rf,i=2*n-Math.pow(n,2),r=this.e=Math.sqrt(i);this.R=this.k0*o*Math.sqrt(1-i)/(1-i*Math.pow(t,2)),this.alpha=Math.sqrt(1+i/(1-i)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+r*t)/(1-r*t));this.K=a-this.alpha*s+this.alpha*r/2*l},forward:function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),o=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+o)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),r=this.alpha*(e.x-this.lambda0),a=Math.atan(Math.sin(r)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(r))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(r));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*a+this.x0,e},inverse:function(e){for(var t=e.x-this.x0,o=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(o/this.R))-Math.PI/4),r=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),a=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+a/this.alpha,l=0,c=r,u=-1e3,d=0;Math.abs(c-u)>1e-7;){if(++d>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+r/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),u=c,c=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=s,e.y=c,e},names:["somerc"]},Be={init:function(){var e,n,a,s,l,c,u,d,p,h,g,m,f,y=0,A=0,v=0,C=0,I=0,b=0,w=0;this.no_off=(f="object"==typeof(m=this).PROJECTION?Object.keys(m.PROJECTION)[0]:m.PROJECTION,"no_uoff"in m||"no_off"in m||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(f)),this.no_rot="no_rot"in this;var _=!1;"alpha"in this&&(_=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),_&&(w=this.alpha),E&&(y=this.rectified_grid_angle*o),_||E)A=this.longc;else if(v=this.long1,I=this.lat1,C=this.long2,b=this.lat2,Math.abs(I-b)<=1e-7||(e=Math.abs(I))<=1e-7||Math.abs(e-t)<=1e-7||Math.abs(Math.abs(this.lat0)-t)<=1e-7||Math.abs(Math.abs(b)-t)<=1e-7)throw new Error;var S=1-this.es;n=Math.sqrt(S),Math.abs(this.lat0)>1e-10?(d=Math.sin(this.lat0),a=Math.cos(this.lat0),e=1-this.es*d*d,this.B=a*a,this.B=Math.sqrt(1+this.es*this.B*this.B/S),this.A=this.B*this.k0*n/e,(l=(s=this.B*n/(a*Math.sqrt(e)))*s-1)<=0?l=0:(l=Math.sqrt(l),this.lat0<0&&(l=-l)),this.E=l+=s,this.E*=Math.pow(k(this.e,this.lat0,d),this.B)):(this.B=1/n,this.A=this.k0,this.E=s=l=1),_||E?(_?(g=Math.asin(Math.sin(w)/s),E||(y=w)):(g=y,w=Math.asin(s*Math.sin(g))),this.lam0=A-Math.asin(.5*(l-1/l)*Math.tan(g))/this.B):(c=Math.pow(k(this.e,I,Math.sin(I)),this.B),u=Math.pow(k(this.e,b,Math.sin(b)),this.B),l=this.E/c,p=(u-c)/(u+c),h=((h=this.E*this.E)-u*c)/(h+u*c),(e=v-C)<-Math.pi?C-=r:e>Math.pi&&(C+=r),this.lam0=x(.5*(v+C)-Math.atan(h*Math.tan(.5*this.B*(v-C))/p)/this.B),g=Math.atan(2*Math.sin(this.B*x(v-this.lam0))/(l-1/l)),y=w=Math.asin(s*Math.sin(g))),this.singam=Math.sin(g),this.cosgam=Math.cos(g),this.sinrot=Math.sin(y),this.cosrot=Math.cos(y),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(s*s-1)/Math.cos(w))),this.lat0<0&&(this.u_0=-this.u_0)),l=.5*g,this.v_pole_n=this.ArB*Math.log(Math.tan(i-l)),this.v_pole_s=this.ArB*Math.log(Math.tan(i+l))},forward:function(e){var o,n,i,r,a,s,l,c,u={};if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-t)>1e-10){if(o=.5*((a=this.E/Math.pow(k(this.e,e.y,Math.sin(e.y)),this.B))-(s=1/a)),n=.5*(a+s),r=Math.sin(this.B*e.x),i=(o*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(i)-1)<1e-10)throw new Error;c=.5*this.ArB*Math.log((1-i)/(1+i)),s=Math.cos(this.B*e.x),l=Math.abs(s)<1e-7?this.A*e.x:this.ArB*Math.atan2(o*this.cosgam+r*this.singam,s)}else c=e.y>0?this.v_pole_n:this.v_pole_s,l=this.ArB*e.y;return this.no_rot?(u.x=l,u.y=c):(l-=this.u_0,u.x=c*this.cosrot+l*this.sinrot,u.y=l*this.cosrot-c*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(e){var o,n,i,r,a,s,l,c={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(n=e.y,o=e.x):(n=e.x*this.cosrot-e.y*this.sinrot,o=e.y*this.cosrot+e.x*this.sinrot+this.u_0),r=.5*((i=Math.exp(-this.BrA*n))-1/i),a=.5*(i+1/i),l=((s=Math.sin(this.BrA*o))*this.cosgam+r*this.singam)/a,Math.abs(Math.abs(l)-1)<1e-10)c.x=0,c.y=l<0?-t:t;else{if(c.y=this.E/Math.sqrt((1+l)/(1-l)),c.y=G(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(r*this.cosgam-s*this.singam,Math.cos(this.BrA*o))}return c.x+=this.lam0,c},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},Fe={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),o=Math.cos(this.lat1),n=M(this.e,t,o),i=k(this.e,this.lat1,t),r=Math.sin(this.lat2),a=Math.cos(this.lat2),s=M(this.e,r,a),l=k(this.e,this.lat2,r),c=k(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(n/s)/Math.log(i/l):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(e){var o=e.x,n=e.y;Math.abs(2*Math.abs(n)-Math.PI)<=1e-10&&(n=P(n)*(t-2e-10));var i,r,a=Math.abs(Math.abs(n)-t);if(a>1e-10)i=k(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if((a=n*this.ns)<=0)return null;r=0}var s=this.ns*x(o-this.long0);return e.x=this.k0*(r*Math.sin(s))+this.x0,e.y=this.k0*(this.rh-r*Math.cos(s))+this.y0,e},inverse:function(e){var o,n,i,r,a,s=(e.x-this.x0)/this.k0,l=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(o=Math.sqrt(s*s+l*l),n=1):(o=-Math.sqrt(s*s+l*l),n=-1);var c=0;if(0!==o&&(c=Math.atan2(n*s,n*l)),0!==o||this.ns>0){if(n=1/this.ns,i=Math.pow(o/(this.a*this.f0),n),-9999===(r=G(this.e,i)))return null}else r=-t;return a=x(c/this.ns+this.long0),e.x=a,e.y=r,e},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc"]},ze={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(e){var t,o,n,i,r,a,s,l=e.x,c=e.y,u=x(l-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),o=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),n=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(o)+Math.sin(this.ad)*Math.cos(o)*Math.cos(n)),r=Math.asin(Math.cos(o)*Math.sin(n)/Math.cos(i)),a=this.n*r,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(a)/1,e.x=s*Math.sin(a)/1,this.czech||(e.y*=-1,e.x*=-1),e},inverse:function(e){var t,o,n,i,r,a,s,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),r=Math.sqrt(e.x*e.x+e.y*e.y),i=Math.atan2(e.y,e.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/r,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),o=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-o/this.alfa,a=t,s=0;var c=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-e.y)<1e-10&&(s=1),a=e.y,c+=1}while(0===s&&c<15);return c>=15?null:e},names:["Krovak","krovak"]},Ve=function(e,t,o,n,i){return e*i-t*Math.sin(2*i)+o*Math.sin(4*i)-n*Math.sin(6*i)},We=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))},qe=function(e){return.375*e*(1+.25*e*(1+.46875*e))},He=function(e){return.05859375*e*e*(1+.75*e)},Ye=function(e){return e*e*e*(35/3072)},Je=function(e,t,o){var n=t*o;return e/Math.sqrt(1-n*n)},Ze=function(e){return Math.abs(e)1e-7?(1-e*e)*(t/(1-(o=e*t)*o)-.5/e*Math.log((1-o)/(1+o))):2*t},$e={init:function(){var e,o=Math.abs(this.lat0);if(Math.abs(o-t)<1e-10?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(o)<1e-10?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Qe(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(e){var t,o=[];return o[0]=.3333333333333333*e,t=e*e,o[0]+=.17222222222222222*t,o[1]=.06388888888888888*t,t*=e,o[0]+=.10257936507936508*t,o[1]+=.0664021164021164*t,o[2]=.016415012942191543*t,o}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Qe(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(e){var o,n,r,a,s,l,c,u,d,p,h=e.x,g=e.y;if(h=x(h-this.long0),this.sphere){if(s=Math.sin(g),p=Math.cos(g),r=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+p*r:1+this.sinph0*s+this.cosph0*p*r)<=1e-10)return null;o=(n=Math.sqrt(2/n))*p*Math.sin(h),n*=this.mode===this.EQUIT?s:this.cosph0*s-this.sinph0*p*r}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),Math.abs(g+this.lat0)<1e-10)return null;n=i-.5*g,o=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(h),n*=r}}else{switch(c=0,u=0,d=0,r=Math.cos(h),a=Math.sin(h),s=Math.sin(g),l=Qe(this.e,s),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(c=l/this.qp,u=Math.sqrt(1-c*c)),this.mode){case this.OBLIQ:d=1+this.sinb1*c+this.cosb1*u*r;break;case this.EQUIT:d=1+u*r;break;case this.N_POLE:d=t+g,l=this.qp-l;break;case this.S_POLE:d=g-t,l=this.qp+l}if(Math.abs(d)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),n=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*c-this.sinb1*u*r):(d=Math.sqrt(2/(1+u*r)))*c*this.ymf,o=this.xmf*d*u*a;break;case this.N_POLE:case this.S_POLE:l>=0?(o=(d=Math.sqrt(l))*a,n=r*(this.mode===this.S_POLE?d:-d)):o=n=0}}return e.x=this.a*o+this.x0,e.y=this.a*n+this.y0,e},inverse:function(e){e.x-=this.x0,e.y-=this.y0;var o,n,i,r,a,s,l,c,u,d,p=e.x/this.a,h=e.y/this.a;if(this.sphere){var g,m=0,f=0;if((n=.5*(g=Math.sqrt(p*p+h*h)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(f=Math.sin(n),m=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(g)<=1e-10?0:Math.asin(h*f/g),p*=f,h=m*g;break;case this.OBLIQ:n=Math.abs(g)<=1e-10?this.lat0:Math.asin(m*this.sinph0+h*f*this.cosph0/g),p*=f*this.cosph0,h=(m-Math.sin(n)*this.sinph0)*g;break;case this.N_POLE:h=-h,n=t-n;break;case this.S_POLE:n-=t}o=0!==h||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(p,h):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(p/=this.dd,h*=this.dd,(s=Math.sqrt(p*p+h*h))<1e-10)return e.x=this.long0,e.y=this.lat0,e;r=2*Math.asin(.5*s/this.rq),i=Math.cos(r),p*=r=Math.sin(r),this.mode===this.OBLIQ?(l=i*this.sinb1+h*r*this.cosb1/s,a=this.qp*l,h=s*this.cosb1*i-h*this.sinb1*r):(l=h*r/s,a=this.qp*l,h=s*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(h=-h),!(a=p*p+h*h))return e.x=this.long0,e.y=this.lat0,e;l=1-a/this.qp,this.mode===this.S_POLE&&(l=-l)}o=Math.atan2(p,h),c=Math.asin(l),u=this.apa,d=c+c,n=c+u[0]*Math.sin(d)+u[1]*Math.sin(d+d)+u[2]*Math.sin(d+d+d)}return e.x=x(this.long0+o),e.y=n,e},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4},et=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)},tt={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=M(this.e3,this.sin_po,this.cos_po),this.qs1=Qe(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=M(this.e3,this.sin_po,this.cos_po),this.qs2=Qe(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Qe(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(e){var t=e.x,o=e.y;this.sin_phi=Math.sin(o),this.cos_phi=Math.cos(o);var n=Qe(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,r=this.ns0*x(t-this.long0),a=i*Math.sin(r)+this.x0,s=this.rh-i*Math.cos(r)+this.y0;return e.x=a,e.y=s,e},inverse:function(e){var t,o,n,i,r,a;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,0!==t&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?a=Math.asin((this.c-n*n)/(2*this.ns0)):(o=(this.c-n*n)/this.ns0,a=this.phi1z(this.e3,o)),r=x(i/this.ns0+this.long0),e.x=r,e.y=a,e},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(e,t){var o,n,i,r,a=et(.5*t);if(e<1e-10)return a;for(var s=e*e,l=1;l<=25;l++)if(a+=r=.5*(i=1-(n=e*(o=Math.sin(a)))*n)*i/Math.cos(a)*(t/(1-s)-o/i+.5/e*Math.log((1-n)/(1+n))),Math.abs(r)<=1e-7)return a;return null}},ot={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(e){var t,o,n,i,r,a,s,l=e.x,c=e.y;return n=x(l-this.long0),t=Math.sin(c),o=Math.cos(c),i=Math.cos(n),(r=this.sin_p14*t+this.cos_p14*o*i)>0||Math.abs(r)<=1e-10?(a=this.x0+1*this.a*o*Math.sin(n)/r,s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*o*i)/r):(a=this.x0+this.infinity_dist*o*Math.sin(n),s=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*o*i)),e.x=a,e.y=s,e},inverse:function(e){var t,o,n,i,r,a;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),o=Math.sin(i),n=Math.cos(i),a=et(n*this.sin_p14+e.y*o*this.cos_p14/t),r=Math.atan2(e.x*o,t*this.cos_p14*n-e.y*this.sin_p14*o),r=x(this.long0+r)):(a=this.phic0,r=0),e.x=r,e.y=a,e},names:["gnom"]},nt={init:function(){this.sphere||(this.k0=M(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(e){var t,o,n=e.x,i=e.y,r=x(n-this.long0);if(this.sphere)t=this.x0+this.a*r*Math.cos(this.lat_ts),o=this.y0+this.a*Math.sin(i)/Math.cos(this.lat_ts);else{var a=Qe(this.e,Math.sin(i));t=this.x0+this.a*this.k0*r,o=this.y0+this.a*a*.5/this.k0}return e.x=t,e.y=o,e},inverse:function(e){var o,n;return e.x-=this.x0,e.y-=this.y0,this.sphere?(o=x(this.long0+e.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(n=function(e,o){var n=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(o)-n)<1e-6)return o<0?-1*t:t;for(var i,r,a,s,l=Math.asin(.5*o),c=0;c<30;c++)if(r=Math.sin(l),a=Math.cos(l),s=e*r,l+=i=Math.pow(1-s*s,2)/(2*a)*(o/(1-e*e)-r/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return l;return NaN}(this.e,2*e.y*this.k0/this.a),o=x(this.long0+e.x/(this.a*this.k0))),e.x=o,e.y=n,e},names:["cea"]},it={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(e){var t=e.x,o=e.y,n=x(t-this.long0),i=Ze(o-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e},inverse:function(e){var t=e.x,o=e.y;return e.x=x(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=Ze(this.lat0+(o-this.y0)/this.a),e},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},rt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=We(this.es),this.e1=qe(this.es),this.e2=He(this.es),this.e3=Ye(this.es),this.ml0=this.a*Ve(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(e){var t,o,n,i=e.x,r=e.y,a=x(i-this.long0);if(n=a*Math.sin(r),this.sphere)Math.abs(r)<=1e-10?(t=this.a*a,o=-1*this.a*this.lat0):(t=this.a*Math.sin(n)/Math.tan(r),o=this.a*(Ze(r-this.lat0)+(1-Math.cos(n))/Math.tan(r)));else if(Math.abs(r)<=1e-10)t=this.a*a,o=-1*this.ml0;else{var s=Je(this.a,this.e,Math.sin(r))/Math.tan(r);t=s*Math.sin(n),o=this.a*Ve(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+s*(1-Math.cos(n))}return e.x=t+this.x0,e.y=o+this.y0,e},inverse:function(e){var t,o,n,i,r,a,s,l,c;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=1e-10)t=x(n/this.a+this.long0),o=0;else{var u;for(a=this.lat0+i/this.a,s=n*n/this.a/this.a+a*a,l=a,r=20;r;--r)if(l+=c=-1*(a*(l*(u=Math.tan(l))+1)-l-.5*(l*l+s)*u)/((l-a)/u-1),Math.abs(c)<=1e-10){o=l;break}t=x(this.long0+Math.asin(n*Math.tan(l)/this.a)/Math.sin(o))}else if(Math.abs(i+this.ml0)<=1e-10)o=0,t=x(this.long0+n/this.a);else{var d,p,h,g,m;for(a=(this.ml0+i)/this.a,s=n*n/this.a/this.a+a*a,l=a,r=20;r;--r)if(m=this.e*Math.sin(l),d=Math.sqrt(1-m*m)*Math.tan(l),p=this.a*Ve(this.e0,this.e1,this.e2,this.e3,l),h=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(a*(d*(g=p/this.a)+1)-g-.5*d*(g*g+s))/(this.es*Math.sin(2*l)*(g*g+s-2*a*g)/(4*d)+(a-g)*(d*h-2/Math.sin(2*l))-h),Math.abs(c)<=1e-10){o=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(o),2))*Math.tan(o),t=x(this.long0+Math.asin(n*d/this.a)/Math.sin(o))}return e.x=t,e.y=o,e},names:["Polyconic","poly"]},at={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var o,n=t.x,i=t.y-this.lat0,r=n-this.long0,a=i/e*1e-5,s=r,l=1,c=0;for(o=1;o<=10;o++)l*=a,c+=this.A[o]*l;var u,d=c,p=s,h=1,g=0,m=0,f=0;for(o=1;o<=6;o++)u=g*d+h*p,h=h*d-g*p,g=u,m=m+this.B_re[o]*h-this.B_im[o]*g,f=f+this.B_im[o]*h+this.B_re[o]*g;return t.x=f*this.a+this.x0,t.y=m*this.a+this.y0,t},inverse:function(t){var o,n,i=t.x,r=t.y,a=i-this.x0,s=(r-this.y0)/this.a,l=a/this.a,c=1,u=0,d=0,p=0;for(o=1;o<=6;o++)n=u*s+c*l,c=c*s-u*l,u=n,d=d+this.C_re[o]*c-this.C_im[o]*u,p=p+this.C_im[o]*c+this.C_re[o]*u;for(var h=0;h.999999999999&&(o=.999999999999),t=Math.asin(o);var n=x(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),o=(2*t+Math.sin(2*t))/Math.PI,Math.abs(o)>1&&(o=1);var i=Math.asin(o);return e.x=n,e.y=i,e},names:["Mollweide","moll"]},ut={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=We(this.es),this.e1=qe(this.es),this.e2=He(this.es),this.e3=Ye(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=M(this.e,this.sinphi,this.cosphi),this.ml1=Ve(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=M(this.e,this.sinphi,this.cosphi),this.ml2=Ve(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Ve(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(e){var t,o=e.x,n=e.y;if(this.sphere)t=this.a*(this.g-n);else{var i=Ve(this.e0,this.e1,this.e2,this.e3,n);t=this.a*(this.g-i)}var r=this.ns*x(o-this.long0),a=this.x0+t*Math.sin(r),s=this.y0+this.rh-t*Math.cos(r);return e.x=a,e.y=s,e},inverse:function(e){var t,o,n,i;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(o=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(o=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var r=0;if(0!==o&&(r=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=x(this.long0+r/this.ns),n=Ze(this.g-o/this.a),e.x=i,e.y=n,e;var a=this.g-o/this.a;return n=Ke(a,this.e0,this.e1,this.e2,this.e3),i=x(this.long0+r/this.ns),e.x=i,e.y=n,e},names:["Equidistant_Conic","eqdc"]},dt={init:function(){this.R=this.a},forward:function(e){var o,n,i=e.x,r=e.y,a=x(i-this.long0);Math.abs(r)<=1e-10&&(o=this.x0+this.R*a,n=this.y0);var s=et(2*Math.abs(r/Math.PI));(Math.abs(a)<=1e-10||Math.abs(Math.abs(r)-t)<=1e-10)&&(o=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math.tan(.5*s));var l=.5*Math.abs(Math.PI/a-a/Math.PI),c=l*l,u=Math.sin(s),d=Math.cos(s),p=d/(u+d-1),h=p*p,g=p*(2/u-1),m=g*g,f=Math.PI*this.R*(l*(p-m)+Math.sqrt(c*(p-m)*(p-m)-(m+c)*(h-m)))/(m+c);a<0&&(f=-f),o=this.x0+f;var y=c+p;return f=Math.PI*this.R*(g*y-l*Math.sqrt((m+c)*(c+1)-y*y))/(m+c),n=r>=0?this.y0+f:this.y0-f,e.x=o,e.y=n,e},inverse:function(e){var t,o,n,i,r,a,s,l,c,u,d,p;return e.x-=this.x0,e.y-=this.y0,d=Math.PI*this.R,r=(n=e.x/d)*n+(i=e.y/d)*i,d=3*(i*i/(l=-2*(a=-Math.abs(i)*(1+r))+1+2*i*i+r*r)+(2*(s=a-2*i*i+n*n)*s*s/l/l/l-9*a*s/l/l)/27)/(c=(a-s*s/3/l)/l)/(u=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),p=Math.acos(d)/3,o=e.y>=0?(-u*Math.cos(p+Math.PI/3)-s/3/l)*Math.PI:-(-u*Math.cos(p+Math.PI/3)-s/3/l)*Math.PI,t=Math.abs(n)<1e-10?this.long0:x(this.long0+Math.PI*(r-1+Math.sqrt(1+2*(n*n-i*i)+r*r))/2/n),e.x=t,e.y=o,e},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},pt={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(e){var o,n,i,r,a,s,l,c,u,d,p,h,g,m,f,y,A,v,C,I,b,w,_=e.x,E=e.y,S=Math.sin(e.y),M=Math.cos(e.y),P=x(_-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(e.x=this.x0+this.a*(t-E)*Math.sin(P),e.y=this.y0-this.a*(t-E)*Math.cos(P),e):Math.abs(this.sin_p12+1)<=1e-10?(e.x=this.x0+this.a*(t+E)*Math.sin(P),e.y=this.y0+this.a*(t+E)*Math.cos(P),e):(v=this.sin_p12*S+this.cos_p12*M*Math.cos(P),A=(y=Math.acos(v))?y/Math.sin(y):1,e.x=this.x0+this.a*A*M*Math.sin(P),e.y=this.y0+this.a*A*(this.cos_p12*S-this.sin_p12*M*Math.cos(P)),e):(o=We(this.es),n=qe(this.es),i=He(this.es),r=Ye(this.es),Math.abs(this.sin_p12-1)<=1e-10?(a=this.a*Ve(o,n,i,r,t),s=this.a*Ve(o,n,i,r,E),e.x=this.x0+(a-s)*Math.sin(P),e.y=this.y0-(a-s)*Math.cos(P),e):Math.abs(this.sin_p12+1)<=1e-10?(a=this.a*Ve(o,n,i,r,t),s=this.a*Ve(o,n,i,r,E),e.x=this.x0+(a+s)*Math.sin(P),e.y=this.y0+(a+s)*Math.cos(P),e):(l=S/M,c=Je(this.a,this.e,this.sin_p12),u=Je(this.a,this.e,S),d=Math.atan((1-this.es)*l+this.es*c*this.sin_p12/(u*M)),C=0===(p=Math.atan2(Math.sin(P),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(P)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(p)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(P)*Math.cos(d)/Math.sin(p)),h=this.e*this.sin_p12/Math.sqrt(1-this.es),y=c*C*(1-(I=C*C)*(f=(g=this.e*this.cos_p12*Math.cos(p)/Math.sqrt(1-this.es))*g)*(1-f)/6+(b=I*C)/8*(m=h*g)*(1-2*f)+(w=b*C)/120*(f*(4-7*f)-3*h*h*(1-7*f))-w*C/48*m),e.x=this.x0+y*Math.sin(p),e.y=this.y0+y*Math.cos(p),e))},inverse:function(e){var o,n,i,r,a,s,l,c,u,d,p,h,g,m,f,y,A,v,C,I,b,w,_;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((o=Math.sqrt(e.x*e.x+e.y*e.y))>2*t*this.a)return;return n=o/this.a,i=Math.sin(n),r=Math.cos(n),a=this.long0,Math.abs(o)<=1e-10?s=this.lat0:(s=et(r*this.sin_p12+e.y*i*this.cos_p12/o),l=Math.abs(this.lat0)-t,a=Math.abs(l)<=1e-10?this.lat0>=0?x(this.long0+Math.atan2(e.x,-e.y)):x(this.long0-Math.atan2(-e.x,e.y)):x(this.long0+Math.atan2(e.x*i,o*this.cos_p12*r-e.y*this.sin_p12*i))),e.x=a,e.y=s,e}return c=We(this.es),u=qe(this.es),d=He(this.es),p=Ye(this.es),Math.abs(this.sin_p12-1)<=1e-10?(h=this.a*Ve(c,u,d,p,t),o=Math.sqrt(e.x*e.x+e.y*e.y),s=Ke((h-o)/this.a,c,u,d,p),a=x(this.long0+Math.atan2(e.x,-1*e.y)),e.x=a,e.y=s,e):Math.abs(this.sin_p12+1)<=1e-10?(h=this.a*Ve(c,u,d,p,t),o=Math.sqrt(e.x*e.x+e.y*e.y),s=Ke((o-h)/this.a,c,u,d,p),a=x(this.long0+Math.atan2(e.x,e.y)),e.x=a,e.y=s,e):(o=Math.sqrt(e.x*e.x+e.y*e.y),f=Math.atan2(e.x,e.y),g=Je(this.a,this.e,this.sin_p12),y=Math.cos(f),v=-(A=this.e*this.cos_p12*y)*A/(1-this.es),C=3*this.es*(1-v)*this.sin_p12*this.cos_p12*y/(1-this.es),w=1-v*(b=(I=o/g)-v*(1+v)*Math.pow(I,3)/6-C*(1+3*v)*Math.pow(I,4)/24)*b/2-I*b*b*b/6,m=Math.asin(this.sin_p12*Math.cos(b)+this.cos_p12*Math.sin(b)*y),a=x(this.long0+Math.asin(Math.sin(f)*Math.sin(b)/Math.cos(m))),_=Math.sin(m),s=Math.atan2((_-this.es*w*this.sin_p12)*Math.tan(m),_*(1-this.es)),e.x=a,e.y=s,e)},names:["Azimuthal_Equidistant","aeqd"]},ht={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(e){var t,o,n,i,r,a,s,l=e.x,c=e.y;return n=x(l-this.long0),t=Math.sin(c),o=Math.cos(c),i=Math.cos(n),((r=this.sin_p14*t+this.cos_p14*o*i)>0||Math.abs(r)<=1e-10)&&(a=1*this.a*o*Math.sin(n),s=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*o*i)),e.x=a,e.y=s,e},inverse:function(e){var o,n,i,r,a,s,l;return e.x-=this.x0,e.y-=this.y0,o=Math.sqrt(e.x*e.x+e.y*e.y),n=et(o/this.a),i=Math.sin(n),r=Math.cos(n),s=this.long0,Math.abs(o)<=1e-10?(l=this.lat0,e.x=s,e.y=l,e):(l=et(r*this.sin_p14+e.y*i*this.cos_p14/o),a=Math.abs(this.lat0)-t,Math.abs(a)<=1e-10?(s=this.lat0>=0?x(this.long0+Math.atan2(e.x,-e.y)):x(this.long0-Math.atan2(-e.x,e.y)),e.x=s,e.y=l,e):(s=x(this.long0+Math.atan2(e.x*i,o*this.cos_p14*r-e.y*this.sin_p14*i)),e.x=s,e.y=l,e))},names:["ortho"]},gt=1,mt=2,ft=3,yt=4,At=5,vt=6,Ct=1,It=2,bt=3,wt=4;function _t(e,o,n,r){var s;return e<1e-10?(r.value=Ct,s=0):(s=Math.atan2(o,n),Math.abs(s)<=i?r.value=Ct:s>i&&s<=t+i?(r.value=It,s-=t):s>t+i||s<=-(t+i)?(r.value=bt,s=s>=0?s-a:s+a):(r.value=wt,s+=t)),s}function Et(e,t){var o=e+t;return o<-a?o+=r:o>+a&&(o-=r),o}var St,Mt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=t-i/2?this.face=At:this.lat0<=-(t-i/2)?this.face=vt:Math.abs(this.long0)<=i?this.face=gt:Math.abs(this.long0)<=t+i?this.face=this.long0>0?mt:yt:this.face=ft,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(e){var o,n,r,s,l,c,u={x:0,y:0},d={value:0};if(e.x-=this.long0,o=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(e.y)):e.y,n=e.x,this.face===At)s=t-o,n>=i&&n<=t+i?(d.value=Ct,r=n-t):n>t+i||n<=-(t+i)?(d.value=It,r=n>0?n-a:n+a):n>-(t+i)&&n<=-i?(d.value=bt,r=n+t):(d.value=wt,r=n);else if(this.face===vt)s=t+o,n>=i&&n<=t+i?(d.value=Ct,r=-n+t):n=-i?(d.value=It,r=-n):n<-i&&n>=-(t+i)?(d.value=bt,r=-n-t):(d.value=wt,r=n>0?-n+a:-n-a);else{var p,h,g,m,f,y;this.face===mt?n=Et(n,+t):this.face===ft?n=Et(n,+a):this.face===yt&&(n=Et(n,-t)),m=Math.sin(o),f=Math.cos(o),y=Math.sin(n),p=f*Math.cos(n),h=f*y,g=m,this.face===gt?r=_t(s=Math.acos(p),g,h,d):this.face===mt?r=_t(s=Math.acos(h),g,-p,d):this.face===ft?r=_t(s=Math.acos(-p),g,-h,d):this.face===yt?r=_t(s=Math.acos(-h),g,p,d):(s=r=0,d.value=Ct)}return c=Math.atan(12/a*(r+Math.acos(Math.sin(r)*Math.cos(i))-t)),l=Math.sqrt((1-Math.cos(s))/(Math.cos(c)*Math.cos(c))/(1-Math.cos(Math.atan(1/Math.cos(r))))),d.value===It?c+=t:d.value===bt?c+=a:d.value===wt&&(c+=1.5*a),u.x=l*Math.cos(c),u.y=l*Math.sin(c),u.x=u.x*this.a+this.x0,u.y=u.y*this.a+this.y0,e.x=u.x,e.y=u.y,e},inverse:function(e){var o,n,i,r,s,l,c,u,d,p,h,g,m={lam:0,phi:0},f={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),o=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?f.value=Ct:e.y>=0&&e.y>=Math.abs(e.x)?(f.value=It,o-=t):e.x<0&&-e.x>=Math.abs(e.y)?(f.value=bt,o=o<0?o+a:o-a):(f.value=wt,o+=t),d=a/12*Math.tan(o),s=Math.sin(d)/(Math.cos(d)-1/Math.sqrt(2)),l=Math.atan(s),(c=1-(i=Math.cos(o))*i*(r=Math.tan(n))*r*(1-Math.cos(Math.atan(1/Math.cos(l)))))<-1?c=-1:c>1&&(c=1),this.face===At)u=Math.acos(c),m.phi=t-u,f.value===Ct?m.lam=l+t:f.value===It?m.lam=l<0?l+a:l-a:f.value===bt?m.lam=l-t:m.lam=l;else if(this.face===vt)u=Math.acos(c),m.phi=u-t,f.value===Ct?m.lam=-l+t:f.value===It?m.lam=-l:f.value===bt?m.lam=-l-t:m.lam=l<0?-l-a:-l+a;else{var y,A,v;d=(y=c)*y,A=(d+=(v=d>=1?0:Math.sqrt(1-d)*Math.sin(l))*v)>=1?0:Math.sqrt(1-d),f.value===It?(d=A,A=-v,v=d):f.value===bt?(A=-A,v=-v):f.value===wt&&(d=A,A=v,v=-d),this.face===mt?(d=y,y=-A,A=d):this.face===ft?(y=-y,A=-A):this.face===yt&&(d=y,y=A,A=-d),m.phi=Math.acos(-v)-t,m.lam=Math.atan2(A,y),this.face===mt?m.lam=Et(m.lam,-t):this.face===ft?m.lam=Et(m.lam,-a):this.face===yt&&(m.lam=Et(m.lam,+t))}return 0!==this.es&&(p=m.phi<0?1:0,h=Math.tan(m.phi),g=this.b/Math.sqrt(h*h+this.one_minus_f_squared),m.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),p&&(m.phi=-m.phi)),m.lam+=this.long0,e.x=m.lam,e.y=m.phi,e},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},Pt=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],xt=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],kt=n/5,Gt=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},Rt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(e){var t=x(e.x-this.long0),o=Math.abs(e.y),i=Math.floor(o*kt);i<0?i=0:i>=18&&(i=17);var r={x:Gt(Pt[i],o=n*(o-.08726646259971647*i))*t,y:Gt(xt[i],o)};return e.y<0&&(r.y=-r.y),r.x=r.x*this.a*.8487+this.x0,r.y=r.y*this.a*1.3523+this.y0,r},inverse:function(e){var n={x:(e.x-this.x0)/(.8487*this.a),y:Math.abs(e.y-this.y0)/(1.3523*this.a)};if(n.y>=1)n.x/=Pt[18][0],n.y=e.y<0?-t:t;else{var i=Math.floor(18*n.y);for(i<0?i=0:i>=18&&(i=17);;)if(xt[i][0]>n.y)--i;else{if(!(xt[i+1][0]<=n.y))break;++i}var r=xt[i],a=5*(n.y-r[0])/(xt[i+1][0]-r[0]);a=function(e,t,o,n){for(var i=t;n;--n){var r=e(i);if(i-=r,Math.abs(r)1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var r=function(e,t,o){for(var n=[],i=0;i3?n.splice(3,n.length-1):[],void 0!==this.listeners[e]?this.listeners[e].push({scope:o,callback:t,args:n}):this.listeners[e]=[{scope:o,callback:t,args:n}]},removeEventListener:function(e,t,o){if(void 0!==this.listeners[e]){for(var n=this.listeners[e].length,i=[],r=0;r0;for(var i=0;i2?n.splice(2,n.length-1):[],n=[o].concat(n),void 0!==this.listeners[e]){var a=this.listeners[e].slice(),s=a.length;for(r=0;r0?r.replace("%var%",i.join(" - ")):r.replace("%var%","%var% (not specified)")}catch(e){}return r}},I={normalyzeParameters:function(e){var t=null;if(e){var o=[];for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];i||(i=""),o.push(n+"="+i)}t=o.join("&")}return t},normalyzeUrl:function(e,t,o){var n=e;if(e){var i=e.indexOf("?");-1===i&&(n+="?"),-1!==i&&i!==e.length-1&&(n+="&")}return t&&(n+="string"==typeof t?t=t.replace("?",""):this.normalyzeParameters(t)),o&&(n=encodeURIComponent(n)),n},indent:function(e,t){return new Array((e||0)+1).join("\t")+t}},b=o(61),w=o.n(b),_={call:function(e){var t=v.getLogger("XHR");if(t.trace("[XHR::call()]"),w.a.polyfill(),!e.url)throw new Error("missing parameter : url is not defined !");if(!e.method)throw new Error("missing parameter : method is not defined !");e.format||(e.format="text");var o={};switch(o.url=e.url,o.data=e.data?e.data:null,o.method=e.method,o.timeOut=e.timeOut||0,o.scope=e.scope||this,o.proxy=e.proxy||null,o.content=e.content||null,o.headers=e.headers||{referer:"http://localhost"},e.method){case"DELETE":case"GET":break;case"PUT":case"POST":o.content=e.content?e.content:"application/x-www-form-urlencoded",o.headers=e.headers?e.headers:{referer:"http://localhost"};break;case"HEAD":case"OPTIONS":throw new Error("HTTP method not yet supported !");default:throw new Error("HTTP method unknown !")}switch(e.format){case"text":this.__call(o).then((function(o){t.trace(o),e.onResponse.call(this,o)})).catch((function(t){e.onFailure.call(this,t)}));break;case"json":this.__callJSON(o).then((function(o){t.trace(o),e.onResponse.call(this,o)})).catch((function(t){e.onFailure.call(this,t)}));break;case"xml":this.__callXML(o).then((function(o){t.trace(o),e.onResponse.call(this,o)})).catch((function(t){e.onFailure.call(this,t)}));break;default:throw new Error("This output Format is not yet supported !")}},__call:function(e){var t=v.getLogger("XHR");return t.trace("[XHR::__call()]"),new Promise((function(n,i){var r="POST"===e.method||"PUT"===e.method?1:0;e.data&&("object"==typeof e.data&&Object.keys(e.data).length||"string"==typeof e.data&&e.data.length)&&!r&&(e.url=I.normalyzeUrl(e.url,e.data)),t.trace("URL = ",e.url);var a=null;if("undefined"==typeof window){var s=o(59),l={headers:{Referer:"https://localhost"}};return e.data&&"string"==typeof e.data&&r&&(l={method:e.method,body:e.data,headers:{"Content-Type":e.content,Referer:"https://localhost"}}),s(e.url,l).then((function(e){if(e.ok)n(e.text());else{var t="Errors Occured on Http Request (status : '"+e.statusText+"' | url : '"+e.url+"')",o=e.status;i({message:t,status:o})}})).catch((function(e){i({message:e,status:-1})}))}if(window.XMLHttpRequest){t.trace("XMLHttpRequest"),(a=new XMLHttpRequest).open(e.method,e.url,!0),a.overrideMimeType=e.content;var c=null;e.timeOut>0&&(t.trace("XHR - TimeOut actif !"),c=window.setTimeout((function(){i({message:"TimeOut Occured on Http Request with XMLHttpRequest !",status:-1})}),e.timeOut)),r&&(t.trace("data = ",e.data),a.setRequestHeader("Content-type",e.content)),a.onerror=function(e){console.log(e),i(new Error("Errors Occured on Http Request with XMLHttpRequest !"))},a.ontimeout=function(e){console.log(e),i(new Error("TimeOut Occured on Http Request with XMLHttpRequest !"))},a.onreadystatechange=function(e){if(4===a.readyState)if(200===a.status)window.clearTimeout(c),n(a.response);else{var t="Errors Occured on Http Request (status : '"+e.target.statusText+"' | url : '"+e.target.responseURL+"' | response : '"+e.target.response+"')",o=e.target.status;i({message:t,status:o})}};var u=e.data&&r?e.data:null;a.send(u)}else{if(!window.XDomainRequest)throw new Error("CORS not supported");t.trace("XDomainRequest"),(a=new XDomainRequest).open(e.method,e.url),a.overrideMimeType=e.content,e.timeOut>0&&(a.timeout=e.timeout,t.trace("XHR - TimeOut actif !")),r&&a.setRequestHeader("Content-type",e.content),a.onerror=function(){i(new Error("Errors Occured on Http Request with XMLHttpRequest !"))},a.ontimeout=function(){i(new Error("TimeOut Occured on Http Request with XMLHttpRequest !"))},a.onload=function(e){if(200===a.status)n(a.responseText);else{var t="Errors Occured on Http Request (status : '"+e.target.statusText+"' | url : '"+e.target.responseURL+"')",o=e.target.status;i({message:t,status:o})}};var d=e.data&&r?e.data:null;a.send(d)}}))},__callJSON:function(e){return this.__call(e).then(JSON.parse).catch((function(t){console.log("_callJSON failed on : ",e.url,t)}))},__callXML:function(e){return this.__call(e).then((function(e){var t;"undefined"==typeof window?t=(new(0,o(35).DOMParser)).parseFromString(e,"text/xml"):window.DOMParser?t=(new window.DOMParser).parseFromString(e,"text/xml"):((t=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e));return t})).catch((function(t){console.log("__callXML failed on : ",e.url,t)}))}},E={uuid:(n=Math.floor(Date.now()),function(){return n++}),call:function(e){var t=v.getLogger("JSONP");if(t.trace("[JSONP::call ()]"),!e)throw t.error("missing parameter : options !"),new Error("missing parameter : options !");if(!e.url)throw t.error("missing parameter : options.url !"),new Error("missing parameter : options.url !");if(e.timeOut||(t.info("setting 'options.timeOut' default value"),e.timeOut=0),!e.onResponse)throw t.error("missing parameter : options.onResponse !"),new Error("missing parameter : options.onResponse !");var o="string"==typeof e.callbackSuffix?e.callbackSuffix:this.uuid(),n=!1,i=!1,r=e.url.indexOf("callback=");if(-1!==r){n=!0;var a=e.url.indexOf("&",r);-1===a&&(a=e.url.length);var s=e.url.substring(r+9,a);s&&(i=!0,e.callbackName=s,t.info("setting 'options.callbackName' value ("+e.callbackName+") from 'options.url' parameter"))}if(!n){var l=e.url.indexOf("?");-1===l?e.url=e.url+"?callback=":l===e.url.length?e.url=e.url+"callback=":e.url=e.url+"&callback=",t.info("setting callback default key in 'options.url' : "+e.url)}var c=!!e.callbackName||i;if(i||(e.callbackName||(t.info("setting 'options.callbackName' default value"),e.callbackName="callback",(o||""===o)&&(e.callbackName+=o)),e.url=e.url.replace("callback=","callback="+e.callbackName),t.info("setting callback function name in 'options.url' : "+e.url)),e.onTimeOut||(t.info("setting 'options.onTimeOut' default value"),e.onTimeOut=function(){console.log("TimeOut while invoking url : "+e.url)}),!c){var u=this,d=null;e.timeOut>0&&(d=window.setTimeout((function(){window[e.callbackName]=function(){},e.onTimeOut(),u._deleteScript(o)}),e.timeOut)),window[e.callbackName]=function(t){window.clearTimeout(d),e.onResponse(t),u._deleteScript(o)}}this._createScript(o,e.url)},_createScript:function(e,t){var o,n=document.getElementById("results"+e);(o=document.createElement("script")).setAttribute("type","text/javascript"),o.setAttribute("src",t),o.setAttribute("charset","UTF-8"),o.setAttribute("id","results"+e),o.setAttribute("async","true");var i=document.documentElement||document.getElementsByTagName("head")[0];null===n?i.appendChild(o):i.replaceChild(o,n)},_deleteScript:function(e){var t=document.getElementById("results"+e);if(t){var o=t.parentNode||document.documentElement;if(!o)return;o.removeChild(t)}}},S={send:function(e){var t=e||{method:"GET",protocol:"XHR",timeOut:0,format:null,wrap:!0,nocache:!0,output:"json",callback:null,callbackSuffix:null};if("undefined"!=typeof window||"JSONP"!==e.protocol){if("XHR"===e.protocol||"json"===e.format?t.wrap=!1:"JSONP"===e.protocol&&"xml"===e.format&&(t.wrap=!0),t.callback=null,t.output=t.wrap?"json":null,t.wrap){var o={};o.output=t.output,o.callback=t.callback,delete o.callback,t.url=I.normalyzeUrl(e.url,o)}switch(t.protocol){case"XHR":"GET"===e.method&&e.nocache&&(t.url=I.normalyzeUrl(t.url,{t:(new Date).getTime()})),_.call(t);break;case"JSONP":t.data&&(t.url=I.normalyzeUrl(t.url,t.data)),E.call(t);break;default:throw new Error("protocol not supported (XHR|JSONP) !")}}else console.log("Value (s) for parameter (s) 'protocol=JSONP (instead use XHR)' not supported to NodeJS")}};function M(e){if(!(this instanceof M))throw new TypeError("ErrorService constructor cannot be called as a function.");var t=e;"string"==typeof e||e instanceof String?(this.message=e,this.status=-1,this.type=M.TYPE_UNKERR):(this.message=t.message||"undefined!?",this.type=t.type,this.status=t.status||-1),this.name="ErrorService",this.stack=(new Error).stack}M.TYPE_SRVERR="SERVICE_ERROR",M.TYPE_USEERR="USAGE_ERROR",M.TYPE_UNKERR="UNKNOWN_ERROR",M.prototype=Object.create(Error.prototype,{constructor:{value:M,writable:!0,configurable:!0}});var P=M,x=o(31);function k(e){if(!(this instanceof k))throw new TypeError(C.getMessage("CLASS_CONSTRUCTOR"));for(var t in this.logger=v.getLogger("CommonService"),this.logger.trace("[Constructeur CommonService (options)]"),this.options={protocol:"XHR",ssl:!0,proxyURL:"",callbackSuffix:null,httpMethod:"GET",timeOut:0,rawResponse:!1,scope:this,onSuccess:function(e){console.log("onSuccess - la reponse est la suivante : ",e)},onFailure:function(e){200!==e.status&&e.status?console.log("onFailure - Erreur (",e.status,") : ",e.message):console.log("onFailure : ",e.message)}},e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);if(this.options.rawResponse&&!this.options.onSuccess&&(this.options.onSuccess=function(e){console.log("onSuccess - la réponse brute du service est la suivante : ",e)}),!!(null===this.options.onSuccess||"function"!=typeof this.options.onSuccess))throw new Error(C.getMessage("PARAM_MISSING","onSuccess()"));switch(this.options.httpMethod="string"==typeof e.httpMethod?e.httpMethod.toUpperCase():"GET",this.options.httpMethod){case"POST":case"GET":break;case"PUT":case"DELETE":case"HEAD":case"OPTIONS":throw new Error(C.getMessage("PARAM_NOT_SUPPORT","httpMethod"));default:throw new Error(C.getMessage("PARAM_UNKNOWN","httpMethod"))}switch(this.options.protocol="string"==typeof e.protocol?e.protocol.toUpperCase():"XHR",this.options.protocol){case"JSONP":case"XHR":break;default:throw new Error(C.getMessage("PARAM_UNKNOWN","protocol"))}if("undefined"==typeof window&&"JSONP"===this.options.protocol)throw new Error(C.getMessage("PARAM_NOT_SUPPORT_NODEJS","protocol=JSONP (instead use XHR)"));"JSONP"===this.options.protocol&&(this.options.httpMethod="GET"),this.options.nocache=e.nocache||!1,this.options.outputFormat=null,this.request=null,this.response=null}k.prototype={constructor:k,call:function(){this.logger.trace("CommonService::call ()");var e=this;function t(t){this.logger.trace("CommonService::onBuildRequest : ",t),this.callService.call(e,i,o)}function o(t){this.logger.trace("CommonService::onCallService : ",t),this.analyzeResponse.call(e,i,n)}function n(e){if(this.logger.trace("CommonService::onAnalyzeResponse : ",e),!e)return i.call(this,new P("Analyse de la reponse en échec !?"));this.options.onSuccess.call(this,e)}function i(e){this.logger.trace("CommonService::onError()");var t=e;t instanceof P||(t=new P(e.message)),this.options.onFailure.call(this,t)}(function(){this.logger.trace("CommonService::run ()"),this.buildRequest.call(e,i,t)}).call(e)},buildRequest:function(e,t){this.logger.error("overwritten method !"),e&&e.call(this,"This method must be overwritten !"),t.call(this,"This method must be overwritten !")},callService:function(e,t){var o=null,n=this.request,i=!(!this.options.proxyURL||"XHR"!==this.options.protocol),r={"gp-access-lib":x.version};this.options.apiKey&&(r.apiKey=this.options.apiKey),this.options.serverUrl=I.normalyzeUrl(this.options.serverUrl,r,!1),i&&("GET"===this.options.httpMethod&&(o=this.options.proxyURL+I.normalyzeUrl(this.options.serverUrl,this.request,!0),n=null),"POST"===this.options.httpMethod&&(o=this.options.proxyURL+I.normalyzeUrl(this.options.serverUrl,null,!0),n=this.request));var a=this,s={url:o||this.options.serverUrl,method:this.options.httpMethod,protocol:this.options.protocol,timeOut:this.options.timeOut||0,format:this.options.outputFormat,nocache:this.options.nocache||!1,wrap:"XHR"!==this.options.protocol,callbackSuffix:this.options.callbackSuffix,data:n,headers:null,content:this.options.contentType||"application/xml",scope:this.options.scope||this,onResponse:function(o){a.logger.trace("callService::onResponse()");var n=null;if("XHR"===a.options.protocol&&(a.logger.trace("Response XHR",o),n=o),"JSONP"===a.options.protocol){if(a.logger.trace("Response JSON",o),!o)return void e.call(a,new P("Le contenu de la reponse est vide !?"));if(o.http){if(200!==o.http.status)return void e.call(a,new P({status:o.http.status,message:o.http.error,type:P.TYPE_SRVERR}));n=o.xml,a.options.rawResponse&&(n=o)}else n=o}if("function"==typeof a.options.onBeforeParse){var i=a.options.onBeforeParse(n);"string"==typeof i&&(n=i)}a.response=n,t.call(a,n)},onFailure:function(t){a.logger.trace("callService::onFailure()"),t.type=P.TYPE_SRVERR,e.call(a,new P(t))},onTimeOut:function(){a.logger.trace("callService::onTimeOut()"),e.call(a,new P("TimeOut!"))}};S.send(s)},analyzeResponse:function(e,t){this.logger.error("overwritten method !"),e&&e.call(this,"This method must be overwritten !"),t.call(this,"This method must be overwritten !")}};var G=k,R={ssl:!0,newUrl:function(e){return(!1===R.ssl?"http://":"https://")+"data.geopf.fr"+e},Alti:{new_key:{"elevation-json":"/altimetrie/1.0/calcul/alti/rest/elevation.json","elevation-xml":"/altimetrie/1.0/calcul/alti/rest/elevation.xml","profil-json":"/altimetrie/1.0/calcul/alti/rest/elevationLine.json","profil-xml":"/altimetrie/1.0/calcul/alti/rest/elevationLine.xml"},newUrl:function(){return{"elevation-json":R.newUrl(this.new_key["elevation-json"]),"elevation-xml":R.newUrl(this.new_key["elevation-xml"]),"profil-json":R.newUrl(this.new_key["profil-json"]),"profil-xml":R.newUrl(this.new_key["profil-xml"])}}},ProcessIsoCurve:{new_key:"/navigation/isochrone",newUrl:function(){return R.newUrl(this.new_key)}},Config:{_key:"https://raw.githubusercontent.com/IGNF/geoportal-configuration/new-url/dist/",url:function(e){Array.isArray(e)||(e=e.split(","));for(var t=[],o=0;on(e,{credentials:"same-origin"}).then(e=>{if(e.ok)return e.json().then(e=>e).catch(e=>{throw new Error("Exception Json : "+e)});throw new Error("Exception HTTP : "+e.status+" (status code) !")}).catch(e=>new Promise((t,o)=>{o(e)})),a=[];for(let e=0;e{if(!e)throw new Error("results config empty !?");e.forEach(e=>{this.listConfigResults.push(e)})}).then(()=>{t.call(this,this.listConfigResults)}).catch(t=>{e.call(this,t)})},U=function(e,t){this.listConfigResults=[];for(var o=0;ot||e__IDENTIFIER__\x3c!-- __DATAINPUTS__ --\x3e__RAWDATAOUTPUT__',input:"__KEY____DATA__"}},namespaceByDefault:function(){return['xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"','xmlns="http://www.opengis.net/wps/1.0.0"','xmlns:wfs="http://www.opengis.net/wfs"','xmlns:wps="http://www.opengis.net/wps/1.0.0"','xmlns:ows="http://www.opengis.net/ows/1.1"','xmlns:gml="http://www.opengis.net/gml"','xmlns:ogc="http://www.opengis.net/ogc"','xmlns:wcs="http://www.opengis.net/wcs/1.1.1"','xmlns:xlink="http://www.w3.org/1999/xlink"'].join(" ")},schemaLocationByDefault:function(){return'xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"'},processRequestString:function(){this.logger.trace("WPS::processRequestString ()");var e="";if("POST"===this.method)e=this.template.post.value;else{if("GET"!==this.method)return this.logger.error("No other method supported by the service !"),!1;e=this.template.get.value}return e=(e=(e=(e=(e=e.replace(/__SERVICE__/g,this.paramservice)).replace(/__VERSION__/g,this.paramversion)).replace(/__RAWDATAOUTPUT__/g,this.paramrawdataoutput)).replace(/__IDENTIFIER__/g,this.paramidentifier)).replace(/__REQUEST__/g,this.paramrequest),"POST"===this.method&&(e=(e=e.replace(/__NAMESPACE__/g,this.namespaceByDefault)).replace(/__SCHEMALOCATION__/g,this.schemaLocationByDefault)),(e=e.replace(//g,this.__addDataInputs()))?(this.requestString=e,this.logger.trace("traduction tmpl",e),!0):(this.logger.warn("traduction tmpl : empty request !?"),!1)},__addDataInputs:function(){this.logger.trace("WPS::__addDataInputs ()");for(var e,t="GET"===this.method?this.template.get.input:this.template.post.input,o="GET"===this.method?";":"",n="",i=this,r=this.DataObject.getData(),a=0;a0)for(var a=n.getElementsByTagName("parsererror"),s=0;s0){var n=function(e){if(e.attributes.length>0){for(var t={},o=e.attributes,n=0;n0?t.index=t.filters.type[0]:t.index=t.filters.type),delete t.filters.type),t.filters.bbox&&(this.logger.warn("The parameter 'filterOptions.bbox' is deprecated"),delete t.filters.bbox)),delete t.filterOptions),t.position&&(t.position.x&&(this.logger.warn("The parameter 'position.x' is deprecated"),t.position.lon||(t.position.lon=t.position.x),delete t.position.x),t.position.y&&(this.logger.warn("The parameter 'position.y' is deprecated"),t.position.lat||(t.position.lat=t.position.y),delete t.position.y)),t.returnFreeForm&&(this.logger.warn("The parameter 'returnFreeForm' is deprecated"),delete t.returnFreeForm),t.srs&&(this.logger.warn("The parameter 'srs' is deprecated"),delete t.srs),t},Ee.prototype.buildRequest=function(e,t){var o={httpMethod:this.options.httpMethod,geocodeMethod:"search",query:this.options.query,index:this.options.index,returnTrueGeometry:this.options.returnTrueGeometry,position:this.options.position,maxResp:this.options.maximumResponses,filters:this.options.filters};this.request=fe.build(o),this.request?t.call(this,this.request):e.call(this,new P(C.getMessage("SERVICE_REQUEST_BUILD")))},Ee.prototype.analyzeResponse=function(e,t){if(this.response){var o={response:this.response,rawResponse:this.options.rawResponse,onError:e,onSuccess:t,scope:this};_e.build(o)}else e.call(this,new P(C.getMessage("SERVICE_RESPONSE_EMPTY")))};var Se=Ee;function Me(e){if(!(this instanceof Me))throw new TypeError(C.getMessage("CLASS_CONSTRUCTOR","ReverseGeocode"));this.CLASSNAME="ReverseGeocode",this.logger=v.getLogger("Gp.Services.ReverseGeocode"),this.logger.trace("[Constructeur ReverseGeocode (options)]");var t=this.patchOptionConvertor(e);if(t.serverUrl||(t.serverUrl=T.ReverseGeocode.newUrl()),G.apply(this,[t]),t.searchGeometry)this.options.searchGeometry=t.searchGeometry;else if(!t.position)throw new Error(C.getMessage("PARAM_MISSING","searchGeometry"));if(t.index||(this.options.index=t.index="StreetAddress"),t.filters)for(var o=Object.keys(t.filters),n=0;n0?t.index=t.filterOptions.type[0]:t.index=t.filterOptions.type),delete t.filterOptions.type),t.filterOptions.bbox&&(this.logger.warn("The parameter 'filterOptions.bbox' is deprecated"),t.searchGeometry||(t.searchGeometry=this.bbox2Json(t.filterOptions.bbox)),delete t.filterOptions.bbox),t.filterOptions.circle&&(this.logger.warn("The parameter 'filterOptions.circle' is deprecated"),t.searchGeometry||(t.searchGeometry=this.circle2Json(t.filterOptions.circle)),delete t.filterOptions.circle),t.filterOptions.polygon&&(this.logger.warn("The parameter 'filterOptions.polygon' is deprecated"),t.searchGeometry||(t.searchGeometry=this.polygon2Json(t.filterOptions.polygon)),delete t.filterOptions.polygon),!t.filters&&Object.keys(t.filterOptions).length>0&&(t.filters=t.filterOptions),delete t.filterOptions),t.position&&(t.position.x&&(this.logger.warn("The parameter 'position.x' is deprecated"),t.position.lon||(t.position.lon=t.position.x),delete t.position.x),t.position.y&&(this.logger.warn("The parameter 'position.y' is deprecated"),t.position.lat||(t.position.lat=t.position.y),delete t.position.y)),t.srs&&(this.logger.warn("The parameter 'srs' is deprecated"),delete t.srs),t},Me.prototype.buildRequest=function(e,t){var o={httpMethod:this.options.httpMethod,geocodeMethod:"reverse",searchGeometry:this.options.searchGeometry,index:this.options.index,position:this.options.position,returnTrueGeometry:this.options.returnTrueGeometry,maxResp:this.options.maximumResponses,filters:this.options.filters};this.request=fe.build(o),this.request?t.call(this,this.request):e.call(this,new P(C.getMessage("SERVICE_REQUEST_BUILD")))},Me.prototype.analyzeResponse=function(e,t){if(this.response){var o={response:this.response,rawResponse:this.options.rawResponse,onError:e,onSuccess:t,scope:this};_e.build(o)}else e.call(this,new P(C.getMessage("SERVICE_RESPONSE_EMPTY")))},Me.prototype.bbox2Json=function(e){return{type:"Polygon",coordinates:[[[e.left,e.top],[e.right,e.top],[e.right,e.bottom],[e.left,e.bottom],[e.left,e.top]]]}},Me.prototype.circle2Json=function(e){return{type:"Circle",radius:e.radius,coordinates:[e.x,e.y]}},Me.prototype.polygon2Json=function(e){for(var t={type:"Polygon",coordinates:[[]]},o=0;o0)for(var n in t.noProxyDomains)if(o.trace("[ProxyUtils] proxifyUrl : analyzing "+t.noProxyDomains[n]),-1!==e.indexOf(t.noProxyDomains[n]))return o.info("[ProxyUtils] proxifyUrl : "+e+" found in noProxyDomains list ("+t.noProxyDomains[n]+")."),e;return t.proxyUrl+encodeURIComponent(e)}};function ut(e){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var dt=lt.getLogger("GfiUtils"),pt={getLayerFormat:function(e){var t="function"==typeof e.getType?e.getType():null,o=e.getSource();if(t){if("VECTOR"===t||"VECTOR_TILE"===t)return"vector";if("TILE"===t)return o.tileGrid?"wmts":"wms";if("IMAGE"===t)return"wms"}else{if(o instanceof p.a||o instanceof f.a)return"wms";if(o instanceof g.a)return"wmts";if(o instanceof u.a||o instanceof l.a)return"vector"}return"unknown"},displayInfo:function(e,t,n,i,r){if(dt.trace("[GfiUtils] : displayInfo..."),i||(i="text/html"),null!==n){var s=null,l=n;l=(l=l.replace(/\n/g,"")).replace(/(>)\s*(<)/g,"$1$2");var c="undefined"!=typeof window?window:null;if("object"===("undefined"==typeof exports?"undefined":ut(exports))&&null===window)s=(new(0,o(35).DOMParser)).parseFromString(l,i);else if(c.DOMParser)s=(new c.DOMParser).parseFromString(l,i);else{if(!c.ActiveXObject)return dt.log("Incompatible environment for DOM Parser !"),!1;(s=new c.ActiveXObject("Microsoft.XMLDOM")).async=!1,s.loadXML(l)}var u=s.getElementsByTagName("body");if(u&&1===u.length&&!u[0].hasChildNodes())return!1;var d=document.createElement("div");d.className="gp-feature-info-div";var p=document.createElement("input");p.type="button",p.className="gp-styling-button closer",p.onclick=function(){return e.featuresOverlay&&(e.removeOverlay(e.featuresOverlay),e.featuresOverlay=null),!1};var h=document.createElement("div");return h.className="gp-features-content-div",h.innerHTML=n,d.appendChild(h),d.appendChild(p),e.featuresOverlay&&(e.removeOverlay(e.featuresOverlay),e.featuresOverlay=null),e.featuresOverlay=new a.a({element:d,autoPan:r.autoPan,autoPanAnimation:r.autoPanAnimation,autoPanMargin:r.autoPanMargin,positioning:"bottom-center",insertFirst:!1,stopEvent:!0}),e.addOverlay(e.featuresOverlay),e.featuresOverlay.setPosition(t),e.featuresOverlay.render(),!0}},features2html:function(e,t){var o=document.createElement("div");return t.forEach((function(e){var t=e.getProperties();if(t.hasOwnProperty("render"))o.insertAdjacentHTML("beforeend",t.render);else{if(t.hasOwnProperty("name")){var n=document.createElement("div");n.className="gp-att-name-div",n.insertAdjacentHTML("afterbegin",t.name),o.appendChild(n)}if(t.hasOwnProperty("description")){var i=document.createElement("div");i.className="gp-att-description-div",i.insertAdjacentHTML("afterbegin",t.description),o.appendChild(i)}var r=null,a=!1,s=null,l=null,c=null,u=["fill","fill-opacity","stroke","stroke-opacity","stroke-width","marker-symbol","marker-color","marker-size","geometry","value","name","description","styleUrl","extensionsNode_","icon"];for(r in t)if(void 0!==t[r]&&-1===u.indexOf(r)){a||((s=document.createElement("div")).className="gp-att-others-div",l=document.createElement("ul"),a=!0),c=document.createElement("li");var d=document.createElement("span");d.className="gp-attname-others-span",d.appendChild(document.createTextNode(r+" : ")),c.appendChild(d),c.appendChild(document.createTextNode(t[r])),l.appendChild(c)}l&&(s.appendChild(l),o.appendChild(s))}}),e),o.hasChildNodes()||(o=null),o},layerGetFeatureAtCoordinates:function(e,t,o){var n=e.getPixelFromCoordinate(o);return e.hasFeatureAtPixel(n,(function(e){return e===t}))},displayVectorFeatureInfo:function(e,t,o,n){var i=e.getPixelFromCoordinate(t),r=[];if(e.forEachFeatureAtPixel(i,(function(e,t){(!o||o.indexOf(t)>-1)&&r.push(e)})),0===r.length)return!1;var a=this.features2html(e,r);return null!==a&&(this.displayInfo(e,t,a.innerHTML,"text/html",n),!0)},displayFeatureInfo:function(e,t,o,n,i){for(var r={},a=0;ae.getResolution()&&(f=!1),f&&g.maxResolution&&g.maxResolution255)throw new Error("'"+e+"'' is greater than 255(0xff);");return("0"+Number(e).toString(16)).slice(-2)},num:function(e){return parseInt(e,16)},arrayToRgba:function(e){if(!Array.isArray(e))throw new Error("Not an array !");var t=e[0],o=e[1],n=e[2],i=e[3]||1;return"rgba("+t+", "+o+", "+n+", "+parseFloat(i)+")"},arrayToHex:function(e){if(!Array.isArray(e))throw new Error("Not an array !");var t=e[0],o=e[1],n=e[2],i=e[3],r=[this.hex(t),this.hex(o),this.hex(n)],a={};return a.hex="#"+r.join(""),i&&(a.opacity=parseFloat(i)),a},rgbaToHex:function(e){var t=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(0?.?\d+)\s*)?\)/.exec(e);if(!t)throw new Error("Invalid format: "+e);var o=t[1],n=t[2],i=t[3],r=t[4],a=[this.hex(o),this.hex(n),this.hex(i)],s={};return s.hex="#"+a.join(""),r&&(s.opacity=parseFloat(r)),s},hexToRgba:function(e,t){if(!e)throw new Error("Invalid format");e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,o,n){return t+t+o+o+n+n}));var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return(o=o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:null)?"rgba("+o.r+", "+o.g+", "+o.b+", "+t+")":null},isHex:function(e){if(!e)return!1;if("#"!==e.charAt(0))return!1;return!!/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e)},isRGB:function(e){if(!e)return!1;return!!/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(0?.?\d+)\s*)?\)/.exec(e)}},At={lightOrange:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAgCAYAAAC/40AfAAASf3pUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjapZpptuO4DYX/cxVZAsEBIJfD8ZzsIMvPB8mvpq5OupN6Xc8uW5Yo4OIOdIfzr3/e8A/+lNo1lGpNu2rkT+mlp8GTFt8/4/ktsTy/nz85f96Tn18P6fN6TLzkB30ObPo5/ut1+XaC92HwrP5worY+b8yf3+jlc/72y4k+F8q+Il/F/pyof06U0/uGfE4w3tuK2pv9eAvzvI/7607a+zf4r/tVE3sffv13Maq3K9fJKZ0sOfL7U6ycsv/NIQ+eVH6nXDhQsj3P31fssxIK8rs6ffvTWdH1pZbfHvRTV749+6Vbnwpwa790q6TPIfmXIuu3x9++HqT+vitP6X+4cmmfZ+nn10eVz4p+qf5T/Lvbfe6ZuxhFKbV+burrFp9nHDe5hF+6BZamdEfBUOPRfzo/jZtfQGHHFSc/S7ok2nWly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Vyc2lvbj0iMi4xMC4zMCIKICAgdGlmZjpPcmllbnRhdGlvbj0iMSIKICAgeG1wOkNyZWF0b3JUb29sPSJHSU1QIDIuMTAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDphM2U3ZWQ1MS0xNTI4LTRhYjAtODVjOS0zNzNkNzgxZGM2ZmMiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTGludXgpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA1LTI0VDE3OjI1OjI3KzAyOjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PofUkY4AAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfnBRgPGRuA4VZTAAAFcElEQVRYw82YW2xbVRaGv7XP8bHjXByHQkNhWigdVX1AikRBMBoQ8wASl4fRqPDAAxIPKAVxeRqQRohHBEVCaoGKUBCl4qHcNKCZVKMRRQxtgTaACLRKqlwB14NzM2ni2D2XvXjgBFXQOnFiA1uy/HB89u9/7bX+vf4l1HnpK57hTNCE0AzqAS5gAAuEID5KiWSiLPf4tp7YUjcSu4yLZzdi2IJyNXANcBlwAdAKzAHTwDhwDKEPywC+GZWHbPi7IKOvZIWguAnlr8BtwJ+AxDJeDYCPgF6Ed0hkh+Weov5mZLTHJMDeBjwYk0itYJtKTOpZML3SbYNfnYz2SBr0buARYENcFytdFvga2AGyT7p14Vcjoz3ShOgdKDuAi+pUewpMIDyCypvSreWGk9HdroO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0b3JUb29sPSJHSU1QIDIuMTAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDoxYzNjOGRkZi1kMjVkLTQ4YzQtYTAwYS0yMmU3ZDYwMzg1YjYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTGludXgpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA1LTI0VDE3OjI1OjAzKzAyOjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PuhCAHgAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfnBRgPGQOTjc4FAAAFdklEQVRYw82YW2gcZRTHf+eb2dlkc9lsrFYr2notfSgWxKKiog8VvIFI9UFQEaWtYPFJfREfRRSEeqlttViLD/WGisYXrShWpfWC1WpSN5eN3cZumkuTzWY3c/mOD9lI0WSTTXbVA8M8zMz3n//5zvl/5xyhxqb3ewYvaERpAvUAFzCABUIQH6GAHyvKa76tJbbUjMRW4+LbC7GsQbgCWA+sAs4AWoA8MAxkgEMo32LoxDO98oIN/xdk9IGUYEYvRrgduAW4Gogt4NMA+BroQHkfm+qW3aP6n5HRTSYG9hZga5lEwyKWKZVJvQCmQ3bZ4F8no5skAXov8BiwspwXizUL9APPgOyVXTr5r5HRzdKI1TsRngHOqlHuKTCI8hhG3padWqw7GX3IddDwcixvAefXUkTKhH7HcBfifi8vh1E1H1cfGkGYxPI4cM68RGw5zf3y3S7IuedgeZwgTNZ1Z3Sz46LRNc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2UvcG5nIgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJMaW51eCIKICAgR0lNUDpUaW1lU3RhbXA9IjE2ODQ5NDE2NDAxNTU0MjYiCiAgIEdJTVA6VmVyc2lvbj0iMi4xMC4zMCIKICAgdGlmZjpPcmllbnRhdGlvbj0iMSIKICAgeG1wOkNyZWF0b3JUb29sPSJHSU1QIDIuMTAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowMjQ4MDc5ZS1kMTYyLTQxZmItOGViYS1lMzY2NTRiNGRjMjYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTGludXgpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA1LTI0VDE3OjIwOjQwKzAyOjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PkaovgIAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfnBRgPFCiKn0kIAAAFfUlEQVRYw82YTWxc1RXHf+e+N2/GH+Px2IEEV02AgqIsIkwgoYS2ahepVGCBUOiCRRdsAAnECthErBBCICGFj4gqRQqBRSABUrVm1URtCSATJ5ASZCPHH0kGgx1/xJl5nvH7uIcFY4iIM/GzZyhHenqL994993/u+f/fOUeos+nNnkHCJoQWRD0UFzCARYhQCVB8NFWWTwNbT99SNxC3GZfIXg9sADYDWxCuRekEskARYQplFPgEOAr045ph6bXRzwKM3pEX5mduQLkHuAvYCqSW8GkIfA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jNzhlNzczNGRlN2QiCiAgIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoyNzExODVkMi03MWZiLTRhZDMtYTJmMi1iNjM3OWU3MDc1OTEiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJMaW51eCIKICAgR0lNUDpUaW1lU3RhbXA9IjE2ODQ5NDE4NjYyMzgzMjQiCiAgIEdJTVA6VmVyc2lvbj0iMi4xMC4zMCIKICAgdGlmZjpPcmllbnRhdGlvbj0iMSIKICAgeG1wOkNyZWF0b3JUb29sPSJHSU1QIDIuMTAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo1NGFiYzNkYS1lZWJiLTRlZjctYjdjNS04ZDRjODY5OGVjODMiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTGludXgpIgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTA1LTI0VDE3OjI0OjI2KzAyOjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pj0tlUwAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfnBRgPGBru/VeEAAAABmJLR0QA/wD/AP+gvaeTAAAFO0lEQVRYw9WYe2xTVRzHTx97dYS5B1UHa+/tY12dDoOKWyIGlfgHkCkSNTHGwHxA3NiAP/A5x4CMKEzdYL29YyAyBxKQZbI+NvYIaowaH9Ogi2GRbGjcFrbBNrq2a2/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hxWA7vJgRib0nDuSDvtkIkjYcHE3aVWjRLL9/zyyETPK2Vq3OidAaOhiPDLcbxo3MRIik0eReWPnO15pHHiqbpYhS6hkNw7wAz0To6GM5hAzH3wkDa6b7x4bEwnkUfMnP6idX7Nex7GxElIDNerV6hU6jSdbp9RHck2w0w/FaGGoJm7KtnCfmWNlF1fOrK3Q6bekMRFABO7QM8yxewFLUi+5JSxPpAmcxy0gjt1Rytir4NcHKCfJTH/al5j1j1hr0pWEML55YD+x2GP6cVqNZZjQYEvUsG4vP4v8jKju5L1p6qnytxGKa6qogyOorBpVbXvxMe69xdxABb9I0DAGvIIRWp7NsBsJIoWVZKfaXuf+jMKp2b6z8+Adb4aErNwpCCh5J2pnfoH0ga08g7invBfaQjXjjuQifhyEgLdNolJP5UqR17y+QnSwvk1i565OZK6F8RzubvWwvDH8LvKZnmHXY8HKws+sNLJtI5muJ/7hYElOzJ1V+fN9R7CVDClPJOVXuqo06vS4HQjTwgDKDZRXk/1JiD7wrieFLk6T1lczCXUVK7aPZinS9XrTw+Q+Tql7SUmvGuQAAAABJRU5ErkJggg==",defaultOffset:[-25.5,-32]},vt=o(12),Ct=o.n(vt),It=o(13),bt=o.n(It),wt=o(32),_t=o.n(wt),Et=o(33),St=o.n(Et),Mt=o(15),Pt=o.n(Mt),xt=o(16),kt=o.n(xt),Gt=o(34),Rt=o.n(Gt),Tt=o(63),Ot=o.n(Tt),Lt=o(64),Dt=o.n(Lt),jt=lt.getLogger("styling");Ct.a.prototype.setPropertyFill=function(){var e=this.getStyle();if(e&&(!Array.isArray(e)||0!==e.length)){var t=e.getFill();if(t){var o=t.getColor();if(Array.isArray(o)){var n="rgba(";n+=o[0]+",",n+=o[1]+",",n+=o[2]+",",o=n+=o[3]+")"}if(yt.isRGB(o)){var i=yt.rgbaToHex(o);this.set("fill",i.hex),this.set("fill-opacity",i.opacity)}else this.set("fill",o),this.set("fill-opacity",1)}}},Ct.a.prototype.setPropertyStroke=function(){var e=this.getStyle();if(e&&(!Array.isArray(e)||0!==e.length)){var t=e.getStroke();if(t){var o=t.getColor();if(Array.isArray(o)){var n="rgba(";n+=o[0]+",",n+=o[1]+",",n+=o[2]+",",o=n+=o[3]+")"}if(yt.isRGB(o)){var i=yt.rgbaToHex(o);this.set("stroke",i.hex),this.set("stroke-opacity",i.opacity)}else this.set("stroke",o),this.set("stroke-opacity",1);this.set("stroke-width",t.getWidth())}}},Ct.a.prototype.setPropertyLabel=function(){var e=this.getStyle();if(e&&(!Array.isArray(e)||0!==e.length)){var t=void 0!==this.get("name");if(e.getText()&&t){var o=e.getText().getFill();if(o){var n=o.getColor();if(Array.isArray(n)){var i="rgba(";i+=n[0]+",",i+=n[1]+",",i+=n[2]+",",n=i+=n[3]+")"}if(yt.isRGB(n)){var r=yt.rgbaToHex(n);this.set("label-fill",r.hex),this.set("label-fill-opacity",r.opacity)}else this.set("label-fill",n),this.set("label-fill-opacity",1)}var a=e.getText().getStroke();if(a){var s=a.getColor();if(Array.isArray(s)){var l="rgba(";l+=s[0]+",",l+=s[1]+",",l+=s[2]+",",s=l+=s[3]+")"}if(yt.isRGB(s)){var c=yt.rgbaToHex(s);this.set("label-stroke",c.hex),this.set("label-stroke-opacity",c.opacity)}else this.set("label-stroke",s),this.set("label-stroke-opacity",1);this.set("label-stroke-width",a.getWidth())}this.set("label-font",e.getText().getFont()||Ut.DEFAULT_TEXT.font),this.set("label-textAlign",e.getText().getTextAlign()||Ut.DEFAULT_TEXT.textAlign)}}},Ct.a.prototype.setPropertyMarker=function(){var e=this.getStyle();if(e&&(!Array.isArray(e)||0!==e.length)){var t=e.getImage();if(t)if(t instanceof St.a){var o=t.getColor();if(Array.isArray(o)){var n="rgba(";n+=o[0]+",",n+=o[1]+",",n+=o[2]+",",o=n+=o[3]+")"}if(o){var i=yt.rgbaToHex(o);this.set("marker-color",i.hex)}var r=t.getScale();switch(Math.round(2*r)/2){case 0:case.5:this.set("marker-size","small");break;case 1:this.set("marker-size","medium");break;case 1.5:case 2:this.set("marker-size","large")}var a=t.getSrc();a&&this.set("marker-symbol",a),this.unset("circle-fill"),this.unset("circle-fill-opacity"),this.unset("circle-stroke"),this.unset("circle-stroke-width"),this.unset("circle-stroke-opacity"),this.unset("circle-radius")}else{var s=t.getFill();if(s){var l=s.getColor();if(Array.isArray(l)){var c="rgba(";c+=l[0]+",",c+=l[1]+",",c+=l[2]+",",l=c+=l[3]+")"}if(yt.isRGB(l)){var u=yt.rgbaToHex(l);this.set("circle-fill",u.hex),this.set("circle-fill-opacity",u.opacity)}else this.set("circle-fill",l),this.set("circle-fill-opacity",1)}var d=t.getStroke();if(d){var p=d.getColor();if(Array.isArray(p)){var h="rgba(";h+=p[0]+",",h+=p[1]+",",h+=p[2]+",",p=h+=p[3]+")"}if(yt.isRGB(p)){var g=yt.rgbaToHex(p);this.set("circle-stroke",g.hex),this.set("circle-stroke-opacity",g.opacity)}else this.set("circle-stroke",p),this.set("circle-stroke-opacity",1);this.set("circle-stroke-width",d.getWidth())}var m=t.getRadius();this.set("circle-radius",m)}}};var Ut={APPLY_CONVERT_GEOM_GPX:!0,DEFAULT_ICON:{src:At.lightOrange,anchor:[.5,1],scale:1},DEFAULT_CIRCLE:{radius:10,fill:{opacity:1,color:[0,0,0,1]},stroke:{width:1,opacity:1,color:[0,0,0,1]}},DEFAULT_STROKE:{width:5,opacity:1,color:[250,250,250,1]},DEFAULT_FILL:{opacity:1,color:[0,0,0,1]},DEFAULT_TEXT:{font:"16px sans",textAlign:"left",stroke:{color:[250,250,250,1],width:5,opactity:1},fill:{opacity:1,color:[0,0,0,1]}},getListTags:function(){return["type","fill","fill-opacity","stroke","stroke-opacity","stroke-width","circle-fill","circle-fill-opacity","circle-stroke","circle-stroke-opacity","circle-stroke-width","circle-radius","marker-symbol","marker-color","marker-size","label-fill","label-fill-opacity","label-stroke","label-stroke-width","label-stroke-opacity","label-font","label-textAlign"]},defineStyleFromProperties:function(e){var t=null,o={},n=null;if(e.get("marker-color")||e.get("marker-size")||e.get("marker-symbol")){(n={}).src=this.DEFAULT_ICON.src,n.anchor=this.DEFAULT_ICON.anchor;var i=e.get("marker-symbol");i&&-1!==i.search("data:image/png;base64")&&(n.src=i);var r=e.get("marker-color");yt.isHex(r)&&(n.color=yt.hexToRgba(r,1));var a=e.get("marker-size");if(a)switch(a){case"small":n.scale=.5;break;case"medium":n.scale=1;break;case"large":n.scale=1.5;break;default:n.scale=this.DEFAULT_ICON.scale}}var s=null;(e.get("stroke")||e.get("stroke-opacity")||e.get("stroke-width"))&&((s={}).color=yt.hexToRgba(e.get("stroke"),+e.get("stroke-opacity")||this.DEFAULT_STROKE.opacity),s.width=+e.get("stroke-width")||this.DEFAULT_STROKE.width);var l=null;(e.get("fill")||e.get("fill-opacity"))&&((l={}).color=yt.hexToRgba(e.get("fill"),+e.get("fill-opacity")||this.DEFAULT_FILL.opacity));var c=null,u=null,d=""!==e.get("name");d&&((e.get("label-fill")||e.get("label-fill-opacity"))&&((u={}).color=yt.hexToRgba(e.get("label-fill"),+e.get("label-fill-opacity")||this.DEFAULT_TEXT.fill.opacity)),(e.get("label-stroke")||e.get("label-stroke-opacity")||e.get("label-stroke-width"))&&((c={}).color=yt.hexToRgba(e.get("label-stroke"),+e.get("label-stroke-opacity")||this.DEFAULT_TEXT.stroke.opacity),c.width=+e.get("label-stroke-width")||this.DEFAULT_TEXT.stroke.width));var p=e.get("circle-radius")||this.DEFAULT_CIRCLE.radius,h=null;(e.get("circle-stroke")||e.get("circle-stroke-opacity")||e.get("circle-stroke-width"))&&((h={}).color=yt.hexToRgba(e.get("circle-stroke"),+e.get("circle-stroke-opacity")||this.DEFAULT_CIRCLE.stroke.opacity),h.width=+e.get("circle-stroke-width")||this.DEFAULT_CIRCLE.stroke.width);var g=null;(e.get("circle-fill")||e.get("circle-fill-opacity"))&&((g={}).color=yt.hexToRgba(e.get("circle-fill"),+e.get("circle-fill-opacity")||this.DEFAULT_CIRCLE.fill.opacity));var m=e.getGeometry().getType();switch(m){case"Circle":case"Point":case"MultiPoint":var f=!1,y={};if(h&&(y.stroke=new kt.a(h)),g&&(y.fill=new Pt.a(g)),0!==Object.keys(y).length&&(f=!0,y.radius=+p,o.image=new _t.a(y)),n&&(o.image=new St.a(n)),d){var A={};if(c&&(A.stroke=new kt.a(c)),u&&(A.fill=new Pt.a(u)),0!==Object.keys(A).length)A.text=e.get("name"),A.textAlign=e.get("label-textAlign")||this.DEFAULT_TEXT.textAlign,A.font=e.get("label-font")||this.DEFAULT_TEXT.font,o.text=new Rt.a(Object.assign({},this.DEFAULT_TEXT,A));else if(n||f){var v=new Rt.a(Object.assign({},this.DEFAULT_TEXT,{fill:new Pt.a(this.DEFAULT_TEXT.fill),stroke:new kt.a(this.DEFAULT_TEXT.stroke)}));if(v){var C=v.clone();C.setText(e.get("name")),o.text=C}}}break;case"Polygon":case"MultiPolygon":s&&(o.stroke=new kt.a(s)),l&&(o.fill=new Pt.a(l));break;case"LineString":case"MultiLineString":if(s&&(o.stroke=new kt.a(s)),this.APPLY_CONVERT_GEOM_GPX&&l){var I=e.get("type");if(I&&("Polygon"===I||"MultiPolygon"===I)){o.fill=new Pt.a(l);var b=e.clone(),w="LineString"===m?Ot.a:Dt.a;e.setGeometry(new w([b.getGeometry().getCoordinates()]))}}}return 0!==Object.keys(o).length&&(t=new bt.a(o)),t},defineStyleFunctionByDefault:function(e){if(!e)return[];if(0===Object.keys(e).length)return[];return function(t,o){var n=null;switch(t.getGeometry().getType()){case"Point":case"MultiPoint":var i={};if(e.getImage()&&(i.image=e.getImage()),e.getText()&&t.get("name")){var r=e.getText().clone();r.setText(t.get("name")),i.text=r}n=new bt.a(i);break;case"Circle":var a={},s={};if(e.getFill()&&(s.fill=e.getFill()),e.getStroke()&&(s.stroke=e.getStroke()),e.getText()&&t.get("name")){var l=e.getText().clone();l.setText(t.get("name")),a.text=l}0!==Object.keys(s).length&&(s.radius=3,a.image=new _t.a(s)),n=new bt.a(a);break;case"Polygon":case"MultiPolygon":var c={};e.getFill()&&(c.fill=e.getFill()),e.getStroke()&&(c.stroke=e.getStroke()),n=new bt.a(c);break;case"LineString":case"LinearRing":case"MultiLineString":var u={};e.getStroke()&&(u.stroke=e.getStroke()),n=new bt.a(u)}return[n]}},definePropertiesFromStyleByType:function(e){switch(e.getGeometry().getType()){case"Point":case"MultiPoint":e.setPropertyMarker(),e.setPropertyLabel();break;case"LineString":case"MultiLineString":e.setPropertyStroke();break;case"Polygon":case"MultiPolygon":e.setPropertyStroke(),e.setPropertyFill()}},definePropertiesFromStyle:function(e){var t=e.getStyle()||e.getStyleFunction();if(t){if("function"==typeof t){var o=t.call(this,e,0);if(!o||0===o.length)return;t=Array.isArray(o)?o[0]:o,e.setStyle(t)}this.definePropertiesFromStyleByType(e)}},defineTagFromStyle:function(e,t){return jt.trace("todo..."),null}},Nt=Ut;function Bt(e){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ft=lt.getLogger("parser"),zt={parse:function(e){var t=null,n="undefined"!=typeof window?window:null;"object"===("undefined"==typeof exports?"undefined":Bt(exports))&&null===window?t=(new(0,o(35).DOMParser)).parseFromString(e,"text/xml"):n.DOMParser?t=(new n.DOMParser).parseFromString(e,"text/xml"):n.ActiveXObject?((t=new n.ActiveXObject("Microsoft.XMLDOM")).async=!1,t.loadXML(e)):Ft.log("Incompatible environment for DOM Parser !");var i=t.querySelector("parsererror");return i?(console.error(i),null):(Ft.trace(t),t)},toString:function(e){var t=(new XMLSerializer).serializeToString(e);return Ft.trace(t),t},format:function(e){for(var t="",o=(e=e.replace(/(>)\s*(<)(\/*)/g,"$1\n$2$3").replace(/ *(.*) +\n/g,"$1\n").replace(/(<.+>)(.+\n)/g,"$1\n$2")).split("\n"),n=0,i="other",r={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0},a=0;a/)),c=Boolean(s.match(/<\/.+>/)),u=Boolean(s.match(/<[^!].*>/)),d=l?"single":c?"closing":u?"opening":"other",p=i+"->"+d;i=d;var h="";n+=r[p];for(var g=0;gclosing"===p?t=t.substr(0,t.length-1)+s+"\n":t+=h+s+"\n"}return Ft.trace(t),t}};function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Wt={detectSupport:function(){var e=!0,t=window.navigator.userAgent.toLowerCase();return-1===t.indexOf("iphone")&&-1===t.indexOf("ipod")&&-1===t.indexOf("ipad")&&-1===t.indexOf("android")&&-1===t.indexOf("mobile")&&-1===t.indexOf("blackberry")&&-1===t.indexOf("tablet")&&-1===t.indexOf("phone")&&-1===t.indexOf("touch")||(e=!1),-1===t.indexOf("msie")&&-1===t.indexOf("trident")||(e=!0),e},assign:function(e,t){for(var o in e=e||{},t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},mergeParams:function(e,t,o){if(e&&t)for(var n in void 0===o&&(o=!0),t)t.hasOwnProperty(n)&&("object"===Vt(t[n])?e.hasOwnProperty(n)?this.mergeParams(e[n],t[n],o):e[n]=t[n]:e.hasOwnProperty(n)?o&&(e[n]=t[n]):e[n]=t[n])}},qt=lt.getLogger("extended KML format"),Ht=function(e){function t(o){if(!(this instanceof t))throw new TypeError("ERROR CLASS_CONSTRUCTOR");o=o||{},this.source=null,this.extensions=o.extensions||null,o.defaultStyle&&!Array.isArray(o.defaultStyle)&&(o.defaultStyle=[o.defaultStyle]),null!==o.defaultStyle&&void 0!==o.defaultStyle||(o.defaultStyle=[]),e.call(this,o)}function o(e,t,o){for(var n="#document"===e.nodeName?e.childNodes[0].childNodes:e.childNodes,i=n,r=0;r)\s*(<)/g,"$1$2"),null===(i=zt.parse(a)))return r;function s(e){var t="";t+=e.substr(6,2),t+=e.substr(4,2),t+=e.substr(2,2);for(var o=parseInt(t,16).toString(16),n="",i=o.length||0,r=0;r<6-i;r++)n+="0";return o="#"+n+o}var l=function(e,t){if(qt.trace("label with style :",t),e){for(var o=e.getProperties().name,n=s("ff000000"),i="#FFFFFF",r=0,a="Sans",l="16px",c=null,u=5,d="#000000",p="#ffffff",h=1,g=!1,m=!1,f=t.childNodes,y=0;yt&&(n=!1),n&&p&&pt?1:er&&(c-s)*(r-l)-(i-s)*(u-l)>0&&a++:u<=r&&(c-s)*(r-l)-(i-s)*(u-l)<0&&a--,s=c,l=u}return 0!==a}function Xo(e,t,o,n,i,r){if(0===o.length)return!1;if(!Ko(e,t,o[0],n,i,r))return!1;for(var a=1,s=o.length;aC&&Xo(e,t,o,n,c=(u+d)/2,g)&&(v=c,C=I),u=d}return isNaN(v)&&(v=i[r]),a?(a.push(v,g,C),a):[v,g,C]}var $o={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"};var en={};en[$o.RADIANS]=6370997/(2*Math.PI),en[$o.DEGREES]=2*Math.PI*6370997/360,en[$o.FEET]=.3048,en[$o.METERS]=1,en[$o.USFEET]=1200/3937;var tn=$o,on=function(){function e(e){this.code_=e.code,this.units_=e.units,this.extent_=void 0!==e.extent?e.extent:null,this.worldExtent_=void 0!==e.worldExtent?e.worldExtent:null,this.axisOrientation_=void 0!==e.axisOrientation?e.axisOrientation:"enu",this.global_=void 0!==e.global&&e.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return e.prototype.canWrapX=function(){return this.canWrapX_},e.prototype.getCode=function(){return this.code_},e.prototype.getExtent=function(){return this.extent_},e.prototype.getUnits=function(){return this.units_},e.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||en[this.units_]},e.prototype.getWorldExtent=function(){return this.worldExtent_},e.prototype.getAxisOrientation=function(){return this.axisOrientation_},e.prototype.isGlobal=function(){return this.global_},e.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!(!e||!this.extent_)},e.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},e.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},e.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!(!this.global_||!e)},e.prototype.setWorldExtent=function(e){this.worldExtent_=e},e.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},e.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e}();var nn="cosh"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2};"log2"in Math&&Math.log2;function rn(e,t,o){return e+o*(t-e)}var an=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),sn=6378137*Math.PI,ln=[-sn,-sn,sn,sn],cn=[-180,-85,180,85],un=6378137*Math.log(Math.tan(Math.PI/2)),dn=function(e){function t(t){return e.call(this,{code:t,units:tn.METERS,extent:ln,global:!0,worldExtent:cn,getPointResolution:function(e,t){return e/nn(t[1]/6378137)}})||this}return an(t,e),t}(on),pn=[new dn("EPSG:3857"),new dn("EPSG:102100"),new dn("EPSG:102113"),new dn("EPSG:900913"),new dn("http://www.opengis.net/def/crs/EPSG/0/3857"),new dn("http://www.opengis.net/gml/srs/epsg.xml#3857")];function hn(e,t,o){var n=e.length,i=o>1?o:2,r=t;void 0===r&&(r=i>2?e.slice():new Array(n));for(var a=0;aun?s=un:s<-un&&(s=-un),r[a+1]=s}return r}function gn(e,t,o){var n=e.length,i=o>1?o:2,r=t;void 0===r&&(r=i>2?e.slice():new Array(n));for(var a=0;a>1)],t))<0?a=n+1:(s=n,l=!i);return l?a:~a}(h,y);A<0?(l=(y-h[-A-2])/(h[-A-1]-h[-A-2]),s=t+(-A-2)*n):s=t+A*n}var v=a>1?a:2,C=r||new Array(v);for(g=0;g=.05){for(var o="",n=e.split("\n"),i=Vn.slice(0,Math.round(t/.1)),r=0,a=n.length;r0&&(o+="\n"),o+=n[r].split("").join(i);return o}return e}function qn(){return zn||(zn=Fn(1,1).getContext("2d")),zn}function Hn(e,t){return qn().measureText(e).width+(e.length-1)*t}var Yn={};jn.labelCache&&Un(jn.labelCache,"clear",(function(){Yn={}}));var Jn,Zn,Kn=Dn.e.isFunction,Xn=Dn.e.convertFunction,Qn=Dn.c.isExpression,$n=Dn.c.createPropertyExpression,ei={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},ti={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},oi={},ni={zoom:0};function ii(e,t,o,n,i,r){var a=e.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[a]||(r[a]={});var s=r[a];if(!s[o]){var l=(e[t]||oi)[o],c=Dn.f["".concat(t,"_").concat(e.type)][o];void 0===l&&(l=c.default);var u=Qn(l);if(!u&&Kn(l)&&(l=Xn(l,c),u=!0),u){var d=function(e,t){var o=$n(e,t);if("error"===o.result)throw new Error(o.value.map((function(e){return"".concat(e.key,": ").concat(e.message)})).join(", "));return o.value}(l,c);s[o]=d.evaluate.bind(d)}else"color"==c.type&&(l=Dn.a.parse(l)),s[o]=function(){return l}}return ni.zoom=n,s[o](ni,i)}function ri(e,t){if(e){if(0===e.a||0===t)return;var o=e.a;return t=void 0===t?1:t,"rgba("+Math.round(255*e.r/o)+","+Math.round(255*e.g/o)+","+Math.round(255*e.b/o)+","+o*t+")"}return e}var ai=/^([^]*)\{(.*)\}([^]*)$/;function si(e,t){var o;do{if(o=e.match(ai)){var n=t[o[2]]||"";e=o[1]+n+o[3]}}while(o);return e}var li=!1;var ci=function(e,t,o,n,i,r,a){if(void 0===n&&(n=Bn),"string"==typeof t&&(t=JSON.parse(t)),8!=t.version)throw new Error("glStyle version 8 required.");var s,l;if(r)if("undefined"!=typeof Image){var c=new Image;c.crossOrigin="anonymous",c.onload=function(){s=c,l=[c.width,c.height],e.changed(),c.onload=null},c.src=r}else if("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var u=self;u.postMessage({action:"loadImage",src:r}),u.addEventListener("message",(function(e){"imageLoaded"===e.data.action&&e.data.src===r&&(s=e.data.image,l=[s.width,s.height])}))}for(var d,p=Object(Dn.b)(t.layers),h={},g=[],m={},f={},y={},A={},v=0,C=p.length;v=C.maxzoom)return"continue";var _=C.filter;if(!_||function(e,t,o,n,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=Object(Dn.d)(t).filter),ni.zoom=n,i[e](ni,o)}(I,_,p,c,A)){u=C;var E=void 0,S=void 0,k=void 0,G=void 0,R=void 0,T=void 0,O=v.index;if(3==d&&("fill"==C.type||"fill-extrusion"==C.type))if(S=ii(C,"paint",C.type+"-opacity",c,p,y),C.type+"-pattern"in w){var L=ii(C,"paint",C.type+"-pattern",c,p,y);if(L){var D="string"==typeof L?si(L,o):L.toString();if(s&&i&&i[D]){++g,(T=x[g])&&T.getFill()&&!T.getStroke()&&!T.getText()||(T=new bt.a({fill:new Pt.a}),x[g]=T),k=T.getFill(),T.setZIndex(O);var j=f[he=D+"."+S];if(!j){var U=Fn((ge=i[D]).width,ge.height),N=U.getContext("2d");N.globalAlpha=S,N.drawImage(s,ge.x,ge.y,ge.width,ge.height,0,0,ge.width,ge.height),j=N.createPattern(U,"repeat"),f[he]=j}k.setColor(j)}}}else(E=ri(ii(C,"paint",C.type+"-color",c,p,y),S))&&(C.type+"-outline-color"in w&&(R=ri(ii(C,"paint",C.type+"-outline-color",c,p,y),S)),R||(R=E),++g,(T=x[g])&&T.getFill()&&T.getStroke()&&!T.getText()||(T=new bt.a({fill:new Pt.a,stroke:new kt.a}),x[g]=T),(k=T.getFill()).setColor(E),(G=T.getStroke()).setColor(R),G.setWidth(1),T.setZIndex(O));if(1!=d&&"line"==C.type){E=!("line-pattern"in w)&&"line-color"in w?ri(ii(C,"paint","line-color",c,p,y),ii(C,"paint","line-opacity",c,p,y)):void 0;var B=ii(C,"paint","line-width",c,p,y);E&&B>0&&(++g,(T=x[g])&&T.getStroke()&&!T.getFill()&&!T.getText()||(T=new bt.a({stroke:new kt.a}),x[g]=T),(G=T.getStroke()).setLineCap(ii(C,"layout","line-cap",c,p,y)),G.setLineJoin(ii(C,"layout","line-join",c,p,y)),G.setMiterLimit(ii(C,"layout","line-miter-limit",c,p,y)),G.setColor(E),G.setWidth(B),G.setLineDash(w["line-dasharray"]?ii(C,"paint","line-dasharray",c,p,y).map((function(e){return e*B})):null),T.setZIndex(O))}var F=!1,z=null,V=0,W=void 0,q=void 0,H=void 0;if((1==d||2==d)&&"icon-image"in b){var Y=ii(C,"layout","icon-image",c,p,y);if(Y){W="string"==typeof Y?si(Y,o):Y.toString();var J=void 0;if(s&&i&&i[W]){var Z=ii(C,"layout","icon-rotation-alignment",c,p,y);if(2==d){var K=e.getGeometry();if(K.getFlatMidpoint||K.getFlatMidpoints){var X=K.getExtent();if(Math.sqrt(Math.max(Math.pow((X[2]-X[0])/t,2),Math.pow((X[3]-X[1])/t,2)))>150){var Q="MultiLineString"===K.getType()?K.getFlatMidpoints():K.getFlatMidpoint();if(Zn||(Zn=new Tn("Point",Jn=[NaN,NaN],[],{},null)),J=Zn,Jn[0]=Q[0],Jn[1]=Q[1],"line"===(ke=ii(C,"layout","symbol-placement",c,p,y))&&"map"===Z)for(var $=K.getStride(),ee=K.getFlatCoordinates(),te=0,oe=ee.length-$;te=se&&Q[0]<=ce&&Q[1]>=le&&Q[1]<=ue){V=Math.atan2(ie-ae,re-ne);break}}}}}if(2!==d||J){var de=ii(C,"layout","icon-size",c,p,y),pe=void 0!==w["icon-color"]?ii(C,"paint","icon-color",c,p,y):null;if(!pe||0!==pe.a){var he=W+"."+de;if(null!==pe&&(he+="."+pe),!(q=m[he])){var ge=i[W];q=new St.a({color:pe?[255*pe.r,255*pe.g,255*pe.b,pe.a]:void 0,img:s,imgSize:l,size:[ge.width,ge.height],offset:[ge.x,ge.y],rotateWithView:"map"===Z,scale:de/ge.pixelRatio}),m[he]=q}}q&&(++g,(T=x[g])&&T.getImage()&&!T.getFill()&&!T.getStroke()||(T=new bt.a,x[g]=T),T.setGeometry(J),q.setRotation(V+Nn(ii(C,"layout","icon-rotate",c,p,y))),q.setOpacity(ii(C,"paint","icon-opacity",c,p,y)),q.setAnchor(ti[ii(C,"layout","icon-anchor",c,p,y)]),T.setImage(q),z=T.getText(),T.setText(void 0),T.setZIndex(O),F=!0,H=!1)}else H=!0}}}if(1==d&&"circle-radius"in w){++g,(T=x[g])&&T.getImage()&&!T.getFill()&&!T.getStroke()||(T=new bt.a,x[g]=T);var me=ii(C,"paint","circle-radius",c,p,y),fe=ri(ii(C,"paint","circle-stroke-color",c,p,y),ii(C,"paint","circle-stroke-opacity",c,p,y)),ye=ri(ii(C,"paint","circle-color",c,p,y),ii(C,"paint","circle-opacity",c,p,y)),Ae=ii(C,"paint","circle-stroke-width",c,p,y),ve=me+"."+fe+"."+ye+"."+Ae;(q=m[ve])||(q=new _t.a({radius:me,stroke:fe&&Ae>0?new kt.a({width:Ae,color:fe}):void 0,fill:ye?new Pt.a({color:ye}):void 0}),m[ve]=q),T.setImage(q),z=T.getText(),T.setText(void 0),T.setGeometry(void 0),T.setZIndex(O),F=!0}var Ce=void 0;if("text-field"in b)Ce=si(ii(C,"layout","text-field",c,p,y).toString(),o).trim(),S=ii(C,"paint","text-opacity",c,p,y);if(Ce&&S&&!H){F||(++g,(T=x[g])&&T.getText()&&!T.getFill()&&!T.getStroke()||(T=new bt.a,x[g]=T),T.setImage(void 0),T.setGeometry(void 0)),T.getText()||T.setText(z||new Rt.a({padding:[2,2,2,2]})),z=T.getText();var Ie=Math.round(ii(C,"layout","text-size",c,p,y)),be=ii(C,"layout","text-font",c,p,y),we=ii(C,"layout","text-line-height",c,p,y),_e=Ln()(a?a(be):be,Ie,we),Ee=b["text-transform"];"uppercase"==Ee?Ce=Ce.toUpperCase():"lowercase"==Ee&&(Ce=Ce.toLowerCase());var Se=ii(C,"layout","text-max-width",c,p,y),Me=ii(C,"layout","text-letter-spacing",c,p,y),Pe=2==d?Wn(Ce,Me):function e(t,o,n,i){if(-1!==t.indexOf("\n")){for(var r=t.split("\n"),a=[],s=0,l=r.length;s1){var p=qn();p.font=o;var h=p.measureText("M").width*n,g="";for(a=[],s=0,l=d.length;s1;++s){var y=a[s];if(Hn(y,i)<.35*h){var A=s>0?Hn(a[s-1],i):1/0,v=s.7*h&&Hn(I,i)<.6*h){var b=C.split(" "),w=b.pop();Hn(w,i)<.2*h&&(a[s]=b.join(" "),a[s+1]=w+" "+I),l-=1}}u=a.join("\n")}else u=t;u=Wn(u,i),Yn[c]=u}return u}(Ce,_e,Se,Me);z.setText(Pe),z.setFont(_e),z.setRotation(Nn(ii(C,"layout","text-rotate",c,p,y)));var xe=ii(C,"layout","text-anchor",c,p,y),ke=F||1==d?"point":ii(C,"layout","symbol-placement",c,p,y);z.setPlacement(ke);var Ge=ii(C,"paint","text-halo-width",c,p,y),Re=ii(C,"layout","text-offset",c,p,y),Te=ii(C,"paint","text-translate",c,p,y),Oe=0,Le=0;if("point"==ke){var De="center";-1!==xe.indexOf("left")?(De="left",Le=Ge):-1!==xe.indexOf("right")&&(De="right",Le=-Ge),z.setTextAlign(De);var je=ii(C,"layout","text-rotation-alignment",c,p,y);z.setRotateWithView("map"==je)}else z.setMaxAngle(Nn(ii(C,"layout","text-max-angle",c,p,y))*Ce.length/Pe.length),z.setTextAlign(),z.setRotateWithView(!1);var Ue="middle";0==xe.indexOf("bottom")?(Ue="bottom",Oe=-Ge-.5*(we-1)*Ie):0==xe.indexOf("top")&&(Ue="top",Oe=Ge+.5*(we-1)*Ie),z.setTextBaseline(Ue),z.setOffsetX(Re[0]*Ie+Le+Te[0]),z.setOffsetY(Re[1]*Ie+Oe+Te[1]),P.setColor(ri(ii(C,"paint","text-color",c,p,y),S)),z.setFill(P);var Ne=ri(ii(C,"paint","text-halo-color",c,p,y),S);if(Ne){M.setColor(Ne),Ge*=2;var Be=.5*Ie;M.setWidth(Ge<=Be?Ge:Be),z.setStroke(M)}else z.setStroke(void 0);var Fe=ii(C,"layout","text-padding",c,p,y),ze=z.getPadding();Fe!==ze[0]&&(ze[0]=Fe,ze[1]=Fe,ze[2]=Fe,ze[3]=Fe),T.setZIndex(O)}}},C=0,I=r.length;C-1?(x.length=g+1,li&&("function"==typeof e.set?e.set("mapbox-layer",u):e.getProperties()["mapbox-layer"]=u),x):void 0}};return e.setStyle(k),e.set("mapbox-source",d),e.set("mapbox-layers",g),k},ui=o(69),di=o.n(ui);o(70);function pi(e){return(pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var hi,gi=/font-family: ?([^;]*);/,mi=/("|')/g;function fi(e){if(!hi){hi={};for(var t=document.styleSheets,o=0,n=t.length;o2?n[2]:""):e+o}function wi(e,t,o,n,i){return new Promise((function(r,a){if("object"!=pi(t)&&(t=JSON.parse(t)),8!=t.version)return a(new Error("glStyle version 8 required."));if(!(e instanceof Do.a||e instanceof xo.a))return a(new Error("Can only apply to VectorLayer or VectorTileLayer"));var s,l,c;function u(){c||t.sprite&&!s?c?(e.setStyle(c),r()):a(new Error("Something went wrong trying to apply style.")):(c=ci(e,t,o,i,s,l,vi),e.getStyle()?r():a(new Error("Nothing to show for source [".concat(o,"]"))))}if(t.sprite){var d=.5==(window.devicePixelRatio>=1.5?.5:1)?"@2x":"",p=bi(t.sprite,n,d+".json");fetch(p,{credentials:"same-origin"}).then((function(e){return e.ok||""===d?e:(p=bi(t.sprite,n,".json"),fetch(p,{credentials:"same-origin"}))})).then((function(e){if(e.ok)return e.json();a(new Error("Problem fetching sprite from ".concat(p,": ").concat(e.statusText)))})).then((function(e){if(void 0===e)return a(new Error("No sprites found."));s=e,l=bi(t.sprite,n,d+".png"),u()})).catch((function(e){a(new Error("Sprites cannot be loaded: ".concat(p,": ").concat(e.message)))}))}else u()}))}new no.a;var _i=function(e){function t(o,n){if(!(this instanceof t))throw new TypeError("ERROR CLASS_CONSTRUCTOR");if(!o.layer)throw new Error("ERROR PARAM_MISSING : layer");if("string"!=typeof o.layer)throw new Error("ERROR WRONG TYPE : layer");if(this.layerName=o.layer,this.styleName=o.style,this.sourceId=o.source,void 0===o.ssl&&(o.ssl=!0),this.protocol=!1===o.ssl?"http://":"https://",!ho.a.isConfigLoaded())throw new Error("ERROR : contract key configuration has to be loaded to load Geoportal layers.");var i=this.layerName+"$GEOPORTAIL:GPP:TMS",r=ho.a.configuration.getLayerConf(i);if(!r)throw new Error("ERROR : Layer ID not found into the catalogue !?");this.styleUrl=null,this.styleTitle="";for(var a=0;a * @author owenm * @license MIT */ -function Gi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ri(e){for(var t=1;t=0||(i[o]=e[o]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}function ji(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Ui=ji(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ni=ji(/Edge/i),Bi=ji(/firefox/i),Fi=ji(/safari/i)&&!ji(/chrome/i)&&!ji(/android/i),zi=ji(/iP(ad|od|hone)/i),Vi=ji(/chrome/i)&&ji(/android/i),Wi={capture:!1,passive:!1};function qi(e,t,o){e.addEventListener(t,o,!Ui&&Wi)}function Hi(e,t,o){e.removeEventListener(t,o,!Ui&&Wi)}function Yi(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Ji(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Zi(e,t,o,n){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&Yi(e,t):Yi(e,t))||n&&e===o)return e;if(e===o)break}while(e=Ji(e))}return null}var Ki,Xi=/\s+/g;function Qi(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(Xi," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(Xi," ")}}function $i(e,t,o){var n=e&&e.style;if(n){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=o+("string"==typeof o?"":"px")}}function er(e,t){var o="";if("string"==typeof e)o=e;else do{var n=$i(e,"transform");n&&"none"!==n&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function tr(e,t,o){if(e){var n=e.getElementsByTagName(t),i=0,r=n.length;if(o)for(;i=r:i<=r))return n;if(n===or())break;n=cr(n,!1)}return!1}function rr(e,t,o,n){for(var i=0,r=0,a=e.children;r2&&void 0!==arguments[2]?arguments[2]:{},n=o.evt,i=Di(o,Cr);Ar.pluginEvent.bind(ha)(e,t,Ri({dragEl:wr,parentEl:_r,ghostEl:Er,rootEl:Sr,nextEl:Mr,lastDownEl:Pr,cloneEl:xr,cloneHidden:kr,dragStarted:Vr,putSortable:Dr,activeSortable:ha.active,originalEvent:n,oldIndex:Gr,oldDraggableIndex:Tr,newIndex:Rr,newDraggableIndex:Or,hideGhostForTarget:ca,unhideGhostForTarget:ua,cloneNowHidden:function(){kr=!0},cloneNowShown:function(){kr=!1},dispatchSortableEvent:function(e){br({sortable:t,name:e,originalEvent:n})}},i))};function br(e){vr(Ri({putSortable:Dr,cloneEl:xr,targetEl:wr,rootEl:Sr,oldIndex:Gr,oldDraggableIndex:Tr,newIndex:Rr,newDraggableIndex:Or},e))}var wr,_r,Er,Sr,Mr,Pr,xr,kr,Gr,Rr,Tr,Or,Lr,Dr,jr,Ur,Nr,Br,Fr,zr,Vr,Wr,qr,Hr,Yr,Jr=!1,Zr=!1,Kr=[],Xr=!1,Qr=!1,$r=[],ea=!1,ta=[],oa="undefined"!=typeof document,na=zi,ia=Ni||Ui?"cssFloat":"float",ra=oa&&!Vi&&!zi&&"draggable"in document.createElement("div"),aa=function(){if(oa){if(Ui)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),sa=function(e,t){var o=$i(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=rr(e,0,t),r=rr(e,1,t),a=i&&$i(i),s=r&&$i(r),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+nr(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+nr(r).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!r||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=n&&"none"===o[ia]||r&&"none"===o[ia]&&l+c>n)?"vertical":"horizontal"},la=function(e){function t(e,o){return function(n,i,r,a){var s=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(null==e&&(o||s))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(n,i,r,a),o)(n,i,r,a);var l=(o?n:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var o={},n=e.group;n&&"object"==Ti(n)||(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},ca=function(){!aa&&Er&&$i(Er,"display","none")},ua=function(){!aa&&Er&&$i(Er,"display","")};oa&&document.addEventListener("click",(function(e){if(Zr)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Zr=!1,!1}),!0);var da=function(e){if(wr){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,r=e.clientY,Kr.some((function(e){var t=e[gr].options.emptyInsertThreshold;if(t&&!ar(e)){var o=nr(e),n=i>=o.left-t&&i<=o.right+t,s=r>=o.top-t&&r<=o.bottom+t;return n&&s?a=e:void 0}})),a);if(t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[gr]._onDragOver(o)}}var i,r,a},pa=function(e){wr&&wr.parentNode[gr]._isOutsideThisEl(e.target)};function ha(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Li({},t),e[gr]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return sa(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==ha.supportPointer&&"PointerEvent"in window&&!Fi,emptyInsertThreshold:5};for(var n in Ar.initializePlugins(this,e,o),o)!(n in t)&&(t[n]=o[n]);for(var i in la(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&ra,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?qi(e,"pointerdown",this._onTapStart):(qi(e,"mousedown",this._onTapStart),qi(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(qi(e,"dragover",this),qi(e,"dragenter",this)),Kr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Li(this,mr())}function ga(e,t,o,n,i,r,a,s){var l,c,u=e[gr],d=u.options.onMove;return!window.CustomEvent||Ui||Ni?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=o,l.draggedRect=n,l.related=i||t,l.relatedRect=r||nr(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function ma(e){e.draggable=!1}function fa(){ea=!1}function ya(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function Aa(e){return setTimeout(e,0)}function va(e){return clearTimeout(e)}ha.prototype={constructor:ha,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Wr=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,wr):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,n=this.options,i=n.preventOnFilter,r=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=n.filter;if(function(e){ta.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var n=t[o];n.checked&&ta.push(n)}}(o),!wr&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||n.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!Fi||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=Zi(s,n.draggable,o,!1))&&s.animated||Pr===s)){if(Gr=sr(s),Tr=sr(s,n.draggable),"function"==typeof c){if(c.call(this,e,s,this))return br({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:o,fromEl:o}),Ir("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=Zi(l,n.trim(),o,!1))return br({sortable:t,rootEl:n,name:"filter",targetEl:s,fromEl:o,toEl:o}),Ir("filter",t,{evt:e}),!0}))))return void(i&&e.cancelable&&e.preventDefault());n.handle&&!Zi(l,n.handle,o,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,o){var n,i=this,r=i.el,a=i.options,s=r.ownerDocument;if(o&&!wr&&o.parentNode===r){var l=nr(o);if(Sr=r,_r=(wr=o).parentNode,Mr=wr.nextSibling,Pr=o,Lr=a.group,ha.dragged=wr,jr={target:wr,clientX:(t||e).clientX,clientY:(t||e).clientY},Fr=jr.clientX-l.left,zr=jr.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,wr.style["will-change"]="all",n=function(){Ir("delayEnded",i,{evt:e}),ha.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!Bi&&i.nativeDraggable&&(wr.draggable=!0),i._triggerDragStart(e,t),br({sortable:i,name:"choose",originalEvent:e}),Qi(wr,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){tr(wr,e.trim(),ma)})),qi(s,"dragover",da),qi(s,"mousemove",da),qi(s,"touchmove",da),qi(s,"mouseup",i._onDrop),qi(s,"touchend",i._onDrop),qi(s,"touchcancel",i._onDrop),Bi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,wr.draggable=!0),Ir("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Ni||Ui))n();else{if(ha.eventCanceled)return void this._onDrop();qi(s,"mouseup",i._disableDelayedDrag),qi(s,"touchend",i._disableDelayedDrag),qi(s,"touchcancel",i._disableDelayedDrag),qi(s,"mousemove",i._delayedDragTouchMoveHandler),qi(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&qi(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(n,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){wr&&ma(wr),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Hi(e,"mouseup",this._disableDelayedDrag),Hi(e,"touchend",this._disableDelayedDrag),Hi(e,"touchcancel",this._disableDelayedDrag),Hi(e,"mousemove",this._delayedDragTouchMoveHandler),Hi(e,"touchmove",this._delayedDragTouchMoveHandler),Hi(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?qi(document,"pointermove",this._onTouchMove):qi(document,t?"touchmove":"mousemove",this._onTouchMove):(qi(wr,"dragend",this),qi(Sr,"dragstart",this._onDragStart));try{document.selection?Aa((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Jr=!1,Sr&&wr){Ir("dragStarted",this,{evt:t}),this.nativeDraggable&&qi(document,"dragover",pa);var o=this.options;!e&&Qi(wr,o.dragClass,!1),Qi(wr,o.ghostClass,!0),ha.active=this,e&&this._appendGhost(),br({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ur){this._lastX=Ur.clientX,this._lastY=Ur.clientY,ca();for(var e=document.elementFromPoint(Ur.clientX,Ur.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ur.clientX,Ur.clientY))!==t;)t=e;if(wr.parentNode[gr]._isOutsideThisEl(e),t)do{if(t[gr]){if(t[gr]._onDragOver({clientX:Ur.clientX,clientY:Ur.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);ua()}},_onTouchMove:function(e){if(jr){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,i=e.touches?e.touches[0]:e,r=Er&&er(Er,!0),a=Er&&r&&r.a,s=Er&&r&&r.d,l=na&&Yr&&lr(Yr),c=(i.clientX-jr.clientX+n.x)/(a||1)+(l?l[0]-$r[0]:0)/(a||1),u=(i.clientY-jr.clientY+n.y)/(s||1)+(l?l[1]-$r[1]:0)/(s||1);if(!ha.active&&!Jr){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))n.right+10||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+10}(e,i,this)&&!m.animated){if(m===wr)return G(!1);if(m&&r===e.target&&(a=m),a&&(o=nr(a)),!1!==ga(Sr,r,wr,t,a,o,e,!!a))return k(),r.appendChild(wr),_r=r,R(),G(!0)}else if(m&&function(e,t,o){var n=nr(rr(o.el,0,o.options,!0));return t?e.clientXu+c*r/2:ld-Hr)return-qr}else if(l>u+c*(1-i)/2&&ld-c*r/2))return l>u+c/2?1:-1;return 0}(e,a,o,i,I?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Qr,Wr===a))){var E=sr(wr);do{E-=y,v=_r.children[E]}while(v&&("none"===$i(v,"display")||v===Er))}if(0===y||v===a)return G(!1);Wr=a,qr=y;var S=a.nextElementSibling,M=!1,P=ga(Sr,r,wr,t,a,o,e,M=1===y);if(!1!==P)return 1!==P&&-1!==P||(M=1===P),ea=!0,setTimeout(fa,30),k(),M&&!S?r.appendChild(wr):a.parentNode.insertBefore(wr,M?S:a),w&&pr(w,0,_-w.scrollTop),_r=wr.parentNode,void 0===A||Qr||(Hr=Math.abs(A-nr(a)[b])),R(),G(!0)}if(r.contains(wr))return G(!1)}return!1}function x(s,l){Ir(s,h,Ri({evt:e,isOwner:u,axis:i?"vertical":"horizontal",revert:n,dragRect:t,targetRect:o,canSort:d,fromSortable:p,target:a,completed:G,onMove:function(o,n){return ga(Sr,r,wr,t,o,nr(o),e,n)},changed:R},l))}function k(){x("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function G(t){return x("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(h),h!==p&&(Qi(wr,Dr?Dr.options.ghostClass:c.options.ghostClass,!1),Qi(wr,s.ghostClass,!0)),Dr!==h&&h!==ha.active?Dr=h:h===ha.active&&Dr&&(Dr=null),p===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){x("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===wr&&!wr.animated||a===r&&!a.animated)&&(Wr=null),s.dragoverBubble||e.rootEl||a===document||(wr.parentNode[gr]._isOutsideThisEl(e.target),!t&&da(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function R(){Rr=sr(wr),Or=sr(wr,s.draggable),br({sortable:h,name:"change",toEl:r,newIndex:Rr,newDraggableIndex:Or,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Hi(document,"mousemove",this._onTouchMove),Hi(document,"touchmove",this._onTouchMove),Hi(document,"pointermove",this._onTouchMove),Hi(document,"dragover",da),Hi(document,"mousemove",da),Hi(document,"touchmove",da)},_offUpEvents:function(){var e=this.el.ownerDocument;Hi(e,"mouseup",this._onDrop),Hi(e,"touchend",this._onDrop),Hi(e,"pointerup",this._onDrop),Hi(e,"touchcancel",this._onDrop),Hi(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;Rr=sr(wr),Or=sr(wr,o.draggable),Ir("drop",this,{evt:e}),_r=wr&&wr.parentNode,Rr=sr(wr),Or=sr(wr,o.draggable),ha.eventCanceled||(Jr=!1,Qr=!1,Xr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),va(this.cloneId),va(this._dragStartId),this.nativeDraggable&&(Hi(document,"drop",this),Hi(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fi&&$i(document.body,"user-select",""),$i(wr,"transform",""),e&&(Vr&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),Er&&Er.parentNode&&Er.parentNode.removeChild(Er),(Sr===_r||Dr&&"clone"!==Dr.lastPutMode)&&xr&&xr.parentNode&&xr.parentNode.removeChild(xr),wr&&(this.nativeDraggable&&Hi(wr,"dragend",this),ma(wr),wr.style["will-change"]="",Vr&&!Jr&&Qi(wr,Dr?Dr.options.ghostClass:this.options.ghostClass,!1),Qi(wr,this.options.chosenClass,!1),br({sortable:this,name:"unchoose",toEl:_r,newIndex:null,newDraggableIndex:null,originalEvent:e}),Sr!==_r?(Rr>=0&&(br({rootEl:_r,name:"add",toEl:_r,fromEl:Sr,originalEvent:e}),br({sortable:this,name:"remove",toEl:_r,originalEvent:e}),br({rootEl:_r,name:"sort",toEl:_r,fromEl:Sr,originalEvent:e}),br({sortable:this,name:"sort",toEl:_r,originalEvent:e})),Dr&&Dr.save()):Rr!==Gr&&Rr>=0&&(br({sortable:this,name:"update",toEl:_r,originalEvent:e}),br({sortable:this,name:"sort",toEl:_r,originalEvent:e})),ha.active&&(null!=Rr&&-1!==Rr||(Rr=Gr,Or=Tr),br({sortable:this,name:"end",toEl:_r,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Ir("nulling",this),Sr=wr=_r=Er=Mr=xr=Pr=kr=jr=Ur=Vr=Rr=Or=Gr=Tr=Wr=qr=Dr=Lr=ha.dragged=ha.ghost=ha.clone=ha.active=null,ta.forEach((function(e){e.checked=!0})),ta.length=Nr=Br=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":wr&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,n=0,i=o.length,r=this.options;n=0;n--)this._layersOrder[n].layer.setZIndex(0)}e.prototype.setMap.call(this,t)},t.prototype.addLayer=function(e,t){var o=this,n=this.getMap();if(t=t||{},e){var i=e.gpLayerId;if(void 0!==i){var r=!1;if(n.getLayers().forEach((function(e){e.gpLayerId===i&&(r=!0)})),r)if(this._layers[i]){for(var a in t)t.hasOwnProperty(a)&&(this._layers[i][a]=t[a]);if(t.title){var s=document.getElementById(this._addUID("GPname_ID_"+i));s&&(s.innerHTML=t.title,s.title=t.description||t.title)}var l=document.getElementById(this._addUID("GPinfo_ID_"+i));if(!document.getElementById(this._addUID("GPinfo_ID_"+i))&&t.description){var c=document.getElementById(this._addUID("GPadvancedTools_ID_"+i));c&&c.appendChild(this._createAdvancedToolInformationElement({id:i}))}l&&"GPlayerInfoOpened"===l.className&&(document.getElementById(this._addUID("GPlayerInfoPanel")).className="GPlayerInfoPanelClosed",l.className="GPlayerInfo")}else{var u=this.getLayerInfo(e)||{},d=e.getOpacity(),p=e.getVisible(),h=this.isInRange(e,n),g={layer:e,id:i,opacity:null!=d?d:1,visibility:null==p||p,inRange:null==h||h,title:null!=t.title?t.title:u._title||i,description:t.description||u._description||null,legends:t.legends||u._legends||[],metadata:t.metadata||u._metadata||[],quicklookUrl:t.quicklookUrl||u._quicklookUrl||null};this._layers[i]=g;var m=this._createLayerDiv(g);this._layers[i].div=m,e.getZIndex&&0!==e.getZIndex()&&void 0!==e.getZIndex()||e._forceNullzIndex?this._updateLayersOrder():(this._layersOrder.unshift(g),this._lastZIndex++,e.setZIndex(this._lastZIndex),this._layerListContainer.insertBefore(m,this._layerListContainer.firstChild)),this._listeners.updateLayerOpacity=e.on("change:opacity",(function(e){return o._updateLayerOpacity(e)})),this._listeners.updateLayerVisibility=e.on("change:visible",(function(e){return o._updateLayerVisibility(e)})),null==this._layers[i].onZIndexChangeEvent&&(this._layers[i].onZIndexChangeEvent=e.on("change:zIndex",(function(){return o._updateLayersOrder()})))}else ja.log("[ERROR] LayerSwitcher:addLayer - configuration cannot be set for ",e," layer (layer is not in map.getLayers() )")}else ja.trace("[WARN] LayerSwitcher:addLayer - configuration cannot be set for this layer (layer id not found)",e)}else ja.log("[ERROR] LayerSwitcher:addLayer - missing layer parameter")},t.prototype.removeLayer=function(e){if(e){Object(Oo.unByKey)(this._listeners.updateLayerOpacity),Object(Oo.unByKey)(this._listeners.updateLayerVisibility),ja.trace(e);var t=e.gpLayerId,o=document.getElementById(this._addUID("GPlayersList")),n=document.getElementById(this._addUID("GPinfo_ID_"+t));n&&"GPlayerInfoOpened"===n.className&&(document.getElementById(this._addUID("GPlayerInfoPanel")).className="GPlayerInfoPanelClosed",n.className="GPlayerInfo");var i=document.getElementById(this._addUID("GPlayerSwitcher_ID_"+t));i&&o.removeChild(i);var r=Math.abs(e.getZIndex()-this._lastZIndex);this._layersOrder.splice(r,1),this._lastZIndex--;for(var a=this._layersOrder,s=0;s1&&(t=1),t<0&&(t=0);var o=e.target.gpLayerId,n=document.getElementById(this._addUID("GPopacityValueDiv_ID_"+o));n&&(n.value=Math.round(100*t));var i=document.getElementById(this._addUID("GPopacityValue_ID_"+o));i&&(i.innerHTML=Math.round(100*t)+"%")},t.prototype._onVisibilityLayerClick=function(e){var t=e.target.id,o=ki.index(t);this._layers[o].layer.setVisible(e.target.checked)},t.prototype._updateLayerVisibility=function(e){var t=e.target.getVisible(),o=e.target.gpLayerId,n=document.getElementById(this._addUID("GPvisibility_ID_"+o));n&&(n.checked=t)},t.prototype._updateLayersOrder=function(){var e=this,t=this.getMap();if(t){var o,n;for(var i in this._layersIndex={},t.getLayers().forEach((function(t){n=t.gpLayerId,Object(Oo.unByKey)(e._layers[n].onZIndexChangeEvent),e._layers[n].onZIndexChangeEvent=null,o=null,void 0!==t.getZIndex&&(o=t.getZIndex(),e._layersIndex[o]&&Array.isArray(e._layersIndex[o])||(e._layersIndex[o]=[]),e._layersIndex[o].push(e._layers[n]))})),this._lastZIndex=0,this._layersOrder=[],this._layersIndex)if(this._layersIndex.hasOwnProperty(i))for(var r=this._layersIndex[i],a=0;ae.getMaxResolution()||o-1},t.prototype._activateEvent=function(e,t){var o=this,n=function(e){ht.onDisplayFeatureInfo(e,o)};"contextmenu"===e?t.getViewport().addEventListener(e,n):t.on(e,n),this._eventsHandler[e]=n,this._events[e]=!0},t.prototype._deactivateEvent=function(e,t){"contextmenu"===e?t.getViewport().removeEventListener(e,this._eventsHandler[e]):t.un(e,this._eventsHandler[e]),delete this._eventsHandler[e],this._events[e]=!1},t.prototype._updateEvents=function(e){e||(e=this.getMap());for(var t=[],o=0;o=0?this._activateEvent(i,e):this._events[i]&&t.indexOf(i)<0&&this._deactivateEvent(i,e)},t.prototype._clearEvents=function(){var e=this.getMap();for(var t in this._events)this._events[t]&&this._deactivateEvent(t,e)},t.prototype._hasLayer=function(e){for(var t=0;t