1var ASLEvent={isGoogleObject_:function(n){return!n||typeof google=="undefined"||!google.maps||typeof ASLMVCObject!="undefined"&&n instanceof ASLMVCObject?!1:google.maps.MVCObject&&n instanceof google.maps.MVCObject?!0:typeof asl_configuration!="undefined"&&String(asl_configuration.map_vendor||"google").toLowerCase()==="google"&&typeof n.addListener=="function"},addListener:function(n,r,d){if(!n||typeof d!="function")return null;if(this.isGoogleObject_(n)&&google.maps.event)return google.maps.event.addListener(n,r,d);n.aslListeners_=n.aslListeners_||{},n.aslListeners_[r]=n.aslListeners_[r]||[];var c={target:n,name:r,callback:d,once:!1};return n.aslListeners_[r].push(c),c},addListenerOnce:function(n,r,d){if(this.isGoogleObject_(n)&&google.maps.event)return google.maps.event.addListenerOnce(n,r,d);var c=this.addListener(n,r,d);return c&&(c.once=!0),c},addDomListener:function(n,r,d){return!n||!n.addEventListener?null:(n.addEventListener(r,d),{target:n,name:r,callback:d,dom:!0})},removeListener:function(n){if(n){if(n.remove&&typeof n.remove=="function"){n.remove();return}if(n.dom){n.target.removeEventListener(n.name,n.callback);return}var r=n.target&&n.target.aslListeners_&&n.target.aslListeners_[n.name];if(r){var d=r.indexOf(n);d!==-1&&r.splice(d,1)}}},trigger:function(n,r){var d=Array.prototype.slice.call(arguments,2);if(this.isGoogleObject_(n)&&google.maps.event){google.maps.event.trigger.apply(google.maps.event,[n,r].concat(d));return}var c=n&&n.aslListeners_&&n.aslListeners_[r];c&&c.slice().forEach(function(x){x.callback.apply(n,d),x.once&&ASLEvent.removeListener(x)})}};typeof window!="undefined"&&(window.ASLEvent=ASLEvent);function ASLMVCObject(){this.aslValues_=this.aslValues_||{},this.aslBindings_=this.aslBindings_||{}}ASLMVCObject.prototype.get=function(n){var r=this.aslBindings_&&this.aslBindings_[n];return r?r.target.get(r.targetKey):(this.aslValues_||{})[n]},ASLMVCObject.prototype.set=function(n,r){var d=this.aslBindings_&&this.aslBindings_[n];return d?d.target.set(d.targetKey,r):(this.aslValues_=this.aslValues_||{},this.aslValues_[n]=r,this.notify(n)),this},ASLMVCObject.prototype.setValues=function(n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&this.set(r,n[r]);return this},ASLMVCObject.prototype.notify=function(n){return typeof this[n+"_changed"]=="function"&&this[n+"_changed"](),ASLEvent.trigger(this,n+"_changed",this.get(n)),this},ASLMVCObject.prototype.bindTo=function(n,r,d,c){return this.unbind(n),this.aslBindings_=this.aslBindings_||{},this.aslBindings_[n]={target:r,targetKey:d||n,listener:ASLEvent.addListener(r,(d||n)+"_changed",this.notify.bind(this,n))},c||this.notify(n),this},ASLMVCObject.prototype.unbind=function(n){var r=this.aslBindings_&&this.aslBindings_[n];if(!r)return this;var d=r.target.get(r.targetKey);return ASLEvent.removeListener(r.listener),delete this.aslBindings_[n],this.aslValues_=this.aslValues_||{},this.aslValues_[n]=d,this},ASLMVCObject.prototype.unbindAll=function(){for(var n=Object.keys(this.aslBindings_||{}),r=0;r<n.length;r++)this.unbind(n[r]);return this},ASLMVCObject.prototype.addListener=function(n,r){return ASLEvent.addListener(this,n,r)},typeof window!="undefined"&&(window.ASLMVCObject=ASLMVCObject);function asl_has_google_maps(){return typeof window!="undefined"&&window.google&&window.google.maps}function asl_shared_uses_maplibre(){return typeof asl_configuration!="undefined"&&String(asl_configuration.map_vendor||"google").toLowerCase()==="maplibre"}function asl_requires_google_runtime(){if(typeof asl_configuration=="undefined")return!0;var n=String(asl_configuration.map_vendor||"google").toLowerCase(),r=String(asl_configuration.search_provider||"automatic").toLowerCase();return n==="google"||["google","google_new","google_legacy"].indexOf(r)!==-1}function asl_is_maplibre(){return asl_shared_uses_maplibre()}function ASLLatLng(n,r){if(asl_has_google_maps()&&!asl_shared_uses_maplibre())return new google.maps.LatLng(n,r);this._lat=Number(n),this._lng=Number(r)}ASLLatLng.prototype.lat=function(){return this._lat},ASLLatLng.prototype.lng=function(){return this._lng},ASLLatLng.prototype.toJSON=function(){return{lat:this._lat,lng:this._lng}};
1function ASLLatLngBounds(n,r){if(asl_has_google_maps()&&!asl_shared_uses_maplibre())return new google.maps.LatLngBounds(n,r);this._south=1/0,this._west=1/0,this._north=-1/0,this._east=-1/0,n&&this.extend(n),r&&this.extend(r)}ASLLatLngBounds.prototype.extend=function(n){var r=Number(typeof n.lat=="function"?n.lat():n.lat),d=Number(typeof n.lng=="function"?n.lng():n.lng);return!Number.isFinite(r)||!Number.isFinite(d)?this:(this._south=Math.min(this._south,r),this._west=Math.min(this._west,d),this._north=Math.max(this._north,r),this._east=Math.max(this._east,d),this)},ASLLatLngBounds.prototype.getSouthWest=function(){return new ASLLatLng(this._south,this._west)},ASLLatLngBounds.prototype.getNorthEast=function(){return new ASLLatLng(this._north,this._east)},ASLLatLngBounds.prototype.getCenter=function(){return new ASLLatLng((this._south+this._north)/2,(this._west+this._east)/2)},ASLLatLngBounds.prototype.isEmpty=function(){return!Number.isFinite(this._south)},ASLLatLngBounds.prototype.contains=function(n){if(this.isEmpty())return!1;var r=Number(typeof n.lat=="function"?n.lat():n.lat),d=Number(typeof n.lng=="function"?n.lng():n.lng);return r>=this._south&&r<=this._north&&d>=this._west&&d<=this._east};function asl_normalize_bounds(n){if(!n||typeof n.getSouthWest!="function"||typeof n.getNorthEast!="function")return null;if(!asl_shared_uses_maplibre())return n;
1var r=n.getSouthWest(),d=n.getNorthEast(),c=Number(typeof r.lat=="function"?r.lat():r.lat),x=Number(typeof r.lng=="function"?r.lng():r.lng),B=Number(typeof d.lat=="function"?d.lat():d.lat),ct=Number(typeof d.lng=="function"?d.lng():d.lng);return[c,x,B,ct].every(Number.isFinite)?new ASLLatLngBounds(new ASLLatLng(c,x),new ASLLatLng(B,ct)):null}function asl_bounds_contains(n,r){if(!n||!r||typeof n.contains!="function")return!1;var d=Number(typeof r.lat=="function"?r.lat():r.lat),c=Number(typeof r.lng=="function"?r.lng():r.lng);return Number.isFinite(d)&&Number.isFinite(c)&&n.contains({lat:d,lng:c})}function ASLPoint(n,r){if(asl_has_google_maps()&&!asl_shared_uses_maplibre())return new google.maps.Point(n,r);this.x=Number(n),this.y=Number(r)}function ASLSize(n,r){if(asl_has_google_maps()&&!asl_shared_uses_maplibre())return new google.maps.Size(n,r);this.width=Number(n),this.height=Number(r)}function ASLMarkerImage(n,r,d,c,x){return asl_has_google_maps()&&!asl_shared_uses_maplibre()?new google.maps.MarkerImage(n,r,d,c,x):{url:n,size:r,origin:d,anchor:c,scaledSize:
1x}}var ASLControlPosition=asl_has_google_maps()&&!asl_shared_uses_maplibre()?google.maps.ControlPosition:{TOP_LEFT:1,TOP_CENTER:2,TOP_RIGHT:3,LEFT_TOP:4,RIGHT_TOP:5,LEFT_CENTER:6,RIGHT_CENTER:7,LEFT_BOTTOM:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12},ASLAnimation=asl_has_google_maps()&&!asl_shared_uses_maplibre()?google.maps.Animation:{BOUNCE:"BOUNCE",DROP:"DROP"},ASLUnitSystem=asl_has_google_maps()&&!asl_shared_uses_maplibre()?google.maps.UnitSystem:{METRIC:0,IMPERIAL:1},asl_gdpr=function(n){window.asl_async_callback=function(){asl_store_locator()};var r=!1;function d(){if(!r){if(r=!0,!asl_requires_google_runtime()){window.asl_async_callback();return}var x=document.createElement("script");x.type="text/javascript",x.src="https://maps.googleapis.com/maps/api/js?libraries=places&callback=asl_async_callback&key="+asl_configuration.api_key,document.body.appendChild(x)}}function c(){window.localStorage&&window.localStorage.setItem("asl-gdpr",1),asl_configuration.gdpr=!1,d(),jQuery(".asl-cont #sl-btn-gdpr").parent().parent().parent().remove()}if(n){asl_configuration.gdpr=!1,d();return}jQuery(".asl-cont #sl-btn-gdpr").on("click",c),window.localStorage&&window.localStorage.getItem("asl-gdpr")=="1"&&c()};asl_configuration.gdpr=="1"&&(asl_configuration.gdpr_enabled=!0,asl_gdpr()),window.asl_init_callback=function(){asl_store_locator()};function asl_store_locator(){if(asl_configuration.gdpr=="1")return;if(asl_requires_google_runtime()&&!asl_has_google_maps()){asl_configuration.google_maps_wait_started||(asl_configuration.google_maps_wait_started=Date.now()),Date.now()-asl_configuration.google_maps_wait_started<15e3?(window.clearTimeout(asl_configuration.google_maps_wait_timer),asl_configuration.google_maps_wait_timer=window.setTimeout(asl_store_locator,100)):asl_configuration.google_maps_load_failed||(asl_configuration.google_maps_load_failed=!0,asl_configuration.gdpr_enabled||console.warn("Store Locator Error! Google Maps library did not load within 15 seconds. Check browser blocking, network, CSP, API key, or cache settings."));return}if(window.clearTimeout(asl_configuration.google_maps_wait_timer),asl_configuration.google_maps_wait_timer=null,jQuery(".storelocator-main").length>=2&&console.warn("Store Locator Error! Multiple instances of store locator loaded on the page."),window._asl_map_customize||(window._asl_map_customize=null),asl_configuration.is_loaded)return;asl_configuration.is_loaded=!0;var asl_locator=function(){},do_geocoding=null;if(asl_locator.show_map_error=function(n){var r=document.getElementById("asl-map-canv");if(r){var d=r.querySelector(".asl-map-error");d&&d.remove();var c=document.createElement("div");c.className="asl-map-error alert alert-danger",c.setAttribute("role","alert"),c.textContent=n,c.style.cssText="position:absolute;z-index:10;top:12px;left:12px;right:12px;margin:0;",window.getComputedStyle(r).position==="static"&&(r.style.position="relative"),r.appendChild(c)}},!jQuery.fn.adropdown){/*! 2* Bootstrap v4.6.1 (https://getbootstrap.com/) 3* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5*/(function(n,r){typeof exports=="object"&&typeof module!="undefined"?r(exports,require("jquery")):typeof define=="function"&&define.amd?define(["exports","jquery"],r):r((n=typeof globalThis!="undefined"?globalThis:n||self).bootstrap={},n.jQuery)})(this,(function(n,r){"use strict";function d(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var c=d(r);function x(a,f){for(var l=0;l<f.length;l++){var p=f[l];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}function B(a,f,l){return f&&x(a.prototype,f),l&&x(a,l),a}function ct(){return ct=Object.assign||function(a){for(var f=1;f<arguments.length;f++){var l=arguments[f];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(a[p]=l[p])}return a},ct.apply(this,arguments)}var Z="bs4_transitionend",V={TRANSITION_END:Z,getUID:function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},getSelectorFromElement:function(a){var f=a.getAttribute("data-target");if(!f||f==="#"){var l=a.getAttribute("href");f=l&&l!=="#"?l.trim():""}try{return document.querySelector(f)?f:null}catch(p){return null}}
vendor: 4,863 bytes, line 5
5,getTransitionDurationFromElement:function(a){if(!a)return 0;var f=c.default(a).css("transition-duration"),l=c.default(a).css("transition-delay"),p=parseFloat(f),C=parseFloat(l);return p||C?(f=f.split(",")[0],l=l.split(",")[0],1e3*(parseFloat(f)+parseFloat(l))):0},reflow:function(a){return a.offsetHeight},triggerTransitionEnd:function(a){c.default(a).trigger(Z)},supportsTransitionEnd:function(){return!!Z},isElement:function(a){return(a[0]||a).nodeType},typeCheckConfig:function(a,f,l){for(var p in l)if(Object.prototype.hasOwnProperty.call(l,p)){var C=l[p],A=f[p],P=A&&V.isElement(A)?"element":(U=A)===null||typeof U=="undefined"?""+U:{}.toString.call(U).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(C).test(P))throw new Error(a.toUpperCase()+': Option "'+p+'" provided type "'+P+'" but expected type "'+C+'".')}var U},findShadowRoot:function(a){if(!document.documentElement.attachShadow)return null;if(typeof a.getRootNode=="function"){var f=a.getRootNode();return f instanceof ShadowRoot?f:null}return a instanceof ShadowRoot?a:a.parentNode?V.findShadowRoot(a.parentNode):null},jQueryDetection:function(){typeof c.default=="undefined"&&console.log("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var a=c.default.fn.jquery.split(" ")[0].split(".");(a[0]<2&&a[1]<9||a[0]===1&&a[1]===9&&a[2]<1||a[0]>=4)&&console.log("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};V.jQueryDetection(),c.default.fn.emulateTransitionEnd=function(a){var f=this,l=!1;return c.default(this).one(Z,(function(){l=!0})),setTimeout((function(){l||V.triggerTransitionEnd(f)}),a),this},c.default.event.special.bs4_transitionend={bindType:Z,delegateType:Z,handle:function(a){if(c.default(a.target).is(this))return a.handleObj.handler.apply(this,arguments)}};var ft="colision",ht="bs.colision",It=c.default.fn[ft],mt="show",Dt="colision",kt="collapsing",Nt="colisiond",Ut="width",ie='[data-toggle="colision"]',Qt={toggle:!0,parent:""},se={toggle:"boolean",parent:"(string|element)"},t=(function(){function a(l,p){this._isTransitioning=!1,this._element=l,this._config=this._getConfig(p),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="colision"][href="#'+l.id+'"],[data-toggle="colision"][data-target="#'+l.id+'"]'));for(var C=[].slice.call(document.querySelectorAll(ie)),A=0,P=C.length;A<P;A++){var U=C[A],J=V.getSelectorFromElement(U),lt=[].slice.call(document.querySelectorAll(J)).filter((function(wt){return wt===l}));J!==null&<.length>0&&(this._selector=J,this._triggerArray.push(U))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndaCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var f=a.prototype;return f.toggle=function(){c.default(this._element).hasClass(mt)?this.hide():this.show()},f.show=function(){var l,p,C=this;if(!(this._isTransitioning||c.default(this._element).hasClass(mt)||(this._parent&&(l=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(lt){return typeof C._config.parent=="string"?lt.getAttribute("data-parent")===C._config.parent:lt.classList.contains(Dt)}))).length===0&&(l=null),l&&(p=c.default(l).not(this._selector).data(ht))&&p._isTransitioning))){var A=c.default.Event("show.bs.colision");if(c.default(this._element).trigger(A),!A.isDefaultPrevented()){l&&(a._jQueryInterface.call(c.default(l).not(this._selector),"hide"),p||c.default(l).data(ht,null));var P=this._getDimension();c.default(this._element).removeClass(Dt).addClass(kt),this._element.style[P]=0,this._triggerArray.length&&c.default(this._triggerArray).removeClass(Nt).attr("aria-expanded",!0),this.setTransitioning(!0);var U="scroll"+(P[0].toUpperCase()+P.slice(1)),J=V.getTransitionDurationFromElement(this._element);c.default(this._element).one(V.TRANSITION_END,(function(){c.default(C._element).removeClass(kt).addClass("colision show"),C._element.style[P]="",C.setTransitioning(!1),c.default(C._element).trigger("shown.bs.colision")})).emulateTransitionEnd(J),this._element.style[P]=this._element[U]+"px"}}},f.hide=function(){var l=this;if(!this._isTransitioning&&c.default(this._element).hasClass(mt)){var p=c.default.Event("hide.bs.colision");if(c.default(this._element).trigger(p),!p.isDefaultPrevented()){var C=this._getDimension();this._element.style[C]=this._element.getBoundingClientRect()[C]+"px",V.reflow(this._element),c.default(this._element).addClass(kt).removeClass("colision show");var A=this._triggerArray.length;if(A>0)for(var P=0;P<A;P++){var U=this._triggerArray[P],J=V.getSelectorFromElement(U);J!==null&&(c.default([].slice.call(document.querySelectorAll(J))).hasClass(mt)||c.default(U).addClass(Nt).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[C]="";var lt=V.getTransitionDurationFromElement(this._element);
5c.default(this._element).one(V.TRANSITION_END,(function(){l.setTransitioning(!1),c.default(l._element).removeClass(kt).addClass(Dt).trigger("hidden.bs.colision")})).emulateTransitionEnd(lt)}}},f.setTransitioning=function(l){this._isTransitioning=l},f.dispose=function(){c.default.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},f._getConfig=function(l){return(l=ct({},Qt,l)).toggle=!!l.toggle,V.typeCheckConfig(ft,l,se),l},f._getDimension=function(){return c.default(this._element).hasClass(Ut)?Ut:"height"},f._getParent=function(){var l,p=this;V.isElement(this._config.parent)?(l=this._config.parent,typeof this._config.parent.jquery!="undefined"&&(l=this._config.parent[0])):l=document.querySelector(this._config.parent);var C='[data-toggle="colision"][data-parent="'+this._config.parent+'"]',A=[].slice.call(l.querySelectorAll(C));return c.default(A).each((function(P,U){p._addAriaAndaCollapsedClass(a._getTargetFromElement(U),[U])})),l},f._addAriaAndaCollapsedClass=function(l,p){var C=c.default(l).hasClass(mt);p.length&&c.default(p).toggleClass(Nt,!C).attr("aria-expanded",C)},a._getTargetFromElement=function(l){var p=V.getSelectorFromElement(l);return p?document.querySelector(p):null},a._jQueryInterface=function(l){return this.each((function(){var p=c.default(this),C=p.data(ht),A=ct({},Qt,p.data(),typeof l=="object"&&l?l:{});if(!C&&A.toggle&&typeof l=="string"&&/show|hide/.test(l)&&(A.toggle=!1),C||(C=new a(this,A),p.data(ht,C)),typeof l=="string"){if(typeof C[l]=="undefined")throw new TypeError('No method named "'+l+'"');C[l]()}}))},B(a,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return Qt}}]),a})();c.default(document).on("click.bs.colision.data-api",ie,(function(a){a.currentTarget.tagName==="A"&&a.preventDefault();var f=c.default(this),l=V.getSelectorFromElement(this),p=[].slice.call(document.querySelectorAll(l));c.default(p).each((function(){var C=c.default(this),A=C.data(ht)?"toggle":f.data();t._jQueryInterface.call(C,A)}))})),c.default.fn[ft]=t._jQueryInterface,c.default.fn[ft].Constructor=t,c.default.fn[ft].noConflict=function(){return c.default.fn[ft]=It,t._jQueryInterface};var e=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",o=(function(){for(var a=["Edge","Trident","Firefox"],f=0;f<a.length;f+=1)if(e&&navigator.userAgent.indexOf(a[f])>=0)return 1;return 0})(),s=e&&window.Promise?function(a){var f=!1;return function(){f||(f=!0,window.Promise.resolve().then((function(){f=!1,a()})))}}:function(a){var f=!1;return function(){f||(f=!0,setTimeout((function(){f=!1,a()}),o))}};function u(a){return a&&{}.toString.call(a)==="[object Function]"}function _(a,f){if(a.nodeType!==1)return[];var l=a.ownerDocument.defaultView.getComputedStyle(a,null);return f?l[f]:l}function b(a){return a.nodeName==="HTML"?a:a.parentNode||a.host}function h(a){if(!a)return document.body;switch(a.nodeName){case"HTML":case"BODY":return a.ownerDocument.body;case"#document":return a.body}var f=_(a),l=f.overflow,p=f.overflowX,C=f.overflowY;return/(auto|scroll|overlay)/.test(l+C+p)?a:h(b(a))}function g(a){return a&&a.referenceNode?a.referenceNode:a}var k=e&&!(!window.MSInputMethodContext||!document.documentMode),m=e&&/MSIE 10/.test(navigator.userAgent);function H(a){return a===11?k:a===10?m:k||m}function Q(a){if(!a)return document.documentElement;for(var f=H(10)?document.body:null,l=a.offsetParent||null;l===f&&a.nextElementSibling;)l=(a=a.nextElementSibling).offsetParent;var p=l&&l.nodeName;return p&&p!=="BODY"&&p!=="HTML"?["TH","TD","TABLE"].indexOf(l.nodeName)!==-1&&_(l,"position")==="static"?Q(l):l:a?a.ownerDocument.documentElement:document.documentElement}function ot(a){return a.parentNode!==null?ot(a.parentNode):a}function T(a,f){if(!(a&&a.nodeType&&f&&f.nodeType))return document.documentElement;var l=a.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING,p=l?a:f,C=l?f:a,A=document.createRange();A.setStart(p,0),A.setEnd(C,0);var P,U,J=A.commonAncestorContainer;if(a!==J&&f!==J||p.contains(C))return(U=(P=J).nodeName)==="BODY"||U!=="HTML"&&Q(P.firstElementChild)!==P?Q(J):J;var lt=ot(a);return lt.host?T(lt.host,f):T(a,ot(f).host)}function I(a){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",l=f==="top"?"scrollTop":"scrollLeft",p=a.nodeName;if(p==="BODY"||p==="HTML"){var C=a.ownerDocument.documentElement,A=a.ownerDocument.scrollingElement||C;return A[l]}return a[l]}function q(a,f){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=I(f,"top"),C=I(f,"left"),A=l?-1:1;return a.top+=p*A,a.bottom+=p*A,a.left+=C*A,a.right+=C*A,a}function at(a,f){var l=f==="x"?"Left":"Top",p=l==="Left"?"Right":"Bottom";return parseFloat(a["border"+l+"Width"])+parseFloat(a["border"+p+"Width"])}function it(a,f,l,p){return Math.max(f["offset"+a],f["scroll"+a],l["client"+a],l["offset"+a],l["scroll"+a],H(10)?parseInt(l["offset"+a])+parseInt(p["margin"+(a==="Height"?"Top":"Left")])+parseInt(p["margin"+(a==="Height"?"Bottom":"Right")]):0)}function vt(a){var f=a.body,l=a.documentElement,p=H(10)&&getComputedStyle(l);return{height:it("Height",f,l,p),width:it("Width",f,l,p)}}var Lt=function(a,f){if(!(a instanceof f))throw new TypeError("Cannot call a class as a function")},Ot=(function(){function a(f,l){for(var p=0;p<l.length;p++){var C=l[p];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(f,C.key,C)}}return function(f,l,p){return l&&a(f.prototype,l),p&&a(f,p),f}})(),dt=function(a,f,l){return f in a?Object.defineProperty(a,f,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[f]=l,a},rt=Object.assign||function(a){for(var f=1;f<arguments.length;f++){var l=arguments[f];
5for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(a[p]=l[p])}return a};function gt(a){return rt({},a,{right:a.left+a.width,bottom:a.top+a.height})}function zt(a){var f={};try{if(H(10)){f=a.getBoundingClientRect();var l=I(a,"top"),p=I(a,"left");f.top+=l,f.left+=p,f.bottom+=l,f.right+=p}else f=a.getBoundingClientRect()}catch(st){}var C={left:f.left,top:f.top,width:f.right-f.left,height:f.bottom-f.top},A=a.nodeName==="HTML"?vt(a.ownerDocument):{},P=A.width||a.clientWidth||C.width,U=A.height||a.clientHeight||C.height,J=a.offsetWidth-P,lt=a.offsetHeight-U;if(J||lt){var wt=_(a);J-=at(wt,"x"),lt-=at(wt,"y"),C.width-=J,C.height-=lt}return gt(C)}function y(a,f){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=H(10),C=f.nodeName==="HTML",A=zt(a),P=zt(f),U=h(a),J=_(f),lt=parseFloat(J.borderTopWidth),wt=parseFloat(J.borderLeftWidth);l&&C&&(P.top=Math.max(P.top,0),P.left=Math.max(P.left,0));var st=gt({top:A.top-P.top-lt,left:A.left-P.left-wt,width:A.width,height:A.height});if(st.marginTop=0,st.marginLeft=0,!p&&C){var _t=parseFloat(J.marginTop),Mt=parseFloat(J.marginLeft);st.top-=lt-_t,st.bottom-=lt-_t,st.left-=wt-Mt,st.right-=wt-Mt,st.marginTop=_t,st.marginLeft=Mt}return(p&&!l?f.contains(U):f===U&&U.nodeName!=="BODY")&&(st=q(st,f)),st}function S(a){var f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],l=a.ownerDocument.documentElement,p=y(a,l),C=Math.max(l.clientWidth,window.innerWidth||0),A=Math.max(l.clientHeight,window.innerHeight||0),P=f?0:I(l),U=f?0:I(l,"left"),J={top:P-p.top+p.marginTop,left:U-p.left+p.marginLeft,width:C,height:A};return gt(J)}function L(a){var f=a.nodeName;if(f==="BODY"||f==="HTML")return!1;if(_(a,"position")==="fixed")return!0;var l=b(a);return!!l&&L(l)}function v(a){if(!a||!a.parentElement||H())return document.documentElement;for(var f=a.parentElement;f&&_(f,"transform")==="none";)f=f.parentElement;return f||document.documentElement}function M(a,f,l,p){var C=arguments.length>4&&arguments[4]!==void 0&&arguments[4],A={top:0,left:0},P=C?v(a):T(a,g(f));if(p==="viewport")A=S(P,C);else{var U=void 0;p==="scrollParent"?(U=h(b(f))).nodeName==="BODY"&&(U=a.ownerDocument.documentElement):U=p==="window"?a.ownerDocument.documentElement:p;var J=y(U,P,C);if(U.nodeName!=="HTML"||L(P))A=J;else{var lt=vt(a.ownerDocument),wt=lt.height,st=lt.width;A.top+=J.top-J.marginTop,A.bottom=wt+J.top,A.left+=J.left-J.marginLeft,A.right=st+J.left}}var _t=typeof(l=l||0)=="number";return A.left+=_t?l:l.left||0,A.top+=_t?l:l.top||0,A.right-=_t?l:l.right||0,A.bottom-=_t?l:l.bottom||0,A}function w(a){return a.width*a.height}function E(a,f,l,p,C){var A=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(a.indexOf("auto")===-1)return a;var P=M(l,p,A,C),U={top:{width:P.width,height:f.top-P.top},right:{width:P.right-f.right,height:P.height},bottom:{width:P.width,height:P.bottom-f.bottom},left:{width:f.left-P.left,height:P.height}},J=Object.keys(U).map((function(_t){return rt({key:_t},U[_t],{area:w(U[_t])})})).sort((function(_t,Mt){return Mt.area-_t.area})),lt=J.filter((function(_t){var Mt=_t.width,Vt=_t.height;return Mt>=l.clientWidth&&Vt>=l.clientHeight})),wt=lt.length>0?lt[0].key:J[0].key,st=a.split("-")[1];return wt+(st?"-"+st:"")}function K(a,f,l){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,C=p?v(f):T(f,g(l));return y(l,C,p)}function N(a){var f=a.ownerDocument.defaultView.getComputedStyle(a),l=parseFloat(f.marginTop||0)+parseFloat(f.marginBottom||0),p=parseFloat(f.marginLeft||0)+parseFloat(f.marginRight||0);return{width:a.offsetWidth+p,height:a.offsetHeight+l}}
5function W(a){var f={left:"right",right:"left",bottom:"top",top:"bottom"};return a.replace(/left|right|bottom|top/g,(function(l){return f[l]}))}function tt(a,f,l){l=l.split("-")[0];var p=N(a),C={width:p.width,height:p.height},A=["right","left"].indexOf(l)!==-1,P=A?"top":"left",U=A?"left":"top",J=A?"height":"width",lt=A?"width":"height";return C[P]=f[P]+f[J]/2-p[J]/2,C[U]=l===U?f[U]-p[lt]:f[W(U)],C}function et(a,f){return Array.prototype.find?a.find(f):a.filter(f)[0]}function Y(a,f,l){return(l===void 0?a:a.slice(0,(function(p,C,A){if(Array.prototype.findIndex)return p.findIndex((function(U){return U.name===A}));var P=et(p,(function(U){return U.name===A}));return p.indexOf(P)})(a,0,l))).forEach((function(p){p.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var C=p.function||p.fn;p.enabled&&u(C)&&(f.offsets.popper=gt(f.offsets.popper),f.offsets.reference=gt(f.offsets.reference),f=C(f,p))})),f}function Ct(){if(!this.state.isDestroyed){var a={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};a.offsets.reference=K(this.state,this.popper,this.reference,this.options.positionFixed),a.placement=E(this.options.placement,a.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),a.originalPlacement=a.placement,a.positionFixed=this.options.positionFixed,a.offsets.popper=tt(this.popper,a.offsets.reference,a.placement),a.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",a=Y(this.modifiers,a),this.state.isCreated?this.options.onUpdate(a):(this.state.isCreated=!0,this.options.onCreate(a))}}function At(a,f){return a.some((function(l){var p=l.name;return l.enabled&&p===f}))}function ut(a){for(var f=[!1,"ms","Webkit","Moz","O"],l=a.charAt(0).toUpperCase()+a.slice(1),p=0;p<f.length;p++){var C=f[p],A=C?""+C+l:a;if(typeof document.body.style[A]!="undefined")return A}return null}function R(){return this.state.isDestroyed=!0,At(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ut("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function X(a){var f=a.ownerDocument;return f?f.defaultView:window}function j(a,f,l,p){var C=a.nodeName==="BODY",A=C?a.ownerDocument.defaultView:a;A.addEventListener(f,l,{passive:!0}),C||j(h(A.parentNode),f,l,p),p.push(A)}function z(a,f,l,p){l.updateBound=p,X(a).addEventListener("resize",l.updateBound,{passive:!0});var C=h(a);return j(C,"scroll",l.updateBound,l.scrollParents),l.scrollElement=C,l.eventsEnabled=!0,l}function G(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function St(){var a,f;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(a=this.reference,f=this.state,X(a).removeEventListener("resize",f.updateBound),f.scrollParents.forEach((function(l){l.removeEventListener("scroll",f.updateBound)})),f.updateBound=null,f.scrollParents=[],f.scrollElement=null,f.eventsEnabled=!1,f))}function bt(a){return a!==""&&!isNaN(parseFloat(a))&&isFinite(a)}function Et(a,f){Object.keys(f).forEach((function(l){var p="";["width","height","top","right","bottom","left"].indexOf(l)!==-1&&bt(f[l])&&(p="px"),a.style[l]=f[l]+p}))}var Ft=e&&/Firefox/i.test(navigator.userAgent);function Bt(a,f,l){var p=et(a,(function(U){return U.name===f})),C=!!p&&a.some((function(U){return U.name===l&&U.enabled&&U.order<p.order}));if(!C){var A="`"+f+"`",P="`"+l+"`";console.warn(P+" modifier is required by "+A+" modifier in order to work, be sure to include it before "+A+"!")}return C}var oe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],jt=oe.slice(3);function Rt(a){var f=arguments.length>1&&arguments[1]!==void 0&&arguments[1],l=jt.indexOf(a),p=jt.slice(l+1).concat(jt.slice(0,l));return f?p.reverse():p}var Wt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(a){var f=a.placement,l=f.split("-")[0],p=f.split("-")[1];if(p){var C=a.offsets,A=C.reference,P=C.popper,U=["bottom","top"].indexOf(l)!==-1,J=U?"left":"top",lt=U?"width":"height",wt={start:dt({},J,A[J]),end:dt({},J,A[J]+A[lt]-P[lt])};a.offsets.popper=rt({},P,wt[p])}return a}},offset:{order:200,enabled:!0,fn:function(a,f){var l,p=f.offset,C=a.placement,A=a.offsets,P=A.popper,U=A.reference,J=C.split("-")[0];return l=bt(+p)?[+p,0]:(function(lt,wt,st,_t){var Mt=[0,0],Vt=["right","left"].indexOf(_t)!==-1,Kt=lt.split(/(\+|\-)/).map((function(Zt){return Zt.trim()})),$t=Kt.indexOf(et(Kt,(function(Zt){return Zt.search(/,|\s/)!==-1})));Kt[$t]&&Kt[$t].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var ce=/\s*,\s*|\s+/,te=$t!==-1?[Kt.slice(0,$t).concat([Kt[$t].split(ce)[0]]),[Kt[$t].split(ce)[1]].concat(Kt.slice($t+1))]:[Kt];return te=te.map((function(Zt,ue){var le=(ue===1?!Vt:Vt)?"height":"width",ee=!1;return Zt.reduce((function(ae,re){return ae[ae.length-1]===""&&["+","-"].indexOf(re)!==-1?(ae[ae.length-1]=re,ee=!0,ae):ee?(ae[ae.length-1]+=re,ee=!1,ae):ae.concat(re)}),[]).map((function(ae){return(function(re,ye,me,ve){var ge=re.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),_e=+ge[1],fe=ge[2];return _e?fe.indexOf("%")===0?gt(fe==="%p"?me:ve)[ye]/100*_e:fe==="vh"||fe==="vw"?(fe==="vh"?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*_e:_e:re})(ae,le,wt,st)}))}
vendor: 4,327 bytes, line 5
5)),te.forEach((function(Zt,ue){Zt.forEach((function(le,ee){bt(le)&&(Mt[ue]+=le*(Zt[ee-1]==="-"?-1:1))}))})),Mt})(p,P,U,J),J==="left"?(P.top+=l[0],P.left-=l[1]):J==="right"?(P.top+=l[0],P.left+=l[1]):J==="top"?(P.left+=l[0],P.top-=l[1]):J==="bottom"&&(P.left+=l[0],P.top+=l[1]),a.popper=P,a},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(a,f){var l=f.boundariesElement||Q(a.instance.popper);a.instance.reference===l&&(l=Q(l));var p=ut("transform"),C=a.instance.popper.style,A=C.top,P=C.left,U=C[p];C.top="",C.left="",C[p]="";var J=M(a.instance.popper,a.instance.reference,f.padding,l,a.positionFixed);C.top=A,C.left=P,C[p]=U,f.boundaries=J;var lt=f.priority,wt=a.offsets.popper,st={primary:function(_t){var Mt=wt[_t];return wt[_t]<J[_t]&&!f.escapeWithReference&&(Mt=Math.max(wt[_t],J[_t])),dt({},_t,Mt)},secondary:function(_t){var Mt=_t==="right"?"left":"top",Vt=wt[Mt];return wt[_t]>J[_t]&&!f.escapeWithReference&&(Vt=Math.min(wt[Mt],J[_t]-(_t==="right"?wt.width:wt.height))),dt({},Mt,Vt)}};return lt.forEach((function(_t){var Mt=["left","top"].indexOf(_t)!==-1?"primary":"secondary";wt=rt({},wt,st[Mt](_t))})),a.offsets.popper=wt,a},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(a){var f=a.offsets,l=f.popper,p=f.reference,C=a.placement.split("-")[0],A=Math.floor,P=["top","bottom"].indexOf(C)!==-1,U=P?"right":"bottom",J=P?"left":"top",lt=P?"width":"height";return l[U]<A(p[J])&&(a.offsets.popper[J]=A(p[J])-l[lt]),l[J]>A(p[U])&&(a.offsets.popper[J]=A(p[U])),a}},arrow:{order:500,enabled:!0,fn:function(a,f){var l;if(!Bt(a.instance.modifiers,"arrow","keepTogether"))return a;var p=f.element;if(typeof p=="string"){if(!(p=a.instance.popper.querySelector(p)))return a}else if(!a.instance.popper.contains(p))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),a;var C=a.placement.split("-")[0],A=a.offsets,P=A.popper,U=A.reference,J=["left","right"].indexOf(C)!==-1,lt=J?"height":"width",wt=J?"Top":"Left",st=wt.toLowerCase(),_t=J?"left":"top",Mt=J?"bottom":"right",Vt=N(p)[lt];U[Mt]-Vt<P[st]&&(a.offsets.popper[st]-=P[st]-(U[Mt]-Vt)),U[st]+Vt>P[Mt]&&(a.offsets.popper[st]+=U[st]+Vt-P[Mt]),a.offsets.popper=gt(a.offsets.popper);var Kt=U[st]+U[lt]/2-Vt/2,$t=_(a.instance.popper),ce=parseFloat($t["margin"+wt]),te=parseFloat($t["border"+wt+"Width"]),Zt=Kt-a.offsets.popper[st]-ce-te;return Zt=Math.max(Math.min(P[lt]-Vt,Zt),0),a.arrowElement=p,a.offsets.arrow=(dt(l={},st,Math.round(Zt)),dt(l,_t,""),l),a},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(a,f){if(At(a.instance.modifiers,"inner")||a.flipped&&a.placement===a.originalPlacement)return a;var l=M(a.instance.popper,a.instance.reference,f.padding,f.boundariesElement,a.positionFixed),p=a.placement.split("-")[0],C=W(p),A=a.placement.split("-")[1]||"",P=[];switch(f.behavior){case"flip":P=[p,C];break;case"clockwise":P=Rt(p);break;case"counterclockwise":P=Rt(p,!0);break;default:P=f.behavior}return P.forEach((function(U,J){if(p!==U||P.length===J+1)return a;p=a.placement.split("-")[0],C=W(p);var lt=a.offsets.popper,wt=a.offsets.reference,st=Math.floor,_t=p==="left"&&st(lt.right)>st(wt.left)||p==="right"&&st(lt.left)<st(wt.right)||p==="top"&&st(lt.bottom)>st(wt.top)||p==="bottom"&&st(lt.top)<st(wt.bottom),Mt=st(lt.left)<st(l.left),Vt=st(lt.right)>st(l.right),Kt=st(lt.top)<st(l.top),$t=st(lt.bottom)>st(l.bottom),ce=p==="left"&&Mt||p==="right"&&Vt||p==="top"&&Kt||p==="bottom"&&$t,te=["top","bottom"].indexOf(p)!==-1,Zt=!!f.flipVariations&&(te&&A==="start"&&Mt||te&&A==="end"&&Vt||!te&&A==="start"&&Kt||!te&&A==="end"&&$t),ue=!!f.flipVariationsByContent&&(te&&A==="start"&&Vt||te&&A==="end"&&Mt||!te&&A==="start"&&$t||!te&&A==="end"&&Kt),le=Zt||ue;(_t||ce||le)&&(a.flipped=!0,(_t||ce)&&(p=P[J+1]),le&&(A=(function(ee){return ee==="end"?"start":ee==="start"?"end":ee})(A)),a.placement=p+(A?"-"+A:""),a.offsets.popper=rt({},a.offsets.popper,tt(a.instance.popper,a.offsets.reference,a.placement)),a=Y(a.instance.modifiers,a,"flip"))})),a},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(a){var f=a.placement,l=f.split("-")[0],p=a.offsets,C=p.popper,A=p.reference,P=["left","right"].indexOf(l)!==-1,U=["top","left"].indexOf(l)===-1;
5return C[P?"left":"top"]=A[l]-(U?C[P?"width":"height"]:0),a.placement=W(f),a.offsets.popper=gt(C),a}},hide:{order:800,enabled:!0,fn:function(a){if(!Bt(a.instance.modifiers,"hide","preventOverflow"))return a;var f=a.offsets.reference,l=et(a.instance.modifiers,(function(p){return p.name==="preventOverflow"})).boundaries;if(f.bottom<l.top||f.left>l.right||f.top>l.bottom||f.right<l.left){if(a.hide===!0)return a;a.hide=!0,a.attributes["x-out-of-boundaries"]=""}else{if(a.hide===!1)return a;a.hide=!1,a.attributes["x-out-of-boundaries"]=!1}return a}},computeStyle:{order:850,enabled:!0,fn:function(a,f){var l=f.x,p=f.y,C=a.offsets.popper,A=et(a.instance.modifiers,(function(Zt){return Zt.name==="applyStyle"})).gpuAcceleration;A!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var P,U,J=A!==void 0?A:f.gpuAcceleration,lt=Q(a.instance.popper),wt=zt(lt),st={position:C.position},_t=(function(Zt,ue){var le=Zt.offsets,ee=le.popper,ae=le.reference,re=Math.round,ye=Math.floor,me=function(Le){return Le},ve=re(ae.width),ge=re(ee.width),_e=["left","right"].indexOf(Zt.placement)!==-1,fe=Zt.placement.indexOf("-")!==-1,be=ue?_e||fe||ve%2==ge%2?re:ye:me,we=ue?re:me;return{left:be(ve%2==1&&ge%2==1&&!fe&&ue?ee.left-1:ee.left),top:we(ee.top),bottom:we(ee.bottom),right:be(ee.right)}})(a,window.devicePixelRatio<2||!Ft),Mt=l==="bottom"?"top":"bottom",Vt=p==="right"?"left":"right",Kt=ut("transform");if(U=Mt==="bottom"?lt.nodeName==="HTML"?-lt.clientHeight+_t.bottom:-wt.height+_t.bottom:_t.top,P=Vt==="right"?lt.nodeName==="HTML"?-lt.clientWidth+_t.right:-wt.width+_t.right:_t.left,J&&Kt)st[Kt]="translate3d("+P+"px, "+U+"px, 0)",st[Mt]=0,st[Vt]=0,st.willChange="transform";else{var $t=Mt==="bottom"?-1:1,ce=Vt==="right"?-1:1;st[Mt]=U*$t,st[Vt]=P*ce,st.willChange=Mt+", "+Vt}var te={"x-placement":a.placement};return a.attributes=rt({},te,a.attributes),a.styles=rt({},st,a.styles),a.arrowStyles=rt({},a.offsets.arrow,a.arrowStyles),a},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(a){var f,l;return Et(a.instance.popper,a.styles),f=a.instance.popper,l=a.attributes,Object.keys(l).forEach((function(p){l[p]!==!1?f.setAttribute(p,l[p]):f.removeAttribute(p)})),a.arrowElement&&Object.keys(a.arrowStyles).length&&Et(a.arrowElement,a.arrowStyles),a},onLoad:function(a,f,l,p,C){var A=K(C,f,a,l.positionFixed),P=E(l.placement,A,f,a,l.modifiers.flip.boundariesElement,l.modifiers.flip.padding);return f.setAttribute("x-placement",P),Et(f,{position:l.positionFixed?"fixed":"absolute"}),l},gpuAcceleration:void 0}}},Gt=(function(){function a(f,l){var p=this,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Lt(this,a),this.scheduleUpdate=function(){return requestAnimationFrame(p.update)},this.update=s(this.update.bind(this)),this.options=rt({},a.Defaults,C),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=f&&f.jquery?f[0]:f,this.popper=l&&l.jquery?l[0]:l,this.options.modifiers={},Object.keys(rt({},a.Defaults.modifiers,C.modifiers)).forEach((function(P){p.options.modifiers[P]=rt({},a.Defaults.modifiers[P]||{},C.modifiers?C.modifiers[P]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(P){return rt({name:P},p.options.modifiers[P])})).sort((function(P,U){return P.order-U.order})),this.modifiers.forEach((function(P){P.enabled&&u(P.onLoad)&&P.onLoad(p.reference,p.popper,p.options,P,p.state)})),this.update();var A=this.options.eventsEnabled;A&&this.enableEventListeners(),this.state.eventsEnabled=A}return Ot(a,[{key:"update",value:function(){return Ct.call(this)}},{key:"destroy",value:function(){return R.call(this)}},{key:"enableEventListeners",value:function(){return G.call(this)}},{key:"disableEventListeners",value:function(){return St.call(this)}}]),a})();Gt.Utils=(typeof window!="undefined"?window:global).PopperUtils,Gt.placements=oe,Gt.Defaults=Wt;var Ht=Gt,O="adropdown",F="bs.adropdown",D="."+F,pt=c.default.fn[O],nt=ne
5w RegExp("38|40|27"),xt="disabled",Pt="show",yt="adropdown-menu-right",Tt="hide"+D,qt="hidden"+D,Jt="click.bs.adropdown.data-api",Yt="keydown.bs.adropdown.data-api",de='[data-toggle="adropdown"]',pe=".adropdown-menu",he={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Xt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},ne=(function(){function a(l,p){this._element=l,this._popper=null,this._config=this._getConfig(p),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var f=a.prototype;return f.toggle=function(){if(!this._element.disabled&&!c.default(this._element).hasClass(xt)){var l=c.default(this._menu).hasClass(Pt);a._clearMenus(),l||this.show(!0)}},f.show=function(l){if(l===void 0&&(l=!1),!(this._element.disabled||c.default(this._element).hasClass(xt)||c.default(this._menu).hasClass(Pt))){var p={relatedTarget:this._element},C=c.default.Event("show.bs.adropdown",p),A=a._getParentFromElement(this._element);if(c.default(A).trigger(C),!C.isDefaultPrevented()){if(!this._inNavbar&&l){if(typeof Ht=="undefined")throw new TypeError("Bootstrap's adropdowns require Popper (https://popper.js.org)");var P=this._element;this._config.reference==="parent"?P=A:V.isElement(this._config.reference)&&(P=this._config.reference,typeof this._config.reference.jquery!="undefined"&&(P=this._config.reference[0])),this._config.boundary!=="scrollParent"&&c.default(A).addClass("position-static"),this._popper=new Ht(P,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&c.default(A).closest(".navbar-nav").length===0&&c.default(document.body).children().on("mouseover",null,c.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),c.default(this._menu).toggleClass(Pt),c.default(A).toggleClass(Pt).trigger(c.default.Event("shown.bs.adropdown",p))}}},f.hide=function(){if(!this._element.disabled&&!c.default(this._element).hasClass(xt)&&c.default(this._menu).hasClass(Pt)){var l={relatedTarget:this._element},p=c.default.Event(Tt,l),C=a._getParentFromElement(this._element);c.default(C).trigger(p),p.isDefaultPrevented()||(this._popper&&this._popper.destroy(),c.default(this._menu).toggleClass(Pt),c.default(C).toggleClass(Pt).trigger(c.default.Event(qt,l)))}},f.dispose=function(){c.default.removeData(this._element,F),c.default(this._element).off(D),this._element=null,this._menu=null,this._popper!==null&&(this._popper.destroy(),this._popper=null)},f.update=function(){this._inNavbar=this._detectNavbar(),this._popper!==null&&this._popper.scheduleUpdate()},f._addEventListeners=function(){var l=this;c.default(this._element).on("click.bs.adropdown",(function(p){p.preventDefault(),p.stopPropagation(),l.toggle()}))},f._getConfig=function(l){return l=ct({},this.constructor.Default,c.default(this._element).data(),l),V.typeCheckConfig(O,l,this.constructor.DefaultType),l},f._getMenuElement=function(){if(!this._menu){var l=a._getParentFromElement(this._element);l&&(this._menu=l.querySelector(pe))}return this._menu},f._getPlacement=function(){var l=c.default(this._element.parentNode),p="bottom-start";return l.hasClass("dropup")?p=c.default(this._menu).hasClass(yt)?"top-end":"top-start":l.hasClass("dropright")?p="right-start":l.hasClass("dropleft")?p="left-start":c.default(this._menu).hasClass(yt)&&(p="bottom-end"),p},f._detectNavbar=function(){return c.default(this._element).closest(".navbar").length>0},f._getOffset=function(){var l=this,p={};return typeof this._config.offset=="function"?p.fn=function(C){return C.offsets=ct({},C.offsets,l._config.offset(C.offsets,l._element)),C}:p.offset=this._config.offset,p},f._getPopperConfig=function(){var l={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return this._config.display==="static"&&(l.modifiers.applyStyle={enabled:!1}),ct({},l,this._config.popperConfig)},a._jQueryInterface=function(l){return this.each((function(){var p=c.default(this).data(F);if(p||(p=new a(this,typeof l=="object"?l:null),c.default(this).data(F,p)),typeof l=="string"){if(typeof p[l]=="undefined")throw new TypeError('No method n
5amed "'+l+'"');p[l]()}}))},a._clearMenus=function(l){if(!l||l.which!==3&&(l.type!=="keyup"||l.which===9))for(var p=[].slice.call(document.querySelectorAll(de)),C=0,A=p.length;C<A;C++){var P=a._getParentFromElement(p[C]),U=c.default(p[C]).data(F),J={relatedTarget:p[C]};if(l&&l.type==="click"&&(J.clickEvent=l),U){var lt=U._menu;if(c.default(P).hasClass(Pt)&&!(l&&(l.type==="click"&&/input|textarea/i.test(l.target.tagName)||l.type==="keyup"&&l.which===9)&&c.default.contains(P,l.target))){var wt=c.default.Event(Tt,J);c.default(P).trigger(wt),wt.isDefaultPrevented()||("ontouchstart"in document.documentElement&&c.default(document.body).children().off("mouseover",null,c.default.noop),p[C].setAttribute("aria-expanded","false"),U._popper&&U._popper.destroy(),c.default(lt).removeClass(Pt),c.default(P).removeClass(Pt).trigger(c.default.Event(qt,J)))}}}},a._getParentFromElement=function(l){var p,C=V.getSelectorFromElement(l);return C&&(p=document.querySelector(C)),p||l.parentNode},a._dataApiKeydownHandler=function(l){if(!(/input|textarea/i.test(l.target.tagName)?l.which===32||l.which!==27&&(l.which!==40&&l.which!==38||c.default(l.target).closest(pe).length):!nt.test(l.which))&&!this.disabled&&!c.default(this).hasClass(xt)){var p=a._getParentFromElement(this),C=c.default(p).hasClass(Pt);if(C||l.which!==27){if(l.preventDefault(),l.stopPropagation(),!C||l.which===27||l.which===32)return l.which===27&&c.default(p.querySelector(de)).trigger("focus"),void c.default(this).trigger("click");var A=[].slice.call(p.querySelectorAll(".adropdown-menu .adropdown-item:not(.disabled):not(:disabled)")).filter((function(U){return c.default(U).is(":visible")}));if(A.length!==0){var P=A.indexOf(l.target);l.which===38&&P>0&&P--,l.which===40&&P<A.length-1&&P++,P<0&&(P=0),A[P].focus()}}}},B(a,null,[{key:"VERSION",get:function(){return"4.6.1"}},{key:"Default",get:function(){return he}},{key:"DefaultType",get:function(){return Xt}}]),a})();c.default(document).on(Yt,de,ne._dataApiKeydownHandler).on(Yt,pe,ne._dataApiKeydownHandler).on(Jt+" keyup.bs.adropdown.data-api",ne._clearMenus).on(Jt,de,(function(a){a.preventDefault(),a.stopPropagation(),ne._jQueryInterface.call(c.default(this),"toggle")})).on(Jt,".adropdown form",(function(a){a.stopPropagation()})),c.default.fn[O]=ne._jQueryInterface,c.default.fn[O].Constructor=ne,c.default.fn[O].noConflict=function(){return c.default.fn[O]=pt,ne._jQueryInterface},n.Util=V,n.aCollapse=t,n.aDropdown=ne,Object.defineProperty(n,"__esModule",{value:!0})}))}if(!asl_shared_uses_maplibre()){let n=function(r){r=r||{},google.maps.OverlayView.apply(this,arguments),this.content_=r.content||"",this.disableAutoPan_=r.disableAutoPan||!1,this.maxWidth_=r.maxWidth||0,this.pixelOffset_=r.pixelOffset||new google.maps.Size(0,0),this.position_=r.position||new google.maps.LatLng(0,0),this.zIndex_=r.zIndex||null,this.boxClass_=r.boxClass||"infoBox",this.boxStyle_=r.boxStyle||{},this.closeBoxMargin_=r.closeBoxMargin||"2px",this.closeBoxURL_=r.closeBoxURL||"https://www.google.com/intl/en_us/mapfiles/close.gif",r.closeBoxURL===""&&(this.closeBoxURL_=""),this.infoBoxClearance_=r.infoBoxClearance||new google.maps.Size(1,1),typeof r.visible=="undefined"&&(typeof r.isHidden=="undefined"?r.visible=!0:r.visible=!r.isHidden),this.isHidden_=!r.visible,this.alignBottom_=r.alignBottom||!1,this.pane_=r.pane||"floatPane",this.enableEventPropagation_=r.enableEventPropagation||!1,this.div_=null,this.closeListener_=null,this.moveListener_=null,this.contextListener_=null,this.eventListeners_=null,this.fixedWidthSet_=null};var InfoBox=n;n.prototype=new google.maps.OverlayView,n.prototype.createInfoBoxDiv_=function(){var r,d,c,x=this,B=function(Z){Z.cancelBubble=!0,Z.stopPropagation&&Z.stopPropagation()},ct=function(Z){Z.returnValue=!1,Z.preventDefault&&Z.preventDefault(),x.enableEventPropagation_||B(Z)};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),typeof this.content_.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:this.maxWidth_!==0&&this.div_.offsetWidth>this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(c=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-c.left-c.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],d=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],r=0;r<d.length;r++)this.eventListeners_.push(this.div_.addEventListener(d[r],B));this.eventListeners_.push(this.div_.addEventListener("mouseover",function(Z){this.style.cursor="default"}))}this.contextListener_=this.div_.addEventListener("contextmenu",ct),ASLEvent.trigger(this,"domready")}},n.prototype.getCloseBoxImg_=function(){var r="";return this.closeBoxURL_!==""&&(r="<img",r+=" src='"+this.closeBoxURL_+"'",r+=" al
5ign=right",r+=" style='",r+=" position: relative;",r+=" cursor: pointer;",r+=" margin: "+this.closeBoxMargin_+";",r+="'>"),r},n.prototype.addClickHandler_=function(){var r;this.closeBoxURL_!==""?(r=this.div_.firstChild,this.closeListener_=r.addEventListener("click",this.getCloseClickHandler_())):this.closeListener_=null},n.prototype.getCloseClickHandler_=function(){var r=this;return function(d){d.cancelBubble=!0,d.stopPropagation&&d.stopPropagation(),ASLEvent.trigger(r,"closeclick"),r.close()}},n.prototype.panBox_=function(r){var d,c,x=0,B=0;if(!r&&(d=this.getMap(),d instanceof google.maps.Map)){d.getBounds().contains(this.position_)||d.setCenter(this.position_),c=d.getBounds();var ct=d.getDiv(),Z=ct.offsetWidth,V=ct.offsetHeight,ft=this.pixelOffset_.width,ht=this.pixelOffset_.height,It=this.div_.offsetWidth,mt=this.div_.offsetHeight,Dt=this.infoBoxClearance_.width,kt=this.infoBoxClearance_.height,Nt=this.getProjection().fromLatLngToContainerPixel(this.position_);if(Nt.x<-ft+Dt?x=Nt.x+ft-Dt:Nt.x+It+ft+Dt>Z&&(x=Nt.x+It+ft+Dt-Z),this.alignBottom_?Nt.y<-ht+kt+mt?B=Nt.y+ht-kt-mt:Nt.y+ht+kt>V&&(B=Nt.y+ht+kt-V):Nt.y<-ht+kt?B=Nt.y+ht-kt:Nt.y+mt+ht+kt>V&&(B=Nt.y+mt+ht+kt-V),!(x===0&&B===0)){var Ut=d.getCenter();d.panBy(x,B)}}},n.prototype.setBoxStyle_=function(){var r,d;if(this.div_){this.div_.className=this.boxClass_,this.div_.style.cssText="",d=this.boxStyle_;for(r in d)d.hasOwnProperty(r)&&(this.div_.style[r]=d[r]);this.div_.style.WebkitTransform="translateZ(0)",typeof this.div_.style.opacity!="undefined"&&this.div_.style.opacity!==""&&(this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+this.div_.style.opacity*100+')"',this.div_.style.filter="alpha(opacity="+this.div_.style.opacity*100+")"),this.div_.style.position="absolute",this.div_.style.visibility="hidden",this.zIndex_!==null&&(this.div_.style.zIndex=this.zIndex_)}},n.prototype.getBoxWidths_=function(){var r,d={top:0,bottom:0,left:0,right:0},c=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(r=c.ownerDocument.defaultView.getComputedStyle(c,""),r&&(d.top=parseInt(r.borderTopWidth,10)||0,d.bottom=parseInt(r.borderBottomWidth,10)||0,d.left=parseInt(r.borderLeftWidth,10)||0,d.right=parseInt(r.borderRightWidth,10)||0)):document.documentElement.currentStyle&&c.currentStyle&&(d.top=parseInt(c.currentStyle.borderTopWidth,10)||0,d.bottom=parseInt(c.currentStyle.borderBottomWidth,10)||0,d.left=parseInt(c.currentStyle.borderLeftWidth,10)||0,d.right=parseInt(c.currentStyle.borderRightWidth,10)||0),d},n.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.prototype.draw=function(){this.createInfoBoxDiv_();var r=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=r.x+this.pixelOffset_.width+"px",this.alignBottom_?this.div_.style.bottom=-(r.y+this.pixelOffset_.height)+"px":this.div_.style.top=r.y+this.pixelOffset_.height+"px",this.isHidden_?this.div_.style.visibility="hidden":this.div_.style.visibility="visible"},n.prototype.setOptions=function(r){typeof r.boxClass!="undefined"&&(this.boxClass_=r.boxClass,this.setBoxStyle_()),typeof r.boxStyle!="undefined"&&(this.boxStyle_=r.boxStyle,this.setBoxStyle_()),typeof r.content!="undefined"&&this.setContent(r.content),typeof r.disableAutoPan!="undefined"&&(this.disableAutoPan_=r.disableAutoPan),typeof r.maxWidth!="undefined"&&(this.maxWidth_=r.maxWidth),typeof r.pixelOffset!="undefined"&&(this.pixelOffset_=r.pixelOffset),typeof r.alignBottom!="undefined"&&(this.alignBottom_=r.alignBottom),typeof r.position!="undefined"&&this.setPosition(r.position),typeof r.zIndex!="undefined"&&this.setZIndex(r.zIndex),typeof r.closeBoxMargin!="undefined"&&(this.closeBoxMargin_=r.closeBoxMargin),typeof r.closeBoxURL!="undefined"&&(this.closeBoxURL_=r.closeBoxURL),typeof r.infoBoxClearance!="undefined"&&(this.infoBoxClearance_=r.infoBoxClearance),typeof r.isHidden!="undefined"&&(this.isHidden_=r.isHidden),typeof r.visible!="undefined"&&(this.isHidden_=!r.visible),typeof r.enableEventPropagation!="undefined"&&(this.enableEventPropagation_=r.enableEventPropagation),this.div_&&this.draw()},n.prototype.setContent=function(r){this.content_=r,this.div_&&(this.closeListener_&&(ASLEvent.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),typeof r.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+r:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(r)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px",typeof r.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+r:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(r))),this.addClickHandler_()),ASLEvent.trigger(this,"content_changed")},n.prototype.setPosition=function(r){this.position_=r,this.div_&&this.draw(),ASLEvent.trigger(this,"position_changed")},n.prototype.setZIndex=function(r){this.zIndex_=r,this.div_&&(this.div_.style.zIndex=r),ASLEvent.trigger(this,"zindex_changed")},n.prototype.setVisible=function(r){this.isHidden_=!r,this.div_&&(this.div_.style.visibility=this.isHidden_?"hidden":"visible")},n.prototype.getContent=function(){return this.content_},n.prototype.getPosition=function(){return this.position_},n.prototype.getZIndex=function(){return this.zIndex_},n.prototype.getVisible=function(){var r;return typeof this.getMap()=="undefined"||this.getMap()===null?r=!1:r=!this.isHidden_,r},n.prototype.show=function(){this.isHidden_=!1,this.div_&&(this.div_.style.visibility="visible")},n.prototype.hide=function(){this.isHidden_=!0,this.div_&&(this.div_.style.visibility="hidden")},n.prototype.open=function(r,d){var c=this;
5d&&(this.position_=d.getPosition(),this.moveListener_=ASLEvent.addListener(d,"position_changed",function(){c.setPosition(this.getPosition())})),this.setMap(r),this.div_&&this.panBox_()},n.prototype.close=function(){var r;if(this.closeListener_&&(ASLEvent.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(r=0;r<this.eventListeners_.length;r++)ASLEvent.removeListener(this.eventListeners_[r]);this.eventListeners_=null}this.moveListener_&&(ASLEvent.removeListener(this.moveListener_),this.moveListener_=null),this.contextListener_&&(ASLEvent.removeListener(this.contextListener_),this.contextListener_=null),this.setMap(null)}}(function(n,r){typeof exports=="object"&&typeof module=="object"?module.exports=r():typeof define=="function"&&define.amd?define([],r):typeof exports=="object"?exports.ASLRouteAPI=r():n.ASLRouteAPI=r()})(this,(()=>(()=>{"use strict";var n={d:(y,S)=>{for(var L in S)n.o(S,L)&&!n.o(y,L)&&Object.defineProperty(y,L,{enumerable:!0,get:S[L]})},o:(y,S)=>Object.prototype.hasOwnProperty.call(y,S)},r={};function d(y,S){var L=Object.keys(y);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(y);S&&(v=v.filter((function(M){return Object.getOwnPropertyDescriptor(y,M).enumerable}))),L.push.apply(L,v)}return L}function c(y){for(var S=1;S<arguments.length;S++){var L=arguments[S]!=null?arguments[S]:{};S%2?d(Object(L),!0).forEach((function(v){x(y,v,L[v])})):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(L)):d(Object(L)).forEach((function(v){Object.defineProperty(y,v,Object.getOwnPropertyDescriptor(L,v))}))}return y}function x(y,S,L){return(S=(function(v){var M=(function(w,E){if(V(w)!="object"||!w)return w;var K=w[Symbol.toPrimitive];if(K!==void 0){var N=K.call(w,E||"default");if(V(N)!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(w)})(v,"string");return V(M)=="symbol"?M:M+""})(S))in y?Object.defineProperty(y,S,{value:L,enumerable:!0,configurable:!0,writable:!0}):y[S]=L,y}function B(){B=function(){return S};var y,S={},L=Object.prototype,v=L.hasOwnProperty,M=Object.defineProperty||function(O,F,D){O[F]=D.value},w=typeof Symbol=="function"?Symbol:{},E=w.iterator||"@@iterator",K=w.asyncIterator||"@@asyncIterator",N=w.toStringTag||"@@toStringTag";function W(O,F,D){return Object.defineProperty(O,F,{value:D,enumerable:!0,configurable:!0,writable:!0}),O[F]}try{W({},"")}catch(O){W=function(F,D,pt){return F[D]=pt}}function tt(O,F,D,pt){var nt=F&&F.prototype instanceof X?F:X,xt=Object.create(nt.prototype),Pt=new Gt(pt||[]);return M(xt,"_invoke",{value:oe(O,D,Pt)}),xt}function et(O,F,D){try{return{type:"normal",arg:O.call(F,D)}}catch(pt){return{type:"throw",arg:pt}}}S.wrap=tt;var Y="suspendedStart",Ct="suspendedYield",At="executing",ut="completed",R={};function X(){}function j(){}function z(){}var G={};W(G,E,(function(){return this}));var St=Object.getPrototypeOf,bt=St&&St(St(Ht([])));bt&&bt!==L&&v.call(bt,E)&&(G=bt);var Et=z.prototype=X.prototype=Object.create(G);function Ft(O){["next","throw","return"].forEach((function(F){W(O,F,(function(D){return this._invoke(F,D)}))}))}function Bt(O,F){function D(nt,xt,Pt,yt){var Tt=et(O[nt],O,xt);if(Tt.type!=="throw"){var qt=Tt.arg,Jt=qt.value;return Jt&&V(Jt)=="object"&&v.call(Jt,"__await")?F.resolve(Jt.__await).then((function(Yt){D("next",Yt,Pt,yt)}),(function(Yt){D("throw",Yt,Pt,yt)})):F.resolve(Jt).then((function(Yt){qt.value=Yt,Pt(qt)}),(function(Yt){return D("throw",Yt,Pt,yt)}))}yt(Tt.arg)}var pt;M(this,"_invoke",{value:function(nt,xt){function Pt(){return new F((function(yt,Tt){D(nt,xt,yt,Tt)}))}return pt=pt?pt.then(Pt,Pt):Pt()}})}function oe(O,F,D){var pt=Y;return function(nt,xt){if(pt===At)throw Error("Generator is already running");if(pt===ut){if(nt==="throw")throw xt;return{value:y,done:!0}}for(D.method=nt,D.arg=xt;;){var Pt=D.delegate;if(Pt){var yt=jt(Pt,D);if(yt){if(yt===R)continue;return yt}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(pt===Y)throw pt=ut,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);pt=At;var Tt=et(O,F,D);if(Tt.type==="normal"){if(pt=D.done?ut:Ct,Tt.arg===R)continue;return{value:Tt.arg,done:D.done}}Tt.type==="throw"&&(pt=ut,D.method="throw",D.arg=Tt.arg)}}}function jt(O,F){var D=F.method,pt=O.iterator[D];if(pt===y)return F.delegate=null,D==="throw"&&O.iterator.return&&
vendor: 4,598 bytes, line 5
5(F.method="return",F.arg=y,jt(O,F),F.method==="throw")||D!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+D+"' method")),R;var nt=et(pt,O.iterator,F.arg);if(nt.type==="throw")return F.method="throw",F.arg=nt.arg,F.delegate=null,R;var xt=nt.arg;return xt?xt.done?(F[O.resultName]=xt.value,F.next=O.nextLoc,F.method!=="return"&&(F.method="next",F.arg=y),F.delegate=null,R):xt:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,R)}function Rt(O){var F={tryLoc:O[0]};1 in O&&(F.catchLoc=O[1]),2 in O&&(F.finallyLoc=O[2],F.afterLoc=O[3]),this.tryEntries.push(F)}function Wt(O){var F=O.completion||{};F.type="normal",delete F.arg,O.completion=F}function Gt(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(Rt,this),this.reset(!0)}function Ht(O){if(O||O===""){var F=O[E];if(F)return F.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var D=-1,pt=function nt(){for(;++D<O.length;)if(v.call(O,D))return nt.value=O[D],nt.done=!1,nt;return nt.value=y,nt.done=!0,nt};return pt.next=pt}}throw new TypeError(V(O)+" is not iterable")}return j.prototype=z,M(Et,"constructor",{value:z,configurable:!0}),M(z,"constructor",{value:j,configurable:!0}),j.displayName=W(z,N,"GeneratorFunction"),S.isGeneratorFunction=function(O){var F=typeof O=="function"&&O.constructor;return!!F&&(F===j||(F.displayName||F.name)==="GeneratorFunction")},S.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,z):(O.__proto__=z,W(O,N,"GeneratorFunction")),O.prototype=Object.create(Et),O},S.awrap=function(O){return{__await:O}},Ft(Bt.prototype),W(Bt.prototype,K,(function(){return this})),S.AsyncIterator=Bt,S.async=function(O,F,D,pt,nt){nt===void 0&&(nt=Promise);var xt=new Bt(tt(O,F,D,pt),nt);return S.isGeneratorFunction(F)?xt:xt.next().then((function(Pt){return Pt.done?Pt.value:xt.next()}))},Ft(Et),W(Et,N,"Generator"),W(Et,E,(function(){return this})),W(Et,"toString",(function(){return"[object Generator]"})),S.keys=function(O){var F=Object(O),D=[];for(var pt in F)D.push(pt);return D.reverse(),function nt(){for(;D.length;){var xt=D.pop();if(xt in F)return nt.value=xt,nt.done=!1,nt}return nt.done=!0,nt}},S.values=Ht,Gt.prototype={constructor:Gt,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(Wt),!O)for(var F in this)F.charAt(0)==="t"&&v.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=y)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var F=this;function D(Tt,qt){return xt.type="throw",xt.arg=O,F.next=Tt,qt&&(F.method="next",F.arg=y),!!qt}for(var pt=this.tryEntries.length-1;pt>=0;--pt){var nt=this.tryEntries[pt],xt=nt.completion;if(nt.tryLoc==="root")return D("end");if(nt.tryLoc<=this.prev){var Pt=v.call(nt,"catchLoc"),yt=v.call(nt,"finallyLoc");if(Pt&&yt){if(this.prev<nt.catchLoc)return D(nt.catchLoc,!0);if(this.prev<nt.finallyLoc)return D(nt.finallyLoc)}else if(Pt){if(this.prev<nt.catchLoc)return D(nt.catchLoc,!0)}else{if(!yt)throw Error("try statement without catch or finally");if(this.prev<nt.finallyLoc)return D(nt.finallyLoc)}}}},abrupt:function(O,F){for(var D=this.tryEntries.length-1;D>=0;--D){var pt=this.tryEntries[D];if(pt.tryLoc<=this.prev&&v.call(pt,"finallyLoc")&&this.prev<pt.finallyLoc){var nt=pt;break}}nt&&(O==="break"||O==="continue")&&nt.tryLoc<=F&&F<=nt.finallyLoc&&(nt=null);var xt=nt?nt.completion:{};return xt.type=O,xt.arg=F,nt?(this.method="next",this.next=nt.finallyLoc,R):this.complete(xt)},complete:function(O,F){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&F&&(this.next=F),R},finish:function(O){for(var F=this.tryEntries.length-1;F>=0;--F){var D=this.tryEntries[F];if(D.finallyLoc===O)return this.complete(D.completion,D.afterLoc),Wt(D),R}},catch:function(O){for(var F=this.tryEntries.length-1;F>=0;--F){var D=this.tryEntries[F];if(D.tryLoc===O){var pt=D.completion;if(pt.type==="throw"){var nt=pt.arg;Wt(D)}return nt}}throw Error("illegal catch attempt")},delegateYield:function(O,F,D){return this.delegate={iterator:Ht(O),resultName:F,nextLoc:D},this.method==="next"&&(this.arg=y),R}},S}function ct(y,S){var L=typeof Symbol!="undefined"&&y[Symbol.iterator]||y["@@iterator"];if(!L){if(Array.isArray(y)||(L=(function(N,W){if(N){if(typeof N=="string")return Z(N,W);var tt={}.toString.call(N).slice(8,-1);
5return tt==="Object"&&N.constructor&&(tt=N.constructor.name),tt==="Map"||tt==="Set"?Array.from(N):tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt)?Z(N,W):void 0}})(y))||S&&y&&typeof y.length=="number"){L&&(y=L);var v=0,M=function(){};return{s:M,n:function(){return v>=y.length?{done:!0}:{done:!1,value:y[v++]}},e:function(N){throw N},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w,E=!0,K=!1;return{s:function(){L=L.call(y)},n:function(){var N=L.next();return E=N.done,N},e:function(N){K=!0,w=N},f:function(){try{E||L.return==null||L.return()}finally{if(K)throw w}}}}function Z(y,S){(S==null||S>y.length)&&(S=y.length);for(var L=0,v=Array(S);L<S;L++)v[L]=y[L];return v}function V(y){return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},V(y)}function ft(y,S,L,v,M,w,E){try{var K=y[w](E),N=K.value}catch(W){return void L(W)}K.done?S(N):Promise.resolve(N).then(v,M)}function ht(y){return function(){var S=this,L=arguments;return new Promise((function(v,M){var w=y.apply(S,L);function E(N){ft(w,v,M,E,K,"next",N)}function K(N){ft(w,v,M,E,K,"throw",N)}E(void 0)}))}}n.d(r,{default:()=>zt});var It={lat:25.2048,lng:55.2708},mt={lat:25.3463,lng:55.4209},Dt={lat:(It.lat+mt.lat)/2,lng:(It.lng+mt.lng)/2},kt=null,Nt=null,Ut=null;function ie(){return ie=ht(B().mark((function y(){var S,L,v,M,w,E,K,N,W,tt,et,Y,Ct,At,ut,R,X,j,z=arguments;return B().wrap((function(G){for(;;)switch(G.prev=G.next){case 0:if(E=z.length>0&&z[0]!==void 0?z[0]:{},(K=window.google)!=null&&(S=K.maps)!==null&&S!==void 0&&S.importLibrary){G.next=4;break}return G.abrupt("return");case 4:if(N=Lt({element:E.panelElement||E.panelNode||E.panelContainer||null,elementId:E.panelElementId,fallbackId:E.fallbackPanelId||"panel"})){G.next=8;break}return G.abrupt("return");case 8:return Ut=N,W=E.route||{origin:It,destination:mt},tt=dt({languageCode:E.languageCode||E.language||E.locale||((L=window)===null||L===void 0||(L=L.asl_configuration)===null||L===void 0?void 0:L.languageCode)||((v=window)===null||v===void 0||(v=v.asl_configuration)===null||v===void 0?void 0:v.language),regionCode:E.regionCode||E.region||((M=window)===null||M===void 0||(M=M.asl_configuration)===null||M===void 0?void 0:M.regionCode)||((w=window)===null||w===void 0||(w=w.asl_configuration)===null||w===void 0?void 0:w.region)}),G.prev=11,G.next=14,K.maps.importLibrary("routes").catch((function(){return null}));case 14:return Ct=G.sent,At=(Ct==null?void 0:Ct.RoutesService)||((et=K.maps)===null||et===void 0?void 0:et.RoutesService)||((Y=K.maps)===null||Y===void 0||(Y=Y.routes)===null||Y===void 0?void 0:Y.RoutesService)||null,G.next=18,at({googleNamespace:K,providedMap:E.mapInstance||window.__asl_main_map||null,mapElement:E.mapElement||E.mapContainer||null,mapElementId:E.mapElementId,defaultCenter:E.initialCenter||Dt,zoom:E.zoom||11,mapOptions:E.mapOptions||{}});case 18:if(ut=G.sent){G.next=22;break}return N.textContent="Unable to load directions at this time.",G.abrupt("return");case 22:return G.next=24,K.maps.importLibrary("geometry").catch((function(){return{}}));case 24:return R=G.sent,X=R.encoding,j=At?new At:null,G.next=29,Qt({map:ut,panelElement:N,routeConfig:W,localeOptions:tt,routesService:j,geometryLibrary:X});case 29:G.next=35;break;case 31:G.prev=31,G.t0=G.catch(11),N.textContent="Unable to load directions at this time.";case 35:case"end":return G.stop()}}),y,null,[[11,31]])}))),ie.apply(this,arguments)}function Qt(y){return se.apply(this,arguments)}function se(){return(se=ht(B().mark((function y(S){var L,v,M,w,E,K,N,W,tt,et;return B().wrap((function(Y){for(;;)switch(Y.prev=Y.next){case 0:return v=S.map,M=S.panelElement,w=S.routeConfig,E=S.localeOptions,K=S.routesService,N=S.geometryLibrary,W=t(w,E),Y.next=4,e({request:W,routesService:K});case 4:if(tt=Y.sent,et=tt==null||(L=tt.routes)===null||L===void 0?void 0:L[0]){Y.next=8;break}throw new Error("Routes API returned no routes for the supplied request.");case 8:b({map:v,route:et,routeConfig:w,geometryLibrary:N}),g({panelElement:M,route:et,map:v,geometryLibrary:N,routeConfig:w});case 10:case"end":return Y.stop()}}),y)})))).apply(this,arguments)}function t(y){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L={origin:_(y.origin),destination:_(y.destination),travelMode:"DRIVE",routingPreference:"TRAFFIC_AWARE",computeAlternativeRoutes:!1,polylineQuality:"HIGH_QUALITY",polylineEncoding:"ENCODED_POLYLINE"};return S.languageCode&&(L.languageCode=S.languageCode),S.regionCode&&(L.regionCode=S.regionCode),L}function e(y){return o.apply(this,arguments)}function o(){return(o=ht(B().mark((function y(S){var L,v,M;return B().wrap((function(w){for(;;)switch(w.prev=w.next){case 0:if(L=S.request,!(v=S.routesService)){w.next=16;break}if(typeof(M=typeof v.route=="function"?v.route:v.computeRoutes)!="function"){w.next=15;break}return w.prev=4,w.next=7,M.call(v,L);case 7:return w.abrupt("return",w.sent);case 10:w.prev=10,w.t0=w.catch(4);case 13:w.next=16;break;case 15:case 16:return w.abrupt("return",s(L));case 17:case"end":return w.stop()}}),y,null,[[4,10]])})))).apply(this,arguments)}function s(y){return u.apply(this,arguments)}function u(){return(u=ht(B().mark((function y(S){var L,v,M,w;return B().wrap((function(E){for(;;)switch(E.prev=E.next){case 0:if(v=(L=window)===null||L===void 0||(L=L.asl_configuration)===null||L===void 0?void 0:L.api_key){E.next=3;break}throw new Error("Routes API fallback requires window.asl_configuration.api_key to be set.");case 3:return E.next=5,fetch("https://routes.googleapis.com/directions/v2:computeRoutes",{method:"POST",headers:{"Content-Type":"application/json","X-Goog-Api-Key":v,"X-Goog-FieldMask":"routes.distanceMeters,routes.duration,routes.polyline.encodedPolyline,routes.legs.steps.navigationInstruction,routes.legs.steps.polyline.encodedPolyline,routes.legs.distanceMeters,routes.legs.duration"},body:JSON.stringify(S)});case 5:if((M=E.sent).ok){E.next=11;break}return E.next=9,M.text();case 9:throw w=E.sent,new Error("Routes REST API request failed (".concat(M.status,"): ").concat(w));case 11:return E.abrupt("return",M.json());case 12:case"end":return E.stop()}}),y)})))).apply(this,arguments)}function _(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!Q(y))throw new Error("Route endpoints must include numeric latitude and longitude values.");return{location:{latLng:{latitude:y.lat,longitude:y.lng}}}}function b(y){var S=y.map,L=y.route,v=y.routeConfig,M=y.geometryLibrary;if(S){var w=(function(W,tt){var et,Y,Ct=(W==null||(et=W.polyline)===null||et===void 0?void 0:et.encodedPolyline)||(W==null||(Y=W.legs)===null||Y===void 0||(Y=Y[0])===null||Y===void 0||(Y=Y.polyline)===null||Y===void 0?void 0:Y.encodedPolyline);return ot(Ct,tt)})(L,M);if(!w.length)throw new Error("Unable to decode route polyline.");h();var E=new google.maps.Polyline({path:w,strokeColor:"#1a73e8",strokeOpacity:.9,strokeWeight:6,map:S}),K=new google.maps.LatLngBounds;
6w.forEach((function(W){return K.extend(W)})),K.isEmpty()||S.fitBounds(K);var N=(function(W,tt){var et=[{position:tt.origin,label:"A"},{position:tt.destination,label:"B"}].filter((function(Y){return Q(Y.position)}));return et.map((function(Y){return new google.maps.Marker({map:W,position:Y.position,label:Y.label})}))})(S,v);kt={polyline:E,markers:N},T()}}function h(){kt&&(kt.polyline&&kt.polyline.setMap(null),Array.isArray(kt.markers)&&kt.markers.forEach((function(y){return y.setMap(null)})),kt=null,T())}function g(y){var S,L,v=y.panelElement,M=y.route,w=y.map,E=y.geometryLibrary,K=y.routeConfig,N=K===void 0?{}:K;if(v){var W=M==null||(S=M.legs)===null||S===void 0?void 0:S[0];if(v.innerHTML="",W){var tt=document.createElement("div");tt.className="rendered-directions",tt.id="asl-rendered-dir",tt.style.direction=(function(){var ut,R,X;if(typeof document=="undefined")return"ltr";var j=((ut=document.documentElement)===null||ut===void 0?void 0:ut.getAttribute("dir"))||((R=document.documentElement)===null||R===void 0?void 0:R.dir)||((X=document.body)===null||X===void 0?void 0:X.dir);return j&&j.toLowerCase()==="rtl"?"rtl":"ltr"})();var et,Y=document.createElement("div"),Ct=document.createElement("div");Ct.className="adp",Ct.appendChild(((et=document.createElement("div")).className="adp-warnbox",et.style.display="none",[{tag:"div",className:"warnbox-c2"},{tag:"div",className:"warnbox-c1"},{tag:"div",className:"warnbox-content"},{tag:"div",className:"warnbox-c1"},{tag:"div",className:"warnbox-c2"}].forEach((function(ut){var R=document.createElement(ut.tag);R.className=ut.className,et.appendChild(R)})),et)),Ct.appendChild(k({label:"A",text:m({location:W.startLocation,fallback:N.origin}),legIndex:0}));var At=document.createElement("div");At.className="adp-leg",At.appendChild((function(ut){var R,X,j,z,G=ut.leg,St=ut.route,bt=document.createElement("div");bt.className="adp-summary";var Et=H((R=G==null?void 0:G.distanceMeters)!==null&&R!==void 0?R:St==null?void 0:St.distanceMeters),Ft=G==null||(X=G.localizedValues)===null||X===void 0||(X=X.distance)===null||X===void 0?void 0:X.text,Bt=(function(D){if(!D)return"";var pt=D;
6if(typeof D=="string"?pt=Number.parseInt(D.replace("s",""),10):V(D)==="object"&&typeof(D==null?void 0:D.seconds)=="number"&&(pt=D.seconds),!Number.isFinite(pt))return"";var nt=Math.round(pt/60);if(nt<60)return"".concat(nt," min");var xt=Math.floor(nt/60),Pt=nt%60;return Pt?"".concat(xt," hr ").concat(Pt," min"):"".concat(xt," hr")})((j=G==null?void 0:G.duration)!==null&&j!==void 0?j:St==null?void 0:St.duration),oe=G==null||(z=G.localizedValues)===null||z===void 0||(z=z.duration)===null||z===void 0?void 0:z.text,jt=Et||Ft||"",Rt=Bt||oe||"";if(!jt&&!Rt)return bt.textContent="Route summary unavailable",bt;if(jt){var Wt=document.createElement("span");Wt.textContent=jt,bt.appendChild(Wt)}if(jt&&Rt){var Gt=document.createElement("span");Gt.textContent=". ",bt.appendChild(Gt)}if(Rt){var Ht=document.createElement("span");Ht.textContent="About ";var O=document.createElement("span");O.textContent=Rt,Ht.appendChild(O),bt.appendChild(Ht)}var F=document.createElement("span");return F.style.display="none",bt.appendChild(F),bt})({leg:W,route:M})),At.appendChild((function(ut){var R=ut.legIndex,X=ut.steps,j=ut.map,z=ut.geometryLibrary,G=document.createElement("div"),St=document.createElement("table");St.className="adp-directions";var bt=document.createElement("tbody");if(Array.isArray(X)&&X.length>0)X.forEach((function(Bt,oe){var jt,Rt=document.createElement("tr");Rt.dataset.legIndex=String(R),Rt.dataset.stepIndex=String(oe),Rt.tabIndex=0,Rt.setAttribute("jsaction","directionsPanel.selectLegAndStep"),Rt.className="asl-route-step";var Wt=document.createElement("td");Wt.className="adp-substep";var Gt=document.createElement("div");Gt.className="adp-stepicon";
6var Ht=(function(yt){var Tt,qt,Jt=(yt==null||(Tt=yt.navigationInstruction)===null||Tt===void 0?void 0:Tt.maneuver)||(yt==null?void 0:yt.maneuver)||(yt==null||(qt=yt.navigationInstruction)===null||qt===void 0?void 0:qt.type);return!Jt||typeof Jt!="string"?"":"adp-".concat(Jt.toLowerCase().replace(/[^a-z0-9]+/g,"-"))})(Bt);if(Ht){var O=document.createElement("div");O.className="".concat(Ht," adp-maneuver"),Gt.appendChild(O)}else{Gt.style.display="none";var F=document.createElement("div");F.className="adp-maneuver",Gt.appendChild(F)}Wt.appendChild(Gt);var D=document.createElement("td");D.className="adp-substep",D.textContent="".concat(oe+1,".");var pt=document.createElement("td");pt.className="adp-substep",pt.innerHTML=(Bt==null||(jt=Bt.navigationInstruction)===null||jt===void 0?void 0:jt.instructions)||(Bt==null?void 0:Bt.description)||"Continue";var nt=document.createElement("td");nt.className="adp-substep";var xt=document.createElement("div");xt.className="adp-distance",xt.textContent=(function(yt){var Tt,qt;return yt?typeof yt.distanceMeters=="number"&&!Number.isNaN(yt.distanceMeters)?H(yt.distanceMeters):typeof(yt==null||(Tt
6=yt.localizedValues)===null||Tt===void 0||(Tt=Tt.distance)===null||Tt===void 0?void 0:Tt.text)=="string"?yt.localizedValues.distance.text:typeof(yt==null||(qt=yt.navigationInstruction)===null||qt===void 0?void 0:qt.distance)=="string"?yt.navigationInstruction.distance:"":""})(Bt),nt.appendChild(xt),Rt.appendChild(Wt),Rt.appendChild(D),Rt.appendChild(pt),Rt.appendChild(nt);var Pt=function(){return(function(yt){var Tt=yt.step,qt=yt.listElement,Jt=yt.listItem,Yt=yt.map,de=yt.geometryLibrary;if(!(!qt||!Jt)){qt.querySelectorAll(".asl-route-step--active").forEach((function(Xt){Xt.classList.remove("asl-route-step--active")})),Jt.classList.add("asl-route-step--active");var pe=(function(Xt,ne){var a,f,l,p=(Xt==null||(a=Xt.polyline)===null||a===void 0?void 0:a.encodedPolyline)||(Xt==null||(f=Xt.polyline)===null||f===void 0?void 0:f.points)||(Xt==null||(l=Xt.polyline)===null||l===void 0?void 0:l.encodedPoints)||null;return p?ot(p,ne):[]})(Tt,de);if(pe.length)return void(function(Xt,ne){if(!(!Xt||!Array.isArray(ne)||ne.length===0)){T(),Nt=new google.maps.Polyline({path:ne,map:Xt,strokeColor:"#fbbc05",strokeOpacity:.9,strokeWeight:8,zIndex:1e3});var a=new google.maps.LatLngBounds;ne.forEach((function(f){return a.extend(f)})),a.isEmpty()||(typeof Xt.fitBounds=="function"?Xt.fitBounds(a,80):Xt.panTo(a.getCenter()))}})(Yt,pe);var he=I(Tt==null?void 0:Tt.startLocation)||I(Tt==null?void 0:Tt.endLocation);he&&Yt&&(Yt.panTo(he),typeof Yt.getZoom=="function"&&Yt.getZoom()<15&&Yt.setZoom(15))}})({step:Bt,listElement:bt,listItem:Rt,map:j,geometryLibrary:z})};Rt.addEventListener("click",Pt),Rt.addEventListener("keydown",(function(yt){yt.key!=="Enter"&&yt.key!==" "||(yt.preventDefault(),Pt())})),bt.appendChild(Rt)}));else{var Et=document.createElement("tr"),Ft=document.createElement("td");Ft.colSpan=4,Ft.textContent="Turn-by-turn instructions are unavailable.",Et.appendChild(Ft),bt.appendChild(Et)}return St.appendChild(bt),G.appendChild(St),G})({legIndex:0,steps:W.steps,map:w,geometryLibrary:E})),At.appendChild(k({label:"B",text:m({location:W.endLocation||(M==null||(L=M.legs)===null||L===void 0||(L=L[M.legs.length-1])===null||L===void 0?void 0:L.endLocation),fallback:N.destination}),legIndex:1})),Ct.appendChild(At),Ct.appendChild((function(){var ut=document.createElement("div");ut.className="adp-legal";var R=new Date().getFullYear();return ut.textContent="Powered by Google, \xA9".concat(R," Google"),ut})()),Y.appendChild(Ct),tt.appendChild(Y),v.appendChild(tt)}else v.textContent="Directions are unavailable for the requested route."}}function k(y){var S=y.label,L=y.text,v=y.legIndex,M=document.createElement("button");M.type="button",M.dataset.legIndex=String(v!=null?v:0),M.setAttribute("jsaction","directionsPanel.selectLeg");var w=document.createElement("table");w.className="adp-placemark";var E=document.createElement("tbody"),K=document.createElement("tr"),N=document.createElement("td"),W=document.createElement("img");W.className="adp-marker2",W.src=(function(et){var Y=String(et||"").trim().charAt(0)||"A",Ct='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 37"><g fill="none"><path d="M13 0C5.817 0 0 5.773 0 12.918c0 7.655 5.59 10.526 9.555 17.16C12.09 34.321 11.342 37 13 37c1.723 0 .975-2.743 3.445-6.858C20.085 23.86 26 20.605 26 12.918 26 5.773 20.183 0 13 0z" fill="#C5221F"/><path d="M13.017 35c-.233 0-.3-.065-.7-1.275-.332-1.046-.832-2.648-2.13-4.61-1.265-1.928-2.596-3.498-3.861-5.002C3.363 20.517 1 17.706 1 12.64 1.033 6.199 6.393 1 13.017 1S25 6.23 25 12.639c0 5.06
67-2.33 7.911-5.326 11.507-1.232 1.504-2.53 3.073-3.795 4.97-1.265 1.928-1.797 3.498-2.13 4.544-.4 1.275-.5 1.34-.732 1.34z" fill="#EA4335"/><text text-anchor="middle" dy=".3em" x="13" y="14" font-family="Roboto, Arial, sans-serif" font-size="16px" fill="#FFF">'.concat(Y,"</text></g></svg>");return"data:image/svg+xml,".concat(encodeURIComponent(Ct))})(S),W.alt=S||"Marker",N.appendChild(W);var tt=document.createElement("td");return tt.className="adp-text",tt.textContent=L||"Route point",K.appendChild(N),K.appendChild(tt),E.appendChild(K),w.appendChild(E),M.appendChild(w),M}function m(y){var S,L,v=y.location,M=y.fallback;if(typeof(v==null?void 0:v.description)=="string"&&v.description.trim())return v.description.trim();if(typeof(v==null?void 0:v.label)=="string"&&v.label.trim())return v.label.trim();var w=(v==null||(S=v.address)===null||S===void 0?void 0:S.text)||(v==null||(L=v.address)===null||L===void 0?void 0:L.formattedAddress)||(v==null?void 0:v.placeId)||(v==null?void 0:v.name);if(typeof w=="string"&&w.trim())return w.trim();var E=q((v==null?void 0:v.latLng)||v)||q(M);if(E){var K=Number(E.lat).toFixed(4),N=Number(E.lng).toFixed(4);return"".concat(K,", ").concat(N)}return"Route point"}function H(y){return typeof y!="number"||Number.isNaN(y)?"":y>=1e3?"".concat((y/1e3).toFixed(1)," km"):"".concat(Math.round(y)," m")}function Q(y){return y&&typeof y.lat=="number"&&!Number.isNaN(y.lat)&&typeof y.lng=="number"&&!Number.isNaN(y.lng)}function ot(y,S){var L;if(!y)return[];var v=(S==null?void 0:S.decodePath)||((L=google)===null||L===void 0||(L=L.maps)===null||L===void 0||(L=L.geometry)===null||L===void 0||(L=L.encoding)===null||L===void 0?void 0:L.decodePath)||null;return typeof v!="function"?[]:v(y).map((function(M){return typeof(M==null?void 0:M.toJSON)=="function"?M.toJSON():M}))}function T(){Nt&&(Nt.setMap(null),Nt=null)}function I(y){return y?Q(y)?y:y.latLng?q(y.latLng):q(y):null}function q(y){if(!y)return null;if(Q(y))return y;var S=typeof y.lat=="number"?y.lat:y.latitude,L=typeof y.lng=="number"?y.lng:y.longitude;return typeof S=="number"&&typeof L=="number"?{lat:S,lng:L}:null}function at(y){return it.apply(this,arguments)}function it(){return(it=ht(B().mark((function y(S){var L,v,M,w,E,K,N,W,tt,et;return B().wrap((function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(L=S.googleNamespace,v=S.providedMap,M=S.mapElement,w=S.mapElementId,E=S.defaultCenter,K=S.zoom,N=S.mapOptions,!(Ct=v)||V(Ct)!=="object"||typeof Ct.getCenter!="function"||typeof Ct.setCenter!="function"||typeof Ct.panTo!="function"){Y.next=3;break}return Y.abrupt("return",v);case 3:if(W=vt({element:M,elementId:w,fallbackIds:["asl-map","map"]})){Y.next=7;break}return Y.abrupt("return",null);case 7:return Y.next=9,L.maps.importLibrary("maps");case 9:return tt=Y.sent,et=tt.Map,Y.abrupt("return",new et(W,c({center:E,zoom:K},N)));case 12:case"end":return Y.stop()}var Ct}),y)})))).apply(this,arguments)}function vt(y){var S=y.element,L=y.elementId,v=y.fallbackIds,M=v===void 0?[]:v;if(Ot(S))return S;if(typeof L=="string"){var w=document.getElementById(L);if(w)return w}var E,K=ct(M);try{for(K.s();!(E=K.n()).done;){var N=E.value;if(N){var W=document.getElementById(N);if(W)return W}}}catch(tt){K.e(tt)}finally{K.f()}return null}function Lt(y){var S=y.element,L=y.elementId,v=y.fallbackId;if(Ot(S))return S;if(typeof L=="string"){var M=document.getElementById(L);if(M)return M}return v&&document.getElementById(v)||null}function Ot(y){return typeof Element!="undefined"&&y instanceof Element}function dt(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=typeof navigator!="undefined"?navigator.language:null,L=(function(v){if(typeof v!="string")return null;var M=v.trim();return M?M.split(",")[0]:null})(y.languageCode||y.language||y.locale||S);return{languageCode:L||void 0,regionCode:rt(y.regionCode||y.region)||(function(v){if(typeof v!="string")return null;var M=v.split(/[-_]/);return M.length>=2?rt(M[1]):null})(L)||void 0}}function rt(y){if(typeof y!="string")return null;var S=y.trim().toUpperCase();return/^[A-Z]{2}$/.test(S)?S:null}var gt={initRouteAPI:function(){return ie.apply(this,arguments)},clearRouteDisplay:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=Lt({element:y.panelElement||y.panelNode||y.panelContainer||null,elementId:y.panelElementId,fallbackId:y.fallbackPanelId||null})||Ut;S?(function(L){if(h(),!!L){Ut=L,L.innerHTML="";var v=document.createElement("p");v.className="asl-route-cleared",v.textContent="Route cleared.",L.appendChild(v)}})(S):h()}};typeof window!="undefined"&&(window.ASLRouteAPI=gt);
6const zt=gt;return r=r.default})()));function _isMobileDevice(){var n=window.innerWidth<768;return(function(r){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(r.substr(0,4)))&&(n=!0)})(navigator.userAgent||navigator.vendor||window.opera),n}function _isIOSDevice(){if(typeof navigator=="undefined")return!1;const n=navigator.userAgent||"";return/iPhone|iPad|iPod/i.test(n)}Date.prototype.addHours=function(n){return this.setTime(this.getTime()+n*60*60*1e3),this},Date.prototype.subDays=function(n){return this.setTime(this.getTime()-n*60*60*1e3*24),this};function getDecimal(n){return Math.ceil((n-Math.floor(n))*100)}if(asl_configuration.gdpr_enabled){var head=document.getElementsByTagName("head")[0],insertBefore=head.insertBefore;head.insertBefore=function(n,r){n.href&&n.href.indexOf("https://fonts.googleapis.com/css?family=Roboto")===0||insertBefore.call(head,n,r)}}var asl_drawing={shapes:[],shapes_index:0,current_map:null,loadData:function(n,r){var d=this;d.current_map=r;for(var c in n.shapes)n.shapes[c]&&(n.shapes[c].type=="polygon"?d.shapes.push(d.create_polygon.call(d,n.shapes[c].coord,r,n.shapes[c])):n.shapes[c].type=="polyline"?d.shapes.push(d.create_polyline.call(d,n.shapes[c].coord,r,n.shapes[c])):n.shapes[c].type=="circle"?d.shapes.push(d.create_circle.call(d,n.shapes[c],r)):n.shapes[c].type=="rectangle"&&d.shapes.push(d.create_rectangle.call(d,n.shapes[c],r)))},create_rectangle:function(n){var r=this.current_map;return new google.maps.Rectangle({strokeColor:n.strokeColor,fillColor:n.color,strokeWeight:1,type:"rectangle",editable:asl_drawing.allow_edit?asl_drawing.allow_edit:!1,map:r,bounds:new google.maps.LatLngBounds(new google.maps.LatLng(n.sw[0],n.sw[1]),new google.maps.LatLng(n.ne[0],n.ne[1]))})},create_circle:function(n,d){var d=this.current_map;return new google.maps.Circle({strokeColor:n.strokeColor,fillColor:n.color,type:"circle",strokeWeight:1,map:d,editable:asl_drawing.allow_edit?asl_drawing.allow_edit:!1,center:new google.maps.LatLng(n.center[0],n.center[1]),radius:n.radius})},create_polyline:function(n,c,d){var c=this.current_map,x=[];for(var B in n)x.push({lat:n[B][0],lng:n[B][1]});return new google.maps.Polyline({path:x,strokeColor:d.strokeColor||"#000000",strokeWeight:3,editable:!1,type:"polyline",map:c})}
6,create_polygon:function(n,c,d){var c=this.current_map,x=[];for(var B in n)x.push({lat:n[B][0],lng:n[B][1]});return new google.maps.Polygon({paths:x,fillColor:d.color,strokeColor:d.strokeColor,strokeWeight:1,editable:!!asl_drawing.allow_edit,type:"polygon",map:c})}},ASL_CLOSE_BUTTON='<button aria-label="'+asl_configuration.words.clear+'" title="'+asl_configuration.words.clear+'" class="asl-search-clr asl-clear-btn hide" type="button"><svg width="12" height="12" viewBox="0 0 12 12" xmlns="https://www.w3.org/2000/svg"><path d="M.566 1.698L0 1.13 1.132 0l.565.566L6 4.868 10.302.566 10.868 0 12 1.132l-.566.565L7.132 6l4.302 4.3.566.568L10.868 12l-.565-.566L6 7.132l-4.3 4.302L1.13 12 0 10.868l.566-.565L4.868 6 .566 1.698z"></path></svg></button>',ASL_PICKUP_ROW=asl_configuration.pickup||asl_configuration.ship_from?'<div class="sl-row mt-2 sl-pickup-row"><div class="pol"><a class="btn btn-block btn-asl sl-pickup">'+(asl_configuration.ship_from?asl_configuration.words.ship_from:asl_configuration.words.pickup)+"</a></div></div>":null;(function(n){n.templates||(n.templates=asl_jQuery.templates),n.views||(n.templates=asl_jQuery.views),n.views&&n.views.tags&&(n.views.tags("cssClass",function(t){return typeof t=="string"?t.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9\-_]/g,""):""}),n.views.tags("hasCategory",function(t,e){for(var o=0;o<e.length;o++)if(e[o].id===t)return this.tagCtx.render();return""}),n.views.tags("equal",function(t,e){return t==e}),n.views.tags("list",function(t){var e="";if(t){var o=t.split(",");if(o.length){for(var s=0;s<o.length;s++)e+="<li><span>"+o[s]+"</span></li>";e='<ul class="sl-list-props">'+e+"</ul>"}}return e}),n.views.tags("stars",function(t){if(!isNaN(t)){t=Math.round(parseFloat(t)*4)/4;var e=t/5*100,o=Math.round(e/5)*5+"%";return'<span class="sl-stars"><div class="sl-stars-out icon-star"><div style="width:'+o+'" class="sl-stars-in icon-star"></div></div></span>'}}),n.views.tags("removeBR",function(t){return t.replace(/<br\s*\/?>/gi,"")})),asl_configuration.debug=="1"&&(function(){var e=window.console;if(!e)return;function o(_){var b=e[_];e[_]=function(){if(arguments[0]&&arguments[0].indexOf("Google")!==-1){var h=n('<div class="alert alert-danger asl-geo-err"></div>');h.html(arguments[0]),h.appendTo(".asl-cont .asl-map"),window.setTimeout(function(){h.remove()},5e3)}if(b.apply)b.apply(e,arguments);else{var g=Array.prototype.slice.apply(arguments).join(" ");b(g)}}}for(var s=["error"],u=0;u<s.length;u++)o(s[u])})();function r(t){if(this.options=t||{},this.map=null,this.div=t.div[0],this.panel=t.panel[0],!this.div)throw new Error("ASLInfoBar: Sidebar element not found");this.isVisible=!1,this.panel.style.position="absolute",this.panel.style.zIndex=1e3,this.panel.style.display="none";const e=this.panel.querySelector(".sl-info-panel-close-btn");e&&e.addEventListener("click",()=>{this.close(),this.options.onCloseClick&&this.options.onCloseClick()})}r.prototype.open=function(t,e){this.isVisible=!0,this.panel.style.display="block"},r.prototype.getContent=function(){return this.content_},r.prototype.setContent=function(t){this.content_=t,this.div.replaceChildren(t)},r.prototype.close=function(){this.isVisible=!1,this.panel.style.display="none"},r.prototype.setPosition=function(t){},r.prototype.getVisible=function(){return this.isVisible},asl_locator.hook_event=function(t){if(window.asl_event_hook&&typeof window.asl_event_hook=="function")return asl_event_hook.call(this,t)},asl_locator.add_clear_button=function(t){var e=n(ASL_CLOSE_BUTTON),o=n.trim(t.val())==="";t.after(e);function s(u){!u&&o||(asl_view.clear_search(t),o=!0,e.addClass("hide"))}return n(t).on("keyup",function(u){var _=n.trim(this.value);_===""?s(!1):o=!1}),e.on("click",function(){s(!0)}),e},asl_locator.toRad_=function(t){return t*Math.PI/180},asl_locator.Store=function(t,e,o,s){this.id_=t,this.location_=e,this.categories_=o,this.props_=s||{},this.v_id=s.vendor_id},asl_locator.Store.prototype.setMarker=function(t){this.marker_=t,ASLEvent.trigger(this,"marker_changed",t)},asl_locator.Store.prototype.getMarker=function(){return this.marker_},asl_locator.Store.prototype.getId=function(){return this.id_},asl_locator.Store.prototype.getLocation=function(){return this.location_},asl_locator.Store.prototype.hasCategory=function(t){return this.categories_.indexOf(t)!=-1},asl_locator.Store.prototype.hasAnyCategory=function(t){if(t&&!t.array_.length)return asl_configuration.on_select;for(var e=t.asList(),o=0,s=e.length;o<s;o++)if(this.categories_.indexOf(e[o].id_)!=-1)return!0;return!1},asl_locator.Store.prototype.hasAllCategory=function(t){if(!t.array_.length)return asl_configuration.on_select;for(var e=t.asList(),o=0,s=e.length;o<s;o++)if(this.categories_.indexOf(e[o].id_)==-1)return!1;return!0},asl_locator.Store.prototype.getDetails=function(){return this.props_},asl_locator.Store.prototype.generateFieldsHTML_=function(t){for(var e=[],o=0,s=t.length;o<s;o++){var u=t[o];this.props_[u]&&(e.push('<div class="'),e.push(u),e.push('">'),e.push(u+": "),e.push(isNaN(this.props_[u])?this.props_[u]:numberWithCommas(this.props_[u])),e.push("</div>"))}return e.join("")},asl_locator.Store.prototype.generateFeaturesHTML_=function(){var t=[];t.push('<ul class="features">');for(var e=this.categories_.asList(),o=0,s;s=e[o];o++)t.push("<li>"),t.push(s.getDisplayName()),t.push("</li>");return t.push("</ul>"),t.join("")},asl_locator.Store.prototype.getStoreContent=function(){if(!this.content_){var t=window.asl_tmpl_list_item?window.asl_tmpl_list_item:n.templates(window.asl_tmpls&&window.asl_tmpls.list||"#tmpl_list_item");window.asl_tmpl_list_item=t,this.props_.target=asl_configuration.target_blank,this.content_=t.render(this.props_)}var e=n(this.content_);return(asl_configuration.pickup||asl_configuration.ship_from)&&e.a
6ppend(ASL_PICKUP_ROW),e},asl_locator.Store.prototype.advMkrContent=function(){var t=window.asl_tmpl_adv_mkr?window.asl_tmpl_adv_mkr:n.templates(window.asl_tmpls&&window.asl_tmpls.adv_mkr||"#asl_tmpl_adv_mkr");window.asl_tmpl_adv_mkr=t,this.props_.target=asl_configuration.target_blank;const e=document.createElement("div");return e.className="adv-mkr-cont",e.innerHTML=t.render(this.props_),e},asl_locator.Store.prototype.getcontent_=function(t){var e=window.asl_too_tip_tmpl?window.asl_too_tip_tmpl:n.templates(window.asl_tmpls&&window.asl_tmpls.infobox||"#asl_too_tip");window.asl_too_tip_tmpl=e,t.props_.show_categories=asl_configuration.show_categories;var o=e.render(t.props_);return o},asl_locator.Store.prototype.getInfoWindowContent=function(t){var e='<div class="infoWindow'+(asl_configuration.template=="5"?"-tmpl-5":"")+'" id="style_'+(asl_configuration.infobox_layout?asl_configuration.infobox_layout:"1")+'">';return e+=this.getcontent_(this),e+="</div>",e},asl_locator.Store.infoPanelCache_={},asl_locator.Store.prototype.getInfoPanelItem=function(){var t=this,e=asl_locator.Store.infoPanelCache_,o=t.id_;if(!e[o]){var s=t.getStoreContent();e[o]=s[0]}return e[o]};/** 7 * Gets the distance between this Store and a certain location. 8 * @param {google.maps.LatLng} point the point to calculate distance to/from. 9 * @return {number} the distance from this store to a given point. 10 * @license 11 * Latitude/longitude spherical geodesy formulae & scripts 12 * (c) Chris Veness 2002-2010 13 * www.movable-type.co.uk/scripts/latlong.html 14 */asl_locator.Store.prototype.distanceTo=function(t){var e=6371,o=this.getLocation(),s=asl_locator.toRad_(o.lat()),u=asl_locator.toRad_(o.lng()),_=asl_locator.toRad_(t.lat()),b=asl_locator.toRad_(t.lng()),h=_-s,g=b-u,k=Math.sin(h/2)*Math.sin(h/2)+Math.cos(s)*Math.cos(_)*Math.sin(g/2)*Math.sin(g/2),m=2*Math.atan2(Math.sqrt(k),Math.sqrt(1-k)),H=e*m;return asl_configuration.distance_unit=="Miles"?H*.621371:H},asl_locator.View=function(t,e,o){if(this.map_=t,this.data_=e,this._cont=o.container,this.settings_=n.extend({updateOnPan:!0,geolocation:!1,features:new asl_locator.FeatureSet},o),this.init_(),ASLEvent.trigger(this,"load"),this.set("featureFilter",new asl_locator.FeatureSet),asl_configuration.icon_size){var s=asl_configuration.icon_size.split("x"),u=parseInt(s[0]),_=parseInt(s[1]),b=null;asl_configuration.label_origin?(b=asl_configuration.label_origin.split("x"),b[0]=parseInt(b[0]),b[1]=parseInt(b[1])):b=[u/2,_/2-10];var h=null;asl_configuration.infowin_anchor?(h=asl_configuration.infowin_anchor.split("x"),h[0]=parseInt(h[0]),h[1]=parseInt(h[1])):h=[u/2,_/2+8],this.icon={scaledSize:new ASLSize(u,_),origin:new ASLPoint(0,0),anchor:new ASLPoint(h[0],h[1]),labelOrigin:new ASLPoint(b[0],b[1])}}if(asl_configuration.active_marker){var g=asl_configuration.URL+"icon/"+asl_configuration.active_marker;this.active_marker={m:null,picon:null,icon:this.icon?Object.assign({},this.icon,{url:g}):new ASLMarkerImage(g,null,null)}}this.display_list=asl_configuration.display_list,this.cat_in_tooltip=asl_configuration.title_only!="1"},asl_locator.View=asl_locator.View,asl_locator.View.prototype=Object.create(ASLMVCObject.prototype),asl_locator.View.prototype.constructor=asl_locator.View,asl_locator.View.prototype.secondary_match=function(t){if(asl_configuration.search_2_contain){for(let e of asl_configuration.search_2){let o=t[e]?t[e].toLowerCase():"",s=this.second_filter.title.toLowerCase();if(o.includes(s))return!0}return!1}else return t[this.second_filter.type]===this.second_filter.title;return!0},asl_locator.View.prototype.clear_search=function(t){var e=this,o=this.getMap(),s=this.clearSearchGeneration_=(this.clearSearchGeneration_||0)+1;if(window.clearTimeout(this.refreshViewTimer_),this.refreshViewTimer_=null,asl_configuration.search_type=="1"&&(this.filter_text=null),this._cont.removeClass("asl-search-prfmd"),this._panel&&this._panel.hideNoStoresModal&&this._panel.hideNoStoresModal(),this.search_text=this.second_filter=this.locality=this.prop_filter=this._location=null,asl_locator.hook_event({type:"beforeclear",data:null}),asl_configuration.search_2){var u=this._cont.find(".asl-name-search .asl-search-name");u.val(""),u.parent().find(".asl-clear-btn").addClass("hide")}this.reset_measure(t,!0);
14var _=new ASLLatLng(asl_configuration.default_lat,asl_configuration.default_lng),b=parseInt(asl_configuration.zoom,10),h=o.getCenter(),g=parseInt(o.getZoom(),10),k=h?Number(typeof h.lat=="function"?h.lat():h.lat):NaN,m=h?Number(typeof h.lng=="function"?h.lng():h.lng):NaN,H=Number(_.lat()),Q=Number(_.lng()),ot=!Number.isFinite(k)||!Number.isFinite(m)||Math.abs(k-H)>1e-7||Math.abs(m-Q)>1e-7,T=Number.isFinite(b)&&g!==b,I=function(){s===e.clearSearchGeneration_&&(window.clearTimeout(e.refreshViewTimer_),e.refreshViewTimer_=null,e.refreshView())};if(c()?ot||T?o.panToWithOffset(_,0,0,I,b):I():ot||T?(ASLEvent.addListenerOnce(o,"idle",I,asl_configuration),ot&&o.panTo(_),T&&o.setZoom(b)):I(),asl_configuration.category_accordion){var q=this._cont.find("#asl-list li.item-state > a:not(.colisiond)");q[0]&&(q.addClass("colisiond"),q.next().removeClass("in"))}asl_configuration.first_load=="5"&&this._cont.addClass("sl-search-only"),asl_locator.hook_event({type:"clear",data:null})},asl_locator.View.prototype.reset_all=function(t,e){var o=this.getMap();if(asl_configuration.filter_ddl){for(var s in asl_configuration.filter_ddl)if(asl_configuration.filter_ddl.hasOwnProperty(s)){var u=asl_configuration.filter_ddl[s],_=asl_engine.controls[u];_&&typeof _.clear=="function"?_.clear():_&&typeof _.val=="function"&&_.val(""),asl_engine.select_controls&&asl_engine.select_controls[u]&&asl_engine.select_controls[u].multiselect("deselect","",!0).multiselect("clearSelection")}}if(this._panel.$category_ddl){var b=asl_view._panel.$category_ddl.val();b&&b.length>0&&this._panel.$category_ddl.multiselect("deselect",this._panel.$category_ddl.val(),!0).multiselect("clearSelection")}if(asl_configuration.address_ddl){for(var h in this._panel.address_ddls)if(this._panel.address_ddls.hasOwnProperty(h)){var g=this._panel.address_ddls[h];g.val(""),g.multiselect("deselect","",!0).multiselect("clearSelection").multiselect("refresh")}}if(this.highlight(null),asl_configuration.is_mob&&n("html, body").stop().animate({scrollTop:this._cont.offset().top},900,"swing"),!e){let m=this;var k=new ASLLatLng(asl_configuration.default_lat,asl_configuration.default_lng);c()?o.panToWithOffset(k,0,0,function(){m.refreshView()},parseInt(asl_configuration.zoom)):(o.panTo(k),o.setZoom(parseInt(asl_configuration.zoom)),ASLEvent.addListenerOnce(o,"idle",function(){m.refreshView()},asl_configuration))}t&&t.apply(this)},asl_locator.View.prototype.render_branch_list=function(t){this.data_.setBranchList(t),this.parent_branch_position(t),this.branch_view=!0,this.refreshView(),this._cont.find(".Num_of_store .sl-head-title").html(t.props_.title),this._cont.find(".Num_of_store .sl-hide-branches").removeClass("d-none")},asl_locator.View.prototype.reset_branch_list=function(){this.branch_view=!1,this.data_.setBranchList(null),this.parent_branch_position(null),this.refreshView(),this._cont.find(".Num_of_store .sl-head-title").html(asl_configuration.head_title),this._cont.find(".Num_of_store .sl-hide-branches").addClass("d-none")},asl_locator.View.prototype.parent_branch_position=function(t){var e=this;t?(t.real_location&&(e.markerCache_[t.id_]&&e.markerCache_[t.id_].setPosition(t.real_location),t.props_.distance=t.props_.real_distance,t.props_.dist_str=t.props_.real_distance_str),this.parent_branch=t):this.parent_branch&&(t=this.parent_branch,t.closest_store&&(e.markerCache_[t.id_]&&e.markerCache_[t.id_].setPosition(t.closest_store.location_),t.props_.distance=t.closest_store.props_.distance,t.props_.dist_str=t.closest_store.props_.distance_str),this.parent_branch=null),t&&asl_locator.Store.infoPanelCache_&&delete asl_locator.Store.infoPanelCache_[t.id_]},asl_locator.View.prototype.measure_distance=function(t,e,o,s){var u=this;this.clear_infobox(),!asl_locator.isMapLibre()&&asl_configuration.adv_mkr&&(u.clearMarkers(),delete u.markerCache_,u.markerCache_={});var _=new ASLLatLng(t.lat(),t.lng());u._panel.dest_coords=u.dest_coords=_;var b=!!(u.dest_coords||u.prop_filter||u.get("featureFilter").count()||!asl_engine.helper.is_empty(u.address_values));if(b&&(asl_configuration.user_center?asl_configuration.user_center=!1:this._cont.addClass("asl-search-prfmd")),asl_configuration.sort_random&&(asl_configuration.sort_random=!1),asl_configuration.first_load=="5"?u._cont.removeClass("sl-search-only"):asl_configuration.first_load=="3"?u.display_list||(u._cont.removeClass("map-full"),u.display_list=!0):asl_configuration.first_load=="4"&&(u.list_shown||(u._cont.removeClass("map-full"),u.list_shown=!0)),asl_configuration.filter_address){var h={};if(Array.isArray(s)&&(s=s[0]),s&&s.address_components){for(var g in s.address_components)if(s.address_components.hasOwnProperty(g))if(s.address_components[g].types.indexOf("sublocality")!=-1||s.address_components[g].types.indexOf("sublocality_level_1")!=-1||s.address_components[g].types.indexOf("locality")!=-1||s.address_components[g].types.indexOf("administrative_area_level_2")!=-1){var k=[s.address_components[g].long_name.toLowerCase(),s.address_components[g].short_name.toLowerCase()];h.city=h.city?h.city.concat(k):k}else s.address_components[g].types.indexOf("administrative_area_level_1")!=-1?h.state=[s.address_components[g].long_name.toLowerCase(),s.address_components[g].short_name.toLowerCase()]:s.address_components[g].types.indexOf("country")!=-1?h.country=[s.address_components[g].long_name.toLowerCase(),s.address_components[g].short_name.toUpperCase()]:s.address_components[g].types.indexOf("postal_code")!=-1&&(h.postal_code=[s.address_components[g].long_name.toLowerCase(),s.address_components[g].short_name.toLowerCase()])}h.city&&delete h.state,u.locality=h.city||h.state||h.country||h.postal_code?h:null}var m=100,H=1e3,Q=null,ot=asl_configuration.distance_unit=="KM"?asl_configuration.words.Km:asl_configuration.words.Miles,T=u.data_.stores_;for(var I in T)if(T.hasOwnProperty(I)){var q=T[I].distanceTo(u.dest_coords);T[I].content_=null,T[I].props_.distance=q,T[I].props_.dist_str=asl_engine.helper.format_count(q)+" "+ot,q>m&&(m=q),q<H&&(Q=T[I],H=q)}if(asl_configuration.branches){for(var I in T)if(T.hasOwnProperty(I)){var at=T[I];if(at.props_.childs){var it=u.data_.getClosestBranch(at);at.closest_store=it[1],at.props_.real_distance=at.props_.distance,at.props_.real_distance_str=at.props_.dist_str,at.props_.distance=it[0],at.props_.dist_str=asl_engine.helper.format_count(it[0])+" "+ot,at.real_location=at.location_,at.location_=at.closest_store.location_,u.markerCache_[at.id_]&&u.markerCache_[at.id_].setPosition(at.location_)}}}if(delete asl_locator.Store.infoPanelCache_,asl_locator.Store.infoPanelCache_={},u.my_marker)u.my_marker.setPosition(_);else{var vt=asl_locator.isMapLibre()?asl_locator.MapLibreMarker:google.maps.Marker;u.my_marker=new vt({title:asl_configuration.words.your_cur_loc,position:_,zIndex:0,animation:ASLAnimation.DROP,draggable:!0,map:asl_configuration.geo_marker=="0"?null:u.getMap()});var Lt=asl_configuration.URL+"icon/me-pin.png";asl_configuration.geo_marker_id&&asl_markers[asl_configuration.geo_marker_id]&&(Lt=asl_configuration.URL+"icon/"+asl_markers[asl_configuration.geo_marker_id].icon);var Ot=new ASLMarkerImage(Lt,null,null,null);u.my_marker.setIcon(Ot),u.my_marker.addListener("dragend",function(rt){u.measure_distance(rt.latLng)})}if(e&&asl_configuration.search_destin=="1"&&Q&&(_=Q.getLocation()),asl_configuration.radius_cir
14cle)u.draw_radius_center(u.dest_coords),u.refreshView();else if(!o){if(asl_configuration.search_zoom=="0"&&u.bbox)u.bbox.isEmpty()||u.getMap().fitBounds(u.bbox);else{var dt=parseInt(asl_configuration.search_zoom);asl_locator.isMapLibre()?u.getMap().panToWithOffset(_,0,0,null,Number.isFinite(dt)&&dt>0?dt:null):(u.getMap().setCenter(_),asl_configuration.search_zoom&&u.getMap().setZoom(dt)),ASLEvent.trigger(u,"load")}u.refreshView()}u._panel.geo_modal&&u._panel.hideGeoModal()},asl_locator.View.prototype.fit_distance_range=function(t){if(t){var e=parseInt(asl_configuration.radius_range);if(!(!Number.isFinite(e)||e<=0)){e*=1e3,asl_configuration.distance_unit!="KM"&&(e*=1.60934);var o=asl_locator.isMapLibre()?asl_locator.MapLibreCircle:google.maps.Circle,s=new o({radius:e,center:t}),u=s.getBounds();u&&this.getMap().fitBounds(u)}}},asl_locator.View.prototype.draw_radius_center=function(t){var e=this,o=null;if(t){if(o=parseInt(asl_configuration.radius_range),o=o*1e3,asl_configuration.distance_unit!="KM"&&(o=o*1.60934),e.$circle)e.$circle.setOptions({radius:o,center:t});else{var s=asl_locator.isMapLibre()?asl_locator.MapLibreCircle:google.maps.Circle;e.$circle=new s({strokeColor:asl_configuration.radius_color||"#FFFF00",strokeOpacity:.7,strokeWeight:2,fillColor:asl_configuration.radius_color||"#FFFF00",fillOpacity:asl_configuration.radius_fill||.2,map:e.getMap(),radius:o,center:t})}e.getMap().fitBounds(e.$circle.getBounds())}},asl_locator.View.prototype.setup_distance_control=function(){var t=this;if(String(asl_configuration.hide_search||"0")!=="1"){asl_configuration.radius_range=100,asl_configuration.fixed_radius&&(asl_configuration.radius_range=parseInt(asl_configuration.fixed_radius));var e=asl_configuration.dropdown_range.split(",");if(!asl_configuration.boundary_box){if(asl_configuration.distance_slider&asl_configuration.advance_filter&&asl_configuration.distance_control=="1"){var o=asl_configuration.distance_unit=="KM"?asl_configuration.words.Km:asl_configuration.words.Miles,s="";if(t.$dist_control)asl_configuration.radius_range=parseInt(t.$dist_control.val());else{for(var u=0;u<e.length;u++){var _=e[u],b=!!(_&&_[0]=="*");b?(_=_.replace("*",""),s+='<option selected="selected" value="'+_+'">'+_+" "+o+"</option>"):s+='<option value="'+_+'">'+_+" "+o+"</option>"}var h=asl_configuration.template!="1"?'<label for="asl-ctrl-ddl-range" class="asl-cntrl-lbl">'+asl_configuration.words.distance+"</label>":"";t._cont.find(".range_filter").html('<div class="asl-filter-cntrl">'+h+'<div class="sl-dropdown-cont"> <select id="asl-ctrl-ddl-range" class="asl-dist-ddl">'+s+"</select></div></div>").removeClass("hide"),asl_configuration.template=="1"&&t._cont.find(".range_filter").prepend('<label for="asl-ctrl-ddl-range">'+asl_configuration.words.in+"</label>"),t.$dist_control=t._cont.find(".asl-dist-ddl"),t.$dist_control.multiselect({enableFiltering:!1,nonSelectedText:asl_configuration.words.select_distance,numberDisplayed:1,maxHeight:asl_configuration.ddl_max_height?parseInt(asl_configuration.ddl_max_height):250,onChange:function(m,H){var Q=parseInt(m.val());isNaN(Q)&&(Q=1e3),asl_configuration.radius_range=Q,t.refreshView(),t.$circle?t.draw_radius_center(t.dest_coords):t.fit_distance_range(t.dest_coords)}}),asl_configuration.radius_range=parseInt(t.$dist_control.val())}}else if(asl_configuration.distance_slider&asl_configuration.advance_filter&&asl_configuration.distance_control=="0")if(t._cont.find(".range_filter").removeClass("hide"),t.$dist_control)t.$dist_control.aslSlider("setAttribute","max",asl_configuration.radius_range),t.$dist_control.aslSlider("setValue",asl_configuration.radius_range),t._cont.find("#asl-radius-input").html(asl_configuration.radius_range);else{var g=asl_configuration.slider_val_radius?parseInt(asl_configuration.slider_val_radius):asl_configuration.radius_range;t._cont.find("#asl-radius-input").html(g);var k=t._cont.find("#asl-radius-slide");if(!k.length||typeof k.aslSlider!="function")return;k.aslSlider({value:g,min:asl_configuration.slider_min_radius?parseInt(asl_configuration.slider_min_radius):1,max:asl_configuration.radius_range}),t.$dist_control=k,t.$dist_control.on("slide",function(m){t._cont.find("#asl-radius-input").html(m.value),asl_configuration.radius_range=m.value}).on("slideStop",function(m){t._cont.find("#asl-radius-input").html(m.value),asl_configuration.radius_range=m.value,t.refreshView(),t.$circle?t.draw_radius_center(t.dest_coords):t.fit_distance_range(t.dest_coords)}),asl_configuration.radius_range=g}}}},asl_locator.View.prototype.reset_measure=function(t,e){var o=this,s=!!(o.dest_coords||o.bbox||o._location||o.my_marker||o.$circle);this.clear_infobox(),o.bbox=o._panel.dest_coords=o.dest_coords=null;var u=asl_configuration.radius_range,_=1e3,b=null,h=o.data_.stores_;if(s){for(var g in h)if(h.hasOwnProperty(g)){h[g].content_=null,h[g].props_.label=h[g].props_.dist_str=h[g].props_.distance=null;var k=o.markerCache_[h[g].id_];
14if(k)if(asl_configuration.adv_mkr&&k.content&&k.content.querySelector){var m=k.content.querySelector(".sl-location-letter");m&&(m.textContent="")}else asl_configuration.marker_label&&typeof k.setLabel=="function"&&k.setLabel(null)}}if(s&&asl_configuration.branches){for(var g in h)if(h.hasOwnProperty(g)){var H=h[g];H.props_.childs&&(H.location_=H.real_location,H.real_distance_str=H.real_distance=H.closest_store=H.real_location=null,o.markerCache_[H.id_]&&o.markerCache_[H.id_].setPosition(H.location_))}}o._cont.find("#asl-radius-input").html(asl_configuration.radius_range),s&&(asl_locator.Store.infoPanelCache_={}),o.my_marker&&(o.my_marker.setMap(null),delete o.my_marker,o.my_marker=null),o.$circle&&(o.$circle.setMap(null),delete o.$circle,o.$circle=null),e||o.refreshView(),n(t).val("")},asl_locator.View.prototype.add_search_text=function(t){var e=this;e._panel.search_control&&(e._panel.search_control.value=t,n(e._panel.search_control).next().removeClass("hide"))},asl_locator.View.prototype.geolocate_=function(){var t=this;if(window.navigator&&navigator.geolocation){let o=function(s){var u=n('<div class="alert alert-danger asl-geo-err"></div>');switch(s.code){case"http":u.html("Error! site is loading with HTTP connection");break;case s.PERMISSION_DENIED:u.html(asl_configuration.words.geo_location_error||s.message||"User denied the request for Geolocation.");break;case s.POSITION_UNAVAILABLE:u.html("Location information is unavailable.");break;case s.TIMEOUT:u.html("The request to get user location timed out.");break;case s.UNKNOWN_ERROR:u.html("An unknown error occurred.");break;default:u.html(s.message)}u.appendTo(".asl-cont .asl-map"),window.setTimeout(function(){u.remove()},5e3)};var e=o;if(window.location.protocol=="http:"){o({code:"http"});return}navigator.geolocation.getCurrentPosition(function(s){t.measure_distance(new ASLLatLng(s.coords.latitude,s.coords.longitude)),asl_locator.hook_event({type:"geolocation",data:s.coords}),t.add_search_text(asl_configuration.words.current_location)},o,{maximumAge:60*1e3,timeout:10*1e3})}},asl_locator.View.prototype.geo_service=function(){var t=this,e="https://get.geojs.io/v1/ip/geo.json",o=t._cont.find("#auto-complete-search,.asl-search-address");n.ajax({url:e,type:"GET",dataType:"json",success:function(s){if(s&&s.latitude&&s.longitude){var u=parseFloat(s.latitude),_=parseFloat(s.longitude),b=new ASLLatLng(u,_),h=[];s.city&&h.push(s.city),s.region&&h.push(s.region),s.country&&h.push(s.country);var g=h.join(", ");o.val(g),o.next().removeClass("hide"),t.measure_distance(b),asl_locator.hook_event({type:"geolocation",data:b})}},error:function(s){console.warn("Error Store Locator! GeoJS API: ",s)}})},asl_locator.View.prototype.clear_infobox=function(){this.get("selectedStore")&&this.highlight(null)},asl_locator.View.prototype.fitBound=function(t){var e=t||this.get("stores");if(e.length){var o=new ASLLatLngBounds;for(var s in e)e.hasOwnProperty(s)&&o.extend(e[s].getLocation());var u=asl_configuration.max_bound_zoom,_=asl_configuration.min_bound_zoom||2;c()?this.getMap().fitBounds(o,{padding:40,minZoom:_,maxZoom:u}):(ASLEvent.addListenerOnce(this.getMap(),"bounds_changed",function(){this.setZoom(Math.max(_,Math.min(this.getZoom(),u)))}),this.getMap().fitBounds(o))}},asl_locator.View.prototype.init_=function(){this.settings_.geolocation&&this.geolocate_(),this.markerCache_={};var t=asl_configuration.infobox_width||320,e=asl_configuration.PLUGIN_URL+(asl_configuration.close_white?"public/img/cross-white.png":"public/img/cross.png"),o="11px 10px -27px 0px";(asl_configuration.infobox_layout=="2"||asl_configuration.template=="1"&&asl_configuration.infobox_layout=="0")&&(e=asl_configuration.PLUGIN_URL+"public/img/close-white.svg"),asl_configuration.template=="5"?this.infoWindow_=new r({panel:this._cont.find("#asl-infobar-panel"),div:this._cont.find(".sl-infobar-section"),onCloseClick:()=>{this._panel.SListCont_.removeClass("sl-item-highlighted")}}):c()?this.infoWindow_=new mt({width:t,markerHeight:Number(asl_configuration.marker_height)||35,closeBoxMargin:o}):this.infoWindow_=new InfoBox({boxStyle:{width:t+"px",margin:"0 0 "+asl_configuration.marker_height+"px -"+t/2+"px"},alignBottom:!0,pane:!1,disableAutoPan:!0,closeBoxMargin:o,closeBoxURL:e,infoBoxClearance:new ASLSize(1,1)});var s=this,u=this.getMap();this.set("updateOnPan",this.settings_.updateOnPan),ASLEvent.addListener(this.infoWindow_,"closeclick",function(){s.highlight(null)}),ASLEvent.addListener(u,"click",function(){s.get("selectedStore")&&(s.highlight(null),s.infoWindow_.close())}
14),s._cont.find(".Num_of_store .sl-hide-branches").on("click",s.reset_branch_list.bind(s)),s.setup_distance_control(),asl_configuration.adv_mkr&&(asl_configuration.marker_label=asl_configuration.do_bounce=asl_configuration.active_marker=asl_configuration.cluster=!1,s.active_marker="",this.createMarker=function(_){var b=new google.maps.marker.AdvancedMarkerElement({content:_.advMkrContent(),position:_.getLocation(),title:_.props_.title});return b},google.maps.marker.AdvancedMarkerElement.prototype.getPosition=function(){return this.position},google.maps.marker.AdvancedMarkerElement.prototype.getMap=function(){return this.map}),asl_configuration["default-addr"]&&asl_engine.helper.query_parameter("sl-addr")&&!asl_configuration.disable_page_scroll&&n("html, body").animate({scrollTop:s._cont.offset().top},1e3)};function d(){for(var t=0;t<arguments.length;t++){var e=arguments[t];if(e!=null){var o=String(e).trim().replace(/\s+/g,"-").replace(/[^A-Za-z0-9\-_]/g,"").toLowerCase();if(o)return o}}return"item-"+Math.random().toString(36).slice(2,8)}asl_locator.View.prototype.template_6_setup=function(){var t=this,e=this.data_.scroll_data||[];if(t.scrollTargetIdMap={},!!e.length){var o=asl_configuration.words&&(asl_configuration.words.scroll_shortcuts||asl_configuration.words.scroll_sections)||"Store navigation shortcuts";o=String(o||"");var s=asl_configuration.words&&(asl_configuration.words.scroll_prev||asl_configuration.words.previous||asl_configuration.words.prev)||"Scroll left",u=asl_configuration.words&&(asl_configuration.words.scroll_next||asl_configuration.words.next)||"Scroll right";s=String(s||""),u=String(u||"");var _=n("<div>",{class:"sticky-top py-3 px-4"}),b=n("<div>",{class:"sl-row sl-scroll-panel"}),h=n("<ul>",{class:"pol-10 d-flex flex-md-wrap gap-2 list-unstyled asl-scroll-chip-list",role:"list"}).attr("aria-label",o).css({listStyle:"none",margin:0,padding:0,display:"flex"});if(b.append(h),_.append(b),e.forEach(function(q){var at=String(q.value).trim(),it=q.type+"::"+at,vt=d(at,q.title,it),Lt="scroll-"+vt,Ot="#"+Lt;t.scrollTargetIdMap[it]=Lt,t.scrollTargetIdMap[q.type+"::"+String(q.value)]=Lt;var dt=n("<li>",{class:"asl-panel-scroll-item",role:"listitem",style:"display:flex; flex:0 0 auto;"}),rt=n("<button>",{type:"button",class:"asl-panel-scroll-btn","data-target":Ot,"data-value":q.value,"data-prop":q.type,"aria-controls":Lt,"aria-pressed":"false",html:t.getScrollIcon()+" "+q.title});dt.append(rt),h.append(dt)}),this._panel.mainPanel.prepend(_),e.length>=4){var g=document.getElementById("asl-scroll-chip-slider-template"),k=n();if(g)if(g.content&&g.content.firstElementChild)k=n(g.content.firstElementChild.cloneNode(!0));else{var m=(g.innerHTML||"").trim();m&&(k=n(m))}(!k||!k.length)&&(k=n("<div>",{class:"sl-scroll-slider","data-chip-slider":"true"}),k.append(n("<button>",{class:"sl-nav left is-hidden","data-left":"","aria-label":"Scroll left"}).append(n("<span>",{class:"icon-left-open-big","aria-hidden":"true"}),n("<span>",{class:"sr-only",text:"Scroll left"})),n("<ul>",{class:"sl-scroll-track list-unstyled gap-2","data-track":"","data-scroll-chip-list":"true",role:"list","aria-label":"Store navigation shortcuts"}).css({listStyle:"none",margin:0,padding:0,display:"flex",flexWrap:"nowrap"}),n("<button>",{class:"sl-nav right is-hidden","data-right":"","aria-label":"Scroll right"}).append(n("<span>",{class:"icon-right-open-big","aria-hidden":"true"}),n("<span>",{class:"sr-only",text:"Scroll right"}))));var H=k.find("[data-track]").first();H.length?(H.attr("data-track")||H.attr("data-track",""),H.attr("data-scroll-chip-list")||H.attr("data-scroll-chip-list","true")):(H=n("<ul>",{class:"sl-scroll-track list-unstyled gap-2",role:"list"}).attr("data-track","").attr("data-scroll-chip-list","true").css({listStyle:"none",margin:0,padding:0,display:"flex",flexWrap:"nowrap"}),k.append(H)),H.attr("aria-label",o);var Q=k.find("[data-left]").first();if(!Q.length)Q=n("<button>",{class:"sl-nav left is-hidden","aria-label":s}).attr("data-left","").append(n("<span>",{class:"icon-left-open-big","aria-hidden":"true"}),n("<span>",{class:"sr-only",text:s})),k.prepend(Q);else{Q.attr("aria-label",s),Q.attr("data-left")||Q.attr("data-left","");var ot=Q.find(".sr-only").first();ot.length?ot.text(s):Q.append(n("<span>",{class:"sr-only",text:s}))}var T=k.find("[data-right]").first();if(!T.length)T=n("<button>",{class:"sl-nav right is-hidden","aria-label":u}).attr("data-right","").append(n("<span>",{class:"icon-right-open-big","aria-hidden":"true"}),n("<span>",{class:"sr-only",text:u})),k.append(T);else{T.attr("aria-label",u),T.attr("data-right")||T.attr("data-right","");var I=T.find(".sr-only").first();I.length?I.text(u):T.append(n("<span>",{class:"sr-only",text:u}))}H.append(h.children()),h.replaceWith(k),(function(at){const it=at.find("[data-track]").get(0),vt=at.find("[data-left]"),Lt=at.find("[data-right]"),Ot=at.find(".asl-panel-scroll-btn"),dt=t._panel.mainPanel,rt=dt.get(0),gt=rt&&rt.scrollHeight>rt.clientHeight,zt=(z,G)=>String(z)+"::"+String(G),y=new Map,S=new Set;Ot.each(function(z){const G=n(this),St=G.data("prop"),bt=G.data("value");S.add(String(St)),y.set(zt(St,bt),z)});const L=Array.from(S);let v=0,M=null,w=!1;function E(){return Ot.toArray()}function K(z){return E().indexOf(z)}function N(){return Ot.length-1}function W(){return it.scrollWidth>it.clientWidth+1}function tt(){const z=W();vt.toggleClass("is-hidden",!z||v<=0),Lt.toggleClass("is-hidden",!z||v>=N())}function et(){const z=it.scrollLeft,G=E();for(let St=0;St<G.length;St++)if(G[St].offsetLeft>=z-1)return St;return N()}function Y(z,G,St){const bt=t._panel.storeList_.find(".sl-store-scroll-lbl").filter(function(){return n(this).data(String(G))==String(z)});if(!bt.length)return;const Et=bt.first(),Ft=gt?dt:n("html, body"),Bt=gt?Et.position().top+dt.scrollTop()-100:Et.offset().top-100;!St&&w||(w=!0,Ft.stop(!0).animate({scrollTop:Bt},400,function(){w=!1}))}
14function Ct(z,G=!0,St=!0,bt=!1){z=Math.max(0,Math.min(z,N())),v=z;const Et=E()[z];if(Et){if(Ot.removeClass("sl-actv").attr("aria-pressed","false").removeAttr("aria-current"),n(Et).addClass("sl-actv").attr("aria-pressed","true").attr("aria-current","true"),G&&it.scrollTo({left:Et.offsetLeft,behavior:"smooth"}),St){const Ft=n(Et);Y(Ft.data("value"),Ft.data("prop"),bt)}tt()}}function At(){clearTimeout(M),M=setTimeout(()=>{const z=et();Ct(z,!1,!0,!1)},100)}vt.on("click",()=>Ct(v-1,!0,!0,!1)),Lt.on("click",()=>Ct(v+1,!0,!0,!1)),at.off("click.aslChip").on("click.aslChip",".asl-panel-scroll-btn",function(z){z.stopPropagation(),z.preventDefault(),Ct(K(this),!0,!0,!0);const G=n(this),St=String(G.data("value")),bt=String(G.data("prop"));t.zoomToFilteredStores(St,bt)}),it.addEventListener("wheel",z=>{Math.abs(z.deltaY)>Math.abs(z.deltaX)&&(z.preventDefault(),it.scrollLeft+=z.deltaY),At()},{passive:!1});let ut=!1,R=0,X=0;it.addEventListener("pointerdown",z=>{z.target&&z.target.closest(".asl-panel-scroll-btn")||(ut=!0,R=z.clientX,X=it.scrollLeft,it.setPointerCapture&&it.setPointerCapture(z.pointerId),at.find("[data-track]").addClass("is-dragging"))}),it.addEventListener("pointermove",z=>{ut&&(it.scrollLeft=X-(z.clientX-R),At())}),["pointerup","pointercancel","pointerleave"].forEach(z=>{it.addEventListener(z,()=>{ut=!1,at.find("[data-track]").removeClass("is-dragging")})});const j=()=>
14{if(w)return;const z=gt?rt.getBoundingClientRect():{top:0,bottom:window.innerHeight};let G=null;if(t._panel.storeList_.find(".sl-store-scroll-lbl").each(function(){if(this.getBoundingClientRect().bottom>z.top+10)return G=this,!1}),!G)return;const St=n(G);for(const bt of L){const Et=St.data(bt);if(Et!==void 0){const Ft=y.get(zt(bt,String(Et)));Ft!==void 0&&Ct(Ft,!0,!1,!1);break}}};gt?dt.off("scroll.aslListSync").on("scroll.aslListSync",j):n(window).off("scroll.aslListSync").on("scroll.aslListSync",j),window.ResizeObserver?new ResizeObserver(()=>{const G=E()[v];G&&it.scrollTo({left:G.offsetLeft}),tt()}).observe(at.get(0)):window.addEventListener("resize",()=>{const z=E()[v];z&&it.scrollTo({left:z.offsetLeft}),tt()}),Ct(0,!1,!1,!1),tt(),setTimeout(j,0)})(k),this._panel.mainPanel.off("click.aslScrollBtn")}else this._panel.mainPanel.off("click.aslScrollBtn").on("click.aslScrollBtn",".asl-panel-scroll-btn",function(){var q=n(this),at=String(q.data("value")),it=String(q.data("prop")),vt=q.closest('[role="list"]');vt.find(".asl-panel-scroll-btn").not(q).removeClass("sl-actv").attr("aria-pressed","false").removeAttr("aria-current"),q.addClass("sl-actv").attr("aria-pressed","true").attr("aria-current","true");var Lt=t._panel.storeList_.find(".sl-store-scroll-lbl").filter(function(){return n(this).data(it)==at});if(Lt.length){var Ot=Lt.first(),dt=t._panel.mainPanel,rt=dt.get(0),gt=rt&&rt.scrollHeight>rt.clientHeight,zt=gt?Ot.position().top+dt.scrollTop()-100:Ot.offset().top-100;(gt?dt:n("html, body")).stop(!0).animate({scrollTop:zt},400)}t.zoomToFilteredStores(at,it)})}},asl_locator.View.prototype.zoomToFilteredStores=function(t,e){var o=this;this.getFilterStore(t,e,function(s){if(s.length){var u=o.getMap();if(u){var _=new ASLLatLngBounds;if(s.forEach(function(h){_.extend(h.getLocation())}),s.length===1){var b=s[0].getLocation();u.panTo(b),typeof asl_configuration.zoom_li!="undefined"&&asl_configuration.zoom_li&&u.setZoom(parseInt(asl_configuration.zoom_li))}else u.fitBounds(_)}}})},asl_locator.View.prototype.getScrollIcon=function(){var t=document.querySelector("#asl-icon-scroll");return t?t.innerHTML.trim():""},asl_locator.View.prototype.updateOnPan_changed=function(){this.updateOnPanListener_&&ASLEvent.removeListener(this.updateOnPanListener_);var t=this;if(this.get("updateOnPan")&&this.getMap()){var t=this,e=this.getMap(),o=function(u){asl_configuration.reset_button&&n(".asl-reset-map")[0]&&n(".asl-reset-map")[0].style!="block"&&(n(".asl-reset-map")[0].style.display="block"),asl_configuration.sort_by_bound&&t.scheduleRefreshView()};this.updateOnPanListener_=ASLEvent.addListener(e,"dragend",o)}},asl_locator.View.prototype.addStoreToMap=function(t){var e=this.getMarker(t);t.setMarker(e);var o=this;e.clickListener_||(e.clickListener_=ASLEvent.addListener(e,asl_configuration.mouseover?"mouseover":"click",function(){if(asl_configuration.branches=="2"&&t.parent_store){o.render_branch_list(t.parent_store),o.highlight(t,!1);return}if(asl_configuration.click_redirect){var u=t.props_[asl_configuration.click_redirect];u&&(window.location.href=u);return}o.marker_clicked=!0,o.halt_fetch=!0,o.marker_center=e.getPosition(),o.highlight(t,!1)}));var s=!!asl_configuration.cluster;!s&&e.getMap()!=this.getMap()&&e.setMap(this.getMap())},asl_locator.View.prototype.createMarker=function(t){var e=asl_configuration.URL+"icon/",o=0;if(asl_configuration.category_marker){var s=this.selected_category||this.data_.flat_categories[t.categories_[0]];s?(e=asl_configuration.URL+"svg/",o=parseInt(s.ordr),e+=s.icon||"default.png"):e+="default.png"}else e+=asl_markers[t.props_.marker_id]&&asl_markers[t.props_.marker_id].icon||"default.png",o=t.props_.ordr||0;var u=asl_configuration.marker_title?this.cat_in_tooltip&&t.props_.c_names?t.props_.c_names+" | "+t.props_.title:t.props_.title:null,_={title:asl_engine.helper.html_entites(u),position:t.getLocation(),zIndex:asl_configuration.marker_index?o:null,optimized:!asl_configuration.icon_size||!/\.svg(?:[?#]|$)/i.test(e)&&!/\.svg(?:[?#]|$)/i.test(asl_configuration.active_marker||""),animation:null,icon:{url:e}};return this.icon&&(_.icon=Object.assign({},this.icon),_.icon.url=e),asl_configuration.marker_label&&t.props_.label&&(_.label={text:t.props_.label,color:asl_configuration.label_color||"#eb3a44",fontSize:"16px",fontWeight:"bold"}),c()?new ft(_):new google.maps.Marker(_)},asl_locator.View.prototype.getMarker=function(t){var e=this.markerCache_,o=t.id_;return e[o]||(e[o]=this.createMarker(t)),e[o]},asl_locator.View.prototype.getInfoWindow=function(t,e){if(!t)return this.infoWindow_;var o=n(t.getInfoWindowContent(e));
14return this.infoWindow_.setContent(o[0]),this.infoWindow_},asl_locator.View.prototype.getViewFeatures=function(){return this.settings_.features},asl_locator.View.prototype.getFeatureById=function(t){if(!this.featureById_){this.featureById_={};for(var e=this.getViewFeatures().asList(),o=0,s;s=e[o];o++)this.featureById_[s.id_]=s}return this.featureById_[t]},asl_locator.View.prototype.featureFilter_changed=function(){this.get("stores")&&this.clearMarkers()},asl_locator.View.prototype.clearMarkers=function(){for(var t in this.markerCache_){this.markerCache_[t].setMap(null);var e=this.markerCache_[t].clickListener_;e&&(ASLEvent.removeListener(e),this.markerCache_[t].clickListener_=null)}},asl_locator.View.prototype.storesWithCategory=function(t){var e=this.get("stores"),o=[];if(e)for(var s=0,u=e.length;s<u;s++)e[s].hasCategory(t)&&o.push(e[s]);return o},asl_locator.View.prototype.categoryClearAll=function(){var t=this.get("featureFilter");for(var e in t.array_)t.array_.pop()},asl_locator.View.prototype.categoryAccFilter=function(t,e){var o=this.get("featureFilter"),s=t&&e?this.getFeatureById(t):null;s&&o.add(s),this.set("featureFilter",o),this.refreshView(),this.fitBound()},asl_locator.View.prototype.doBounce=function(t,e){if(!asl_configuration.marker_label){var o=t.getMarker();o.setAnimation(null),e&&o.setAnimation(ASLAnimation.BOUNCE)}},asl_locator.View.prototype.panTo=function(t){var e=t.getMarker();this.getMap().panTo(e.getPosition())},asl_locator.View.prototype.reloadLocator=function(t,e){asl_configuration.load_all="1",this.clearMarkers(),asl_configuration.cluster&&asl_locator.marker_clusters.clearMarkers(),this.data_.stores_=[],this.refreshView(),delete asl_locator.Store.infoPanelCache_,asl_locator.Store.infoPanelCache_={},this.data_.fetch_remote_data(null,t,e)},asl_locator.View.prototype.scheduleRefreshView=function(){var t=this;window.clearTimeout(this.refreshViewTimer_),this.refreshViewTimer_=window.setTimeout(function(){t.refreshViewTimer_=null,t.refreshView()},100)},asl_locator.View.prototype.refreshView=function(){var t=this,e=this.getMap().getBounds(),o={},s=!1;if(asl_configuration.filter_ddl){for(var u in asl_configuration.filter_ddl)if(asl_configuration.filter_ddl.hasOwnProperty(u)){var _=asl_configuration.filter_ddl[u],b=asl_engine.controls[_];b&&typeof b.val=="function"?(o[_]=b.val(),asl_configuration.single_cat_select=="1"&&(o[_]=o[_]=="0"||!o[_]?null:[o[_]])):b&&typeof b.values=="function"?o[_]=Array.from(b.values()):o[_]=[],o[_]&&o[_].length&&(s=!0)}}if(!asl_configuration.first_load||asl_configuration.first_load!="1"&&asl_configuration.first_load!="4"){var h=asl_configuration.first_load=="6"?t.dest_coords||t.prop_filter||t.get("featureFilter").count()||s||!asl_engine.helper.is_empty(t.address_values):!1;if(!h&&!t.dest_coords&&!t.prop_filter&&!t.second_filter&&!t.search_text){t.search_performed=!1,t.set("stores",[]),t._panel.set("stores",[!0]);return}}t.search_performed=!0,this.data_.getStores(e,this.get("featureFilter"),function(g){var k=t.get("stores");if(k)for(var m=0,H=k.length;m<H;m++){var Q=k[m].getMarker();if(Q.clickListener_&&(ASLEvent.removeListener(Q.clickListener_),Q.clickListener_=null),asl_configuration.adv_mkr){var ot=Q;ot.setMap(null)}}var T=[],I=[],q=0,at=t.filter_text?t.filter_text:null,it=!!(g&&g[0]&&g[0].props_.dist_str),vt=!!(it&&(asl_configuration.distance_slider||asl_configuration.fixed_radius)),Lt=!!(asl_configuration.boundary_box&&t.bbox),Ot=!!(asl_configuration.ignore_priority_with_distance&&it),dt=!!(asl_configuration.store_radius&&it),rt=asl_configuration.sort_by;asl_configuration.search_dist_sort&&t.dest_coords&&(rt=""),asl_configuration.distance_filter_off=="1"&&(vt=!1);var gt=Object.keys(asl_categories),zt=asl_configuration.filter_ddl;for(var y in gt)asl_categories[gt[y]]&&(asl_categories[gt[y]].len=0);for(var y in gt)asl_categories[gt[y]]&&(asl_categories[gt[y]].len=0);for(var S in g)if(g.hasOwnProperty(S)){var L=g[S].props_,v=asl_locator.hook_event({type:"store_filter",data:L,context:t});if(v!==!1&&!(asl_configuration.address_ddl&&(t.address_values.country&&t.address_values.country!=L.country||t.address_values.state&&t.address_values.state!=L.state||t.address_values.city&&t.address_values.city!=L.city))){if(zt){var M=!0;for(var w in zt){var E=o[zt[w]];if(E&&E.length>0){var K=L[zt[w]]||[];if(asl_configuration.and_filter?M=E.every(function(At){return K.indexOf(At)!=-1}):M=E.some(function(At){return K.indexOf(At)!=-1}),!M)break}}if(!M)continue}if(!(t.prop_filter&&t.prop_filter.type&&L[t.prop_filter.type]!=t.prop_filter.title)&&!(t.second_filter&&!t.secondary_match(L))&&!(asl_configuration.additional_search&&t.search_text&&(!g[S].props_.description_2||g[S].props_.description_2.indexOf(t.search_text)==-1))){if(asl_configuration.filter_address){if(t.locality==null){if(asl_configuration.default_city&&L.city.toLowerCase()!=asl_configuration.default_city.toLowerCase())continue}else if(t.locality){var N=!1;if((t.locality.city&&L.city&&t.locality.city.indexOf(L.city.toLowerCase())!=-1||t.locality.postal_code&&L.postal_code&&t.locality.postal_code.indexOf(L.postal_code.toLowerCase())!=-1||t.locality.state&&L.state&&t.locality.state.indexOf(L.state.toLowerCase())!=-1)&&(N=!0),!N)continue}}if(dt){if(L.distance>=parseFloat(L.radius))continue}else if(Lt){if(!asl_bounds_contains(t.bbox,g[S].getLocation()))continue}else if(asl_configuration.advance_filter){if(vt&&L.distance>=asl_configuration.radius_range||asl_configuration.time_switch&&asl_configuration.show_opened&&L.open!=!0)continue}else if(asl_configuration.fixed_radius&&L.distance&&L.distance>=asl_configuration.fixed_radius)continue;for(var y in g[S].categories_)g[S].categories_.hasOwnProperty(y)&&asl_categories[g[S].categories_[y]]&&asl_categories[g[S].categories_[y]].len++;q++,!(asl_configuration.branches&&t.shouldSkipStoreBasedOnBranch(L))&&(L.ordr>0&&!Ot?I.push(g[S]):T.push(g[S]))}}}if(asl_configuration.template=="2"&&asl_configuration.advance_filter){var W=t._cont.find(".asl-categories-list .round-box");W.each(function(At){n(this).attr("data-c",asl_categories[n(this).attr("data-id")].len),this.children[0].children[1].children[0].children[1].innerHTML="("+
14asl_categories[n(this).attr("data-id")].len+")"})}if(T.length==0&&I.length==0){var tt=asl_locator.hook_event({type:"no_stores_filter",data:g,center:t.dest_coords,context:t});Array.isArray(tt)&&(T=tt)}else asl_locator.hook_event({type:"stores_filtered",data:T,center:t.dest_coords,context:t});if(I.length>0&&(t.dest_coords&&t.data_.sortDistance(t.dest_coords,I),t.data_.sortByDesc("ordr",I)),asl_configuration.sort_random?t.data_.sortRandom(T):e&&asl_configuration.sort_by_bound&&asl_configuration.sort_by_bound_always?t.data_.sortDistance(e.getCenter(),T):rt?t.data_.sortBy(rt,T):T&&t.dest_coords?t.data_.sortDistance(t.dest_coords,T):e&&asl_configuration.sort_by_bound&&t.data_.sortDistance(e.getCenter(),T),I.length>0&&(T=I.concat(T)),t.total_stores=T.length,asl_configuration.stores_limit&&(T=T.slice(0,asl_configuration.stores_limit)),(asl_configuration.adv_mkr||asl_configuration.marker_label)&&it){for(var et=T.length,Y=0;Y<et;Y++)T[Y].props_.label=String(Y+1);delete t.markerCache_,t.markerCache_={}}if(!T.length){var Ct=t.getFallbackStoreId();Ct&&(T=g.filter(function(At){return At.props_.id===Ct}),T&&t.fitBound(T))}t.set("stores",T),t._panel.set("stores",[!0]),asl_configuration.select_category&&asl_configuration.category_bound&&(asl_configuration["default-addr"]||t.fitBound(null),console.log("File: view.js, Line: 2629"),asl_configuration.select_category=null)})},asl_locator.View.prototype.getFallbackStoreId=function(){var t=asl_configuration.region_fallback_stores||null,e=null;if(typeof t=="string"&&t.trim())try{var o=t.replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&");t=JSON.parse(o)}catch(Q){t=null}if(t&&typeof t=="object"){var s=n(this._panel.search_control),u=s&&s.val()?String(s.val()).toLowerCase().trim():"",_=u.replace(/\s+/g," ");if(_){for(var b in t)if(t.hasOwnProperty(b)){var h=String(b).toLowerCase().trim();if(h){var g=h.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\s+/g,"\\s+"),k=new RegExp("(^|[^a-z0-9])"+g+"([^a-z0-9]|$)","i");if(k.test(_)){var m=parseInt(t[b],10);if(!isNaN(m)){e=m;break}}}}}}if(!e&&asl_configuration.default_store){var H=parseInt(asl_configuration.default_store,10);isNaN(H)||(e=H)}return e},asl_locator.View.prototype.getFilterStore=function(t,e,o){var s=this,u=this.getMap().getBounds();this.data_.getStores(u,this.get("featureFilter"),function(_){var b=_.filter(function(h){return h.props_&&h.props_[e]===t});typeof o=="function"&&o(b)})},asl_locator.View.prototype.shouldSkipStoreBasedOnBranch=function(t){return asl_configuration.branches==="1"?this.branch_view?!t.branch:!!t.branch:asl_configuration.branches==="2"&&this.branch_view?!t.branch:!1},asl_locator.View.prototype.countWithBranches=function(t){for(var e=t.length,o=0;o<t.length;o++)t[o].props_.childs&&(e+=t[o].props_.childs.length);return e},asl_locator.View.prototype.stores_changed=function(){asl_configuration.category_marker&&asl_configuration.single_cat_select=="1"&&(this.selected_category=this.get("featureFilter").getSelected(),this.clearMarkers(),delete this.markerCache_,this.markerCache_={});var t=this.get("stores"),e=[];asl_configuration.cluster||this.clearMarkers();var o=this,s=this.markerBuildGeneration_=(this.markerBuildGeneration_||0)+1;function u(){s===o.markerBuildGeneration_&&asl_configuration.cluster&&(asl_locator.marker_clusters.clearMarkers(!asl_locator.isMapLibre()),asl_locator.marker_clusters.addMarkers(e))}function _(m){o.addStoreToMap(t[m]),e.push(t[m].marker_)}if(asl_configuration.cluster&&!asl_locator.isMapLibre()&&t.length>100){var b=0,h=window.requestIdleCallback?function(m){window.requestIdleCallback(m,{timeout:50})}:function(m){window.setTimeout(function(){m(null)},0)},g=function(m){if(s===o.markerBuildGeneration_){for(var H=0;b<t.length&&H<50&&(_(b++),H++,!(m&&m.timeRemaining()<3)););b<t.length?h(g):u()}};h(g);return}for(var k=0;k<t.length;k++)_(k);u()},asl_locator.View.prototype.getMap=function(){return this.map_},asl_locator.View.prototype.map_recenter=function(t,e,o,s,u){if(asl_configuration.disable_pan){typeof s=="function"&&s();return}var _=this.getMap();if(c()){var b=Number(o)||0;asl_configuration.infobox_layout=="1"&&(b-=50),_.panToWithOffset(t,e,b,s,u);return}if(!(!_||!_.getProjection())){var h=_.getProjection().fromLatLngToPoint(t instanceof google.maps.LatLng?t:_.getCenter()),g=new google.maps.Point((typeof e=="number"?e:0)/Math.pow(2,_.getZoom())||0,(typeof o=="number"?o:0)/Math.pow(2,_.getZoom())||0);_.panTo(_.getProjection().fromPointToLatLng(new google.maps.Point(h.x-g.x,h.y+g.y)))}},asl_locator.View.prototype.highlightAdvMkrTmpl5=function(t){var e=this.get("selectedStore");if(e){var o=e.getMarker();n(o.targetElement).removeClass("asl-mkr-actv"),o.zIndex=null}if(t){var o=t.getMarker();n(o.targetElement).addClass("asl-mkr-actv"),o.zIndex=1}},asl_locator.View.prototype.highlightAdvMkr=function(t,e){var o=this.getMap(),s=this,u=this.get("selectedStore");if(u){var _=u.getMarker();n(_.targetElement).removeClass("asl-mkr-actv"),_.zIndex=null}if(t){var b=this.get("stores");asl_configuration.zoom_li&&!c()&&o.setZoom(parseInt(asl_configuration.zoom_li)),this.map_recenter(t.getLocation(),asl_configuration.info_x_offset,asl_configuration.info_y_offset),asl_locator.hook_event({type:"select",data:t.props_}),o.getStreetView().getVisible()&&o.getStreetView().setPosition(t.getLocation());var _=t.getMarker();n(_.targetElement).addClass("asl-mkr-actv"),_.zIndex=1}this.set("selectedStore",t),this.display_list&&!e&&t&&!asl_configuration.accordion&&window.setTimeout(function(){var h=s._panel.mainPanel,g=s._panel.storeList_.find('.sl-item[data-id="'+t.id_+'"]'),k=g.position().top,m=typeof asl_configuration.scroll_offset!="undefined"?parseInt(asl_configuration.scroll_offset,10):0;g[0]&&h.animate({scrollTop:k+m},"fast")},50)},asl_locator.View.prototype.highlight=function(t,e){var o=null,s=this.getMap(),u=this;
14if(asl_configuration.adv_mkr){if(asl_configuration.template=="5")this.highlightAdvMkrTmpl5(t);else if(this.highlightAdvMkr(t,e),asl_configuration.template!="7")return}if(asl_configuration.template=="5"&&(t?this._panel.SListCont_.addClass("sl-item-highlighted"):this._panel.SListCont_.removeClass("sl-item-highlighted")),t){var _=this.get("stores");o=this.getInfoWindow(t,_);var b=t.getMarker(),h=function(){b?o.open(s,b):(o.setPosition(t.getLocation()),o.open(s))};c()?o.close():h();var g=!1;if(c()&&s.getBounds){var k=s.getBounds();g=k&&k.contains(t.getLocation())}if(asl_configuration.zoom_li&&!c()&&s.setZoom(parseInt(asl_configuration.zoom_li)),c()){var m=Number(asl_configuration.zoom_li);m=Number.isFinite(m)?m:null;var H=asl_configuration.cluster&&asl_locator.marker_clusters,Q=H&&typeof H.getExpansionZoomForMarker=="function"?H.getExpansionZoomForMarker(b):Promise.resolve(null);Q.then(function(ot){if(u.get("selectedStore")===t){var T=g?null:m;Number.isFinite(Number(ot))&&(T=Math.max(m===null?s.getZoom():m,Number(ot))),u.map_recenter(t.getLocation(),asl_configuration.info_x_offset,asl_configuration.info_y_offset,h,T)}})}else this.map_recenter(t.getLocation(),asl_configuration.info_x_offset,asl_configuration.info_y_offset,null,null);asl_locator.hook_event({type:"select",data:t.props_}),s.getStreetView().getVisible()&&s.getStreetView().setPosition(t.getLocation())}else this.getInfoWindow().close(),asl_locator.hook_event({type:"unselect",data:null});this.set("selectedStore",t),this.display_list&&!e&&t&&!asl_configuration.accordion&&window.setTimeout(function(){if(!asl_configuration.disable_list_scroll){var ot=u._panel.storeList_.find('.sl-item[data-id="'+t.id_+'"]');if(ot[0]){var T=parseInt(asl_configuration.scroll_offset_y,10)||60,I=u._panel.mainPanel,q=I.get(0),at=q&&q.scrollHeight>q.clientHeight,it=asl_configuration.template=="6"&&!at;I=it?n("html, body"):I;var vt=it?ot.offset().top:ot.position().top+(asl_configuration.template=="6"?u._panel.mainPanel.scrollTop():0);vt=Math.max(vt-T,0),I.animate({scrollTop:vt},"fast")}}},500)},asl_locator.View.prototype.selectedStore_changed=function(){},asl_locator.ViewOptions=function(){},asl_locator.ViewOptions.prototype.updateOnPan,asl_locator.ViewOptions.prototype.geolocation,asl_locator.ViewOptions.prototype.features,asl_locator.ViewOptions.prototype.markerIcon,asl_locator.Feature=function(t,e,o,s){this.id_=t,this.name_=e,this.img_=o,this.order=s},asl_locator.Feature=asl_locator.Feature,asl_locator.Feature.prototype.getId=function(){return this.id_},asl_locator.Feature.prototype.getDisplayName=function(){return this.name_},asl_locator.Feature.prototype.toString=function(){return this.getDisplayName()},asl_locator.FeatureSet=function(t){this.array_=[],this.hash_={};for(var e=0,o;o=arguments[e];e++)this.add(o)},asl_locator.FeatureSet=asl_locator.FeatureSet,asl_locator.FeatureSet.prototype.toggle=function(t){this.hash_[t.id_]?this.remove(t):this.add(t)},asl_locator.FeatureSet.prototype.add=function(t){t&&(this.array_.push(t),this.hash_[t.id_]=1)},asl_locator.FeatureSet.prototype.count=function(){return this.array_.length},asl_locator.FeatureSet.prototype.remove=function(t){var e=t.id_;this.hash_[e]&&(delete this.hash_[e],this.array_=this.array_.filter(function(o){return o&&o.id_!=e}))},asl_locator.FeatureSet.prototype.asList=function(){for(var t=[],e=0,o=this.array_.length;e<o;e++){var s=this.array_[e];s!==null&&t.push(s)}return t},asl_locator.FeatureSet.prototype.getSelected=function(){var t=null,e=asl_view.data_.flat_categories;if(asl_configuration.has_child_categories){var o=asl_engine.select_controls&&asl_engine.select_controls.c_ids,s=o&&typeof o.val=="function"?o.val():null;s===null||typeof s=="undefined"||s===""?s=[]:Array.isArray(s)||(s=[s]),t=s.length>0?e[s[0]]:null}return t||(t=this.array_&&this.array_.length>0?this.array_[0]:null,t&&(t={id:t.id_,name:t.name_,icon:t.img_,order:t.order})),t},asl_locator.FeatureSet.NONE=new asl_locator.FeatureSet;function c(){return String(asl_configuration.map_vendor||"google").toLowerCase()==="maplibre"}function x(t){return t?{lat:typeof t.lat=="function"?t.lat():Number(t.lat),lng:typeof t.lng=="function"?t.lng():Number(t.lng)}:{lat:0,lng:0}}function B(t,e){var o=ASLControlPosition,s={"top-left":["TOP_LEFT","LEFT_TOP"],"top-right":["TOP_RIGHT","RIGHT_TOP","TOP_CENTER"],"bottom-left":["BOTTOM_LEFT","LEFT_BOTTOM"],"bottom-right":["BOTTOM_RIGHT","RIGHT_BOTTOM","RIGHT_CENTER","BOTTOM_CENTER"]};for(var u in s)for(var _=0;_<s[u].length;_++)if(o[s[u][_]]!==void 0&&String(o[s[u][_]])===String(t))return u;return e||"bottom-right"}function ct(t,e){var o=["streets-v12","outdoors-v12","light-v11","dark-v11","satellite-v9","satellite-streets-v12"],s=o.indexOf(e)!==-1?e:"streets-v12",u="https://api.mapbox.com/styles/v1/mapbox/"+s+"/tiles/512/{z}/{x}/{y}?access_token="+encodeURIComponent(t);return{version:8,name:"Mapbox "+s,sources:{"mapbox-raster":{type:"raster",tiles:[u],tileSize:512,maxzoom:22,attribution:'<a href="https://www.mapbox.com/about/maps/" target="_blank" rel="noopener">\xA9 Mapbox</a> <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener">\xA9 OpenStreetMap</a>'}},layers:[{id:"mapbox-raster",type:"raster",source:"mapbox-raster"}]}}
14function Z(){return{version:8,name:"OpenStreetMap Standard",sources:{"osm-raster":{type:"raster",tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256,maxzoom:19,attribution:'<a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener">\xA9 OpenStreetMap contributors</a>'}},layers:[{id:"osm-raster",type:"raster",source:"osm-raster"}]}}asl_locator.get_map_provider_error=function(){var t=String(asl_configuration.tile_provider||"geoapify").toLowerCase(),e=String(asl_configuration.maplibre_style_url||"");return window.maplibregl?e?null:t==="mapbox"&&!asl_configuration.mapbox_access_token?"A Mapbox access token is required for Mapbox tiles.":t==="maptiler"&&!asl_configuration.tile_provider_api_key?"A MapTiler API key is required for MapTiler tiles.":t==="geoapify"&&!asl_configuration.geoapify_api_key?"A Geoapify API key is required for Geoapify tiles.":t==="custom"&&!e?"A MapLibre style URL is required for the custom tile provider.":null:"MapLibre GL JS could not be loaded."};function V(t,e){var o=x(e.center),s=String(asl_configuration.tile_provider||"geoapify").toLowerCase(),u=String(asl_configuration.tile_provider_style||"default").toLowerCase(),_=null,b=String(asl_configuration.maplibre_style_url||""),h=s==="geoapify"?asl_configuration.geoapify_api_key:s==="mapbox"?asl_configuration.mapbox_access_token:asl_configuration.tile_provider_api_key;if(b&&(_=b.split("{api_key}").join(encodeURIComponent(h||"")).split("{access_token}").join(encodeURIComponent(h||""))),!_&&s==="geoapify"){var g=["osm-bright-smooth","osm-carto","positron","dark-matter"],k=g.indexOf(u)!==-1?u:"osm-bright-smooth";_="https://maps.geoapify.com/v1/styles/"+k+"/style.json?apiKey="+encodeURIComponent(asl_configuration.geoapify_api_key||"")}else if(!_&&s==="osm")_=Z();else if(!_&&s==="mapbox"){if(!asl_configuration.mapbox_access_token)throw new Error("A Mapbox access token is required for Mapbox tiles.");_=ct(asl_configuration.mapbox_access_token,u)}else if(!_&&s==="maptiler"){if(!asl_configuration.tile_provider_api_key)throw new Error("A MapTiler API key is required for MapTiler tiles.");var m=["streets-v4","basic-v2","bright-v2","outdoor-v2","topo-v2","satellite"],H=m.indexOf(u)!==-1?u:"streets-v4";_="https://api.maptiler.com/maps/"+H+"/style.json?key="+encodeURIComponent(asl_configuration.tile_provider_api_key)}else!_&&s==="custom"&&(_=asl_configuration.maplibre_style_url);if(!window.maplibregl)throw new Error("MapLibre GL JS is not loaded.");if(!_)throw new Error("A tile provider or MapLibre style URL is required.");this._element=t,this._map=new maplibregl.Map({container:t,style:_,center:[o.lng,o.lat],zoom:Number(e.zoom)||9,minZoom:e.minZoom,maxZoom:e.maxZoom,attributionControl:!1,cooperativeGestures:e.gestureHandling==="cooperative"});var Q=new maplibregl.AttributionControl({compact:!0,customAttribution:'<a href="https://maplibre.org/" target="_blank" rel="noopener">MapLibre</a>'});this._map.addControl(Q,"bottom-right"),this._zoomControl=null,this._fullscreenControl=null,this._zoomControlPosition=B(e.zoomControlOptions&&e.zoomControlOptions.position,"bottom-right"),this._fullscreenControlPosition=B(e.fullscreenControlOptions&&e.fullscreenControlOptions.position,"bottom-right"),e.zoomControl!==!1&&(this._zoomControl=new maplibregl.NavigationControl({showZoom:!0,showCompass:!1}),this._map.addControl(this._zoomControl,this._zoomControlPosition)),e.fullscreenControl!==!1&&(this._fullscreenControl=new maplibregl.FullscreenControl,this._map.addControl(this._fullscreenControl,this._fullscreenControlPosition));var ot=t.querySelector(".maplibregl-ctrl-attrib");ot&&(ot.classList.remove("maplibregl-compact-show"),ot.removeAttribute("open")),this.controls={},this._streetView={getVisible:function(){return!1},setPosition:function(){}},Object.keys(ASLControlPosition).forEach(function(I){this.controls[ASLControlPosition[I]]={push:function(q){q.classList.add("asl-maplibre-custom-control"),t.appendChild(q)}}},this);var T=this;["click","dragend","idle","zoomend","moveend"].forEach(function(I){T._map.on(I,function(q){var at=I==="zoomend"?"zoom_changed":I==="moveend"?"bounds_changed":I;ASLEvent.trigger(T,at,q)})})}V.prototype.getCenter=function(){var t=this._map.getCenter();return new ASLLatLng(t.lat,t.lng)},V.prototype.setCenter=V.prototype.panTo=function(t){var e=x(t);this._map.easeTo({center:[e.lng,e.lat]})},V.prototype.panToWithOffset=function(t,e,o,s,u){var _=x(t),b=(this._cameraTransitionId||0)+1;if(this._cameraTransitionId=b,this._map.stop(),typeof s=="function"){var h=this;this._map.once("moveend",function(){h._cameraTransitionId===b&&s()})}var g={center:[_.lng,_.lat],offset:[-(Number(e)||0),-(Number(o)||0)],duration:450,essential:!0};u!=null&&u!==""&&Number.isFinite(Number(u))&&(g.zoom=Number(u)),this._map.easeTo(g)},V.prototype.panBy=function(t,e){this._map.panBy([t,e])},V.prototype.getZoom=function(){return this._map.getZoom()},V.prototype.setZoom=function(t){this._map.setZoom(t)},V.prototype.getDiv=function(){return this._element},V.prototype.getStreetView=function(){return this._streetView},V.prototype.set=function(){},V.prototype.setOptions=function(t){t.center&&this.setCenter(t.center),t.zoom!=null&&this.setZoom(t.zoom),t.zoomControl===!0&&!this._zoomControl?
14(this._zoomControl=new maplibregl.NavigationControl({showZoom:!0,showCompass:!1}),this._map.addControl(this._zoomControl,this._zoomControlPosition)):t.zoomControl===!1&&this._zoomControl&&(this._map.removeControl(this._zoomControl),this._zoomControl=null),t.fullscreenControl===!0&&!this._fullscreenControl?(this._fullscreenControl=new maplibregl.FullscreenControl,this._map.addControl(this._fullscreenControl,this._fullscreenControlPosition)):t.fullscreenControl===!1&&this._fullscreenControl&&(this._map.removeControl(this._fullscreenControl),this._fullscreenControl=null)},V.prototype.getProjection=function(){return null},V.prototype.getBounds=function(){var t=this._map.getBounds();return new ASLLatLngBounds(new ASLLatLng(t.getSouth(),t.getWest()),new ASLLatLng(t.getNorth(),t.getEast()))},V.prototype.fitBounds=function(t,e){if(!(!t||typeof t.isEmpty=="function"&&t.isEmpty())){var o=t.getSouthWest(),s=t.getNorthEast(),u=typeof e=="number"?{padding:e}:e||{},_=u.padding!==void 0?u.padding:40,b=[[o.lng(),o.lat()],[s.lng(),s.lat()]],h=Number.isFinite(Number(u.minZoom)),g=Number.isFinite(Number(u.maxZoom));if(!h&&!g){this._map.stop(),this._map.fitBounds(b,{padding:_,duration:u.duration!==void 0?u.duration:450,essential:!0});return}var k=this._map.cameraForBounds(b,{padding:_});if(k){var m=k.zoom;h&&(m=Math.max(Number(u.minZoom),m)),g&&(m=Math.min(Number(u.maxZoom),m)),this._map.stop(),this._map.easeTo({center:k.center,zoom:m,duration:u.duration!==void 0?u.duration:450,essential:!0})}}};function ft(t){var e=x(t.position),o=document.createElement("button");o.type="button",o.className="asl-maplibre-marker",o.title=t.title||"";var s=document.createElement("img");if(s.className="asl-maplibre-marker-image",s.alt="",s.draggable=!1,o.appendChild(s),t.label&&t.label.text){var u=document.createElement("span");u.textContent=t.label.text,u.style.color=t.label.color||"",o.appendChild(u)}this._element=o,this._image=s,this._label=u||null,this._icon=t.icon||null,this.applyIcon_(this._icon),this._position=new ASLLatLng(e.lat,e.lng),this._marker=new maplibregl.Marker({element:o,anchor:"bottom",draggable:!!t.draggable}).setLngLat([e.lng,e.lat]),this._map=null,this._visible=!0;var _=this;o.addEventListener("click",function(b){b.stopPropagation(),ASLEvent.trigger(_,"click",b)}),this._marker.on("dragend",function(){var b=_._marker.getLngLat();_._position=new ASLLatLng(b.lat,b.lng),ASLEvent.trigger(_,"dragend",{latLng:_._position})}),t.map&&this.setMap(t.map)}ft.prototype.getPosition=function(){return this._position},ft.prototype.addListener=function(t,e){return ASLEvent.addListener(this,t,e)},ft.prototype.setPosition=function(t){var e=x(t);this._position=new ASLLatLng(e.lat,e.lng),this._marker.setLngLat([e.lng,e.lat])},ft.prototype.getMap=function(){return this._map},ft.prototype.setMap=function(t){if(!t){this._marker.remove(),this._map=null;return}this._map!==t&&this._marker.addTo(t._map),this._map=t},ft.prototype.setVisible=function(t){t=!!t,this._visible!==t&&(this._visible=t,this._element.style.display=t?"":"none")},ft.prototype.setAnimation=function(t){var e=!!(t&&window.google&&t===ASLAnimation.BOUNCE);this._element.classList.toggle("asl-maplibre-marker-bounce",e)},ft.prototype.getIcon=function(){return this._icon},ft.prototype.setLabel=function(t){var e=t&&typeof t=="object"?t.text:t;if(e==null||e===""){this._label&&this._label.parentNode&&this._label.parentNode.removeChild(this._label),this._label=null;return}this._label||(this._label=document.createElement("span"),this._element.appendChild(this._label)),this._label.textContent=String(e),this._label.style.color=t&&t.color?t.color:""},ft.prototype.applyIcon_=function(t){var e=typeof t=="string"?t:t&&t.url,o=t&&typeof t=="object"?t.scaledSize:null,s=o&&Number(typeof o.width=="function"?o.width():o.width),u=o&&Number(typeof o.height=="function"?o.height():o.height);e?this._image.src=e:this._image.removeAttribute("src"),this._image.style.width=s>0?s+"px":"",this._image.style.height=u>0?u+"px":""},ft.prototype.setIcon=function(t){this._icon=t||null,this.applyIcon_(this._icon)},ft.prototype.setZIndex=function(t){this._element.style.zIndex=t==null?"":t};function ht(t,e,o){this.map_=t,this.options_=o||{},this.markers_=[],this.sourceId_="asl-maplibre-clusters",this.ready_=!1,this.visibilityUpdateId_=null,this.data_={type:"FeatureCollection",features:[]};var s=this;t._map.isStyleLoaded()?this.setup_():t._map.once("load",function(){s.setup_()}),t._map.on("moveend",function(){s.scheduleVisibilityUpdate_()}),t._map.on("idle",function(){s.scheduleVisibilityUpdate_()}),t._map.on("sourcedata",function(u){u.sourceId===s.sourceId_&&s.scheduleVisibilityUpdate_()}),e&&e.length&&this.addMarkers(e)}ht.prototype.setup_=function(){if(!(this.ready_||this.map_._map.getSource(this.sourceId_))){var t=this.map_._map,e=this.sourceId_,o=this,s=window.getComputedStyle(this.map_._element.closest(".asl-cont")||this.map_._element).getPropertyValue("--sl-primary").trim()||"#4a90e2";t.addSource(e,{type:"geojson",data:this.data_,cluster:!0,clusterMa
14xZoom:parseInt(this.options_.maxZoom)||9,clusterRadius:parseInt(this.options_.gridSize)||90}),t.addLayer({id:e+"-circles",type:"circle",source:e,filter:["has","point_count"],paint:{"circle-color":s,"circle-opacity":.9,"circle-radius":["step",["get","point_count"],15,10,20,50,25],"circle-stroke-color":"#ffffff","circle-stroke-width":2}}),t.addLayer({id:e+"-counts",type:"symbol",source:e,filter:["has","point_count"],layout:{"text-field":["get","point_count_abbreviated"],"text-size":12},paint:{"text-color":"#ffffff"}}),t.on("click",e+"-circles",function(u){var _=u.features&&u.features[0];if(_){var b=t.getSource(e),h=function(g){t.easeTo({center:_.geometry.coordinates,zoom:g,duration:400}),typeof o.options_.onClusterClick=="function"&&o.options_.onClusterClick(u,_,o.map_)};b.getClusterExpansionZoom(_.properties.cluster_id).then(h).catch(function(g){console.error("Unable to expand MapLibre cluster.",g)})}}),t.on("mouseenter",e+"-circles",function(){t.getCanvas().style.cursor="pointer"}),t.on("mouseleave",e+"-circles",function(){t.getCanvas().style.cursor=""}),this.ready_=!0,t.getSource(e).setData(this.data_),this.scheduleVisibilityUpdate_()}},ht.prototype.setData_=function(){this.data_={type:"FeatureCollection",features:this.markers_.map(function(e,o){var s=x(e.getPosition());return e._clusterId=String(o),{type:"Feature",id:o,properties:{marker_id:String(o)},geometry:{type:"Point",coordinates:[s.lng,s.lat]}}})};var t=this.ready_&&this.map_._map.getSource(this.sourceId_);t&&(t.setData(this.data_),this.scheduleVisibilityUpdate_())},ht.prototype.scheduleVisibilityUpdate_=function(){if(this.visibilityUpdateId_===null){var t=this,e=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(o){return window.setTimeout(o,16)};this.visibilityUpdateId_=e(function(){t.visibilityUpdateId_=null,t.updateMarkerVisibility_()})}},ht.prototype.updateMarkerVisibility_=function(){if(!(!this.ready_||!this.markers_.length)){for(var t={},e=this.map_._map.querySourceFeatures(this.sourceId_),o=0;o<e.length;o++)!e[o].properties.cluster&&e[o].properties.marker_id!==void 0&&(t[String(e[o].properties.marker_id)]=!0);for(var s=0;s<this.markers_.length;s++){var u=this.markers_[s],_=!!t[u._clusterId];_?(u.getMap()!==this.map_&&u.setMap(this.map_),u.setVisible(!0)):(u.setVisible(!1),u.getMap()&&u.setMap(null))}}},ht.prototype.getExpansionZoomForMarker=function(t){var e=this.ready_&&this.map_._map.getSource(this.sourceId_),o=t&&t._clusterId;if(!e||o===void 0||o===null)return Promise.resolve(null);var s=this.map_._map.querySourceFeatures(this.sourceId_).filter(function(b){return b.properties&&b.properties.cluster&&b.properties.cluster_id!==void 0}),u={},_=s.reduce(function(b,h){var g=h.properties.cluster_id;return u[g]||(u[g]=!0,b.push(e.getClusterLeaves(g,h.properties.point_count||10,0).then(function(k){var m=k.some(function(H){return String(H.properties.marker_id)===String(o)});return m?e.getClusterExpansionZoom(g):null}).catch(function(){return null}))),b},[]);return Promise.all(_).then(function(b){var h=b.filter(function(g){return Number.isFinite(Number(g))});return h.length?Math.max.apply(Math,h.map(Number)):null})},ht.prototype.clearMarkers=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].setMap(null);this.markers_=[],this.setData_()},ht.prototype.addMarkers=function(t){this.markers_=(t||[]).filter(Boolean);for(var e=0;e<this.markers_.length;e++)this.markers_[e].setVisible(!1),this.markers_[e].getMap()&&this.markers_[e].setMap(null);this.setData_()};function It(t){this._options=t||{},this._map=null,this._id="asl-radius-"+Math.random().toString(36).slice(2),this._options.map&&this.setMap(this._options.map)}It.prototype.getBounds=function(){var t=x(this._options.center),e=Number(this._options.radius)||0,o=e/111320,s=e/(111320*Math.max(Math.cos(t.lat*Math.PI/180),.01));return new ASLLatLngBounds(new ASLLatLng(t.lat-o,t.lng-s),new ASLLatLng(t.lat+o,t.lng+s))},It.prototype.geometry_=function(){for(var t=x(this._options.center),e=Number(this._options.radius)||0,o=[],s=t.lat*Math.PI/180,u=0;u<=64;u++){var _=u*Math.PI*2/64,b=t.lat+e/111320*Math.sin(_),h=t.lng+e/(111320*Math.max(Math.cos(s),.01))*Math.cos(_);o.push([h,b])}return{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[o]}}},It.prototype.render_=function(){if(!(!this._map||!this._map._map.isStyleLoaded())){var t=this._map._map,e=t.getSource(this._id),o=this.geometry_();if(e){e.setData(o);return}t.addSource(this._id,{type:"geojson",data:o}
14),t.addLayer({id:this._id+"-fill",type:"fill",source:this._id,paint:{"fill-color":this._options.fillColor||"#FFFF00","fill-opacity":Number(this._options.fillOpacity==null?.2:this._options.fillOpacity)}}),t.addLayer({id:this._id+"-stroke",type:"line",source:this._id,paint:{"line-color":this._options.strokeColor||"#FFFF00","line-opacity":Number(this._options.strokeOpacity==null?.7:this._options.strokeOpacity),"line-width":Number(this._options.strokeWeight||2)}})}},It.prototype.setOptions=function(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this._options[e]=t[e]);this.render_()},It.prototype.setMap=function(t){if(!t){if(this._map){var e=this._map._map;e.getLayer(this._id+"-stroke")&&e.removeLayer(this._id+"-stroke"),e.getLayer(this._id+"-fill")&&e.removeLayer(this._id+"-fill"),e.getSource(this._id)&&e.removeSource(this._id)}this._map=null;return}this._map=t;var o=this;t._map.isStyleLoaded()?this.render_():t._map.once("load",function(){o.render_()})};function mt(t){t=t||{},this._options=t,this._popup=new maplibregl.Popup({anchor:"bottom",offset:Number(t.markerHeight)||35,closeButton:!0,closeOnClick:!1,className:"infoBox asl-maplibre-infobox",maxWidth:(Number(t.width)||320)+"px"}),this._content=null,this._position=null,this._map=null,this._zIndex=null,this._closingProgrammatically=!1;var e=this;this._popup.on("close",function(){e._closingProgrammatically||ASLEvent.trigger(e,"closeclick")})}mt.prototype.applyPresentation_=function(){var t=this._popup.getElement();if(t){t.style.setProperty("--asl-infobox-width",(Number(this._options.width)||320)+"px");var e=t.querySelector(".maplibregl-popup-close-button");e&&(e.innerHTML='<i aria-hidden="true" class="icon-cancel-1"></i>',e.style.removeProperty("background-image"),e.style.margin=this._options.closeBoxMargin||"")}},mt.prototype.setContent=function(t){this._content=t,ASLEvent.trigger(this,"content_changed")},mt.prototype.getContent=function(){return this._content},mt.prototype.setPosition=function(t){if(this._position=t,this.getVisible()){var e=x(t);this._popup.setLngLat([e.lng,e.lat])}ASLEvent.trigger(this,"position_changed")},mt.prototype.getPosition=function(){return this._position},mt.prototype.open=function(t,e){var o=e?e.getPosition():this._position,s=x(o);this._map=t,this._position=o,this._content&&this._content.nodeType?this._popup.setDOMContent(this._content):this._popup.setHTML(this._content==null?"":String(this._content)),this._popup.setLngLat([s.lng,s.lat]).addTo(t._map),this.applyPresentation_(),this.setZIndex(this._zIndex),ASLEvent.trigger(this,"domready")},mt.prototype.getVisible=function(){return this._popup.isOpen()},mt.prototype.setVisible=function(t){t?this._map&&this._position&&this.open(this._map):this.close()},mt.prototype.show=function(){this.setVisible(!0)},mt.prototype.hide=function(){this.setVisible(!1)},mt.prototype.getMap=function(){return this._map},mt.prototype.setZIndex=function(t){this._zIndex=t;var e=this._popup.getElement();e&&(e.style.zIndex=t==null?"":t),ASLEvent.trigger(this,"zindex_changed")},mt.prototype.getZIndex=function(){return this._zIndex},mt.prototype.setOptions=function(t){t=t||{},Object.prototype.hasOwnProperty.call(t,"content")&&this.setContent(t.content),Object.prototype.hasOwnProperty.call(t,"position")&&this.setPosition(t.position),Object.prototype.hasOwnProperty.call(t,"zIndex")&&this.setZIndex(t.zIndex),Object.prototype.hasOwnProperty.call(t,"visible")&&this.setVisible(t.visible)},mt.prototype.close=function(){this._closingProgrammatically=!0,this._popup.remove(),this._closingProgrammatically=!1,this._map=null},asl_locator.isMapLibre=c,asl_locator.MapLibreMap=V,asl_locator.MapLibreMarker=ft,asl_locator.MapLibreClusterer=ht,asl_locator.MapLibreCircle=It,asl_locator.MapLibreInfoWindow=mt,asl_locator.searchProviders={},asl_use_new_place_api=function(t){var e=t||asl_configuration||{};return e.search_type=="4"},asl_locator.resolveSearchProvider=function(t){return t=String(t||asl_configuration.search_provider||"automatic").toLowerCase(),t==="auto"&&(t="automatic"),t==="automatic"&&(asl_configuration.search_type=="0"||asl_configuration.search_type=="3"?t="google":asl_locator.isMapLibre&&asl_locator.isMapLibre()?asl_configuration.geoapify_api_key?t="geoapify":asl_configuration.mapbox_access_token?t="mapbox":t="disabled":t="google"),t},asl_locator.registerSearchProvider=function(t,e){asl_locator.searchProviders[t]=e};function Dt(t,e){return asl_locator.createSearchLatLng?asl_locator.createSearchLatLng(Number(t),Number(e)):new ASLLatLng(Number(t),Number(e))}function kt(t){return t?(Array.isArray(t)||(t=String(t).split(",")),t.map(function(e){return String(e).trim().toLowerCase()}).filter(function(e,o,s){return/^[a-z]{2}$/.test(e)&&s.indexOf(e)===o})):[]}function Nt(t){if(!t||t.length!==4)return null;var e=Dt(t[1],t[0]),o=Dt(t[3],t[2]);return asl_locator.createSearchBounds?asl_locator.createSearchBounds(e,o):new ASLLatLngBounds(e,o)}function Ut(t,e,o){return t?{long_name:String(t),short_name:String(e||t),types:[o]}:null}function ie(t){return[Ut(t.city||t.town||t.village||t.suburb,null,"locality"),Ut(t.state,t.state_code,"administrative_area_level_1"),Ut(t.country,t.country_code&&t.country_code.toUpperCase(),"country"),Ut(t.postcode,null,"postal_code")].filter(
14Boolean)}function Qt(t){var e=t.properties||{},o=e.context||{};function s(u,_,b){var h=o[u]||{};return Ut(h.name||h.text,h[b]||h.short_code,_)}return[s("place","locality"),s("locality","locality"),s("region","administrative_area_level_1","region_code"),s("country","country","country_code"),s("postcode","postal_code")].filter(Boolean)}function se(t,e){return fetch(t,{signal:e}).then(function(o){if(!o.ok)throw new Error("Address API request failed with status "+o.status);return o.json()})}asl_locator.registerSearchProvider("google",{geocode:function(t,e){if(t.bounds&&asl_shared_uses_maplibre()&&asl_has_google_maps()&&typeof t.bounds.getSouthWest=="function"){var o=t.bounds.getSouthWest(),s=t.bounds.getNorthEast();t=Object.assign({},t,{bounds:new google.maps.LatLngBounds({lat:Number(o.lat()),lng:Number(o.lng())},{lat:Number(s.lat()),lng:Number(s.lng())})})}new google.maps.Geocoder().geocode(t,e)},search:function(t,e,o,s){return google.maps.importLibrary("places").then(function(u){if(o&&o.aborted)throw new DOMException("Aborted","AbortError");s.googleSessionToken_||(s.googleSessionToken_=new u.AutocompleteSessionToken);var _={input:t,includedPrimaryTypes:["geocode"],language:asl_configuration.language||"en-US",sessionToken:s.googleSessionToken_};return e.countries.length&&(_.includedRegionCodes=e.countries.map(function(b){return b.toUpperCase()})),e.proximity&&(_.locationBias={center:e.proximity,radius:5e4}),u.AutocompleteSuggestion.fetchAutocompleteSuggestions(_).then(function(b){return(b.suggestions||[]).map(function(h){return{label:h.placePrediction.text.toString(),raw:h,provider:"google"}})})})},resolve:function(t,e){var o=t.raw&&t.raw.placePrediction;if(!o||!o.toPlace)return Promise.reject(new Error("Invalid Google place prediction."));var s=o.toPlace({sessionToken:e.googleSessionToken_});return s.fetchFields({fields:["formattedAddress","types","location","viewport","addressComponents","id"]}
14).then(function(){return e.googleSessionToken_=null,{formatted_address:s.formattedAddress||t.label,formattedAddress:s.formattedAddress||t.label,place_id:s.id||o.placeId||null,placeId:s.id||o.placeId||null,geometry:{location:s.location,viewport:s.viewport||null},address_components:(s.addressComponents||[]).map(function(u){return{long_name:u.longText,short_name:u.shortText||u.longText,types:u.types||[]}}),types:s.types||[],properties:s,provider:"google"}})}}),asl_locator.registerSearchProvider("nominatim",{geocode:function(t,e){var o=kt(asl_get_country_restrictions(asl_configuration));o.length||(o=kt(t.componentRestrictions&&t.componentRestrictions.country)),window.ASLNominatim.search(t.address||"",o).then(function(s){var u=s.map(function(_){var b=_.boundingbox;return{formatted_address:_.display_name,place_id:_.place_id,geometry:{location:Dt(_.lat,_.lon),viewport:b?Nt([+b[2],+b[0],+b[3],+b[1]]):null},address_components:ie(_.address||{}),provider:"nominatim"}});e(u,u.length?"OK":"ZERO_RESULTS")}).catch(function(s){console.error("Nominatim geocoding failed.",s),e([],"ERROR")})}}),asl_locator.registerSearchProvider("disabled",{geocode:function(t,e){e([],"PROVIDER_NOT_CONFIGURED")}}),asl_locator.showSearchProviderAlert=function(t){var e=t&&t.jquery?t:n(t);if(!(!e.length||e.find(".asl-search-provider-alert").length)){var o=asl_configuration.words&&asl_configuration.words.search_provider_missing||"Address search is unavailable because no geocoding provider is configured.",s=n('<div class="alert alert-warning asl-search-provider-alert" role="alert"></div>').text(o);
14e.prepend(s),window.setTimeout(function(){s.fadeOut(200,function(){s.remove()})},7e3)}},asl_locator.registerSearchProvider("geoapify",{search:function(t,e,o){var s=asl_configuration.geoapify_api_key,u=kt(e.countries);if(!s)return Promise.reject(new Error("Geoapify API key is missing."));var _=new URLSearchParams({text:t,apiKey:s,limit:String(e.limit||5),format:"json"});u.length&&_.set("filter","countrycode:"+u.join(",")),e.proximity&&_.set("bias","proximity:"+e.proximity.lng+","+e.proximity.lat);var b=e.autocomplete===!1?"search":"autocomplete",h="https://api.geoapify.com/v1/geocode/"+b+"?"+_.toString();return se(h,o).then(function(g){return(g.results||[]).map(function(k){var m=k.bbox?[k.bbox.lon1,k.bbox.lat1,k.bbox.lon2,k.bbox.lat2]:null;return{formatted_address:k.formatted||k.address_line1||t,place_id:k.place_id||null,geometry:{location:Dt(k.lat,k.lon),viewport:Nt(m)},address_components:ie(k),properties:k,provider:"geoapify"}})})}}),asl_locator.registerSearchProvider("mapbox",{search:function(t,e,o){var s=asl_configuration.mapbox_access_token,u=kt(e.countries);if(!s)return Promise.reject(new Error("Mapbox access token is missing."));var _=new URLSearchParams({q:t,access_token:s,limit:String(e.limit||5),autocomplete:e.autocomplete===!1?"false":"true"});u.length&&_.set("country",u.join(",")),e.proximity&&_.set("proximity",e.proximity.lng+","+e.proximity.lat);var b="https://api.mapbox.com/search/geocode/v6/forward?"+_.toString();return se(b,o).then(function(h){return(h.features||[]).map(function(g){var k=g.properties||{},m=k.coordinates||{},H=g.geometry&&g.geometry.coordinates||[m.longitude,m.latitude];return{formatted_address:k.full_address||k.name||g.place_name||g.name||t,place_id:g.id||k.mapbox_id||null,geometry:{location:Dt(H[1],H[0]),viewport:Nt(g.bbox||k.bbox)},address_components:Qt(g),properties:g,provider:"mapbox"}}).filter(function(g){return!isNaN(g.geometry.location.lat())&&!isNaN(g.geometry.location.lng())})})}}),["geoapify","mapbox"].forEach(function(t){asl_locator.searchProviders[t].geocode=function(e,o){var s=e&&e.componentRestrictions&&e.componentRestrictions.country,u=kt(asl_get_country_restrictions(asl_configuration)),_=u.length?u:kt(s);this.search(e&&e.address||"",{autocomplete:!1,countries:_||[],limit:5}).then(function(b){o(b,b.length?"OK":"ZERO_RESULTS")}).catch(function(b){console.error(t+" geocoding failed.",b),o([],"ERROR")})}}),asl_locator.getSearchProvider=function(){return asl_locator.searchProviders[asl_locator.resolveSearchProvider()]||asl_locator.searchProviders.google},asl_locator.AddressAPI=function(t,e){this.input=t,this.options=e||{},this.listeners=[],this.boundEvents=[],this.providerName=asl_locator.resolveSearchProvider(this.options.provider),this.provider=asl_locator.searchProviders[this.providerName],this.abortController=null,this.timer=null,this.menu=null,this.place=null,!(!t||!this.provider||this.providerName==="disabled")&&this.providerName!=="nominatim"&&(this.providerName==="google"&&!asl_use_new_place_api(asl_configuration)?this.initGoogle_():this.initRemote_())},asl_locator.AddressAPI.prototype.addPlaceListener=function(t){return this.listeners.push(t),this},asl_locator.AddressAPI.prototype.getPlace=function(){return this.place},asl_locator.AddressAPI.prototype.bindTo=function(t,e){t==="bounds"&&(this.options.map=e)},asl_locator.AddressAPI.prototype.emit_=function(t){this.place=t;for(var e=0;e<this.listeners.length;e++)this.listeners[e].call(this,t);typeof this.options.onSelect=="function"&&this.options.onSelect(t)},asl_locator.AddressAPI.prototype.initGoogle_=function(){var t=this;this.instance=asl_create_autocomplete_instance(this.input,this.options.googleOptions||{},this.options.newGoogleOptions||{},asl_configuration);var e=this.options.countries||asl_get_country_restrictions(asl_configuration);e.length&&asl_apply_country_limits(this.instance,e,asl_configuration),this.options.fields&&this.instance&&typeof this.instance.setFields=="function"&&this.instance.setFields(this.options.fields),this.options.map&&!asl_locator.isMapLibre()&&this.instance&&typeof this.instance.bindTo=="function"&&!asl_use_new_place_api(asl_configuration)&&this.instance.bindTo("bounds",this.options.map),asl_add_place_listener(this.instance,function(){var o=asl_normalize_place_result(this,t.input.value,asl_configuration);o&&(o.provider="google",t.emit_(o))},asl_configuration)},asl_locator.AddressAPI.prototype.getContext_=function(t){var e={autocomplete:t,countries:kt(this.options.countries||asl_get_country_restrictions(asl_configuration)),limit:5},o=this.options.map;if(o&&typeof o.getCenter=="function"){var s=o.getCenter();e.proximity={lat:typeof s.lat=="function"?s.lat():s.lat,lng:typeof s.lng=="function"?s.lng():s.lng}}return e},asl_locator.AddressAPI.prototype.initRemote_=function(){var t=this;if(!window.ASLSearchAutocomplete)throw new Error("ASL autocomplete widget is not loaded.");this.widget=new window.ASLSearchAutocomplete(this.input,{fetchSuggestions:function(e,o){return t.provider.search(e,t.getContext_(!0),o,t)},resolveSuggestion:function(e){return t.provider.resolve?t.provider.resolve(e,t):e},onPlaceSelected:function(e){t.emit_(e)}})},asl_locator.AddressAPI.prototype.fetch_=function(t){var e=this;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.provider.search(t,this.getContext_(!0),this.abortController.signal).then(function(o){e.input.value.trim()===t&&e.render_(o)}).catch(function(o){o.name!=="AbortError"&&console.error(e.providerName+" autocomplete failed.",o)})},asl_locator.AddressAPI.prototype.render_=function(t){var e=this;this.menu.innerHTML="",t.forEach(function(o){var s=document.createElement("button");s.type="button",s.textContent=o.formatted_address,s.style.cssText="display:block;width:100%;padding:9px 12px;border:0;border-bottom:1px solid #eee;background:#fff;text-align:left;cursor:pointer",s.addEventListener("mousedown",function(u){u.preventDefault(),e.input.value=o.formatted_address,e.hide_(),e.emit_(o)}),e.menu.appendChild(s)}),this.menu.style.display=t.length?"block":"none"},asl_locator.AddressAPI.prototype.hide_=function(){this.menu&&(this.menu.style.display="none")},asl_locator.AddressAPI.prototype.geocode=function(t,e){this.provider.geocode(t,e)},asl_locator.AddressAPI.prototype.geocodeText=function(t,e){this.provider.geocode({address:t},e)},asl_locator.AddressAPI.prototype.clear=function(){this.input.value="",this.place=null,this.hide_()},asl_locator.AddressAPI.prototype.destroy=function(){clearTimeout(this.timer),this.abortController&&this.abortController.abort(),this.widget&&(this.widget.destroy(),this.widget=null);for(var t=0;t<this.boundEvents.length;t++)this.input.removeEventListener(this.boundEvents[t][0],this.boundEvents[t][1]);this.menu&&this.menu.parentNode&&this.menu.parentNode.removeChild(this.menu)},asl_locator.Panel=function(t,e){var o=this;this.el_=n(t),this._cont=e.container,this.el_.addClass("asl_locator-panel"),this.settings_=n.extend({locationSearch:!0,locationSearchLabel:"Enter Location/ZipCode: ",featureFilter:!0,directions:!0,view:null},e),this.directionsRenderer_=null,this.directionsService_=null,e.view._panel=this,this.init_();var s=o.get("view");this.filter_=o._cont.find(".header-search"),asl_configuration.template=="6"&&asl_configuration.advance_filter&&s.template_6_setup(),o._cont.find(".asl-print-btn").on("click",function(u){var _="asl-list";o._cont.find(".panel-inner").css("display")=="none"&&(_="asl-rendered-dir",o._cont.find("#asl-list").find(".rendered-directions").attr("id",_));var b={printable:_,type:"html",css:asl_configuration.PLUGIN_URL+"public/css/print.css"};asl_configuration.print_header&&(b.header=asl_configuration.print_header),printJS(b)}),this.lead_form_modal()},asl_locator.Panel=asl_locator.Panel,asl_locator.Panel.prototype=Object.create(ASLMVCObject.prototype),asl_locator.Panel.prototype.constructor=asl_locator.Panel,asl_locator.Panel.prototype.init_=function(){var t=this;this.itemCache_={},this.settings_.view&&this.set("view",this.settings_.view);var e=t.get("view"),o=e.getMap();if(this.filter_=e._cont.find(".header-search"),asl_configuration.cluster){var s=asl_locator.isMapLibre()?asl_locator.MapLibreClusterer:MarkerClusterer;
14asl_locator.marker_clusters=new s(o,[],{maxZoom:parseInt(asl_configuration.cluster_max_zoom)||9,gridSize:parseInt(asl_configuration.cluster_grid_size)||90,styles:[{width:30,height:30,className:"asl-cluster-1"},{width:40,height:40,className:"asl-cluster-2"},{width:50,height:50,className:"asl-cluster-3"}],clusterClass:"asl-cluster",onClusterClick:function(R,X,j){asl_configuration.sort_by_bound&&ASLEvent.addListenerOnce(j,"idle",function(){e.scheduleRefreshView()}),asl_locator.hook_event({type:"cluster_click",data:{event:R,cluster:X,map:j}})}})}if(this.settings_.locationSearch){if(this.locationSearch_=this.filter_,asl_locator.getSearchProvider()){var u=t._cont.find("#auto-complete-search,.asl-search-address")[0];(asl_configuration.search_type=="0"||asl_configuration.search_type=="4")&&this.initAutocomplete_(u),asl_configuration.search_type=="2"&&this.geoCoder(u,null,!0),t._cont.find(".asl-reset-btn").on("click",function(R){e.clear_search(u),u&&n(u).parent().find(".asl-clear-btn").addClass("hide"),e.reset_all(null,!0)})}else this.filter_.submit(function(){t.searchPosition(n("input",t.locationSearch_).val())});this.filter_.submit(function(){return!1}),ASLEvent.addListener(this,"geocode",function(R){if(t.searchPositionTimeout_&&window.clearTimeout(t.searchPositionTimeout_),!R.geometry){t.searchPosition(R.name);return}this.directionsFrom_=R.geometry.location,t.directionsVisible_&&t.renderDirections_();var X=t.get("view");X.highlight(null);var j=X.getMap();R.geometry.viewport?j.fitBounds(R.geometry.viewport):(j.setCenter(R.geometry.location),asl_configuration.zoom_li&&j.setZoom(parseInt(asl_configuration.zoom_li))),X.refreshView(),t.listenForStoresUpdate_()})}var _=this;this.featureFilter_=e._cont.find("#filter-options"),this.featureFilter_.show(),asl_configuration.show_categories||e._cont.find(".sl-category-filter.drop_box_filter").remove(),asl_configuration.advance_filter&&e._cont.find(".asl-advance-filters").removeClass("hide");var b=e._cont.find("#asl-open-close");asl_configuration.time_switch&&b[0]&&(b[0].checked=asl_configuration.show_opened,b.on("change",function(R){asl_configuration.show_opened=this.checked,t.get("view").refreshView()}),e._cont.find(".Status_filter").addClass("asl-block"));var h=this.get("view").getViewFeatures().asList(),g=this.featureFilter_.find(".inner-filter");this.storeList_=this.el_.find(".sl-list"),this.SListCont_=this.el_.find(".asl-panel-inner"),this.mainPanel=this.el_.find(".sl-main-cont-box"),h=asl_configuration.cat_sort=="name_"?asl_engine.helper.sortBy(h,"name_",!0):asl_engine.helper.sortBy(h,"order");var k=asl_configuration.single_cat_select=="1"?"":'multiple="multiple"';if(asl_configuration.template=="2"&&asl_configuration.advance_filter&&asl_configuration.show_categories){for(var m=e._cont.find(".asl-categories-panel"),H=m.find(".asl-categories-list"),Q=asl_configuration.URL+"svg/",ot=0,T=h.length;ot<T;ot++){var I=h[ot],q=n('<div class="round-box" data-c="'+asl_categories[I.id_].len+'" data-id="'+I.id_+'"><div class="iner-box"><div class="box-icon"> <span style="background-image:url('+Q+I.img_+')"></span></div><div class="cat-name"><span>'+I.getDisplayName()+"<br><span>("+asl_categories[I.id_].len+")</span></span></div></div></div>");H.append(q),q.data("feature",I)}e._cont.find(".Num_of_store .back-button").on("click",function(R){var X=t.get("featureFilter");for(var j in X.array_)X.array_.pop();t.get("view").refreshView(),m.removeClass("hide");var z=new ASLLatLng(asl_configuration.default_lat,asl_configuration.default_lng);c()?o.panToWithOffset(z,0,0,null,parseInt(asl_configuration.zoom)):(o.panTo(z),o.setZoom(parseInt(asl_configuration.zoom)))}),H.find(".round-box").on("click",function(R){var X=n(this),j=t.get("featureFilter");for(var z in j.array_)j.array_.pop();var G=X.data("feature");j.add(G),t.set("featureFilter",j),t.get("view").refreshView(),asl_configuration.category_bound&&e.fitBound(null),m.addClass("hide"),t.el_.removeClass("hide").animate({scrollTop:0},0)})}else{var at=asl_configuration.filter_ddl,it=asl_configuration.brand_special_cascade==="1"||asl_configuration.brand_special_cascade===!0||asl_configuration.brand_special_cascade==="true";asl_engine.controls={},asl_engine.select_controls={};
14var vt=function(R){return!R||R=="0"?[]:(Array.isArray(R)||(R=[R]),R.map(function(X){return String(X)}).filter(function(X){return X&&X!="0"}))},Lt=function(R,X,j){for(var z=asl_configuration.filter_sort?asl_configuration.filter_sort:"name",G=asl_engine.helper.sortBy(Object.values(asl_attributes[X]),z,z!="ordr"),St=0,bt=G.length;St<bt;St++){var Et=G[St];if(it&&X=="special"&&j&&j.length){var Ft=Et.brand_id?String(Et.brand_id):"";if(!Ft||Ft=="0"||j.indexOf(Ft)==-1)continue}var Bt=n('<option value="'+Et.id+'">'+Et.name+"</option>");Bt.data("feature",Et),R.append(Bt)}},Ot=function(){if(!(!it||!asl_engine.controls.brand||!asl_engine.controls.special||!asl_attributes.special)){var R=asl_engine.controls.special,X=asl_configuration.words.all_special||asl_configuration.words.none,j=vt(R.val()),z=vt(asl_engine.controls.brand.val()),G=[];R.empty(),asl_configuration.single_cat_select=="1"&&R.append(n('<option value="0">'+X+"</option>")),Lt(R,"special",z),R.find("option").each(function(){G.push(String(n(this).val()))}),j=j.filter(function(St){return G.indexOf(St)!=-1}),asl_configuration.single_cat_select=="1"?R.val(j.length?j[0]:"0"):R.val(j),asl_engine.select_controls.special&&R.multiselect("rebuild")}};if(at){for(var dt in at){var rt=at[dt];e._cont.find("#"+rt+"_filter").append('<select data-type="'+rt+'" id="asl-'+rt+'" '+k+' style="width:350px"></select>');var gt=e._cont.find("#asl-"+rt);asl_engine.controls[rt]=gt;var zt=asl_configuration.words["all_"+rt]||asl_configuration.words.none;if(asl_configuration.single_cat_select=="1"){var q=n('<option value="0">'+zt+"</option>");gt.append(q)}if(Lt(gt,rt,[]),asl_configuration["select_"+rt]){var y=asl_configuration["select_"+rt];y=y.split(",");var S=y.length==1?y[0]:y;gt.val(S)}asl_engine.select_controls[rt]=gt.multiselect({enableFiltering:asl_configuration.ddl_search,disableIfEmpty:!0,enableCaseInsensitiveFiltering:asl_configuration.ddl_search,enableFiltering:asl_configuration.ddl_search,nonSelectedText:asl_configuration.words.select_option,filterPlaceholder:asl_configuration.words.search||"Search",nonSelectedText:zt||"None Selected",nSelectedText:asl_configuration.words.selected||"selected",allSelectedText:zt||"All selected",includeSelectAllOption:!1,numberDisplayed:1,maxHeight:asl_configuration.ddl_max_height?parseInt(asl_configuration.ddl_max_height):250,onChange:function(R,X){var j=this.$select.val(),z=this.$select.data("type");it&&z=="brand"&&Ot(),e.refreshView(),asl_configuration.category_bound&&(e.fitBound(null),console.log("File: panel.js, Line: 486"))}})}it&&Ot()}if(asl_configuration.show_categories){var L=e._cont.find("#categories_filter");if(L.append('<select id="asl-categories" '+k+' style="width:350px"></select>'),t.$category_ddl=e._cont.find("#asl-categories"),asl_configuration.single_cat_select=="1"){var q=n('<option value="0">'+asl_configuration.words.all_categories+"</option>");t.$category_ddl.append(q)}asl_configuration.select_category&&(asl_configuration.select_category=asl_configuration.select_category.split(","));for(var ot=0,T=h.length;ot<T;ot++){var I=h[ot],q=n('<option value="'+I.id_+'">'+I.getDisplayName()+"</option>");if(q.data("feature",I),t.$category_ddl.append(q),asl_configuration.select_category&&jQuery.inArray(I.id_,asl_configuration.select_category)!=-1){var v=t.get("featureFilter");v.add(I),t.set("featureFilter",v)}}if(asl_configuration.select_category){var S=asl_configuration.select_category.length==1?asl_configuration.select_category[0]:asl_configuration.select_category;t.$category_ddl.val(S)}var M={enableFiltering:asl_configuration.ddl_search,includeFilterClearBtn:!1,disableIfEmpty:!0,enableCaseInsensitiveFiltering:asl_configuration.ddl_search,nonSelectedText:asl_configuration.words.select_option,filterPlaceholder:asl_configuration.words.search||"Search",nonSelectedText:asl_configuration.words.all_categories||"None Selected",nSelectedText:asl_configuration.words.selected||"selected",allSelectedText:asl_configuration.words.all_categories||"All selected",includeSelectAllOption:!1,numberDisplayed:1,maxHeight:asl_configuration.ddl_max_height?parseInt(asl_configuration.ddl_max_height):250,onChange:function(R,X){var j=t.get("featureFilter");
14if(asl_configuration.single_cat_select=="1"){for(var z in j.array_)j.array_.pop();var G=R.data("feature");j.add(G),t.set("featureFilter",j)}else{var G=R.data("feature");t.toggleFeatureFilter_(G)}asl_configuration.has_child_categories&&t._make_sub_categories(j.array_),e.halt_fetch=!1,e.refreshView(),asl_configuration.category_bound&&e.fitBound(null),asl_locator.hook_event({type:"category",data:j.array_})}},w=null,E=null;if(asl_configuration.image_filter){var w=function(j){if(e.data_.flat_categories[j.value])if(e.data_.flat_categories[j.value].icon){var z=asl_configuration.URL+"svg/"+e.data_.flat_categories[j.value].icon,G=e.data_.flat_categories[j.value].name;return'<img src="'+z+'" alt="'+G+'" >'+(asl_configuration.image_filter_title?'<span class="sl-img-filter-title">'+G+"</span>":"")}else return e.data_.flat_categories[j.value].name;return j.text},E=function(j){if(e.data_.flat_categories[j.value]&&e.data_.flat_categories[j.value].icon){var z=asl_configuration.URL+"svg/"+e.data_.flat_categories[j.value].icon;return"<span>"+e.data_.flat_categories[j.value].name+'</span><img src="'+z+'" alt="'+e.data_.flat_categories[j.value].name+'" >'}return j.text};M.enableHTML=!0,M.optionLabel=asl_configuration.tabs_layout?w:E,L.addClass(asl_configuration.tabs_layout?"asl-image-filter":"asl-ddl-image-filter")}if(t.$category_ddl.multiselect(M),asl_configuration.has_child_categories){var rt="c_ids",K=e._cont.find("#asl-sub_cats-filter");if(K[0]){var N=n('<select id="asl-sub-categories" '+k+' data-type="'+rt+'"></select>');K.append(N);var W=Object.assign({},M);W.allSelectedText=asl_configuration.words.all_sub_categories,W.nonSelectedText=asl_configuration.words.all_sub_categories,W.onChange=function(X,j){e.halt_fetch=!1,e.refreshView(),asl_configuration.category_bound&&e.fitBound(null),asl_locator.hook_event({type:"category",data:t.get("featureFilter").array_})},asl_configuration.filter_ddl?asl_configuration.filter_ddl.push(rt):asl_configuration.filter_ddl=[rt],asl_configuration.image_filter&&(W.enableHTML=!0,W.optionLabel=asl_configuration.tabs_layout?w:E),asl_engine.controls[rt]=N,asl_engine.select_controls[rt]=N.multiselect(W)}if(asl_configuration.select_category&&asl_configuration.select_category.length){var tt=null;asl_configuration.select_sub_category&&(tt=asl_configuration.select_sub_category.split(",")),t._make_sub_categories(t.get("featureFilter").array_,tt)}}}}this.directionsPanel_=e._cont.find("#agile-modal-direction");var et=this.directionsPanel_.find(".frm-place");et.val(""),t.dest_coords&&(At.directionsFrom_=t.dest_coords);var Y=this.directionsPanel_.find(".frm-place")[0],Ct=asl_use_new_place_api(asl_configuration)?["location","formattedAddress"]:["geometry"],At=this;if(this.input_search=new asl_locator.AddressAPI(Y,{fields:Ct,map:e.getMap(),onSelect:function(R){R&&R.geometry&&R.geometry.location&&(At.directionsFrom_=R.geometry.location)}}),this.directionsPanel_.find(".directions-to").attr("readonly","readonly"),this.directionsVisible_=!1,this.directionsPanel_.find(".btn-submit").on("click",function(R){return t.dest_coords&&et.val()==asl_configuration.words.current_location&&(t.directionsFrom_=t.dest_coords||null),t.renderDirections_(),!1}
14),asl_configuration.distance_unit=="KM"?(t.distance_type=ASLUnitSystem.METRIC,t.directionsPanel_.find("#rbtn-km")[0].checked=!0):t.distance_type=ASLUnitSystem.IMPERIAL,t.directionsPanel_.find("input[name=dist-type]").change(function(){t.distance_type=this.value==1?ASLUnitSystem.IMPERIAL:ASLUnitSystem.METRIC}),this.el_.find(".directions-cont .close").on("click",function(){t.hideDirections(),e._cont.find(".count-row").removeClass("hide"),e._cont.find("#filter-options").removeClass("hide")}),this.directionsPanel_.find(".close-directions").on("click",function(){t.hideDirections(),e._cont.find(".count-row").removeClass("hide"),e._cont.find("#filter-options").removeClass("hide")}),asl_configuration.template=="5"){var ut=e._cont.find("#asl-filter-sec-cont");e._cont.find(".asl-filter-popup-tog").on("click",function(R){ut.removeClass("asl-hide")}),ut.find("#asl-filter-sec-close").on("click",function(){ut.addClass("asl-hide")}),ut.find(".asl-collapse-arw").on("click",function(R){var X=n(this);X.parent().toggleClass("asl-collapsed-arw")}),ut.find(".sl-filter-clr-btn").on("click",function(R){e.reset_all()}),e._cont.find(".sl-panel-collapse-btn").on("click",function(){const R=e._cont.find(".sl-panel-cont"),X=e._cont.find(".asl-map");R.hasClass("sl-panel-collapsed")?(R.removeClass("sl-panel-collapsed"),X.removeClass("sl-map-expanded")):(R.addClass("sl-panel-collapsed"),X.addClass("sl-map-expanded"))})}asl_locator.hook_event({type:"init",data:e.data_.stores_})},asl_locator.Panel.prototype.lead_form_modal=function(){if(asl_configuration.wpforms){let o=function(){n(t).removeClass("show"),n(t).hide()};var e=o,t="#asl-lead-form-modal";n(document).on("keydown",function(s){n(t).hasClass("show")&&s.keyCode===27&&o()}),this._cont.find('#asl-lead-form-modal button[data-dismiss="modal"]').on("click",function(s){o()})}},asl_locator.Panel.prototype._make_sub_categories=function(t,e){for(var o=[],s=asl_configuration.words.all_sub_categories,u=0;u<t.length;u++){var _=asl_categories[t[u].id_],b=_&&_.children?_.children:[];b&&Array.isArray(b)&&b.forEach(function(g,k){var m=!1;e&&e.length&&e.indexOf(g.id)!=-1&&(m=!0),o.push({label:g.name,title:g.name,value:parseInt(g.id),selected:m,ordr:parseInt(g.ordr)})})}o=asl_configuration.cat_sort=="name_"?asl_engine.helper.sortBy(o,"title",!0):asl_engine.helper.sortBy(o,"ordr"),o.length&&asl_configuration.single_cat_select=="1"&&o.unshift({label:s,title:s,value:""});var h=asl_engine.select_controls&&asl_engine.select_controls.c_ids;h&&typeof h.multiselect=="function"&&h.multiselect("dataprovider",o),asl_configuration.template=="5"&&(o.length>0?this._cont.find(".asl-ddl-filter-sub-cats").removeClass("d-none"):this._cont.find(".asl-ddl-filter-sub-cats").addClass("d-none"))},asl_locator.Panel.prototype.address_dropdowns=function(t,e){this.address_object=t,this.address_ddls={},asl_view.address_values={},asl_view.have_countries=e;var o=!0,s=Object.keys(t),u=[],_=[];if(asl_view.have_countries)var b=this._make_dropdown(s,"country","countries");else u=s,u&&u.length==1&&(o=!1);if(o)var h=this._make_dropdown(u,"state","states");else{var g=Object.keys(t);_=t[g[0]]}var k=this._make_dropdown(_,"city","cities")},asl_locator.Panel.prototype._to_multi_data=function(t,e){var o=[],s=asl_configuration.words["ph_"+e]||"All "+e;return o.push({label:s,title:s,value:""}),t&&Array.isArray(t)&&(t.sort(function(u,_){return u.localeCompare(_)}),t.forEach(function(u,_){var b=asl_engine.helper.html_entites(u);o.push({label:b,title:b,value:u})})),o},asl_locator.Panel.prototype._make_dropdown=function(t,e,o){var s=this._cont.find(".asl-advance-filters > div:first-child");t||(t=[]);var u=asl_configuration.words["label_"+e]||e,_=asl_configuration.words["ph_"+o]||"All "+o,b=n('<select id="sl-addr-ddl-'+e+'" data-type="'+e+'"></select>'),h=(asl_configuration.template=="4"?"":"pol-lg-4 ")+"pol-md-6 pol-sm-12 asl-ddl-filters";asl_configuration.template=="1"?h="sl-form-group asl-ddl-filters":asl_configuration.template=="5"&&(h="asl-tabs-ddl asl-ddl-filters",s=this._cont.find(".asl-advance-filters .sl-filter-scrol-panel")),h+=" sl-ddl-"+e;var g=n('<div class="'+h+'"><div class="asl-filter-cntrl"><label for="sl-addr-ddl-'+e+'" class="asl-cntrl-lbl">'+u+'</label><div class="sl-dropdown-cont"></div></div></div>');return g.find(".sl-dropdown-cont").append(b),s.append(g),b.multiselect({enableFiltering:asl_configuration.ddl_search,disableIfEmpty:!0,filterPlaceholder:asl_configuration.words.search||"Search",enableCaseInsensitiveFiltering:!0,nonSelectedText:asl_configuration.words.select_option,nonSelectedText:_||"Select",includeSelectAllOption:!1,numberDis
14played:1,maxHeight:asl_configuration.ddl_max_height?parseInt(asl_configuration.ddl_max_height):250,onChange:this.address_selected}),this.address_ddls[e]=b,t.length?b.multiselect("dataprovider",this._to_multi_data(t,o)):b.multiselect("disable"),b},asl_locator.Panel.prototype.address_selected=function(t,e){var o=this.$select.val(),s=this.$select.data("type"),u=asl_view._panel,_=asl_view;if(asl_locator.hook_event({type:"addr_ddl_event",data:{type:s,value:o}}),s=="country"){if(_.address_values.country=_.address_values.state=_.address_values.city=null,o!=""){var b=Object.keys(u.address_object[o]);u.address_ddls.state.multiselect("dataprovider",u._to_multi_data(b,"states")),u.address_ddls.state.multiselect("enable"),_.address_values.country=o,b&&b.length==1&&b[0]==""&&(s="state",o="")}else u.address_ddls.state.multiselect("dataprovider",[]),u.address_ddls.state.multiselect("disable");u.address_ddls.city.multiselect("dataprovider",[]),u.address_ddls.city.multiselect("disable")}if(s=="state"){var h=_.have_countries?u.address_object[_.address_values.country][o]:u.address_object[o];u.address_ddls.city.multiselect("dataprovider",u._to_multi_data(h,"cities")),u.address_ddls.city.multiselect(h&&h.length?"enable":"disable"),_.address_values.state=o,_.address_values.city=null}s=="city"&&(_.address_values.city=o||null),asl_view.refreshView(),asl_view.fitBound()},asl_locator.Panel.prototype.toggleFeatureFilter_=function(t){var e=this.get("featureFilter");e.toggle(t),this.set("featureFilter",e)},asl_locator.geocoder_=asl_locator.getSearchProvider(),asl_locator.Panel.prototype.listenForStoresUpdate_=function(){var t=this,e=this.get("view");this.storesChangedListener_&&ASLEvent.removeListener(this.storesChangedListener_)},asl_locator.Panel.prototype.searchPosition=function(t){var e=this,o={address:t,bounds:this.get("view").getMap().getBounds()};asl_locator.geocoder_.geocode(o,function(s,u){u==="OK"&&ASLEvent.trigger(e,"geocode",s[0])})},asl_locator.Panel.prototype.setView=function(t){this.set("view",t)},asl_locator.Panel.prototype.view_changed=function(){var t=this,e=this.get("view");this.bindTo("selectedStore",e),this.geolocationListener_&&ASLEvent.removeListener(this.geolocationListener_),this.zoomListener_&&ASLEvent.removeListener(this.zoomListener_),this.idleListener_&&ASLEvent.removeListener(this.idleListener_);var o=e.getMap().getCenter(),s=function(){t.listenForStoresUpdate_()};this.geolocationListener_=ASLEvent.addListener(e,"load",s),this.zoomListener_=ASLEvent.addListener(e.getMap(),"zoom_changed",s),this.idleListener_=ASLEvent.addListener(e.getMap(),"idle",function(){return t.idle_(e.getMap())}),s(),this.bindTo("featureFilter",e),this.autoComplete_&&this.autoComplete_.bindTo("bounds",e.getMap())},asl_locator.Panel.prototype.getSearchCoordinates=function(t){var e=asl_configuration.search_coordinates;if(!e||typeof e!="object"||!t)return null;var o=n.trim(String(t)).toLowerCase(),s=e[o];return!s||isNaN(s.lat)||isNaN(s.lng)?null:new ASLLatLng(parseFloat(s.lat),parseFloat(s.lng))},asl_locator.Panel.prototype.geoCoder=function(t,b,o){var s=this,u=s.get("view"),_=s.addressAPI_||asl_locator.getSearchProvider(),b=b||function(g,k){k=="OK"?(g.search_text=t.value,u.bbox=g[0].geometry&&g[0].geometry.viewport?asl_normalize_bounds(g[0].geometry.viewport):null,asl_locator.hook_event({type:"before_search",data:g}),u.measure_distance(g[0].geometry.location,!0,null,g),asl_locator.hook_event({type:"search",data:g}),asl_configuration.load_all=="2"&&u._cont.find(".asl-reload-map").trigger("click"),n(t).next().removeClass("hide")):s.handleGeocodeFailure(k)};do_geocoding=function(g){var k=g?s.getSearchCoordinates(g):null;if(k){b([{formatted_address:g,geometry:{location:k,viewport:null}}],"OK");return}if(asl_configuration.no_geocode!="1"&&(s.geo_modal&&s.hideGeoModal(),g)){var m={address:g};if(m.componentRestrictions={},asl_configuration.country_restrict){var H=asl_configuration.country_restrict.toLowerCase();H=H.split(","),m.componentRestrictions.country=H[0]}if(asl_configuration.region_search_bound)try{var Q=asl_configuration.region_search_bound.split(",").map(parseFloat);if(Q.length===4){var ot=new ASLLatLng(Q[0],Q[1]),T=new ASLLatLng(Q[2],Q[3]);m.bounds=new ASLLatLngBounds(ot,T)}}catch(I){console.warn("Invalid region_search_bound format",I)}u.data_.all_states&&(m.componentRestrictions.administrativeArea=u.data_.all_states.join("|")),_.geocode(m,b)}},n(t).on("click",function(g){t.select()});var h=asl_configuration["default-addr"];t&&h&&window.setTimeout(function(){if(asl_configuration.search_type=="2"){if(asl_view.data_&&asl_view.data_.ds_items){var g=asl_view.data_.ds_items.find(function(k){return k.title===h});g?(n(t).val(h),n(t).trigger("typeahead:selected",g)):asl_configuration.no_geocode=="1"?(n(t).val(h),n(t).trigger("typeahead:selected",{type:"title",title:h})):do_geocoding(asl_configuration["default-addr"])}}else asl_configuration.req_coords?do_geocoding(asl_configuration["default-addr"]):(s.get("view").measure_distance(new ASLLatLng(
14asl_configuration.default_lat,asl_configuration.default_lng),!0,null,null),asl_configuration.load_all=="2"&&n(".asl-reload-map").trigger("click"));n(t).next().removeClass("hide")},800),!o&&(n(t).on("keyup",function(g){if(g.keyCode==13){var k=n.trim(this.value);do_geocoding(k)}}),u._cont.find(".asl-search-event").on("click",function(g){var k=n.trim(t.value);k&&do_geocoding(k)}))},asl_locator.Panel.prototype.handleAddressPlace_=function(t,e){if(t){var o=this.getSearchCoordinates(e.value);if(o&&(t.geometry=t.geometry||{},t.geometry.location=o,t.geometry.viewport=null),!(!t.geometry||!t.geometry.location)){var s=this.get("view");s.bbox=asl_normalize_bounds(t.geometry.viewport),asl_locator.hook_event({type:"before_search",data:t}),s.measure_distance(t.geometry.location,!0,null,t),t.search_text=e.value,asl_locator.hook_event({type:"search",data:t}),n(e).next().removeClass("hide"),asl_configuration.load_all=="2"&&s._cont.find(".asl-reload-map").trigger("click")}}},asl_locator.Panel.prototype.initAutocomplete_=function(t){var e=this;if(!asl_configuration.geocoding_only&&asl_locator.resolveSearchProvider()!=="disabled"){var o=asl_use_new_place_api(asl_configuration),s={};!o&&asl_configuration.google_search_type&&(s.types=asl_configuration.google_search_type=="cities"||asl_configuration.google_search_type=="regions"?["("+asl_configuration.google_search_type+")"]:[asl_configuration.google_search_type]);var u=o?["location","formattedAddress","id","types"]:["geometry","place_id","formatted_address","types"];asl_configuration.filter_address&&u.push(o?"addressComponents":"address_components"),this.addressAPI_=new asl_locator.AddressAPI(t,{googleOptions:s,newGoogleOptions:{},countries:asl_get_country_restrictions(asl_configuration),fields:u,map:this.get("view")?this.get("view").getMap():null,onSelect:function(_){e.handleAddressPlace_(_,t)}}),this.autoComplete_=this.addressAPI_}e.search_control=t,e.geoCoder(t)},asl_locator.Panel.prototype.idle_=function(t){this.center_?t.getBounds().contains(this.center_)||(this.center_=t.getCenter(),this.listenForStoresUpdate_()):this.center_=t.getCenter()},asl_locator.Panel.prototype.hideGeoModal=function(){var t=this._cont.find("#asl-geolocation-agile-modal");t.removeClass("in"),window.setTimeout(function(){t.css("display","none")},300),this.geo_modal=!1},asl_locator.Panel.prototype.hideNoStoresModal=function(){var t=this._cont.find("#no-stores-modal");t.removeClass("in"),window.setTimeout(function(){t.css("display","none")},300)},asl_locator.Panel.prototype.showNoStoresModal=function(){if(asl_configuration.no_stores_modal){var t=this._cont.find("#no-stores-modal");t.css("display","block"),window.setTimeout(function(){t.addClass("in")},300)}},asl_locator.Panel.prototype.handleGeocodeFailure=function(t){if(t=="PROVIDER_NOT_CONFIGURED"){asl_locator.showSearchProviderAlert(this._cont);return}var e=this.get("view");console.log("Geocode was not successful for the following reason: "+t),e&&(e.search_performed=!0),this.geo_modal&&this.hideGeoModal(),this._cont.find(".Num_of_store .count-result").html("0");var o=this._cont.find(".sl-no-found-section");this.storeList_.html(o[0]?o.html():'<div class="asl-overlay-on-item" id="asl-no-item-found"><div class="white"></div><div class="sl-no-item"><p>'+asl_configuration.no_item_text+"</p></div></div>"),asl_locator.hook_event({type:"no_stores",data:{element:this.storeList_}}),this.showNoStoresModal()},asl_locator.Panel.prototype.hideDescModal=function(){var t=this._cont.find("#asl-desc-agile-modal");t.removeClass("in"),window.setTimeout(function(){t.css("display","none")},300),this.isDescModal=!1},asl_locator.Panel.prototype.descriptionModal=function(t){var e=this._cont.find("#asl-desc-agile-modal");e.find(".sl-title").html(t.props_.title);var o="<h5>"+asl_configuration.words.desc_title+"</h5><p>"+t.props_.description+"</p>";t.props_.description_2&&(o+='<br><h5 class="sl-addit-desc">'+asl_configuration.words.add_desc_title+"</h5><p>"+t.props_.description_2+"</p>"),e.find(".sl-desc").html(o),e.css("display","block"),e.addClass("in"),asl_configuration.is_mob&&n("html, body").stop().animate({scrollTop:e.offset().top},900,"swing"),this.isDescModal=!0},asl_locator.Panel.prototype.stores_changed=function(t){var e=this;if(e.isDescModal&&e.hideDescModal(),!!this.get("stores")){var o=this.get("view");if(!(o.showing_direction||!o.display_list)&&!(asl_configuration.accordion&&o.is_updated)){o.is_updated=!0;var s=o.get("stores"),u=this.get("selectedStore");if(asl_configuration.highlight_first&&t){for(var _=[],b=[],h=0;h<s.length;h++)s[h].id_==t.id_?_.push(s[h]):b.push(s[h]);s=_.concat(b)}if(asl_configuration.accordion||this.storeList_.empty(),s.length)this._cont.find(".Num_of_store .count-result").html(o.total_stores||s.length);else{this._cont.find(".Num_of_store .count-result").html("0");
14var g=this._cont.find(".sl-no-found-section");e.storeList_.html(o.search_performed&&g[0]?g.html():'<div class="asl-overlay-on-item" id="asl-no-item-found"><div class="white"></div><div class="sl-no-item"><p>'+(o.search_performed?asl_configuration.no_item_text:asl_configuration.words.perform_search)+"</p></div></div>"),asl_locator.hook_event({type:"no_stores",data:{element:e.storeList_}}),o.search_performed?e.showNoStoresModal():e.hideNoStoresModal()}var k=function(w){var E=n(w.target);if(o.halt_fetch=!0,asl_configuration.accordion&&w.stopPropagation(),asl_configuration.branches&&this.store&&this.store.props_.childs&&this.store.props_.childs.length){w.preventDefault(),o.render_branch_list(this.store);return}if(E.hasClass("asl-lead-cta-btn")){w.preventDefault(),e.lead_event_fn.call(e,this.store);return}if(E.hasClass("sl-btn-custom")){w.preventDefault(),asl_locator.hook_event({type:"custom_btn",data:this.store});return}if(!E.hasClass("sl-stop-action")){if(E.hasClass("s-direction")){w.preventDefault();return}if(E.hasClass("sl-link")){w.preventDefault(),e.descriptionModal(this.store);return}if(E.hasClass("sl-pickup")){w.preventDefault(),asl_locator.hook_event({type:asl_configuration.ship_from?"ship_from":"pickup",data:this.store});return}if(e.isDescModal&&e.hideDescModal(),e.geo_modal&&e.hideGeoModal(),w.target.className=="A"||asl_configuration.disable_list_click){asl_locator.hook_event({type:"highlight",data:this.store});return}if(E.is('a[href^="mailto:"]')?asl_locator.hook_event({type:"asl_email_click",data:this.store}):E.is('a[href^="tel:"]')&&asl_locator.hook_event({type:"asl_phone_click",data:this.store}),E.hasClass("btn-asl")){asl_locator.hook_event({type:"highlight",data:this.store});return}if(asl_configuration.template=="1"){var K=o.get("selectedStore");if(K&&this.store&&K.id_==this.store.id_){o.highlight(null,E);return}}if(o.noRefreshList=!0,o.highlight(this.store,E),asl_configuration.is_mob||asl_configuration.template=="4"){if(asl_configuration.disable_scroll)return;var N=n(o.getMap().getDiv()).offset().top,W=typeof asl_configuration.scroll_offset!="undefined"?parseInt(asl_configuration.scroll_offset,10):0;n("html, body").stop().animate({scrollTop:N+W},900,"swing")}}};if(this.storeList_.off(".aslStoreItems"),this.storeList_.on("click.aslStoreItems",".sl-item .s-direction",function(w){w.preventDefault(),w.stopImmediatePropagation();var E=this.closest(".sl-item"),K=E&&E.store;K&&(e.directionsTo_=K,e.showDirections(K))}),this.storeList_.on("click.aslStoreItems",".sl-item .sl-show-branches",function(w){w.preventDefault(),w.stopImmediatePropagation();var E=this.closest(".sl-item"),K=E&&E.store;K&&o.render_branch_list(K)}),this.storeList_.on(asl_configuration.list_event+".aslStoreItems",".sl-item",function(w){k.call(this,w)}),this.storeList_.on("keyup.aslStoreItems",".sl-item",function(w){if(w.key=="Enter")k.call(this,w);else if(w.key=="Tab")o.get("selectedStore")&&o.highlight(null);else if(w.key=="d"||w.key=="D"){var E=this.store;if(!E)return;e.directionsTo_=E,e.showDirections(E)}}),(asl_configuration.hover_center||asl_configuration.do_bounce)&&(this.storeList_.on("mouseenter.aslStoreItems",".sl-item",function(){var w=this.store;w&&(asl_configuration.hover_center&&(o.panTo(w),asl_configuration.zoom_li&&asl_map.setZoom(parseInt(asl_configuration.zoom_li))),asl_configuration.do_bounce&&o.doBounce(w,!0))}),asl_configuration.do_bounce&&this.storeList_.on("mouseleave.aslStoreItems",".sl-item",function(){var w=this.store;w&&o.doBounce(w,!1)})),asl_configuration.accordion){var m=this.get("view").data_,H=m.stateCities,Q=this.storeList_,ot="";if(asl_configuration.category_accordion?(ot=m.generateHTMLCategories(),Q.attr("id","p-catlist")):m.countries?(ot=m.generateHTMLCountriesStates(m.stateCities),Q.attr("id","p-countlist")):ot=m.generateHTMLStates(m.stateCities),Q.html(ot),e._cont.find(".
14item-state > a span:empty").each(function(w){var E=n(this).parent().next().find("li.item-state");E.appendTo(E.parent().parent().parent().parent()),n(this).parent().remove()}),Q.children().length==1){var T=Q.children().first(),I=T.find(">div>ul>li");if(I.length){var q=Q.attr("id");I.appendTo(Q),I.children("a.colisiond").each(function(){q?n(this).attr("data-parent","#"+q):n(this).removeAttr("data-parent")}),T.remove()}}}for(var at=asl_configuration.branches=="2",it=asl_configuration.scroll_field,vt=null,Lt=new Map,Ot=function(w,E){var K=w&&w.jquery?w[0]:w;if(!(!K||!E)){var N=Lt.get(K);N||(N=document.createDocumentFragment(),Lt.set(K,N)),E.jquery?E.each(function(){N.appendChild(this)}):N.appendChild(E)}},dt=0,rt=s.length;dt<rt;dt++){var gt=s[dt].getInfoPanelItem();gt.store=s[dt];var zt=s[dt];if(at){let w=zt.props_;if(o.branch_view){if(!w.branch)continue}else if(w.branch)continue}if(u&&s[dt].id_==u.id_?n(gt).addClass("highlighted"):n(gt).removeClass("highlighted"),asl_configuration.category_accordion)if(s[dt].props_.c_ids.length){var y="#sl-cat-"+s[dt].props_.c_ids[0];Ot(n(y),gt);for(var S=1;S<s[dt].props_.c_ids.length;S++){var y="#sl-cat-"+s[dt].props_.c_ids[S],L=gt.cloneNode(!0);L.store=gt.store,Ot(n(y),L)}}else Ot(e.storeList_,gt);else if(asl_configuration.accordion){var y="#city-list-"+(s[dt].props_.state.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase()+"-"+s[dt].props_.city.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase());Ot(n(y),gt)}else{var v=s[dt].props_[it];if(it&&v!==vt){vt=v;var M=e.createScrollLabel(v,it);Ot(e.storeList_,M)}Ot(e.storeList_,gt)}}Lt.forEach(function(w,E){E.appendChild(w)}),asl_configuration.category_accordion&&e._cont.find("li.item-state").off("click.aslcat").on("click.aslcat",function(w){var E=n(this),K=E.data("id"),N=E.children(".colision"),W=E.parents("li.item-state").children(".colision"),tt=W;if(N.length&&(tt=tt.add(N)),asl_view._panel.storeList_.find(".colision.show").not(tt).colision("hide"),asl_view.categoryClearAll(),K){var et=!N.length||!N.hasClass("show");o.categoryAccFilter(String(K),et)}}),e.mainPanel.scrollTop()>0&&e.mainPanel.stop().animate({scrollTop:0},100,"swing")}}},asl_locator.Panel.prototype.createScrollLabel=function(t,e){var o=document.createElement("li");o.className="sl-store-scroll-lbl";var s=this.get("view"),u=String(t).trim(),_=e+"::"+u,b=e+"::"+String(t),h=s&&s.scrollTargetIdMap,g=h&&(h[_]||h[b])||"scroll-"+d(u,e);o.id=g;var k=document.createElement("span");k.className="sl-scroll-divider",k.setAttribute("aria-hidden","true");var m=document.createElement("span");m.className="sl-scroll-name",m.textContent=t;var H=document.createElement("span");return H.className="sl-scroll-divider",H.setAttribute("aria-hidden","true"),o.appendChild(k),o.appendChild(m),o.appendChild(H),o.setAttribute("data-id",t),o.setAttribute("data-type",e),o.setAttribute(`data-${e}`,t),o},asl_locator.Panel.prototype.lead_event_fn=function(t){var e="#asl-lead-form-modal",o=this._cont.find(e);if(t)if(t=t.props_,o.find(".asl_store_id input")[0])o.find(".asl_store_id input").val(t.id);else{var s=o.find("label").filter(function(){return n(this).text().trim()==="asl_store_id"}).first();if(s.length){var u=s.attr("for");u&&o.find("#"+u).val(t.id)}}asl_locator.hook_event({type:"lead_event",data:{store:t}}),o.toggleClass("show"),o.css("display","block")},asl_locator.Panel.prototype.selectedStore_changed=function(){var t=this,e=this.get("selectedStore"),o=t.get("view"),s=n(".highlighted",this.storeList_),u=!1,_=o.marker_clicked;if(o.marker_clicked=!1,asl_configuration.template=="1"&&(s[0]&&e&&s.data("id")==e.id_&&(u=!0),u||s.find(".sl-addr-sec").slideUp()),s.removeClass("highlighted"),!asl_configuration.adv_mkr&&o.active_marker&&o.active_marker.m&&(o.active_marker.m.setIcon(o.active_marker.picon),o.active_marker.m=null),!!e){var b=e.getMarker();o.active_marker&&(o.active_marker.picon=b.getIcon(),o.active_marker.m=b,b.setIcon(o.active_marker.icon)),this.directionsTo_=e;var h=this.storeList_.find('li.sl-item[data-id="'+e.id_+'"]');if(h.length>1&&(h=h.eq(0)),h&&(asl_configuration.template=="1"&&!h.hasClass("highlighted")&&(u||h.find(".sl-addr-sec").slideDown()),h.addClass("highlighted"),asl_configuration.accordion&&_)){var g=t._cont.find(".asl-panel-inner").find(".colision.in"),k=h.parentsUntil(".asl-panel-inner","div.colision");if(g.length&&g[g.length-1].id!=k[0].id&&g.colision("hide"),k){t.accordion_showing=h;for(var m=k.length-1;m>=0;m--)n(k[m]).colision("show"),window.setTimeout(function(){var vt=t.accordion_showing.position().top;t.mainPanel.animate({scrollTop:vt},"fast")},800)}}this.settings_.directions&&this.directionsPanel_.find(".directions-to").val(e.getDetails().title);var H=t.get("view").getInfoWindow().getContent(),Q=n(H),ot=Q.find(".asl-buttons"),T=n("<a/>").text(asl_configuration.words.direction).attr("href","javascript:void(0)").attr("title",asl_configuration.words.direction_title||"link to Google Maps").addClass("action").addClass("directions"),I=n("<a/>").text(asl_configuration.words.zoom).attr("href","javascript:void(0)").addClass("action").addClass("zoomhere"),q=e.props_.link;if(T.on("click",function(){return t.showDirections(),!1}),I.on("click",function(){t.get("view").getMap().setOptions({center:e.getLocation(),zoom:asl_map.getZoom()+1})}),ot.append(T).append(I),asl_configuration.pickup||asl_configuration.ship_from){var at=n("<a/>").text(asl_configuration.ship_from?asl_configuration.words.ship_from:asl_configuration.words.pickup).addClass("action").addClass("sl-pickup");ot.append(at),at.on("click",function(vt){asl_locator.hook_event({type:asl_configuration.ship_from?"ship_from":"pickup",data:e})})}ot.find(".asl-lead-cta-btn").on("click",function(vt){vt.preventDefault(),t.lead_event_fn.call(t,e)}),ot.find(".sl-btn-custom").on("click",function(vt){vt.preventDefault(),asl_locator.hook_event({type:"custom_btn",data:e})});var it=n("<a/>").text(asl_configuration.words.detail).addClass("action").addClass("a-website");window.asl_website_click?(it.on("click",function(){asl_website_click(e.props_,q)}),ot.append(it)):q&&(ot.append(it),it.attr("href",decodeURIComponent(q)),it.attr("target",asl_configuration.target_blank)),asl_configuration.template=="5"&&(T.html(asl_configuration.words.direction+'<i class="icon-direction"></i>'),it.append('<i class="icon-link-ext"></i>'),I.append('<i class="icon-zoom-in"></i>')),it.off("click.aslTrack").on("click.aslTrack",function(vt){var Lt=n(this).attr("href"),Ot=n(this).attr("target")||"_self";vt.preventDefault(),asl_locator.hook_event({type:"asl_event_cta",data:e}),Lt&&Lt!=="#"&&setTimeout(function(){Ot==="_blank"?window.open(Lt,Ot):window.location.href=Lt},50)}
14),Q.find('a[href^="mailto:"]').off("click.aslTrack").on("click.aslTrack",function(vt){asl_locator.hook_event({type:"asl_email_click",data:e})}),Q.find('a[href^="tel:"]').off("click.aslTrack").on("click.aslTrack",function(vt){asl_locator.hook_event({type:"asl_phone_click",data:e})})}},asl_locator.Panel.prototype.hideDirections=function(){this.directionsVisible_=!1,this.directionsPanel_.removeClass("in"),this.el_.find(".directions-cont").addClass("hide"),this.storeList_.fadeIn(),this.directionsRenderer_&&this.directionsRenderer_.setMap(null),asl_configuration.direction_redirect==="3"&&window.ASLRouteAPI&&typeof window.ASLRouteAPI.clearRouteDisplay=="function"&&window.ASLRouteAPI.clearRouteDisplay();var t=this.get("view");t.showing_direction=!1},asl_locator.Panel.prototype.showDirections=function(t){var e=t||this.get("selectedStore");if(e){if(asl_locator.hook_event({type:"direction",data:e.props_}),asl_locator.isMapLibre()||asl_configuration.is_mob&&asl_configuration.direction_redirect=="1"||asl_configuration.direction_redirect=="2"){var o=asl_configuration.title_in_dir?[e.props_.title]:[],s="";asl_configuration.template=="1"&&e.props_.street&&o.push(e.props_.street),o.push(e.props_.address),o=o.join(", ").replace(/<\/?[^>]+(>|$)/g," "),o=encodeURIComponent(o);const u=asl_configuration.coords_direction&&e.location_?`${e.location_.lat()},${e.location_.lng()}`:null,_=(asl_configuration.direction_mode||"DRIVING").toUpperCase(),b=["WALKING","TRANSIT","BICYCLING","DRIVING"].indexOf(_)!==-1?_:"DRIVING",h=b==="WALKING"?"walking":b==="TRANSIT"?"transit":b==="BICYCLING"?"bicycling":"driving",g=b==="WALKING"?"w":b==="TRANSIT"?"r":"d",k=u?encodeURIComponent(u):o;if(asl_configuration.is_ios&&asl_configuration.native_direction){const H=q=>window.open(q,"_blank","noopener,noreferrer"),Q=`maps://?daddr=${k}&dirflg=${g}`,ot=`https://maps.apple.com/?daddr=${k}&dirflg=${g}`,T=`https://www.google.com/maps/dir/?api=1&destination=${k}&travelmode=${h}`,I=`comgooglemaps://?daddr=${k}&directionsmode=${h}`;if(b==="BICYCLING"){H(I),setTimeout(()=>H(T),400);return}H(Q),setTimeout(()=>H(ot),400);return}const m=`https://www.google.com/maps/dir/?api=1&destination=${k}&travelmode=${h}`;window.open(m);return}this.directionsPanel_.find(".frm-place").val(this.dest_coords?asl_configuration.words.current_location:""),this.directionsPanel_.find(".directions-to").val(e.getDetails().title),this.directionsPanel_.addClass("in"),this.renderDirections_(),(asl_configuration.is_mob||asl_configuration.template=="4")&&n("html, body").stop().animate({scrollTop:n(this.get("view").getMap().getDiv()).offset().top},900,"swing"),this.directionsVisible_=!0}},asl_locator.Panel.prototype.renderDirections_=function(){var t=this;if(!(!this.directionsFrom_||!this.directionsTo_)){this.el_.find("#map-loading").show(),this.el_.find(".directions-cont").removeClass("hide"),this.storeList_.fadeOut(),t.directionsPanel_.removeClass("in");var e=this.el_.find(".rendered-directions").empty(),o="DRIVING";if(asl_configuration.direction_mode){var s=asl_configuration.direction_mode.toUpperCase();["DRIVING","WALKING","BICYCLING","TRANSIT"].indexOf(s)!==-1&&(o=s)}var u=asl_configuration.direction_redirect==="3"&&window.ASLRouteAPI&&typeof window.ASLRouteAPI.initRouteAPI=="function",_=function(){var I=t.get("view");t._cont.find(".count-row").addClass("hide"),t._cont.find("#filter-options").addClass("hide"),I.showing_direction=!0,I.infoWindow_.getVisible()&&I.infoWindow_.close()},b=function(I){return I?typeof I.lat=="function"&&typeof I.lng=="function"?{lat:I.lat(),lng:I.lng()}:typeof I.lat=="number"&&typeof I.lng=="number"?{lat:I.lat,lng:I.lng}:typeof I.latitude=="number"&&typeof I.longitude=="number"?{lat:I.latitude,lng:I.longitude}:null:null},h=function(){if(!t.directionsService_||!t.directionsRenderer_){if(!asl_has_google_maps()||!google.maps.DirectionsService||!google.maps.DirectionsRenderer){Q("Legacy directions are unavailable."),t.el_.find("#map-loading").hide();return}t.directionsService_=new google.maps.DirectionsService,t.directionsRenderer_=new google.maps.DirectionsRenderer({draggable:!0})}t.directionsService_.route({origin:t.directionsFrom_,destination:t.directionsTo_.getLocation(),travelMode:o,unitSystem:t.distance_type},function(I,q){if(t.el_.find("#map-loading").hide(),q!=="OK"){var at=I&&(I.error_message||I.errorMessage),it=at&&at.trim()||(q==="REQUEST_DENIED"?"Directions request denied: legacy Directions API not enabled for this project.":"Directions request failed: "+q);Q(it);return}_();var vt=t.directionsRenderer_;vt.setPanel(e[0]),vt.setMap(t.get("view").getMap()),vt.setDirections(I)}),t.directionsFrom_=null},g=e[0]||null,k=t.get("view").getMap(),m=b(this.directionsFrom_),H=b(this.directionsTo_.getLocation()),Q=function(I){if(g){g.innerHTML="";var q=document.createElement("div");q.className="sl-container";var at=document.createElement("p");at.className="asl-route-error alert alert-danger",at.textContent=I||"Unable to load directions at this time.",q.appendChild(at),g.appendChild(q)}};if(u&&g&&k&&m&&H){var ot=function(I){I&&console.error("ASLRouteAPI failed.",I);var q=I&&I.message?I.message:"Unable to load directions at this time.";Q(q),t.el_.find("#map-loading").hide()};try{var T=window.ASLRouteAPI.initRouteAPI({panelElement:g,mapInstance:k,route:{origin:m,destination:H}});T&&typeof T.then=="function"?T.then(function(){_(),t.el_.find("#map-loading").hide(),t.directionsFrom_=null}).catch(ot):(_(),t.el_.find("#map-loading").hide(),t.directionsFrom_=null)}catch(I){ot(I)}return}if(asl_configuration.direction_redirect==="3"){Q("Route API is unavailable for this request."),t.el_.find("#map-loading").hide();return}h()}},asl_locator.Panel.prototype.featureFilter_changed=function(){this.listenForStoresUpdate_()},asl_locator.PanelOptions=function(){},asl_locator.prototype.locationSearch,asl_locator.PanelOptions.prototype.locationSearchLabel,asl_locator.PanelOptions.prototype.featureFilter,asl_locator.PanelOptions.prototype.directions,asl_locator.PanelOptions.prototype.view})(jQuery),(function($){var charMap={a:/[à áâÄÃÃÃÄ]/gi,c:/[çÃ]/gi,s:/[ÈÅÅ]/gi,e:/[èéêëÃÃÃÃ]/gi,t:/[ÈŢţ]/gi,i:/[ïîîÃÃÃ]/gi,o:/[ôÃÃ]/gi,oe:/[Å]/gi,u:/[üÃÃ]/gi},normalize=function(n){return $.each(charMap,function(r,d){n=n.replace(d,r)}),n},queryTokenizer=function(n){var r=normalize(n);return Bloodhound.tokenizers.whitespace(r)},asl_engine={config:{},helper:{}};if(window.asl_engine=asl_engine,!window.asl_configuration)return;asl_configuration.layout="0",asl_configuration.category_accordion=!1,asl_configuration.accordion=!1,asl_configuration.analytics=!1,asl_configuration.sort_by_bound=asl_configuration.sort_by_bound=="1",asl_configuration.distance_slider=!1,asl_configuration.show_categories=asl_configuration.show_categories!="0",asl_configuration.time_switch=!1,asl_configuration.category_marker=!1,asl_configuration.advance_filter=!1,asl_configuration.time_24=asl_configuration.time_format=="1",asl_configuration.user_center=!1,asl_configuration.distance_unit=asl_configuration.distance_unit=="KM"?asl_configuration.distance_unit:"Miles",asl_configuration.filter_address=asl_configuration.filter_address=="1",asl_configuration.regex=asl_configuration.no_regex?/#|\./ig:/[^a-z0-9\s]/gi;var info_x_offset=parseInt(asl_configuration.info_x_offset,10),info_y_offset=parseInt(asl_configuration.info_y_offset,10);asl_configuration.info_x_offset=isNaN(info_x_offset)?0:info_x_offset,asl_configuration.info_y_offset=isNaN(info_y_offset)?0:info_y_offset,asl_configuration.enter_key=!0,asl_configuration.category_sort=!0,asl_configuration.stores_limit=asl_configuration.stores_limit&&!isNaN(asl_configuration.stores_limit)?parseInt(asl_configuration.stores_limit):null,asl_configuration.radius_cir
14cle=asl_configuration.radius_circle=="1",asl_configuration.marker_height=asl_configuration.marker_height?asl_configuration.marker_height:"43",asl_configuration.and_filter=!1,asl_configuration.category_bound=!1,asl_configuration.fit_bound=asl_configuration.fit_bound=="1",asl_configuration.sort_random=asl_configuration.sort_random=="1",asl_configuration.filter_ddl=null,asl_configuration.boundary_box=asl_configuration.distance_control=="2",asl_configuration.store_radius=asl_configuration.store_radius=="1",asl_configuration.marker_title=asl_configuration.marker_title!="0",asl_configuration.hide_logo=asl_configuration.hide_logo=="1",asl_configuration.hide_hours=asl_configuration.hide_hours=="1",asl_configuration.do_bounce=asl_configuration.do_bounce!=="0",asl_configuration.list_event=asl_configuration.mouseover_list==="1"?"mouseover":"click",asl_configuration.pickup=asl_configuration.pickup==="1",asl_configuration.ship_from=asl_configuration.ship_from==="1",asl_configuration.address_ddl=!1,asl_configuration.tabs_layout=!1,asl_configuration.ddl_search=!!asl_configuration.ddl_search,asl_configuration.target_blank=asl_configuration.target_blank=="1"?"_blank":"_self",asl_configuration.cluster=asl_configuration.cluster!="0",asl_configuration.display_list=asl_configuration.display_list=="1",asl_configuration.branches=!1,asl_configuration.closed_label=asl_configuration.closed_label=="1",asl_configuration.adv_mkr=!!asl_configuration.advanced_marker,asl_configuration.search_zoom=parseInt(asl_configuration.search_zoom),asl_configuration.scroll_wheel=asl_configuration.scroll_wheel==1?!0:asl_configuration.scroll_wheel==0?!1:(asl_configuration.scroll_wheel==="default",null),(asl_configuration.search_type=="1"||asl_configuration.search_type=="2")&&(asl_configuration.search_type="4",asl_configuration.search_provider="automatic"),asl_configuration.search_2=!1,asl_locator.isMapLibre()&&(asl_configuration.advanced_marker=!1,asl_configuration.adv_mkr=!1,asl_configuration.mouseover=!1),asl_configuration.advance_filter||$(".asl-cont").addClass("no-asl-filters"),asl_configuration.display_list||(asl_configuration.sort_by_bound=!1),asl_configuration.template=="2"?(asl_configuration.address_ddl=!1,asl_configuration.filter_ddl=""):asl_configuration.template=="6"&&(asl_configuration.distance_slider=!1,asl_configuration.address_ddl=!1,asl_configuration.time_switch=!1,asl_configuration.filter_ddl="",asl_configuration.load_all=1,(asl_configuration.search_type=="1"||asl_configuration.search_type=="2")&&(asl_configuration.scroll_field="",asl_configuration.sort_by="")),asl_configuration.distance_slider||(asl_configuration.radius_circle=!1),asl_configuration.on_select=!0,asl_configuration["default-addr"]&&(asl_configuration.prompt_location="0"),asl_configuration.search_type=="1"&&asl_configuration.template!="2"&&asl_configuration.search_2&&(asl_configuration.search_type="0"),asl_configuration.sort_random&&asl_configuration.user_center&&(asl_configuration.user_center=!1,console.log("Warning! Sort Random disable the default location marker")),(asl_configuration.search_type=="1"||asl_configuration.search_type=="2")&&(asl_configuration.user_center=!1,asl_configuration.distance_slider=!1),asl_configuration.first_load!="1"&&(asl_configuration.user_center=!1,asl_configuration.load_all="1"),asl_configuration.info_y_offset||(asl_configuration.info_y_offset=-150,asl_configuration.template=="2"&&(asl_configuration.info_y_offset=-150),asl_configuration.infobox_layout=="1"&&(asl_configuration.info_y_offset=-150)),asl_configuration.fixed_radius=asl_configuration.fixed_radius&&!isNaN(asl_configuration.fixed_radius)?parseInt(asl_configuration.fixed_radius):null,asl_configuration.is_mob=_isMobileDevice(),asl_configuration.is_ios=_isIOSDevice(),asl_configuration.is_mob&&(asl_configuration.mobile_zoom&&(asl_configuration.zoom=parseInt(asl_configuration.mobile_zoom)),asl_configuration.mobile_search_zoom&&(asl_configuration.search_zoom=parseInt(asl_configuration.mobile_search_zoom)),asl_configuration.mobile_click_zoom&&(asl_configuration.zoom_li=parseInt(asl_configuration.mobile_click_zoom)),asl_configuration.list_event="click",asl_configuration.mouseover=!1),asl_configuration.max_bound_zoom=asl_configuration.max_bound_zoom?parseInt(asl_configuration.max_bound_zoom):asl_configuration.search_zoom!="0"?asl_configuration.search_zoom:asl_configuration.zoom,asl_configuration.search_type=="3"&&(asl_configuration.search_type="0",asl_configuration.geocoding_only=!0),asl_configuration.full_height&&asl_configuration.is_mob,asl_configuration.is_mob&&asl_configuration.mobile_load_bound&&(asl_configuration.load_all="2",asl_configuration.search_type="0"),asl_configuration.search_type!="0"&&asl_configuration.search_type!="4"&&(console.log("Radius Circle Works with Google Search Only and Distance Control."),asl_configuration.radius_cir
14cle=!1),asl_configuration.is_mob&&asl_configuration.mobile_stores_limit&&(asl_configuration.stores_limit=asl_configuration.mobile_stores_limit&&!isNaN(asl_configuration.mobile_stores_limit)?parseInt(asl_configuration.mobile_stores_limit):null),asl_configuration.accordion?(asl_configuration.load_all="1",asl_configuration.address_ddl=asl_configuration.sort_by_bound=asl_configuration.filter_address=asl_configuration.advance_filter=!1):asl_configuration.mobile_stores_limit=asl_configuration.mobile_stores_limit?parseInt(asl_configuration.mobile_stores_limit):100,asl_configuration.advance_filter||(asl_configuration.filter_ddl=asl_configuration.address_ddl=asl_configuration.sort_by_bound=asl_configuration.filter_address=!1),asl_configuration.load_all!="1"&&(asl_configuration.cache=asl_configuration.radius_circle=!1,console.log("Radius Circle Works with load all only"));var asl_lat=asl_configuration.default_lat?parseFloat(asl_configuration.default_lat):39.9217698526,asl_lng=asl_configuration.default_lng?parseFloat(asl_configuration.default_lng):-75.5718432,categories={},asl_date=new Date;asl_configuration.default_lat=asl_lat,asl_configuration.default_lng=asl_lng,asl_configuration.show_opened=asl_configuration.show_opened===!0||asl_configuration.show_opened=="1",$("#asl-dist-unit").html(asl_configuration.distance_unit);var COUNT_FORMATS=[{letter:"",limit:1e3},{letter:"K",limit:1e6}];asl_engine.helper.query_parameter=function(n){const r=window.location.search;return new URLSearchParams(r).get(n)},asl_engine.helper.html_entites=function(n){var r=document.createElement("div");return r.innerHTML=n,r.innerText},asl_engine.helper.is_empty=function(n){if(n==null)return!0;if(typeof n!="object"||Array.isArray(n))return!1;for(let r in n)if(n[r]!==null&&n[r]!==void 0)return!1;return!0},asl_engine.helper.format_count=function(n){var r=1e6;return asl_configuration.distance_value_full?n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}):n<r&&n>1e3?(n=1e3*n/r,n=Math.round(n*10)/10,n+"K"):n.toFixed(2)},asl_engine.helper.flattenCategories=function(n){const r={};function d(c,x){if(c.value=[c.id],c.len=0,x&&c.value.push(x.id),r[c.id]=c,c.children.length)for(const B of c.children)d(B,c)}for(const c in n){const x=n[c];d(x,null)}return r},asl_engine.helper.uniqe_merge=function(n,r){var d=new Set(n.concat(r));return Array.from(d)},asl_engine.helper.pluck=function(n,r){for(var d=new Set,c=0;c<r.length;c++)d.add(r[c][n]);var x=[];return d.forEach(function(B){x.push(B)}),x},asl_engine.helper.uniq=function(n,r,d){for(var c=[],x=[],B=0;B<n.length;B++)c[n[B][r]]||(x.push(d?{type:r,title:n[B][r]}:{type:r,title:n[B][r],value:normalize(n[B][r])}),c[n[B][r]]=1);return x},asl_engine.helper.merge=function(n,r){var d={},c;for(c=0;c<n.length;c++)d[n[c]]=!0;for(c=0;c<r.length;c++)d[r[c]]=!0;return Object.keys(d)},asl_engine.helper.asl_leadzero=function(n){return asl_configuration.no_leadzero||n>9?""+n:"0"+n},asl_engine.helper.asl_timeConvert=function(n){if(!n)return 0;var r=$.trim(n).toUpperCase();if(/(1[012]|[0-9]):[0-5][0-9]$/.test(r)){var d=Number(r.match(/^(\d+)/)[1]),c=Number(r.match(/:(\d+)/)[1]);return d+c/100}else if(/(1[012]|[1-9]):[0-5][0-9][ ]?(AM|PM)/.test(r)){var d=Number(r.match(/^(\d+)/)[1]),c=Number(r.match(/:(\d+)/)[1]),x=r.indexOf("PM")!=-1?"PM":"AM";return x=="PM"&&d<12&&(d=d+12),x=="AM"&&d==12&&(d=d-12),d+c/100}else return 0},asl_engine.helper.between=function(n,r,d){return n>r&&n<d},asl_engine.helper.implode=function(n,r){for(var d=[],c=0,x=n.length;c<x;c++)n[c]&&d.push(n[c]);return d.join(r)},asl_engine.helper.toObject_=function(n,r){for(var d={},c=0,x=r.length;c<x;c++)d[n[c]]=r[c];return d},asl_engine.helper.distanceCalc=function(n){var r=6371,d=this.getLocation(),c=asl_locator.toRad_(d.lat()),x=asl_locator.toRad_(d.lng()),B=asl_locator.toRad_(n.lat()),ct=asl_locator.toRad_(n.lng()),Z=B-c,V=ct-x,ft=Math.sin(Z/2)*Math.sin(Z/2)+Math.cos(c)*Math.cos(B)*Math.sin(V/2)*Math.sin(V/2),ht=2*Math.atan2(Math.sqrt(ft),Math.sqrt(1-ft));return r*ht},asl_engine.helper.multi_sort=function(n,r,d){n.sort(function(c,x){var B=c[r],ct=x[r],Z=c[d],V=x[d];return B==ct?Z<V?-1:Z>V?1:0:B<ct?-1:1})},asl_engine.helper.sortBy=function(n,r,d){var c=null;return d?asl_configuration.sort_order=="desc"?c=function(x,B){return x[r]&&B[r]?-x[r].localeCompare(B[r]):0}:c=function(x,B){return x[r]&&B[r]?x[r].localeCompare(B[r]):0}:asl_configuration.sort_order=="desc"?c=function(x,B){return parseInt(B[r])-parseInt(x[r])}:c=function(x,B){return parseInt(x[r])-parseInt(B[r])},n.sort(c)},asl_engine.dataSource=function(){this.stores_=[],this.parent_store=null,this.remote_url=ASL_REMOTE.ajax_url},asl_engine.dataSource.prototype.getCountriesStateCities=function(n){for(var r={},d=0;d<n.length;d++)r[n[d].props_.country]||(r[n[d].props_.country]={}),r[n[d].props_.country][n[d].props_.state]||(r[n[d].props_.country][n[d].props_.state]=[]),r[n[d].props_.country][n[d].props_.state].indexOf(n[d].props_.city)==-1&&r[n[d].props_.country][n[d].props_.state].push(n[d].props_.city);return r},asl_engine.dataSource.prototype.getStateCities=function(n){for(var r={},d=0;d<n.length;d++)r[n[d].props_.state]||(r[n[d].props_.state]=[]),r[n[d].props_.state].indexOf(n[d].props_.city)==-1&&r[n[d].props_.state].push(n[d].props_.city);return r},asl_engine.dataSource.prototype.generateHTMLCategories=function(){var n=asl_configuration.cat_sort=="name_"?"name":asl_configuration.cat_sort,r=Object.values(asl_categories);r=n=="ordr"?asl_engine.helper.sortBy(r,"ordr"):asl_engine.helper.sortBy(r,n,!0);var d=function(x){if(!x||!x.length)return[];var B=x.slice();return n=="ordr"?asl_engine.helper.sortBy(B,"ordr"):asl_engine.helper.sortBy(B,n,!0)},c=function(x,B){var ct="";if(!x||!x.length)return ct;for(var Z=0;Z<x.length;Z++){var V=x[Z];if(V){var ft=d(V.children||[]);if(!V.id){ft.length&&(ct+=c(ft,B));continue}var ht=!!V.len,It=ft.length>0;if(!(!ht&&!It)){var mt=V.id,Dt="colision"+mt,kt="sl-cat-"+mt;ct+='<li data-id="'+mt+'" class="item-state asl-state-li"> <a class="colisiond" href="#'+Dt+'" aria-controls="'+Dt+'" data-parent="'+B+'" data-toggle="colision"><span>'+V.name+'</span></a> <div id="'+Dt+'" class="colision" role="tabpanel"> <ul class="sl-acc-layout" id="'+kt+'">',ct+=c(ft,"#"+kt),ct+="</ul></div></li>"}}}return ct};return c(r,"#p-catlist")},asl_engine.dataSource.prototype.generateHTMLCountriesStates=function(n){var r="",d=Object.keys(n).sort();for(var c in d)if(d.hasOwnProperty(c)){var x=d[c],B=x.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();r+='<li data-id="'+B+'" class="item-state asl-country-li"> <a class="colisiond" href="#colision-'+c+'" aria-controls="colision-'+c+'" data-parent="#p-countlist" data-toggle="colision"><span>'+x+'</span></a> <div id="colision-'+c+'" class="colision" role="tabpanel"> <ul id="p-statelist-'+c+'">';var ct=Object.keys(n[d[c]]).sort();for(var Z in ct)if(ct.hasOwnProperty(Z)){var V=ct[Z],ft=V.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();r+='<li data-id="'+ft+'" class="item-state asl-state-li"> <a class="colisiond" href="#colision'+Z+"-"+c+'" aria-controls="colision'+Z+"-"+c+'" data-parent="#p-statelist-'+c+'" data-toggle="colision"><span>'+V+'</span></a> <div id="colision'+Z+"-"+c+'" class="colision" role="tabpanel"> <ul id="item-city-'+Z+"-"+c+'">';var ht=n[d[c]][ct[Z]].sort();for(var It in ht)if(ht.hasOwnProperty(It)){var mt=ct[Z].replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase()+"-"+ht[It].replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();r+='<li data-id="'+mt+'" class="item-state"><a class="colisiond" href="#colision'+c+"-"+Z+"-"+It+'" data-parent="#item-city-'+Z+"-"+c+'" data-toggle="colision"><span>'+ht[It]+'</span></a> <div class="colision" id="colision'+c+"-"+Z+"-"+It+'" role="tabpanel"><div id="city-list-'+mt+'"></div></div></li>'}r+="</ul></div></li>"}r+="</ul></div></li>"}return r},asl_engine.dataSource.prototype.generateHTMLStates=function(n){var r="",d=Object.keys(n).sort();for(var c in d)if(d.hasOwnProperty(c)){var x=d[c],B=x.replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();r+='<li data-id="'+B+'" class="item-state"> <a class="colisiond" href="#colision'+c+'" aria-controls="colision'+c+'" data-parent="#p-statelist" data-toggle="colision"><span>'+d[c]+'</span></a> <div id="colision'+c+'" class="colision" role="tabpanel"> <ul id="item-city-'+c+'">';var ct=n[d[c]].sort();for(var Z in ct)if(ct.hasOwnProperty(Z)){var V=d[c].replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase()+"-"+ct[Z].replace(asl_configuration.regex,"").replace(/[ ]/ig,"-").toLowerCase();r+='<li data-id="'+V+'" class="item-state"><a class="colisiond" href="#colision'+c+"-"+Z+'" data-parent="#item-city-'+c+'" data-toggle="colision"><span>'+ct[Z]+'</span></a> <div class="colision" id="colision'+c+"-"+Z+'" role="tabpanel"><div id="city-list-'+V+'"></div></div></li>'}r+="</ul></div></li>"}return r},asl_engine.dataSource.prototype.sortDistance=function(n,r){r=r.sort(function(d,c){return d.distanceTo(n)-c.distanceTo(n)})},asl_engine.dataSource.prototype.sortRandom=function(n){n=n.sort(function(r,d){return Math.random()-.5})},asl_engine.dataSource.prototype.sortBy=function(n,r){var d=null;if(!(!r||!r.length)){var c=typeof r[0].props_[n]=="number";n=="cat"?d=function(x,B){var ct=x.props_.cat,Z=B.props_.cat,V=x.props_.distance,ft=B.props_.distance;return ct==Z?V<ft?-1:V>ft?1:0:ct>Z?-1:1}:c?d=function(x,B){return x.props_[n]>B.props_[n]?1:B.props_[n]>x.props_[n]?-1:0}:asl_configuration.sort_order=="desc"?d=function(x,B){return x.props_[n].toLowerCase()<B.props_[n].toLowerCase()?1:B.props_[n].toLowerCase()<x.props_[n].toLowerCase()?-1:0}:d=function(x,B){return x.props_[n].toLowerCase()&&B.props_[n].toLowerCase()?x.props_[n].toLowerCase().localeCompare(B.props_[n].toLowerCase(),"is"):0},r.sort(d)}},asl_engine.dataSource.prototype.sortByDesc=function(n,r){r.sort(function(d,c){return d.props_[n]<c.props_[n]?1:c.props_[n]<d.props_[n]?-1:0})},asl_engine.dataSource.prototype.load_kml=function(n){if(!asl_locator.isMapLibre()){var r=asl_configuration.kml_files;for(var d in r)if(r.hasOwnProperty(d))var c=asl_configuration.URL+"kml/"+r[d],x=new google.maps.KmlLayer(c,{preserveViewport:!0,map:n})}};var not_initial_load=!1,asl_view=null,asl_panel=null;asl_engine.dataSource.prototype.fetch_remote_data=function(n,r,d){var c=this,x=$("#asl-storelocator");window.clearTimeout(c.remoteFetchTimer_),c.remoteFetchTimer_=null;var B=(c.fetchGeneration_||0)+1;c.fetchGeneration_=B,c.activeRequest_&&c.activeRequest_.readyState!==4&&c.activeRequest_.abort(),x.find(".asl-overlay").show(),!r&&asl_configuration.reload_params&&(r=asl_configuration.reload_params,asl_configuration.reload_params=null);var ct=!1,Z={action:"asl_load_stores",nonce:ASL_REMOTE.nonce,asl_lang:asl_configuration.lang,load_all:asl_configuration.load_all,layout:asl_configuration.layout?1:0};if(r&&(Z=Object.assign(Z,r)),asl_configuration.stores&&(Z.stores=asl_configuration.stores,ct=!0),asl_configuration.branches&&(Z.branches="1"),asl_configuration.load_all!="1"){var V=map.getBounds(),ft=V.getNorthEast(),ht=V.getSouthWest
14(),It=V.getCenter();Z.lat=It.lat(),Z.lng=It.lng(),Z.nw=[ft.lat(),ht.lng()],Z.se=[ht.lat(),ft.lng()]}for(var mt=["category","exclude_categories","brand","special","state","city","postal_code","title","country"],Dt=0;Dt<mt.length;Dt++){var kt=mt[Dt];asl_configuration[kt]&&(Z[kt]=asl_configuration[kt],ct=!0)}c.on_call=!0;var Nt=asl_configuration.cache=="1"&&!ct?asl_configuration.URL+"locator-data"+(asl_configuration.lang?"-"+asl_configuration.lang:"")+".json?v="+asl_configuration.cache_ver:ASL_REMOTE.ajax_url;c.activeRequest_=$.ajax({url:Nt,data:Z,type:asl_configuration.stores?"POST":"GET",dataType:"json",success:function(Ut){if(B===c.fetchGeneration_){delete asl_locator.Store.infoPanelCache_,asl_locator.Store.infoPanelCache_={},c.stores_=c.parseData(Ut);var ie=x.find("#auto-complete-search,.asl-search-address");asl_configuration.load_all=="2"&&x.find(".asl-reload-map").find("i").removeClass("animate-spin"),not_initial_load||asl_locator.add_clear_button(ie),asl_configuration.scroll_field&&(asl_configuration.scroll_field=asl_configuration.scroll_field?asl_configuration.scroll_field:"state",c.scroll_data=asl_engine.helper.uniq(Ut,asl_configuration.scroll_field),c.scroll_data=asl_engine.helper.sortBy(c.scroll_data,"value",!0));var Qt=c.stores_,se=Qt[0]?Qt[0].props_.country:null;c.countries=!1;for(var t=0;t<Qt.length;t++)if(se!=Qt[t].props_.country){c.countries=!0;break}if((asl_configuration.accordion||asl_configuration.address_ddl)&&(c.stateCities=c.countries?c.getCountriesStateCities(Qt):c.getStateCities(Qt)),asl_configuration.state_restrict&&(c.all_states=asl_engine.helper.pluck("state",Ut)),!not_initial_load){not_initial_load=!0,asl_view=new asl_locator.View(map,c,{geolocation:!1,container:x,features:c.getDSFeatures()}),asl_panel=new asl_locator.Panel(x.find("#asl-panel")[0],{view:asl_view,container:x}),window.asl_view=asl_view,asl_configuration.kml_files&&c.load_kml(map),x.find("#asl-desc-agile-modal").find(".sl-close").on("click",asl_panel.hideDescModal.bind(asl_panel)),x.find("#no-stores-modal").find(".sl-close").on("click",asl_panel.hideNoStoresModal.bind(asl_panel));var e=x.find("#asl-geolocation-agile-modal");if(e.find(".sl-close").on("click",asl_panel.hideGeoModal.bind(asl_panel)),asl_configuration.prompt_location=="3"?asl_view.geolocate_():asl_configuration.prompt_location=="4"?asl_view.geo_service():asl_configuration.prompt_location!="0"&&(e.css("display","block"),window.setTimeout(function(){e.addClass("in")},300),x.find("#asl-btn-geolocation").on("click",function(){asl_view.geolocate_(),e.removeClass("in").css("display","none")}),asl_panel.geo_modal=!0),asl_configuration.prompt_location=="2"){let Q=function(T){asl_locator.hook_event({type:"before_search",data:T}),asl_view.measure_distance(T.geometry.location,!0,null,T),e.removeClass("in").css("display","none"),T.search_text=o.val(),asl_locator.hook_event({type:"search",data:T}),asl_view.add_search_text(T.search_text)},ot=function(){var T=$.trim(o.val());if(T){var I={address:T};if(asl_configuration.country_restrict){var q=asl_configuration.country_restrict.toLowerCase();q=q.split(","),I.componentRestrictions={country:q[0]}}u.geocode(I,_)}};var m=Q,H=ot,o=x.find("#asl-current-loc"),s=null,u=asl_locator.getSearchProvider(),_=_||function(T,I){I=="OK"?(s=T[0],Q(s)):asl_panel.handleGeocodeFailure(I)};if(o.on("keyup",function(T){T.keyCode==13&&ot()}),x.find("#asl-btn-locate").on("click",function(T){if(s){Q(s);return}else ot()}),asl_locator.resolveSearchProvider()!=="disabled"){var b=asl_use_new_place_api(asl_configuration),h={};!b&&asl_configuration.google_search_type&&(h.types=["("+asl_configuration.google_search_type+")"]);var g=b?["location","formattedAddress"]:["geometry"];asl_configuration.filter_address&&g.push(b?"addressComponents":"address_components"),new asl_locator.AddressAPI(o[0],{googleOptions:h,newGoogleOptions:{},countries:asl_get_country_restrictions(asl_configuration),fields:g,map:asl_view.getMap(),onSelect:function(T){s=T,s&&(s.search_text=o.val())}})}}x.find(".asl-geolocate-btn,.asl-geo-event").on("click",function(Q){asl_view.geolocate_()}),asl_configuration.address_ddl&&asl_panel.address_dropdowns(c.stateCities,c.countries),asl_configuration.user_center&&asl_view.measure_distance(new ASLLatLng(
14asl_configuration.default_lat,asl_configuration.default_lng))}if(asl_configuration.load_all!="1"&&asl_view.dest_coords&&asl_view.measure_distance(asl_view.dest_coords,null,!0),asl_view.refreshView(),x.find(".asl-overlay").hide(),n&&map.panTo(n),c.on_call=!1,window.asl_loaded&&typeof window.asl_loaded=="function"&&asl_loaded.call(this),asl_configuration.load_all=="1"){var k=window.location.hash.replace("#","");k&&!isNaN(k)&&window.setTimeout(function(){var Q=asl_view.data_.findStore(k);asl_view.highlight(Q)},500)}asl_locator.hook_event({type:"load",data:null}),d&&typeof d=="function"&&d.call(this)}},error:function(Ut,ie){B===c.fetchGeneration_&&(c.on_call=!1,ie!=="abort"&&x.find(".asl-overlay").hide())},dataType:"json"}),c.pos=It},asl_engine.dataSource.prototype.schedule_remote_fetch=function(n){var r=this;window.clearTimeout(this.remoteFetchTimer_),this.remoteFetchTimer_=window.setTimeout(function(){r.remoteFetchTimer_=null,r.fetch_remote_data(n)},200)},asl_engine.dataSource.prototype.load_locator=function(){var that=this;function mapControlEnabled(n,r){return n==null||n===""?r:n===!0||n===1||n==="1"||n==="true"}if(!document.getElementById("asl-map-canv"))return!1;var maps_params={center:new ASLLatLng(asl_lat,asl_lng),zoom:parseInt(asl_configuration.zoom),gestureHandling:asl_configuration.gesture_handling||"cooperative",mapTypeId:asl_configuration.map_type};if(asl_configuration.scroll_wheel!==null&&(maps_params.scrollwheel=asl_configuration.scroll_wheel),asl_configuration.advanced_marker&&(maps_params.mapId=asl_configuration.map_id||"asl-maps-id-tag"),maps_params.zoomControl=mapControlEnabled(asl_configuration.zoomcontrol,!0),maps_params.cameraControl=mapControlEnabled(asl_configuration.cameracontrol,!1),maps_params.mapTypeControl=mapControlEnabled(asl_configuration.maptypecontrol,!0),maps_params.fullscreenControl=mapControlEnabled(asl_configuration.fullscreencontrol,!0),maps_params.streetViewControl=mapControlEnabled(asl_configuration.streetviewcontrol,!0),maps_params.cameraControl&&(maps_params.zoomControl=!1),asl_configuration.scalecontrol=="false"&&(maps_params.scaleControl=!1),asl_configuration.rotatecontrol=="false"&&(maps_params.rotateControl=!1),maps_params.fullscreenControlOptions={position:ASLControlPosition.RIGHT_CENTER},asl_configuration.position_maptype&&(maps_params.mapTypeControlOptions={position:parseInt(asl_configuration.position_maptype)}),asl_configuration.position_fullscreen&&(maps_params.fullscreenControlOptions={position:parseInt(asl_configuration.position_fullscreen)}),asl_configuration.position_zoom&&(maps_params.zoomControlOptions={position:parseInt(asl_configuration.position_zoom)}),asl_configuration.position_streetview&&(maps_params.streetViewControlOptions={position:parseInt(asl_configuration.position_streetview)}),asl_configuration.maxzoom&&!isNaN(asl_configuration.maxzoom)&&(maps_params.maxZoom=parseInt(asl_configuration.maxzoom)),asl_configuration.minzoom&&!isNaN(asl_configuration.minzoom)&&(maps_params.minZoom=parseInt(asl_configuration.minzoom)),asl_locator.isMapLibre()){var provider_error=asl_locator.get_map_provider_error();if(provider_error)return asl_locator.show_map_error(provider_error),!1;try{map=new asl_locator.MapLibreMap(document.getElementById("asl-map-canv"),maps_params)}catch(n){return asl_locator.show_map_error(n&&n.message?n.message:"The selected map provider could not be loaded."),!1}}else map=new google.maps.Map(document.getElementById("asl-map-canv"),maps_params);if(window.asl_map=map,asl_configuration.reset_button=!0,asl_configuration.reset_button){let n=function(r,d){$reset_btn=$('<span class="asl-reset-map" style="display:none">'+asl_configuration.words.reset_map+"</span>"),r.appendChild($reset_btn[0]),$reset_btn[0].addEventListener("click",function(){asl_view.reset_all(),$reset_btn[0].style.display="none"})};var ASLResetMAP=n,$reset_btn=null,centerControlDiv=document.createElement("div"),centerControl=new n(centerControlDiv,map
14);centerControlDiv.index=1,map.controls[ASLControlPosition.TOP_RIGHT].push(centerControlDiv)}if(!asl_locator.isMapLibre()&&!asl_configuration.advanced_marker&&asl_configuration.map_layout){var map_style=eval("("+asl_configuration.map_layout+")");map.set("styles",map_style)}window._asl_map_customize&&(_asl_map_customize=JSON.parse(_asl_map_customize),asl_configuration.advanced_marker&&(_asl_map_customize.marker_animations=!1),!asl_locator.isMapLibre()&&_asl_map_customize.trafic_layer&&_asl_map_customize.trafic_layer==1&&(trafic_layer=new google.maps.TrafficLayer,trafic_layer.setMap(map)),!asl_locator.isMapLibre()&&_asl_map_customize.bike_layer&&_asl_map_customize.bike_layer==1&&(bike_layer=new google.maps.BicyclingLayer,bike_layer.setMap(map)),!asl_locator.isMapLibre()&&_asl_map_customize.transit_layer&&_asl_map_customize.transit_layer==1&&(transit_layer=new google.maps.TransitLayer,transit_layer.setMap(map)),!asl_locator.isMapLibre()&&_asl_map_customize.drawing&&asl_drawing.loadData(_asl_map_customize.drawing,map));var _features=[];for(var i in asl_categories){var cat=asl_categories[i];cat.id&&cat.name&&that.FEATURES_.add(new asl_locator.Feature(cat.id,cat.name,cat.icon,cat.ordr&&!isNaN(cat.ordr)?parseInt(cat.ordr):0))}if(asl_configuration.load_all=="1")that.fetch_remote_data();else if(asl_configuration.load_all=="2"){let n=function(c,x){$reload_btn=$('<span class="asl-reload-map" display="none"><i class="icon-arrows-cw"></i>'+asl_configuration.words.reload_map+"</span>"),c.appendChild($reload_btn[0]),$reload_btn[0].addEventListener("click",function(){$reload_btn.find("i").addClass("animate-spin"),that.fetch_remote_data(_set_position)})};var ASLReloadMAP=n,$reload_btn=null,_set_position=null,first_loaded=!1,centerControlDiv=document.createElement("div"),centerControl=new n(centerControlDiv,map
14);centerControlDiv.index=1,map.controls[ASLControlPosition.TOP_CENTER].push(centerControlDiv),ASLEvent.addListener(map,"idle",function(){asl_view&&asl_view.halt_fetch&&(_set_position=asl_view.marker_center,asl_view.halt_fetch=!1),$reload_btn[0].style.display="block",first_loaded||(first_loaded=!0,that.fetch_remote_data())})}else ASLEvent.addListener(map,"idle",function(){var n=null;if(asl_view&&asl_view.halt_fetch){n=asl_view.marker_center,asl_view.halt_fetch=!1;return}that.schedule_remote_fetch(n)})},asl_engine.dataSource.prototype.FEATURES_=new asl_locator.FeatureSet,asl_engine.dataSource.prototype.getDSFeatures=function(){return this.FEATURES_},asl_engine.dataSource.prototype.filterBranches=function(n,r,d){for(var c=[],x=0,B;B=n[x];x++)r.indexOf(B.id_)!=-1&&(n[x].props_.branch=!0,n[x].parent_store=d,c.push(n[x]));return c},asl_engine.dataSource.prototype.addChildrenFeatures=function(){for(var n in asl_categories)if(asl_categories.hasOwnProperty(n)&&asl_categories[n].children.length)for(var r=0;r<asl_categories[n].children.length;r++){var d=asl_categories[n].children[r];this.FEATURES_.add(new asl_locator.Feature(d.id,d.name,d.icon,d.ordr&&!isNaN(d.ordr)?parseInt(d.ordr):0))}},asl_engine.dataSource.prototype.parseData=function(n){var r=[],d=asl_date.getHours()+asl_date.getMinutes()/100,V=asl_date.getDay(),c=asl_categories;asl_categories={};var x=Object.keys(c);for(var B in x)typeof c[x[B]]=="object"&&(asl_categories[String(x[B])]=c[x[B]],[x[B]].len=0);var ct={1:"mon",2:"tue",3:"wed",4:"thu",5:"fri",6:"sat",0:"sun"},Z=["mon","tue","wed","thu","fri","sat","sun"],V=ct[V],ft=new Date,ht={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},It=asl_configuration.week_hours=="2";function mt(){this.start=null,this.end=null,this.hours=[]}function Dt(v){if(v.open_hours){v.open=!1,v.days=[],v.open_hours=JSON.parse(v.open_hours);var M=asl_configuration.days,w=It?{}:[],E=function(Ht){var O=v.open_hours[Ht+"_label"];return typeof O!="string"||(O=$.trim(O),!O)?"":'<span class="asl-day-note">'+asl_engine.helper.html_entites(O)+"</span>"};for(var K in Z){var N=Z[K],W=v.open_hours[N],tt=N==V,et=E(N);if(W=="1")tt&&(v.open=!0),v.days.push(M[N]),It||w.push('<span class="asl-lbl-day-hr"><span class="asl-day-lbl">'+M[N]+':</span><span class="asl-time-hrs">'+asl_configuration.words.opened+et+"</span></span>");else if(W=="0")tt&&(v.open=!1),asl_configuration.closed_label?It?(w[N]=[asl_configuration.words.closed],et&&w[N].push(et)):w.push('<span class="asl-lbl-day-hr"><span class="asl-day-lbl">'+M[N]+':</span><span class="asl-time-hrs">'+asl_configuration.words.closed+"</span>"+et+"</span>"):et&&(It?w[N]=[et]:w.push('<span class="asl-lbl-day-hr"><span class="asl-day-lbl">'+M[N]+':</span><span class="asl-time-hrs">'+et+"</span></span>"));else if(W){v.days.push(M[N]);var Y=[];for(var Ct in W)if(W.hasOwnProperty(Ct)){var At=W[Ct].split(" - "),ut=At[0],R=At[1],X=ut!=0?asl_engine.helper.asl_timeConvert(ut):0,j=R!=0?asl_engine.helper.asl_timeConvert(R):24;if(j==0&&(j=24),!v.open)if(X<j)!v.open&&tt&&(v.open=X&&j?asl_engine.helper.between(d,X,j):!1);else{var z=24-X+j,G=new Date;G.setHours(Math.floor(X)),G.setMinutes(getDecimal(X)),ft.getDay()!=ht[N]&&G.subDays(1);var St=new Date(G.getTime());St.addHours(z),St.setMinutes(getDecimal(j)),ft>G&&ft<St&&(v.open=!0)}
14if(asl_configuration.time_24){X+=.01,X=parseFloat(X).toFixed(2);var bt=String(X).split(".");bt[0]=asl_engine.helper.asl_leadzero(parseInt(bt[0])),bt[1]=asl_engine.helper.asl_leadzero(parseInt(bt[1])-1),ut=bt.join(":"),j+=.01,j=parseFloat(j).toFixed(2);var Et=String(j).split(".");Et[0]=asl_engine.helper.asl_leadzero(parseInt(Et[0])),Et[1]=asl_engine.helper.asl_leadzero(parseInt(Et[1])-1),R=Et.join(":")}else{var Ft=ut.split(":"),Bt=R.split(":");Ft[0]&&(Ft[0]=asl_engine.helper.asl_leadzero(parseInt(Ft[0]))),ut=Ft.join(":"),Bt[0]&&(Bt[0]=asl_engine.helper.asl_leadzero(parseInt(Bt[0]))),R=Bt.join(":"),ut=ut.replace("AM",asl_configuration.words.am).replace("PM",asl_configuration.words.pm),R=R.replace("AM",asl_configuration.words.am).replace("PM",asl_configuration.words.pm)}Y.push(ut+" - "+R)}et&&Y.push(et),It?w[N]=Y:w.push('<span><span class="asl-day-lbl">'+M[N]+':</span><span class="asl-time-hrs">'+Y.map(function(Ht){return"<span>"+Ht+"</span>"}).join("")+"</span></span>")}else et&&(It?w[N]=[et]:w.push('<span><span class="asl-day-lbl">'+M[N]+':</span><span class="asl-time-hrs">'+et+"</span></span>"))}if(It){for(var oe=[],jt=null,Rt=!1,Wt=0;Wt<Z.length;Wt++)!jt||Rt||JSON.stringify(jt.hours)!=JSON.stringify(w[Z[Wt]])?w[Z[Wt]]?(jt=new mt,jt.start=Z[Wt],jt.hours=w[Z[Wt]],oe.push(jt),Rt=!1):Rt=!0:jt.end=Z[Wt];if(oe.length>0){var Gt="";oe.forEach(function(Ht){Gt+='<span class="asl-group-slots"><span class="asl-day-lbl">'+M[Ht.start]+(Ht.end?" - "+M[Ht.end]:"")+':</span><span class="asl-time-hrs">'+Ht.hours.map(function(O){return"<span>"+O+"</span>"}).join("")+"</span></span>"})}v.open_hours=Gt}else v.open_hours=w.length>0?'<span class="asl-week-hrs">'+w.join("")+"</span>":null;v.days=v.days.join(", ")}else v.open=!0}function kt(v){if(v.open_hours){v.open=!1,v.open_hours=JSON.parse(v.open_hours);var M=v.open_hours[V],w=v.open_hours[V+"_label"],E="";if(typeof w=="string"&&(w=$.trim(w),w&&(E='<span class="asl-day-note">'+asl_engine.helper.html_entites(w)+"</span>")),v.open_hours=null,M=="1")v.open=!0,v.open_hours=E||null;else if(M=="0")v.open=!1,v.open_hours=E||null;else if(M){v.open_hours=[];for(var K in M)if(M.hasOwnProperty(K)){var N=M[K].split(" - "),W=N[0],tt=N[1],et=W!=0?asl_engine.helper.asl_timeConvert(W):0,Y=tt!=0?asl_engine.helper.asl_timeConvert(tt):24;if(Y==0&&(Y=24),!v.open)if(et<Y)v.open||(v.open=et&&Y?asl_engine.helper.between(d,et,Y):!1);else{var Ct=24-et+Y,At=new Date;At.setHours(Math.floor(et)),At.setMinutes(getDecimal(et)),ft.getDay()!=ht[V]&&At.subDays(1);var ut=new Date(At.getTime());ut.addHours(Ct),ut.setMinutes(getDecimal(Y)),ft>At&&ft<ut&&(v.open=!0)}if(asl_configuration.time_24){et+=.01,et=parseFloat(et).toFixed(2);var R=String(et).split(".");R[0]=asl_engine.helper.asl_leadzero(parseInt(R[0])),R[1]=asl_engine.helper.asl_leadzero(parseInt(R[1])-1),W=R.join(":"),Y+=.01,Y=parseFloat(Y).toFixed(2);var X=String(Y).split(".");X[0]=asl_engine.helper.asl_leadzero(parseInt(X[0])),X[1]=asl_engine.helper.asl_leadzero(parseInt(X[1])-1),tt=X.join(":")}else{var j=W.split(":"),z=tt.split(":");j[0]&&(j[0]=asl_engine.helper.asl_leadzero(parseInt(j[0]))),W=j.join(":"),z[0]&&(z[0]=asl_engine.helper.asl_leadzero(parseInt(z[0]))),tt=z.join(":"),W=W.replace("AM",asl_configuration.words.am).replace("PM",asl_configuration.words.pm),tt=tt.replace("AM",asl_configuration.words.am).replace("PM",asl_configuration.words.pm)}v.open_hours.push(W+" - "+tt)}E&&v.open_hours.push(E),v.open_hours=v.open_hours.length>0?v.open_hours.join(" <br> "):null}else E&&(v.open_hours=E)}else v.open=!0}var Nt=asl_configuration.show_categories||asl_configuration.category_accordion,Ut=asl_configuration.query_redirect_url?String(asl_configuration.query_redirect_url).trim():"",ie=function(v){if(!v)return"";var M=String(v).toLowerCase().trim();return M.normalize&&(M=M.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),M=M.replace(/&/g," and "),M=M.replace(/[^a-z0-9]+/g,"-"),M=M.replace(/^-+|-+$/g,""),M},Qt=function(v,M){if(!v||!M)return"";var w=v.split("#")[0].split("?")[0],E=ie(M);return E?(w.slice(-1)!=="/"&&(w+="/"),w+E+"/"):""},se=asl_configuration.slug_link=="1",t=asl_configuration.rewrite_slug+"/",e=!!(asl_configuration.link_type=="1"&&asl_configuration.rewrite_slug),o=asl_configuration.additional_info!="0",s=asl_configuration.additional_info=="2",u=asl_configuration.template=="1",_=Object.keys(asl_attributes)||null,b=asl_configuration.sort_by=="cat",h=!1;b&&(h=Object.values(asl_categories).some(function(v){return parseInt(v.ordr)>0}));var g=asl_configuration.has_child_categories?asl_engine.helper.flattenCategories(asl_categories):asl_categories;(asl_configuration.image_filter||asl_configuration.category_marker)&&(this.flat_categories=g);for(var k=0;k<n.length;k++){var m=n[k];if(m.id=parseInt(m.id),m.ordr=!m.ordr||isNaN(m.ordr)?0:parseInt(m.ordr),m.lat=parseFloat(m.lat),m.lng=parseFloat(m.lng),m.logo_id=m.logo_id&&!isNaN(m.logo_id)?parseInt(m.logo_id):m.logo_id,!Number.isFinite(m.lat)||!Number.isFinite(m.lng)||m.lat<-90||m.lat>90||m.lng<-180||m.lng>180){asl_configuration.debug=="1"&&window.console&&console.warn("ASL skipped a store with invali
14d coordinates.",{id:m.id,lat:m.lat,lng:m.lng});continue}var H=new ASLLatLng(m.lat,m.lng);m.open_hours=m.open_hours?m.open_hours:null,m.state||(m.state="");var Q=asl_engine.helper.implode([m.city,m.state,m.postal_code],", "),ot=[m.street,Q];u&&ot.shift(),m.address=asl_engine.helper.implode(ot," <br>");var T=m.categories?m.categories.split(","):[],I=[];if(Nt){var q=[],at=[],it=[];for(var vt in T){var Lt=T[vt].toString();g[Lt]?(g[Lt].len++,I.push(g[Lt]),q.push(g[Lt].name),at.push(g[Lt].id),it.push(g[Lt].id),asl_configuration.has_child_categories&&(g[Lt].children.length?it=asl_engine.helper.uniqe_merge(it,asl_engine.helper.pluck("id",g[Lt].children)):it=asl_engine.helper.uniqe_merge(it,g[Lt].value))):delete T[vt]}asl_configuration.has_child_categories&&(T=it),b&&(I.length>1&&h&&(I=I.sort(function(v,M){return parseInt(M.ordr)-parseInt(v.ordr)})),h?m.cat=I&&I[0]?parseInt(I[0].ordr):-1:m.cat=I&&I[0]?I[0].name:"z"),m.c_ids=at,m.c_names=asl_engine.helper.implode(q,", "),m.categories=I,m.display_categories=I.filter(function(v){return v&&String(v.name||"").trim()!==""})}if(_)for(var Ot in _){var dt=_[Ot],rt=m[dt]?m[dt].split(","):[];m[dt]=rt;var gt=[];for(var zt in rt)rt.hasOwnProperty(zt)&&asl_attributes[dt][rt[zt]]&>.push(asl_attributes[dt][rt[zt]].name);gt.length&&(m["str_"+dt]=gt.join(", "))}m.city=m.city?String(m.city).trim():"",m.country=m.country?String(m.country).trim():"",m.state||(m.state=""),m.marker_id=m.marker_id?m.marker_id.toString():"",asl_configuration.hide_hours?m.days_str=m.open_hours=null:asl_configuration.week_hours=="0"?kt(m):Dt(m),asl_configuration.hide_logo&&(m.path=null),o?m.desc_link=s:m.description=null,se&&(m.link=e?t+m.slug+"/":m.website),Ut&&(m.city_url=Qt(Ut,m.city),m.state_url=Qt(Ut,m.state));var y=new asl_locator.Store(m.id,H,T,m);r.push(y)}if(asl_configuration.branches){for(var S=0;S<r.length;S++)if(r[S].props_.childs){var L=r[S].props_.childs.split(",");r[S].props_.childs=this.filterBranches(r,L.map(Number),r[S]),r[S].props_.have_childs=!0}}return r};var data_source=new asl_engine.dataSource;data_source.getClosestBranch=function(n){for(var r=n,d=n.props_.distance,c=0;c<n.props_.childs.length;c++)n.props_.childs[c].props_.distance<d&&(d=n.props_.childs[c].props_.distance,r=n.props_.childs[c]);return[d,r]},data_source.getStores=function(n,r,d){for(var c=this,x=[],B=asl_configuration.and_filter?"hasAllCategory":"hasAnyCategory",ct=c.parent_store?c.parent_store.props_.childs.concat(c.parent_store):this.stores_,Z=0,V;V=ct[Z];Z++)V[B](r)&&x.push(V);d(x)},data_source.setBranchList=function(n){if(!n){this.parent_store&&(this.parent_store.props_.branch=null,this.parent_store.props_.have_childs=!0,this.parent_store.content_=null,asl_locator.Store.infoPanelCache_[this.parent_store.id_]=null),this.parent_store=null;return}this.parent_store=n,this.parent_store.props_.branch=!0,this.parent_store.props_.have_childs=void 0,this.parent_store.content_=null,asl_locator.Store.infoPanelCache_[this.parent_store.id_]=null},data_source.getActiveStoreList=function(){return this.parent_store?this.parent_store.props_.childs:this.stores_},data_source.findStore=function(n){n=parseInt(n);for(var r=0,d;d=this.stores_[r];r++)if(d.id_==n)return d;return null},data_source.allStores=function(){return this.stores_};function getSafariVersion(){const n=navigator.userAgent,r=n.match(/Version\/(\d+\.\d+)/);return!!n.match(/Safari/)&&!n.match(/Chrome/)&&r?parseFloat(r[1]):null}const safariVersion=getSafariVersion();safariVersion&&safariVersion<15.4&&console.warn(`Warning! Older version of Safari detected (Version: ${safariVersion}).`),!asl_locator.isMapLibre()&&asl_configuration.advanced_marker?google.maps.importLibrary("marker").then(function(){data_source.load_locator()}):data_source.load_locator()})(jQuery)}jQuery(function(){asl_store_locator()});
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.