azure-maps-control 3.0.0-preview.3 → 3.0.0-preview.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -265,7 +265,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
265
265
  return Url;
266
266
  }());
267
267
 
268
- var version = "3.0.0-preview.3";
268
+ var version = "3.0.0-preview.4";
269
269
 
270
270
  /**
271
271
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -306,27 +306,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
306
306
  var tooltipContent = document.createElement("span");
307
307
  tooltipContent.innerText = name;
308
308
  tooltipContent.classList.add('tooltiptext');
309
- // mimics default edge tooltip theming
310
- if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
311
- tooltipContent.classList.add('dark');
312
- }
313
- var themeQuery = window.matchMedia('(prefers-color-scheme: dark)');
314
- var onThemeChange = function (e) {
315
- var isDark = e.matches;
316
- if (isDark && !tooltipContent.classList.contains('dark')) {
317
- tooltipContent.classList.add('dark');
318
- }
319
- else if (!isDark && tooltipContent.classList.contains('dark')) {
320
- tooltipContent.classList.remove('dark');
321
- }
322
- };
323
- // compensate for browsers where MediaQueryList is not derived from EventTarget (pre iOS13 Safari)
324
- if (typeof themeQuery.addEventListener === 'function') {
325
- themeQuery.addEventListener('change', function (e) { return onThemeChange(e); });
326
- }
327
- else if (typeof themeQuery.addListener === 'function') {
328
- themeQuery.addListener(function (e) { return onThemeChange(e); });
329
- }
330
309
  if (navigator.userAgent.indexOf('Edg') != -1) {
331
310
  tooltipContent.classList.add('edge');
332
311
  }
@@ -4514,6 +4493,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4514
4493
  }
4515
4494
  });
4516
4495
  container.addEventListener("focusout", function (event) {
4496
+ if (event.target === currStyleButton) {
4497
+ // on focusout from reveal button -> reset the tabIndex on the styleOpsGrid elements that could have been set to -1 on esc key press
4498
+ Array.from(styleOpsGrid.children).forEach(function (e) { return e.removeAttribute('tabIndex'); });
4499
+ }
4517
4500
  if (!(event.relatedTarget instanceof Node && container.contains(event.relatedTarget))) {
4518
4501
  _this.hasFocus = false;
4519
4502
  if (!_this.hasMouse) {
@@ -4528,6 +4511,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4528
4511
  if (event.keyCode === 27) {
4529
4512
  event.stopPropagation();
4530
4513
  currStyleButton.focus();
4514
+ Array.from(styleOpsGrid.children).forEach(function (e) { return e.setAttribute('tabIndex', "-1"); });
4531
4515
  if (container.classList.contains(StyleControl.Css.inUse)) {
4532
4516
  container.classList.remove(StyleControl.Css.inUse);
4533
4517
  styleOpsGrid.classList.add("hidden-accessible-element");
@@ -4793,8 +4777,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
4793
4777
  * The type of traffic flow to display:
4794
4778
  * <p>"none" is to display no traffic flow data</p>
4795
4779
  * <p>"relative" is the speed of the road relative to free-flow</p>
4796
- * <p>"absolute" is the absolute speed of the road</p>
4797
- * <p>"relative-delay" displays relative speed only where they differ from free-flow;
4780
+ * <p>@deprecated "absolute" is the absolute speed of the road</p>
4781
+ * <p>@deprecated "relative-delay" displays relative speed only where they differ from free-flow;
4798
4782
  * false to stop displaying the traffic flow.</p>
4799
4783
  * default `"none"``
4800
4784
  * @default "none"
@@ -10194,6 +10178,23 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10194
10178
  * @default 0.375
10195
10179
  */
10196
10180
  _this.tolerance = 0.375;
10181
+ /**
10182
+ * Minimum number of points necessary to form a cluster if clustering is enabled.
10183
+ * @default 2
10184
+ */
10185
+ _this.clusterMinPoints = 2;
10186
+ /**
10187
+ * 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.
10188
+ */
10189
+ _this.generateId = false;
10190
+ /**
10191
+ * A property to use as a feature id (for feature state). Either a property name, or an object of the form {<sourceLayer>: <propertyName>}.
10192
+ */
10193
+ _this.promoteId = undefined;
10194
+ /**
10195
+ * An expression for filtering features prior to processing them for rendering.
10196
+ */
10197
+ _this.filter = undefined;
10197
10198
  return _this;
10198
10199
  }
10199
10200
  return DataSourceOptions;
@@ -10235,19 +10236,24 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10235
10236
  * Get reference to Mapbox Map
10236
10237
  * @internal
10237
10238
  */
10238
- Source.prototype._setMap = function (map) {
10239
+ Source.prototype._setMap = function (map, shouldInvokeEvent) {
10240
+ if (shouldInvokeEvent === void 0) { shouldInvokeEvent = true; }
10239
10241
  if (map == null || map === undefined) {
10240
10242
  var temp = this.map;
10241
10243
  delete this.map;
10242
- this._invokeEvent("sourceremoved", this);
10243
- if (temp) {
10244
- temp.events.invoke("sourceremoved", this);
10244
+ if (shouldInvokeEvent) {
10245
+ this._invokeEvent("sourceremoved", this);
10246
+ if (temp) {
10247
+ temp.events.invoke("sourceremoved", this);
10248
+ }
10245
10249
  }
10246
10250
  }
10247
10251
  else {
10248
10252
  this.map = map;
10249
- this._invokeEvent("sourceadded", this);
10250
- this.map.events.invoke("sourceadded", this);
10253
+ if (shouldInvokeEvent) {
10254
+ this._invokeEvent("sourceadded", this);
10255
+ this.map.events.invoke("sourceadded", this);
10256
+ }
10251
10257
  }
10252
10258
  };
10253
10259
  return Source;
@@ -10561,13 +10567,38 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10561
10567
  tolerance: this.options.tolerance,
10562
10568
  lineMetrics: this.options.lineMetrics,
10563
10569
  clusterProperties: this.options.clusterProperties,
10564
- buffer: this.options.buffer
10570
+ buffer: this.options.buffer,
10571
+ clusterMinPoints: this.options.clusterMinPoints,
10572
+ generateId: this.options.generateId,
10573
+ promoteId: this.options.promoteId,
10574
+ filter: this.options.filter
10565
10575
  };
10566
10576
  if (typeof this.options.clusterMaxZoom === "number") {
10567
10577
  geoJsonSource.clusterMaxZoom = this.options.clusterMaxZoom;
10568
10578
  }
10569
10579
  return geoJsonSource;
10570
10580
  };
10581
+ DataSource.prototype._isDeepEqual = function (other) {
10582
+ if (this.constructor !== other.constructor) {
10583
+ return false;
10584
+ }
10585
+ var source = this._buildSource();
10586
+ var otherSource = other._buildSource();
10587
+ return source.type === otherSource.type &&
10588
+ // no data comparison since it is costly and not needed. If geojson data is different, but other source properties are same, we treat it as an update.
10589
+ //source.data === otherSource.data &&
10590
+ source.maxzoom === otherSource.maxzoom &&
10591
+ source.cluster === otherSource.cluster &&
10592
+ source.clusterRadius === otherSource.clusterRadius &&
10593
+ source.tolerance === otherSource.tolerance &&
10594
+ source.lineMetrics === otherSource.lineMetrics &&
10595
+ JSON.stringify(source.clusterProperties) === JSON.stringify(otherSource.clusterProperties) &&
10596
+ source.buffer === otherSource.buffer &&
10597
+ source.clusterMinPoints === otherSource.clusterMinPoints &&
10598
+ source.generateId === otherSource.generateId &&
10599
+ source.promoteId === otherSource.promoteId &&
10600
+ source.filter === otherSource.filter;
10601
+ };
10571
10602
  /**
10572
10603
  * @internal
10573
10604
  */
@@ -10849,19 +10880,262 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10849
10880
  }
10850
10881
  return vectorSource;
10851
10882
  };
10883
+ /**
10884
+ * @internal
10885
+ */
10886
+ VectorTileSource.prototype._isDeepEqual = function (other) {
10887
+ if (this.constructor !== other.constructor) {
10888
+ return false;
10889
+ }
10890
+ var source = this._buildSource();
10891
+ var otherSource = other._buildSource();
10892
+ return source.type === otherSource.type &&
10893
+ source.url === otherSource.url &&
10894
+ ((source.tiles === undefined && otherSource.tiles === undefined) ||
10895
+ (source.tiles && otherSource.tiles && source.tiles.length === otherSource.tiles.length && source.tiles.every(function (value, idx) { return value === otherSource.tiles[idx]; }))) &&
10896
+ source.minzoom === otherSource.minzoom &&
10897
+ source.maxzoom === otherSource.maxzoom &&
10898
+ source.bounds === otherSource.bounds &&
10899
+ source.attribution === otherSource.attribution &&
10900
+ source.promoteId === otherSource.promoteId &&
10901
+ source.scheme === otherSource.scheme;
10902
+ };
10852
10903
  return VectorTileSource;
10853
10904
  }(Source));
10854
10905
 
10906
+ var __extends$p = (window && window.__extends) || (function () {
10907
+ var extendStatics = function (d, b) {
10908
+ extendStatics = Object.setPrototypeOf ||
10909
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10910
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10911
+ return extendStatics(d, b);
10912
+ };
10913
+ return function (d, b) {
10914
+ if (typeof b !== "function" && b !== null)
10915
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10916
+ extendStatics(d, b);
10917
+ function __() { this.constructor = d; }
10918
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10919
+ };
10920
+ })();
10921
+ /**
10922
+ * Used to represent the canvas source wrapper.
10923
+ * This is not meant to be exposed publicly yet
10924
+ * @private
10925
+ */
10926
+ var CanvasSource = /** @class */ (function (_super) {
10927
+ __extends$p(CanvasSource, _super);
10928
+ /**
10929
+ * Constructs a source from the contents of a layer resource file.
10930
+ * @param id The source's id.
10931
+ * @param sourceDef Canvas source specification.
10932
+ * @param options Unused for now
10933
+ */
10934
+ function CanvasSource(id, sourceDef, options) {
10935
+ var _this = _super.call(this, id) || this;
10936
+ _this.source = sourceDef;
10937
+ return _this;
10938
+ }
10939
+ /**
10940
+ * @internal
10941
+ */
10942
+ CanvasSource.prototype._isDeepEqual = function (other) {
10943
+ if (this.constructor !== other.constructor) {
10944
+ return false;
10945
+ }
10946
+ var source = this.source;
10947
+ var otherSource = other.source;
10948
+ return source.type === otherSource.type
10949
+ && source.canvas === otherSource.canvas
10950
+ && JSON.stringify(source.coordinates) === JSON.stringify(otherSource.coordinates)
10951
+ && source.animate === otherSource.animate;
10952
+ };
10953
+ /**
10954
+ * @internal
10955
+ */
10956
+ CanvasSource.prototype._buildSource = function () {
10957
+ return this.source;
10958
+ };
10959
+ return CanvasSource;
10960
+ }(Source));
10961
+
10962
+ var __extends$q = (window && window.__extends) || (function () {
10963
+ var extendStatics = function (d, b) {
10964
+ extendStatics = Object.setPrototypeOf ||
10965
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10966
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10967
+ return extendStatics(d, b);
10968
+ };
10969
+ return function (d, b) {
10970
+ if (typeof b !== "function" && b !== null)
10971
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
10972
+ extendStatics(d, b);
10973
+ function __() { this.constructor = d; }
10974
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10975
+ };
10976
+ })();
10977
+ /**
10978
+ * Used to represent an unkown source wrapper.
10979
+ * This is not meant to be exposed publicly yet
10980
+ * @private
10981
+ */
10982
+ var UnknownSource = /** @class */ (function (_super) {
10983
+ __extends$q(UnknownSource, _super);
10984
+ /**
10985
+ * Constructs a source from the contents of a layer resource file.
10986
+ * @param id The source's id.
10987
+ * @param sourceDef source specification.
10988
+ * @param options Unused for now
10989
+ */
10990
+ function UnknownSource(id, sourceDef, options) {
10991
+ var _this = _super.call(this, id) || this;
10992
+ _this.source = sourceDef;
10993
+ return _this;
10994
+ }
10995
+ /**
10996
+ * @internal
10997
+ */
10998
+ UnknownSource.prototype._isDeepEqual = function (other) {
10999
+ if (this.constructor !== other.constructor) {
11000
+ return false;
11001
+ }
11002
+ var source = this.source;
11003
+ var otherSource = other.source;
11004
+ return source.type === otherSource.type;
11005
+ };
11006
+ /**
11007
+ * @internal
11008
+ */
11009
+ UnknownSource.prototype._buildSource = function () {
11010
+ return this.source;
11011
+ };
11012
+ return UnknownSource;
11013
+ }(Source));
11014
+
11015
+ var __extends$r = (window && window.__extends) || (function () {
11016
+ var extendStatics = function (d, b) {
11017
+ extendStatics = Object.setPrototypeOf ||
11018
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11019
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11020
+ return extendStatics(d, b);
11021
+ };
11022
+ return function (d, b) {
11023
+ if (typeof b !== "function" && b !== null)
11024
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11025
+ extendStatics(d, b);
11026
+ function __() { this.constructor = d; }
11027
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11028
+ };
11029
+ })();
11030
+ /**
11031
+ * Used to represent the image source wrapper.
11032
+ * This is not meant to be exposed publicly yet
11033
+ * @private
11034
+ */
11035
+ var ImageSource = /** @class */ (function (_super) {
11036
+ __extends$r(ImageSource, _super);
11037
+ /**
11038
+ * Constructs a source from the contents of a layer resource file.
11039
+ * @param id The source's id.
11040
+ * @param sourceDef Image source specification.
11041
+ * @param options Unused for now
11042
+ */
11043
+ function ImageSource(id, sourceDef, options) {
11044
+ var _this = _super.call(this, id) || this;
11045
+ _this.source = sourceDef;
11046
+ return _this;
11047
+ }
11048
+ /**
11049
+ * @internal
11050
+ */
11051
+ ImageSource.prototype._isDeepEqual = function (other) {
11052
+ if (this.constructor !== other.constructor) {
11053
+ return false;
11054
+ }
11055
+ var source = this.source;
11056
+ var otherSource = other.source;
11057
+ return source.type === otherSource.type
11058
+ && JSON.stringify(source.coordinates) === JSON.stringify(otherSource.coordinates)
11059
+ && source.url === otherSource.url;
11060
+ };
11061
+ /**
11062
+ * @internal
11063
+ */
11064
+ ImageSource.prototype._buildSource = function () {
11065
+ return this.source;
11066
+ };
11067
+ return ImageSource;
11068
+ }(Source));
11069
+
11070
+ var __extends$s = (window && window.__extends) || (function () {
11071
+ var extendStatics = function (d, b) {
11072
+ extendStatics = Object.setPrototypeOf ||
11073
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11074
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11075
+ return extendStatics(d, b);
11076
+ };
11077
+ return function (d, b) {
11078
+ if (typeof b !== "function" && b !== null)
11079
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11080
+ extendStatics(d, b);
11081
+ function __() { this.constructor = d; }
11082
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11083
+ };
11084
+ })();
11085
+ /**
11086
+ * Used to represent the video source wrapper.
11087
+ * This is not meant to be exposed publicly yet
11088
+ * @private
11089
+ */
11090
+ var VideoSource = /** @class */ (function (_super) {
11091
+ __extends$s(VideoSource, _super);
11092
+ /**
11093
+ * Constructs a source from the contents of a layer resource file.
11094
+ * @param id The source's id.
11095
+ * @param sourceDef Video source specification.
11096
+ * @param options Unused for now
11097
+ */
11098
+ function VideoSource(id, sourceDef, options) {
11099
+ var _this = _super.call(this, id) || this;
11100
+ _this.source = sourceDef;
11101
+ return _this;
11102
+ }
11103
+ /**
11104
+ * @internal
11105
+ */
11106
+ VideoSource.prototype._isDeepEqual = function (other) {
11107
+ if (this.constructor !== other.constructor) {
11108
+ return false;
11109
+ }
11110
+ var source = this.source;
11111
+ var otherSource = other.source;
11112
+ return source.type === otherSource.type
11113
+ && JSON.stringify(source.coordinates) === JSON.stringify(otherSource.coordinates)
11114
+ && source.urls === otherSource.urls;
11115
+ };
11116
+ /**
11117
+ * @internal
11118
+ */
11119
+ VideoSource.prototype._buildSource = function () {
11120
+ return this.source;
11121
+ };
11122
+ return VideoSource;
11123
+ }(Source));
11124
+
10855
11125
 
10856
11126
 
10857
11127
  var index$4 = /*#__PURE__*/Object.freeze({
10858
11128
  __proto__: null,
10859
11129
  Source: Source,
10860
11130
  DataSource: DataSource,
10861
- VectorTileSource: VectorTileSource
11131
+ VectorTileSource: VectorTileSource,
11132
+ CanvasSource: CanvasSource,
11133
+ ImageSource: ImageSource,
11134
+ VideoSource: VideoSource,
11135
+ UnknownSource: UnknownSource
10862
11136
  });
10863
11137
 
10864
- var __extends$p = (window && window.__extends) || (function () {
11138
+ var __extends$t = (window && window.__extends) || (function () {
10865
11139
  var extendStatics = function (d, b) {
10866
11140
  extendStatics = Object.setPrototypeOf ||
10867
11141
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -10880,7 +11154,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10880
11154
  * Abstract class for other layer classes to extend.
10881
11155
  */
10882
11156
  var Layer = /** @class */ (function (_super) {
10883
- __extends$p(Layer, _super);
11157
+ __extends$t(Layer, _super);
10884
11158
  function Layer(id) {
10885
11159
  var _this =
10886
11160
  // Assign an random id using a UUID if none was specified.
@@ -10985,7 +11259,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
10985
11259
  return Layer;
10986
11260
  }(EventEmitter));
10987
11261
 
10988
- var __extends$q = (window && window.__extends) || (function () {
11262
+ var __extends$u = (window && window.__extends) || (function () {
10989
11263
  var extendStatics = function (d, b) {
10990
11264
  extendStatics = Object.setPrototypeOf ||
10991
11265
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11004,7 +11278,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11004
11278
  * A base class which all other layer options inherit from.
11005
11279
  */
11006
11280
  var LayerOptions = /** @class */ (function (_super) {
11007
- __extends$q(LayerOptions, _super);
11281
+ __extends$u(LayerOptions, _super);
11008
11282
  function LayerOptions() {
11009
11283
  var _this = _super !== null && _super.apply(this, arguments) || this;
11010
11284
  /**
@@ -11051,7 +11325,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11051
11325
  return LayerOptions;
11052
11326
  }(Options));
11053
11327
 
11054
- var __extends$r = (window && window.__extends) || (function () {
11328
+ var __extends$v = (window && window.__extends) || (function () {
11055
11329
  var extendStatics = function (d, b) {
11056
11330
  extendStatics = Object.setPrototypeOf ||
11057
11331
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11070,7 +11344,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11070
11344
  * Options used when rendering Point objects in a BubbleLayer.
11071
11345
  */
11072
11346
  var BubbleLayerOptions = /** @class */ (function (_super) {
11073
- __extends$r(BubbleLayerOptions, _super);
11347
+ __extends$v(BubbleLayerOptions, _super);
11074
11348
  function BubbleLayerOptions() {
11075
11349
  var _this = _super !== null && _super.apply(this, arguments) || this;
11076
11350
  /**
@@ -11140,7 +11414,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11140
11414
  return BubbleLayerOptions;
11141
11415
  }(LayerOptions));
11142
11416
 
11143
- var __extends$s = (window && window.__extends) || (function () {
11417
+ var __extends$w = (window && window.__extends) || (function () {
11144
11418
  var extendStatics = function (d, b) {
11145
11419
  extendStatics = Object.setPrototypeOf ||
11146
11420
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11159,7 +11433,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11159
11433
  * Renders Point objects as scalable circles (bubbles).
11160
11434
  */
11161
11435
  var BubbleLayer = /** @class */ (function (_super) {
11162
- __extends$s(BubbleLayer, _super);
11436
+ __extends$w(BubbleLayer, _super);
11163
11437
  /**
11164
11438
  * Constructs a new BubbleLayer.
11165
11439
  * @param source The id or instance of a data source which the layer will render.
@@ -11269,7 +11543,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11269
11543
  return BubbleLayer;
11270
11544
  }(Layer));
11271
11545
 
11272
- var __extends$t = (window && window.__extends) || (function () {
11546
+ var __extends$x = (window && window.__extends) || (function () {
11273
11547
  var extendStatics = function (d, b) {
11274
11548
  extendStatics = Object.setPrototypeOf ||
11275
11549
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11288,7 +11562,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11288
11562
  * Options used when rendering Point objects in a HeatMapLayer.
11289
11563
  */
11290
11564
  var HeatMapLayerOptions = /** @class */ (function (_super) {
11291
- __extends$t(HeatMapLayerOptions, _super);
11565
+ __extends$x(HeatMapLayerOptions, _super);
11292
11566
  function HeatMapLayerOptions() {
11293
11567
  var _this = _super !== null && _super.apply(this, arguments) || this;
11294
11568
  /**
@@ -11355,7 +11629,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11355
11629
  return HeatMapLayerOptions;
11356
11630
  }(LayerOptions));
11357
11631
 
11358
- var __extends$u = (window && window.__extends) || (function () {
11632
+ var __extends$y = (window && window.__extends) || (function () {
11359
11633
  var extendStatics = function (d, b) {
11360
11634
  extendStatics = Object.setPrototypeOf ||
11361
11635
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11374,7 +11648,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11374
11648
  * Represent the density of data using different colors (HeatMap).
11375
11649
  */
11376
11650
  var HeatMapLayer = /** @class */ (function (_super) {
11377
- __extends$u(HeatMapLayer, _super);
11651
+ __extends$y(HeatMapLayer, _super);
11378
11652
  /**
11379
11653
  * Constructs a new HeatMapLayer.
11380
11654
  * @param source The id or instance of a data source which the layer will render.
@@ -11478,7 +11752,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11478
11752
  return HeatMapLayer;
11479
11753
  }(Layer));
11480
11754
 
11481
- var __extends$v = (window && window.__extends) || (function () {
11755
+ var __extends$z = (window && window.__extends) || (function () {
11482
11756
  var extendStatics = function (d, b) {
11483
11757
  extendStatics = Object.setPrototypeOf ||
11484
11758
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11497,7 +11771,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11497
11771
  * Options used when rendering canvas, image, raster tile, and video layers
11498
11772
  */
11499
11773
  var MediaLayerOptions = /** @class */ (function (_super) {
11500
- __extends$v(MediaLayerOptions, _super);
11774
+ __extends$z(MediaLayerOptions, _super);
11501
11775
  function MediaLayerOptions() {
11502
11776
  var _this = _super !== null && _super.apply(this, arguments) || this;
11503
11777
  /**
@@ -11549,7 +11823,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11549
11823
  return MediaLayerOptions;
11550
11824
  }(LayerOptions));
11551
11825
 
11552
- var __extends$w = (window && window.__extends) || (function () {
11826
+ var __extends$A = (window && window.__extends) || (function () {
11553
11827
  var extendStatics = function (d, b) {
11554
11828
  extendStatics = Object.setPrototypeOf ||
11555
11829
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11568,7 +11842,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11568
11842
  * Options used when rendering Point objects in a ImageLayer.
11569
11843
  */
11570
11844
  var ImageLayerOptions = /** @class */ (function (_super) {
11571
- __extends$w(ImageLayerOptions, _super);
11845
+ __extends$A(ImageLayerOptions, _super);
11572
11846
  function ImageLayerOptions() {
11573
11847
  var _this = _super !== null && _super.apply(this, arguments) || this;
11574
11848
  /**
@@ -11598,7 +11872,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11598
11872
  return ImageLayerOptions;
11599
11873
  }(MediaLayerOptions));
11600
11874
 
11601
- var __extends$x = (window && window.__extends) || (function () {
11875
+ var __extends$B = (window && window.__extends) || (function () {
11602
11876
  var extendStatics = function (d, b) {
11603
11877
  extendStatics = Object.setPrototypeOf ||
11604
11878
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11618,7 +11892,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11618
11892
  * @internal
11619
11893
  */
11620
11894
  var SourceBuildingLayer = /** @class */ (function (_super) {
11621
- __extends$x(SourceBuildingLayer, _super);
11895
+ __extends$B(SourceBuildingLayer, _super);
11622
11896
  function SourceBuildingLayer() {
11623
11897
  return _super !== null && _super.apply(this, arguments) || this;
11624
11898
  }
@@ -11630,10 +11904,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11630
11904
  ids.add(this._getSourceId());
11631
11905
  return ids;
11632
11906
  };
11907
+ SourceBuildingLayer.prototype.onAdd = function (map) {
11908
+ _super.prototype.onAdd.call(this, map);
11909
+ };
11633
11910
  return SourceBuildingLayer;
11634
11911
  }(Layer));
11635
11912
 
11636
- var __extends$y = (window && window.__extends) || (function () {
11913
+ var __extends$C = (window && window.__extends) || (function () {
11637
11914
  var extendStatics = function (d, b) {
11638
11915
  extendStatics = Object.setPrototypeOf ||
11639
11916
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11652,7 +11929,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11652
11929
  * Overlays an image on the map with each corner anchored to a coordinate on the map. Also known as a ground or image overlay.
11653
11930
  */
11654
11931
  var ImageLayer = /** @class */ (function (_super) {
11655
- __extends$y(ImageLayer, _super);
11932
+ __extends$C(ImageLayer, _super);
11656
11933
  /**
11657
11934
  * Constructs a new ImageLayer.
11658
11935
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -11852,10 +12129,15 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11852
12129
  this.transform = Promise.resolve(new AffineTransform(corners, this.options.coordinates));
11853
12130
  }
11854
12131
  };
12132
+ ImageLayer.prototype._getSourceWrapper = function () {
12133
+ var sourceId = this._getSourceId();
12134
+ var source = this._buildSource();
12135
+ return new ImageSource(sourceId, source);
12136
+ };
11855
12137
  return ImageLayer;
11856
12138
  }(SourceBuildingLayer));
11857
12139
 
11858
- var __extends$z = (window && window.__extends) || (function () {
12140
+ var __extends$D = (window && window.__extends) || (function () {
11859
12141
  var extendStatics = function (d, b) {
11860
12142
  extendStatics = Object.setPrototypeOf ||
11861
12143
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11875,7 +12157,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11875
12157
  * LineString, MultiLineString, Polygon, and MultiPolygon objects in a line layer.
11876
12158
  */
11877
12159
  var LineLayerOptions = /** @class */ (function (_super) {
11878
- __extends$z(LineLayerOptions, _super);
12160
+ __extends$D(LineLayerOptions, _super);
11879
12161
  function LineLayerOptions() {
11880
12162
  var _this = _super !== null && _super.apply(this, arguments) || this;
11881
12163
  /**
@@ -11975,7 +12257,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
11975
12257
  return LineLayerOptions;
11976
12258
  }(LayerOptions));
11977
12259
 
11978
- var __extends$A = (window && window.__extends) || (function () {
12260
+ var __extends$E = (window && window.__extends) || (function () {
11979
12261
  var extendStatics = function (d, b) {
11980
12262
  extendStatics = Object.setPrototypeOf ||
11981
12263
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12006,7 +12288,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12006
12288
  * CirclePolygon, LineString, MultiLineString, Polygon, and MultiPolygon objects.
12007
12289
  */
12008
12290
  var LineLayer = /** @class */ (function (_super) {
12009
- __extends$A(LineLayer, _super);
12291
+ __extends$E(LineLayer, _super);
12010
12292
  /**
12011
12293
  * Constructs a new LineLayer.
12012
12294
  * @param source The id or instance of a data source which the layer will render.
@@ -12097,7 +12379,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12097
12379
  return LineLayer;
12098
12380
  }(Layer));
12099
12381
 
12100
- var __extends$B = (window && window.__extends) || (function () {
12382
+ var __extends$F = (window && window.__extends) || (function () {
12101
12383
  var extendStatics = function (d, b) {
12102
12384
  extendStatics = Object.setPrototypeOf ||
12103
12385
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12116,7 +12398,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12116
12398
  * Options used when rendering `Polygon` and `MultiPolygon` objects in a `PolygonExtrusionLayer`.
12117
12399
  */
12118
12400
  var PolygonExtrusionLayerOptions = /** @class */ (function (_super) {
12119
- __extends$B(PolygonExtrusionLayerOptions, _super);
12401
+ __extends$F(PolygonExtrusionLayerOptions, _super);
12120
12402
  function PolygonExtrusionLayerOptions() {
12121
12403
  var _this = _super !== null && _super.apply(this, arguments) || this;
12122
12404
  /**
@@ -12189,7 +12471,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12189
12471
  return PolygonExtrusionLayerOptions;
12190
12472
  }(LayerOptions));
12191
12473
 
12192
- var __extends$C = (window && window.__extends) || (function () {
12474
+ var __extends$G = (window && window.__extends) || (function () {
12193
12475
  var extendStatics = function (d, b) {
12194
12476
  extendStatics = Object.setPrototypeOf ||
12195
12477
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12219,7 +12501,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12219
12501
  * Renders extruded filled `Polygon` and `MultiPolygon` objects on the map.
12220
12502
  */
12221
12503
  var PolygonExtrusionLayer = /** @class */ (function (_super) {
12222
- __extends$C(PolygonExtrusionLayer, _super);
12504
+ __extends$G(PolygonExtrusionLayer, _super);
12223
12505
  /**
12224
12506
  * Constructs a new PolygonExtrusionLayer.
12225
12507
  * @param source The id or instance of a data source which the layer will render.
@@ -12307,7 +12589,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12307
12589
  return PolygonExtrusionLayer;
12308
12590
  }(Layer));
12309
12591
 
12310
- var __extends$D = (window && window.__extends) || (function () {
12592
+ var __extends$H = (window && window.__extends) || (function () {
12311
12593
  var extendStatics = function (d, b) {
12312
12594
  extendStatics = Object.setPrototypeOf ||
12313
12595
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12358,7 +12640,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12358
12640
  * Options used when rendering Polygon and MultiPolygon objects in a PolygonLayer.
12359
12641
  */
12360
12642
  var PolygonLayerOptions = /** @class */ (function (_super) {
12361
- __extends$D(PolygonLayerOptions, _super);
12643
+ __extends$H(PolygonLayerOptions, _super);
12362
12644
  function PolygonLayerOptions() {
12363
12645
  var _this = _super !== null && _super.apply(this, arguments) || this;
12364
12646
  /**
@@ -12436,7 +12718,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12436
12718
  return PolygonLayerOptions;
12437
12719
  }(LayerOptions));
12438
12720
 
12439
- var __extends$E = (window && window.__extends) || (function () {
12721
+ var __extends$I = (window && window.__extends) || (function () {
12440
12722
  var extendStatics = function (d, b) {
12441
12723
  extendStatics = Object.setPrototypeOf ||
12442
12724
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12455,7 +12737,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12455
12737
  * Renders filled Polygon and MultiPolygon objects on the map.
12456
12738
  */
12457
12739
  var PolygonLayer = /** @class */ (function (_super) {
12458
- __extends$E(PolygonLayer, _super);
12740
+ __extends$I(PolygonLayer, _super);
12459
12741
  /**
12460
12742
  * Constructs a new PolygonLayer.
12461
12743
  * @param source The id or instance of a data source which the layer will render.
@@ -12561,7 +12843,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12561
12843
  return PolygonLayer;
12562
12844
  }(Layer));
12563
12845
 
12564
- var __extends$F = (window && window.__extends) || (function () {
12846
+ var __extends$J = (window && window.__extends) || (function () {
12565
12847
  var extendStatics = function (d, b) {
12566
12848
  extendStatics = Object.setPrototypeOf ||
12567
12849
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12580,7 +12862,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12580
12862
  * Options used to customize the icons in a SymbolLayer
12581
12863
  */
12582
12864
  var IconOptions = /** @class */ (function (_super) {
12583
- __extends$F(IconOptions, _super);
12865
+ __extends$J(IconOptions, _super);
12584
12866
  function IconOptions() {
12585
12867
  var _this = _super !== null && _super.apply(this, arguments) || this;
12586
12868
  /**
@@ -12690,7 +12972,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12690
12972
  return IconOptions;
12691
12973
  }(Options));
12692
12974
 
12693
- var __extends$G = (window && window.__extends) || (function () {
12975
+ var __extends$K = (window && window.__extends) || (function () {
12694
12976
  var extendStatics = function (d, b) {
12695
12977
  extendStatics = Object.setPrototypeOf ||
12696
12978
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12709,7 +12991,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12709
12991
  * Options used to customize the text in a SymbolLayer
12710
12992
  */
12711
12993
  var TextOptions = /** @class */ (function (_super) {
12712
- __extends$G(TextOptions, _super);
12994
+ __extends$K(TextOptions, _super);
12713
12995
  function TextOptions() {
12714
12996
  var _this = _super !== null && _super.apply(this, arguments) || this;
12715
12997
  /**
@@ -12863,7 +13145,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12863
13145
  return TextOptions;
12864
13146
  }(Options));
12865
13147
 
12866
- var __extends$H = (window && window.__extends) || (function () {
13148
+ var __extends$L = (window && window.__extends) || (function () {
12867
13149
  var extendStatics = function (d, b) {
12868
13150
  extendStatics = Object.setPrototypeOf ||
12869
13151
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12882,7 +13164,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12882
13164
  * Options used when rendering geometries in a SymbolLayer.
12883
13165
  */
12884
13166
  var SymbolLayerOptions = /** @class */ (function (_super) {
12885
- __extends$H(SymbolLayerOptions, _super);
13167
+ __extends$L(SymbolLayerOptions, _super);
12886
13168
  function SymbolLayerOptions() {
12887
13169
  var _this = _super !== null && _super.apply(this, arguments) || this;
12888
13170
  /**
@@ -12940,7 +13222,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12940
13222
  return SymbolLayerOptions;
12941
13223
  }(LayerOptions));
12942
13224
 
12943
- var __extends$I = (window && window.__extends) || (function () {
13225
+ var __extends$M = (window && window.__extends) || (function () {
12944
13226
  var extendStatics = function (d, b) {
12945
13227
  extendStatics = Object.setPrototypeOf ||
12946
13228
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12971,7 +13253,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
12971
13253
  * Symbols can also be created for line and polygon data as well.
12972
13254
  */
12973
13255
  var SymbolLayer = /** @class */ (function (_super) {
12974
- __extends$I(SymbolLayer, _super);
13256
+ __extends$M(SymbolLayer, _super);
12975
13257
  /**
12976
13258
  * Constructs a new SymbolLayer.
12977
13259
  * @param source The id or instance of a data source which the layer will render.
@@ -13113,7 +13395,124 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13113
13395
  return SymbolLayer;
13114
13396
  }(Layer));
13115
13397
 
13116
- var __extends$J = (window && window.__extends) || (function () {
13398
+ var __extends$N = (window && window.__extends) || (function () {
13399
+ var extendStatics = function (d, b) {
13400
+ extendStatics = Object.setPrototypeOf ||
13401
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
13402
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
13403
+ return extendStatics(d, b);
13404
+ };
13405
+ return function (d, b) {
13406
+ if (typeof b !== "function" && b !== null)
13407
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13408
+ extendStatics(d, b);
13409
+ function __() { this.constructor = d; }
13410
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13411
+ };
13412
+ })();
13413
+ var __assign$3 = (window && window.__assign) || function () {
13414
+ __assign$3 = Object.assign || function(t) {
13415
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
13416
+ s = arguments[i];
13417
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
13418
+ t[p] = s[p];
13419
+ }
13420
+ return t;
13421
+ };
13422
+ return __assign$3.apply(this, arguments);
13423
+ };
13424
+ /**
13425
+ * Used to represent the fundamental map source.
13426
+ * @private
13427
+ */
13428
+ var FundamentalMapSource = /** @class */ (function (_super) {
13429
+ __extends$N(FundamentalMapSource, _super);
13430
+ /**
13431
+ * Constructs a source from the contents of a layer resource file.
13432
+ * @param id The source's id.
13433
+ * @param sourceDef The sources entry of the resource file.
13434
+ * @param options The query parameters to add to the urls listed in the resource file.
13435
+ */
13436
+ function FundamentalMapSource(id, sourceDef, options) {
13437
+ var _this = _super.call(this, id) || this;
13438
+ _this.source = _this._modifySource(sourceDef, options);
13439
+ return _this;
13440
+ }
13441
+ /**
13442
+ * @internal
13443
+ */
13444
+ FundamentalMapSource.prototype._buildSource = function () {
13445
+ return this.source;
13446
+ };
13447
+ /**
13448
+ * @internal
13449
+ */
13450
+ FundamentalMapSource.prototype._isDeepEqual = function (other) {
13451
+ if (this.constructor !== other.constructor) {
13452
+ return false;
13453
+ }
13454
+ var source = this.source;
13455
+ var otherSource = other.source;
13456
+ var baseEqual = source.type === otherSource.type &&
13457
+ source.url === otherSource.url
13458
+ && ((source.tiles === undefined && otherSource.tiles === undefined) ||
13459
+ (source.tiles && otherSource.tiles && source.tiles.length === otherSource.tiles.length && source.tiles.every(function (value, idx) { return value === otherSource.tiles[idx]; })))
13460
+ && source.minzoom === otherSource.minzoom
13461
+ && source.maxzoom === otherSource.maxzoom
13462
+ && source.bounds === otherSource.bounds
13463
+ && source.attribution === otherSource.attribution;
13464
+ var rasterEqual = source.type !== "raster" || (source.type === "raster"
13465
+ && source.type === otherSource.type
13466
+ && source.tileSize === otherSource.tileSize
13467
+ && source.scheme === otherSource.scheme);
13468
+ var rasterDemEqual = source.type !== "raster-dem" || (source.type === "raster-dem"
13469
+ && source.type === otherSource.type
13470
+ && source.tileSize === otherSource.tileSize
13471
+ && source.encoding === otherSource.encoding);
13472
+ var vectorEqual = source.type !== "vector" || (source.type === "vector"
13473
+ && source.type === otherSource.type
13474
+ && source.promoteId === otherSource.promoteId
13475
+ && source.scheme === otherSource.scheme);
13476
+ return baseEqual && rasterEqual && rasterDemEqual && vectorEqual;
13477
+ };
13478
+ /**
13479
+ * Updates the source info to convert the tiles to url strings.
13480
+ * @param sourceDef The original source info.
13481
+ * @param options The query parameters to add to the tile urls.
13482
+ */
13483
+ FundamentalMapSource.prototype._modifySource = function (sourceDef, options) {
13484
+ if (sourceDef.tiles) {
13485
+ var tileStrings = sourceDef.tiles.map(function (tile) {
13486
+ if (typeof tile === "string") {
13487
+ return tile;
13488
+ }
13489
+ var tileUrl = new Url({
13490
+ domain: constants.domainPlaceHolder,
13491
+ path: tile.path,
13492
+ queryParams: __assign$3(__assign$3({}, options), tile.queryParams)
13493
+ });
13494
+ return tileUrl.toString();
13495
+ });
13496
+ sourceDef.tiles = tileStrings;
13497
+ }
13498
+ else if (sourceDef.url) {
13499
+ sourceDef.url = (typeof sourceDef.url === "string") ?
13500
+ sourceDef.url :
13501
+ new Url({
13502
+ domain: constants.domainPlaceHolder,
13503
+ path: sourceDef.url.path,
13504
+ queryParams: __assign$3(__assign$3({}, options), sourceDef.url.queryParams)
13505
+ }).toString();
13506
+ }
13507
+ else {
13508
+ throw new Error("Source definition must define a TileJSON 'url' or a 'tiles' array.");
13509
+ }
13510
+ return sourceDef;
13511
+ };
13512
+ return FundamentalMapSource;
13513
+ }(Source));
13514
+
13515
+ var __extends$O = (window && window.__extends) || (function () {
13117
13516
  var extendStatics = function (d, b) {
13118
13517
  extendStatics = Object.setPrototypeOf ||
13119
13518
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13132,7 +13531,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13132
13531
  * Options used when rendering raster tiled images in a TileLayer.
13133
13532
  */
13134
13533
  var TileLayerOptions = /** @class */ (function (_super) {
13135
- __extends$J(TileLayerOptions, _super);
13534
+ __extends$O(TileLayerOptions, _super);
13136
13535
  function TileLayerOptions() {
13137
13536
  var _this = _super !== null && _super.apply(this, arguments) || this;
13138
13537
  /**
@@ -13188,7 +13587,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13188
13587
  return TileLayerOptions;
13189
13588
  }(MediaLayerOptions));
13190
13589
 
13191
- var __extends$K = (window && window.__extends) || (function () {
13590
+ var __extends$P = (window && window.__extends) || (function () {
13192
13591
  var extendStatics = function (d, b) {
13193
13592
  extendStatics = Object.setPrototypeOf ||
13194
13593
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13203,8 +13602,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13203
13602
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13204
13603
  };
13205
13604
  })();
13206
- var __assign$3 = (window && window.__assign) || function () {
13207
- __assign$3 = Object.assign || function(t) {
13605
+ var __assign$4 = (window && window.__assign) || function () {
13606
+ __assign$4 = Object.assign || function(t) {
13208
13607
  for (var s, i = 1, n = arguments.length; i < n; i++) {
13209
13608
  s = arguments[i];
13210
13609
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -13212,7 +13611,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13212
13611
  }
13213
13612
  return t;
13214
13613
  };
13215
- return __assign$3.apply(this, arguments);
13614
+ return __assign$4.apply(this, arguments);
13216
13615
  };
13217
13616
  var __values$8 = (window && window.__values) || function(o) {
13218
13617
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
@@ -13229,7 +13628,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13229
13628
  * Renders raster tiled images on top of the map tiles.
13230
13629
  */
13231
13630
  var TileLayer = /** @class */ (function (_super) {
13232
- __extends$K(TileLayer, _super);
13631
+ __extends$P(TileLayer, _super);
13233
13632
  /**
13234
13633
  * Constructs a new TileLayer.
13235
13634
  * @param options The options for the tile layer.
@@ -13291,7 +13690,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13291
13690
  * @internal
13292
13691
  */
13293
13692
  TileLayer.prototype._buildLayers = function () {
13294
- var layer = __assign$3(__assign$3({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
13693
+ var layer = __assign$4(__assign$4({ id: this.id, type: "raster", source: this._getSourceId(), layout: {
13295
13694
  visibility: this.options.visible ? "visible" : "none"
13296
13695
  }, paint: {
13297
13696
  "raster-contrast": this.options.contrast,
@@ -13360,7 +13759,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13360
13759
  };
13361
13760
  }
13362
13761
  }
13363
- return __assign$3({ type: "raster", bounds: this.options.bounds, maxzoom: this.options.maxSourceZoom, minzoom: this.options.minSourceZoom, scheme: this.options.isTMS ? "tms" : "xyz", tileSize: this.options.tileSize }, (tiles && { tiles: tiles }));
13762
+ return __assign$4({ type: "raster", bounds: this.options.bounds, maxzoom: this.options.maxSourceZoom, minzoom: this.options.minSourceZoom, scheme: this.options.isTMS ? "tms" : "xyz", tileSize: this.options.tileSize }, (tiles && { tiles: tiles }));
13364
13763
  };
13365
13764
  /**
13366
13765
  * Gets the id of the source to be paired with this layer.
@@ -13369,10 +13768,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13369
13768
  TileLayer.prototype._getSourceId = function () {
13370
13769
  return this.getId() + "-RasterSource";
13371
13770
  };
13771
+ TileLayer.prototype._getSourceWrapper = function () {
13772
+ var sourceId = this._getSourceId();
13773
+ var source = this._buildSource();
13774
+ return new FundamentalMapSource(sourceId, {
13775
+ name: sourceId,
13776
+ tiles: source.tiles,
13777
+ type: source.type,
13778
+ url: source.url
13779
+ });
13780
+ };
13372
13781
  return TileLayer;
13373
13782
  }(SourceBuildingLayer));
13374
13783
 
13375
- var __extends$L = (window && window.__extends) || (function () {
13784
+ var __extends$Q = (window && window.__extends) || (function () {
13376
13785
  var extendStatics = function (d, b) {
13377
13786
  extendStatics = Object.setPrototypeOf ||
13378
13787
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13391,7 +13800,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13391
13800
  * Options used to render graphics in a WebGLLayer.
13392
13801
  */
13393
13802
  var WebGLLayerOptions = /** @class */ (function (_super) {
13394
- __extends$L(WebGLLayerOptions, _super);
13803
+ __extends$Q(WebGLLayerOptions, _super);
13395
13804
  function WebGLLayerOptions() {
13396
13805
  var _this = _super !== null && _super.apply(this, arguments) || this;
13397
13806
  /**
@@ -13403,7 +13812,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13403
13812
  return WebGLLayerOptions;
13404
13813
  }(LayerOptions));
13405
13814
 
13406
- var __extends$M = (window && window.__extends) || (function () {
13815
+ var __extends$R = (window && window.__extends) || (function () {
13407
13816
  var extendStatics = function (d, b) {
13408
13817
  extendStatics = Object.setPrototypeOf ||
13409
13818
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13422,7 +13831,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13422
13831
  * Enables custom rendering logic with access to the WebGL context of the map.
13423
13832
  */
13424
13833
  var WebGLLayer = /** @class */ (function (_super) {
13425
- __extends$M(WebGLLayer, _super);
13834
+ __extends$R(WebGLLayer, _super);
13426
13835
  /**
13427
13836
  * Constructs a new WebGLLayer.
13428
13837
  * @param id The id of the layer. If not specified a random one will be generated.
@@ -13652,7 +14061,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13652
14061
 
13653
14062
  var isElement_1 = isElement;
13654
14063
 
13655
- var __extends$N = (window && window.__extends) || (function () {
14064
+ var __extends$S = (window && window.__extends) || (function () {
13656
14065
  var extendStatics = function (d, b) {
13657
14066
  extendStatics = Object.setPrototypeOf ||
13658
14067
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13671,7 +14080,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13671
14080
  * The options for a popup.
13672
14081
  */
13673
14082
  var PopupOptions = /** @class */ (function (_super) {
13674
- __extends$N(PopupOptions, _super);
14083
+ __extends$S(PopupOptions, _super);
13675
14084
  function PopupOptions() {
13676
14085
  var _this = _super !== null && _super.apply(this, arguments) || this;
13677
14086
  /**
@@ -13740,7 +14149,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13740
14149
  return PopupOptions;
13741
14150
  }(Options));
13742
14151
 
13743
- var __extends$O = (window && window.__extends) || (function () {
14152
+ var __extends$T = (window && window.__extends) || (function () {
13744
14153
  var extendStatics = function (d, b) {
13745
14154
  extendStatics = Object.setPrototypeOf ||
13746
14155
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13775,7 +14184,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
13775
14184
  * An information window anchored at a specified position on a map.
13776
14185
  */
13777
14186
  var Popup = /** @class */ (function (_super) {
13778
- __extends$O(Popup, _super);
14187
+ __extends$T(Popup, _super);
13779
14188
  /**
13780
14189
  * Constructs a Popup object and initializes it with the specified options.
13781
14190
  * @param options The options for the popup.
@@ -14246,7 +14655,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14246
14655
  return Popup;
14247
14656
  }(EventEmitter));
14248
14657
 
14249
- var __extends$P = (window && window.__extends) || (function () {
14658
+ var __extends$U = (window && window.__extends) || (function () {
14250
14659
  var extendStatics = function (d, b) {
14251
14660
  extendStatics = Object.setPrototypeOf ||
14252
14661
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14265,7 +14674,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14265
14674
  * Options for rendering an HtmlMarker object
14266
14675
  */
14267
14676
  var HtmlMarkerOptions = /** @class */ (function (_super) {
14268
- __extends$P(HtmlMarkerOptions, _super);
14677
+ __extends$U(HtmlMarkerOptions, _super);
14269
14678
  function HtmlMarkerOptions() {
14270
14679
  var _this = _super !== null && _super.apply(this, arguments) || this;
14271
14680
  /**
@@ -14343,7 +14752,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14343
14752
  return HtmlMarkerOptions;
14344
14753
  }(Options));
14345
14754
 
14346
- var __extends$Q = (window && window.__extends) || (function () {
14755
+ var __extends$V = (window && window.__extends) || (function () {
14347
14756
  var extendStatics = function (d, b) {
14348
14757
  extendStatics = Object.setPrototypeOf ||
14349
14758
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -14362,7 +14771,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
14362
14771
  * This class wraps an HTML element that can be displayed on the map.
14363
14772
  */
14364
14773
  var HtmlMarker = /** @class */ (function (_super) {
14365
- __extends$Q(HtmlMarker, _super);
14774
+ __extends$V(HtmlMarker, _super);
14366
14775
  /**
14367
14776
  * Constructs a new HtmlMarker.
14368
14777
  * @param options The options for the HtmlMarker.
@@ -15087,7 +15496,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15087
15496
  return UserAgent;
15088
15497
  }());
15089
15498
 
15090
- var __extends$R = (window && window.__extends) || (function () {
15499
+ var __extends$W = (window && window.__extends) || (function () {
15091
15500
  var extendStatics = function (d, b) {
15092
15501
  extendStatics = Object.setPrototypeOf ||
15093
15502
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -15153,7 +15562,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15153
15562
  * Options for specifying how the map control should authenticate with the Azure Maps services.
15154
15563
  */
15155
15564
  var AuthenticationOptions = /** @class */ (function (_super) {
15156
- __extends$R(AuthenticationOptions, _super);
15565
+ __extends$W(AuthenticationOptions, _super);
15157
15566
  function AuthenticationOptions() {
15158
15567
  var _this = _super !== null && _super.apply(this, arguments) || this;
15159
15568
  /**
@@ -15754,7 +16163,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15754
16163
  return Media;
15755
16164
  }());
15756
16165
 
15757
- var __extends$S = (window && window.__extends) || (function () {
16166
+ var __extends$X = (window && window.__extends) || (function () {
15758
16167
  var extendStatics = function (d, b) {
15759
16168
  extendStatics = Object.setPrototypeOf ||
15760
16169
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -15773,7 +16182,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15773
16182
  * The options for a CopyrightControl object.
15774
16183
  */
15775
16184
  var CopyrightControlOptions = /** @class */ (function (_super) {
15776
- __extends$S(CopyrightControlOptions, _super);
16185
+ __extends$X(CopyrightControlOptions, _super);
15777
16186
  function CopyrightControlOptions() {
15778
16187
  var _this = _super !== null && _super.apply(this, arguments) || this;
15779
16188
  /**
@@ -15802,7 +16211,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15802
16211
  return CopyrightControlOptions;
15803
16212
  }(Options));
15804
16213
 
15805
- var __extends$T = (window && window.__extends) || (function () {
16214
+ var __extends$Y = (window && window.__extends) || (function () {
15806
16215
  var extendStatics = function (d, b) {
15807
16216
  extendStatics = Object.setPrototypeOf ||
15808
16217
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -15821,7 +16230,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
15821
16230
  * @private
15822
16231
  */
15823
16232
  var CopyrightControl = /** @class */ (function (_super) {
15824
- __extends$T(CopyrightControl, _super);
16233
+ __extends$Y(CopyrightControl, _super);
15825
16234
  function CopyrightControl(options) {
15826
16235
  var _this = _super.call(this) || this;
15827
16236
  _this.textAttribution = function (options) {
@@ -16009,8 +16418,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16009
16418
  return ErrorHandler;
16010
16419
  }());
16011
16420
 
16012
- var __assign$4 = (window && window.__assign) || function () {
16013
- __assign$4 = Object.assign || function(t) {
16421
+ var __assign$5 = (window && window.__assign) || function () {
16422
+ __assign$5 = Object.assign || function(t) {
16014
16423
  for (var s, i = 1, n = arguments.length; i < n; i++) {
16015
16424
  s = arguments[i];
16016
16425
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -16018,7 +16427,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16018
16427
  }
16019
16428
  return t;
16020
16429
  };
16021
- return __assign$4.apply(this, arguments);
16430
+ return __assign$5.apply(this, arguments);
16022
16431
  };
16023
16432
  /**
16024
16433
  * @private
@@ -16033,7 +16442,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16033
16442
  var urlOptions = {
16034
16443
  domain: domain,
16035
16444
  path: "search/address/reverse/json",
16036
- queryParams: __assign$4({ "api-version": "1.0", "language": options.style.language, "limit": 1, "query": normalizeLatitude(options.position[1]) + "," + normalizeLongitude(options.position[0]) }, (options.style.view && { view: options.style.view }))
16445
+ queryParams: __assign$5({ "api-version": "1.0", "language": options.style.language, "limit": 1, "query": normalizeLatitude(options.position[1]) + "," + normalizeLongitude(options.position[0]) }, (options.style.view && { view: options.style.view }))
16037
16446
  };
16038
16447
  return new Url(((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(urlOptions)) || urlOptions).get();
16039
16448
  };
@@ -16111,11 +16520,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16111
16520
  // Translations for oceans: https://en.wikipedia.org/wiki/List_of_alternative_names_for_oceans
16112
16521
  this._preloadedCache.add(lang);
16113
16522
  var oceanConfig = {
16114
- source: ["Ocean label", "Ocean name"],
16523
+ source: [],
16115
16524
  labelType: "water",
16116
16525
  minZoom: 0,
16117
16526
  radius: 3950000,
16118
- polygonSources: ["Ocean", "Ocean or sea"]
16527
+ polygonSources: [] // doesn't affect the cache key
16119
16528
  };
16120
16529
  var shortLang = lang;
16121
16530
  var index = shortLang.indexOf("-");
@@ -16211,6 +16620,11 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16211
16620
  }
16212
16621
  return ar;
16213
16622
  };
16623
+ var __spreadArray$2 = (window && window.__spreadArray) || function (to, from) {
16624
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
16625
+ to[j] = from[i];
16626
+ return to;
16627
+ };
16214
16628
  /**
16215
16629
  * This class analyizes the current view of a map and provides a description for use by accessibilty tools.
16216
16630
  * TODO: Use services when in GeoPol regions. (Kasmir) or when user region sensitive.
@@ -16269,7 +16683,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16269
16683
  * Vector Tile source layers: https://developer.tomtom.com/maps-api/maps-api-documentation-vector/tile
16270
16684
  */
16271
16685
  // Configuration for label extraction.
16272
- this._lableConfig = [
16686
+ this._labelConfig = [
16273
16687
  // Water labels
16274
16688
  {
16275
16689
  source: ["Ocean label", "Ocean name"],
@@ -16403,10 +16817,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16403
16817
  polygonSources: ["Reservation"]
16404
16818
  }
16405
16819
  ];
16406
- // Name of all polygon layers in which we want to do an intersection test with.
16407
- this._polygonStyleLayer = ["National or state park", "National park", "Reservation", "Airport",
16408
- "Runway", "Stadium", "University", "Zoo", "Shopping", "Hospital", "Amusement park", "Ocean", "Sea",
16409
- "Ocean or sea"];
16410
16820
  // Name of all label types to cache.
16411
16821
  this._labelCache = new Set(["city", "state", "country", "water", "majorPoi"]);
16412
16822
  // Name of all road source layers.
@@ -16670,6 +17080,18 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16670
17080
  _this._updateCam(true);
16671
17081
  // Find the id of the vector tile source being used.
16672
17082
  _this._baseVectorTileSourceId = MapViewDescriptor._baseVectorTileSourceIds.find(function (id) { return _this._map.sources.getById(id); });
17083
+ // Set the label config based on the vector tile source.
17084
+ if (_this._baseVectorTileSourceId === "bing-mvt") {
17085
+ _this._labelConfig = MapViewDescriptor._labelConfigBing;
17086
+ _this._roadLayers = MapViewDescriptor._roadLayersBing;
17087
+ }
17088
+ // Derive polygon layers from the label config.
17089
+ _this._polygonStyleLayer = _this._labelConfig.reduce(function (acc, cur) {
17090
+ if (cur.polygonSources) {
17091
+ acc.push.apply(acc, __spreadArray$2([], __read$6(cur.polygonSources)));
17092
+ }
17093
+ return acc;
17094
+ }, []);
16673
17095
  // Add event listeners directly to mapbox because we will be using custom event data.
16674
17096
  // We don't automatically forward all properties of a mapbox event, so the custom data would be lost.
16675
17097
  var baseMap = _this._map._getMap();
@@ -16779,8 +17201,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16779
17201
  }
16780
17202
  intersectingType_1 = null;
16781
17203
  // Loop through each label config and try and retireve details about the map view.
16782
- for (i = 0, cnt = this._lableConfig.length; i < cnt; i++) {
16783
- layerInfo = this._lableConfig[i];
17204
+ for (i = 0, cnt = this._labelConfig.length; i < cnt; i++) {
17205
+ layerInfo = this._labelConfig[i];
16784
17206
  if (cam.zoom >= layerInfo.minZoom) {
16785
17207
  // If the layer info has polygons defined, do an intersection test for matching.
16786
17208
  if (layerInfo.polygonSources) {
@@ -16880,7 +17302,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16880
17302
  // Loop through the label sources.
16881
17303
  for (var i = 0, len = layerInfo.source.length; i < len; i++) {
16882
17304
  var params = {
16883
- sourceLayer: layerInfo.source[i]
17305
+ sourceLayer: layerInfo.source[i],
17306
+ filter: ["has", "name"]
16884
17307
  };
16885
17308
  var labels = this._map._getMap().querySourceFeatures(this._baseVectorTileSourceId, params);
16886
17309
  var closest = null;
@@ -16957,21 +17380,22 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
16957
17380
  }
16958
17381
  if (closestRoad) {
16959
17382
  // Capture state and country codes from the closest road to ensure we have the most accurate values.
16960
- if (!info.country) {
17383
+ // Note: bing tiles do not have country_code and country_subdivision in road features.
17384
+ if (!info.country && closestRoad.properties.country_code) {
16961
17385
  info.country = closestRoad.properties.country_code;
16962
17386
  info.countryDis = 0;
16963
17387
  MapViewDescriptor._labelCache.cache(info.country, {
16964
- source: ["Country name"],
17388
+ source: [],
16965
17389
  labelType: "country",
16966
17390
  radius: 5000,
16967
17391
  minZoom: 0
16968
17392
  }, cPoint.geometry.coordinates, lang);
16969
17393
  }
16970
- if (!info.state) {
17394
+ if (!info.state && closestRoad.properties.country_subdivision) {
16971
17395
  info.state = closestRoad.properties.country_subdivision;
16972
17396
  info.stateDis = 0;
16973
17397
  MapViewDescriptor._labelCache.cache(info.state, {
16974
- source: ["State name"],
17398
+ source: [],
16975
17399
  labelType: "state",
16976
17400
  radius: 5000,
16977
17401
  minZoom: 4
@@ -17226,7 +17650,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17226
17650
  if (a.country) {
17227
17651
  info.country = a.country;
17228
17652
  MapViewDescriptor._labelCache.cache(info.country, {
17229
- source: ["Country name"],
17653
+ source: [],
17230
17654
  labelType: "country",
17231
17655
  radius: 5000,
17232
17656
  minZoom: 0
@@ -17235,7 +17659,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17235
17659
  if (a.countrySubdivision) {
17236
17660
  info.state = a.countrySubdivision;
17237
17661
  MapViewDescriptor._labelCache.cache(info.state, {
17238
- source: ["State name"],
17662
+ source: [],
17239
17663
  labelType: "state",
17240
17664
  radius: 5000,
17241
17665
  minZoom: 4
@@ -17244,7 +17668,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17244
17668
  if (a.municipality) {
17245
17669
  info.city = a.municipality;
17246
17670
  MapViewDescriptor._labelCache.cache(info.state, {
17247
- source: ["Small city"],
17671
+ source: [],
17248
17672
  labelType: "city",
17249
17673
  radius: 1000,
17250
17674
  minZoom: 10
@@ -17279,6 +17703,116 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17279
17703
  };
17280
17704
  // Ids of vector tile sources for different style APIs.
17281
17705
  MapViewDescriptor._baseVectorTileSourceIds = ["microsoft.base", "vectorTiles", "bing-mvt"];
17706
+ // Configuration for label extraction of Bing tiles.
17707
+ MapViewDescriptor._labelConfigBing = [
17708
+ // Water labels
17709
+ {
17710
+ source: ["water_feature"],
17711
+ labelType: "water",
17712
+ minZoom: 0,
17713
+ radius: 3950000,
17714
+ polygonSources: ["generic_water_fill"]
17715
+ },
17716
+ {
17717
+ source: ["water_feature"],
17718
+ labelType: "water",
17719
+ minZoom: 3,
17720
+ radius: 1000000,
17721
+ polygonSources: ["generic_water_fill"]
17722
+ },
17723
+ // Country labels
17724
+ {
17725
+ source: ["country_region"],
17726
+ labelType: "country",
17727
+ minZoom: 0,
17728
+ maxZoom: 5,
17729
+ radius: 300000
17730
+ },
17731
+ // State labels
17732
+ {
17733
+ source: ["admin_division1"],
17734
+ labelType: "state",
17735
+ minZoom: 4,
17736
+ maxZoom: 7,
17737
+ radius: 300000
17738
+ },
17739
+ // City labels
17740
+ {
17741
+ source: ["populated_place"],
17742
+ labelType: "city",
17743
+ minZoom: 8,
17744
+ radius: 40000
17745
+ },
17746
+ // Neighbourhood labels
17747
+ {
17748
+ source: ["neighborhood"],
17749
+ labelType: "neighbourhood",
17750
+ minZoom: 12,
17751
+ radius: 6000
17752
+ },
17753
+ // POI labels
17754
+ {
17755
+ source: ["amusement_park"],
17756
+ labelType: "poi",
17757
+ minZoom: 14,
17758
+ radius: 2000,
17759
+ polygonSources: ["amusement_park_fill"]
17760
+ },
17761
+ {
17762
+ source: ["hospital"],
17763
+ labelType: "poi",
17764
+ minZoom: 14,
17765
+ radius: 1000,
17766
+ polygonSources: ["hospital_fill"]
17767
+ },
17768
+ {
17769
+ source: ["shopping_center"],
17770
+ labelType: "poi",
17771
+ minZoom: 14,
17772
+ radius: 1000,
17773
+ polygonSources: ["shopping_center_fill"]
17774
+ },
17775
+ {
17776
+ source: ["stadium"],
17777
+ labelType: "poi",
17778
+ minZoom: 14,
17779
+ radius: 1000,
17780
+ polygonSources: ["stadium_fill"]
17781
+ },
17782
+ {
17783
+ source: ["higher_education_facility", "school"],
17784
+ labelType: "poi",
17785
+ minZoom: 14,
17786
+ radius: 1000,
17787
+ polygonSources: ["higher_education_facility_fill", "school_fill"]
17788
+ },
17789
+ {
17790
+ source: ["zoo"],
17791
+ labelType: "poi",
17792
+ minZoom: 14,
17793
+ radius: 1000,
17794
+ polygonSources: ["zoo_fill"]
17795
+ },
17796
+ // Major Poi labels
17797
+ {
17798
+ source: ["airport", "airport_terminal"],
17799
+ labelType: "majorPoi",
17800
+ minZoom: 11,
17801
+ radius: 3000,
17802
+ polygonSources: ["airport_terminal_fill", "airport_fill-merged7", "airport_runway_fill"]
17803
+ },
17804
+ {
17805
+ source: ["reserve"],
17806
+ labelType: "majorPoi",
17807
+ minZoom: 7,
17808
+ radius: 15000,
17809
+ polygonSources: ["generic_reserve_fill", "land_cover_forest_fill"]
17810
+ }
17811
+ ];
17812
+ // Name of all road source layers of Bing tiles.
17813
+ MapViewDescriptor._roadLayersBing = new Set([
17814
+ "road"
17815
+ ]);
17282
17816
  return MapViewDescriptor;
17283
17817
  }());
17284
17818
 
@@ -17453,7 +17987,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17453
17987
  return FlowServiceDelegate;
17454
17988
  }());
17455
17989
 
17456
- var __extends$U = (window && window.__extends) || (function () {
17990
+ var __extends$Z = (window && window.__extends) || (function () {
17457
17991
  var extendStatics = function (d, b) {
17458
17992
  extendStatics = Object.setPrototypeOf ||
17459
17993
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -17472,7 +18006,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17472
18006
  * @private
17473
18007
  */
17474
18008
  var Incident = /** @class */ (function (_super) {
17475
- __extends$U(Incident, _super);
18009
+ __extends$Z(Incident, _super);
17476
18010
  function Incident(data, point, localizedStrings) {
17477
18011
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
17478
18012
  var _this = this;
@@ -17967,7 +18501,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17967
18501
  return IncidentServiceDelegate;
17968
18502
  }());
17969
18503
 
17970
- var __extends$V = (window && window.__extends) || (function () {
18504
+ var __extends$_ = (window && window.__extends) || (function () {
17971
18505
  var extendStatics = function (d, b) {
17972
18506
  extendStatics = Object.setPrototypeOf ||
17973
18507
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -17986,7 +18520,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
17986
18520
  * The options for enabling/disabling user interaction with the map.
17987
18521
  */
17988
18522
  var UserInteractionOptions = /** @class */ (function (_super) {
17989
- __extends$V(UserInteractionOptions, _super);
18523
+ __extends$_(UserInteractionOptions, _super);
17990
18524
  function UserInteractionOptions() {
17991
18525
  var _this = _super !== null && _super.apply(this, arguments) || this;
17992
18526
  /**
@@ -21037,7 +21571,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21037
21571
  }
21038
21572
  return ar;
21039
21573
  };
21040
- var __spreadArray$2 = (window && window.__spreadArray) || function (to, from) {
21574
+ var __spreadArray$3 = (window && window.__spreadArray) || function (to, from) {
21041
21575
  for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
21042
21576
  to[j] = from[i];
21043
21577
  return to;
@@ -21055,7 +21589,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21055
21589
  'data-azure-maps-attribution-order',
21056
21590
  'data-azure-maps-attribution-dynamic'
21057
21591
  ];
21058
- var allowedAttributionAttributes = __spreadArray$2([
21592
+ var allowedAttributionAttributes = __spreadArray$3([
21059
21593
  'href'
21060
21594
  ], __read$7(attributionRuleAttributes));
21061
21595
  var AttributionRuleProxy = /** @class */ (function () {
@@ -21280,7 +21814,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21280
21814
  };
21281
21815
  AttributionRuleProxy.prototype.applyAttributionResponse = function (attributions) {
21282
21816
  var _this = this;
21283
- var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return __spreadArray$2(__spreadArray$2([], __read$7(flat)), __read$7(copyrights)); }, []);
21817
+ var copyrights = attributions.map(function (resp) { return resp.copyrights || []; }).reduce(function (flat, copyrights) { return __spreadArray$3(__spreadArray$3([], __read$7(flat)), __read$7(copyrights)); }, []);
21284
21818
  if (copyrights.length == 0) {
21285
21819
  // no attribution for a provided tileset/bbox/z
21286
21820
  return;
@@ -21345,7 +21879,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21345
21879
  }
21346
21880
  return ar;
21347
21881
  };
21348
- var __spreadArray$3 = (window && window.__spreadArray) || function (to, from) {
21882
+ var __spreadArray$4 = (window && window.__spreadArray) || function (to, from) {
21349
21883
  for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
21350
21884
  to[j] = from[i];
21351
21885
  return to;
@@ -21466,10 +22000,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21466
22000
  }, function () { return document.createElement('span'); });
21467
22001
  });
21468
22002
  var registeredRuleSet = new Set(Object.values(registeredRules));
21469
- var redundantRules = new Set(__spreadArray$3([], __read$8(allRules)).filter(function (rule) { return !registeredRuleSet.has(rule); }));
21470
- var redundantElements = new Set(__spreadArray$3([], __read$8(redundantRules)).map(function (rule) { return rule.getElement(); }));
22003
+ var redundantRules = new Set(__spreadArray$4([], __read$8(allRules)).filter(function (rule) { return !registeredRuleSet.has(rule); }));
22004
+ var redundantElements = new Set(__spreadArray$4([], __read$8(redundantRules)).map(function (rule) { return rule.getElement(); }));
21471
22005
  // eject redundant rules associated elements altogether
21472
- __spreadArray$3([], __read$8(redundantElements)).filter(function (elem) { return elem.parentElement !== null; })
22006
+ __spreadArray$4([], __read$8(redundantElements)).filter(function (elem) { return elem.parentElement !== null; })
21473
22007
  .forEach(function (elem) { return elem.parentElement.removeChild(elem); });
21474
22008
  _this.rules = Object.values(registeredRules);
21475
22009
  var attributionsToApply = attributions
@@ -21505,7 +22039,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21505
22039
  var visibleTextNodes = function (elem) {
21506
22040
  return Array.from(elem.style.display != 'none' ? elem.children : [])
21507
22041
  .map(function (elem) { return visibleTextNodes(elem); })
21508
- .reduce(function (flattened, nodes) { return __spreadArray$3(__spreadArray$3([], __read$8(flattened)), __read$8(nodes)); }, Array.from(elem.style.display != 'none' ? elem.childNodes : []).filter(function (node) { return node.nodeType == node.TEXT_NODE; }));
22042
+ .reduce(function (flattened, nodes) { return __spreadArray$4(__spreadArray$4([], __read$8(flattened)), __read$8(nodes)); }, Array.from(elem.style.display != 'none' ? elem.childNodes : []).filter(function (node) { return node.nodeType == node.TEXT_NODE; }));
21509
22043
  };
21510
22044
  var newRenderContext = _this.virtualContext.cloneNode(true);
21511
22045
  var visibleNodes = visibleTextNodes(newRenderContext);
@@ -21520,7 +22054,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21520
22054
  // }
21521
22055
  // });
21522
22056
  // strip all predefined keywords
21523
- visibleNodes.forEach(function (node) { return node.textContent = __spreadArray$3([], __read$8(attributionFilters)).reduce(function (target, filter) { return target.replace(filter, '').trim(); }, node.textContent); });
22057
+ visibleNodes.forEach(function (node) { return node.textContent = __spreadArray$4([], __read$8(attributionFilters)).reduce(function (target, filter) { return target.replace(filter, '').trim(); }, node.textContent); });
21524
22058
  // strip year from each node
21525
22059
  // visibleNodes.forEach(node => node.textContent = node.textContent.replace(copyrightYearPattern, '').trim());
21526
22060
  // deduplicate attribution text
@@ -21609,21 +22143,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21609
22143
  return extendStatics(d, b);
21610
22144
  };
21611
22145
 
21612
- function __extends$W(d, b) {
22146
+ function __extends$$(d, b) {
21613
22147
  extendStatics(d, b);
21614
22148
  function __() { this.constructor = d; }
21615
22149
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21616
22150
  }
21617
22151
 
21618
- var __assign$5 = function() {
21619
- __assign$5 = Object.assign || function __assign(t) {
22152
+ var __assign$6 = function() {
22153
+ __assign$6 = Object.assign || function __assign(t) {
21620
22154
  for (var s, i = 1, n = arguments.length; i < n; i++) {
21621
22155
  s = arguments[i];
21622
22156
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
21623
22157
  }
21624
22158
  return t;
21625
22159
  };
21626
- return __assign$5.apply(this, arguments);
22160
+ return __assign$6.apply(this, arguments);
21627
22161
  };
21628
22162
 
21629
22163
  function __rest(s, e) {
@@ -21723,21 +22257,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
21723
22257
  return extendStatics$1(d, b);
21724
22258
  };
21725
22259
 
21726
- function __extends$X(d, b) {
22260
+ function __extends$10(d, b) {
21727
22261
  extendStatics$1(d, b);
21728
22262
  function __() { this.constructor = d; }
21729
22263
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
21730
22264
  }
21731
22265
 
21732
- var __assign$6 = function() {
21733
- __assign$6 = Object.assign || function __assign(t) {
22266
+ var __assign$7 = function() {
22267
+ __assign$7 = Object.assign || function __assign(t) {
21734
22268
  for (var s, i = 1, n = arguments.length; i < n; i++) {
21735
22269
  s = arguments[i];
21736
22270
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
21737
22271
  }
21738
22272
  return t;
21739
22273
  };
21740
- return __assign$6.apply(this, arguments);
22274
+ return __assign$7.apply(this, arguments);
21741
22275
  };
21742
22276
 
21743
22277
  function __awaiter$4(thisArg, _arguments, P, generator) {
@@ -22192,7 +22726,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
22192
22726
  * General error class thrown by the MSAL.js library.
22193
22727
  */
22194
22728
  var AuthError = /** @class */ (function (_super) {
22195
- __extends$X(AuthError, _super);
22729
+ __extends$10(AuthError, _super);
22196
22730
  function AuthError(errorCode, errorMessage, suberror) {
22197
22731
  var _this = this;
22198
22732
  var errorString = errorMessage ? errorCode + ": " + errorMessage : errorCode;
@@ -22510,7 +23044,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
22510
23044
  * Error thrown when there is an error in the client code running on the browser.
22511
23045
  */
22512
23046
  var ClientAuthError = /** @class */ (function (_super) {
22513
- __extends$X(ClientAuthError, _super);
23047
+ __extends$10(ClientAuthError, _super);
22514
23048
  function ClientAuthError(errorCode, errorMessage) {
22515
23049
  var _this = _super.call(this, errorCode, errorMessage) || this;
22516
23050
  _this.name = "ClientAuthError";
@@ -23392,7 +23926,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
23392
23926
  * Error thrown when there is an error in configuration of the MSAL.js library.
23393
23927
  */
23394
23928
  var ClientConfigurationError = /** @class */ (function (_super) {
23395
- __extends$X(ClientConfigurationError, _super);
23929
+ __extends$10(ClientConfigurationError, _super);
23396
23930
  function ClientConfigurationError(errorCode, errorMessage) {
23397
23931
  var _this = _super.call(this, errorCode, errorMessage) || this;
23398
23932
  _this.name = "ClientConfigurationError";
@@ -24847,7 +25381,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
24847
25381
  return CacheManager;
24848
25382
  }());
24849
25383
  var DefaultStorageClass = /** @class */ (function (_super) {
24850
- __extends$X(DefaultStorageClass, _super);
25384
+ __extends$10(DefaultStorageClass, _super);
24851
25385
  function DefaultStorageClass() {
24852
25386
  return _super !== null && _super.apply(this, arguments) || this;
24853
25387
  }
@@ -25017,17 +25551,17 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25017
25551
  */
25018
25552
  function buildClientConfiguration(_a) {
25019
25553
  var userAuthOptions = _a.authOptions, userSystemOptions = _a.systemOptions, userLoggerOption = _a.loggerOptions, storageImplementation = _a.storageInterface, networkImplementation = _a.networkInterface, cryptoImplementation = _a.cryptoInterface, clientCredentials = _a.clientCredentials, libraryInfo = _a.libraryInfo, telemetry = _a.telemetry, serverTelemetryManager = _a.serverTelemetryManager, persistencePlugin = _a.persistencePlugin, serializableCache = _a.serializableCache;
25020
- var loggerOptions = __assign$6(__assign$6({}, DEFAULT_LOGGER_IMPLEMENTATION), userLoggerOption);
25554
+ var loggerOptions = __assign$7(__assign$7({}, DEFAULT_LOGGER_IMPLEMENTATION), userLoggerOption);
25021
25555
  return {
25022
25556
  authOptions: buildAuthOptions(userAuthOptions),
25023
- systemOptions: __assign$6(__assign$6({}, DEFAULT_SYSTEM_OPTIONS), userSystemOptions),
25557
+ systemOptions: __assign$7(__assign$7({}, DEFAULT_SYSTEM_OPTIONS), userSystemOptions),
25024
25558
  loggerOptions: loggerOptions,
25025
25559
  storageInterface: storageImplementation || new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION),
25026
25560
  networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
25027
25561
  cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
25028
25562
  clientCredentials: clientCredentials || DEFAULT_CLIENT_CREDENTIALS,
25029
- libraryInfo: __assign$6(__assign$6({}, DEFAULT_LIBRARY_INFO), libraryInfo),
25030
- telemetry: __assign$6(__assign$6({}, DEFAULT_TELEMETRY_OPTIONS), telemetry),
25563
+ libraryInfo: __assign$7(__assign$7({}, DEFAULT_LIBRARY_INFO), libraryInfo),
25564
+ telemetry: __assign$7(__assign$7({}, DEFAULT_TELEMETRY_OPTIONS), telemetry),
25031
25565
  serverTelemetryManager: serverTelemetryManager || null,
25032
25566
  persistencePlugin: persistencePlugin || null,
25033
25567
  serializableCache: serializableCache || null,
@@ -25038,7 +25572,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25038
25572
  * @param authOptions
25039
25573
  */
25040
25574
  function buildAuthOptions(authOptions) {
25041
- return __assign$6({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
25575
+ return __assign$7({ clientCapabilities: [], azureCloudOptions: DEFAULT_AZURE_CLOUD_OPTIONS, skipAuthorityMetadataCache: false }, authOptions);
25042
25576
  }
25043
25577
 
25044
25578
  /*! @azure/msal-common v9.0.1 2022-12-07 */
@@ -25051,7 +25585,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25051
25585
  * Error thrown when there is an error with the server code, for example, unavailability.
25052
25586
  */
25053
25587
  var ServerError = /** @class */ (function (_super) {
25054
- __extends$X(ServerError, _super);
25588
+ __extends$10(ServerError, _super);
25055
25589
  function ServerError(errorCode, errorMessage, subError) {
25056
25590
  var _this = _super.call(this, errorCode, errorMessage, subError) || this;
25057
25591
  _this.name = "ServerError";
@@ -25796,7 +26330,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25796
26330
  * }
25797
26331
  */
25798
26332
  var IdTokenEntity = /** @class */ (function (_super) {
25799
- __extends$X(IdTokenEntity, _super);
26333
+ __extends$10(IdTokenEntity, _super);
25800
26334
  function IdTokenEntity() {
25801
26335
  return _super !== null && _super.apply(this, arguments) || this;
25802
26336
  }
@@ -25917,7 +26451,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
25917
26451
  * }
25918
26452
  */
25919
26453
  var AccessTokenEntity = /** @class */ (function (_super) {
25920
- __extends$X(AccessTokenEntity, _super);
26454
+ __extends$10(AccessTokenEntity, _super);
25921
26455
  function AccessTokenEntity() {
25922
26456
  return _super !== null && _super.apply(this, arguments) || this;
25923
26457
  }
@@ -26026,7 +26560,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26026
26560
  * }
26027
26561
  */
26028
26562
  var RefreshTokenEntity = /** @class */ (function (_super) {
26029
- __extends$X(RefreshTokenEntity, _super);
26563
+ __extends$10(RefreshTokenEntity, _super);
26030
26564
  function RefreshTokenEntity() {
26031
26565
  return _super !== null && _super.apply(this, arguments) || this;
26032
26566
  }
@@ -26105,7 +26639,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26105
26639
  * Error thrown when user interaction is required.
26106
26640
  */
26107
26641
  var InteractionRequiredAuthError = /** @class */ (function (_super) {
26108
- __extends$X(InteractionRequiredAuthError, _super);
26642
+ __extends$10(InteractionRequiredAuthError, _super);
26109
26643
  function InteractionRequiredAuthError(errorCode, errorMessage, subError) {
26110
26644
  var _this = _super.call(this, errorCode, errorMessage, subError) || this;
26111
26645
  _this.name = "InteractionRequiredAuthError";
@@ -26555,7 +27089,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26555
27089
  resourceRequestMethod = request.resourceRequestMethod, resourceRequestUri = request.resourceRequestUri, shrClaims = request.shrClaims, shrNonce = request.shrNonce;
26556
27090
  resourceUrlString = (resourceRequestUri) ? new UrlString(resourceRequestUri) : undefined;
26557
27091
  resourceUrlComponents = resourceUrlString === null || resourceUrlString === void 0 ? void 0 : resourceUrlString.getUrlComponents();
26558
- return [4 /*yield*/, this.cryptoUtils.signJwt(__assign$6({ at: payload, ts: TimeUtils.nowSeconds(), m: resourceRequestMethod === null || resourceRequestMethod === void 0 ? void 0 : resourceRequestMethod.toUpperCase(), u: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.HostNameAndPort, nonce: shrNonce || this.cryptoUtils.createNewGuid(), p: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.AbsolutePath, q: (resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.QueryString) ? [[], resourceUrlComponents.QueryString] : undefined, client_claims: shrClaims || undefined }, claims), keyId, request.correlationId)];
27092
+ return [4 /*yield*/, this.cryptoUtils.signJwt(__assign$7({ at: payload, ts: TimeUtils.nowSeconds(), m: resourceRequestMethod === null || resourceRequestMethod === void 0 ? void 0 : resourceRequestMethod.toUpperCase(), u: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.HostNameAndPort, nonce: shrNonce || this.cryptoUtils.createNewGuid(), p: resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.AbsolutePath, q: (resourceUrlComponents === null || resourceUrlComponents === void 0 ? void 0 : resourceUrlComponents.QueryString) ? [[], resourceUrlComponents.QueryString] : undefined, client_claims: shrClaims || undefined }, claims), keyId, request.correlationId)];
26559
27093
  case 1: return [2 /*return*/, _a.sent()];
26560
27094
  }
26561
27095
  });
@@ -26960,7 +27494,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
26960
27494
  * Oauth2.0 Authorization Code client
26961
27495
  */
26962
27496
  var AuthorizationCodeClient = /** @class */ (function (_super) {
26963
- __extends$X(AuthorizationCodeClient, _super);
27497
+ __extends$10(AuthorizationCodeClient, _super);
26964
27498
  function AuthorizationCodeClient(configuration) {
26965
27499
  var _this = _super.call(this, configuration) || this;
26966
27500
  // Flag to indicate if client is for hybrid spa auth code redemption
@@ -27038,7 +27572,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27038
27572
  if (!serverParams.code) {
27039
27573
  throw ClientAuthError.createNoAuthCodeInServerResponseError();
27040
27574
  }
27041
- return __assign$6(__assign$6({}, serverParams), {
27575
+ return __assign$7(__assign$7({}, serverParams), {
27042
27576
  // Code param is optional in ServerAuthorizationCodeResponse but required in AuthorizationCodePaylod
27043
27577
  code: serverParams.code });
27044
27578
  };
@@ -27538,7 +28072,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27538
28072
  * OAuth2.0 refresh token client
27539
28073
  */
27540
28074
  var RefreshTokenClient = /** @class */ (function (_super) {
27541
- __extends$X(RefreshTokenClient, _super);
28075
+ __extends$10(RefreshTokenClient, _super);
27542
28076
  function RefreshTokenClient(configuration, performanceClient) {
27543
28077
  return _super.call(this, configuration, performanceClient) || this;
27544
28078
  }
@@ -27641,7 +28175,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27641
28175
  atsMeasurement === null || atsMeasurement === void 0 ? void 0 : atsMeasurement.endMeasurement({
27642
28176
  success: true
27643
28177
  });
27644
- refreshTokenRequest = __assign$6(__assign$6({}, request), { refreshToken: refreshToken.secret, authenticationScheme: request.authenticationScheme || AuthenticationScheme.BEARER, ccsCredential: {
28178
+ refreshTokenRequest = __assign$7(__assign$7({}, request), { refreshToken: refreshToken.secret, authenticationScheme: request.authenticationScheme || AuthenticationScheme.BEARER, ccsCredential: {
27645
28179
  credential: request.account.homeAccountId,
27646
28180
  type: CcsCredentialType.HOME_ACCOUNT_ID
27647
28181
  } });
@@ -27800,7 +28334,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
27800
28334
  * Licensed under the MIT License.
27801
28335
  */
27802
28336
  var SilentFlowClient = /** @class */ (function (_super) {
27803
- __extends$X(SilentFlowClient, _super);
28337
+ __extends$10(SilentFlowClient, _super);
27804
28338
  function SilentFlowClient(configuration, performanceClient) {
27805
28339
  return _super.call(this, configuration, performanceClient) || this;
27806
28340
  }
@@ -28869,7 +29403,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
28869
29403
  hostNameAndPort = region + "." + Constants.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX;
28870
29404
  }
28871
29405
  // Include the query string portion of the url
28872
- var url = UrlString.constructAuthorityUriFromObject(__assign$6(__assign$6({}, authorityUrlInstance.getUrlComponents()), { HostNameAndPort: hostNameAndPort })).urlString;
29406
+ var url = UrlString.constructAuthorityUriFromObject(__assign$7(__assign$7({}, authorityUrlInstance.getUrlComponents()), { HostNameAndPort: hostNameAndPort })).urlString;
28873
29407
  // Add the query string if a query string was provided
28874
29408
  if (queryString)
28875
29409
  return url + "?" + queryString;
@@ -29053,7 +29587,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29053
29587
  * Error thrown when there is an error in the client code running on the browser.
29054
29588
  */
29055
29589
  var JoseHeaderError = /** @class */ (function (_super) {
29056
- __extends$X(JoseHeaderError, _super);
29590
+ __extends$10(JoseHeaderError, _super);
29057
29591
  function JoseHeaderError(errorCode, errorMessage) {
29058
29592
  var _this = _super.call(this, errorCode, errorMessage) || this;
29059
29593
  _this.name = "JoseHeaderError";
@@ -29347,7 +29881,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29347
29881
  // Return the event and functions the caller can use to properly end/flush the measurement
29348
29882
  return {
29349
29883
  endMeasurement: function (event) {
29350
- var completedEvent = _this.endMeasurement(__assign$6(__assign$6({}, inProgressEvent), event));
29884
+ var completedEvent = _this.endMeasurement(__assign$7(__assign$7({}, inProgressEvent), event));
29351
29885
  if (completedEvent) {
29352
29886
  // Cache event so that submeasurements can be added downstream
29353
29887
  _this.cacheEventByCorrelationId(completedEvent);
@@ -29384,7 +29918,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29384
29918
  // null indicates no measurement was taken (e.g. needed performance APIs not present)
29385
29919
  if (durationMs !== null) {
29386
29920
  this.logger.trace("PerformanceClient: Performance measurement ended for " + event.name + ": " + durationMs + " ms", event.correlationId);
29387
- var completedEvent = __assign$6(__assign$6({
29921
+ var completedEvent = __assign$7(__assign$7({
29388
29922
  // Allow duration to be overwritten when event ends (e.g. testing), but not status
29389
29923
  durationMs: Math.round(durationMs) }, event), { status: PerformanceEventStatus.Completed });
29390
29924
  return completedEvent;
@@ -29407,7 +29941,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29407
29941
  var existingStaticFields = this.staticFieldsByCorrelationId.get(correlationId);
29408
29942
  if (existingStaticFields) {
29409
29943
  this.logger.trace("PerformanceClient: Updating static fields");
29410
- this.staticFieldsByCorrelationId.set(correlationId, __assign$6(__assign$6({}, existingStaticFields), fields));
29944
+ this.staticFieldsByCorrelationId.set(correlationId, __assign$7(__assign$7({}, existingStaticFields), fields));
29411
29945
  }
29412
29946
  else {
29413
29947
  this.logger.trace("PerformanceClient: Adding static fields");
@@ -29507,7 +30041,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29507
30041
  return previous;
29508
30042
  }, topLevelEvent);
29509
30043
  var staticFields = this.staticFieldsByCorrelationId.get(correlationId);
29510
- var finalEvent = __assign$6(__assign$6({}, eventToEmit), staticFields);
30044
+ var finalEvent = __assign$7(__assign$7({}, eventToEmit), staticFields);
29511
30045
  this.emitEvents([finalEvent], eventToEmit.correlationId);
29512
30046
  }
29513
30047
  else {
@@ -29591,7 +30125,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29591
30125
  return StubPerformanceMeasurement;
29592
30126
  }());
29593
30127
  var StubPerformanceClient = /** @class */ (function (_super) {
29594
- __extends$X(StubPerformanceClient, _super);
30128
+ __extends$10(StubPerformanceClient, _super);
29595
30129
  function StubPerformanceClient() {
29596
30130
  return _super !== null && _super.apply(this, arguments) || this;
29597
30131
  }
@@ -29795,7 +30329,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
29795
30329
  * Browser library error class thrown by the MSAL.js library for SPAs
29796
30330
  */
29797
30331
  var BrowserAuthError = /** @class */ (function (_super) {
29798
- __extends$W(BrowserAuthError, _super);
30332
+ __extends$$(BrowserAuthError, _super);
29799
30333
  function BrowserAuthError(errorCode, errorMessage) {
29800
30334
  var _this = _super.call(this, errorCode, errorMessage) || this;
29801
30335
  Object.setPrototypeOf(_this, BrowserAuthError.prototype);
@@ -30342,7 +30876,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30342
30876
  * Browser library error class thrown by the MSAL.js library for SPAs
30343
30877
  */
30344
30878
  var BrowserConfigurationAuthError = /** @class */ (function (_super) {
30345
- __extends$W(BrowserConfigurationAuthError, _super);
30879
+ __extends$$(BrowserConfigurationAuthError, _super);
30346
30880
  function BrowserConfigurationAuthError(errorCode, errorMessage) {
30347
30881
  var _this = _super.call(this, errorCode, errorMessage) || this;
30348
30882
  _this.name = "BrowserConfigurationAuthError";
@@ -30519,7 +31053,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
30519
31053
  * parameters such as state and nonce, generally.
30520
31054
  */
30521
31055
  var BrowserCacheManager = /** @class */ (function (_super) {
30522
- __extends$W(BrowserCacheManager, _super);
31056
+ __extends$$(BrowserCacheManager, _super);
30523
31057
  function BrowserCacheManager(clientId, cacheConfig, cryptoImpl, logger) {
30524
31058
  var _this = _super.call(this, clientId, cryptoImpl) || this;
30525
31059
  // Cookie life calculation (hours * minutes * seconds * ms)
@@ -31956,7 +32490,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
31956
32490
  this.logger.verbose("Initializing BaseAuthRequest");
31957
32491
  authority = request.authority || this.config.auth.authority;
31958
32492
  scopes = __spread(((request && request.scopes) || []));
31959
- validatedRequest = __assign$5(__assign$5({}, request), { correlationId: this.correlationId, authority: authority,
32493
+ validatedRequest = __assign$6(__assign$6({}, request), { correlationId: this.correlationId, authority: authority,
31960
32494
  scopes: scopes });
31961
32495
  // Set authenticationScheme to BEARER if not explicitly set in the request
31962
32496
  if (!validatedRequest.authenticationScheme) {
@@ -32058,7 +32592,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32058
32592
  * Defines the class structure and helper functions used by the "standard", non-brokered auth flows (popup, redirect, silent (RT), silent (iframe))
32059
32593
  */
32060
32594
  var StandardInteractionClient = /** @class */ (function (_super) {
32061
- __extends$W(StandardInteractionClient, _super);
32595
+ __extends$$(StandardInteractionClient, _super);
32062
32596
  function StandardInteractionClient() {
32063
32597
  return _super !== null && _super.apply(this, arguments) || this;
32064
32598
  }
@@ -32076,7 +32610,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32076
32610
  return [4 /*yield*/, this.browserCrypto.generatePkceCodes()];
32077
32611
  case 1:
32078
32612
  generatedPkceParams = _a.sent();
32079
- authCodeRequest = __assign$5(__assign$5({}, request), { redirectUri: request.redirectUri, code: Constants.EMPTY_STRING, codeVerifier: generatedPkceParams.verifier });
32613
+ authCodeRequest = __assign$6(__assign$6({}, request), { redirectUri: request.redirectUri, code: Constants.EMPTY_STRING, codeVerifier: generatedPkceParams.verifier });
32080
32614
  request.codeChallenge = generatedPkceParams.challenge;
32081
32615
  request.codeChallengeMethod = Constants.S256_CODE_CHALLENGE_METHOD;
32082
32616
  return [2 /*return*/, authCodeRequest];
@@ -32090,7 +32624,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32090
32624
  */
32091
32625
  StandardInteractionClient.prototype.initializeLogoutRequest = function (logoutRequest) {
32092
32626
  this.logger.verbose("initializeLogoutRequest called", logoutRequest === null || logoutRequest === void 0 ? void 0 : logoutRequest.correlationId);
32093
- var validLogoutRequest = __assign$5({ correlationId: this.correlationId || this.browserCrypto.createNewGuid() }, logoutRequest);
32627
+ var validLogoutRequest = __assign$6({ correlationId: this.correlationId || this.browserCrypto.createNewGuid() }, logoutRequest);
32094
32628
  /**
32095
32629
  * Set logout_hint to be login_hint from ID Token Claims if present
32096
32630
  * and logoutHint attribute wasn't manually set in logout request
@@ -32310,7 +32844,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32310
32844
  _a = [{}];
32311
32845
  return [4 /*yield*/, this.initializeBaseRequest(request)];
32312
32846
  case 1:
32313
- validatedRequest = __assign$5.apply(void 0, [__assign$5.apply(void 0, _a.concat([_b.sent()])), { redirectUri: redirectUri, state: state, nonce: request.nonce || this.browserCrypto.createNewGuid(), responseMode: ResponseMode.FRAGMENT }]);
32847
+ validatedRequest = __assign$6.apply(void 0, [__assign$6.apply(void 0, _a.concat([_b.sent()])), { redirectUri: redirectUri, state: state, nonce: request.nonce || this.browserCrypto.createNewGuid(), responseMode: ResponseMode.FRAGMENT }]);
32314
32848
  account = request.account || this.browserStorage.getActiveAccount();
32315
32849
  if (account) {
32316
32850
  this.logger.verbose("Setting validated request account", this.correlationId);
@@ -32486,7 +33020,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32486
33020
  * Licensed under the MIT License.
32487
33021
  */
32488
33022
  var RedirectHandler = /** @class */ (function (_super) {
32489
- __extends$W(RedirectHandler, _super);
33023
+ __extends$$(RedirectHandler, _super);
32490
33024
  function RedirectHandler(authCodeModule, storageImpl, authCodeRequest, logger, browserCrypto) {
32491
33025
  var _this = _super.call(this, authCodeModule, storageImpl, authCodeRequest, logger) || this;
32492
33026
  _this.browserCrypto = browserCrypto;
@@ -32679,7 +33213,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32679
33213
  }
32680
33214
  };
32681
33215
  var NativeAuthError = /** @class */ (function (_super) {
32682
- __extends$W(NativeAuthError, _super);
33216
+ __extends$$(NativeAuthError, _super);
32683
33217
  function NativeAuthError(errorCode, description, ext) {
32684
33218
  var _this = _super.call(this, errorCode, description) || this;
32685
33219
  Object.setPrototypeOf(_this, NativeAuthError.prototype);
@@ -32747,7 +33281,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32747
33281
  * Licensed under the MIT License.
32748
33282
  */
32749
33283
  var SilentCacheClient = /** @class */ (function (_super) {
32750
- __extends$W(SilentCacheClient, _super);
33284
+ __extends$$(SilentCacheClient, _super);
32751
33285
  function SilentCacheClient() {
32752
33286
  return _super !== null && _super.apply(this, arguments) || this;
32753
33287
  }
@@ -32825,9 +33359,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32825
33359
  return __generator$3(this, function (_b) {
32826
33360
  switch (_b.label) {
32827
33361
  case 0:
32828
- _a = [__assign$5({}, request)];
33362
+ _a = [__assign$6({}, request)];
32829
33363
  return [4 /*yield*/, this.initializeBaseRequest(request)];
32830
- case 1: return [2 /*return*/, __assign$5.apply(void 0, [__assign$5.apply(void 0, _a.concat([_b.sent()])), { account: account, forceRefresh: request.forceRefresh || false }])];
33364
+ case 1: return [2 /*return*/, __assign$6.apply(void 0, [__assign$6.apply(void 0, _a.concat([_b.sent()])), { account: account, forceRefresh: request.forceRefresh || false }])];
32831
33365
  }
32832
33366
  });
32833
33367
  });
@@ -32842,7 +33376,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
32842
33376
  * Licensed under the MIT License.
32843
33377
  */
32844
33378
  var NativeInteractionClient = /** @class */ (function (_super) {
32845
- __extends$W(NativeInteractionClient, _super);
33379
+ __extends$$(NativeInteractionClient, _super);
32846
33380
  function NativeInteractionClient(config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, provider, accountId, nativeStorageImpl, correlationId) {
32847
33381
  var _this = _super.call(this, config, browserStorage, browserCrypto, logger, eventHandler, navigationClient, performanceClient, provider, correlationId) || this;
32848
33382
  _this.apiId = apiId;
@@ -33280,7 +33814,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
33280
33814
  throw BrowserAuthError.createNativePromptParameterNotSupportedError();
33281
33815
  }
33282
33816
  };
33283
- validatedRequest = __assign$5(__assign$5({}, remainingProperties), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scope: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), prompt: getPrompt(), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: __assign$5(__assign$5(__assign$5({}, request.extraQueryParameters), request.tokenQueryParameters), { telemetry: NativeConstants.MATS_TELEMETRY }), extendedExpiryToken: false // Make this configurable?
33817
+ validatedRequest = __assign$6(__assign$6({}, remainingProperties), { accountId: this.accountId, clientId: this.config.auth.clientId, authority: canonicalAuthority.urlString, scope: scopeSet.printScopes(), redirectUri: this.getRedirectUri(request.redirectUri), prompt: getPrompt(), correlationId: this.correlationId, tokenType: request.authenticationScheme, windowTitleSubstring: document.title, extraParameters: __assign$6(__assign$6(__assign$6({}, request.extraQueryParameters), request.tokenQueryParameters), { telemetry: NativeConstants.MATS_TELEMETRY }), extendedExpiryToken: false // Make this configurable?
33284
33818
  });
33285
33819
  if (!(request.authenticationScheme === AuthenticationScheme.POP)) return [3 /*break*/, 2];
33286
33820
  shrParameters = {
@@ -33565,7 +34099,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
33565
34099
  * Licensed under the MIT License.
33566
34100
  */
33567
34101
  var RedirectClient = /** @class */ (function (_super) {
33568
- __extends$W(RedirectClient, _super);
34102
+ __extends$$(RedirectClient, _super);
33569
34103
  function RedirectClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeStorageImpl, nativeMessageHandler, correlationId) {
33570
34104
  var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this;
33571
34105
  _this.nativeStorage = nativeStorageImpl;
@@ -33604,7 +34138,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
33604
34138
  authClient = _a.sent();
33605
34139
  this.logger.verbose("Auth code client created");
33606
34140
  interactionHandler = new RedirectHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.browserCrypto);
33607
- return [4 /*yield*/, authClient.getAuthCodeUrl(__assign$5(__assign$5({}, validRequest), { nativeBroker: NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, request.authenticationScheme) }))];
34141
+ return [4 /*yield*/, authClient.getAuthCodeUrl(__assign$6(__assign$6({}, validRequest), { nativeBroker: NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, request.authenticationScheme) }))];
33608
34142
  case 5:
33609
34143
  navigateUrl = _a.sent();
33610
34144
  redirectStartPage = this.getRedirectStartPage(request.redirectStartPage);
@@ -33780,7 +34314,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
33780
34314
  }
33781
34315
  nativeInteractionClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.browserStorage, cachedRequest.correlationId);
33782
34316
  userRequestState = ProtocolUtils.parseRequestState(this.browserCrypto, state).userRequestState;
33783
- return [2 /*return*/, nativeInteractionClient.acquireToken(__assign$5(__assign$5({}, cachedRequest), { state: userRequestState, prompt: undefined // Server should handle the prompt, ideally native broker can do this part silently
34317
+ return [2 /*return*/, nativeInteractionClient.acquireToken(__assign$6(__assign$6({}, cachedRequest), { state: userRequestState, prompt: undefined // Server should handle the prompt, ideally native broker can do this part silently
33784
34318
  })).finally(function () {
33785
34319
  _this.browserStorage.cleanRequestByState(state);
33786
34320
  })];
@@ -33897,7 +34431,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
33897
34431
  * Licensed under the MIT License.
33898
34432
  */
33899
34433
  var PopupClient = /** @class */ (function (_super) {
33900
- __extends$W(PopupClient, _super);
34434
+ __extends$$(PopupClient, _super);
33901
34435
  function PopupClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeStorageImpl, nativeMessageHandler, correlationId) {
33902
34436
  var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this;
33903
34437
  // Properly sets this reference for the unload event.
@@ -33997,7 +34531,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
33997
34531
  if (isNativeBroker) {
33998
34532
  fetchNativeAccountIdMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.FetchAccountIdWithNativeBroker, request.correlationId);
33999
34533
  }
34000
- return [4 /*yield*/, authClient.getAuthCodeUrl(__assign$5(__assign$5({}, validRequest), { nativeBroker: isNativeBroker }))];
34534
+ return [4 /*yield*/, authClient.getAuthCodeUrl(__assign$6(__assign$6({}, validRequest), { nativeBroker: isNativeBroker }))];
34001
34535
  case 5:
34002
34536
  navigateUrl = _a.sent();
34003
34537
  interactionHandler = new InteractionHandler(authClient, this.browserStorage, authCodeRequest, this.logger);
@@ -34029,7 +34563,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34029
34563
  }
34030
34564
  nativeInteractionClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, ApiId.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.nativeStorage, validRequest.correlationId);
34031
34565
  userRequestState = ProtocolUtils.parseRequestState(this.browserCrypto, state_1).userRequestState;
34032
- return [2 /*return*/, nativeInteractionClient.acquireToken(__assign$5(__assign$5({}, validRequest), { state: userRequestState, prompt: undefined // Server should handle the prompt, ideally native broker can do this part silently
34566
+ return [2 /*return*/, nativeInteractionClient.acquireToken(__assign$6(__assign$6({}, validRequest), { state: userRequestState, prompt: undefined // Server should handle the prompt, ideally native broker can do this part silently
34033
34567
  })).finally(function () {
34034
34568
  _this.browserStorage.cleanRequestByState(state_1);
34035
34569
  })];
@@ -34482,7 +35016,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34482
35016
  piiLoggingEnabled: false
34483
35017
  };
34484
35018
  // Default system options for browser
34485
- var DEFAULT_BROWSER_SYSTEM_OPTIONS = __assign$5(__assign$5({}, DEFAULT_SYSTEM_OPTIONS), { loggerOptions: DEFAULT_LOGGER_OPTIONS, networkClient: isBrowserEnvironment ? BrowserUtils.getBrowserNetworkClient() : StubbedNetworkModule, navigationClient: new NavigationClient(), loadFrameTimeout: 0,
35019
+ var DEFAULT_BROWSER_SYSTEM_OPTIONS = __assign$6(__assign$6({}, DEFAULT_SYSTEM_OPTIONS), { loggerOptions: DEFAULT_LOGGER_OPTIONS, networkClient: isBrowserEnvironment ? BrowserUtils.getBrowserNetworkClient() : StubbedNetworkModule, navigationClient: new NavigationClient(), loadFrameTimeout: 0,
34486
35020
  // If loadFrameTimeout is provided, use that as default.
34487
35021
  windowHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_POPUP_TIMEOUT_MS, iframeHashTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.loadFrameTimeout) || DEFAULT_IFRAME_TIMEOUT_MS, navigateFrameWait: isBrowserEnvironment && BrowserUtils.detectIEOrEdge() ? 500 : 0, redirectNavigationTimeout: DEFAULT_REDIRECT_TIMEOUT_MS, asyncPopups: false, allowRedirectInIframe: false, allowNativeBroker: false, nativeBrokerHandshakeTimeout: (userInputSystem === null || userInputSystem === void 0 ? void 0 : userInputSystem.nativeBrokerHandshakeTimeout) || DEFAULT_NATIVE_BROKER_HANDSHAKE_TIMEOUT_MS, pollIntervalMilliseconds: BrowserConstants.DEFAULT_POLL_INTERVAL_MS, cryptoOptions: {
34488
35022
  useMsrCrypto: false,
@@ -34495,10 +35029,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34495
35029
  }
34496
35030
  };
34497
35031
  var overlayedConfig = {
34498
- auth: __assign$5(__assign$5({}, DEFAULT_AUTH_OPTIONS), userInputAuth),
34499
- cache: __assign$5(__assign$5({}, DEFAULT_CACHE_OPTIONS), userInputCache),
34500
- system: __assign$5(__assign$5({}, DEFAULT_BROWSER_SYSTEM_OPTIONS), userInputSystem),
34501
- telemetry: __assign$5(__assign$5({}, DEFAULT_TELEMETRY_OPTIONS), userInputTelemetry)
35032
+ auth: __assign$6(__assign$6({}, DEFAULT_AUTH_OPTIONS), userInputAuth),
35033
+ cache: __assign$6(__assign$6({}, DEFAULT_CACHE_OPTIONS), userInputCache),
35034
+ system: __assign$6(__assign$6({}, DEFAULT_BROWSER_SYSTEM_OPTIONS), userInputSystem),
35035
+ telemetry: __assign$6(__assign$6({}, DEFAULT_TELEMETRY_OPTIONS), userInputTelemetry)
34502
35036
  };
34503
35037
  return overlayedConfig;
34504
35038
  }
@@ -34510,7 +35044,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34510
35044
  * Licensed under the MIT License.
34511
35045
  */
34512
35046
  var SilentHandler = /** @class */ (function (_super) {
34513
- __extends$W(SilentHandler, _super);
35047
+ __extends$$(SilentHandler, _super);
34514
35048
  function SilentHandler(authCodeModule, storageImpl, authCodeRequest, logger, systemOptions) {
34515
35049
  var _this = _super.call(this, authCodeModule, storageImpl, authCodeRequest, logger) || this;
34516
35050
  _this.navigateFrameWait = systemOptions.navigateFrameWait;
@@ -34665,7 +35199,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34665
35199
  * Licensed under the MIT License.
34666
35200
  */
34667
35201
  var SilentIframeClient = /** @class */ (function (_super) {
34668
- __extends$W(SilentIframeClient, _super);
35202
+ __extends$$(SilentIframeClient, _super);
34669
35203
  function SilentIframeClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, nativeStorageImpl, nativeMessageHandler, correlationId) {
34670
35204
  var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this;
34671
35205
  _this.apiId = apiId;
@@ -34695,7 +35229,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34695
35229
  });
34696
35230
  throw BrowserAuthError.createSilentPromptValueError(request.prompt);
34697
35231
  }
34698
- return [4 /*yield*/, this.initializeAuthorizationRequest(__assign$5(__assign$5({}, request), { prompt: request.prompt || PromptValue.NONE }), InteractionType.Silent)];
35232
+ return [4 /*yield*/, this.initializeAuthorizationRequest(__assign$6(__assign$6({}, request), { prompt: request.prompt || PromptValue.NONE }), InteractionType.Silent)];
34699
35233
  case 1:
34700
35234
  silentRequest = _a.sent();
34701
35235
  this.browserStorage.updateCacheEntries(silentRequest.state, silentRequest.nonce, silentRequest.authority, silentRequest.loginHint || Constants.EMPTY_STRING, silentRequest.account || null);
@@ -34756,7 +35290,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34756
35290
  case 0: return [4 /*yield*/, this.initializeAuthorizationCodeRequest(silentRequest)];
34757
35291
  case 1:
34758
35292
  authCodeRequest = _a.sent();
34759
- return [4 /*yield*/, authClient.getAuthCodeUrl(__assign$5(__assign$5({}, silentRequest), { nativeBroker: NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, silentRequest.authenticationScheme) }))];
35293
+ return [4 /*yield*/, authClient.getAuthCodeUrl(__assign$6(__assign$6({}, silentRequest), { nativeBroker: NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeMessageHandler, silentRequest.authenticationScheme) }))];
34760
35294
  case 2:
34761
35295
  navigateUrl = _a.sent();
34762
35296
  silentHandler = new SilentHandler(authClient, this.browserStorage, authCodeRequest, this.logger, this.config.system);
@@ -34775,7 +35309,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34775
35309
  }
34776
35310
  nativeInteractionClient = new NativeInteractionClient(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, serverParams.accountId, this.browserStorage, this.correlationId);
34777
35311
  userRequestState = ProtocolUtils.parseRequestState(this.browserCrypto, state).userRequestState;
34778
- return [2 /*return*/, nativeInteractionClient.acquireToken(__assign$5(__assign$5({}, silentRequest), { state: userRequestState, prompt: silentRequest.prompt || PromptValue.NONE })).finally(function () {
35312
+ return [2 /*return*/, nativeInteractionClient.acquireToken(__assign$6(__assign$6({}, silentRequest), { state: userRequestState, prompt: silentRequest.prompt || PromptValue.NONE })).finally(function () {
34779
35313
  _this.browserStorage.cleanRequestByState(state);
34780
35314
  })];
34781
35315
  }
@@ -34795,7 +35329,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34795
35329
  * Licensed under the MIT License.
34796
35330
  */
34797
35331
  var SilentRefreshClient = /** @class */ (function (_super) {
34798
- __extends$W(SilentRefreshClient, _super);
35332
+ __extends$$(SilentRefreshClient, _super);
34799
35333
  function SilentRefreshClient() {
34800
35334
  return _super !== null && _super.apply(this, arguments) || this;
34801
35335
  }
@@ -34810,10 +35344,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
34810
35344
  return __generator$3(this, function (_b) {
34811
35345
  switch (_b.label) {
34812
35346
  case 0:
34813
- _a = [__assign$5({}, request)];
35347
+ _a = [__assign$6({}, request)];
34814
35348
  return [4 /*yield*/, this.initializeBaseRequest(request)];
34815
35349
  case 1:
34816
- silentRequest = __assign$5.apply(void 0, _a.concat([_b.sent()]));
35350
+ silentRequest = __assign$6.apply(void 0, _a.concat([_b.sent()]));
34817
35351
  acquireTokenMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.SilentRefreshClientAcquireToken, silentRequest.correlationId);
34818
35352
  serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenSilent_silentFlow);
34819
35353
  return [4 /*yield*/, this.createRefreshTokenClient(serverTelemetryManager, silentRequest.authority, silentRequest.azureCloudOptions)];
@@ -36786,7 +37320,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36786
37320
  * Licensed under the MIT License.
36787
37321
  */
36788
37322
  var HybridSpaAuthorizationCodeClient = /** @class */ (function (_super) {
36789
- __extends$W(HybridSpaAuthorizationCodeClient, _super);
37323
+ __extends$$(HybridSpaAuthorizationCodeClient, _super);
36790
37324
  function HybridSpaAuthorizationCodeClient(config) {
36791
37325
  var _this = _super.call(this, config) || this;
36792
37326
  _this.includeRedirectUri = false;
@@ -36802,7 +37336,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36802
37336
  * Licensed under the MIT License.
36803
37337
  */
36804
37338
  var SilentAuthCodeClient = /** @class */ (function (_super) {
36805
- __extends$W(SilentAuthCodeClient, _super);
37339
+ __extends$$(SilentAuthCodeClient, _super);
36806
37340
  function SilentAuthCodeClient(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, apiId, performanceClient, nativeMessageHandler, correlationId) {
36807
37341
  var _this = _super.call(this, config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, nativeMessageHandler, correlationId) || this;
36808
37342
  _this.apiId = apiId;
@@ -36831,7 +37365,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36831
37365
  _a.label = 2;
36832
37366
  case 2:
36833
37367
  _a.trys.push([2, 4, , 5]);
36834
- authCodeRequest = __assign$5(__assign$5({}, silentRequest), { code: request.code });
37368
+ authCodeRequest = __assign$6(__assign$6({}, silentRequest), { code: request.code });
36835
37369
  return [4 /*yield*/, this.getClientConfiguration(serverTelemetryManager, silentRequest.authority)];
36836
37370
  case 3:
36837
37371
  clientConfig = _a.sent();
@@ -36938,7 +37472,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36938
37472
  * Licensed under the MIT License.
36939
37473
  */
36940
37474
  var BrowserPerformanceClient = /** @class */ (function (_super) {
36941
- __extends$W(BrowserPerformanceClient, _super);
37475
+ __extends$$(BrowserPerformanceClient, _super);
36942
37476
  function BrowserPerformanceClient(clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry, cryptoOptions) {
36943
37477
  var _this = _super.call(this, clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry) || this;
36944
37478
  _this.browserCrypto = new BrowserCrypto(_this.logger, cryptoOptions);
@@ -36968,8 +37502,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
36968
37502
  // Capture page visibilityState and then invoke start/end measurement
36969
37503
  var startPageVisibility = this.getPageVisibility();
36970
37504
  var inProgressEvent = _super.prototype.startMeasurement.call(this, measureName, correlationId);
36971
- return __assign$5(__assign$5({}, inProgressEvent), { endMeasurement: function (event) {
36972
- return inProgressEvent.endMeasurement(__assign$5({ startPageVisibility: startPageVisibility, endPageVisibility: _this.getPageVisibility() }, event));
37505
+ return __assign$6(__assign$6({}, inProgressEvent), { endMeasurement: function (event) {
37506
+ return inProgressEvent.endMeasurement(__assign$6({ startPageVisibility: startPageVisibility, endPageVisibility: _this.getPageVisibility() }, event));
36973
37507
  } });
36974
37508
  };
36975
37509
  return BrowserPerformanceClient;
@@ -37332,7 +37866,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37332
37866
  var _this = this;
37333
37867
  return __generator$3(this, function (_a) {
37334
37868
  correlationId = this.getRequestCorrelationId(request);
37335
- validRequest = __assign$5(__assign$5({}, request), {
37869
+ validRequest = __assign$6(__assign$6({}, request), {
37336
37870
  // will be PromptValue.NONE or PromptValue.NO_SESSION
37337
37871
  prompt: request.prompt, correlationId: correlationId });
37338
37872
  this.preflightBrowserEnvironmentCheck(InteractionType.Silent);
@@ -37406,7 +37940,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37406
37940
  response = this.hybridAuthCodeResponses.get(hybridAuthCode_1);
37407
37941
  if (!response) {
37408
37942
  this.logger.verbose("Initiating new acquireTokenByCode request", correlationId);
37409
- response = this.acquireTokenByCodeAsync(__assign$5(__assign$5({}, request), { correlationId: correlationId }))
37943
+ response = this.acquireTokenByCodeAsync(__assign$6(__assign$6({}, request), { correlationId: correlationId }))
37410
37944
  .then(function (result) {
37411
37945
  _this.eventHandler.emitEvent(EventType.ACQUIRE_TOKEN_BY_CODE_SUCCESS, InteractionType.Silent, result);
37412
37946
  _this.hybridAuthCodeResponses.delete(hybridAuthCode_1);
@@ -37569,7 +38103,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37569
38103
  return __generator$3(this, function (_a) {
37570
38104
  correlationId = this.getRequestCorrelationId(logoutRequest);
37571
38105
  this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.", correlationId);
37572
- return [2 /*return*/, this.logoutRedirect(__assign$5({ correlationId: correlationId }, logoutRequest))];
38106
+ return [2 /*return*/, this.logoutRedirect(__assign$6({ correlationId: correlationId }, logoutRequest))];
37573
38107
  });
37574
38108
  });
37575
38109
  };
@@ -37947,7 +38481,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37947
38481
  * to obtain JWT tokens as described in the OAuth 2.0 Authorization Code Flow with PKCE specification.
37948
38482
  */
37949
38483
  var PublicClientApplication = /** @class */ (function (_super) {
37950
- __extends$W(PublicClientApplication, _super);
38484
+ __extends$$(PublicClientApplication, _super);
37951
38485
  /**
37952
38486
  * @constructor
37953
38487
  * Constructor for the PublicClientApplication used to instantiate the PublicClientApplication object
@@ -37989,7 +38523,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
37989
38523
  return __generator$3(this, function (_a) {
37990
38524
  correlationId = this.getRequestCorrelationId(request);
37991
38525
  this.logger.verbose("loginRedirect called", correlationId);
37992
- return [2 /*return*/, this.acquireTokenRedirect(__assign$5({ correlationId: correlationId }, (request || DEFAULT_REQUEST)))];
38526
+ return [2 /*return*/, this.acquireTokenRedirect(__assign$6({ correlationId: correlationId }, (request || DEFAULT_REQUEST)))];
37993
38527
  });
37994
38528
  });
37995
38529
  };
@@ -38003,7 +38537,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38003
38537
  PublicClientApplication.prototype.loginPopup = function (request) {
38004
38538
  var correlationId = this.getRequestCorrelationId(request);
38005
38539
  this.logger.verbose("loginPopup called", correlationId);
38006
- return this.acquireTokenPopup(__assign$5({ correlationId: correlationId }, (request || DEFAULT_REQUEST)));
38540
+ return this.acquireTokenPopup(__assign$6({ correlationId: correlationId }, (request || DEFAULT_REQUEST)));
38007
38541
  };
38008
38542
  /**
38009
38543
  * Silently acquire an access token for a given set of scopes. Returns currently processing promise if parallel requests are made.
@@ -38043,7 +38577,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38043
38577
  cachedResponse = this.activeSilentTokenRequests.get(silentRequestKey);
38044
38578
  if (typeof cachedResponse === "undefined") {
38045
38579
  this.logger.verbose("acquireTokenSilent called for the first time, storing active request", correlationId);
38046
- response = this.acquireTokenSilentAsync(__assign$5(__assign$5({}, request), { correlationId: correlationId }), account)
38580
+ response = this.acquireTokenSilentAsync(__assign$6(__assign$6({}, request), { correlationId: correlationId }), account)
38047
38581
  .then(function (result) {
38048
38582
  _this.activeSilentTokenRequests.delete(silentRequestKey);
38049
38583
  atsMeasurement.addStaticFields({
@@ -38101,7 +38635,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38101
38635
  astsAsyncMeasurement = this.performanceClient.startMeasurement(PerformanceEvents.AcquireTokenSilentAsync, request.correlationId);
38102
38636
  if (!(NativeMessageHandler.isNativeAvailable(this.config, this.logger, this.nativeExtensionProvider, request.authenticationScheme) && account.nativeAccountId)) return [3 /*break*/, 1];
38103
38637
  this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform");
38104
- silentRequest = __assign$5(__assign$5({}, request), { account: account });
38638
+ silentRequest = __assign$6(__assign$6({}, request), { account: account });
38105
38639
  result = this.acquireTokenNative(silentRequest, ApiId.acquireTokenSilent_silentFlow).catch(function (e) { return __awaiter$3(_this, void 0, void 0, function () {
38106
38640
  var silentIframeClient;
38107
38641
  return __generator$3(this, function (_a) {
@@ -38122,7 +38656,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38122
38656
  return [4 /*yield*/, silentCacheClient.initializeSilentRequest(request, account)];
38123
38657
  case 2:
38124
38658
  silentRequest_1 = _a.sent();
38125
- requestWithCLP_1 = __assign$5(__assign$5({}, request), {
38659
+ requestWithCLP_1 = __assign$6(__assign$6({}, request), {
38126
38660
  // set the request's CacheLookupPolicy to Default if it was not optionally passed in
38127
38661
  cacheLookupPolicy: request.cacheLookupPolicy || CacheLookupPolicy.Default });
38128
38662
  result = this.acquireTokenFromCache(silentCacheClient, silentRequest_1, requestWithCLP_1).catch(function (cacheError) {
@@ -38295,6 +38829,15 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38295
38829
  }
38296
38830
  return this.initPromise;
38297
38831
  };
38832
+ /**
38833
+ * Cleans up any resources used by the authentication manager.
38834
+ */
38835
+ AuthenticationManager.prototype.dispose = function () {
38836
+ if (this.tokenTimeOutHandle) {
38837
+ clearTimeout(this.tokenTimeOutHandle);
38838
+ this.tokenTimeOutHandle = null;
38839
+ }
38840
+ };
38298
38841
  /**
38299
38842
  * Gets the default auth context to be shared between maps without one specified to them.
38300
38843
  */
@@ -38702,8 +39245,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38702
39245
  return ControlManager;
38703
39246
  }());
38704
39247
 
38705
- var __assign$7 = (window && window.__assign) || function () {
38706
- __assign$7 = Object.assign || function(t) {
39248
+ var __assign$8 = (window && window.__assign) || function () {
39249
+ __assign$8 = Object.assign || function(t) {
38707
39250
  for (var s, i = 1, n = arguments.length; i < n; i++) {
38708
39251
  s = arguments[i];
38709
39252
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -38711,7 +39254,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38711
39254
  }
38712
39255
  return t;
38713
39256
  };
38714
- return __assign$7.apply(this, arguments);
39257
+ return __assign$8.apply(this, arguments);
38715
39258
  };
38716
39259
  /**
38717
39260
  * @private
@@ -38755,7 +39298,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
38755
39298
  case "sourcedata":
38756
39299
  case "styledata":
38757
39300
  modifiedCallback = function (data) {
38758
- var mapEventData = __assign$7(__assign$7({ dataType: data.dataType }, (data.dataType === "source" && __assign$7(__assign$7(__assign$7({ isSourceLoaded: data.isSourceLoaded }, (data.sourceDataType && { sourceDataType: data.sourceDataType })), { source: _this.map.sources.getById(data.sourceId) }), (data.tile && {
39301
+ var mapEventData = __assign$8(__assign$8({ dataType: data.dataType }, (data.dataType === "source" && __assign$8(__assign$8(__assign$8({ isSourceLoaded: data.isSourceLoaded }, (data.sourceDataType && { sourceDataType: data.sourceDataType })), { source: _this.map.sources.getById(data.sourceId) }), (data.tile && {
38759
39302
  tile: {
38760
39303
  id: {
38761
39304
  x: data.tile.tileID.canonical.x,
@@ -39640,7 +40183,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39640
40183
  return ImageSpriteManager;
39641
40184
  }());
39642
40185
 
39643
- var __extends$Y = (window && window.__extends) || (function () {
40186
+ var __extends$11 = (window && window.__extends) || (function () {
39644
40187
  var extendStatics = function (d, b) {
39645
40188
  extendStatics = Object.setPrototypeOf ||
39646
40189
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -39672,7 +40215,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39672
40215
  * @private
39673
40216
  */
39674
40217
  var FundamentalMapLayer = /** @class */ (function (_super) {
39675
- __extends$Y(FundamentalMapLayer, _super);
40218
+ __extends$11(FundamentalMapLayer, _super);
39676
40219
  /**
39677
40220
  * Constructs a base layer used to represent the base, transit, and labels layers.
39678
40221
  * @param mbLayers The stylesheet used to define the style sources and style layers.
@@ -39761,7 +40304,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39761
40304
  }
39762
40305
  return ar;
39763
40306
  };
39764
- var __spreadArray$4 = (window && window.__spreadArray) || function (to, from) {
40307
+ var __spreadArray$5 = (window && window.__spreadArray) || function (to, from) {
39765
40308
  for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
39766
40309
  to[j] = from[i];
39767
40310
  return to;
@@ -39899,6 +40442,8 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
39899
40442
  // If adding a SourceBuildingLayer the source associated must also be added.
39900
40443
  if (layer instanceof SourceBuildingLayer) {
39901
40444
  this.map._getMap().addSource(layer._getSourceId(), layer._buildSource());
40445
+ // we also need the abstraction for those source building layers added to the map if it is not already there
40446
+ this.map.sources.setSourceState(layer._getSourceWrapper());
39902
40447
  }
39903
40448
  var mbBefore = this._getMapboxBefore(before);
39904
40449
  try {
@@ -40197,7 +40742,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40197
40742
  // If a specified layer hasn't been added to the map throw an error.
40198
40743
  var index = this_1.layerIndex.findIndex(function (l) { return l.getId() === layerId; });
40199
40744
  if (index > -1) {
40200
- layerIds.push.apply(layerIds, __spreadArray$4([], __read$b(this_1.layerIndex[index]._getLayerIds()
40745
+ layerIds.push.apply(layerIds, __spreadArray$5([], __read$b(this_1.layerIndex[index]._getLayerIds()
40201
40746
  .filter(function (id) { return !!_this.map._getMap().getLayer(id); }))));
40202
40747
  }
40203
40748
  else {
@@ -40267,6 +40812,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40267
40812
  if (userLayerIndex != -1) {
40268
40813
  this.userLayers.splice(userLayerIndex, 1);
40269
40814
  }
40815
+ if (layer instanceof SourceBuildingLayer) {
40816
+ this.map.sources.unsetSourceState(layer._getSourceId());
40817
+ }
40270
40818
  tempLayer.onRemove();
40271
40819
  };
40272
40820
  return LayerManager;
@@ -40437,92 +40985,6 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40437
40985
  return PopupManager;
40438
40986
  }());
40439
40987
 
40440
- var __extends$Z = (window && window.__extends) || (function () {
40441
- var extendStatics = function (d, b) {
40442
- extendStatics = Object.setPrototypeOf ||
40443
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
40444
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
40445
- return extendStatics(d, b);
40446
- };
40447
- return function (d, b) {
40448
- if (typeof b !== "function" && b !== null)
40449
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
40450
- extendStatics(d, b);
40451
- function __() { this.constructor = d; }
40452
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40453
- };
40454
- })();
40455
- var __assign$8 = (window && window.__assign) || function () {
40456
- __assign$8 = Object.assign || function(t) {
40457
- for (var s, i = 1, n = arguments.length; i < n; i++) {
40458
- s = arguments[i];
40459
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
40460
- t[p] = s[p];
40461
- }
40462
- return t;
40463
- };
40464
- return __assign$8.apply(this, arguments);
40465
- };
40466
- /**
40467
- * Used to represent the fundamental map source.
40468
- * @private
40469
- */
40470
- var FundamentalMapSource = /** @class */ (function (_super) {
40471
- __extends$Z(FundamentalMapSource, _super);
40472
- /**
40473
- * Constructs a source from the contents of a layer resource file.
40474
- * @param id The source's id.
40475
- * @param sourceDef The sources entry of the resource file.
40476
- * @param options The query parameters to add to the urls listed in the resource file.
40477
- */
40478
- function FundamentalMapSource(id, sourceDef, options) {
40479
- var _this = _super.call(this, id) || this;
40480
- _this.source = _this._modifySource(sourceDef, options);
40481
- return _this;
40482
- }
40483
- /**
40484
- * @internal
40485
- */
40486
- FundamentalMapSource.prototype._buildSource = function () {
40487
- return this.source;
40488
- };
40489
- /**
40490
- * Updates the source info to convert the tiles to url strings.
40491
- * @param sourceDef The original source info.
40492
- * @param options The query parameters to add to the tile urls.
40493
- */
40494
- FundamentalMapSource.prototype._modifySource = function (sourceDef, options) {
40495
- if (sourceDef.tiles) {
40496
- var tileStrings = sourceDef.tiles.map(function (tile) {
40497
- if (typeof tile === "string") {
40498
- return tile;
40499
- }
40500
- var tileUrl = new Url({
40501
- domain: constants.domainPlaceHolder,
40502
- path: tile.path,
40503
- queryParams: __assign$8(__assign$8({}, options), tile.queryParams)
40504
- });
40505
- return tileUrl.toString();
40506
- });
40507
- sourceDef.tiles = tileStrings;
40508
- }
40509
- else if (sourceDef.url) {
40510
- sourceDef.url = (typeof sourceDef.url === "string") ?
40511
- sourceDef.url :
40512
- new Url({
40513
- domain: constants.domainPlaceHolder,
40514
- path: sourceDef.url.path,
40515
- queryParams: __assign$8(__assign$8({}, options), sourceDef.url.queryParams)
40516
- }).toString();
40517
- }
40518
- else {
40519
- throw new Error("Source definition must define a TileJSON 'url' or a 'tiles' array.");
40520
- }
40521
- return sourceDef;
40522
- };
40523
- return FundamentalMapSource;
40524
- }(Source));
40525
-
40526
40988
  var __values$f = (window && window.__values) || function(o) {
40527
40989
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
40528
40990
  if (m) return m.call(o);
@@ -40695,6 +41157,23 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40695
41157
  this._removeSource(source, update);
40696
41158
  }
40697
41159
  };
41160
+ /**
41161
+ * @internal
41162
+ */
41163
+ SourceManager.prototype.setSourceState = function (newSource, shouldInvokeAddEvent) {
41164
+ if (shouldInvokeAddEvent === void 0) { shouldInvokeAddEvent = true; }
41165
+ this.sources.set(newSource.getId(), newSource);
41166
+ newSource._setMap(this.map, shouldInvokeAddEvent);
41167
+ };
41168
+ /**
41169
+ * @internal
41170
+ */
41171
+ SourceManager.prototype.unsetSourceState = function (id) {
41172
+ if (this.sources.has(id)) {
41173
+ this.sources.get(id)._setMap(null);
41174
+ this.sources.delete(id);
41175
+ }
41176
+ };
40698
41177
  SourceManager.prototype._removeSource = function (source, update) {
40699
41178
  var id = source instanceof Source ? source.getId() : source;
40700
41179
  if (this.sources.has(id)) {
@@ -40702,8 +41181,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40702
41181
  this.map._getMap().removeSource(id);
40703
41182
  }
40704
41183
  if (!this.map._getMap().getSource(id) || !update) {
40705
- this.sources.get(id)._setMap(null);
40706
- this.sources.delete(id);
41184
+ this.unsetSourceState(id);
40707
41185
  }
40708
41186
  else {
40709
41187
  throw new Error("One or more layers have a dependency on the source '" + id + "'");
@@ -40720,8 +41198,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40720
41198
  throw new Error("'" + source.getId() + "' is already added to the map");
40721
41199
  }
40722
41200
  else {
40723
- this.sources.get(source.getId())._setMap(null);
40724
- this.sources.delete(source.getId());
41201
+ this.unsetSourceState(source.getId());
40725
41202
  }
40726
41203
  }
40727
41204
  if (update) {
@@ -40733,8 +41210,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40733
41210
  }
40734
41211
  this.map._getMap().addSource(source.getId(), source._buildSource());
40735
41212
  }
40736
- this.sources.set(source.getId(), source);
40737
- source._setMap(this.map);
41213
+ this.setSourceState(source);
40738
41214
  };
40739
41215
  /**
40740
41216
  * Converts an array of features as returned by one of Mapbox's query*Features(...) function
@@ -40776,51 +41252,90 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40776
41252
  };
40777
41253
  /**
40778
41254
  * Sync SourceManager with mapbox sources.
41255
+ * This function is responsible for creating wrappers for mapbox sources
41256
+ * and setting the approperiate sourceManager state with them
40779
41257
  * @internal
40780
41258
  */
40781
41259
  SourceManager.prototype._syncSources = function (sources) {
40782
41260
  var _this = this;
40783
- if (sources) {
40784
- Object.keys(sources).forEach(function (sourceId) {
40785
- if (!_this.sources.has(sourceId)) {
40786
- var sourceToAdd = sources[sourceId];
40787
- if (sourceToAdd.type === "vector") {
40788
- var newSource = new FundamentalMapSource(sourceId, {
40789
- name: sourceId,
40790
- tiles: sourceToAdd.tiles,
40791
- type: "vector",
40792
- url: sourceToAdd.url
40793
- });
40794
- _this.sources.set(sourceId, newSource);
40795
- newSource._setMap(_this.map);
40796
- }
40797
- else if (sourceToAdd.type === "raster") {
40798
- var newSource = new FundamentalMapSource(sourceId, {
40799
- name: sourceId,
40800
- tiles: sourceToAdd.tiles,
40801
- type: "raster",
40802
- url: sourceToAdd.url
40803
- });
40804
- _this.sources.set(sourceId, newSource);
40805
- newSource._setMap(_this.map);
40806
- }
40807
- else {
40808
- throw new Error("Unable to construct source with ID " + sourceId + ".");
41261
+ if (!sources) {
41262
+ console.warn('syncSources called with no style sources which is unexpected.');
41263
+ return;
41264
+ }
41265
+ // 1. add / update the source wrappers
41266
+ Object.keys(sources)
41267
+ .map(function (sourceId) {
41268
+ var sourceToAdd = sources[sourceId];
41269
+ var newSource;
41270
+ switch (sourceToAdd.type) {
41271
+ case 'vector':
41272
+ case 'raster':
41273
+ case 'raster-dem': {
41274
+ newSource = new FundamentalMapSource(sourceId, {
41275
+ name: sourceId,
41276
+ tiles: sourceToAdd.tiles,
41277
+ type: sourceToAdd.type,
41278
+ url: sourceToAdd.url,
41279
+ tileSize: 'tileSize' in sourceToAdd ? sourceToAdd.tileSize : undefined
41280
+ });
41281
+ break;
41282
+ }
41283
+ case 'canvas': {
41284
+ newSource = new CanvasSource(sourceId, sourceToAdd);
41285
+ break;
41286
+ }
41287
+ case 'geojson': {
41288
+ var dataSource = new DataSource(sourceId, {
41289
+ maxZoom: sourceToAdd.maxzoom,
41290
+ cluster: sourceToAdd.cluster,
41291
+ clusterRadius: sourceToAdd.clusterRadius,
41292
+ tolerance: sourceToAdd.tolerance,
41293
+ lineMetrics: sourceToAdd.lineMetrics,
41294
+ clusterProperties: sourceToAdd.clusterProperties,
41295
+ buffer: sourceToAdd.buffer,
41296
+ clusterMinPoints: sourceToAdd.clusterMinPoints,
41297
+ generateId: sourceToAdd.generateId,
41298
+ promoteId: sourceToAdd.promoteId,
41299
+ filter: sourceToAdd.filter,
41300
+ // attribution?: sourceToAdd.attribution
41301
+ });
41302
+ if (typeof sourceToAdd.data !== 'string' && sourceToAdd.data !== undefined) {
41303
+ dataSource._addNoUpdate(sourceToAdd.data);
40809
41304
  }
41305
+ newSource = dataSource;
41306
+ break;
40810
41307
  }
40811
- });
40812
- Object.keys(this.sources).forEach(function (sourceId) {
40813
- if (!sources.hasOwnProperty(sourceId)) {
40814
- _this.sources.get(sourceId)._setMap(null);
40815
- _this.sources.delete(sourceId);
41308
+ case 'image': {
41309
+ newSource = new ImageSource(sourceId, sourceToAdd);
41310
+ break;
40816
41311
  }
40817
- });
40818
- }
41312
+ case 'video': {
41313
+ newSource = new VideoSource(sourceId, sourceToAdd);
41314
+ break;
41315
+ }
41316
+ default: {
41317
+ newSource = new UnknownSource(sourceId, sourceToAdd);
41318
+ }
41319
+ }
41320
+ return newSource;
41321
+ }).forEach(function (newSource) {
41322
+ // use deep equality of underlying maplibre sources to determine if the source has been updated or overriden on style update
41323
+ var existing = _this.sources.get(newSource.getId());
41324
+ var isUpdate = existing && newSource._isDeepEqual(existing);
41325
+ if (!isUpdate && existing) {
41326
+ _this.unsetSourceState(existing.getId());
41327
+ }
41328
+ _this.setSourceState(newSource, !isUpdate);
41329
+ });
41330
+ // 2. remove the source wrappers that are not in the style
41331
+ Array.from(this.sources.keys())
41332
+ .filter(function (sourceId) { return !(sourceId in sources); })
41333
+ .forEach(function (sourceId) { return _this.unsetSourceState(sourceId); });
40819
41334
  };
40820
41335
  return SourceManager;
40821
41336
  }());
40822
41337
 
40823
- var __extends$_ = (window && window.__extends) || (function () {
41338
+ var __extends$12 = (window && window.__extends) || (function () {
40824
41339
  var extendStatics = function (d, b) {
40825
41340
  extendStatics = Object.setPrototypeOf ||
40826
41341
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -40839,7 +41354,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40839
41354
  * The options for animating changes to the map control's camera.
40840
41355
  */
40841
41356
  var AnimationOptions = /** @class */ (function (_super) {
40842
- __extends$_(AnimationOptions, _super);
41357
+ __extends$12(AnimationOptions, _super);
40843
41358
  function AnimationOptions() {
40844
41359
  var _this = _super !== null && _super.apply(this, arguments) || this;
40845
41360
  /**
@@ -40863,7 +41378,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40863
41378
  return AnimationOptions;
40864
41379
  }(Options));
40865
41380
 
40866
- var __extends$$ = (window && window.__extends) || (function () {
41381
+ var __extends$13 = (window && window.__extends) || (function () {
40867
41382
  var extendStatics = function (d, b) {
40868
41383
  extendStatics = Object.setPrototypeOf ||
40869
41384
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -40882,7 +41397,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40882
41397
  * Represent the amount of padding in pixels to add to the side of a BoundingBox when setting the camera of a map.
40883
41398
  */
40884
41399
  var Padding = /** @class */ (function (_super) {
40885
- __extends$$(Padding, _super);
41400
+ __extends$13(Padding, _super);
40886
41401
  function Padding() {
40887
41402
  var _this = _super !== null && _super.apply(this, arguments) || this;
40888
41403
  /**
@@ -40914,7 +41429,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40914
41429
  return Padding;
40915
41430
  }(Options));
40916
41431
 
40917
- var __extends$10 = (window && window.__extends) || (function () {
41432
+ var __extends$14 = (window && window.__extends) || (function () {
40918
41433
  var extendStatics = function (d, b) {
40919
41434
  extendStatics = Object.setPrototypeOf ||
40920
41435
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -40956,7 +41471,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40956
41471
  }
40957
41472
  return ar;
40958
41473
  };
40959
- var __spreadArray$5 = (window && window.__spreadArray) || function (to, from) {
41474
+ var __spreadArray$6 = (window && window.__spreadArray) || function (to, from) {
40960
41475
  for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
40961
41476
  to[j] = from[i];
40962
41477
  return to;
@@ -40965,7 +41480,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
40965
41480
  * The options for setting the bounds of the map control's camera.
40966
41481
  */
40967
41482
  var CameraBoundsOptions = /** @class */ (function (_super) {
40968
- __extends$10(CameraBoundsOptions, _super);
41483
+ __extends$14(CameraBoundsOptions, _super);
40969
41484
  function CameraBoundsOptions() {
40970
41485
  var _this = _super !== null && _super.apply(this, arguments) || this;
40971
41486
  /**
@@ -41031,12 +41546,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41031
41546
  }
41032
41547
  finally { if (e_1) throw e_1.error; }
41033
41548
  }
41034
- return _super.prototype.merge.apply(this, __spreadArray$5([], __read$c(valuesList)));
41549
+ return _super.prototype.merge.apply(this, __spreadArray$6([], __read$c(valuesList)));
41035
41550
  };
41036
41551
  return CameraBoundsOptions;
41037
41552
  }(Options));
41038
41553
 
41039
- var __extends$11 = (window && window.__extends) || (function () {
41554
+ var __extends$15 = (window && window.__extends) || (function () {
41040
41555
  var extendStatics = function (d, b) {
41041
41556
  extendStatics = Object.setPrototypeOf ||
41042
41557
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41055,7 +41570,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41055
41570
  * The options for setting the map control's camera.
41056
41571
  */
41057
41572
  var CameraOptions = /** @class */ (function (_super) {
41058
- __extends$11(CameraOptions, _super);
41573
+ __extends$15(CameraOptions, _super);
41059
41574
  function CameraOptions() {
41060
41575
  var _this = _super !== null && _super.apply(this, arguments) || this;
41061
41576
  /**
@@ -41114,7 +41629,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41114
41629
  return CameraOptions;
41115
41630
  }(Options));
41116
41631
 
41117
- var __extends$12 = (window && window.__extends) || (function () {
41632
+ var __extends$16 = (window && window.__extends) || (function () {
41118
41633
  var extendStatics = function (d, b) {
41119
41634
  extendStatics = Object.setPrototypeOf ||
41120
41635
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41133,7 +41648,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41133
41648
  * The options for a layer of the map.
41134
41649
  */
41135
41650
  var LayerOptions$1 = /** @class */ (function (_super) {
41136
- __extends$12(LayerOptions, _super);
41651
+ __extends$16(LayerOptions, _super);
41137
41652
  function LayerOptions() {
41138
41653
  var _this = _super !== null && _super.apply(this, arguments) || this;
41139
41654
  /**
@@ -41166,7 +41681,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41166
41681
  return LayerOptions;
41167
41682
  }(Options));
41168
41683
 
41169
- var __extends$13 = (window && window.__extends) || (function () {
41684
+ var __extends$17 = (window && window.__extends) || (function () {
41170
41685
  var extendStatics = function (d, b) {
41171
41686
  extendStatics = Object.setPrototypeOf ||
41172
41687
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41186,7 +41701,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41186
41701
  * @deprecated Use BubbleLayerOptions with atlas.layer.BubbleLayer instead.
41187
41702
  */
41188
41703
  var CircleLayerOptions = /** @class */ (function (_super) {
41189
- __extends$13(CircleLayerOptions, _super);
41704
+ __extends$17(CircleLayerOptions, _super);
41190
41705
  function CircleLayerOptions() {
41191
41706
  var _this = _super !== null && _super.apply(this, arguments) || this;
41192
41707
  /**
@@ -41218,7 +41733,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41218
41733
  return CircleLayerOptions;
41219
41734
  }(LayerOptions$1));
41220
41735
 
41221
- var __extends$14 = (window && window.__extends) || (function () {
41736
+ var __extends$18 = (window && window.__extends) || (function () {
41222
41737
  var extendStatics = function (d, b) {
41223
41738
  extendStatics = Object.setPrototypeOf ||
41224
41739
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41238,7 +41753,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41238
41753
  * @deprecated Use LineLayerOptions with atlas.layer.LineLayer instead.
41239
41754
  */
41240
41755
  var LinestringLayerOptions = /** @class */ (function (_super) {
41241
- __extends$14(LinestringLayerOptions, _super);
41756
+ __extends$18(LinestringLayerOptions, _super);
41242
41757
  function LinestringLayerOptions() {
41243
41758
  var _this = _super !== null && _super.apply(this, arguments) || this;
41244
41759
  /**
@@ -41274,7 +41789,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41274
41789
  return LinestringLayerOptions;
41275
41790
  }(LayerOptions$1));
41276
41791
 
41277
- var __extends$15 = (window && window.__extends) || (function () {
41792
+ var __extends$19 = (window && window.__extends) || (function () {
41278
41793
  var extendStatics = function (d, b) {
41279
41794
  extendStatics = Object.setPrototypeOf ||
41280
41795
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41294,7 +41809,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41294
41809
  * @deprecated Use SymbolLayerOptions with atlas.layer.SymbolLayer instead.
41295
41810
  */
41296
41811
  var PinLayerOptions = /** @class */ (function (_super) {
41297
- __extends$15(PinLayerOptions, _super);
41812
+ __extends$19(PinLayerOptions, _super);
41298
41813
  function PinLayerOptions() {
41299
41814
  var _this = _super !== null && _super.apply(this, arguments) || this;
41300
41815
  /**
@@ -41344,7 +41859,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41344
41859
  return PinLayerOptions;
41345
41860
  }(LayerOptions$1));
41346
41861
 
41347
- var __extends$16 = (window && window.__extends) || (function () {
41862
+ var __extends$1a = (window && window.__extends) || (function () {
41348
41863
  var extendStatics = function (d, b) {
41349
41864
  extendStatics = Object.setPrototypeOf ||
41350
41865
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41364,7 +41879,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41364
41879
  * @deprecated Use new PolygonLayerOptions with atlas.layer.PolygonLayer instead.
41365
41880
  */
41366
41881
  var PolygonLayerOptions$1 = /** @class */ (function (_super) {
41367
- __extends$16(PolygonLayerOptions, _super);
41882
+ __extends$1a(PolygonLayerOptions, _super);
41368
41883
  function PolygonLayerOptions() {
41369
41884
  var _this = _super !== null && _super.apply(this, arguments) || this;
41370
41885
  /**
@@ -41387,7 +41902,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41387
41902
  return PolygonLayerOptions;
41388
41903
  }(LayerOptions$1));
41389
41904
 
41390
- var __extends$17 = (window && window.__extends) || (function () {
41905
+ var __extends$1b = (window && window.__extends) || (function () {
41391
41906
  var extendStatics = function (d, b) {
41392
41907
  extendStatics = Object.setPrototypeOf ||
41393
41908
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41407,7 +41922,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41407
41922
  * @deprecated Use TileLayerOptions with atlas.layer.TileLayer instead.
41408
41923
  */
41409
41924
  var RasterLayerOptions = /** @class */ (function (_super) {
41410
- __extends$17(RasterLayerOptions, _super);
41925
+ __extends$1b(RasterLayerOptions, _super);
41411
41926
  function RasterLayerOptions() {
41412
41927
  var _this = _super !== null && _super.apply(this, arguments) || this;
41413
41928
  /**
@@ -41419,7 +41934,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41419
41934
  return RasterLayerOptions;
41420
41935
  }(LayerOptions$1));
41421
41936
 
41422
- var __extends$18 = (window && window.__extends) || (function () {
41937
+ var __extends$1c = (window && window.__extends) || (function () {
41423
41938
  var extendStatics = function (d, b) {
41424
41939
  extendStatics = Object.setPrototypeOf ||
41425
41940
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41438,7 +41953,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41438
41953
  * The options for the map's lighting.
41439
41954
  */
41440
41955
  var LightOptions = /** @class */ (function (_super) {
41441
- __extends$18(LightOptions, _super);
41956
+ __extends$1c(LightOptions, _super);
41442
41957
  function LightOptions() {
41443
41958
  var _this = _super !== null && _super.apply(this, arguments) || this;
41444
41959
  /**
@@ -41478,7 +41993,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41478
41993
  return LightOptions;
41479
41994
  }(Options));
41480
41995
 
41481
- var __extends$19 = (window && window.__extends) || (function () {
41996
+ var __extends$1d = (window && window.__extends) || (function () {
41482
41997
  var extendStatics = function (d, b) {
41483
41998
  extendStatics = Object.setPrototypeOf ||
41484
41999
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41520,7 +42035,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41520
42035
  }
41521
42036
  return ar;
41522
42037
  };
41523
- var __spreadArray$6 = (window && window.__spreadArray) || function (to, from) {
42038
+ var __spreadArray$7 = (window && window.__spreadArray) || function (to, from) {
41524
42039
  for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
41525
42040
  to[j] = from[i];
41526
42041
  return to;
@@ -41529,7 +42044,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41529
42044
  * The options for the map's style.
41530
42045
  */
41531
42046
  var StyleOptions = /** @class */ (function (_super) {
41532
- __extends$19(StyleOptions, _super);
42047
+ __extends$1d(StyleOptions, _super);
41533
42048
  function StyleOptions() {
41534
42049
  var _this = _super !== null && _super.apply(this, arguments) || this;
41535
42050
  /**
@@ -41586,6 +42101,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41586
42101
  * If false all buildings will be rendered as just their footprints.
41587
42102
  * Default `false`
41588
42103
  * @default false
42104
+ * @deprecated
41589
42105
  */
41590
42106
  _this.showBuildingModels = false;
41591
42107
  /**
@@ -41679,12 +42195,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41679
42195
  finally { if (e_1) throw e_1.error; }
41680
42196
  }
41681
42197
  // Then execute the standard merge behavior.
41682
- return _super.prototype.merge.apply(this, __spreadArray$6([], __read$d(valueList)));
42198
+ return _super.prototype.merge.apply(this, __spreadArray$7([], __read$d(valueList)));
41683
42199
  };
41684
42200
  return StyleOptions;
41685
42201
  }(Options));
41686
42202
 
41687
- var __extends$1a = (window && window.__extends) || (function () {
42203
+ var __extends$1e = (window && window.__extends) || (function () {
41688
42204
  var extendStatics = function (d, b) {
41689
42205
  extendStatics = Object.setPrototypeOf ||
41690
42206
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -41737,7 +42253,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41737
42253
  }
41738
42254
  return ar;
41739
42255
  };
41740
- var __spreadArray$7 = (window && window.__spreadArray) || function (to, from) {
42256
+ var __spreadArray$8 = (window && window.__spreadArray) || function (to, from) {
41741
42257
  for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
41742
42258
  to[j] = from[i];
41743
42259
  return to;
@@ -41754,7 +42270,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41754
42270
  * Global properties used in all atlas service requests.
41755
42271
  */
41756
42272
  var ServiceOptions = /** @class */ (function (_super) {
41757
- __extends$1a(ServiceOptions, _super);
42273
+ __extends$1e(ServiceOptions, _super);
41758
42274
  function ServiceOptions() {
41759
42275
  var _this = _super !== null && _super.apply(this, arguments) || this;
41760
42276
  /**
@@ -41972,10 +42488,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41972
42488
  // won't change default behavior in Options as usually that's what desired
41973
42489
  // instead capture it here and reassign.
41974
42490
  var currentTransforms = this._transformers;
41975
- var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return __spreadArray$7(__spreadArray$7([], __read$e(flattened)), __read$e(value._transformers || [])); }, []) : [];
42491
+ var transformersToMerge = valueList ? valueList.filter(function (value) { return value !== undefined; }).reduce(function (flattened, value) { return __spreadArray$8(__spreadArray$8([], __read$e(flattened)), __read$e(value._transformers || [])); }, []) : [];
41976
42492
  // Then execute the standard merge behavior.
41977
42493
  // If subscription key auth method isn't being used then the subscription key property should be undefined.
41978
- var merged = _super.prototype.merge.apply(this, __spreadArray$7([], __read$e(valueList)));
42494
+ var merged = _super.prototype.merge.apply(this, __spreadArray$8([], __read$e(valueList)));
41979
42495
  if (merged.authOptions.authType !== exports.AuthenticationType.subscriptionKey) {
41980
42496
  merged["subscription-key"] = merged.subscriptionKey = undefined;
41981
42497
  }
@@ -41987,7 +42503,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
41987
42503
  if (merged.mapConfiguration && typeof merged.mapConfiguration !== 'string') {
41988
42504
  merged.mapConfiguration = __assign$9(__assign$9({}, merged.mapConfiguration), { defaultConfiguration: merged.mapConfiguration.defaultConfiguration || merged.mapConfiguration['defaultStyle'], configurations: merged.mapConfiguration.configurations || merged.mapConfiguration['styles'] });
41989
42505
  }
41990
- this._transformers = __spreadArray$7(__spreadArray$7([], __read$e(currentTransforms || [])), __read$e(transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); })));
42506
+ this._transformers = __spreadArray$8(__spreadArray$8([], __read$e(currentTransforms || [])), __read$e(transformersToMerge.filter(function (toMerge) { return !currentTransforms.includes(toMerge); })));
41991
42507
  if (this.transformRequest && !this._transformers.includes(this.transformRequest)) {
41992
42508
  this._transformers.push(this.transformRequest);
41993
42509
  }
@@ -42236,7 +42752,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42236
42752
  }
42237
42753
  return ar;
42238
42754
  };
42239
- var __spreadArray$8 = (window && window.__spreadArray) || function (to, from) {
42755
+ var __spreadArray$9 = (window && window.__spreadArray) || function (to, from) {
42240
42756
  for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
42241
42757
  to[j] = from[i];
42242
42758
  return to;
@@ -42289,7 +42805,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42289
42805
  var deferredLayers = Object.entries(layerGroupLayers).reduce(function (deferred, _a) {
42290
42806
  var _b = __read$f(_a, 2), groupName = _b[0], layers = _b[1];
42291
42807
  var isInInitialLayerGroup = validInitLayerGroups.includes(groupName);
42292
- return __spreadArray$8(__spreadArray$8([], __read$f(deferred)), __read$f(layers.filter(function (layer) {
42808
+ return __spreadArray$9(__spreadArray$9([], __read$f(deferred)), __read$f(layers.filter(function (layer) {
42293
42809
  var _a;
42294
42810
  // Exclude custom layers
42295
42811
  if (layer.type === 'custom')
@@ -42481,7 +42997,12 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42481
42997
  domain: _this.serviceOptions.staticAssetsDomain,
42482
42998
  path: constants.stylePath + "/" + constants.styleResourcePath + "/" + style.name,
42483
42999
  queryParams: {
42484
- styleVersion: _this.serviceOptions.styleDefinitionsVersion,
43000
+ // Use the style version from the API response if it's available,
43001
+ // otherwise fallback to the version specified in the serviceOptions.
43002
+ // This is needed for flight testing the 2023-01-01 style version.
43003
+ styleVersion: definitions.version !== undefined && definitions.version !== null
43004
+ ? definitions.version
43005
+ : _this.serviceOptions.styleDefinitionsVersion
42485
43006
  // thus far we don't need to differentiate based on parameter here, as stylePatch will be called on cached styles as well
42486
43007
  //language: styleOptions.language
42487
43008
  },
@@ -42618,8 +43139,21 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42618
43139
  diff: diff,
42619
43140
  validate: this.serviceOptions.validateStyle,
42620
43141
  transformStyle: function (previousStyle, style) {
42621
- // Deep clone a style object to avoid side-effects from object mutation.
42622
- var nextStyle = cloneDeep_1(style);
43142
+ var nextStyle = style;
43143
+ var shouldProgressiveLoading = (styleOptions.progressiveLoading &&
43144
+ // The feature only effective at the initial load.
43145
+ !_this.map._isLoaded());
43146
+ // Shallow-clone the style object and duplicate layer.layout properties to avoid side-effects.
43147
+ if (shouldProgressiveLoading && Array.isArray(style === null || style === void 0 ? void 0 : style.layers)) {
43148
+ nextStyle = __assign$a({}, style);
43149
+ nextStyle.layers = nextStyle.layers.map(function (layer) {
43150
+ var nextLayer = __assign$a({}, layer);
43151
+ if (layer.layout) {
43152
+ nextLayer.layout = __assign$a({}, layer.layout);
43153
+ }
43154
+ return nextLayer;
43155
+ });
43156
+ }
42623
43157
  // 1. derive the base new style (without user layers)
42624
43158
  var targetStyle = _this.deriveNewStyle(previousStyle, nextStyle);
42625
43159
  // 2. derive layer groups for the new style
@@ -42632,12 +43166,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42632
43166
  .reduce(function (layerGroupLayers, _a) {
42633
43167
  var _b;
42634
43168
  var nextLayer = _a.nextLayer, layerGroup = _a.layerGroup;
42635
- return (__assign$a(__assign$a({}, layerGroupLayers), (_b = {}, _b[layerGroup] = layerGroup in layerGroupLayers ? __spreadArray$8(__spreadArray$8([], __read$f(layerGroupLayers[layerGroup])), [nextLayer]) : [nextLayer], _b)));
43169
+ return (__assign$a(__assign$a({}, layerGroupLayers), (_b = {}, _b[layerGroup] = layerGroup in layerGroupLayers ? __spreadArray$9(__spreadArray$9([], __read$f(layerGroupLayers[layerGroup])), [nextLayer]) : [nextLayer], _b)));
42636
43170
  }, {});
42637
43171
  // 3. side effect: progressively render map layers to the canvas to shorten the time to the first meaningful render.
42638
- var shouldProgressiveLoading = (styleOptions.progressiveLoading &&
42639
- // The feature only effective at the initial load.
42640
- !_this.map._isLoaded());
42641
43172
  if (shouldProgressiveLoading) {
42642
43173
  var initLayerGroups = styleOptions.progressiveLoadingInitialLayerGroups;
42643
43174
  if (Array.isArray(initLayerGroups) && initLayerGroups.length > 0) {
@@ -42782,27 +43313,30 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42782
43313
  * Fetches a json resource at the specified domain and path.
42783
43314
  */
42784
43315
  StyleManager.prototype._request = function (domain, path, resourceType, customQueryParams) {
42785
- var _a;
43316
+ var _a, _b;
42786
43317
  if (customQueryParams === void 0) { customQueryParams = {}; }
42787
43318
  return __awaiter$5(this, void 0, void 0, function () {
42788
43319
  var requestParams, fetchOptions;
42789
- var _b;
42790
- return __generator$5(this, function (_c) {
42791
- switch (_c.label) {
43320
+ var _c;
43321
+ return __generator$5(this, function (_d) {
43322
+ switch (_d.label) {
42792
43323
  case 0:
42793
43324
  requestParams = {
42794
43325
  url: new Url({
42795
43326
  protocol: "https",
42796
43327
  domain: domain,
42797
43328
  path: path,
42798
- queryParams: __assign$a((_b = {}, _b[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion, _b), customQueryParams)
43329
+ queryParams: __assign$a((_c = {}, _c[constants.apiVersionQueryParameter] = this.serviceOptions.styleAPIVersion,
43330
+ // Generate a hash code to avoid cache conflict
43331
+ // TODO: Remove this once style version 2023-01-01 is publicly available
43332
+ _c.hash = StyleManager._hashCode((_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.getToken()), _c), customQueryParams)
42799
43333
  }).toString()
42800
43334
  };
42801
43335
  if (typeof this.serviceOptions.transformRequest === "function" && resourceType) {
42802
43336
  // If a transformRequest(...) was specified use it.
42803
43337
  requestParams = this.serviceOptions.transformRequest(requestParams.url, resourceType);
42804
43338
  }
42805
- (_a = this.map.authentication) === null || _a === void 0 ? void 0 : _a.signRequest(requestParams);
43339
+ (_b = this.map.authentication) === null || _b === void 0 ? void 0 : _b.signRequest(requestParams);
42806
43340
  fetchOptions = {
42807
43341
  method: "GET",
42808
43342
  mode: "cors",
@@ -42819,11 +43353,26 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42819
43353
  throw new Error("HTTP " + response.status + ": " + response.statusText + " ");
42820
43354
  }
42821
43355
  })];
42822
- case 1: return [2 /*return*/, _c.sent()];
43356
+ case 1: return [2 /*return*/, _d.sent()];
42823
43357
  }
42824
43358
  });
42825
43359
  });
42826
43360
  };
43361
+ /**
43362
+ * A basic helper function to generate a hash from an input string.
43363
+ */
43364
+ StyleManager._hashCode = function (str) {
43365
+ if (str === void 0) { str = ""; }
43366
+ var chr, hash = 0;
43367
+ if (!str)
43368
+ return hash;
43369
+ for (var i = 0; i < str.length; i++) {
43370
+ chr = str.charCodeAt(i);
43371
+ hash = (hash << 5) - hash + chr;
43372
+ hash |= 0; // Convert to 32bit integer
43373
+ }
43374
+ return hash;
43375
+ };
42827
43376
  return StyleManager;
42828
43377
  }());
42829
43378
 
@@ -42832,7 +43381,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42832
43381
  */
42833
43382
  var isHMREnabled = function () { return 'ENVIRONMENT' in window && !!window['ENVIRONMENT']['hmr']; };
42834
43383
 
42835
- var __extends$1b = (window && window.__extends) || (function () {
43384
+ var __extends$1f = (window && window.__extends) || (function () {
42836
43385
  var extendStatics = function (d, b) {
42837
43386
  extendStatics = Object.setPrototypeOf ||
42838
43387
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -42910,7 +43459,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42910
43459
  }
42911
43460
  return ar;
42912
43461
  };
42913
- var __spreadArray$9 = (window && window.__spreadArray) || function (to, from) {
43462
+ var __spreadArray$a = (window && window.__spreadArray) || function (to, from) {
42914
43463
  for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
42915
43464
  to[j] = from[i];
42916
43465
  return to;
@@ -42930,7 +43479,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
42930
43479
  * The control for a visual and interactive web map.
42931
43480
  */
42932
43481
  var Map$2 = /** @class */ (function (_super) {
42933
- __extends$1b(Map, _super);
43482
+ __extends$1f(Map, _super);
42934
43483
  /**
42935
43484
  * Displays a map in the specified container.
42936
43485
  * @param container The id of the element where the map should be displayed.
@@ -43098,7 +43647,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43098
43647
  _this.events.invoke("error", errorData);
43099
43648
  });
43100
43649
  // --> Set initial camera state of map
43101
- _this.setCamera(__assign$b(__assign$b({}, options), { type: "jump", duration: 0 }));
43650
+ _this.setCamera(__assign$b(__assign$b({
43651
+ // Default minZoom to ensure the map doesn't zoom out to unsupported zoom levels.
43652
+ minZoom: 1 }, options), { type: "jump", duration: 0 }));
43102
43653
  // Add delegates to map
43103
43654
  {
43104
43655
  _this.incidentDelegate = new IncidentServiceDelegate(_this);
@@ -43329,6 +43880,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43329
43880
  if (newOptions.showTileBoundaries !== this.styleOptions.showTileBoundaries) {
43330
43881
  this.map.showTileBoundaries = newOptions.showTileBoundaries;
43331
43882
  }
43883
+ if (newOptions.showBuildingModels) {
43884
+ console.warn("showBuildingModels is deprecated.");
43885
+ }
43332
43886
  // Some delegates may rely on a styledata event to know when to check if the language changes.
43333
43887
  // If this function is restructured such that a styledata event won't always trigger
43334
43888
  // if the language is changed, then either those delegates need changed
@@ -43726,7 +44280,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43726
44280
  urls = layer.getOptions().subdomains || [];
43727
44281
  }
43728
44282
  // Add the tile urls to the layer, but don't update the map yet.
43729
- urls.push.apply(urls, __spreadArray$9([], __read$g(tileSources)));
44283
+ urls.push.apply(urls, __spreadArray$a([], __read$g(tileSources)));
43730
44284
  layer._setOptionsNoUpdate({
43731
44285
  subdomains: urls
43732
44286
  });
@@ -43853,6 +44407,9 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43853
44407
  }
43854
44408
  }
43855
44409
  if (this.trafficOptions.flow && this.trafficOptions.flow !== "none") {
44410
+ if (["absolute", "relative-delay"].includes(this.trafficOptions.flow)) {
44411
+ console.warn("The 'absolute' and 'relative-delay' flow options are deprecated. Please use 'relative' instead.");
44412
+ }
43856
44413
  try {
43857
44414
  if (this.trafficOptions.flow !== previousFlowOption) {
43858
44415
  this.flowDelegate.addToMap();
@@ -43895,9 +44452,13 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
43895
44452
  * Clean up the map's resources. Map will not function correctly after calling this method.
43896
44453
  */
43897
44454
  Map.prototype.dispose = function () {
44455
+ var _a;
43898
44456
  this.clear();
43899
44457
  this.map.remove();
44458
+ (_a = this.authentication) === null || _a === void 0 ? void 0 : _a.dispose();
43900
44459
  this.removed = true;
44460
+ // Remove event listeners
44461
+ window.removeEventListener("resize", this._windowResizeCallback);
43901
44462
  while (this.getMapContainer().firstChild) {
43902
44463
  var currChild = this.getMapContainer().firstChild;
43903
44464
  this.getMapContainer().removeChild(currChild);
@@ -44242,7 +44803,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
44242
44803
  }
44243
44804
  return ar;
44244
44805
  };
44245
- var __spreadArray$a = (window && window.__spreadArray) || function (to, from) {
44806
+ var __spreadArray$b = (window && window.__spreadArray) || function (to, from) {
44246
44807
  for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
44247
44808
  to[j] = from[i];
44248
44809
  return to;
@@ -44388,7 +44949,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
44388
44949
  lineLength = 50;
44389
44950
  }
44390
44951
  var lines = c.split(/<(tr|div|br|li|h[0-9]|p>)/);
44391
- longestStringLength = Math.max.apply(Math, __spreadArray$a([], __read$h((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; }))))) - 1;
44952
+ longestStringLength = Math.max.apply(Math, __spreadArray$b([], __read$h((lines.map(function (el) { return el.replace(/<[a-zA-Z0-9\s=\/]+>/g, "").length; }))))) - 1;
44392
44953
  var w = Math.ceil(longestStringLength * 3.5);
44393
44954
  if (w < width) {
44394
44955
  width = w;