!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,(function(e){return t[e]}).bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({0:function(t,e,n){t.exports=n("zUnb")},"0S4P":function(t,e){t.exports=ng.common},Vgaj:function(t,e){t.exports=rxjs},"g/Wr":function(t,e){t.exports=ng.elements},"vG+p":function(t,e){t.exports=ng.platformBrowser},vOrQ:function(t,e){t.exports=ng.core},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("vG+p"),r=n("vOrQ"),o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function s(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(t){t.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(r){if(t=!1,!e){if(google.maps.event.trigger(i,"click",n.cluster_),google.maps.event.trigger(i,"clusterclick",n.cluster_),i.getZoomOnClick()){var o=i.getMaxZoom(),s=n.cluster_.getBounds();i.getMap().fitBounds(s),setTimeout((function(){i.getMap().fitBounds(s),null!==o&&i.getMap().getZoom()>o&&i.getMap().setZoom(o+1)}),100)}r.cancelBubble=!0,r.stopPropagation&&r.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(i,"mouseover",n.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(i,"mouseout",n.cluster_)}))},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),this.div_.title=void 0===this.sums_.title||""===this.sums_.title?this.cluster_.getMarkerClusterer().getTitle():this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){return'\n
\n \n
\n"},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),e=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),i={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())i={width:u(this.style.width),height:u(this.style.height)};else{var r=[-1*n,-1*e+this.style.width,-1*n+this.style.height,-1*e];i={clip:"rect("+r[0]+"px, "+r[1]+"px, "+r[2]+"px, "+r[3]+"px)"}}var o=l(a({position:"absolute",top:u(n),left:u(e)},i));return''},e.prototype.useStyle=function(t){this.sums_=t;var e=Math.max(0,t.index-1);e=Math.min(this.styles_.length-1,e),this.style=this.styles_[e],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+e)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return l({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:u(t.y),left:u(t.x),width:u(this.style.width),height:u(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return e.x=Math.floor(e.x-this.anchorIcon_[1]),e.y=Math.floor(e.y-this.anchorIcon_[0]),e},e}(c),f=function(){function t(t){this.markerClusterer_=t,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new h(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),n=0;no)t.getMap()!==this.map_&&t.setMap(this.map_);else if(re)this.clusterIcon_.hide();else if(t0))for(var t=0;t3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var i=this.getExtendedBounds(n),r=Math.min(t+this.batchSize_,this.markers_.length),o=t;o=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function x(){for(var t=[],e=0;e0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,i):e.flush(this)},e}(function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return _(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return _(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(A))),ft=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),pt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(function(t){function e(n,i){void 0===i&&(i=ft.now);var r=t.call(this,n,(function(){return e.delegate&&e.delegate!==r?e.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return _(e,t),e.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,r):t.prototype.schedule.call(this,n,i,r)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(ft)))(ht);function dt(t){return t&&"function"==typeof t.schedule}function gt(t,e){return e?q(t,e):new W(V(t))}var mt=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t;switch(this.kind){case"N":return function(){for(var t=[],e=0;ethis._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new bt(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new st;if(this.isStopped||this.hasError?e=A.EMPTY:(this.observers.push(t),e=new at(this,t)),r&&t.add(t=new yt(t,r)),n)for(var s=0;se&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i},e}(lt),bt=function(){return function(t,e){this.time=t,this.value=e}}();function wt(t){return function(e){return e.lift(new xt(t))}}var xt=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Mt(t),i=$(this.notifier,new X(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),Mt=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return _(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(Q);const kt=["*"];class Ct{constructor(t){this._ngZone=t,this._pending=[],this._listeners=[],this._targetStream=new y.BehaviorSubject(void 0)}_clearListeners(){for(const t of this._listeners)t.remove();this._listeners=[]}getLazyEmitter(t){return this._targetStream.pipe(function t(e,n){return"function"==typeof n?function(i){return i.pipe(t((function(t,i){return(r=e(t,i),r instanceof W?r:new W(G(r))).pipe(N((function(e,r){return n(t,e,i,r)})));var r})))}:function(t){return t.lift(new J(e))}}(e=>{const n=new y.Observable(i=>{if(!e)return void this._pending.push({observable:n,observer:i});const r=e.addListener(t,t=>{this._ngZone.run(()=>i.next(t))});return this._listeners.push(r),()=>r.remove()});return n}))}setTarget(t){const e=this._targetStream.value;t!==e&&(e&&(this._clearListeners(),this._pending=[]),this._targetStream.next(t),this._pending.forEach(t=>t.observable.subscribe(t.observer)),this._pending=[])}destroy(){this._clearListeners(),this._pending=[],this._targetStream.complete()}}const It={center:{lat:37.421995,lng:-122.084092},zoom:17};let St=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._eventManager=new Ct(this._ngZone),this._options=new y.BehaviorSubject(It),this._center=new y.BehaviorSubject(void 0),this._zoom=new y.BehaviorSubject(void 0),this._destroy=new y.Subject,this.height="500px",this.width="500px",this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.centerChanged=this._eventManager.getLazyEmitter("center_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.headingChanged=this._eventManager.getLazyEmitter("heading_changed"),this.idle=this._eventManager.getLazyEmitter("idle"),this.maptypeidChanged=this._eventManager.getLazyEmitter("maptypeid_changed"),this.mapMousemove=this._eventManager.getLazyEmitter("mousemove"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.projectionChanged=this._eventManager.getLazyEmitter("projection_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.tilesloaded=this._eventManager.getLazyEmitter("tilesloaded"),this.tiltChanged=this._eventManager.getLazyEmitter("tilt_changed"),this.zoomChanged=this._eventManager.getLazyEmitter("zoom_changed"),this._isBrowser=Object(m.isPlatformBrowser)(n),this._isBrowser&&window}set center(t){this._center.next(t)}set zoom(t){this._zoom.next(t)}set options(t){this._options.next(t||It)}ngOnChanges(){this._setSize(),this.googleMap&&this.mapTypeId&&this.googleMap.setMapTypeId(this.mapTypeId)}ngOnInit(){this._isBrowser&&(this._mapEl=this._elementRef.nativeElement.querySelector(".map-container"),this._setSize(),this._googleMapChanges=this._initializeMap(this._combineOptions()),this._googleMapChanges.subscribe(t=>{this.googleMap=t,this._eventManager.setTarget(this.googleMap)}),this._watchForOptionsChanges(),this._watchForCenterChanges(),this._watchForZoomChanges())}ngOnDestroy(){this._eventManager.destroy(),this._destroy.next(),this._destroy.complete()}fitBounds(t,e){this._assertInitialized(),this.googleMap.fitBounds(t,e)}panBy(t,e){this._assertInitialized(),this.googleMap.panBy(t,e)}panTo(t){this._assertInitialized(),this.googleMap.panTo(t)}panToBounds(t,e){this._assertInitialized(),this.googleMap.panToBounds(t,e)}getBounds(){return this._assertInitialized(),this.googleMap.getBounds()||null}getCenter(){return this._assertInitialized(),this.googleMap.getCenter()}getClickableIcons(){return this._assertInitialized(),this.googleMap.getClickableIcons()}getHeading(){return this._assertInitialized(),this.googleMap.getHeading()}getMapTypeId(){return this._assertInitialized(),this.googleMap.getMapTypeId()}getProjection(){return this._assertInitialized(),this.googleMap.getProjection()}getStreetView(){return this._assertInitialized(),this.googleMap.getStreetView()}getTilt(){return this._assertInitialized(),this.googleMap.getTilt()}getZoom(){return this._assertInitialized(),this.googleMap.getZoom()}get controls(){return this._assertInitialized(),this.googleMap.controls}get data(){return this._assertInitialized(),this.googleMap.data}get mapTypes(){return this._assertInitialized(),this.googleMap.mapTypes}get overlayMapTypes(){return this._assertInitialized(),this.googleMap.overlayMapTypes}_setSize(){if(this._mapEl){const t=this._mapEl.style;t.height=null===this.height?"":zt(this.height)||"500px",t.width=null===this.width?"":zt(this.width)||"500px"}}_combineOptions(){return Object(y.combineLatest)([this._options,this._center,this._zoom]).pipe(N(([t,e,n])=>{var i;return Object.assign(Object.assign({},t),{center:e||t.center||It.center,zoom:null!==(i=null!=n?n:t.zoom)&&void 0!==i?i:It.zoom,mapTypeId:this.mapTypeId})}))}_initializeMap(t){return t.pipe(it(1),N(t=>this._ngZone.runOutsideAngular(()=>new google.maps.Map(this._mapEl,t))),function(t,e,n){var i;return i={bufferSize:1,windowTime:void 0,refCount:!1,scheduler:void 0},function(t){return t.lift(function(t){var e,n,i=t.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=t.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,a=t.refCount,c=t.scheduler,l=0,u=!1,h=!1;return function(t){var i;l++,!e||u?(u=!1,e=new _t(r,s,c),i=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){u=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}})):i=e.subscribe(this),this.add((function(){l--,i.unsubscribe(),n&&!h&&a&&0===l&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(i))}}())}_watchForOptionsChanges(){Object(y.combineLatest)([this._googleMapChanges,this._options]).pipe(wt(this._destroy)).subscribe(([t,e])=>{t.setOptions(e)})}_watchForCenterChanges(){Object(y.combineLatest)([this._googleMapChanges,this._center]).pipe(wt(this._destroy)).subscribe(([t,e])=>{e&&t.setCenter(e)})}_watchForZoomChanges(){Object(y.combineLatest)([this._googleMapChanges,this._zoom]).pipe(wt(this._destroy)).subscribe(([t,e])=>{void 0!==e&&t.setZoom(e)})}_assertInitialized(){}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](r.PLATFORM_ID))},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["google-map"]],inputs:{height:"height",width:"width",center:"center",zoom:"zoom",options:"options",mapTypeId:"mapTypeId"},outputs:{boundsChanged:"boundsChanged",centerChanged:"centerChanged",mapClick:"mapClick",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",mapDragstart:"mapDragstart",headingChanged:"headingChanged",idle:"idle",maptypeidChanged:"maptypeidChanged",mapMousemove:"mapMousemove",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",projectionChanged:"projectionChanged",mapRightclick:"mapRightclick",tilesloaded:"tilesloaded",tiltChanged:"tiltChanged",zoomChanged:"zoomChanged"},exportAs:["googleMap"],features:[r["\u0275\u0275NgOnChangesFeature"]],ngContentSelectors:kt,decls:2,vars:0,consts:[[1,"map-container"]],template:function(t,e){1&t&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275element"](0,"div",0),r["\u0275\u0275projection"](1))},encapsulation:2,changeDetection:0}),t})();const Et=/([A-Za-z%]+)$/;function zt(t){return null==t?"":Et.test(t)?t:`${t}px`}let Ot=(()=>{class t{constructor(t,e,n){this._googleMap=t,this._elementRef=e,this._ngZone=n,this._eventManager=new Ct(this._ngZone),this._options=new y.BehaviorSubject({}),this._position=new y.BehaviorSubject(void 0),this._destroy=new y.Subject,this.closeclick=this._eventManager.getLazyEmitter("closeclick"),this.contentChanged=this._eventManager.getLazyEmitter("content_changed"),this.domready=this._eventManager.getLazyEmitter("domready"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed")}set options(t){this._options.next(t||{})}set position(t){this._position.next(t)}ngOnInit(){this._googleMap._isBrowser&&(this._combineOptions().pipe(it(1)).subscribe(t=>{this._ngZone.runOutsideAngular(()=>{this.infoWindow=new google.maps.InfoWindow(t)}),this._eventManager.setTarget(this.infoWindow)}),this._watchForOptionsChanges(),this._watchForPositionChanges())}ngOnDestroy(){this._eventManager.destroy(),this._destroy.next(),this._destroy.complete(),this.infoWindow&&this.close()}close(){this._assertInitialized(),this.infoWindow.close()}getContent(){return this._assertInitialized(),this.infoWindow.getContent()}getPosition(){return this._assertInitialized(),this.infoWindow.getPosition()}getZIndex(){return this._assertInitialized(),this.infoWindow.getZIndex()}open(t){this._assertInitialized();const e=t?t.getAnchor():void 0;this.infoWindow.get("anchor")===e&&e||(this._elementRef.nativeElement.style.display="",this.infoWindow.open(this._googleMap.googleMap,e))}_combineOptions(){return Object(y.combineLatest)([this._options,this._position]).pipe(N(([t,e])=>Object.assign(Object.assign({},t),{position:e||t.position,content:this._elementRef.nativeElement})))}_watchForOptionsChanges(){this._options.pipe(wt(this._destroy)).subscribe(t=>{this._assertInitialized(),this.infoWindow.setOptions(t)})}_watchForPositionChanges(){this._position.pipe(wt(this._destroy)).subscribe(t=>{t&&(this._assertInitialized(),this.infoWindow.setPosition(t))})}_assertInitialized(){}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](St),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["map-info-window"]],hostAttrs:[2,"display","none"],inputs:{options:"options",position:"position"},outputs:{closeclick:"closeclick",contentChanged:"contentChanged",domready:"domready",positionChanged:"positionChanged",zindexChanged:"zindexChanged"},exportAs:["mapInfoWindow"]}),t})();const At={position:{lat:37.421995,lng:-122.084092}};let Tt=(()=>{class t{constructor(t,e){this._googleMap=t,this._ngZone=e,this._eventManager=new Ct(this._ngZone),this.animationChanged=this._eventManager.getLazyEmitter("animation_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.clickableChanged=this._eventManager.getLazyEmitter("clickable_changed"),this.cursorChanged=this._eventManager.getLazyEmitter("cursor_changed"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.draggableChanged=this._eventManager.getLazyEmitter("draggable_changed"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.flatChanged=this._eventManager.getLazyEmitter("flat_changed"),this.iconChanged=this._eventManager.getLazyEmitter("icon_changed"),this.mapMousedown=this._eventManager.getLazyEmitter("mousedown"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.mapMouseup=this._eventManager.getLazyEmitter("mouseup"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.shapeChanged=this._eventManager.getLazyEmitter("shape_changed"),this.titleChanged=this._eventManager.getLazyEmitter("title_changed"),this.visibleChanged=this._eventManager.getLazyEmitter("visible_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed")}set title(t){this._title=t}set position(t){this._position=t}set label(t){this._label=t}set clickable(t){this._clickable=t}set options(t){this._options=t}ngOnInit(){this._googleMap._isBrowser&&(this._ngZone.runOutsideAngular(()=>{this.marker=new google.maps.Marker(this._combineOptions())}),this._assertInitialized(),this.marker.setMap(this._googleMap.googleMap),this._eventManager.setTarget(this.marker))}ngOnChanges(t){const{marker:e,_title:n,_position:i,_label:r,_clickable:o}=this;e&&(t.options&&e.setOptions(this._combineOptions()),t.title&&void 0!==n&&e.setTitle(n),t.position&&i&&e.setPosition(i),t.label&&void 0!==r&&e.setLabel(r),t.clickable&&void 0!==o&&e.setClickable(o))}ngOnDestroy(){this._eventManager.destroy(),this.marker&&this.marker.setMap(null)}getAnimation(){return this._assertInitialized(),this.marker.getAnimation()||null}getClickable(){return this._assertInitialized(),this.marker.getClickable()}getCursor(){return this._assertInitialized(),this.marker.getCursor()||null}getDraggable(){return this._assertInitialized(),!!this.marker.getDraggable()}getIcon(){return this._assertInitialized(),this.marker.getIcon()||null}getLabel(){return this._assertInitialized(),this.marker.getLabel()||null}getOpacity(){return this._assertInitialized(),this.marker.getOpacity()||null}getPosition(){return this._assertInitialized(),this.marker.getPosition()||null}getShape(){return this._assertInitialized(),this.marker.getShape()||null}getTitle(){return this._assertInitialized(),this.marker.getTitle()||null}getVisible(){return this._assertInitialized(),this.marker.getVisible()}getZIndex(){return this._assertInitialized(),this.marker.getZIndex()||null}getAnchor(){return this._assertInitialized(),this.marker}_combineOptions(){const t=this._options||At;return Object.assign(Object.assign({},t),{title:this._title||t.title,position:this._position||t.position,label:this._label||t.label,clickable:void 0!==this._clickable?this._clickable:t.clickable,map:this._googleMap.googleMap})}_assertInitialized(){}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](St),r["\u0275\u0275directiveInject"](r.NgZone))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["map-marker"]],inputs:{title:"title",position:"position",label:"label",clickable:"clickable",options:"options"},outputs:{animationChanged:"animationChanged",mapClick:"mapClick",clickableChanged:"clickableChanged",cursorChanged:"cursorChanged",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",draggableChanged:"draggableChanged",mapDragstart:"mapDragstart",flatChanged:"flatChanged",iconChanged:"iconChanged",mapMousedown:"mapMousedown",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",mapMouseup:"mapMouseup",positionChanged:"positionChanged",mapRightclick:"mapRightclick",shapeChanged:"shapeChanged",titleChanged:"titleChanged",visibleChanged:"visibleChanged",zindexChanged:"zindexChanged"},exportAs:["mapMarker"],features:[r["\u0275\u0275NgOnChangesFeature"]]}),t})(),Lt=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})();var Pt=function(){function t(){}return t.getCenterPoint=function(t){var e=0,n=0;return t.forEach((function(t){e+=t.lat,n+=t.lng})),{lat:e/t.length,lng:n/t.length}},t.getStdDev=function(t,e){var n=[],i=[];return e.forEach((function(e){n.push(Math.pow(e.lat-t.lat,2)),i.push(Math.pow(e.lng-t.lng,2))})),{lat:Math.sqrt(n.reduce((function(t,e){return t+e}))/e.length),lng:Math.sqrt(i.reduce((function(t,e){return t+e}))/e.length)}},t.nearLocation=function(t,e,n){return t.lat>=e.lat-2.5*n.lat&&t.lat<=e.lat+2.5*n.lat&&t.lng>=e.lng-2.5*n.lng&&t.lng<=e.lng+2.5*n.lng},t}();function jt(t){return(jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dt(t){for(var e=1;e0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function be(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function we(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n],";")}),"")}function xe(t){return t.size!==ve.size||t.x!==ve.x||t.y!==ve.y||t.rotate!==ve.rotate||t.flipX||t.flipY}function Me(t){var e=t.transform,n=t.iconWidth,i={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*e.x,", ").concat(32*e.y,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(r," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var ke={x:0,y:0,width:"100%",height:"100%"};function Ce(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function Ie(t){var e=t.icons,n=e.main,i=e.mask,r=t.prefix,o=t.iconName,s=t.transform,a=t.symbol,c=t.title,l=t.maskId,u=t.titleId,h=t.extra,f=t.watchable,p=void 0!==f&&f,d=i.found?i:n,g=d.width,m=d.height,y="fa-w-".concat(Math.ceil(g/m*16)),v=[$t.replacementClass,o?"".concat($t.familyPrefix,"-").concat(o):"",y].filter((function(t){return-1===h.classes.indexOf(t)})).concat(h.classes).join(" "),_={children:[],attributes:Dt({},h.attributes,{"data-prefix":r,"data-icon":o,class:v,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(m)})};p&&(_.attributes["data-fa-i2svg"]=""),c&&_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(u||_e())},children:[c]});var b=Dt({},_,{prefix:r,iconName:o,main:n,mask:i,maskId:l,transform:s,symbol:a,styles:h.styles}),w=i.found&&n.found?function(t){var e,n=t.children,i=t.attributes,r=t.main,o=t.mask,s=t.maskId,a=r.icon,c=o.icon,l=Me({transform:t.transform,containerWidth:o.width,iconWidth:r.width}),u={tag:"rect",attributes:Dt({},ke,{fill:"white"})},h=a.children?{children:a.children.map(Ce)}:{},f={tag:"g",attributes:Dt({},l.inner),children:[Ce(Dt({tag:a.tag,attributes:Dt({},a.attributes,l.path)},h))]},p={tag:"g",attributes:Dt({},l.outer),children:[f]},d="mask-".concat(s||_e()),g="clip-".concat(s||_e()),m={tag:"mask",attributes:Dt({},ke,{id:d,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,p]},y={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:(e=c,"g"===e.tag?e.children:[e])},m]};return n.push(y,{tag:"rect",attributes:Dt({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(d,")")},ke)}),{children:n,attributes:i}}(b):function(t){var e=t.children,n=t.attributes,i=t.main,r=t.transform,o=we(t.styles);if(o.length>0&&(n.style=o),xe(r)){var s=Me({transform:r,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:Dt({},s.outer),children:[{tag:"g",attributes:Dt({},s.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:Dt({},i.icon.attributes,s.path)}]}]})}else e.push(i.icon);return{children:e,attributes:n}}(b),x=w.attributes;return b.children=w.children,b.attributes=x,a?function(t){var e=t.iconName,n=t.children,i=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Dt({},t.attributes,{id:!0===i?"".concat(t.prefix,"-").concat($t.familyPrefix,"-").concat(e):i}),children:n}]}]}(b):function(t){var e=t.children,n=t.main,i=t.mask,r=t.attributes,o=t.styles,s=t.transform;if(xe(s)&&n.found&&!i.found){var a={x:n.width/n.height/2,y:.5};r.style=we(Dt({},o,{"transform-origin":"".concat(a.x+s.x/16,"em ").concat(a.y+s.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}(b)}var Se=function(t,e,n,i){var r,o,s,a=Object.keys(t),c=a.length,l=void 0!==i?function(t,e){return function(n,i,r,o){return t.call(e,n,i,r,o)}}(e,i):e;for(void 0===n?(r=1,s=t[a[0]]):(r=0,s=n);r2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,r=void 0!==i&&i,o=Object.keys(e).reduce((function(t,n){var i=e[n];return i.icon?t[i.iconName]=i.icon:t[n]=i,t}),{});"function"!=typeof Kt.hooks.addPack||r?Kt.styles[t]=Dt({},Kt.styles[t]||{},o):Kt.hooks.addPack(t,o),"fas"===t&&Ee("fa",e)}var ze=Kt.styles,Oe=Kt.shims,Ae=function(){var t=function(t){return Se(ze,(function(e,n,i){return e[i]=Se(n,t,{}),e}),{})};t((function(t,e,n){return e[3]&&(t[e[3]]=n),t})),t((function(t,e,n){var i=e[2];return t[n]=n,i.forEach((function(e){t[e]=n})),t}));var e="far"in ze;Se(Oe,(function(t,n){var i=n[1];return"far"!==i||e||(i="fas"),t[n[0]]={prefix:i,iconName:n[2]},t}),{})};function Te(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function Le(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,o=void 0===r?[]:r;return"string"==typeof t?be(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,'="').concat(be(t[n]),'" ')}),"").trim()}(i),">").concat(o.map(Le).join(""),"")}function Pe(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}Ae(),(Pe.prototype=Object.create(Error.prototype)).constructor=Pe;var je={fill:"currentColor"},Ne={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},De=(Dt({},je,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),Dt({},Ne,{attributeName:"opacity"}));function Be(t){var e=t[0],n=t[1],i=Bt(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat($t.familyPrefix,"-").concat(qt.GROUP)},children:[{tag:"path",attributes:{class:"".concat($t.familyPrefix,"-").concat(qt.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat($t.familyPrefix,"-").concat(qt.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}function Ze(){$t.autoAddCss&&!Ve&&(function(t){if(t&&Yt){var e=Vt.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=Vt.head.childNodes,i=null,r=n.length-1;r>-1;r--){var o=n[r],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(i=o)}Vt.head.insertBefore(e,i)}}(function(){var t="svg-inline--fa",e=$t.familyPrefix,n=$t.replacementClass,i='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==e||n!==t){var r=new RegExp("\\.".concat("fa","\\-"),"g"),o=new RegExp("\\--".concat("fa","\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(r,".".concat(e,"-")).replace(o,"--".concat(e,"-")).replace(s,".".concat(n))}return i}()),Ve=!0)}function Re(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map((function(t){return Le(t)}))}}),Object.defineProperty(t,"node",{get:function(){if(Yt){var e=Vt.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function Fe(t){var e=t.prefix,n=void 0===e?"fa":e,i=t.iconName;if(i)return Te(He.definitions,n,i)||Te(Kt.styles,n,i)}Dt({},je,{cx:"256",cy:"364",r:"28"}),Dt({},Ne,{attributeName:"r",values:"28;14;28;28;14;28;"}),Dt({},De,{values:"1;0;1;1;0;1;"}),Dt({},je,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),Dt({},De,{values:"1;0;0;0;0;1;"}),Dt({},je,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),Dt({},De,{values:"0;0;1;1;0;0;"});var We,He=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?ve:n,r=e.symbol,o=void 0!==r&&r,s=e.mask,a=void 0===s?null:s,c=e.maskId,l=void 0===c?null:c,u=e.title,h=void 0===u?null:u,f=e.titleId,p=void 0===f?null:f,d=e.classes,g=void 0===d?[]:d,m=e.attributes,y=void 0===m?{}:m,v=e.styles,_=void 0===v?{}:v;if(t){var b=t.prefix,w=t.iconName,x=t.icon;return Re(Dt({type:"icon"},t),(function(){return Ze(),$t.autoA11y&&(h?y["aria-labelledby"]="".concat($t.replacementClass,"-title-").concat(p||_e()):(y["aria-hidden"]="true",y.focusable="false")),Ie({icons:{main:Be(x),mask:a?Be(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:w,transform:Dt({},ve,i),symbol:o,title:h,maskId:l,titleId:p,extra:{attributes:y,styles:_,classes:g}})}))}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:Fe(t||{}),i=e.mask;return i&&(i=(i||{}).icon?i:Fe(i||{})),We(n,Dt({},e,{mask:i}))}),Ue=function(){function t(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}return t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),Ge=function(){function t(){this.definitions={}}return t.prototype.addIcons=function(){for(var t,e,n=[],i=0;i....')},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[r["\u0275\u0275NgOnChangesFeature"]]}),t}(),Xe=function(){function t(t,e,n,i){this.sanitizer=t,this.config=e,this.iconLibrary=n,this.stackItem=i,this.classes=[]}return t.prototype.ngOnChanges=function(t){if(null==this.icon&&null==this.config.fallbackIcon)return function(){throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")}();if(t){var e=this.findIconDefinition(null==this.icon?this.config.fallbackIcon:this.icon);if(null!=e){var n=this.buildParams();this.renderIcon(e,n)}}},t.prototype.render=function(){this.ngOnChanges({})},t.prototype.findIconDefinition=function(t){var e=function(t,e){return void 0!==(n=t).prefix&&void 0!==n.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var n}(t,this.config.defaultPrefix);if("icon"in e)return e;var n=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=n)return n;var i=Fe(e);if(null!=i){var r="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+r);else if(!this.config.globalLibrary)throw new Error(r);return i}return function(t){throw new Error("Could not find icon with iconName="+t.iconName+" and prefix="+t.prefix+" in the icon library.")}(e),null},t.prototype.buildParams=function(){var t,e,n,i={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},r="string"==typeof this.transform?function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce((function(t,e){var n=e.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r}return t}),e):e}(this.transform):this.transform;return{title:this.title,transform:r,classes:x((t=i,(e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip})["fa-"+t.size]=null!==t.size,e["fa-rotate-"+t.rotate]=null!==t.rotate,e["fa-pull-"+t.pull]=null!==t.pull,e["fa-stack-"+t.stackItemSize]=null!=t.stackItemSize,n=e,Object.keys(n).map((function(t){return n[t]?t:null})).filter((function(t){return t}))),this.classes),mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}},t.prototype.renderIcon=function(t,e){var n=Ye(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))},t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](i.DomSanitizer),r["\u0275\u0275directiveInject"](Ue),r["\u0275\u0275directiveInject"](Ge),r["\u0275\u0275directiveInject"](qe,8))},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(r["\u0275\u0275hostProperty"]("innerHTML",e.renderedIconHTML,r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275attribute"]("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[r["\u0275\u0275NgOnChangesFeature"]],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t}(),Qe=function(){function t(){}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t}();function $e(t,e){1&t&&r["\u0275\u0275element"](0,"img",19)}function Je(t,e){1&t&&r["\u0275\u0275element"](0,"img",20)}function Ke(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",15),r["\u0275\u0275template"](1,$e,1,0,"img",16),r["\u0275\u0275template"](2,Je,1,0,"img",17),r["\u0275\u0275elementStart"](3,"span",18),r["\u0275\u0275text"](4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&t){var n=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",n.selectedAgency.iiabaMember),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!n.selectedAgency.iiabaMember),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"](" ",n.hasFeature("agency_tagline",n.selectedAgency)&&null!=n.selectedAgency.tagline&&""!=n.selectedAgency.tagline?n.selectedAgency.tagline:"Recommended Local Agency"," ")}}function tn(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",21),r["\u0275\u0275elementStart"](1,"div",22),r["\u0275\u0275elementStart"](2,"span",23),r["\u0275\u0275element"](3,"span",24),r["\u0275\u0275element"](4,"span",25),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"span",26),r["\u0275\u0275text"](6),r["\u0275\u0275pipe"](7,"number"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"span",26),r["\u0275\u0275text"](9),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&t){var n=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](2),r["\u0275\u0275attributeInterpolate1"]("aria-label","",null==n.selectedAgency?null:n.selectedAgency.roundedRating," out of 5 stars"),r["\u0275\u0275advance"](1),r["\u0275\u0275styleProp"]("width",20*(null==n.selectedAgency?null:n.selectedAgency.roundedRating)+"%"),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind1"](7,5,null==n.selectedAgency?null:n.selectedAgency.roundedRating)),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate1"]("(",null==n.selectedAgency?null:n.selectedAgency.reviewCount,")")}}function en(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",27),r["\u0275\u0275elementStart"](1,"span",28),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&t){var n=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate4"](" ",null==n.selectedAgency?null:null==n.selectedAgency.address?null:n.selectedAgency.address.addressLine1,", ",null==n.selectedAgency?null:null==n.selectedAgency.address?null:n.selectedAgency.address.city,", ",null==n.selectedAgency?null:null==n.selectedAgency.address?null:n.selectedAgency.address.regionCode," ",null==n.selectedAgency?null:null==n.selectedAgency.address?null:n.selectedAgency.address.zipCode," ")}}function nn(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",29),r["\u0275\u0275elementStart"](1,"span",28),r["\u0275\u0275elementStart"](2,"a",30),r["\u0275\u0275text"](3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&t){var n=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("href","tel:+"+n.selectedAgency.phone,r["\u0275\u0275sanitizeUrl"]),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](n.selectedAgency.phone)}}function rn(t,e){1&t&&r["\u0275\u0275element"](0,"span",32)}function on(t,e){1&t&&(r["\u0275\u0275elementStart"](0,"span",33),r["\u0275\u0275text"](1,"Loading..."),r["\u0275\u0275elementEnd"]())}function sn(t,e){if(1&t){var n=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"a",31),r["\u0275\u0275listener"]("click",(function(){return r["\u0275\u0275restoreView"](n),r["\u0275\u0275nextContext"](2).setAsLoading("find-an-agent")})),r["\u0275\u0275text"](1," Select Agency "),r["\u0275\u0275template"](2,rn,1,0,"span",13),r["\u0275\u0275template"](3,on,2,0,"span",14),r["\u0275\u0275elementEnd"]()}if(2&t){var i=r["\u0275\u0275nextContext"](2);r["\u0275\u0275property"]("href","/find-an-agent/?a="+i.selectedAgency.iiabaId+"&referralUrl="+i.referralUrl,r["\u0275\u0275sanitizeUrl"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf","find-an-agent"===i.loading),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","find-an-agent"===i.loading)}}function an(t,e){1&t&&r["\u0275\u0275element"](0,"span",32)}function cn(t,e){1&t&&(r["\u0275\u0275elementStart"](0,"span",33),r["\u0275\u0275text"](1,"Loading..."),r["\u0275\u0275elementEnd"]())}function ln(t,e){if(1&t){var n=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275template"](1,Ke,5,3,"div",4),r["\u0275\u0275elementStart"](2,"div",5),r["\u0275\u0275elementStart"](3,"span",6),r["\u0275\u0275text"](4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](5,tn,10,7,"div",7),r["\u0275\u0275template"](6,en,3,4,"div",8),r["\u0275\u0275template"](7,nn,4,2,"div",9),r["\u0275\u0275elementStart"](8,"div",10),r["\u0275\u0275template"](9,sn,4,3,"a",11),r["\u0275\u0275elementStart"](10,"a",12),r["\u0275\u0275listener"]("click",(function(){return r["\u0275\u0275restoreView"](n),r["\u0275\u0275nextContext"]().setAsLoading("profile")})),r["\u0275\u0275text"](11," View Profile "),r["\u0275\u0275template"](12,an,1,0,"span",13),r["\u0275\u0275template"](13,cn,2,0,"span",14),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&t){var i=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",i.hasFeature("agency_recommended_banner",i.selectedAgency)),r["\u0275\u0275advance"](3),r["\u0275\u0275textInterpolate"](i.selectedAgency.name),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",i.hasFeature("agency_consumer_reviews",i.selectedAgency)&&(null==i.selectedAgency?null:i.selectedAgency.reviewCount)>0&&(null==i.selectedAgency?null:i.selectedAgency.roundedRating)>0),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null==i.selectedAgency?null:i.selectedAgency.address),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",null!=i.selectedAgency.phone&&i.hasFeature("agency_phone",i.selectedAgency)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",i.selectedAgency.canContact&&i.selectedAgency.email&&i.hasFeature("agency_search",i.selectedAgency)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("href",(i.isBasic(i.selectedAgency)?"/basic":"")+"/agency-profile/"+i.selectedAgency.iiabaId+"/",r["\u0275\u0275sanitizeUrl"]),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf","profile"===i.loading),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf","profile"===i.loading)}}var un=function(){return["far","search"]};function hn(t,e){if(1&t){var n=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",34),r["\u0275\u0275listener"]("click",(function(){return r["\u0275\u0275restoreView"](n),r["\u0275\u0275nextContext"]().searchClicked()})),r["\u0275\u0275element"](1,"fa-icon",35),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"]()}if(2&t){var i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("disabled",!i.inZoomThreshold),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("icon",r["\u0275\u0275pureFunction0"](3,un)),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",i.inZoomThreshold?"Search this area":"Zoom in to search"," ")}}var fn=function(){function t(t,e){this._ngZone=t,this._cdr=e,this.mapOptions={fullscreenControl:!1,mapTypeControl:!1,streetViewControl:!1,styles:g.getStyle(),maxZoom:18,minZoom:6},this.inZoomThreshold=!0,this.loading="",this._agencies=[],this.mapStyles=[],this.width="100%",this.height="600px",this.visible=!0,this.minimumClusterSize=10,this.restricted=!1,this.bounds=null,this.hideSearch=!1,this.searchZoomThreshold=10,this.agencyClicked=new r.EventEmitter,this.searched=new r.EventEmitter,this.referralUrl=window.location.href}return Object.defineProperty(t.prototype,"agencies",{get:function(){return this._agencies},set:function(t){this._agencies=t.filter((function(t){return t&&t.address&&t.address.latitude&&t.address.longitude})).filter((function(t,e,n){return n.indexOf(t)===e}))},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){var e=this;if(t.agencies&&this.agencies&&this.googleMap){this.clusterMarkers();var n=this.bounds||this.getBounds();this.googleMap.fitBounds(n,0),this.bounds||setTimeout((function(){e.googleMap.getZoom()>15&&(e.googleMap.zoom=15)}),100),this.restricted&&(this.restriction=new google.maps.LatLngBounds({lat:n.south,lng:n.west},{lat:n.north,lng:n.east}))}if(t.selectedAgencyId){var i=parseInt(t.selectedAgencyId.currentValue,10);this.setSelectedAgency(i)}t.visible&&this.visible&&this.fitBounds()},t.prototype.clusterMarkers=function(){if(this.googleMap&&this.googleMap.googleMap&&this.agencies&&this.agencies.length>0){var t=this.getAgencyMarkers(this.agencies);this.markerClusterer=new d(this.googleMap.googleMap,t,{imagePath:"/m",minimumClusterSize:this.minimumClusterSize,maxZoom:13,styles:[{textColor:"white",url:"/m1.png",height:52,width:52},{textColor:"white",url:"/m2.png",height:56,width:56},{textColor:"white",url:"/m3.png",height:66,width:66}]})}},t.prototype.fitBounds=function(){var t=this.getBounds();this.googleMap.fitBounds(t,0)},t.prototype.getAgencyMarkers=function(t){var e=this;return t.map((function(t){if(t&&t.address&&t.address.latitude&&t.address.longitude){var n=new google.maps.Marker({position:{lat:t.address.latitude,lng:t.address.longitude},icon:e.getMarkerOptions(t).icon});return google.maps.event.addListener(n,"click",(function(){e.markerClicked(t,n)})),n}return null})).filter((function(t){return t instanceof google.maps.Marker}))},t.prototype.getBounds=function(){var t=new google.maps.LatLngBounds,e=this.agencies.map(this.getAgencyLocation).filter((function(t){return null!=t})),n=Pt.getCenterPoint(e),i=Pt.getStdDev(n,e);return e.forEach((function(e){Pt.nearLocation(e,n,i)&&t.extend(e)})),t.toJSON()},t.prototype.getAgencyLocation=function(t){return t&&t.address&&t.address.latitude&&t.address.longitude?{lat:t.address.latitude,lng:t.address.longitude}:null},t.prototype.getMarkerOptions=function(t){return{icon:this.getMarkerIconType(t)}},t.prototype.getMarkerIconType=function(t){if(t&&t.features)return t.iiabaMember?this.hasFeature("agency_recommended_banner",t)?"/dark-orange-pin-with-star.png":this.hasFeature("advantage",t)?"/dark-orange-pin.png":"/basic-map-marker.png":this.hasFeature("agency_recommended_banner",t)?"/light-orange-pin-with-star.png":this.hasFeature("advantage",t)?"/light-orange-pin.png":"/basic-map-marker.png"},t.prototype.markerClicked=function(t,e){this.selectedAgency=t,this._cdr.detectChanges();var n=new Tt(this.googleMap,this._ngZone);n.marker=e,this.openInfoWindow(n),this.agencyClicked.emit(t.id)},t.prototype.openInfoWindow=function(t){this.infoWindow&&this.infoWindow.open(t)},t.prototype.searchClicked=function(){var e=t.getBoundsFromMapBounds(this.googleMap.getBounds());this.searched.emit(e)},t.getBoundsFromMapBounds=function(e){return null===e?null:t.latLngBoundsToMapBounds(e)},t.latLngBoundsToMapBounds=function(t){return{minLat:t.getSouthWest().lat(),minLong:t.getSouthWest().lng(),maxLat:t.getNorthEast().lat(),maxLong:t.getNorthEast().lng()}},t.prototype.centerChanged=function(){if(this.googleMap&&this.restriction){if(this.restriction.contains(this.googleMap.getCenter()))return void(this.lastValidCenter=this.googleMap.getCenter());this.googleMap.panTo(this.lastValidCenter)}},t.prototype.zoomChanged=function(){this.inZoomThreshold=!!this.googleMap&&this.googleMap.getZoom()>=this.searchZoomThreshold},t.prototype.setSelectedAgency=function(e){if(this.selectedAgency=this.agencies.find((function(t){return t.id===e})),this.selectedAgency){var n=t.getAgencyPosition(this.selectedAgency);if(n){var i=this.getMapMarkerByLatLng(n);if(i){var r=new Tt(this.googleMap,this._ngZone),o=i.getPosition();o&&(this.googleMap.panTo(o),this.googleMap.zoom=14,r.marker=i,this.openInfoWindow(r))}}}},t.getAgencyPosition=function(t){return t.address&&t.address.latitude&&t.address.longitude?new google.maps.LatLng(t.address.latitude,t.address.longitude,!1):null},t.prototype.getMapMarkerByLatLng=function(t){if(this.markerClusterer&&this.markerClusterer.getMarkers().length>0)return this.markerClusterer.getMarkers().find((function(e){var n=e.getPosition();return!!n&&n.equals(t)}))},t.prototype.setAsLoading=function(t){this.loading=t,this._cdr.detectChanges()},t.prototype.hasFeature=function(t,e){return e&&e.features&&e.features.includes(t)||!1},t.prototype.isBasic=function(t){return!t||!t.features||!this.hasFeature("member_plus",t)&&!this.hasFeature("advantage",t)},t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["tc-agency-map"]],viewQuery:function(t,e){var n;1&t&&(r["\u0275\u0275viewQuery"](St,!0),r["\u0275\u0275viewQuery"](Ot,!0)),2&t&&(r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(e.googleMap=n.first),r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(e.infoWindow=n.first))},inputs:{agencies:"agencies",mapStyles:["map-styles","mapStyles"],width:["map-width","width"],height:["map-height","height"],visible:["map-visible","visible"],minimumClusterSize:["minimum-cluster-size","minimumClusterSize"],restricted:"restricted",bounds:"bounds",hideSearch:["hide-search","hideSearch"],searchZoomThreshold:["search-zoom-threshold","searchZoomThreshold"],selectedAgencyId:["selected-agency-id","selectedAgencyId"]},outputs:{agencyClicked:"agencyClicked",searched:"searched"},features:[r["\u0275\u0275NgOnChangesFeature"]],decls:5,vars:9,consts:[[1,"agency-map"],[3,"width","height","options","centerChanged","zoomChanged"],[4,"ngIf"],["class","search-button lh-1 py-2 px-4",3,"disabled","click",4,"ngIf"],["class","d-flex flex-row align-items-center",4,"ngIf"],[1,"mb-1","mt-2","font-condensed"],[1,"agency-name"],["class","map-card-reviews d-flex flex-row font-condensed",4,"ngIf"],["class","text-gray-700 text-sm mb-1",4,"ngIf"],["class","text-gray-700 text-sm",4,"ngIf"],[1,"map-card-actions","d-flex","flex-row","justify-content-center","mt-2"],["onclick","window.dataLayer.push({'ctaReferrerUrl': window.location.pathname,'event': 'setCustomDimensions'});","class","btn btn-sm btn-secondary mb-2 mr-3",3,"href","click",4,"ngIf"],[1,"btn","btn-sm","btn-outline-secondary","mb-2",3,"href","click"],["class","spinner-border spinner-border-sm ml-2","role","status","aria-hidden","true",4,"ngIf"],["class","sr-only",4,"ngIf"],[1,"d-flex","flex-row","align-items-center"],["src","/dark-orange-flag.svg","class","map-card-badge","alt","A TrustedChoice.com recommended local Trusted Choice independent insurance agency, with elite-level expertise, is here to assist you with your insurance needs. Your protection is their priority.","width","20","height","30",4,"ngIf"],["src","/light-orange-flag.svg","class","map-card-badge","alt","A TrustedChoice.com recommended local independent insurance agency, with elite-level expertise, is here to assist you with your insurance needs. Your protection is their priority.","width","20","height","30",4,"ngIf"],[1,"map-card-tagline","text-uppercase","text-gray-700","mb-2","font-roboto-condensed"],["src","/dark-orange-flag.svg","alt","A TrustedChoice.com recommended local Trusted Choice independent insurance agency, with elite-level expertise, is here to assist you with your insurance needs. Your protection is their priority.","width","20","height","30",1,"map-card-badge"],["src","/light-orange-flag.svg","alt","A TrustedChoice.com recommended local independent insurance agency, with elite-level expertise, is here to assist you with your insurance needs. Your protection is their priority.","width","20","height","30",1,"map-card-badge"],[1,"map-card-reviews","d-flex","flex-row","font-condensed"],[1,"d-flex","flex-row"],["role","img",1,"svg-ranking","d-inline-block",2,"width","65px","height","13px"],[1,"full",2,"background-size","13px 13px"],[1,"empty",2,"background-size","13px 13px"],[1,"ml-1"],[1,"text-gray-700","text-sm","mb-1"],[1,"agency-address","font-condensed"],[1,"text-gray-700","text-sm"],[3,"href"],["onclick","window.dataLayer.push({'ctaReferrerUrl': window.location.pathname,'event': 'setCustomDimensions'});",1,"btn","btn-sm","btn-secondary","mb-2","mr-3",3,"href","click"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","ml-2"],[1,"sr-only"],[1,"search-button","lh-1","py-2","px-4",3,"disabled","click"],[3,"icon"]],template:function(t,e){1&t&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"google-map",1),r["\u0275\u0275listener"]("centerChanged",(function(){return e.centerChanged()}))("zoomChanged",(function(){return e.zoomChanged()})),r["\u0275\u0275elementStart"](2,"map-info-window"),r["\u0275\u0275template"](3,ln,14,9,"div",2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](4,hn,3,4,"button",3),r["\u0275\u0275elementEnd"]()),2&t&&(r["\u0275\u0275styleProp"]("width",e.width)("height",e.height),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("width",e.width)("height",e.height)("options",e.mapOptions),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.selectedAgency),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!e.hideSearch))},directives:[St,Ot,m.NgIf,Xe],pipes:[m.DecimalPipe],styles:[""]}),t}(),pn=n("g/Wr"),dn={prefix:"far",iconName:"search",icon:[512,512,[],"f002","M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"]},gn={prefix:"fas",iconName:"star",icon:[576,512,[],"f005","M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]},mn=function(){function t(t,e){this.library=t,this.injector=e,t.addIcons(dn,gn)}return t.prototype.ngDoBootstrap=function(){var t=Object(pn.createCustomElement)(fn,{injector:this.injector});customElements.define("tc-agency-map",t)},t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)(r["\u0275\u0275inject"](Ge),r["\u0275\u0275inject"](r.Injector))},providers:[],imports:[[m.CommonModule,i.BrowserModule,Lt,Qe]]}),t}();i.platformBrowser().bootstrapModule(mn).catch((function(t){return console.error(t)}))}});