1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function($,Drupal){"use strict";Drupal.geolocation=Drupal.geolocation||{};Drupal.geolocation.maps=Drupal.geolocation.maps||[];Drupal.geolocation.mapCenter=Drupal.geolocation.mapCenter||{};function GeolocationMapBase(mapSettings){this.settings=mapSettings.settings||{};this.wrapper=mapSettings.wrapper;this.container=mapSettings.wrapper.find(".geolocation-map-container").first();if(this.container.length!==1)throw "Geolocation - Map container not found";this.initialized=false;this.populated=false;this.lat=mapSettings.lat;this.lng=mapSettings.lng;if(typeof mapSettings.id==="undefined")this.id="map"+Math.floor(Math.random()*10000);else this.id=mapSettings.id;this.mapCenter=mapSettings.map_center;this.mapMarkers=this.mapMarkers||[];this.mapShapes=this.mapShapes||[];return this;}GeolocationMapBase.prototype={addControl:function(element){},removeControls:function(){},getZoom:function(){},setZoom:function(zoom,defer){},getCenter:function(){},setCenter:function(){if(typeof this.wrapper.data("preserve-map-center")!=="undefined")return;this.setZoom();this.setCenterByCoordinates({lat:this.lat,lng:this.lng});if(typeof this.mapCenter!=="undefined"){var that=this;var centerOptions=Object.keys(that.mapCenter).map(function(item){return that.mapCenter[item];}).sort(function(a,b){return a.weight-b.weight;});centerOptions.some(function(centerOption){if(typeof Drupal.geolocation.mapCenter[centerOption.map_center_id]==="function")return Drupal.geolocation.mapCenter[centerOption.map_center_id](that,centerOption);});}},setCenterByCoordinates:function(coordinates,accuracy,identifier){this.centerUpdatedCallback(coordinates,accuracy,identifier);},setMapMarker:function(marker){this.mapMarkers.push(marker);this.markerAddedCallback(marker);},removeMapMarker:function(marker){var that=this;$.each(this.mapMarkers,function(index,item){if(item===marker){that.markerRemoveCallback(marker);that.mapMarkers.splice(Number(index),1);}});},removeMapMarkers:function(){this.mapMarkers.filter((item)=>typeof item!=='undefined').forEach((marker)=>this.removeMapMarker(marker));},addShape:function(shape){this.mapShapes.push(shape);},removeShape:function(shape){var that=this;$.each(this.mapShapes,function(index,item){if(item===shape)that.mapShapes.splice(Number(index),1);});},removeShapes:function(){this.mapShapes.filter((item)=>typeof item!=='undefined').forEach((shape)=>this.removeShape(shape));},fitMapToMarkers:function(markers,identifier){var boundaries=this.getMarkerBoundaries();if(boundaries===false)return false;this.fitBoundaries(boundaries,identifier);},getMarkerBoundaries:function(markers){},fitBoundaries:function(boundaries,identifier){this.centerUpdatedCallback(this.getCenter(),null,identifier);},clickCallback:function(location){this.clickCallbacks=this.clickCallbacks||[];$.each(this.clickCallbacks,function(index,callback){callback(location);});},addClickCallback:function(callback){this.clickCallbacks=this.clickCallbacks||[];this.clickCallbacks.push(callback);},doubleClickCallback:function(location){this.doubleClickCallbacks=this.doubleClickCallbacks||[];$.each(this.doubleClickCallbacks,function(index,callback){callback(location);});},addDoubleClickCallback:function(callback){this.doubleClickCallbacks=this.doubleClickCallbacks||[];this.doubleClickCallbacks.push(callback);},contextClickCallback:function(location){this.contextClickCallbacks=this.contextClickCallbacks||[];$.each(this.contextClickCallbacks,function(index,callback){callback(location);});},addContextClickCallback:function(callback){this.contextClickCallbacks=this.contextClickCallbacks||[];this.contextClickCallbacks.push(callback);},initializedCallback:function(){this.initializedCallbacks=this.initializedCallbacks||[];while(this.initializedCallbacks.length>0)this.initializedCallbacks.shift()(this);this.initialized=true;},addInitializedCallback:function(callback){if(this.initialized)callback(this);else{this.initializedCallbacks=this.initializedCallbacks||[];this.initializedCallbacks.push(callback);}},updatedCallback:function(mapSettings){var that=this;this.updatedCallbacks=this.updatedCallbacks||[];this.updatedCallbacks.forEach(function(callback){callback(that,mapSettings);});},addUpdatedCallback:function(callback){this.updatedCallbacks=this.updatedCallbacks||[];this.updatedCallbacks.push(callback);}
2,boundsChangedCallback:function(bounds){this.boundsChangedCallbacks=this.boundsChangedCallbacks||[];$.each(this.boundsChangedCallbacks,function(index,callback){callback(bounds);});},addBoundsChangedCallback:function(callback){this.boundsChangedCallbacks=this.boundsChangedCallbacks||[];this.boundsChangedCallbacks.push(callback);},centerUpdatedCallback:function(coordinates,accuracy,identifier){this.centerUpdatedCallbacks=this.centerUpdatedCallbacks||[];$.each(this.centerUpdatedCallbacks,function(index,callback){callback(coordinates,accuracy,identifier);});},addCenterUpdatedCallback:function(callback){this.centerUpdatedCallbacks=this.centerUpdatedCallbacks||[];this.centerUpdatedCallbacks.push(callback);},markerAddedCallback:function(marker){this.markerAddedCallbacks=this.markerAddedCallbacks||[];$.each(this.markerAddedCallbacks,function(index,callback){callback(marker);});},addMarkerAddedCallback:function(callback,existing){existing=existing||true;if(existing)$.each(this.mapMarkers,function(index,marker){callback(marker);});this.markerAddedCallbacks=this.markerAddedCallbacks||[];this.markerAddedCallbacks.push(callback);},markerRemoveCallback:function(marker){this.markerRemoveCallbacks=this.markerRemoveCallbacks||[];$.each(this.markerRemoveCallbacks,function(index,callback){callback(marker);});},addMarkerRemoveCallback:function(callback){this.markerRemoveCallbacks=this.markerRemoveCallbacks||[];this.markerRemoveCallbacks.push(callback);},populatedCallback:function(){this.populatedCallbacks=this.populatedCallbacks||[];while(this.populatedCallbacks.length>0)this.populatedCallbacks.shift()(this);this.populated=true;},addPopulatedCallback:function(callback){if(this.populated)callback(this);else{this.populatedCallbacks=this.populatedCallbacks||[];this.populatedCallbacks.push(callback);}},loadMarkersFromContainer:function(){var locations=[];this.wrapper.find(".geolocation-location").each(function(index,locationWrapperElement){var locationWrapper=$(locationWrapperElement);var position={lat:Number(locationWrapper.data("lat")),lng:Number(locationWrapper.data("lng"))};var location={position,title:locationWrapper.find(".location-title").text().trim(),setMarker:true,locationWrapper};if(typeof locationWrapper.data("icon")!=="undefined")location.icon=locationWrapper.data("icon").toString();if(typeof locationWrapper.data("label")!=="undefined")location.label=locationWrapper.data("label").toString();if(locationWrapper.data("set-marker")==="false")location.setMarker=false;locations.push(location);});return locations;},loadShapesFromContainer:function(){var shapes=[];this.wrapper.find(".geolocation-shape").each(function(index,shapeWrapperElement){var shapeWrapper=$(shapeWrapperElement);var meta=shapeWrapper.find('span[typeof="GeoShape"] meta').first();if(meta.length===0)return;var type=meta.attr("property").toString();var coordinates=[];$.each(meta.attr("content").toString().split(" "),function(index,rawCoordinate){var coordinate=rawCoordinate.split(",");if(coordinate[0].length===0||coordinate[1].length===0)return;coordinates.push({lat:parseFloat(coordinate[0]),lng:parseFloat(coordinate[1])});});var shape={coordinates,shape:type,shapeWrapper};switch(type){case "line":shape.title=shapeWrapper.find(".polyline-title").text().trim();break;case "polygon":shape.title=shapeWrapper.find(".polygon-title").text().trim();if(typeof shapeWrapper.data("fillColor")!=="undefined")shape.fillColor=shapeWrapper.data("fillColor").toString();if(typeof shapeWrapper.data("fillOpacity")!=="undefined")shape.fillOpacity=parseFloat(shapeWrapper.data("fillOpacity").toString());break;}if(typeof shapeWrapper.data("strokeColor")!=="undefined")shape.strokeColor=shapeWrapper.data("strokeColor").toString();if(typeof shapeWrapper.data("strokeWidth")!=="undefined")shape.strokeWidth=parseInt(shapeWrapper.data("strokeWidth").toString());if(typeof shapeWrapper.data("strokeOpacity")!=="undefined")shape.strokeOpacity=parseFloat(shapeWrapper.data("strokeOpacity").toString());shapes.push(shape);});return shapes;},boundariesNormalized:function(boundaries){if(typeof boundaries.north==="number"&&typeof boundaries.east==="number"&&typeof boundaries.south==="number"&&typeof boundaries.west==="number")return true;return false;}
2,normalizeBoundaries:function(boundaries){var that=this;if(that.boundariesNormalized(boundaries))return boundaries;if(typeof boundaries.north!=="undefined"&&typeof boundaries.south!=="undefined"&&typeof boundaries.east!=="undefined"&&typeof boundaries.west!=="undefined"){var castBoundaries={north:Number(boundaries.north),east:Number(boundaries.east),south:Number(boundaries.south),west:Number(boundaries.west)};if(that.boundariesNormalized(castBoundaries))return castBoundaries;}$.each(Drupal.geolocation.MapProviders,function(type,name){if(typeof Drupal.geolocation[name].prototype.normalizeBoundaries!=="undefined")var normalizedBoundaries=Drupal.geolocation[name].prototype.normalizeBoundaries.call(null,boundaries);if(that.boundariesNormalized(normalizedBoundaries)){boundaries=normalizedBoundaries;return false;}});if(that.boundariesNormalized(boundaries))return boundaries;return false;}};Drupal.geolocation.GeolocationMapBase=GeolocationMapBase;function Factory(mapSettings,reset){reset=reset||false;mapSettings.type=mapSettings.type||"google_maps";var map=null;var existingMap=Drupal.geolocation.getMapById(mapSettings.id);if(reset===true||!existingMap){if(typeof Drupal.geolocation[Drupal.geolocation.MapProviders[mapSettings.type]]!=="undefined"){var mapProvider=Drupal.geolocation[Drupal.geolocation.MapProviders[mapSettings.type]];map=new mapProvider(mapSettings);Drupal.geolocation.maps.push(map);}}else{map=existingMap;map.updatedCallback(mapSettings);}if(!map){console.error("Map could not be initialized.");return false;}if(typeof map.container==="undefined"){console.error("Map container not set.");return false;}if(map.container.length!==1){console.error("Map container not unique.");return false;}return map;}Drupal.geolocation.Factory=Factory;Drupal.geolocation.MapProviders={};Drupal.geolocation.addMapProvider=function(type,name){Drupal.geolocation.MapProviders[type]=name;};Drupal.geolocation.getMapById=function(id){var map=false;$.each(Drupal.geolocation.maps,function(index,currentMap){if(currentMap.id===id)map=currentMap;});if(!map)return false;if(typeof map.container==="undefined"){console.error("Existing map container not set.");return false;}if(map.container.length!==1){console.error("Existing map container not unique.");return false;}return map;};Drupal.geolocation.executeFeatureOnAllMaps=function(featureId,callback,drupalSettings){if(typeof drupalSettings.geolocation==="undefined")return false;$.each(drupalSettings.geolocation.maps,function(mapId,mapSettings){if(typeof mapSettings[featureId]==="undefined")return;if(!mapSettings[featureId].enable)return;var map=Drupal.geolocation.getMapById(mapId);if(!map)return;map.features=map.features||{};map.features[featureId]=map.features[featureId]||{};if(typeof map.features[featureId].executed==="undefined")map.features[featureId].executed=false;if(map.features[featureId].executed)return;map.addPopulatedCallback(function(map){if(map.features[featureId].executed)return;var result=callback(map,mapSettings[featureId]);if(result===true)map.features[featureId].executed=true;});});};})(jQuery,Drupal);; 3(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label"> </div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description"> </div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 4/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 5loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}
5function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();; 6/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 7Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};; 8(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);; 9((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){Array.prototype.forEach.call(this.messageWrapper.querySelectorAll('[data-drupal-message-id]'),(message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>
9{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);; 10(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={};elementSettings.url=$(el.form).attr('action');elementSettings.setClick=true;elementSettings.event='click';elementSettings.progress={type:'throbber'};elementSettings.base=el.id;elementSettings.element=el;Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element&&this.element.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=$.parseJSON(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
10$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber"> </div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen"> </div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
10d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
10$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){if(typeof response.data==='string'){Drupal.deprecationError({message:'Passing a string to the Drupal.ajax.add_css() method is deprecated in 10.1.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3154948.'});$('head').prepend(response.data);return;}const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;
10if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&settings.isInProgress&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);; 11(function($,Drupal){"use strict";Drupal.behaviors.geolocationMap={attach:function(context,drupalSettings){$(once("geolocation-map-processed",".geolocation-map-wrapper")).each(function(index,item){var mapWrapper=$(item);var mapSettings={};var reset=false;mapSettings.id=mapWrapper.attr("id");mapSettings.wrapper=mapWrapper;if(mapWrapper.length===0)return;mapSettings.lat=0;mapSettings.lng=0;if(mapWrapper.data("centre-lat")&&mapWrapper.data("centre-lng")){mapSettings.lat=Number(mapWrapper.data("centre-lat"));mapSettings.lng=Number(mapWrapper.data("centre-lng"));}if(mapWrapper.data("map-type"))mapSettings.type=mapWrapper.data("map-type");if(typeof drupalSettings.geolocation==="undefined"){console.error("Bailing out for lack of settings.");return;}$.each(drupalSettings.geolocation.maps,function(mapId,currentSettings){if(mapId===mapSettings.id)mapSettings=$.extend(currentSettings,mapSettings);});if(mapWrapper.parent().hasClass("preview-section"))if(mapWrapper.parentsUntil("#views-live-preview").length)reset=true;var map=Drupal.geolocation.Factory(mapSettings,reset);if(!map){once.removeOnce("geolocation-map-processed",mapWrapper);return;}map.addInitializedCallback(function(map){map.removeControls();$(".geolocation-map-controls > *",map.wrapper).each(function(index,control){map.addControl(control);});map.removeMapMarkers();var locations=map.loadMarkersFromContainer();$.each(locations,function(index,location){map.setMapMarker(location);});map.removeShapes();var shapes=map.loadShapesFromContainer();$.each(shapes,function(index,shape){map.addShape(shape);});map.setCenter();map.wrapper.find(".geolocation-location").hide();});map.addUpdatedCallback(function(map,mapSettings){map.settings=$.extend(map.settings,mapSettings.settings);map.wrapper=mapSettings.wrapper;mapSettings.wrapper.find(".geolocation-map-container").replaceWith(map.container);map.lat=mapSettings.lat;map.lng=mapSettings.lng;if(typeof mapSettings.map_center!=="undefined")map.mapCenter=mapSettings.map_center;});});},detach:function(context,drupalSettings){}};})(jQuery,Drupal);; 12(function($,Drupal){'use strict';function GeolocationLeafletMap(mapSettings){var leafletPromise=new Promise(function(resolve,reject){if(typeof L==='undefined')setTimeout(function(){if(typeof L==='undefined')reject();else resolve();},1000);else resolve();});this.type='leaflet';Drupal.geolocation.GeolocationMapBase.call(this,mapSettings);var defaultLeafletSettings={zoom:10};this.settings.leaflet_settings=$.extend(defaultLeafletSettings,this.settings.leaflet_settings);this.container.css({height:this.settings.leaflet_settings.height,width:this.settings.leaflet_settings.width});var that=this;leafletPromise.then(function(){var leafletMapSettings=that.settings.leaflet_settings;leafletMapSettings.center=[that.lat||0,that.lng||0];leafletMapSettings.zoomControl=false;leafletMapSettings.attributionControl=false;leafletMapSettings.crs=L.CRS[that.settings.leaflet_settings.crs]||L.CRS.EPSG3857;var leafletMap=L.map(that.container.get(0),leafletMapSettings);var markerLayer=L.layerGroup().addTo(leafletMap);var tileLayer=L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(leafletMap);that.leafletMap=leafletMap;that.markerLayer=markerLayer;that.tileLayer=tileLayer;that.addPopulatedCallback(function(map){var singleClick;map.leafletMap.on('click',function(e){singleClick=setTimeout(function(){map.clickCallback({lat:e.latlng.lat,lng:e.latlng.lng});},500);});map.leafletMap.on('dblclick',function(e){clearTimeout(singleClick);map.doubleClickCallback({lat:e.latlng.lat,lng:e.latlng.lng});});map.leafletMap.on('contextmenu',function(e){map.contextClickCallback({lat:e.latlng.lat,lng:e.latlng.lng});});map.leafletMap.on('moveend',function(e){map.boundsChangedCallback(map.leafletMap.getBounds());});});that.initializedCallback();that.populatedCallback();}).catch(function(error){console.error(error);});}GeolocationLeafletMap.prototype=Object.create(Drupal.geolocation.GeolocationMapBase.prototype);GeolocationLeafletMap.prototype.constructor=GeolocationLeafletMap;GeolocationLeafletMap.prototype.getZoom=function(){var that=this;return new Promise(function(resolve,reject){resolve(that.leafletMap.getZoom());});};GeolocationLeafletMap.prototype.setZoom=function(zoom,defer){if(typeof zoom==='undefined')zoom=this.settings.leaflet_settings.zoom;zoom=parseInt(zoom);this.leafletMap.setZoom(zoom);};GeolocationLeafletMap.prototype.setCenterByCoordinates=function(coordinates,accuracy,identifier){Drupal.geolocation.GeolocationMapBase.prototype.setCenterByCoordinates.call(this,coordinates,accuracy,identifier);if(typeof accuracy==='undefined'){this.leafletMap.panTo(coordinates);return;}var circle=this.addAccuracyIndicatorCircle(coordinates,accuracy);this.leafletMap.fitBounds(circle.getBounds());setInterval(fadeCityCircles,300);function fadeCityCircles(){var fillOpacity=circle.options.fillOpacity;fillOpacity-=0.03;var opacity=circle.options.opacity;opacity-=0.06;if(opacity>0&&fillOpacity>0)circle.setStyle({fillOpacity,stroke:opacity});else circle.remove();}};GeolocationLeafletMap.prototype.addAccuracyIndicatorCircle=function(location,accuracy){return L.circle(location,accuracy,{interactive:false,color:'#4285F4',opacity:0.3,fillColor:'#4285F4',fillOpacity:0.15}).addTo(this.leafletMap);};
12GeolocationLeafletMap.prototype.setMapMarker=function(markerSettings){if(typeof markerSettings.setMarker!=='undefined')if(markerSettings.setMarker===false)return;if(typeof markerSettings.icon==='string')markerSettings.icon=L.icon({iconUrl:markerSettings.icon});var currentMarker=L.marker([parseFloat(markerSettings.position.lat),parseFloat(markerSettings.position.lng)],markerSettings).addTo(this.markerLayer);currentMarker.locationWrapper=markerSettings.locationWrapper;if(typeof markerSettings.label==='string')currentMarker.bindTooltip(markerSettings.label,{permanent:true,direction:'top'});Drupal.geolocation.GeolocationMapBase.prototype.setMapMarker.call(this,currentMarker);return currentMarker;};GeolocationLeafletMap.prototype.removeMapMarker=function(marker){Drupal.geolocation.GeolocationMapBase.prototype.removeMapMarker.call(this,marker);this.markerLayer.removeLayer(marker);};GeolocationLeafletMap.prototype.addShape=function(shapeSettings){if(typeof shapeSettings==='undefined')return;var coordinates=[];$.each(shapeSettings.coordinates,function(index,coordinate){coordinates.push([coordinate.lat,coordinate.lng]);});var shape;switch(shapeSettings.shape){case 'line':shape=L.polyline(coordinates,{color:shapeSettings.strokeColor,opacity:shapeSettings.strokeOpacity,weight:shapeSettings.strokeWidth});if(shapeSettings.title)shape.bindTooltip(shapeSettings.title);break;case 'polygon':shape=L.polygon(coordinates,{color:shapeSettings.strokeColor,opacity:shapeSettings.strokeOpacity,weight:shapeSettings.strokeWidth,fillColor:shapeSettings.fillColor,fillOpacity:shapeSettings.fillOpacity});if(shapeSettings.title)shape.bindTooltip(shapeSettings.title);break;}shape.addTo(this.leafletMap);Drupal.geolocation.GeolocationMapBase.prototype.addShape.call(this,shape);return shape;};GeolocationLeafletMap.prototype.removeShape=function(shape){if(typeof shape==='undefined')return;Drupal.geolocation.GeolocationMapBase.prototype.removeShape.call(this,shape);shape.remove();};GeolocationLeafletMap.prototype.getMarkerBoundaries=function(locations){locations=locations||this.mapMarkers;if(locations.length===0)return;var group=new L.featureGroup(locations);return group.getBounds();};GeolocationLeafletMap.prototype.getCenter=function(){var center=this.leafletMap.getCenter();return {lat:center.lat,lng:center.lng};};GeolocationLeafletMap.prototype.normalizeBoundaries=function(boundaries){if(boundaries instanceof L.LatLngBounds)return {north:boundaries.getNorth(),east:boundaries.getEast(),south:boundaries.getSouth(),west:boundaries.getWest()};return false;};GeolocationLeafletMap.prototype.denormalizeBoundaries=function(boundaries){if(typeof boundaries==='undefined')return false;if(boundaries instanceof L.LatLngBounds)return boundaries;if(Drupal.geolocation.GeolocationMapBase.prototype.boundariesNormalized.call(this,boundaries))return L.latLngBounds([[boundaries.south,boundaries.west],[boundaries.north,boundaries.east]]);else{boundaries=Drupal.geolocation.GeolocationMapBase.prototype.normalizeBoundaries.call(this,boundaries);if(boundaries)return L.latLngBounds([[boundaries.south,boundaries.west],[boundaries.north,boundaries.east]]);}return false;};GeolocationLeafletMap.prototype.fitBoundaries=function(boundaries,identifier){boundaries=this.denormalizeBoundaries(boundaries);if(!boundaries)return;if(!this.leafletMap.getBounds().equals(boundaries)){this.leafletMap.fitBounds(boundaries);Drupal.geolocation.GeolocationMapBase.prototype.fitBoundaries.call(this,boundaries,identifier);}};GeolocationLeafletMap.prototype.addControl=function(element){this.leafletMap.controls=this.leafletMap.controls||[];var controlElement=new (L.Control.extend({options:{position:typeof element.dataset.controlPosition==='undefined'?'topleft':element.dataset.controlPosition},onAdd:function(map){element.style.display='block';L.DomEvent.disableClickPropagation(element);return element;}}))();controlElement.addTo(this.leafletMap);this.leafletMap.controls.push(controlElement);};GeolocationLeafletMap.prototype.removeControls=function(){this.leafletMap.controls=this.leafletMap.controls||[];var that=this;$.each(this.leafletMap.controls,function(index,control){that.leafletMap.removeControl(control);});};Drupal.geolocation.GeolocationLeafletMap=GeolocationLeafletMap;Drupal.geolocation.addMapProvider('leaflet','GeolocationLeafletMap');})(jQuery,Drupal);; 13(function(Drupal){'use strict';Drupal.behaviors.leafletControlAttribution={attach:function(context,drupalSettings){Drupal.geolocation.executeFeatureOnAllMaps('leaflet_control_attribution',function(map,featureSettings){L.control.attribution({prefix:featureSettings.prefix+' | © <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',position:featureSettings.position}).addTo(map.leafletMap);return true;},drupalSettings);},detach:function(context,drupalSettings){}};})(Drupal);; 14(function(Drupal){'use strict';Drupal.behaviors.leafletControlZoom={attach:function(context,drupalSettings){Drupal.geolocation.executeFeatureOnAllMaps('leaflet_control_zoom',function(map,featureSettings){L.control.zoom({position:featureSettings.position}).addTo(map.leafletMap);return true;},drupalSettings);},detach:function(context,drupalSettings){}};})(Drupal);; 15(function(Drupal){'use strict';Drupal.behaviors.leafletGestureHandling={attach:function(context,drupalSettings){Drupal.geolocation.executeFeatureOnAllMaps('leaflet_gesture_handling',function(map,featureSettings){L.Util.setOptions(map.leafletMap,{gestureHandlingOptions:{duration:1000}});map.leafletMap['gestureHandling'].enable();return true;},drupalSettings);},detach:function(context,drupalSettings){}};})(Drupal);; 16(function($,Drupal){'use strict';Drupal.behaviors.leafletMarkerPopup={attach:function(context,drupalSettings){Drupal.geolocation.executeFeatureOnAllMaps('leaflet_marker_popup',function(map,featureSettings){var geolocationLeafletPopupHandler=function(currentMarker){if(typeof (currentMarker.locationWrapper)==='undefined')return;var content=currentMarker.locationWrapper.find('.location-content');if(content.length<1)return;var popupOptions={};if(featureSettings.maxWidth)popupOptions.maxWidth=Math.round(featureSettings.maxWidth);if(featureSettings.minWidth)popupOptions.minWidth=Math.round(featureSettings.minWidth);if(featureSettings.maxHeight)popupOptions.maxHeight=Math.round(featureSettings.maxHeight);if(typeof featureSettings.autoPan!=="undefined")popupOptions.autoPan=featureSettings.autoPan;
16if(typeof featureSettings.keepInView!=="undefined")popupOptions.keepInView=featureSettings.keepInView;if(typeof featureSettings.closeButton!=="undefined")popupOptions.closeButton=featureSettings.closeButton;if(typeof featureSettings.autoClose!=="undefined")popupOptions.autoClose=featureSettings.autoClose;if(typeof featureSettings.closeOnEscapeKey!=="undefined")popupOptions.closeOnEscapeKey=featureSettings.closeOnEscapeKey;if(featureSettings.className)popupOptions.className=featureSettings.className;currentMarker.bindPopup(content.html(),popupOptions);if(featureSettings.infoAutoDisplay)currentMarker.openPopup();};map.addPopulatedCallback(function(map){$.each(map.mapMarkers,function(index,currentMarker){geolocationLeafletPopupHandler(currentMarker);});});map.addMarkerAddedCallback(function(currentMarker){geolocationLeafletPopupHandler(currentMarker);});return true;},drupalSettings);},detach:function(context,drupalSettings){}};})(jQuery,Drupal);;
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.