1/*! For license information please see RoutingMap.9e4f587090716a3fd094.min.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2334],{6507:function(t,e,o){o.r(e),o.d(e,{default:function(){return v}});var n=o(7462),i=o(2982),r=o(5671),s=o(3144),a=o(7326),l=o(9340),u=o(6215),c=o(1120),d=o(4942),f=o(4347),p=o(1106),h=o(4579),m=function(){function t(e){var o=e.orderedMarkers,n=void 0===o?[]:o,i=e.map,s=e.defaultPathOptions,a=void 0===s?{path:[],geodesic:!0,strokeColor:"#132c54",strokeWeight:2,editable:!1,strokeOpacity:0,icons:[{icon:{path:"M 0,-1 0,1",strokeOpacity:1,scale:1.5},offset:"0",repeat:"10px"}]}:s,l=e.traveledPathOptions,u=void 0===l?{path:[],geodesic:!0,strokeColor:"#cd3301",strokeOpacity:1,strokeWeight:2,editable:!1,icons:[{icon:{path:google.maps.SymbolPath.CIRCLE,strokeColor:"#ffffff",fillColor:"#ffffff",fillOpacity:1,strokeOpacity:1,strokeWeight:5},offset:"100%"}]}:l,c=e.onReady,f=void 0===c?function(){}:c;(0,r.Z)(this,t),(0,d.Z)(this,"map",null),(0,d.Z)(this,"overviewPath",[]),(0,d.Z)(this,"legSteps",[]),(0,d.Z)(this,"defaultPath",void 0),(0,d.Z)(this,"traveledPath",void 0),(0,d.Z)(this,"defaultPathOptions",{}),(0,d.Z)(this,"traveledPathOptions",{}),(0,d.Z)(this,"isReady",!1),(0,d.Z)(this,"onReadyCallback",void 0),this.map=i,this.defaultPathOptions=a,this.traveledPathOptions=u,this.onReadyCallback=f,n.length<2?console.warn("Must have at least a start and end point in order to create a route."):this.getDirections(n)}return(0,s.Z)(t,[{key:"getDirections",value:function(t){var e=this,o=t[0].getPosition(),n=t.length>2?t.slice(1,t.length-1).map((function(t){return{location:t.getPosition()}})):[],r=t[t.length-1].getPosition();(new google.maps.DirectionsService).route({origin:o,waypoints:n,destination:r,travelMode:google.maps.TravelMode.DRIVING},(function(t,o){o===google.maps.DirectionsStatus.OK&&(e.isReady=!0,t.routes[0].legs.forEach((function(t){var o=[];t.steps.forEach((function(t){o.push.apply(o,(0,i.Z)(t.lat_lngs))})),e.legSteps.push(o)})),e.overviewPath=t.routes[0].overview_path,e.setPolylines(),"function"==typeof e.onReadyCallback&&e.onReadyCallback())}))}},{key:"setPolylines",value:function(){this.isReady&&(this.defaultPathOptions.path=this.overviewPath,this.defaultPathOptions.map=this.map,this.defaultPath=new google.maps.Polyline(this.defaultPathOptions),this.traveledPathOptions.path=[],this.traveledPathOptions.map=this.map,this.traveledPath=new google.maps.Polyline(this.traveledPathOptions))}},{key:"setProgress",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.isReady){e*=.01;var o=[];if(t>0)for(var n=0;n<t;n++)o.push.apply(o,(0,i.Z)(this.legSteps[n]));if(t<this.legSteps.length){var r=this.legSteps[t],s=Math.floor((r.length-1)*e),a=r.slice(0,s);o.push.apply(o,(0,i.Z)(a))}this.traveledPath.setPath(o)}}}]),t}(),w=o(296);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=(0,c.Z)(t);if(e){var i=(0,c.Z)(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return(0,u.Z)(this,o)}}var v=function(t){(0,l.Z)(o,t);var e=g(o);function o(t){var n,s=t.el,l=t.mapOptionOverrides,u=void 0===l?{}:l,c=t.mapElSelector,p=void 0===c?"[data-map]":c,h=t.listingSelector,m=void 0===h?"[data-map-listing]":h,g=t.listingImageSelector,v=void 0===g?"[data-map-listing-image]":g;return(0,r.Z)(this,o),n=e.call(this,{el:s,mapOptionOverrides:u,mapElSelector:p,listingSelector:m}),(0,d.Z)((0,a.Z)(n),"listingImageSelector",void 0),(0,d.Z)((0,a.Z)(n),"watcher",void 0),(0,d.Z)((0,a.Z)(n),"mapRouter",void 0),(0,d.Z)((0,a.Z)(n),"listingElHoverClass","hover"),(0,d.Z)((0,a.Z)(n),"listingElsWithLocation",void 0),n.listingImageSelector=v,n.watcher=new f.Z,n.setUpMap(),document.addEventListener("scroll",(0,w.debounce)((function(){n.updateScrollProgress()}),10)),n.listingElsWithLocation=(0,i.Z)(n.listingEls).filter((function(t){return t.hasAttribute("data-has-location")})),n}return(0,s.Z)(o,[{key:"handleMapReady",value:function(t,e){var o=this;this.markers=e;var i=this.markers.length;
2i&&(this.markers.forEach((function(t,e){var r=t.point.listingEl;r.marker=t;var s=r.querySelector("[data-map-listing-icon]"),a=r.getAttribute("data-map-listing"),l=r.getAttribute("data-color"),u=r.getAttribute("data-hover-color");o.setUpMarkerIconAndLabel(t,l,a);var c=t.getIcon();t.customDefaultIcon=c;var d=(0,n.Z)({},c);d.fillColor=u,t.customHoverIcon=d,t.customZIndex=i-e,t.setZIndex(t.customZIndex),t.addListener("mousedown",(function(){o.deselectAll(),r.classList.add(o.listingElHoverClass),t.setIcon(t.customHoverIcon),t.setZIndex(t.customZIndex+1e3),s&&(s.style.backgroundColor=u),r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),o.basicMapInstance.updateMapBounds(),o.basicMapInstance.centerMap()})),t.addListener("mouseover",(function(){o.deselectAll(),r.classList.add(o.listingElHoverClass),t.setIcon(t.customHoverIcon),t.setZIndex(t.customZIndex+700),s&&(s.style.backgroundColor=u)})),t.addListener("mouseout",(function(){r.classList.remove(o.listingElHoverClass),t.setIcon(t.customDefaultIcon),t.setZIndex(t.customZIndex),s&&(s.style.backgroundColor=l)}))})),this.mapRouter=new m({orderedMarkers:e,map:t,defaultPathOptions:p.Qs,traveledPathOptions:p.m1,onReady:function(){o.updateScrollProgress()}}),this.listenerBoss.register(window,"resize",(function(){o.basicMapInstance.updateMapBounds()}))),this.listingEls.length&&this.listingEls.forEach((function(t){var e,n=null!==(e=null==t?void 0:t.marker)&&void 0!==e?e:null,i=t.querySelector("[data-map-listing-icon]"),r=t.getAttribute("data-color"),s=t.getAttribute("data-hover-color");o.listenerBoss.register(t,"mouseover",(function(){o.deselectAll(),n&&(n.setIcon(n.customHoverIcon),n.setZIndex(n.customZIndex+1e3),i&&(i.style.backgroundColor=s)),o.basicMapInstance.updateMapBounds(),o.basicMapInstance.centerMap()})),o.listenerBoss.register(t,"mouseout",(function(){n&&(n.setIcon(n.customDefaultIcon),n.setZIndex(n.customZIndex)),i&&(i.style.backgroundColor=r)}))}))}},{key:"updateScrollProgress",value:function(){if(this.mapRouter&&this.listingElsWithLocation.length){var t=Math.max(document.documentElement.clientHeight,window.innerHeight||0),e=0,o=0;this.listingElsWithLocation.forEach((function(n,i){if(n&&null!==n.offsetParent){var r=n.getBoundingClientRect(),s=100*(1-(r.bottom-.5*t)/r.height);s>0&&(e=i,o=Math.min(s,100))}})),this.mapRouter.setProgress(e,o)}}},{key:"deselectAll",value:function(){var t=this;this.listingEls.length&&this.listingEls.forEach((function(e){e.classList.remove(t.listingElHoverClass);var o=e.querySelector("[data-map-listing-icon]"),n=e.getAttribute("data-color");o&&(o.style.backgroundColor=n)})),this.markers.length&&this.markers.forEach((function(t){t.setIcon(t.customDefaultIcon)}))}}]),o}(h.Z)},2982:function(t,e,o){o.d(e,{Z:function(){return r}});var n=o(907);var i=o(181);function r(t){return function(t){if(Array.isArray(t))return(0,n.Z)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,i.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},4347:function(t,e){var o,n;o=void 0,n=function(){var t="page:load",e="scrolling",o="enter",n="enter:full",i="exit:partial",r="exit",s={top:0,bottom:0};function a(t,e){if(void 0===e&&(e="Assertion failed"),!t){if("undefined"!=typeof Error)throw new Error(e);throw e}}function l(t){return{isInViewport:t.isInViewport,isFullyInViewport:t.isFullyInViewport,isAboveViewport:t.isAboveViewport,isBelowViewport:t.isBelowViewport,isPartialOut:t.isPartialOut,isFullyOut:t.isFullyOut}}function u(t,e){t.isInViewport&&!t.wasInViewport&&(t.wasInViewport=!0,t.wasFullyOut=!1,t.emitter.emit(o,e)),t.isPartialOut&&!t.wasPartialOut&&(t.wasPartialOut=!0,t.wasFullyInViewport=!1,t.emitter.emit(i,e)),t.isFullyOut&&!t.wasFullyOut&&(t.wasFullyOut=!0,t.wasInViewport=!1,t.wasFullyInViewport=!1,t.emitter.emit(r,e)),t.isFullyInViewport&&!t.wasFullyInViewport&&(t.wasFullyInViewport=!0,t.wasPartialOut=!1,t.wasFullyOut=!1,t.emitter.emit(n,e))}function c(){return[window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop]}function d(){return{w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight}}function f(t){var e=t.getBoundingClientRect(),o=document.documentElement,n=e.left+window.pageXOffset-o.clientLeft,i=e.top+window.pageYOffset-o.clientTop,r=t.offsetWidth,s=t.offsetHeight;return{width:r,height:s,top:i,bottom:i+s,right:n+r,left:n}}function p(t){return"HTMLElement"in window?!!t&&t instanceof HTMLElement:!!t&&"object"==typeof t&&1===t.nodeType&&!!t.nodeName}function h(t){return void 0===t&&(t=new Map),{all:t,on:function(e,o){var n=t.get(e);n&&n.push(o)||t.set(e,[o])},off:function(e,o){var n=t.get(e);n&&n.splice(n.indexOf(o),1)},emit:function(e,o){(t.get(e)||[]).slice().map((function(t){return t(o)})),(t.get("*")||[]).slice().map((function(t){return t(e,o)}))}}}function m(){var o={counter:0,requestAnimationId:null,lastXY:[],watching:{},viewport:d(),props:null},n=new h;function i(){var t=c(),e=t[1]>o.lastXY[1];return o.lastXY=t,{scrollX:t[0],scrollY:t[1],scrollingDown:e,scrollingUp:!e}}function r(t){var e=t.dimensions.top+t.offset.top,n=t.dimensions.top+t.offset.bottom+t.dimensions.height,i=o.lastXY[1],r=o.lastXY[1]+o.viewport.h;t.isAboveViewport=e<i,t.isBelowViewport=n>r,t.isInViewport=e<=r&&n>i,t.isFullyInViewport=e>=i&&n<=r||t.isAboveViewport&&t.isBelowViewport,t.isFullyOut=!t.isInViewport&&t.wasInViewport,t.isPartialOut=t.wasFullyInViewport&&!t.isFullyInViewport&&!t.isFullyOut}function m(){var t=function(){if(o.lastXY.join()!==c().join()){var s=i();n.emit(e,s),Object.keys(o.watching).forEach((function(t){s.target=o.watching[t].node,r(o.watching[t]),u(o.watching[t],s)}))}window.requestAnimationFrame(t)};return window.requestAnimationFrame(t)}return{initialize:function(){m();var e=function(){if("undefined"!=typeof document)switch(document.readyState){case"loading":case"interactive":break;case"complete":n.emit(t,{scrollX:o.lastXY[0],scrollY:o.lastXY[1]}),document.removeEventListener("readystatechange",e)}};document.addEventListener("readystatechange",e,!1),window.addEventListener("resize",(function(){o.viewport=d()}),!1)},watch:function(t,e){var n=p(t)?t:document.querySelector(t);a(p(n),"Couldn't find target in DOM"),a("number"==typeof e||"object"==typeof e||void 0===e,"@param `initOffset` should be number or Object or undefined!");var c,d="number"==typeof e?{top:e,bottom:e}
2:Object.assign(s,e),w=new h,g={node:n,offset:d,dimensions:f(n),emitter:w};return o.counter+=1,o.watching[o.counter]=g,(c=g).isInViewport=!1,c.wasInViewport=!1,c.isAboveViewport=!1,c.wasAboveViewport=!1,c.isBelowViewport=!1,c.wasBelowViewport=!1,c.isPartialOut=!1,c.wasPartialOut=!1,c.isFullyOut=!1,c.wasFullyOut=!1,c.isFullyInViewport=!1,c.wasFullyInViewport=!1,{target:n,props:l(g),update:function(){var t=i();return t.target=g.node,window.cancelAnimationFrame(o.requestAnimationId),function(t){t.isInViewport=!1,t.isAboveViewport=!1,t.isBelowViewport=!1,t.isPartialOut=!1,t.isFullyOut=!1,t.isFullyInViewport=!1}(g),g.dimensions=f(n),r(g),o.props=l(g),u(g,t),m(),this},once:function(t,e){var o=function(n){e(n),w.off(t,o)};return w.on(t,o),this},on:function(t,e){return w.on(t,e),this},off:function(t,e){return w.off(t,e),this}}},emitter:n,windowAtBottom:function(t){void 0===t&&(t=0);var e=o.lastXY[1],n=o.viewport.h;return t=Number.parseInt(t,10),e+n>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight)-t},windowAtTop:function(t){return void 0===t&&(t=0),t=Number.parseInt(t,10),o.lastXY[1]<=t}}}return function(){var t=m(),e=t.initialize,o=t.watch,n=t.windowAtBottom,i=t.windowAtTop,r=t.emitter;return e(),{watch:o,on:r.on,off:r.off,emit:r.emit,windowAtBottom:n,windowAtTop:i}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(o="undefined"!=typeof globalThis?globalThis:o||self).ScrollWatcher=n(),e.Z=ScrollWatcher}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.