")),l(p.join(""))})},n.prototype._reverseGeocodeDescription=function(e){var t=this;return new Promise(function(r){var i=t._map.getStyle();t._reverseSearch.request({position:e.center,style:i}).then(function(o){var a,l={};o&&o.features&&0Map style: ".concat(e.map.getStyle().style,".")},this.updateMapState=function(t){e.atlasMapLiveStateInfo.innerHTML=t},this.map=n},rwe=function(n){var e=this;this.listenerEnabled=!1,this.lastFlowMode="none",this.addToMap=function(){if(!e.map._isReady())throw new Error("Traffic flow could not be added to the map because the map is not ready. Please use a ready event listener to guarantee the map is ready before enabling traffic flow.");e.listenerEnabled||(e.map.events.add("styledata",e.addToMap),e.listenerEnabled=!0);var t,r=e.map.getTraffic();r.flow!=="none"&&(t=e.map.layers.getLayerById("traffic_".concat(r.flow)))&&(e.lastFlowMode=r.flow,t._updateLayoutProperty("visibility","visible","none"))},this.removeFromMap=function(){var t;e.map.getTraffic(),e.lastFlowMode!="none"&&((t=e.map.layers.getLayerById("traffic_".concat(e.lastFlowMode)))&&t._updateLayoutProperty("visibility","none","visible"),e.lastFlowMode="none"),e.listenerEnabled&&(e.map.events.remove("styledata",e.addToMap),e.listenerEnabled=!1)},this.map=n},iwe=window&&window.__extends||function(){var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(r,i){r.__proto__=i}:function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}))(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Rj=function(n){function e(t,r,i){var a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=t.icon_category_12)!=null?a:t.icon_category_11)!=null?a:t.icon_category_10)!=null?a:t.icon_category_9)!=null?a:t.icon_category_8)!=null?a:t.icon_category_7)!=null?a:t.icon_category_6)!=null?a:t.icon_category_5)!=null?a:t.icon_category_4)!=null?a:t.icon_category_3)!=null?a:t.icon_category_2)!=null?a:t.icon_category_1)!=null?a:t.icon_category_0)!=null?a:t.icon_category,o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=t.description_12)!=null?o:t.description_11)!=null?o:t.description_10)!=null?o:t.description_9)!=null?o:t.description_8)!=null?o:t.description_7)!=null?o:t.description_6)!=null?o:t.description_5)!=null?o:t.description_4)!=null?o:t.description_3)!=null?o:t.description_2)!=null?o:t.description_1)!=null?o:t.description_0)!=null?o:t.description,a={icon:"".concat(e.getSeverityColorName(t.magnitude),"-").concat(e.getIncidentTypeIconName(a)),incidentType:e.getIncidentTypeName(a,i),description:o,delay:t.delay,color:e.getSeverityColorHexCode(t.magnitude),id:t.id};return n.call(this,r,a)||this}return iwe(e,n),e.getIncidentTypeName=function(t,r){switch(t){case 0:return r.Unknown;case 1:return r.Accident;case 2:return r.Fog;case 3:return r.Danger;case 4:return r.Rain;case 5:return r.Ice;case 6:return r.Jam;case 7:return r.LaneClosed;case 8:return r.RoadClosed;case 9:return r.RoadWorks;case 10:return r.Wind;case 11:return r.Flood;case 12:return r.Detour;default:return r.Unknown}},e.getIncidentTypeIconName=function(t){switch(t){case 0:return"unknown";case 1:return"accident";case 2:return"fog";case 3:return"danger";case 4:return"rain";case 5:return"ice";case 6:return"jam";case 7:return"lane-closed";case 8:return"road-closed";case 9:return"road-work";case 10:return"wind";case 11:return"flood";case 12:return"detour";default:return"unknown"}},e.getSeverityColorName=function(t){switch(t){case 0:return"grey";case 1:return"yellow";case 2:return"orange";case 3:return"red";default:return"grey"}},e.getSeverityColorHexCode=function(t){switch(t){case 0:return"#B5B6B7";case 1:return"#F4C951";case 2:return"#F4873F";case 3:return"#F04F4E";default:return"#B5B6B7"}},e}(_c),kj=(function(n){n.DELAY="delay",n.LENGTH="length",n.FROM="from",n.TO="to"}(wm=wm||{}),function(){function n(){}return n.build=function(e,t){t===void 0&&(t="en-US");var r,o=document.createElement("div"),a=(o.classList.add("incident-popup-title"),o.classList.add("font-segoeui-b"),o.innerText=e.properties.incidentType,o.setAttribute("aria-label","Incident Type ".concat(e.properties.incidentType)),document.createElement("div")),i=(a.classList.add("incident-popup-subtitle"),a.classList.add("font-segoeui-b"),a.setAttribute("aria-label","Incident Description ".concat(e.properties.description)),a.innerText=e.properties.description,document.createElement("div")),o=(i.classList.add("incident-popup-header"),i.style.backgroundColor=e.properties.color,i.appendChild(o),i.appendChild(a),document.createElement("div")),a=(o.classList.add("incident-popup-body"),e.properties.delay&&(a="".concat(Math.floor(e.properties.delay/60)," min"),a=this.createInfoSection(a,wm.DELAY),o.appendChild(a)),e.properties.length&&(a=new Intl.NumberFormat([t,"en-US"],{maximumFractionDigits:2}),r=void 0,r=t==="en-US"?(t=Kl(e.properties.length,"meters","miles"),"".concat(a.format(t)," miles")):(t=Kl(e.properties.length,"meters","kilometers"),"".concat(a.format(t)," km")),a=this.createInfoSection(r,wm.LENGTH),o.appendChild(a)),e.properties.from&&(t=this.createInfoSection(e.properties.from,wm.FROM),o.appendChild(t)),e.properties.to&&(r=this.createInfoSection(e.properties.to,wm.TO),o.appendChild(r)),document.createElement("div"));return a.classList.add("incident-popup-content"),a.appendChild(i),a.appendChild(o),new pw({content:a,position:e.geometry.coordinates})},n.createInfoSection=function(e,t){var r=document.createElement("div"),i=(r.classList.add("incident-popup-info"),document.createElement("div")),o=(i.classList.add("icon"),i.classList.add(t),document.createElement("span"));return o.classList.add("message"),o.classList.add("font-segoeui"),o.setAttribute("aria-label","Incident ".concat(t," ").concat(e)),o.innerText=e,r.appendChild(i),r.appendChild(o),r},n}()),owe=window&&window.__awaiter||function(n,e,t,r){return new(t=t||Promise)(function(i,o){function a(p){try{h(r.next(p))}catch(g){o(g)}}function l(p){try{h(r.throw(p))}catch(g){o(g)}}function h(p){var g;p.done?i(p.value):((g=p.value)instanceof t?g:new t(function(_){_(g)})).then(a,l)}h((r=r.apply(n,e||[])).next())})},awe=window&&window.__generator||function(n,e){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:l(0),throw:l(1),return:l(2)};return typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(h){return function(p){var g=[h,p];if(t)throw new TypeError("Generator is already executing.");for(;o=a&&g[a=0]?0:o;)try{if(t=1,r&&(i=2&g[0]?r.return:g[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,g[1])).done)return i;switch(r=0,(g=i?[2&g[0],i.value]:g)[0]){case 0:case 1:i=g;break;case 4:return o.label++,{value:g[1],done:!1};case 5:o.label++,r=g[1],g=[0];continue;case 7:g=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(g[0]===6||g[0]===2)){o=0;continue}if(g[0]===3&&(!i||g[1]>i[0]&&g[1]B?1:he0){if(B.right===null)break;if(H(he,B.right.key)>0){var Ae=B.right;if(B.right=Ae.left,Ae.left=B,B=Ae,B.right===null)break}Q.right=B,Q=B,B=B.right}else break}return Q.right=B.left,ae.left=B.right,B.left=D.right,B.right=D.left,B}function a(he,B,H,D){var Q=new r(he,B);if(H===null)return Q.left=Q.right=null,Q;H=o(he,H,D);var ae=D(he,H.key);return ae<0?(Q.left=H.left,Q.right=H,H.left=null):ae>=0&&(Q.right=H.right,Q.left=H,H.right=null),Q}function l(he,B,H){var D=null,Q=null;if(B){B=o(he,B,H);var ae=H(B.key,he);ae===0?(D=B.left,Q=B.right):ae<0?(Q=B.right,B.right=null,D=B):(D=B.left,B.left=null,Q=B)}return{left:D,right:Q}}function h(he,B,H){return B===null?he:(he===null||(B=o(he.key,B,H),B.left=he),B)}function p(he,B,H,D,Q){if(he){D(""+B+(H?"└── ":"├── ")+Q(he)+`
-`);var ae=B+(H?" ":"│ ");he.left&&p(he.left,ae,!1,D,Q),he.right&&p(he.right,ae,!0,D,Q)}}var g=function(){function he(B){B===void 0&&(B=i),this._root=null,this._size=0,this._comparator=B}return he.prototype.insert=function(B,H){return this._size++,this._root=a(B,H,this._root,this._comparator)},he.prototype.add=function(B,H){var D=new r(B,H);this._root===null&&(D.left=D.right=null,this._size++,this._root=D);var Q=this._comparator,ae=o(B,this._root,Q),q=Q(B,ae.key);return q===0?this._root=ae:(q<0?(D.left=ae.left,D.right=ae,ae.left=null):q>0&&(D.right=ae.right,D.left=ae,ae.right=null),this._size++,this._root=D),this._root},he.prototype.remove=function(B){this._root=this._remove(B,this._root,this._comparator)},he.prototype._remove=function(B,H,D){var Q;if(H===null)return null;H=o(B,H,D);var ae=D(B,H.key);return ae===0?(H.left===null?Q=H.right:(Q=o(B,H.left,D),Q.right=H.right),this._size--,Q):H},he.prototype.pop=function(){var B=this._root;if(B){for(;B.left;)B=B.left;return this._root=o(B.key,this._root,this._comparator),this._root=this._remove(B.key,this._root,this._comparator),{key:B.key,data:B.data}}return null},he.prototype.findStatic=function(B){for(var H=this._root,D=this._comparator;H;){var Q=D(B,H.key);if(Q===0)return H;Q<0?H=H.left:H=H.right}return null},he.prototype.find=function(B){return this._root&&(this._root=o(B,this._root,this._comparator),this._comparator(B,this._root.key)!==0)?null:this._root},he.prototype.contains=function(B){for(var H=this._root,D=this._comparator;H;){var Q=D(B,H.key);if(Q===0)return!0;Q<0?H=H.left:H=H.right}return!1},he.prototype.forEach=function(B,H){for(var D=this._root,Q=[],ae=!1;!ae;)D!==null?(Q.push(D),D=D.left):Q.length!==0?(D=Q.pop(),B.call(H,D),D=D.right):ae=!0;return this},he.prototype.range=function(B,H,D,Q){for(var ae=[],q=this._comparator,Ae=this._root,Pe;ae.length!==0||Ae;)if(Ae)ae.push(Ae),Ae=Ae.left;else{if(Ae=ae.pop(),Pe=q(Ae.key,H),Pe>0)break;if(q(Ae.key,B)>=0&&D.call(Q,Ae))return this;Ae=Ae.right}return this},he.prototype.keys=function(){var B=[];return this.forEach(function(H){var D=H.key;return B.push(D)}),B},he.prototype.values=function(){var B=[];return this.forEach(function(H){var D=H.data;return B.push(D)}),B},he.prototype.min=function(){return this._root?this.minNode(this._root).key:null},he.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},he.prototype.minNode=function(B){if(B===void 0&&(B=this._root),B)for(;B.left;)B=B.left;return B},he.prototype.maxNode=function(B){if(B===void 0&&(B=this._root),B)for(;B.right;)B=B.right;return B},he.prototype.at=function(B){for(var H=this._root,D=!1,Q=0,ae=[];!D;)if(H)ae.push(H),H=H.left;else if(ae.length>0){if(H=ae.pop(),Q===B)return H;Q++,H=H.right}else D=!0;return null},he.prototype.next=function(B){var H=this._root,D=null;if(B.right){for(D=B.right;D.left;)D=D.left;return D}for(var Q=this._comparator;H;){var ae=Q(B.key,H.key);if(ae===0)break;ae<0?(D=H,H=H.left):H=H.right}return D},he.prototype.prev=function(B){var H=this._root,D=null;if(B.left!==null){for(D=B.left;D.right;)D=D.right;return D}for(var Q=this._comparator;H;){var ae=Q(B.key,H.key);if(ae===0)break;ae<0?H=H.left:(D=H,H=H.right)}return D},he.prototype.clear=function(){return this._root=null,this._size=0,this},he.prototype.toList=function(){return C(this._root)},he.prototype.load=function(B,H,D){H===void 0&&(H=[]),D===void 0&&(D=!1);var Q=B.length,ae=this._comparator;if(D&&F(B,H,0,Q-1,ae),this._root===null)this._root=_(B,H,0,Q),this._size=Q;else{var q=L(this.toList(),x(B,H),ae);Q=this._size+Q,this._root=M({head:q},0,Q)}return this},he.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(he.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),he.prototype.toString=function(B){B===void 0&&(B=function(Q){return String(Q.key)});var H=[];return p(this._root,"",!0,function(D){return H.push(D)},B),H.join("")},he.prototype.update=function(B,H,D){var Q=this._comparator,ae=l(B,this._root,Q),q=ae.left,Ae=ae.right;Q(B,H)<0?Ae=a(H,D,Ae,Q):q=a(H,D,q,Q),this._root=h(q,Ae,Q)},he.prototype.split=function(B){return l(B,this._root,this._comparator)},he}();function _(he,B,H,D){var Q=D-H;if(Q>0){var ae=H+Math.floor(Q/2),q=he[ae],Ae=B[ae],Pe=new r(q,Ae);return Pe.left=_(he,B,H,ae),Pe.right=_(he,B,ae+1,D),Pe}return null}function x(he,B){for(var H=new r(null,null),D=H,Q=0;Q0?(B=ae=ae.next=H.pop(),B=B.right):D=!0;return ae.next=null,Q.next}function M(he,B,H){var D=H-B;if(D>0){var Q=B+Math.floor(D/2),ae=M(he,B,Q),q=he.head;return q.left=ae,he.head=he.head.next,q.right=M(he,Q+1,H),q}return null}function L(he,B,H){for(var D=new r(null,null),Q=D,ae=he,q=B;ae!==null&&q!==null;)H(ae.key,q.key)<0?(Q.next=ae,ae=ae.next):(Q.next=q,q=q.next),Q=Q.next;return ae!==null?Q.next=ae:q!==null&&(Q.next=q),D.next}function F(he,B,H,D,Q){if(!(H>=D)){for(var ae=he[H+D>>1],q=H-1,Ae=D+1;;){do q++;while(Q(he[q],ae)<0);do Ae--;while(Q(he[Ae],ae)>0);if(q>=Ae)break;var Pe=he[q];he[q]=he[Ae],he[Ae]=Pe,Pe=B[q],B[q]=B[Ae],B[Ae]=Pe}F(he,B,H,Ae,Q),F(he,B,Ae+1,D,Q)}}var z=function(B,H){return B.ll.x<=H.x&&H.x<=B.ur.x&&B.ll.y<=H.y&&H.y<=B.ur.y},ee=function(B,H){if(H.ur.xD.x?1:H.yD.y?1:0}}]);function he(B,H){n(this,he),B.events===void 0?B.events=[this]:B.events.push(this),this.point=B,this.isLeft=H}return t(he,[{key:"link",value:function(H){if(H.point===this.point)throw new Error("Tried to link already linked events");for(var D=H.point.events,Q=0,ae=D.length;Q=0&&Bt>=0?rtLt?-1:0:We<0&&Bt<0?rtLt?1:0:BtWe?1:0}}}]),he}(),Rt=0,dn=function(){t(he,null,[{key:"compare",value:function(H,D){var Q=H.leftSE.point.x,ae=D.leftSE.point.x,q=H.rightSE.point.x,Ae=D.rightSE.point.x;if(AePe&&We>rt)return-1;var Bt=H.comparePoint(D.leftSE.point);if(Bt<0)return 1;if(Bt>0)return-1;var Lt=D.comparePoint(H.rightSE.point);return Lt!==0?Lt:-1}if(Q>ae){if(PeWe&&Pe>Et)return 1;var an=D.comparePoint(H.leftSE.point);if(an!==0)return an;var Ie=H.comparePoint(D.rightSE.point);return Ie<0?1:Ie>0?-1:1}if(PeWe)return 1;if(qAe){var At=H.comparePoint(D.rightSE.point);if(At<0)return 1;if(At>0)return-1}if(q!==Ae){var xt=rt-Pe,qt=q-Q,fn=Et-We,Ke=Ae-ae;if(xt>qt&&fnKe)return-1}return q>Ae?1:qEt?1:H.idD.id?1:0}}]);function he(B,H,D,Q){n(this,he),this.id=++Rt,this.leftSE=B,B.segment=this,B.otherSE=H,this.rightSE=H,H.segment=this,H.otherSE=B,this.rings=D,this.windings=Q}return t(he,[{key:"replaceRightSE",value:function(H){this.rightSE=H,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var H=this.leftSE.point.y,D=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:HD?H:D}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(H){return H.x===this.leftSE.point.x&&H.y===this.leftSE.point.y||H.x===this.rightSE.point.x&&H.y===this.rightSE.point.y}},{key:"comparePoint",value:function(H){if(this.isAnEndpoint(H))return 0;var D=this.leftSE.point,Q=this.rightSE.point,ae=this.vector();if(D.x===Q.x)return H.x===D.x?0:H.x0&&Pe.swapEvents(),ht.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),Q&&(ae.checkForConsuming(),q.checkForConsuming()),D}},{key:"swapEvents",value:function(){var H=this.rightSE;this.rightSE=this.leftSE,this.leftSE=H,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var D=0,Q=this.windings.length;D0){var q=D;D=Q,Q=q}if(D.prev===Q){var Ae=D;D=Q,Q=Ae}for(var Pe=0,We=Q.rings.length;Pe0)ae=D,q=H,Ae=-1;else throw new Error("Tried to create degenerate segment at [".concat(H.x,", ").concat(H.y,"]"));var We=new ht(ae,!0),rt=new ht(q,!1);return new he(We,rt,[Q],[Ae])}}]),he}(),wt=function(){function he(B,H,D){if(n(this,he),!Array.isArray(B)||B.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=H,this.isExterior=D,this.segments=[],typeof B[0][0]!="number"||typeof B[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var Q=ue.round(B[0][0],B[0][1]);this.bbox={ll:{x:Q.x,y:Q.y},ur:{x:Q.x,y:Q.y}};for(var ae=Q,q=1,Ae=B.length;qthis.bbox.ur.x&&(this.bbox.ur.x=Pe.x),Pe.y>this.bbox.ur.y&&(this.bbox.ur.y=Pe.y),ae=Pe)}(Q.x!==ae.x||Q.y!==ae.y)&&this.segments.push(dn.fromRing(ae,Q,this))}return t(he,[{key:"getSweepEvents",value:function(){for(var H=[],D=0,Q=this.segments.length;Dthis.bbox.ur.x&&(this.bbox.ur.x=ae.bbox.ur.x),ae.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=ae.bbox.ur.y),this.interiorRings.push(ae)}this.multiPoly=H}return t(he,[{key:"getSweepEvents",value:function(){for(var H=this.exteriorRing.getSweepEvents(),D=0,Q=this.interiorRings.length;Dthis.bbox.ur.x&&(this.bbox.ur.x=ae.bbox.ur.x),ae.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=ae.bbox.ur.y),this.polys.push(ae)}this.isSubject=H}return t(he,[{key:"getSweepEvents",value:function(){for(var H=[],D=0,Q=this.polys.length;D0&&(H=ae)}for(var q=H.segment.prevInResult(),Ae=q?q.prevInResult():null;;){if(!q)return null;if(!Ae)return q.ringOut;if(Ae.ringOut!==q.ringOut)return Ae.ringOut.enclosingRing()!==q.ringOut?q.ringOut:q.ringOut.enclosingRing();q=Ae.prevInResult(),Ae=q?q.prevInResult():null}}}]),he}(),ln=function(){function he(B){n(this,he),this.exteriorRing=B,B.poly=this,this.interiorRings=[]}return t(he,[{key:"addInterior",value:function(H){this.interiorRings.push(H),H.poly=this}},{key:"getGeom",value:function(){var H=[this.exteriorRing.getGeom()];if(H[0]===null)return null;for(var D=0,Q=this.interiorRings.length;D1&&arguments[1]!==void 0?arguments[1]:dn.compare;n(this,he),this.queue=B,this.tree=new g(H),this.segments=[]}return t(he,[{key:"process",value:function(H){var D=H.segment,Q=[];if(H.consumedBy)return H.isLeft?this.queue.remove(H.otherSE):this.tree.remove(D),Q;var ae=H.isLeft?this.tree.insert(D):this.tree.find(D);if(!ae)throw new Error("Unable to find segment #".concat(D.id," ")+"[".concat(D.leftSE.point.x,", ").concat(D.leftSE.point.y,"] -> ")+"[".concat(D.rightSE.point.x,", ").concat(D.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var q=ae,Ae=ae,Pe=void 0,We=void 0;Pe===void 0;)q=this.tree.prev(q),q===null?Pe=null:q.key.consumedBy===void 0&&(Pe=q.key);for(;We===void 0;)Ae=this.tree.next(Ae),Ae===null?We=null:Ae.key.consumedBy===void 0&&(We=Ae.key);if(H.isLeft){var rt=null;if(Pe){var Et=Pe.getIntersection(D);if(Et!==null&&(D.isAnEndpoint(Et)||(rt=Et),!Pe.isAnEndpoint(Et)))for(var Bt=this._splitSafely(Pe,Et),Lt=0,an=Bt.length;Lt0?(this.tree.remove(D),Q.push(H)):(this.segments.push(D),D.prev=Pe)}else{if(Pe&&We){var Qn=Pe.getIntersection(We);if(Qn!==null){if(!Pe.isAnEndpoint(Qn))for(var nn=this._splitSafely(Pe,Qn),Fr=0,ti=nn.length;FrEn)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var Ke=new Ot(Ie),gt=Ie.size,Tt=Ie.pop();Tt;){var Rn=Tt.key;if(Ie.size===gt){var Qn=Rn.segment;throw new Error("Unable to pop() ".concat(Rn.isLeft?"left":"right"," SweepEvent ")+"[".concat(Rn.point.x,", ").concat(Rn.point.y,"] from segment #").concat(Qn.id," ")+"[".concat(Qn.leftSE.point.x,", ").concat(Qn.leftSE.point.y,"] -> ")+"[".concat(Qn.rightSE.point.x,", ").concat(Qn.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(Ie.size>En)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(Ke.segments.length>lt)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var nn=Ke.process(Rn),Fr=0,ti=nn.length;Fr1?H-1:0),Q=1;Q1?H-1:0),Q=1;Q1?H-1:0),Q=1;Q1?H-1:0),Q=1;Q=this.minZoom,r=!this.maxZoom||!e.zoom||e.zoom<=this.maxZoom,i=!0;return this.geometry&&e.bounds&&(i=mwe({type:"Feature",geometry:this.geometry,properties:{}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[rr.getNorthWest(e.bounds),rr.getNorthEast(e.bounds),rr.getSouthEast(e.bounds),rr.getSouthWest(e.bounds),rr.getNorthWest(e.bounds)]]},properties:{}})!==null),t&&r&&i},n.prototype.apply=function(e,l){var r=this,i=(l===void 0&&(l=null),this.satisfied(e.getCamera())),o=this.dynamic&&this.tilesetId,a=this.hidesElement,l=l&&["dragend","zoomend","pitchend"].includes(l.type);return i||a?i&&(a||o)&&(i&&a&&this.element.style.removeProperty("display"),o)&&(l?e.events.addOnce("idle",function(h){return r.fetchAndApplyDynamicAttribution(e)}):this.fetchAndApplyDynamicAttribution(e)):this.element.style.display="none",i===a},n.prototype.fetchAndApplyDynamicAttribution=function(e){var t,r,i,o=this,a=e.getCamera();this.lastFetchState&&rr.containsBoundingBox(this.lastFetchState.bounds,a.bounds)&&Math.floor(this.lastFetchState.zoom)==Math.floor(a.zoom)||(t=i2(a.center,rr.getSouthWest(a.bounds),n.viewportBufferExpansionRatio),i=((r=i2(a.center,rr.getNorthEast(a.bounds),n.viewportBufferExpansionRatio))[0]i[0]&&g[1]i[0]&&g[1]=t.length&&e.lastIndexOf(t)===e.length-t.length},n.queryStringToObject=function(i){function t(o){return decodeURIComponent(o.replace(/\+/g," "))}var r={},i=i.split("&");return i.forEach(function(o){var a;o.trim()&&(a=(o=o.split(/=(.+)/g,2))[0],o=o[1],a)&&o&&(r[t(a)]=t(o))}),r},n.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},n.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!n.isEmpty(t)})},n.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},n.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},n}(),KM=(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"}(No=No||{}),function(){function n(e,t,r){this.level=No.Info,e=e||n.createDefaultLoggerOptions(),this.localCallback=e.loggerCallback||function(){},this.piiLoggingEnabled=e.piiLoggingEnabled||!1,this.level=typeof e.logLevel=="number"?e.logLevel:No.Info,this.correlationId=e.correlationId||Le.EMPTY_STRING,this.packageName=t||Le.EMPTY_STRING,this.packageVersion=r||Le.EMPTY_STRING}return n.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:No.Info}},n.prototype.clone=function(e,t,r){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,t)},n.prototype.logMessage=function(e,t){var r;t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii||(r=new Date().toUTCString(),r=(Kt.isEmpty(t.correlationId)?Kt.isEmpty(this.correlationId)?"["+r+"]":"["+r+"] : ["+this.correlationId+"]":"["+r+"] : ["+t.correlationId+"]")+" : "+this.packageName+"@"+this.packageVersion+" : "+No[t.logLevel]+" - "+e,this.executeCallback(t.logLevel,r,t.containsPii||!1))},n.prototype.executeCallback=function(e,t,r){this.localCallback&&this.localCallback(e,t,r)},n.prototype.error=function(e,t){this.logMessage(e,{logLevel:No.Error,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:No.Error,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.warning=function(e,t){this.logMessage(e,{logLevel:No.Warning,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:No.Warning,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.info=function(e,t){this.logMessage(e,{logLevel:No.Info,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:No.Info,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:No.Verbose,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:No.Verbose,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.trace=function(e,t){this.logMessage(e,{logLevel:No.Trace,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:No.Trace,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}()),Gj="@azure/msal-common",ZM="13.3.1",Vn=(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"}(d0=d0||{}),{redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}}),yi=function(n){function e(t,r){return t=n.call(this,t,r)||this,t.name="ClientConfigurationError",Object.setPrototypeOf(t,e.prototype),t}return Ja(e,n),e.createRedirectUriEmptyError=function(){return new e(Vn.redirectUriNotSet.code,Vn.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Vn.postLogoutUriNotSet.code,Vn.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(Vn.claimsRequestParsingError.code,Vn.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(Vn.authorityUriInsecure.code,Vn.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(Vn.urlParseError.code,Vn.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(Vn.urlEmptyError.code,Vn.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(Vn.emptyScopesError.code,""+Vn.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(Vn.clientIdSingleScopeError.code,Vn.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(Vn.invalidPrompt.code,Vn.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(Vn.invalidClaimsRequest.code,Vn.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(Vn.logoutRequestEmptyError.code,Vn.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(Vn.tokenRequestEmptyError.code,Vn.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(Vn.invalidCodeChallengeMethod.code,Vn.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(Vn.invalidCodeChallengeParams.code,Vn.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(Vn.invalidCloudDiscoveryMetadata.code,Vn.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(Vn.invalidAuthorityMetadata.code,Vn.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(Vn.untrustedAuthority.code,Vn.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(Vn.invalidAzureCloudInstance.code,Vn.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(Vn.missingSshJwk.code,Vn.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(Vn.missingSshKid.code,Vn.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(Vn.missingNonceAuthenticationHeader.code,Vn.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,r){return new e(Vn.invalidAuthenticationHeader.code,Vn.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+r)},e.createAuthorityMismatchError=function(){return new e(Vn.authorityMismatch.code,Vn.authorityMismatch.desc)},e}(en),fa=function(){function n(r){var t=this,r=r?Kt.trimArrayEntries(vE(r)):[],r=r?Kt.removeEmptyStringsFromArray(r):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(i){return t.scopes.add(i)})}return n.fromString=function(e){return new n((e||Le.EMPTY_STRING).split(" "))},n.createSearchScopes=function(e){return e=new n(e),e.containsOnlyOIDCScopes()?e.removeScope(Le.OFFLINE_ACCESS_SCOPE):e.removeOIDCScopes(),e},n.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw yi.createEmptyScopesArrayError()},n.prototype.containsScope=function(e){var t=new n(this.printScopesLowerCase().split(" "));return!Kt.isEmpty(e)&&t.scopes.has(e.toLowerCase())},n.prototype.containsScopeSet=function(e){var t=this;return!(!e||e.scopes.size<=0)&&this.scopes.size>=e.scopes.size&&e.asArray().every(function(r){return t.containsScope(r)})},n.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return jj.forEach(function(r){e.containsScope(r)&&(t+=1)}),this.scopes.size===t},n.prototype.appendScope=function(e){Kt.isEmpty(e)||this.scopes.add(e.trim())},n.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(r){return t.appendScope(r)})}catch(r){throw en.createAppendScopeSetError(r)}},n.prototype.removeScope=function(e){if(Kt.isEmpty(e))throw en.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},n.prototype.removeOIDCScopes=function(){var e=this;jj.forEach(function(t){e.scopes.delete(t)})},n.prototype.unionScopeSets=function(e){var t;if(e)return t=new Set,e.scopes.forEach(function(r){return t.add(r.toLowerCase())}),this.scopes.forEach(function(r){return t.add(r.toLowerCase())}),t;throw en.createEmptyInputScopeSetError()},n.prototype.intersectingScopeSets=function(r){if(!r)throw en.createEmptyInputScopeSetError();r.containsOnlyOIDCScopes()||r.removeOIDCScopes();var t=this.unionScopeSets(r),r=r.getScopeCount(),i=this.getScopeCount();return t.sizee+t)throw en.createMaxAgeTranspiredError()},n}(),es=function(){function n(e,t,r){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(Gj,ZM)}return n.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();return t.length<1||(t=t.reduce(function(r,i){return i=e.getAccount(i),i&&r.push(i),r},[])).length<1?[]:t.map(function(r){return e.getAccountInfoFromEntity(r)})},n.prototype.getAccountInfoFilteredBy=function(e){return e=this.getAccountsFilteredBy(e),0n.nowSeconds()},n.delay=function(e,t){return new Promise(function(r){return setTimeout(function(){return r(t)},e)})},n}(),Zf=function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return Ja(e,n),e.createAccessTokenEntity=function(ce,r,i,o,a,l,h,p,g,_,x,C,M,L,F){var z,ee=new e,ce=(ee.homeAccountId=ce,ee.credentialType=In.ACCESS_TOKEN,ee.secret=i,ec.nowSeconds());if(ee.cachedAt=ce.toString(),ee.expiresOn=h.toString(),ee.extendedExpiresOn=p.toString(),_&&(ee.refreshOn=_.toString()),ee.environment=r,ee.clientId=o,ee.realm=a,ee.target=l,ee.userAssertionHash=C,ee.tokenType=Kt.isEmpty(x)?qr.BEARER:x,L&&(ee.requestedClaims=L,ee.requestedClaimsHash=F),((ce=ee.tokenType)==null?void 0:ce.toLowerCase())!==qr.BEARER.toLowerCase())switch(ee.credentialType=In.ACCESS_TOKEN_WITH_AUTH_SCHEME,ee.tokenType){case qr.POP:var se=ml.extractTokenClaims(i,g);if((z=se==null?void 0:se.cnf)==null||!z.kid)throw en.createTokenClaimsRequiredError();ee.keyId=se.cnf.kid;break;case qr.SSH:ee.keyId=M}return ee},e.isAccessTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===In.ACCESS_TOKEN||t.credentialType===In.ACCESS_TOKEN_WITH_AUTH_SCHEME)},e}(JM),Cm=function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return Ja(e,n),e.createRefreshTokenEntity=function(t,r,i,o,a,l){var h=new e;return h.clientId=o,h.credentialType=In.REFRESH_TOKEN,h.environment=r,h.homeAccountId=t,h.secret=i,h.userAssertionHash=l,a&&(h.familyId=a),h},e.isRefreshTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===In.REFRESH_TOKEN},e}(JM),$j=["interaction_required","consent_required","login_required"],Fwe=["message_only","additional_action","basic_action","user_password_expired","consent_required"],Am={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},tc=function(n){function e(t,r,i,o,a,l,h){return t=n.call(this,t,r,i)||this,Object.setPrototypeOf(t,e.prototype),t.timestamp=o||Le.EMPTY_STRING,t.traceId=a||Le.EMPTY_STRING,t.correlationId=l||Le.EMPTY_STRING,t.claims=h||Le.EMPTY_STRING,t.name="InteractionRequiredAuthError",t}return Ja(e,n),e.isInteractionRequiredError=function(o,r,a){var o=!!o&&-1<$j.indexOf(o),a=!!a&&-10&&(D.right=ae.right,D.left=ae,ae.right=null),this._size++,this._root=D),this._root},he.prototype.remove=function(B){this._root=this._remove(B,this._root,this._comparator)},he.prototype._remove=function(B,H,D){var Q;if(H===null)return null;H=o(B,H,D);var ae=D(B,H.key);return ae===0?(H.left===null?Q=H.right:(Q=o(B,H.left,D),Q.right=H.right),this._size--,Q):H},he.prototype.pop=function(){var B=this._root;if(B){for(;B.left;)B=B.left;return this._root=o(B.key,this._root,this._comparator),this._root=this._remove(B.key,this._root,this._comparator),{key:B.key,data:B.data}}return null},he.prototype.findStatic=function(B){for(var H=this._root,D=this._comparator;H;){var Q=D(B,H.key);if(Q===0)return H;Q<0?H=H.left:H=H.right}return null},he.prototype.find=function(B){return this._root&&(this._root=o(B,this._root,this._comparator),this._comparator(B,this._root.key)!==0)?null:this._root},he.prototype.contains=function(B){for(var H=this._root,D=this._comparator;H;){var Q=D(B,H.key);if(Q===0)return!0;Q<0?H=H.left:H=H.right}return!1},he.prototype.forEach=function(B,H){for(var D=this._root,Q=[],ae=!1;!ae;)D!==null?(Q.push(D),D=D.left):Q.length!==0?(D=Q.pop(),B.call(H,D),D=D.right):ae=!0;return this},he.prototype.range=function(B,H,D,Q){for(var ae=[],q=this._comparator,Ae=this._root,Pe;ae.length!==0||Ae;)if(Ae)ae.push(Ae),Ae=Ae.left;else{if(Ae=ae.pop(),Pe=q(Ae.key,H),Pe>0)break;if(q(Ae.key,B)>=0&&D.call(Q,Ae))return this;Ae=Ae.right}return this},he.prototype.keys=function(){var B=[];return this.forEach(function(H){var D=H.key;return B.push(D)}),B},he.prototype.values=function(){var B=[];return this.forEach(function(H){var D=H.data;return B.push(D)}),B},he.prototype.min=function(){return this._root?this.minNode(this._root).key:null},he.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},he.prototype.minNode=function(B){if(B===void 0&&(B=this._root),B)for(;B.left;)B=B.left;return B},he.prototype.maxNode=function(B){if(B===void 0&&(B=this._root),B)for(;B.right;)B=B.right;return B},he.prototype.at=function(B){for(var H=this._root,D=!1,Q=0,ae=[];!D;)if(H)ae.push(H),H=H.left;else if(ae.length>0){if(H=ae.pop(),Q===B)return H;Q++,H=H.right}else D=!0;return null},he.prototype.next=function(B){var H=this._root,D=null;if(B.right){for(D=B.right;D.left;)D=D.left;return D}for(var Q=this._comparator;H;){var ae=Q(B.key,H.key);if(ae===0)break;ae<0?(D=H,H=H.left):H=H.right}return D},he.prototype.prev=function(B){var H=this._root,D=null;if(B.left!==null){for(D=B.left;D.right;)D=D.right;return D}for(var Q=this._comparator;H;){var ae=Q(B.key,H.key);if(ae===0)break;ae<0?H=H.left:(D=H,H=H.right)}return D},he.prototype.clear=function(){return this._root=null,this._size=0,this},he.prototype.toList=function(){return C(this._root)},he.prototype.load=function(B,H,D){H===void 0&&(H=[]),D===void 0&&(D=!1);var Q=B.length,ae=this._comparator;if(D&&F(B,H,0,Q-1,ae),this._root===null)this._root=_(B,H,0,Q),this._size=Q;else{var q=L(this.toList(),x(B,H),ae);Q=this._size+Q,this._root=M({head:q},0,Q)}return this},he.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(he.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),he.prototype.toString=function(B){B===void 0&&(B=function(Q){return String(Q.key)});var H=[];return p(this._root,"",!0,function(D){return H.push(D)},B),H.join("")},he.prototype.update=function(B,H,D){var Q=this._comparator,ae=l(B,this._root,Q),q=ae.left,Ae=ae.right;Q(B,H)<0?Ae=a(H,D,Ae,Q):q=a(H,D,q,Q),this._root=h(q,Ae,Q)},he.prototype.split=function(B){return l(B,this._root,this._comparator)},he}();function _(he,B,H,D){var Q=D-H;if(Q>0){var ae=H+Math.floor(Q/2),q=he[ae],Ae=B[ae],Pe=new r(q,Ae);return Pe.left=_(he,B,H,ae),Pe.right=_(he,B,ae+1,D),Pe}return null}function x(he,B){for(var H=new r(null,null),D=H,Q=0;Q0?(B=ae=ae.next=H.pop(),B=B.right):D=!0;return ae.next=null,Q.next}function M(he,B,H){var D=H-B;if(D>0){var Q=B+Math.floor(D/2),ae=M(he,B,Q),q=he.head;return q.left=ae,he.head=he.head.next,q.right=M(he,Q+1,H),q}return null}function L(he,B,H){for(var D=new r(null,null),Q=D,ae=he,q=B;ae!==null&&q!==null;)H(ae.key,q.key)<0?(Q.next=ae,ae=ae.next):(Q.next=q,q=q.next),Q=Q.next;return ae!==null?Q.next=ae:q!==null&&(Q.next=q),D.next}function F(he,B,H,D,Q){if(!(H>=D)){for(var ae=he[H+D>>1],q=H-1,Ae=D+1;;){do q++;while(Q(he[q],ae)<0);do Ae--;while(Q(he[Ae],ae)>0);if(q>=Ae)break;var Pe=he[q];he[q]=he[Ae],he[Ae]=Pe,Pe=B[q],B[q]=B[Ae],B[Ae]=Pe}F(he,B,H,Ae,Q),F(he,B,Ae+1,D,Q)}}var z=function(B,H){return B.ll.x<=H.x&&H.x<=B.ur.x&&B.ll.y<=H.y&&H.y<=B.ur.y},ee=function(B,H){if(H.ur.xD.x?1:H.yD.y?1:0}}]);function he(B,H){n(this,he),B.events===void 0?B.events=[this]:B.events.push(this),this.point=B,this.isLeft=H}return t(he,[{key:"link",value:function(H){if(H.point===this.point)throw new Error("Tried to link already linked events");for(var D=H.point.events,Q=0,ae=D.length;Q=0&&Bt>=0?rtLt?-1:0:We<0&&Bt<0?rtLt?1:0:BtWe?1:0}}}]),he}(),Rt=0,dn=function(){t(he,null,[{key:"compare",value:function(H,D){var Q=H.leftSE.point.x,ae=D.leftSE.point.x,q=H.rightSE.point.x,Ae=D.rightSE.point.x;if(AePe&&We>rt)return-1;var Bt=H.comparePoint(D.leftSE.point);if(Bt<0)return 1;if(Bt>0)return-1;var Lt=D.comparePoint(H.rightSE.point);return Lt!==0?Lt:-1}if(Q>ae){if(PeWe&&Pe>Et)return 1;var an=D.comparePoint(H.leftSE.point);if(an!==0)return an;var Ie=H.comparePoint(D.rightSE.point);return Ie<0?1:Ie>0?-1:1}if(PeWe)return 1;if(qAe){var At=H.comparePoint(D.rightSE.point);if(At<0)return 1;if(At>0)return-1}if(q!==Ae){var xt=rt-Pe,qt=q-Q,fn=Et-We,Ke=Ae-ae;if(xt>qt&&fnKe)return-1}return q>Ae?1:qEt?1:H.idD.id?1:0}}]);function he(B,H,D,Q){n(this,he),this.id=++Rt,this.leftSE=B,B.segment=this,B.otherSE=H,this.rightSE=H,H.segment=this,H.otherSE=B,this.rings=D,this.windings=Q}return t(he,[{key:"replaceRightSE",value:function(H){this.rightSE=H,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var H=this.leftSE.point.y,D=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:HD?H:D}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(H){return H.x===this.leftSE.point.x&&H.y===this.leftSE.point.y||H.x===this.rightSE.point.x&&H.y===this.rightSE.point.y}},{key:"comparePoint",value:function(H){if(this.isAnEndpoint(H))return 0;var D=this.leftSE.point,Q=this.rightSE.point,ae=this.vector();if(D.x===Q.x)return H.x===D.x?0:H.x0&&Pe.swapEvents(),ht.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),Q&&(ae.checkForConsuming(),q.checkForConsuming()),D}},{key:"swapEvents",value:function(){var H=this.rightSE;this.rightSE=this.leftSE,this.leftSE=H,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var D=0,Q=this.windings.length;D0){var q=D;D=Q,Q=q}if(D.prev===Q){var Ae=D;D=Q,Q=Ae}for(var Pe=0,We=Q.rings.length;Pe0)ae=D,q=H,Ae=-1;else throw new Error("Tried to create degenerate segment at [".concat(H.x,", ").concat(H.y,"]"));var We=new ht(ae,!0),rt=new ht(q,!1);return new he(We,rt,[Q],[Ae])}}]),he}(),wt=function(){function he(B,H,D){if(n(this,he),!Array.isArray(B)||B.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=H,this.isExterior=D,this.segments=[],typeof B[0][0]!="number"||typeof B[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var Q=ue.round(B[0][0],B[0][1]);this.bbox={ll:{x:Q.x,y:Q.y},ur:{x:Q.x,y:Q.y}};for(var ae=Q,q=1,Ae=B.length;qthis.bbox.ur.x&&(this.bbox.ur.x=Pe.x),Pe.y>this.bbox.ur.y&&(this.bbox.ur.y=Pe.y),ae=Pe)}(Q.x!==ae.x||Q.y!==ae.y)&&this.segments.push(dn.fromRing(ae,Q,this))}return t(he,[{key:"getSweepEvents",value:function(){for(var H=[],D=0,Q=this.segments.length;Dthis.bbox.ur.x&&(this.bbox.ur.x=ae.bbox.ur.x),ae.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=ae.bbox.ur.y),this.interiorRings.push(ae)}this.multiPoly=H}return t(he,[{key:"getSweepEvents",value:function(){for(var H=this.exteriorRing.getSweepEvents(),D=0,Q=this.interiorRings.length;Dthis.bbox.ur.x&&(this.bbox.ur.x=ae.bbox.ur.x),ae.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=ae.bbox.ur.y),this.polys.push(ae)}this.isSubject=H}return t(he,[{key:"getSweepEvents",value:function(){for(var H=[],D=0,Q=this.polys.length;D0&&(H=ae)}for(var q=H.segment.prevInResult(),Ae=q?q.prevInResult():null;;){if(!q)return null;if(!Ae)return q.ringOut;if(Ae.ringOut!==q.ringOut)return Ae.ringOut.enclosingRing()!==q.ringOut?q.ringOut:q.ringOut.enclosingRing();q=Ae.prevInResult(),Ae=q?q.prevInResult():null}}}]),he}(),ln=function(){function he(B){n(this,he),this.exteriorRing=B,B.poly=this,this.interiorRings=[]}return t(he,[{key:"addInterior",value:function(H){this.interiorRings.push(H),H.poly=this}},{key:"getGeom",value:function(){var H=[this.exteriorRing.getGeom()];if(H[0]===null)return null;for(var D=0,Q=this.interiorRings.length;D1&&arguments[1]!==void 0?arguments[1]:dn.compare;n(this,he),this.queue=B,this.tree=new g(H),this.segments=[]}return t(he,[{key:"process",value:function(H){var D=H.segment,Q=[];if(H.consumedBy)return H.isLeft?this.queue.remove(H.otherSE):this.tree.remove(D),Q;var ae=H.isLeft?this.tree.insert(D):this.tree.find(D);if(!ae)throw new Error("Unable to find segment #".concat(D.id," ")+"[".concat(D.leftSE.point.x,", ").concat(D.leftSE.point.y,"] -> ")+"[".concat(D.rightSE.point.x,", ").concat(D.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var q=ae,Ae=ae,Pe=void 0,We=void 0;Pe===void 0;)q=this.tree.prev(q),q===null?Pe=null:q.key.consumedBy===void 0&&(Pe=q.key);for(;We===void 0;)Ae=this.tree.next(Ae),Ae===null?We=null:Ae.key.consumedBy===void 0&&(We=Ae.key);if(H.isLeft){var rt=null;if(Pe){var Et=Pe.getIntersection(D);if(Et!==null&&(D.isAnEndpoint(Et)||(rt=Et),!Pe.isAnEndpoint(Et)))for(var Bt=this._splitSafely(Pe,Et),Lt=0,an=Bt.length;Lt0?(this.tree.remove(D),Q.push(H)):(this.segments.push(D),D.prev=Pe)}else{if(Pe&&We){var Qn=Pe.getIntersection(We);if(Qn!==null){if(!Pe.isAnEndpoint(Qn))for(var nn=this._splitSafely(Pe,Qn),Fr=0,ti=nn.length;FrEn)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var Ke=new Ot(Ie),gt=Ie.size,Tt=Ie.pop();Tt;){var Rn=Tt.key;if(Ie.size===gt){var Qn=Rn.segment;throw new Error("Unable to pop() ".concat(Rn.isLeft?"left":"right"," SweepEvent ")+"[".concat(Rn.point.x,", ").concat(Rn.point.y,"] from segment #").concat(Qn.id," ")+"[".concat(Qn.leftSE.point.x,", ").concat(Qn.leftSE.point.y,"] -> ")+"[".concat(Qn.rightSE.point.x,", ").concat(Qn.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(Ie.size>En)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(Ke.segments.length>lt)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var nn=Ke.process(Rn),Fr=0,ti=nn.length;Fr1?H-1:0),Q=1;Q1?H-1:0),Q=1;Q1?H-1:0),Q=1;Q1?H-1:0),Q=1;Q=this.minZoom,r=!this.maxZoom||!e.zoom||e.zoom<=this.maxZoom,i=!0;return this.geometry&&e.bounds&&(i=mwe({type:"Feature",geometry:this.geometry,properties:{}},{type:"Feature",geometry:{type:"Polygon",coordinates:[[rr.getNorthWest(e.bounds),rr.getNorthEast(e.bounds),rr.getSouthEast(e.bounds),rr.getSouthWest(e.bounds),rr.getNorthWest(e.bounds)]]},properties:{}})!==null),t&&r&&i},n.prototype.apply=function(e,l){var r=this,i=(l===void 0&&(l=null),this.satisfied(e.getCamera())),o=this.dynamic&&this.tilesetId,a=this.hidesElement,l=l&&["dragend","zoomend","pitchend"].includes(l.type);return i||a?i&&(a||o)&&(i&&a&&this.element.style.removeProperty("display"),o)&&(l?e.events.addOnce("idle",function(h){return r.fetchAndApplyDynamicAttribution(e)}):this.fetchAndApplyDynamicAttribution(e)):this.element.style.display="none",i===a},n.prototype.fetchAndApplyDynamicAttribution=function(e){var t,r,i,o=this,a=e.getCamera();this.lastFetchState&&rr.containsBoundingBox(this.lastFetchState.bounds,a.bounds)&&Math.floor(this.lastFetchState.zoom)==Math.floor(a.zoom)||(t=i2(a.center,rr.getSouthWest(a.bounds),n.viewportBufferExpansionRatio),i=((r=i2(a.center,rr.getNorthEast(a.bounds),n.viewportBufferExpansionRatio))[0]i[0]&&g[1]i[0]&&g[1]=t.length&&e.lastIndexOf(t)===e.length-t.length},n.queryStringToObject=function(i){function t(o){return decodeURIComponent(o.replace(/\+/g," "))}var r={},i=i.split("&");return i.forEach(function(o){var a;o.trim()&&(a=(o=o.split(/=(.+)/g,2))[0],o=o[1],a)&&o&&(r[t(a)]=t(o))}),r},n.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},n.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!n.isEmpty(t)})},n.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},n.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},n}(),KM=(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"}(No=No||{}),function(){function n(e,t,r){this.level=No.Info,e=e||n.createDefaultLoggerOptions(),this.localCallback=e.loggerCallback||function(){},this.piiLoggingEnabled=e.piiLoggingEnabled||!1,this.level=typeof e.logLevel=="number"?e.logLevel:No.Info,this.correlationId=e.correlationId||Le.EMPTY_STRING,this.packageName=t||Le.EMPTY_STRING,this.packageVersion=r||Le.EMPTY_STRING}return n.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:No.Info}},n.prototype.clone=function(e,t,r){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,t)},n.prototype.logMessage=function(e,t){var r;t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii||(r=new Date().toUTCString(),r=(Kt.isEmpty(t.correlationId)?Kt.isEmpty(this.correlationId)?"["+r+"]":"["+r+"] : ["+this.correlationId+"]":"["+r+"] : ["+t.correlationId+"]")+" : "+this.packageName+"@"+this.packageVersion+" : "+No[t.logLevel]+" - "+e,this.executeCallback(t.logLevel,r,t.containsPii||!1))},n.prototype.executeCallback=function(e,t,r){this.localCallback&&this.localCallback(e,t,r)},n.prototype.error=function(e,t){this.logMessage(e,{logLevel:No.Error,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:No.Error,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.warning=function(e,t){this.logMessage(e,{logLevel:No.Warning,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:No.Warning,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.info=function(e,t){this.logMessage(e,{logLevel:No.Info,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:No.Info,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:No.Verbose,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:No.Verbose,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.trace=function(e,t){this.logMessage(e,{logLevel:No.Trace,containsPii:!1,correlationId:t||Le.EMPTY_STRING})},n.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:No.Trace,containsPii:!0,correlationId:t||Le.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}()),Gj="@azure/msal-common",ZM="13.3.1",Vn=(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"}(d0=d0||{}),{redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}}),yi=function(n){function e(t,r){return t=n.call(this,t,r)||this,t.name="ClientConfigurationError",Object.setPrototypeOf(t,e.prototype),t}return Ja(e,n),e.createRedirectUriEmptyError=function(){return new e(Vn.redirectUriNotSet.code,Vn.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Vn.postLogoutUriNotSet.code,Vn.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(Vn.claimsRequestParsingError.code,Vn.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(Vn.authorityUriInsecure.code,Vn.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(Vn.urlParseError.code,Vn.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(Vn.urlEmptyError.code,Vn.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(Vn.emptyScopesError.code,""+Vn.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(Vn.clientIdSingleScopeError.code,Vn.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(Vn.invalidPrompt.code,Vn.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(Vn.invalidClaimsRequest.code,Vn.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(Vn.logoutRequestEmptyError.code,Vn.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(Vn.tokenRequestEmptyError.code,Vn.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(Vn.invalidCodeChallengeMethod.code,Vn.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(Vn.invalidCodeChallengeParams.code,Vn.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(Vn.invalidCloudDiscoveryMetadata.code,Vn.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(Vn.invalidAuthorityMetadata.code,Vn.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(Vn.untrustedAuthority.code,Vn.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(Vn.invalidAzureCloudInstance.code,Vn.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(Vn.missingSshJwk.code,Vn.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(Vn.missingSshKid.code,Vn.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(Vn.missingNonceAuthenticationHeader.code,Vn.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,r){return new e(Vn.invalidAuthenticationHeader.code,Vn.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+r)},e.createAuthorityMismatchError=function(){return new e(Vn.authorityMismatch.code,Vn.authorityMismatch.desc)},e}(en),fa=function(){function n(r){var t=this,r=r?Kt.trimArrayEntries(vE(r)):[],r=r?Kt.removeEmptyStringsFromArray(r):[];this.validateInputScopes(r),this.scopes=new Set,r.forEach(function(i){return t.scopes.add(i)})}return n.fromString=function(e){return new n((e||Le.EMPTY_STRING).split(" "))},n.createSearchScopes=function(e){return e=new n(e),e.containsOnlyOIDCScopes()?e.removeScope(Le.OFFLINE_ACCESS_SCOPE):e.removeOIDCScopes(),e},n.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw yi.createEmptyScopesArrayError()},n.prototype.containsScope=function(e){var t=new n(this.printScopesLowerCase().split(" "));return!Kt.isEmpty(e)&&t.scopes.has(e.toLowerCase())},n.prototype.containsScopeSet=function(e){var t=this;return!(!e||e.scopes.size<=0)&&this.scopes.size>=e.scopes.size&&e.asArray().every(function(r){return t.containsScope(r)})},n.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return jj.forEach(function(r){e.containsScope(r)&&(t+=1)}),this.scopes.size===t},n.prototype.appendScope=function(e){Kt.isEmpty(e)||this.scopes.add(e.trim())},n.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(r){return t.appendScope(r)})}catch(r){throw en.createAppendScopeSetError(r)}},n.prototype.removeScope=function(e){if(Kt.isEmpty(e))throw en.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},n.prototype.removeOIDCScopes=function(){var e=this;jj.forEach(function(t){e.scopes.delete(t)})},n.prototype.unionScopeSets=function(e){var t;if(e)return t=new Set,e.scopes.forEach(function(r){return t.add(r.toLowerCase())}),this.scopes.forEach(function(r){return t.add(r.toLowerCase())}),t;throw en.createEmptyInputScopeSetError()},n.prototype.intersectingScopeSets=function(r){if(!r)throw en.createEmptyInputScopeSetError();r.containsOnlyOIDCScopes()||r.removeOIDCScopes();var t=this.unionScopeSets(r),r=r.getScopeCount(),i=this.getScopeCount();return t.sizee+t)throw en.createMaxAgeTranspiredError()},n}(),es=function(){function n(e,t,r){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(Gj,ZM)}return n.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();return t.length<1||(t=t.reduce(function(r,i){return i=e.getAccount(i),i&&r.push(i),r},[])).length<1?[]:t.map(function(r){return e.getAccountInfoFromEntity(r)})},n.prototype.getAccountInfoFilteredBy=function(e){return e=this.getAccountsFilteredBy(e),0n.nowSeconds()},n.delay=function(e,t){return new Promise(function(r){return setTimeout(function(){return r(t)},e)})},n}(),Zf=function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return Ja(e,n),e.createAccessTokenEntity=function(ce,r,i,o,a,l,h,p,g,_,x,C,M,L,F){var z,ee=new e,ce=(ee.homeAccountId=ce,ee.credentialType=In.ACCESS_TOKEN,ee.secret=i,ec.nowSeconds());if(ee.cachedAt=ce.toString(),ee.expiresOn=h.toString(),ee.extendedExpiresOn=p.toString(),_&&(ee.refreshOn=_.toString()),ee.environment=r,ee.clientId=o,ee.realm=a,ee.target=l,ee.userAssertionHash=C,ee.tokenType=Kt.isEmpty(x)?qr.BEARER:x,L&&(ee.requestedClaims=L,ee.requestedClaimsHash=F),((ce=ee.tokenType)==null?void 0:ce.toLowerCase())!==qr.BEARER.toLowerCase())switch(ee.credentialType=In.ACCESS_TOKEN_WITH_AUTH_SCHEME,ee.tokenType){case qr.POP:var se=ml.extractTokenClaims(i,g);if((z=se==null?void 0:se.cnf)==null||!z.kid)throw en.createTokenClaimsRequiredError();ee.keyId=se.cnf.kid;break;case qr.SSH:ee.keyId=M}return ee},e.isAccessTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===In.ACCESS_TOKEN||t.credentialType===In.ACCESS_TOKEN_WITH_AUTH_SCHEME)},e}(JM),Cm=function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return Ja(e,n),e.createRefreshTokenEntity=function(t,r,i,o,a,l){var h=new e;return h.clientId=o,h.credentialType=In.REFRESH_TOKEN,h.environment=r,h.homeAccountId=t,h.secret=i,h.userAssertionHash=l,a&&(h.familyId=a),h},e.isRefreshTokenEntity=function(t){return!!t&&t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===In.REFRESH_TOKEN},e}(JM),$j=["interaction_required","consent_required","login_required"],Fwe=["message_only","additional_action","basic_action","user_password_expired","consent_required"],Am={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},tc=function(n){function e(t,r,i,o,a,l,h){return t=n.call(this,t,r,i)||this,Object.setPrototypeOf(t,e.prototype),t.timestamp=o||Le.EMPTY_STRING,t.traceId=a||Le.EMPTY_STRING,t.correlationId=l||Le.EMPTY_STRING,t.claims=h||Le.EMPTY_STRING,t.name="InteractionRequiredAuthError",t}return Ja(e,n),e.isInteractionRequiredError=function(o,r,a){var o=!!o&&-1<$j.indexOf(o),a=!!a&&-1=Xo.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),Kt.isEmpty(e.subError)?Kt.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Xo.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},n.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},n.prototype.getLastRequests=function(){var e=new RE;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e},n.prototype.clearTelemetryCache=function(){var e,t=this.getLastRequests(),r=n.maxErrorsToSend(t);r===t.errors.length?this.cacheManager.removeItem(this.telemetryCacheKey):((e=new RE).failedRequests=t.failedRequests.slice(2*r),e.errors=t.errors.slice(r),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e))},n.maxErrorsToSend=function(e){for(var t=0,r=0,i=e.errors.length,o=0;o "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(It.blockTokenRequestsInHiddenIframeError.code,It.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(It.blockAcquireTokenInPopupsError.code,It.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(It.iframeClosedPrematurelyError.code,It.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(It.silentLogoutUnsupportedError.code,It.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(It.noAccountError.code,It.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(It.silentPromptValueError.code,It.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(It.unableToParseTokenRequestCacheError.code,It.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(It.noTokenRequestCacheError.code,It.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(It.authRequestNotSet.code,It.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(It.noCachedAuthorityError.code,It.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(It.invalidCacheType.code,""+It.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(It.notInBrowserEnvironment.code,It.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(It.databaseNotOpen.code,It.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(It.noNetworkConnectivity.code,It.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,r){return new e(It.postRequestFailed.code,It.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createGetRequestFailedError=function(t,r){return new e(It.getRequestFailed.code,It.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(It.failedToParseNetworkResponse.code,It.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(It.unableToLoadTokenError.code,It.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(It.signingKeyNotFoundInStorage.code,It.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(It.authCodeRequired.code,It.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(It.authCodeOrNativeAccountRequired.code,It.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(It.spaCodeAndNativeAccountPresent.code,It.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(It.databaseUnavailable.code,It.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(It.unableToAcquireTokenFromNativePlatform.code,It.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(It.nativeHandshakeTimeout.code,It.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(It.nativeExtensionNotInstalled.code,It.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(It.nativeConnectionNotEstablished.code,It.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(It.nativeBrokerCalledBeforeInitialize.code,It.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(It.nativePromptNotSupported.code,It.nativePromptNotSupported.desc)},e}(wn),Pc={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},b0={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},i9=(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"}(wu=wu||{}),function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"}(go=go||{}),function(n){n.GET="GET",n.POST="POST"}(yl=yl||{}),function(n){n.AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",n.SESSION_STATE="session.state",n.REQUEST_STATE="request.state",n.NONCE_IDTOKEN="nonce.id_token",n.ORIGIN_URI="request.origin",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.REQUEST_PARAMS="request.params",n.SCOPES="scopes",n.INTERACTION_STATUS_KEY="interaction.status",n.CCS_CREDENTIAL="ccs.credential",n.CORRELATION_ID="request.correlationId",n.NATIVE_REQUEST="request.native",n.REDIRECT_CONTEXT="request.redirect.context"}(Mr=Mr||{}),function(n){n.ACCOUNT_KEYS="msal.account.keys",n.TOKEN_KEYS="msal.token.keys"}(_l=_l||{}),function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"}(Pm=Pm||{}),function(n){n[n.acquireTokenRedirect=861]="acquireTokenRedirect",n[n.acquireTokenPopup=862]="acquireTokenPopup",n[n.ssoSilent=863]="ssoSilent",n[n.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",n[n.handleRedirectPromise=865]="handleRedirectPromise",n[n.acquireTokenByCode=866]="acquireTokenByCode",n[n.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",n[n.logout=961]="logout",n[n.logoutPopup=962]="logoutPopup"}(_i=_i||{}),function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"}(hn=hn||{}),function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"}(Qj=Qj||{}),{scopes:f0}),Mm="jwk",nR=(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"}(Jj=Jj||{}),"msal.db"),Kwe=1,Zwe=nR+".keys",ns=(function(n){n[n.Default=0]="Default",n[n.AccessToken=1]="AccessToken",n[n.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",n[n.RefreshToken=3]="RefreshToken",n[n.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",n[n.Skip=5]="Skip"}(ts=ts||{}),{redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}}),OE=function(n){function e(t,r){return t=n.call(this,t,r)||this,t.name="BrowserConfigurationAuthError",Object.setPrototypeOf(t,e.prototype),t}return Zo(e,n),e.createRedirectUriEmptyError=function(){return new e(ns.redirectUriNotSet.code,ns.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(ns.postLogoutUriNotSet.code,ns.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(ns.storageNotSupportedError.code,ns.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(ns.noRedirectCallbacksSet.code,ns.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(ns.stubPcaInstanceCalled.code,ns.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(ns.inMemRedirectUnavailable.code,ns.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(ns.entropyNotProvided.code,ns.entropyNotProvided.desc)},e}(wn),o9=function(){function n(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return n.prototype.validateWindowStorage=function(e){if(e!==go.LocalStorage&&e!==go.SessionStorage||!window[e])throw OE.createStorageNotSupportedError(e)},n.prototype.getItem=function(e){return this.windowStorage.getItem(e)},n.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},n.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},n}(),rR=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(e){return this.cache.get(e)||null},n.prototype.setItem=function(e,t){this.cache.set(e,t)},n.prototype.removeItem=function(e){this.cache.delete(e)},n.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,r){e.push(r)}),e},n.prototype.containsKey=function(e){return this.cache.has(e)},n.prototype.clear=function(){this.cache.clear()},n}(),a9=function(){function n(){}return n.extractBrowserRequestState=function(e,t){if(Kt.isEmpty(t))return null;try{return bu.parseRequestState(e,t).libraryState.meta}catch(r){throw en.createInvalidStateError(t,r)}},n.parseServerResponseFromHash=function(e){return e?(e=new wr(e),wr.getDeserializedHash(e.getHash())):{}},n}(),iR=function(n){function e(t,r,i,o){return t=n.call(this,t,i,o)||this,t.COOKIE_LIFE_MULTIPLIER=864e5,t.cacheConfig=r,t.logger=o,t.internalStorage=new rR,t.browserStorage=t.setupBrowserStorage(t.cacheConfig.cacheLocation),t.temporaryCacheStorage=t.setupTemporaryCacheStorage(t.cacheConfig.temporaryCacheLocation,t.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(t.migrateCacheEntries(),t.createKeyMaps()),t}return Zo(e,n),e.prototype.setupBrowserStorage=function(t){switch(t){case go.LocalStorage:case go.SessionStorage:try{return new o9(t)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=go.MemoryStorage,new rR},e.prototype.setupTemporaryCacheStorage=function(t,r){switch(r){case go.LocalStorage:case go.SessionStorage:try{return new o9(t||go.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}case go.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,r=Le.CACHE_PREFIX+"."+xo.ID_TOKEN,i=Le.CACHE_PREFIX+"."+xo.CLIENT_INFO,o=Le.CACHE_PREFIX+"."+xo.ERROR,a=Le.CACHE_PREFIX+"."+xo.ERROR_DESC,l=[this.browserStorage.getItem(r),this.browserStorage.getItem(i),this.browserStorage.getItem(o),this.browserStorage.getItem(a)];[xo.ID_TOKEN,xo.CLIENT_INFO,xo.ERROR,xo.ERROR_DESC].forEach(function(h,p){return t.migrateCacheEntry(h,l[p])})},e.prototype.migrateCacheEntry=function(t,r){r&&this.setTemporaryCache(t,r,!0)},e.prototype.createKeyMaps=function(){var t=this,r=(this.logger.trace("BrowserCacheManager - createKeyMaps called."),this.getItem(_l.ACCOUNT_KEYS)),i=this.getItem(_l.TOKEN_KEYS+"."+this.clientId);r&&i?this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."):this.browserStorage.getKeys().forEach(function(o){var a;if(t.isCredentialKey(o)&&(a=t.getItem(o))){var l,h,p=t.validateAndParseJson(a);if(p&&p.hasOwnProperty("credentialType"))switch(p.credentialType){case In.ID_TOKEN:if(Kf.isIdTokenEntity(p))return t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+o+" found, saving key to token key map"),h=es.toObject(new Kf,p),h=t.updateCredentialCacheKey(o,h),void t.addTokenKey(h,In.ID_TOKEN);t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+o);break;case In.ACCESS_TOKEN:case In.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Zf.isAccessTokenEntity(p))return t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+o+" found, saving key to token key map"),l=es.toObject(new Zf,p),h=t.updateCredentialCacheKey(o,l),void t.addTokenKey(h,In.ACCESS_TOKEN);t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+o);break;case In.REFRESH_TOKEN:if(Cm.isRefreshTokenEntity(p))return t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+o+" found, saving key to token key map"),l=es.toObject(new Cm,p),h=t.updateCredentialCacheKey(o,l),void t.addTokenKey(h,In.REFRESH_TOKEN);t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+o)}}t.isAccountKey(o)&&(a=t.getItem(o))&&(a=t.validateAndParseJson(a))&&Qo.isAccountEntity(a)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+o+" found, saving key to account key map"),t.addAccountKeyToMap(o))})},e.prototype.validateAndParseJson=function(t){try{var r=JSON.parse(t);return r&&typeof r=="object"?r:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,r){this.browserStorage.setItem(t,r)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var r=this.getItem(t);return(r=r&&this.validateAndParseJson(r))&&Qo.isAccountEntity(r)?es.toObject(new Qo,r):(this.removeAccountKeyFromMap(t),null)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var r=t.generateAccountKey();this.setItem(r,JSON.stringify(t)),this.addAccountKeyToMap(r)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(_l.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var r=this.getAccountKeys();r.indexOf(t)===-1?(r.push(t),this.setItem(_l.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(i){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+i);var r=this.getAccountKeys(),i=r.indexOf(i);-1l)i.removeHiddenIframe(t),clearInterval(h),a(Vt.createMonitorIframeTimeoutError());else{var p=Le.EMPTY_STRING,g=t.contentWindow;try{p=g?g.location.href:Le.EMPTY_STRING}catch{}Kt.isEmpty(p)||(p=g?g.location.hash:Le.EMPTY_STRING,wr.hashContainsKnownProperties(p)&&(i.removeHiddenIframe(t),clearInterval(h),o(p)))}},i.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var r=this;return this.performanceClient.addQueueMeasurement(nt.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(i,o){var a=r.createHiddenIframe();setTimeout(function(){a?(a.src=t,i(a)):o("Unable to load iframe")},r.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var r=this.createHiddenIframe();return r.src=t,r},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}(aR),sxe=function(n){function e(t,r,i,o,a,l,h,p,g,_,x){return t=n.call(this,t,r,i,o,a,l,p,_,x)||this,t.apiId=h,t.nativeStorage=g,t}return Zo(e,n),e.prototype.acquireToken=function(t){return dt(this,void 0,void 0,function(){var r,i,o,a;return ft(this,function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(nt.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),r=this.performanceClient.startMeasurement(nt.SilentIframeClientAcquireToken,t.correlationId),Kt.isEmpty(t.loginHint)&&Kt.isEmpty(t.sid)&&(!t.account||Kt.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==da.NONE&&t.prompt!==da.NO_SESSION)throw r.endMeasurement({success:!1}),Vt.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(nt.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(yn(yn({},t),{prompt:t.prompt||da.NONE}),hn.Silent)];case 1:i=l.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||Le.EMPTY_STRING,i.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(nt.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 3:return a=l.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(nt.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(a,i).then(function(h){return r.endMeasurement({success:!0,fromCache:!1,requestId:h.requestId}),h})];case 4:return[2,l.sent()];case 5:throw(a=l.sent())instanceof wn&&a.setCorrelationId(this.correlationId),o.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(i.state),r.endMeasurement({errorCode:a instanceof wn&&a.errorCode||void 0,subErrorCode:a instanceof wn&&a.subError||void 0,success:!1}),a;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Vt.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,r){return dt(this,void 0,void 0,function(){var i,o,a,l,h,p,g,_=this;return ft(this,function(x){switch(x.label){case 0:return this.performanceClient.addQueueMeasurement(nt.SilentIframeClientTokenHelper,r.correlationId),this.performanceClient.setPreQueueTime(nt.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 1:return i=x.sent(),this.performanceClient.setPreQueueTime(nt.GetAuthCodeUrl,r.correlationId),[4,t.getAuthCodeUrl(yn(yn({},r),{nativeBroker:Xf.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 2:return a=x.sent(),o=new u9(t,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(nt.SilentHandlerInitiateAuthRequest,r.correlationId),[4,o.initiateAuthRequest(a)];case 3:return a=x.sent(),this.performanceClient.setPreQueueTime(nt.SilentHandlerMonitorIframeForHash,r.correlationId),[4,o.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(l=x.sent(),p=wr.getDeserializedHash(l),h=this.validateAndExtractStateFromHash(p,hn.Silent,i.correlationId),p.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),this.nativeMessageHandler)return p=new km(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,p.accountId,this.browserStorage,this.correlationId),g=bu.parseRequestState(this.browserCrypto,h).userRequestState,[2,p.acquireToken(yn(yn({},r),{state:g,prompt:r.prompt||da.NONE})).finally(function(){_.browserStorage.cleanRequestByState(h)})];throw Vt.createNativeConnectionNotEstablishedError()}return this.performanceClient.setPreQueueTime(nt.HandleCodeResponseFromHash,r.correlationId),[2,o.handleCodeResponseFromHash(l,h,t.authority,this.networkClient)]}})})},e}(Rm),cxe=function(n){function e(){return n!==null&&n.apply(this,arguments)||this}return Zo(e,n),e.prototype.acquireToken=function(t){return dt(this,void 0,void 0,function(){var r,i,o,a,l,h=this;return ft(this,function(p){switch(p.label){case 0:return this.performanceClient.addQueueMeasurement(nt.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(nt.InitializeBaseRequest,t.correlationId),i=[yn({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return r=yn.apply(void 0,i.concat([p.sent()])),o=this.performanceClient.startMeasurement(nt.SilentRefreshClientAcquireToken,r.correlationId),a=this.initializeServerTelemetryManager(_i.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,r.authority,r.azureCloudOptions)];case 2:return l=p.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(nt.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,l.acquireTokenByRefreshToken(r).then(function(g){return o.endMeasurement({success:!0,fromCache:g.fromCache,requestId:g.requestId}),g}).catch(function(g){throw g instanceof wn&&g.setCorrelationId(h.correlationId),a.cacheFailedRequest(g),o.endMeasurement({errorCode:g.errorCode,subErrorCode:g.subError,success:!1}),g})]}})})},e.prototype.logout=function(){return Promise.reject(Vt.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,r,i){return dt(this,void 0,void 0,function(){var o;return ft(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(nt.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,i)];case 1:return o=a.sent(),[2,new Yj(o,this.performanceClient)]}})})},e}(Rm),lxe=function(){function n(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(e){var t;return typeof window<"u"?(t=this.browserCrypto.createNewGuid(),this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t):null},n.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},n.prototype.enableAccountStorageEvents=function(){typeof window<"u"&&(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},n.prototype.disableAccountStorageEvents=function(){typeof window<"u"&&(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},n.prototype.emitEvent=function(e,t,r,i){var o,a=this;typeof window<"u"&&(o={eventType:e,interactionType:t||null,payload:r||null,error:i||null,timestamp:Date.now()},this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(l,h){a.logger.verbose("Emitting event to callback "+h+": "+e),l.apply(null,[o])}))},n.prototype.handleAccountCacheChange=function(e){try{var t,r,i=e.newValue||e.oldValue;i&&typeof(t=JSON.parse(i))=="object"&&Qo.isAccountEntity(t)&&(r=es.toObject(new Qo,t).getAccountInfo(),!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Fn.ACCOUNT_ADDED,void 0,r)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Fn.ACCOUNT_REMOVED,void 0,r)))}catch{}},n}(),pa=function(){function n(){}return n.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},n}(),h9=function(){function n(e){this.cryptoObj=e}return n.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,pa.decimalToHex(e[0])+pa.decimalToHex(e[1])+pa.decimalToHex(e[2])+pa.decimalToHex(e[3])+"-"+pa.decimalToHex(e[4])+pa.decimalToHex(e[5])+"-"+pa.decimalToHex(e[6])+pa.decimalToHex(e[7])+"-"+pa.decimalToHex(e[8])+pa.decimalToHex(e[9])+"-"+pa.decimalToHex(e[10])+pa.decimalToHex(e[11])+pa.decimalToHex(e[12])+pa.decimalToHex(e[13])+pa.decimalToHex(e[14])+pa.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",i=0,o=Le.EMPTY_STRING,a=0;a<36;a++)t[a]!=="-"&&t[a]!=="4"&&(i=16*Math.random()|0),o+=t[a]==="x"?r[i]:t[a]==="y"?r[i=i&3|8]:t[a];return o}},n.prototype.isGuid=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},n}(),xu=function(){function n(){}return n.stringToUtf8Arr=function(e){for(var t,r=0,i=e.length,o=0;o>>6):(t<65536?a[l++]=224+(t>>>12):(t<2097152?a[l++]=240+(t>>>18):(t<67108864?a[l++]=248+(t>>>24):(a[l++]=252+(t>>>30),a[l++]=128+(t>>>24&63)),a[l++]=128+(t>>>18&63)),a[l++]=128+(t>>>12&63)),a[l++]=128+(t>>>6&63)),a[l++]=128+(63&t));return a},n.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i>>(t=l%3)&24),t!=2&&e.length-l!=1||(i+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(63&a)),a=0);return r==0?i:i.substring(0,i.length-r)+(r==1?"=":"==")},n.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},n}(),uxe=function(){function n(){}return n.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}return e=this.base64DecToArr(t),xu.utf8ArrToString(e)},n.prototype.base64DecToArr=function(e,t){for(var r,i=e.replace(/[^A-Za-z0-9\+\/]/g,Le.EMPTY_STRING),o=i.length,a=t?Math.ceil((3*o+1>>>2)/t)*t:3*o+1>>>2,l=new Uint8Array(a),h=void 0,p=0,g=0,_=0;_>>(16>>>h&24)&255;p=0}return l},n.prototype.b64ToUint6=function(e){return 64>(-2*i&6))))r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function Ixe(n){var e=n.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(y9(e).replace(/(.)/g,function(t,r){return r=r.charCodeAt(0).toString(16).toUpperCase(),"%"+(r=r.length<2?"0"+r:r)}))}catch{return y9(e)}}function NE(n){this.message=n}function Pxe(n,e){if(typeof n!="string")throw new NE("Invalid token specified");e=(e=e||{}).header===!0?0:1;try{return JSON.parse(Ixe(n.split(".")[e]))}catch(t){throw new NE("Invalid token specified: "+t.message)}}NE.prototype=new Error,NE.prototype.name="InvalidTokenError";var Mxe=function(){function n(e){var t=this,r=(this.fallbackStorage={},this._triggerTokenFetch=function(i){return i===void 0&&(i=!1),new Promise(function(o,a){typeof t.options.getToken!="function"?a(new Error("Token cannot be ".concat(i?"fetched":"renewed"," because getToken was not set or is not a function."))):t.options.getToken(function(l){try{var h=t._getTokenExpiry(l)-n.constants.tokenRefreshClockSkew;t._storeToken(l),t._setTimeoutTokenFetch(h),o()}catch{a(new Error("Invalid token returned by getToken function"))}},function(l){a(l)},t.map)})},this._setTimeoutTokenFetch=function(i){clearTimeout(t.tokenTimeOutHandle),t.tokenTimeOutHandle=setTimeout(t._triggerTokenFetch,Math.min(1e3*i,2147483647))},e.getServiceOptions());this.options=r.authOptions,this.sessionId=r.sessionId,this.map=e}return n.prototype.initialize=function(){var e=this;return this.initPromise||(this.initPromise=new Promise(function(t,r){if(e.options.authType===ri.subscriptionKey)t();else if(e.options.authType===ri.aad)e.options.authContext=e.options.authContext||n.getDefaultAuthContext(e.options),e.options.authContext.handleRedirectPromise().then(function(){setTimeout(function(){return e._loginAndAcquireTokenForAAD(t,r)})}).catch(function(o){r(new Error("Error logging in the AAD users: "+o))});else if(e.options.authType===ri.anonymous)t(e._triggerTokenFetch(!0));else if(e.options.authType===ri.sas){if(e.options.sasToken){var i=-1;try{i=e._getTokenExpiry(e.options.sasToken)}catch{return void r(new Error("An invalid sasToken was provided."))}if(i>n.constants.tokenRefreshClockSkew)return e._storeToken(e.options.sasToken),e._setTimeoutTokenFetch(i-n.constants.tokenRefreshClockSkew),void t()}t(e._triggerTokenFetch())}else r(new Error("An invalid authentication type was specified."))})),this.initPromise},n.prototype.dispose=function(){this.tokenTimeOutHandle&&(clearTimeout(this.tokenTimeOutHandle),this.tokenTimeOutHandle=null)},n.getDefaultAuthContext=function(e){if(!e.aadAppId)throw new Error("No AAD app ID was specified.");if(e.aadTenant)return this.defaultAuthContext||(this.defaultAuthContext=new Axe({auth:{authority:"".concat(e.aadInstance||yc.aadInstance).concat(e.aadTenant),clientId:e.aadAppId},cache:{cacheLocation:this.constants.preferredCacheLocation}})),this.defaultAuthContext;throw new Error("No AAD tenant was specified.")},n.prototype._loginAndAcquireTokenForAAD=function(e,t){var r=((r=this.options.authContext)==null?void 0:r.getAllAccounts())||[];r.length===0?(this.options.authContext.loginRedirect(),e()):(this.options.authContext.setActiveAccount(r[0]),this._acquireTokenForAAD(e,t))},n.prototype._acquireTokenForAAD=function(e,t){var r=this,i={scopes:[Nn.aadResourceId]};this.options.authContext.acquireTokenSilent(i).then(function(o){r._saveItem(n.constants.storage.tokenKey,o.accessToken);var a={map:r.map,type:n.constants.events.tokenAcquired},a=(r.map.events.invoke(n.constants.events.tokenAcquired,a),clearTimeout(r.tokenTimeOutHandle),new Date(o.expiresOn).getTime()-Date.now());r.tokenTimeOutHandle=setTimeout(function(){return r._acquireTokenForAAD()},a),e!=null&&e()}).catch(function(o){if(o instanceof tc)return r.options.authContext.acquireTokenRedirect(i),e==null?void 0:e();t!=null&&t(o)})},n.prototype.getAuthType=function(){return this.options.authType},n.prototype.getClientId=function(){return this.options.clientId},n.prototype.getToken=function(){if(this.options.authType===ri.aad)return this._getItem(n.constants.storage.tokenKey);if(this.options.authType!==ri.anonymous&&this.options.authType!==ri.sas)return this.options.authType===ri.subscriptionKey?this.options.subscriptionKey:void 0;var e=this._getItem(n.constants.storage.tokenKey);if(e){var t=this._getTokenExpiry(e);if(t<300&&0=n.length?void 0:n)&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Rxe=function(){function n(e){for(var t in this.map=e,this.controlContainer=document.createElement("div"),this.controlContainer.classList.add("atlas-control-container"),xa){var r;xa.hasOwnProperty(t)&&((r=document.createElement("div")).classList.add(xa[t]),r.classList.add("subcontrol-container"),this.controlContainer.appendChild(r))}this.map.getMapContainer().appendChild(this.controlContainer),this.controls=new Set}return n.prototype.add=function(e,t){var r,i;if(Array.isArray(e))try{for(var o=_9(e),a=o.next();!a.done;a=o.next()){var l=a.value;this._add(l,t)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}else this._add(e,t)},n.prototype.getControls=function(){return Array.from(this.controls)},n.prototype.remove=function(e){var t,r;if(Array.isArray(e))try{for(var i=_9(e),o=i.next();!o.done;o=i.next()){var a=o.value;this._remove(a)}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}else this._remove(e)},n.prototype._add=function(i,o){this.controls.add(i);var r=new noe().merge(o),i=i.onAdd(this.map,o),o=this.controlContainer.getElementsByClassName(r.position);if(!(0=n.length?void 0:n)&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lR=window&&window.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r,i,o=t.call(n),a=[];try{for(;(e===void 0||0=n.length?void 0:n)&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Lxe=function(){function n(e){this.markers=new Set,this.map=e}return n.prototype.add=function(e,t){var r,i;if(Array.isArray(e))try{for(var o=b9(e),a=o.next();!a.done;a=o.next()){var l=a.value;this._addMarker(l,t)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}else this._addMarker(e,t)},n.prototype._addMarker=function(e,t){e._addToMap(this.map,t),this.markers.add(e)},n.prototype.getMarkers=function(){return Array.from(this.markers)},n.prototype.remove=function(e){var t,r;if(Array.isArray(e))try{for(var i=b9(e),o=i.next();!o.done;o=i.next()){var a=o.value;this._removeMarker(a)}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}else this._removeMarker(e)},n.prototype._removeMarker=function(e){var t=this;e instanceof p2?(e._removeFromMap(),this.markers.delete(e)):this.markers.forEach(function(r){r._getId()===e&&(r._removeFromMap(),t.markers.delete(r))})},n.prototype.clear=function(){var e=this;this.markers.forEach(function(t){t._removeFromMap(),e.markers.delete(t)})},n}(),Nxe=function(){function n(e){this.userImages=new ws,this.imageLoadTimeout=5e3,this.map=e}return n.prototype.add=function(e,t,r){var i=this;return new Promise(function(o,a){var l,h,p;i.userImages.has(e)?o():t instanceof HTMLImageElement||t instanceof ImageData?(i.map._getMap().addImage(e,t,r),i.userImages.set(e,{image:t,meta:r}),o()):typeof t=="string"&&(h=void 0,h=/