MapPress Easy Google Maps - Version 2.56.3

Version Description

  • Fixed: directions form not working
  • Fixed: fatal error for missing icon upload
Download this release

Release Info

Developer chrisvrichardson
Plugin Icon 128x128 MapPress Easy Google Maps
Version 2.56.3
Comparing to
See all releases

Code changes from version 2.54.6 to 2.56.3

Files changed (52) hide show
  1. build/index_mappress.js +1 -0
  2. build/index_mappress_admin.js +1 -0
  3. css/leaflet.draw/leaflet.draw.css +0 -10
  4. css/leaflet/images/layers-2x.png +0 -0
  5. css/leaflet/images/layers.png +0 -0
  6. css/leaflet/images/marker-icon-2x.png +0 -0
  7. css/leaflet/images/marker-icon.png +0 -0
  8. css/leaflet/images/marker-shadow.png +0 -0
  9. css/leaflet/leaflet.css +0 -635
  10. css/mappress.css +194 -157
  11. css/mappress_admin.css +728 -90
  12. forms/dummy.js +0 -0
  13. forms/media.php +0 -84
  14. forms/settings.php +0 -34
  15. images/cleardot.gif +0 -0
  16. images/preview.png +0 -0
  17. js/algolia/algoliasearchLite.min.js +0 -4
  18. js/algolia/autocomplete.jquery.min.js +0 -7
  19. js/algolia/placesAutocompleteDataset.min.js +0 -2
  20. js/leaflet/leaflet.js +0 -5
  21. js/mappress.min.js +0 -1
  22. js/mappress_editor.min.js +0 -1
  23. js/mappress_media.min.js +0 -1
  24. js/mappress_settings.min.js +0 -1
  25. languages/mappress-google-maps-for-wordpress.pot +651 -356
  26. languages/texts.php +116 -53
  27. lib/Leaflet.markercluster/MarkerCluster.Default.css +60 -0
  28. lib/Leaflet.markercluster/MarkerCluster.css +14 -0
  29. lib/Leaflet.markercluster/leaflet.markercluster.js +3 -0
  30. lib/Leaflet.markercluster/leaflet.markercluster.js.map +1 -0
  31. lib/js-markerclustererplus-main/images/m1.png +0 -0
  32. lib/js-markerclustererplus-main/images/m2.png +0 -0
  33. lib/js-markerclustererplus-main/images/m3.png +0 -0
  34. lib/js-markerclustererplus-main/images/m4.png +0 -0
  35. lib/js-markerclustererplus-main/images/m5.png +0 -0
  36. {js/leaflet → lib}/leaflet-omnivore.min.js +0 -0
  37. mappress.php +170 -135
  38. mappress_controls.php +1 -1
  39. mappress_map.php +48 -136
  40. mappress_settings.php +42 -49
  41. mappress_template.php +32 -24
  42. readme.txt +81 -78
  43. templates/map-controls.php +0 -12
  44. templates/map-directions.php +16 -14
  45. templates/map-filters.php +17 -11
  46. templates/map-header.php +0 -5
  47. templates/map-loop.php +9 -1
  48. templates/map-search.php +0 -6
  49. templates/map.php +83 -15
  50. {forms → templates_admin}/editor.php +8 -25
  51. templates_admin/media.php +83 -0
  52. templates_admin/widgets.php +98 -0
build/index_mappress.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(t){var e={};function i(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(o,n,function(e){return t[e]}.bind(null,n));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=7)}([,,,,,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.formatInputValue,i=t.hit,s=t.hitIndex,a=t.query,r=t.rawAnswer;try{var h=i.locale_names[0],c=i.country,u=i.administrative&&i.administrative[0]!==h?i.administrative[0]:void 0,g=i.city&&i.city[0]!==h?i.city[0]:void 0,d=i.suburb&&i.suburb[0]!==h?i.suburb[0]:void 0,m=i.county&&i.county[0]!==h?i.county[0]:void 0,f=i.postcode&&i.postcode.length?function(t,e){for(var i=e[0].value,o=[],n=1;n<e.length;++n)"none"!==e[n].matchLevel&&o.push({index:n,words:e[n].matchedWords});if(0===o.length)return{postcode:t[0],highlightedPostcode:i};return o.sort((function(t,e){return t.words>e.words?-1:t.words<e.words?1:t.index-e.index})),{postcode:t[o[0].index],highlightedPostcode:e[o[0].index].value}}(i.postcode,i._highlightResult.postcode):{postcode:void 0,highlightedPostcode:void 0},y=f.postcode,v=f.highlightedPostcode,w={name:p(i._highlightResult.locale_names),city:g?p(i._highlightResult.city):void 0,administrative:u?p(i._highlightResult.administrative):void 0,country:c?i._highlightResult.country.value:void 0,suburb:d?p(i._highlightResult.suburb):void 0,county:m?p(i._highlightResult.county):void 0,postcode:v},b={name:h,administrative:u,county:m,city:g,suburb:d,country:c,countryCode:(0,o.default)(i._tags),type:(0,n.default)(i._tags),latlng:{lat:i._geoloc.lat,lng:i._geoloc.lng},postcode:y,postcodes:i.postcode&&i.postcode.length?i.postcode:void 0},L=e(b);return l(l({},b),{},{highlight:w,hit:i,hitIndex:s,query:a,rawAnswer:r,value:L})}catch(t){return console.error("Could not parse object",i),console.error(t),{value:"Could not parse object"}}};var o=s(i(12)),n=s(i(13));function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){r(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function p(t){for(var e=t[0].value,i=[],o=1;o<t.length;++o)"none"!==t[o].matchLevel&&i.push({index:o,words:t[o].matchedWords});return 0===i.length?e:(i.sort((function(t,e){return t.words>e.words?-1:t.words<e.words?1:t.index-e.index})),0===i[0].index?"".concat(e," (").concat(t[i[1].index].value,")"):"".concat(t[i[0].index].value," (").concat(e,")"))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.administrative,i=t.city,o=t.country,n=t.name,s=t.type;return"".concat(n).concat("country"!==s&&void 0!==o?",":"","\n ").concat(i?"".concat(i,","):"","\n ").concat(e?"".concat(e,","):"","\n ").concat(o||"").replace(/\s*\n\s*/g," ").trim()}},function(t,e,i){i(8),i(9),i(10),i(11),i(14),i(15),i(16),i(17),i(18)},function(t,e){var i,o=window.mapp||{};i=jQuery,o.lib={ajax:function(t){var e=this,o={callback:null,data:null,silent:!1,type:"GET",url:mappl10n.options.ajaxurl,success:function(i,o,n){"OK"!=i.status&&console.log(i.status),i.output?e.alert("AJAX Invalid Output\r\n"+i.output):t.callback&&t.callback(i,n)},error:function(i,o,n){"cancel"!=o&&(void 0!==n&&""!=n&&e.alert("AJAX ERROR\r\nTextStatus="+o+"\r\nError="+n+"\r\nResponseText="+i.responseText),t.callback&&t.callback(null))}};return t=i.extend(o,t),i.ajax(t)},alert:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){mappl10n.options.admin||mappl10n.options.debug?alert(t):window.console&&console.error(t)})),jqVersionCheck:function(t){if(void 0===i||void 0===t)return!1;t=t.split("."),v=i.fn.jquery.split(".");for(var e=0;e<t.length;e++){var o=parseInt(t[e]),n=void 0!==v[e]?parseInt(v[e]):0;if(n!=o)return n>o}return!0},log:function(t){window.console&&console.error(t)},scrollTo:function(t,e,i){if(t&&e&&t.length&&e.length){var o=t.height(),n=e.outerHeight(!0),s=t.scrollTop(),a=s+e.position().top,l=a+n;a=a-o/2-n/2,i&&(a-=i.outerHeight(!0)),(a<s||l>s+o)&&t.scrollTop(a)}},template:function(t,e){if(o.lib.templates=o.lib.templates?o.lib.templates:{},!o.lib.templates[t]){var n=mappl10n.options.templates?mappl10n.options.template[t]:i("#mapp-tmpl-"+t).html();if(!n)return"";o.lib.templates[t]=_.template(n.replace(/[\n\r\t]/g,""),null,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g})}return o.lib.templates[t](e)}},o.lib.jqVersionCheck("1.7")||o.lib.alert("jQuery version is too old: "+i.fn.jquery),i("body").on("tabsactivate tabsshow",(function(t,e){var o=e.newPanel?e.newPanel:e.panel;o&&i(".mapp-layout",o).each((function(){var t=i(this).find(".mapp-canvas").attr("id"),e=window[t];e.resize(),e.recenter()}))})),jQuery,"leaflet"==mappl10n.options.engine&&(L.LatLng.prototype.toJSON=function(){return{lat:this.lat,lng:this.lng}},L.LatLngBounds.prototype.toJSON=function(){return{south:this.getSouth(),west:this.getWest(),north:this.getNorth(),east:this.getEast()}},L.LatLng.prototype.toUrlValue=function(){return Math.round(1e6*this.lat)/1e6+", "+Math.round(1e6*this.lng)/1e6}),o.event={addListener:function(t,e,i){e=e.split(" ");for(var o=0;o<e.length;o++)"leaflet"==mappl10n.options.engine?t.on(e[o],i):google.maps.event.addListener(t,e[o],i)},addListenerOnce:function(t,e,i){e=e.split(" ");for(var o=0;o<e.length;o++)"leaflet"==mappl10n.options.engine?t.once(e[o],i):google.maps.event.addListenerOnce(t,e[o],i)},clearInstanceListeners:function(t){"leaflet"==mappl10n.options.engine?t.off():google.maps.event.clearInstanceListeners(t)},clearListeners:function(t,e){e=e.split(" ");for(var i=0;i<e.length;i++)"leaflet"==mappl10n.options.engine?t.off(e[i]):google.maps.event.clearListeners(t,e[i])},trigger:function(t,e,i){"leaflet"==mappl10n.options.engine?t.fire(e,i):google.maps.event.trigger(t,e,i)}}},function(t,e,i){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n,s=window.mapp||{};n=jQuery,s.Map=function(t,e){this.defaults={alignment:null,center:null,classname:null,editable:null,embed:null,height:null,initialOpenDirections:null,initialOpenInfo:null,layers:null,layout:null,mapid:null,mapTypeId:null,metaKey:null,mapOpts:null,name:null,poiList:null,pois:null,postid:null,query:null,sel:null,title:null,width:null,zoom:null},this.dirty=!1,this.highlight=null,this.iw=null,this.places=null,this.poi=null,this.settings=e||{},this.templates=null,this.clusterer=null,this.dir_=null,this.div={},this.layers_={},this.map_=null,this.pois_=[],this.xhr_,this.zindex_=0,_.extend(this,this.defaults,t,this.settings),this.layout=this.layout?this.layout:mappl10n.options.layout,this.poiList=this.poiList?this.poiList:mappl10n.options.poiList,this.postid=this.postid?this.postid:mappl10n.options.postid},s.Map.prototype={display:function(){var t=this;if(!0===this.sanity()){var e;this.render(),this.editable?this.templates={loop:"edit-loop",item:"edit-item",popup:"edit-popup"}:this.query?this.templates={loop:"map-loop",item:"mashup-item",popup:"mashup-popup"}:this.templates={loop:"map-loop",item:"map-item",popup:"map-popup"},"leaflet"==mappl10n.options.engine?((e=_.extend({attribution:'Map data <a href="https://openstreetmap.org">OpenStreetMap</a>',minZoom:0,worldCopyJump:!0,zoomControl:null},this.mapOpts)).minZoom=isNaN(parseInt(e.minZoom))?0:parseInt(e.minZoom),this.map_=new L.Map(this.div.canvas.get(0),e),L.control.zoom({position:"bottomright",zoomInTitle:"",zoomOutTitle:""}).addTo(this.map_),this.iw=L.popup(),this.iw.setContent(this.div.iw.get(0))):(this.map_=new google.maps.Map(this.div.canvas.get(0),{mapTypeId:"roadmap",zoom:1}),(e=_.extend({backgroundColor:"transparent",clickableIcons:!1,fullscreenControl:!1,mapTypeControl:!1,mapTypeControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},minZoom:0,scaleControl:!0,streetViewControl:!this.editable&&!this.query},this.mapOpts)).minZoom=isNaN(parseInt(e.minZoom))?0:parseInt(e.minZoom),this.map_.setOptions(e),this.iw="ib"==mappl10n.options.iwType||this.editable?new s.InfoBox(this):new google.maps.InfoWindow,this.iw.setContent(this.div.iw.get(0)),this.addLayers()),this.addStyles(),this.addMenu(),this.setMapTypeId(this.mapTypeId),this.clustering(),this.places=new s.Places(n(".mapp-places",this.div.search),{map:t}),this.editable&&this.places.sel.focus(),n(this.places).on("search.mapp",(function(e,i){t.search(i)}));var i=this.clusterer?"click drag zoom_changed zoomstart":"click drag";this.addEvents(i,(function(){t.poiClose()})),this.div.layout.on("click","[data-mapp-action]",(function(e){var i=n(this).attr("data-mapp-action");e.preventDefault(),t.action(i,n(this).attr("data-mapp-"+i),n(this))})),this.div.filters.on("change",(function(){t.ajaxQuery()})),n(window).resize((function(){t.toggleView("mini"),t.resize()})),s.event.addListener(t.map_,"maptypeid_changed baselayerchange",(function(){t.set({dirty:!0})})),this.places.parse(this.center,(function(e){e&&e.geometry&&e.geometry.location?t.center={lat:e.geometry.location.lat,lng:e.geometry.location.lng}:t.center=null,t.query?t.ajaxQuery((function(){t.initCenter()})):(t.setPois(t.pois),t.initCenter())}))}},initCenter:function(){var t=this;this.recenter(),this.renderList(),this.query&&mappl10n.options.search&&!this.editable&&this.addSearchMove(),"leaflet"==mappl10n.options.engine?this.initOpen():s.event.addListenerOnce(t.map_,"idle",(function(){t.initOpen()}))},initOpen:function(){var t=this.pois_.length?this.pois_[0]:null,e=null!=this.initialOpenInfo?this.initialOpenInfo:mappl10n.options.initialOpenInfo;this.initialOpenDirections?this.drectionsOpen(null,t):t&&e&&t.open()},action:function(t,e,i){var o=this;switch(t){case"center":this.toggleView("menu",!1),this.poiClose(),this.recenter();break;case"dir":this.directionsOpen(null,this.poi);break;case"dir-from":this.directionsOpen(this.poi,null);break;case"filters-reset":this.div.filters.find(":input").each((function(){"checkbox"==this.type||"radio"==this.type?n(this).prop("checked",!1):n(this).val("")})),this.ajaxQuery();break;case"filters-toggle":this.toggleView("filters");break;case"geolocate":this.places.geolocate((function(t){o.search(t)}));break;case"layer":this.toggleLayer(e),this.toggleView("menu",!1);break;case"list-toggle":this.togglePoiListOpen();break;case"menu-toggle":this.toggleView("menu");break;case"open":var s=i.attr("data-mapp-poi");this.poiOpen(this.pois_[s]);break;case"view-map":this.togglePoiListOpen(!1);break;case"view-list":this.togglePoiListOpen(!0);break;default:return!0}},addEvents:function(t,e){t=t.split(" ");for(var i=0;i<t.length;i++)s.event.addListener(this.map_,t[i],e)},addLayers:function(){this.layers_={traffic:new google.maps.TrafficLayer,bicycling:new google.maps.BicyclingLayer,transit:new google.maps.TransitLayer};for(var t=n.makeArray(this.layers),e=0;e<t.length;e++){var i=n.trim(t[e]),o=i.split(".").pop();this.layers_[i]?this.toggleLayer(i):"kml"==o||"kmz"==o?this.layers_[i]=new google.maps.KmlLayer({map:this.map_,preserveViewport:!0,url:i}):"json"==o&&(this.layers_[i]=new google.maps.Data({map:this.map_}).loadGeoJson(i))}},addMenu:function(){var t=this;n("body").on("click",(function(e){var i=n(e.target),o=i.attr("data-mapp-action");i==t.div.filters||"filters-toggle"==o||i.closest(t.div.filters).length||t.toggleView("filters",!1),i==t.div.menu||"menu-toggle"==o||i.closest(t.div.menu).length||t.toggleView("menu",!1)}))},addSearchMove:function(){},addStyles:function(){var t=this;if("leaflet"==mappl10n.options.engine){if(this.editable){for(var e=L.control.layers(),i=0;i<mappl10n.options.baseLayers.length;i++){var a=mappl10n.options.baseLayers[i],l=mappl10n.options.providers[a.provider],r=n.extend({},l,a);e.addBaseLayer(L.tileLayer(l.url,r),r.label)}mappl10n.options.baseLayers.length>1&&e.addTo(this.map_)}this.map_.on("baselayerchange",(function(e){t.mapTypeId=e.layer.options.name}))}else{var p=mappl10n.options.styles?mappl10n.options.styles:[],h=mappl10n.options.style,c=["roadmap","satellite","terrain","hybrid"];if(h&&"object"==o(p[h])&&this.map_.setOptions({styles:p[h]}),this.editable){for(var u in p)this.map_.mapTypes.set(u,new google.maps.StyledMapType(p[u],{name:u})),c.push(u);this.map_.setOptions({mapTypeControl:!0,mapTypeControlOptions:{mapTypeIds:c,position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}})}else this.mapTypeId&&"object"==o(p[this.mapTypeId])&&this.map_.setOptions({styles:p[this.mapTypeId]});s.event.addListener(this.map_,"maptypeid_changed",(function(){t.mapTypeId=t.map_.getMapTypeId()}))}},ajaxQuery:function(t){},clusterGetLatLng:function(t){if(this.clusterer){if("leaflet"==mappl10n.options.engine){var e=this.clusterer.getVisibleParent(t.overlay);return e?e.getLatLng():null}for(var i=this.clusterer.getClusters(),o=0;o<i.length;o++){var n=i[o].markers_;if(n.length>1)for(var s=0;s<n.length;s++)if(n[s]==t.overlay)return i[o].center_}}},clustering:function(){mappl10n.options.clustering&&!this.editable&&("leaflet"==mappl10n.options.engine?this.clusterer=L.markerClusterGroup():this.clusterer=new MarkerClusterer(this.map_,[],{imagePath:mappl10n.options.baseurl+"/lib/js-markerclustererplus-main/images/m"}))},clustersReset:function(){this.clusterer&&("leaflet"==mappl10n.options.engine?this.clusterer.clearLayers():this.clusterer.clearMarkers())},clustersSet:function(){if(this.clusterer){for(var t=[],e=0;e<this.pois_.length;e++)this.pois_[e].type||t.push(this.pois_[e].overlay);"leaflet"==mappl10n.options.engine?(this.clusterer.addLayers(t),this.map_.addLayer(this.clusterer)):this.clusterer.addMarkers(t)}},dialog:function(t,e){var i=this;t?(this.div.dialog.html(t),this.div.dialog.show(),e&&(clearTimeout(this.dialog.fade),this.dialog.fade=setTimeout((function(){i.dialog(null)}),4e3))):this.div.dialog.hide()},directionsOpen:function(t,e){var i=t?t.getAddress():"",o=e?e.getAddress():"";t?t.open():e&&e.open(),this.dir_||(this.dir_=new s.Directions(this.div.directions,this)),this.dir_.open(i,o)},fitBounds:function(t,e){return e="leaflet"==mappl10n.options.engine&&e?{paddingTopLeft:[e.left,e.top],paddingBottomRight:[e.right,e.bottom]}:e,this.map_.fitBounds(t,e)},getBounds:function(){try{return this.map_.getBounds()}catch(t){return null}},getCenter:function(){try{return this.map_.getCenter()}catch(t){return null}},getMapTypeId:function(t){return"leaflet"==mappl10n.options.engine?"roadmap":this.map_.getMapTypeId(t)},getMap:function(){return this.map_},getPois:function(){return this.pois_},getZoom:function(){try{return this.map_.getZoom()}catch(t){return null}},poiClose:function(){"leaflet"==mappl10n.options.engine?this.map_.closePopup():this.iw.close(),this.dir_&&this.dir_.close(),this.select(null),n(this).triggerHandler("mapp.close")},poiInsert:function(t){this.pois_.unshift(t),t.setMap(this),this.renderList(),this.select(t),this.set({dirty:!0})},poiOpen:function(t,e){var i=null;if(this.poiClose(),this.select(t),"poi"!=mappl10n.options.mashupClick&&t.postid&&t.url)"post"==mappl10n.options.mashupClick?window.location.assign(t.url):window.open(t.url);else{this.div.layout.hasClass("mapp-view-mini")&&this.togglePoiListOpen(!1),e&&e.featureData?i=e.featureData:e&&e.propagatedFrom&&e.propagatedFrom.feature&&e.propagatedFrom.feature.properties&&(i=e.propagatedFrom.feature.properties),this.div.iw.html(t.render("popup",i));var o=this.clusterGetLatLng(t),s=o||t.getPosition(e);if("leaflet"==mappl10n.options.engine)this.iw.setLatLng(s),this.iw.options.offset=t.getAnchorPoint(),this.map_.openPopup(this.iw);else{var a=new google.maps.MVCObject;a.setValues({position:s,anchorPoint:t.getAnchorPoint(e)}),this.iw.open(this.map_,a)}n(this).triggerHandler("mapp.open",t)}},poiRemove:function(t){var e=n.inArray(t,this.pois_);-1!=e&&(this.pois_[e].setMap(null),this.pois_.splice(e,1),this.renderList()),this.set({dirty:!0})},recenter:function(){var t=this.center&&this.center.lat&&this.center.lng?this.center:null,e=this.zoom&&parseInt(this.zoom)?parseInt(this.zoom):null;if(t&&!e&&this.query)this.search({geometry:{location:{lat:t.lat,lng:t.lng}}});else if(t)this.setView(t,e||1);else if(0!=this.pois_.length)if(1!=this.pois_.length){for(var i="leaflet"==mappl10n.options.engine?new L.LatLngBounds:new google.maps.LatLngBounds,o=0;o<this.pois_.length;o++){var n=this.pois_[o].getBounds();i=n?"leaflet"==mappl10n.options.engine?i.extend(n):i.union(n):i.extend(this.pois_[o].getPosition())}e?this.setView(i.getCenter().toJSON(),e):this.fitBounds(i)}else this.pois_[0].center(e);else this.setView({lat:0,lng:0},e||1)},render:function(){var t=this,e=s.lib.template("map",{map:this});if(this.sel?(this.sel.html(e),this.div.layout=n(".mapp-layout",this.sel)):(n("#"+this.name+"-layout").replaceWith(e),this.div.layout=n("#"+this.name+"-layout")),!this.div.layout.length)return s.lib.log("MapPress: Missing map name or container for map: "+this.name);n.each(["canvas","controls","dialog","directions","filters","iw","list","menu","wrapper","search"],(function(e,i){t.div[i]=n(".mapp-"+i,t.div.layout)})),this.setSize({width:this.width,height:this.height}),this.set({poiList:this.poiList})},renderList:function(){var t=this.getBounds(),e=0,i=this;if(!this.editable)for(var o=0;o<this.pois_.length;o++)this.pois_[o].visible="kml"!=this.pois_[o].type,this.query&&t&&!t.contains(this.pois_[o].getPosition())&&(this.pois_[o].visible=!1),e+=this.pois_[o].visible;this.div.list.html(s.lib.template(this.templates.loop,{map:this,pois:this.pois_,count:e})),this.editable&&n(".mapp-items",this.div.list).sortable({axis:"y",cursor:"move",delay:200,update:function(){i.sortPois(n(this).sortable("toArray",{attribute:"data-mapp-poi"}))}})},renderMenu:function(){for(layer in this.layers_)n('[data-mapp-layer="'+layer+'"]',this.div.layout).toggleClass("mapp-active",null!=this.layers_[layer].getMap())},resetPois:function(){for(var t=0;t<this.pois_.length;t++)this.pois_[t].setMap(null);this.pois_=[],this.zindex_=0,this.clustersReset()},resize:function(t,e){this.map_&&("leaflet"==mappl10n.options.engine?this.map_.invalidateSize():s.event.trigger(this.map_,"resize"),this.toggleView("mini"))},sanity:function(){if("undefined"==typeof _)return s.lib.alert("ERROR: underscore.js not loaded. Check cacheing / optimizing plugins.");if("leaflet"==mappl10n.options.engine){if("undefined"==typeof L)return s.lib.alert("ERROR: Unable to load Leaflet")}else{if("undefined"==typeof google)return s.lib.alert("ERROR: Google Maps API not loaded");n(document).ready((function(){n('script[src*="https://maps.googleapis.com/maps/api/js?v=3"]').length>1&&s.lib.alert("ERROR: Google Maps API key loaded multiple times, please see MapPress FAQ.")}))}return!0},search:function(t){if(t&&t.geometry){var e=t.geometry.location?t.geometry.location:null,i=t.geometry.viewport?t.geometry.viewport:null;if("leaflet"==mappl10n.options.engine)var o=new L.LatLng(e.lat,e.lng),n=i?new L.LatLngBounds(new L.LatLng(i.sw.lat,i.sw.lng),new L.LatLng(i.ne.lat,i.ne.lng)):o.toBounds(1e3*mappl10n.options.radius);else{var s=new google.maps.Circle({center:e,radius:1e3*mappl10n.options.radius});n=i?new google.maps.LatLngBounds(new google.maps.LatLng(i.sw.lat,i.sw.lng),new google.maps.LatLng(i.ne.lat,i.ne.lng)).union(s.getBounds()):s.getBounds()}n&&this.fitBounds(n),this.setView(e)}},select:function(t){if(n(".mapp-item",this.div.list).removeClass("mapp-selected"),t){var e=n.inArray(t,this.pois_),i=n('[data-mapp-poi="'+e+'"]',this.div.list);s.lib.scrollTo(this.div.list,i),t.setZIndex(++this.zindex_),i.addClass("mapp-selected")}this.poi=t},set:function(t){for(var e in t){var i=t[e];switch(e){case"dirty":this.dirty=i;break;case"poiList":this.poiList=null==i?mappl10n.options.poiList:i,this.div.layout.toggleClass("mapp-has-list",this.poiList),this.togglePoiListOpen(this.poiList),this.toggleView("mini");break;case"title":this.title=i;break;default:this[e]=i}}},setHighlight:function(t){this.highlight&&("leaflet"==mappl10n.options.engine?this.highlight.remove():this.highlight.setMap(null)),t&&("leaflet"==mappl10n.options.engine?this.highlight=new L.Marker(t.getPosition()).addTo(this.map_):(this.highlight=new google.maps.Marker({position:t.getPosition()}),this.highlight.setMap(this.map_)))},setMapTypeId:function(t){var e=this;if("leaflet"==mappl10n.options.engine){this.map_.eachLayer((function(t){e.map_.removeLayer(t)})),t=!this.editable&&mappl10n.options.style&&"streets"==t?mappl10n.options.style:t,t=_.findIndex(mappl10n.options.baseLayers,{name:t})>=0?t:mappl10n.options.baseLayers[0].name;for(var i=0;i<mappl10n.options.baseLayers.length;i++){var s=mappl10n.options.baseLayers[i],a=mappl10n.options.providers[s.provider];if(s.name==t){var l=n.extend({},a,s);L.tileLayer(l.url,l).addTo(this.map_)}}}else{var r=-1!=n.inArray(t,["roadmap","satellite","terrain","hybrid"]);t=this.editable?r||"object"==o(mappl10n.options.styles[t])?t:"roadmap":r?t:"roadmap",this.map_.setMapTypeId(t)}},setPois:function(t){if(this.resetPois(),t){for(var e=0;e<t.length;e++){var i=new s.Poi(t[e]);this.pois_.push(i),i.id=this.pois_.length-1,i.setMap(this),i.setZIndex(this.zindex_+t.length-1-e)}this.zindex_+=t.length-1}this.clustersSet()},setSize:function(t){var e=mappl10n.options.sizes[mappl10n.options.size]?mappl10n.options.sizes[mappl10n.options.size]:mappl10n.options.sizes[0];if(this.embed)return this.div.layout.css({width:"100%",height:"100%"}),void this.div.wrapper.css({"padding-bottom":0,height:"100%"});if(t&&t.hasOwnProperty("width")){var i=t.width?t.width:e.width;this.div.layout.css("width",i)}if(t&&t.hasOwnProperty("height")){var o=t.height?t.height:e.height;"string"==typeof o&&o.includes("%")?this.div.wrapper.css({"padding-bottom":o,height:"auto"}):this.div.wrapper.css({"padding-bottom":0,height:o})}this.resize()},setView:function(t,e,i){"leaflet"==mappl10n.options.engine?(null==e&&(e=this.map_.getZoom()?this.map_.getZoom():0),this.map_.setView(t,e,i)):(t=t&&!t.toJSON?{lat:parseFloat(t.lat),lng:parseFloat(t.lng)}:t,e=e?parseInt(e):null,t&&this.map_.setCenter(t),e&&this.map_.setZoom(e))},sortPois:function(t){var e=Array();this.set({dirty:!0});for(var i=0;i<t.length;i++){var o=parseInt(t[i]);if(isNaN(o))return!1;e.push(this.pois_[o])}if(e.length!=this.pois_.length)return!1;this.pois_=e,this.renderList()},toggleLayer:function(t,e){var i=this;e=void 0!==e?e:null==this.layers_[t].getMap(),n.each(["traffic","bicycling","transit"],(function(t,e){i.layers_[e].setMap(null)})),e&&this.layers_[t].setMap(this.map_)},togglePoiListOpen:function(t){var e=this;this.div.layout.toggleClass("mapp-list-open",t),setTimeout((function(){return e.resize()}),100)},togglePois:function(t){t=!!t;for(var e=0;e<this.pois_.length;e++)this.pois_[e].setVisible(t)},toggleView:function(t,e){if("mini"==t){var i=this.div.layout.hasClass("mapp-view-mini"),o=!("inline"==this.layout||!this.poiList)&&this.div.layout.width()<mappl10n.options.mini;return this.div.layout.toggleClass("mapp-view-mini",o),void(o!=i&&this.togglePoiListOpen(!o))}e=void 0===e?!this.div.layout.hasClass("mapp-view-"+t):e,this.div.layout.toggleClass("mapp-view-"+t,e),"list"==t&&e&&this.renderList(),"menu"==t&&e&&this.renderMenu(),"directions"==t&&this.resize()},toJSON:function(){this.pois=[];for(var t=0;t<this.pois_.length;t++)this.pois.push(this.pois_[t].toJSON());return{center:this.center,height:this.height,mapid:this.mapid,mapTypeId:this.mapTypeId,metaKey:this.metaKey,pois:this.pois,postid:this.postid,title:this.title,width:this.width,zoom:this.zoom}},ajaxSave:function(t){var e=this;this.postid&&"0"!=this.postid||(this.postid=mappl10n.options.postid),s.lib.ajax({type:"POST",data:{action:"mapp_save",mapdata:JSON.stringify(this),nonce:mappl10n.options.nonce},callback:function(i){i&&"OK"==i.status&&(e.mapid||(e.mapid=i.data.mapid),t&&t())}})}},s.Map.ajaxGet=function(t,e){s.lib.ajax({type:"GET",data:{action:"mapp_get",mapid:t,nonce:mappl10n.options.nonce},callback:function(t){"OK"==t.status&&e(t.data)}})},s.Map.ajaxDelete=function(t,e){s.lib.ajax({type:"POST",data:{action:"mapp_delete",mapid:t,nonce:mappl10n.options.nonce},callback:function(t){t&&"OK"==t.status&&e&&e()}})}},function(t,e){var i,o=window.mapp||{};i=jQuery,o.Directions=function(t,e){this.sel=i(t),this.map=e;var o=this;this.sel.on("keydown",(function(t){13==t.which?(o.getDirections(),t.preventDefault()):27==t.which&&o.close()})),this.sel.on("click","[data-mapp-action]",(function(t){var e=i(this).attr("data-mapp-action"),n=i(".mapp-dir-daddr",o.sel).val(),s=i(".mapp-dir-saddr",o.sel).val();switch(t.preventDefault(),e){case"dir-cancel":o.close();break;case"dir-get":o.getDirections();break;case"dir-swap":i(".mapp-dir-saddr",o.sel).val(n),i(".mapp-dir-daddr",o.sel).val(s)}})),this.open=function(t,e){"google"!=mappl10n.options.directions?(this.map.toggleView("directions",!0),i(".mapp-dir-addr",this.sel).removeClass("mapp-error"),i(".mapp-dir-saddr",this.sel).val(t),i(".mapp-dir-daddr",this.sel).val(e)):this.openGoogle(t,e)},this.close=function(){this.map.toggleView("directions",!1)},this.getDirections=function(){var t=i(".mapp-dir-saddr",this.sel).val().trim(),e=i(".mapp-dir-daddr",this.sel).val().trim();this.map.poiClose(),this.openGoogle(t,e)},this.openGoogle=function(t,e){var i=mappl10n.options.directionsServer;-1==i.toLowerCase().indexOf("http")&&(i="https://"+i),i+="/maps/dir/?api=1&origin="+encodeURIComponent(t)+"&destination="+encodeURIComponent(e),window.open(i)}}},function(t,e,i){"use strict";i.r(e);var o,n=i(5),s=i.n(n),a=i(6),l=i.n(a),r=window.mapp||{};r.geocoders={},o=jQuery,r.geocoders.algolia=function(t){this.map=t},r.geocoders.algolia.prototype={getDetails:function(t,e){e({formatted_address:t.value,name:t.name,geometry:{location:t.latlng}})},getFirstPrediction:function(t,e){var i=this;this.getPredictions(t,(function(t){t&&t.length?i.getDetails(t[0],(function(t){return e(t)})):e(null)}))},getPredictions:function(t,e){var i="https://places-dsn.algolia.net/1/places/query?query="+encodeURIComponent(t)+"&hitsPerPage=5";i=mappl10n.options.country?i+"&countries="+mappl10n.options.country.toLowerCase():i,i=mappl10n.options.language?i+"&language="+mappl10n.options.language.toLowerCase():i+"&language=en",o.getJSON(i,(function(i){if(i&&i.hits&&i.hits.length>0){var o=i.hits.map((function(e,o){return s()({formatInputValue:l.a,hit:e,hitIndex:o,query:t,rawAnswer:i})}));e(o)}else e(null)}))}},function(t){r.geocoders.google=function(e){this.map=e,this.token=null;var i=t('<div style="display:none">').appendTo("body");this.placesService=new google.maps.places.PlacesService(i.get(0)),this.autocompleteService=new google.maps.places.AutocompleteService,i.remove()},r.geocoders.google.prototype={getDetails:function(t,e){this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken,this.token=null;var i={placeId:t.place_id,sessionToken:this.token};this.placesService.getDetails(i,(function(t,i){if("OK"==i&&t&&t.geometry){if(t.geometry.location&&(t.geometry.location=t.geometry.location.toJSON()),t.geometry.viewport){var o=t.geometry.viewport.toJSON();t.geometry.viewport={sw:{lat:o.south,lng:o.west},ne:{lat:o.north,lng:o.east}}}e(t)}else e(null)}))},getFirstPrediction:function(e,i){var o=this;this.getPredictions(e,(function(e){e&&t.isArray(e)?o.getDetails(e[0],(function(t){return i(t)})):i(null)}))},getPredictions:function(t,e){this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;var i=this.map.getMap().getBounds();"leaflet"==mappl10n.options.engine&&(i=new google.maps.LatLngBounds(new google.maps.LatLng(i.getSouthWest().lat,i.getSouthWest().lng),new google.maps.LatLng(i.getNorthEast().lat,i.getNorthEast().lng)));var o={input:t,bounds:i=i||new google.maps.LatLngBounds(new google.maps.LatLng(85,-180),new google.maps.LatLng(-85,180)),sessionToken:this.token,types:this.map.editable?null:["geocode"]};this.autocompleteService.getPlacePredictions(o,(function(t,i){"OK"==i&&t&&t.length?(t=t.map((function(t){return t.value=t.description,t})),e(t)):(i==google.maps.places.PlacesServiceStatus.REQUEST_DENIED?alert("Google Maps API Key error: please enable the Places API in the Google Developer Console."):i==google.maps.places.PlacesServiceStatus.OVER_QUERY_LIMIT&&alert("Google Maps API Key has exceeded its query limit"),e(null))}))}}}(jQuery),function(t){r.geocoders.mapbox=function(t){this.map=t},r.geocoders.mapbox.prototype={getDetails:function(t,e){var i=t.bbox&&4==t.bbox.length?{sw:{lat:t.bbox[1],lng:t.bbox[0]},ne:{lat:t.bbox[3],lng:t.bbox[2]}}:null;e({formatted_address:t.place_name,name:t.name,geometry:{location:{lat:t.center[1],lng:t.center[0]},viewport:i}})},getFirstPrediction:function(t,e){var i=this;this.getPredictions(t,(function(t){t&&t.length?i.getDetails(t[0],(function(t){return e(t)})):e(null)}))},getPredictions:function(e,i){var o="https://api.mapbox.com/geocoding/v5/mapbox.places/"+e+".json?access_token="+mappl10n.options.mapbox;o=mappl10n.options.country?o+"&country="+mappl10n.options.country.toLowerCase():o,o=mappl10n.options.language?o+"&language="+mappl10n.options.language.toLowerCase():o,t.getJSON(o,(function(t){t&&t.features&&t.features.length>0?(t.features=t.features.map((function(t){return t.value=t.label=t.place_name,t})),i(t.features)):i(null)}))}}}(jQuery),function(t){r.geocoders.nominatim=function(t){this.map=t},r.geocoders.nominatim.prototype={getDetails:function(t,e){var i=t.display_name.indexOf(","),o=i>0?t.display_name.substring(0,i):t.display_name,n=t.boundingbox&&4==t.boundingbox.length?{sw:{lat:t.boundingbox[0],lng:t.boundingbox[2]},ne:{lat:t.boundingbox[1],lng:t.boundingbox[3]}}:null;e({formatted_address:t.display_name,name:o,geometry:{location:{lat:t.lat,lng:t.lon},viewport:n}})},getFirstPrediction:function(t,e){var i=this;this.getPredictions(t,(function(t){t&&t.length?i.getDetails(t[0],(function(t){return e(t)})):e(null)}))},getPredictions:function(e,i){var o="https://nominatim.openstreetmap.org/search?format=json&dedupe=1&limit=5&q="+encodeURIComponent(e);o=mappl10n.options.country?o+"&countrycodes="+mappl10n.options.country.toLowerCase():o,o=mappl10n.options.language?o+"&accept-language="+mappl10n.options.language.toLowerCase():o,t.getJSON(o,(function(t){t&&t.length?(t=t.map((function(t){return t.value=t.display_name,t})),i(t)):i(null)}))}}}(jQuery)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=0;e<t.length;e++){var i=t[e].match(/country\/(.*)?/);if(i)return i[1]}return}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={country:"country",city:"city","amenity/bus_station":"busStop","amenity/townhall":"townhall","railway/station":"trainStation","aeroway/aerodrome":"airport","aeroway/terminal":"airport","aeroway/gate":"airport"};for(var i in e)if(-1!==t.indexOf(i))return e[i];return"address"}},function(t,e,i){var o=window.mapp||{};o.Icons={},o.Icons.get=function(t){var e="https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png";return"leaflet"==mappl10n.options.engine?L.icon({iconUrl:e,iconAnchor:[16,32],iconSize:[32,32],popupAnchor:[0,-32]}):{url:e}},o.Icons.getUrl=function(t){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"}},function(t,e){var i,o=window.mapp||{};i=jQuery,o.InfoBox=function(t,e){var o,n=i.extend({border:20},e),s=null,a=null,l=this;a=i('<div class="mapp-ib-wrapper"><div class="mapp-ib" tabindex="0"></div><div class="mapp-ib-tip"></div></div>').appendTo(t.getMap().getDiv()),jQuery(window).resize((function(){l.close()})),a.on("keydown",(function(t){27==t.which&&(l.close(),t.stopImmediatePropagation(),t.preventDefault())})),a.on("click",".mapp-close",(function(){l.close()})),this.getContent=function(){return i(".mapp-ib",a)},this.setContent=function(t){i(".mapp-ib",a).empty().append(t)},this.open=function(t,e){s=e,this.setMap(t)},this.onAdd=function(){o=!1;var t=i(":input",a);a.show(),t.length?t.first().focus():a.focus(),google.maps.event.trigger(l,"domready")},this.draw=function(){var t=this.getMap(),e=(i(".mapp-ib-body",a),this.getProjection().fromLatLngToContainerPixel(s.position));if(!o){o=!0;var l={width:i(":first-child",t.getDiv()).width(),height:i(":first-child",t.getDiv()).height()};a.css({"max-height":"9999px",left:0,bottom:0,top:"auto",right:"auto"});var r=a.outerWidth(!0),p=a.outerHeight(!0);p>l.height+s.anchorPoint.y-2*n.border&&(p=l.height+s.anchorPoint.y-2*n.border,a.css({"max-height":p+2}));var h=e.x,c=e.y;h+r/2>l.width&&(h=l.width-r/2),h-r/2<0&&(h=r/2),c-p+s.anchorPoint.y<n.border&&(c=p-s.anchorPoint.y+n.border),c>l.height&&(c=l.height),(e.x-h||e.y-c)&&t.panBy(e.x-h,e.y-c),a.css({left:h-r/2,bottom:l.height-c-s.anchorPoint.y})}},this.close=function(){a.is(":visible")&&(this.setMap(null),google.maps.event.trigger(this,"closed"))},this.onRemove=function(){a.hide()}},"leaflet"!=mappl10n.options.engine&&(o.InfoBox.prototype=new google.maps.OverlayView)},function(t,e){var i,o=window.mapp||{};i=jQuery,o.Places=function(t,e){var n=this;this.sel=i(t),this.opts=i.extend({map:null},e);var s="";s="leaflet"!=mappl10n.options.engine?"google":mappl10n.options.geocoder?mappl10n.options.geocoder:"algolia",this.geocoder=new o.geocoders[s](this.opts.map),this.sel.on("keydown",(function(t){if(13==t.which){t.preventDefault();var e=n.parseLatLng(n.sel.val());e&&(i(n).triggerHandler("search.mapp",e),n.sel.autocomplete("close"),t.stopImmediatePropagation()),"http"==n.sel.val().substring(0,4)&&(i(n).triggerHandler("search.mapp",n.sel.val()),n.sel.autocomplete("close"),t.stopImmediatePropagation()),!1===mappl10n.options.autocomplete&&(n.sel.autocomplete("option","disabled",!1),n.sel.autocomplete("search"))}else!1===mappl10n.options.autocomplete&&n.sel.autocomplete("option","disabled",!0),n.sel.autocomplete("close")})),this.initAutocomplete()},o.Places.prototype={parse:function(t,e){var o=t&&t.name?i.trim(t.name):i.trim(t);if(o)if("user"!=o)if(t&&t.geometry)e(t);else{var n=this.parseLatLng(t);n?e(n):this.geocoder.getFirstPrediction(t,(function(t){e(t)}))}else this.geolocate((function(t){e(t)}));else e(null)},parseLatLng:function(t){var e;if(t.lat&&t.lng)e=t;else{var o=(t&&t.name?i.trim(t.name):i.trim(t)).split(",");if(2==o.length){var n=parseFloat(o[0]),s=parseFloat(o[1]);isNaN(n)||isNaN(s)||(e={lat:n,lng:s})}}return e?{name:e.lat+", "+e.lng,geometry:{location:e}}:null},geolocate:function(t){var e=this;navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition((function(i){var o={lat:i.coords.latitude,lng:i.coords.longitude};t({name:o.lat+", "+o.lng,geometry:{location:o}}),e.sel.val("")}),(function(e){var i=e&&e.message?" : "+e.message:"";alert(mappl10n.no_geolocate+i),t(null)}),{timeout:15e3,enableHighAccuracy:!0,maximumAge:3e4}):alert(mappl10n.no_geolocate)},initAutocomplete:function(){var t=this;this.sel.on("autocompleteselect",(function(e,o){t.geocoder.getDetails(o.item,(function(e){t.parse(e,(function(e){e&&i(t).triggerHandler("search.mapp",e)}))}))})),this.sel.autocomplete({appendTo:this.sel.parent(),autoFocus:!0,minLength:1,delay:"nominatim"===mappl10n.options.geocoder?500:300,disabled:!1===mappl10n.options.autocomplete,source:function(e,i){t.geocoder.getPredictions(e.term,(function(t){i(t)}))}})}}},function(t,e){var i,o=window.mapp||{};i=jQuery,o.Poi=function(t){if(this.defaults={address:null,body:null,iconid:null,kml:null,map:null,overlay:null,postid:null,props:null,title:"",url:null,type:null,viewport:null},i.extend(this,this.defaults,t),t&&t.correctedAddress&&(this.address=t.correctedAddress),"leaflet"==mappl10n.options.engine&&this.isPoly()&&(this.type=null),t.viewport&&t.viewport.sw&&t.viewport.ne&&t.viewport.sw.lat){var e=t.viewport.sw,o=t.viewport.ne;"leaflet"==mappl10n.options.engine?this.viewport=new L.LatLngBounds(L.latLng(e.lat,e.lng),L.latLng(o.lat,o.lng)):this.viewport=new google.maps.LatLngBounds(new google.maps.LatLng(e.lat,e.lng),new google.maps.LatLng(o.lat,o.lng))}var n=[],s=[];if(!t.overlay)switch(this.type){case"polygon":if(t.poly&&t.poly.paths)for(var a=0;a<t.poly.paths.length;a++){n=[];for(var l=0;l<t.poly.paths[a].length;l++)n.push(new google.maps.LatLng(t.poly.paths[a][l].lat,t.poly.paths[a][l].lng));s.push(new google.maps.MVCArray(n))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(s)}),this.setColors(t.poly);break;case"polyline":if(t.poly&&t.poly.path)for(a=0;a<t.poly.path.length;a++)n.push(new google.maps.LatLng(t.poly.path[a].lat,t.poly.path[a].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(n)}),this.setColors(t.poly);break;case"circle":var r=new google.maps.LatLng(t.point.lat,t.point.lng);this.overlay=new google.maps.Circle({center:r,radius:parseFloat(t.poly.radius)}),this.setColors(t.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport}),this.setColors(t.poly);break;case"kml":var p=t.kml&&t.kml.url?t.kml.url:"";this.overlay="leaflet"==mappl10n.options.engine?omnivore.kml(p):new google.maps.KmlLayer(p,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:"leaflet"==mappl10n.options.engine?this.overlay=L.marker([t.point.lat,t.point.lng],{title:t.title}):this.overlay=new google.maps.Marker({position:new google.maps.LatLng(t.point.lat,t.point.lng),title:t.title})}t.type||this.setIcon(t.iconid)},o.Poi.prototype={center:function(t){var e=this.getBounds();if("number"!=typeof t)if(e){var i=e.getNorthEast().toJSON().lng-e.getSouthWest().toJSON().lng;i<0&&(i+=360),t=Math.round(Math.log(360*this.map.div.canvas.width()/i/256)/Math.LN2),this.map.setView(this.getPosition(),t,{animate:!1})}else this.map.setView(this.getPosition(),parseInt(mappl10n.options.poiZoom));else this.map.setView(this.getPosition(),t)},getAddress:function(){return this.address?this.address:this.getPosition().toUrlValue()},getAnchorPoint:function(t){switch(this.isPoly()?"poly":this.type){case"kml":return"leaflet"==mappl10n.options.engine?[0,0]:t&&t.pixelOffset?new google.maps.Point(t.pixelOffset.width,t.pixelOffset.height):new google.maps.Point(0,0);case"poly":return"leaflet"==mappl10n.options.engine?[0,0]:new google.maps.Point(0,0);default:return"leaflet"==mappl10n.options.engine?this.overlay.options.icon.options.popupAnchor?this.overlay.options.icon.options.popupAnchor:[0,-32]:void 0!==this.overlay.anchorPoint?this.overlay.anchorPoint:new google.maps.Point(0,-32)}},getBounds:function(){var t;switch(this.type){case"polyline":t=new google.maps.LatLngBounds,this.overlay.getPath().forEach((function(e){t.extend(e)}));break;case"polygon":t=new google.maps.LatLngBounds,this.overlay.getPaths().forEach((function(e){e.forEach((function(e){t.extend(e)}))}));break;case"rectangle":case"circle":t=this.overlay.getBounds();break;case"kml":t=(t="leaflet"==mappl10n.options.engine?this.overlay.getBounds().isValid()?this.overlay.getBounds():null:this.overlay.getDefaultViewport())||this.viewport;break;default:return this.viewport}return t},getColors:function(){var t={};for(var e in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})void 0!==this.overlay[e]&&(t[e]=this.overlay[e]);return t},getPosition:function(t){if(!this.type)return"leaflet"==mappl10n.options.engine?this.overlay.getLatLng():this.overlay.getPosition();if("kml"==this.type&&t&&t.latLng)return t.latLng;var e=this.getBounds();return e?e.getCenter():"leaflet"==mappl10n.options.engine?new L.latLng(0,0):new google.maps.LatLng(0,0)},getTemplateColors:function(){var t=this.getColors();return"polyline"==this.type?{color:t.strokeColor,opacity:100*t.strokeOpacity,weight:t.strokeWeight}:{color:t.fillColor,opacity:100*t.fillOpacity,weight:t.strokeWeight}},open:function(t){this.map.poiOpen(this,t)},isPoly:function(){return-1!=jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])},render:function(t,e){var i=_.extend(this,{icon:o.Icons.getUrl(this.iconid)});return e&&(i.body=e.description,i.title=e.name),o.lib.template(this.map.templates[t],{poi:i,colors:this.getTemplateColors()})},set:function(t){for(att in t){var e=t[att];switch(att){case"dirty":this.map.set({dirty:e});break;case"iconid":this.setIcon(e);break;default:this[att]=e}}this.map&&"undefined"!=typeof dirty&&this.map.set({dirty:dirty})},setColors:function(t){var e={};for(var i in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})t&&void 0!==t[i]&&(e[i]=t[i]);this.overlay.setOptions(e)},setEditable:function(t){var e=this;"kml"!=this.type&&("leaflet"==mappl10n.options.engine?this.overlay.options.draggable=t:this.overlay.setDraggable(t),this.isPoly()&&this.overlay.setEditable(t),o.event.clearListeners(this.overlay,"rightclick"),o.event.clearListeners(this.overlay,"dragstart"),t&&(o.event.addListener(this.overlay,"dragstart",(function(){e.viewport=null,e.map.poiClose()})),o.event.addListener(this.overlay,"dragend",(function(){e.map.set({dirty:!0})})),"polygon"!=this.type&&"polyline"!=this.type||"leaflet"!=mappl10n.options.engine&&(o.event.addListener(this.overlay,"rightclick",(function(t){null!=t.vertex&&e.overlay.getPath().getLength()>2&&e.overlay.getPath().removeAt(t.vertex)})),o.event.clearListeners(this.overlay.getPath(),"insert_at remove_at set_at"),o.event.addListener(this.overlay.getPath(),"insert_at remove_at set_at",(function(){e.map.set({dirty:!0})})))))},setIcon:function(t){this.type||void 0===o.Icons||(this.iconid=t,"leaflet"==mappl10n.options.engine||this.overlay.setIcon(null),this.overlay.setIcon(o.Icons.get(t)))},setMap:function(t){var e=this;this.map=t,o.event.clearInstanceListeners(this.overlay),null!=t?("kml"==this.type&&("leaflet"==mappl10n.options.engine?(o.event.addListenerOnce(this.overlay,"ready",(function(){e.viewport=e.overlay.getBounds()})),o.event.addListenerOnce(this.overlay,"error",(function(){alert(mappl10n.kml_error)}))):(o.event.addListener(this.overlay,"defaultviewport_changed",(function(){e.viewport=e.overlay.getDefaultViewport()})),o.event.addListener(this.overlay,"status_changed",(function(){var t=e.overlay.getStatus();"OK"!=t&&mappl10n.ajaxErrors&&alert(mappl10n.kml_error+":"+t)})))),o.event.addListener(this.overlay,"click",(function(t){e.open(t)})),this.setEditable(this.map.editable),!this.type&&this.map.clusterer||("leaflet"==mappl10n.options.engine?this.overlay.addTo(t.getMap()):this.overlay.setMap(t.getMap()))):"leaflet"==mappl10n.options.engine?this.overlay.remove():this.overlay.setMap(null)},setTemplateColors:function(t,e,i){var o="polyline"==this.type?{strokeColor:t,strokeOpacity:e/100,strokeWeight:i}:{fillColor:t,fillOpacity:e/100,strokeColor:t,strokeWeight:i,strokeOpacity:1};this.setColors(o)},setVisible:function(t){void 0!==this.overlay.setVisible&&this.overlay.setVisible(t)},setZIndex:function(t){"leaflet"==mappl10n.options.engine?this.type||this.overlay.setZIndexOffset(t):this.overlay.set("zIndex",t)},toJSON:function(){var t={address:this.address,body:this.body,iconid:this.iconid,point:null,poly:null,title:this.title,type:this.type,viewport:null},e=this.getPosition();t.point=e.toJSON();var i=this.viewport?this.viewport:this.getBounds();if(i){var o=i.toJSON();t.viewport={sw:{lat:o.south,lng:o.west},ne:{lat:o.north,lng:o.east}}}if("kml"==this.type&&(t.kml=this.kml),this.isPoly())switch(t.poly=this.getColors(),this.type){case"circle":t.poly.radius=this.overlay.getRadius();break;case"polyline":t.poly.path=[],this.overlay.getPath().forEach((function(e){t.poly.path.push(e.toJSON())}));break;case"polygon":t.poly.paths=[],this.overlay.getPaths().forEach((function(e){var i=[];e.forEach((function(t){i.push(t.toJSON())})),t.poly.paths.push(i)}));break;case"rectangle":var n=this.overlay.getBounds();t.viewport={sw:n.getSouthWest().toJSON(),ne:n.getNorthEast().toJSON()}}return t}}},function(t,e){jQuery,mapp.load=function(){if("undefined"!=typeof mapp&&mapp.data)for(;mapp.data.length;){var t=mapp.data.pop();window[t.name]=new mapp.Map(t),window[t.name].display()}},mapp.load()}]);
build/index_mappress_admin.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=19)}([function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,"default",(function(){return O}));var p=window.mapp||{},l=wp.element.createElement,c=wp.i18n,u=c.__,m=(c._x,c._n,c.sprintf,wp.element),d=m.Fragment,f=m.useEffect,h=(m.useLayoutEffect,m.useRef),y=m.useState,b=wp.components,v=b.Button,g=b.Modal,w=(b.Popover,b.Spinner,b.TextControl);function O(t){var e=o(y({isFetchingMap:!!t.mapid,isSavingMap:!1,map:null}),2),n=e[0],i=e[1],a=h(null);function s(t){i((function(e){return r(r({},e),t)}))}function c(e,i){switch(e){case"change-title":n.map.set({dirty:!0,title:i}),s({map:n.map});break;case"close":t.onAction("edit-close");break;case"destroy":confirm(mappl10n.delete_map_prompt)&&(p.store.destroyMap({mapid:t.mapid}),t.onAction("edit-destroy"));break;case"save":p.store.saveMap({mapdata:n.map.toJSON(),success:function(e){n.map.set({dirty:!1}),t.onAction("edit-save",e.mapid)}})}}function m(){if(n.map&&!n.isFetchingMap){var t=n.map.title?n.map.title:"";return l(w,{className:"mapp-edit-title",placeholder:u("Untitled"),value:t,onChange:function(t){return c("change-title",t)}})}}function b(){return l("div",{className:"mapp-edit-toolbar",tabIndex:-1,onKeyDown:function(t){return t.stopPropagation()}},l(v,{isPrimary:!0,isBusy:n.isSavingMap,onClick:function(){return c("save")}},u("Save")),l(v,{disabled:n.isSavingMap,onClick:function(){return c("close")}},u("Cancel")),l(v,{disabled:!t.mapid||n.isSavingMap,isDestructive:!0,className:"mapp-edit-delete",onClick:function(){return c("destroy")}},u("Delete")))}return f((function(){var e=function(e){s({mapdata:e.maps[t.mapid],isFetchingMap:e.isFetchingMap,isSavingMap:e.isSavingMap})};return p.store.subscribe(e),function(){return p.store.unsubscribe(e)}})),f((function(){t.mapid&&p.store.fetchMap({mapid:t.mapid})}),[]),f((function(){n.isFetchingMap||function(t){var e=new p.Map(t,{center:null,editable:!0,embed:!0,iwType:"ib",layout:"left",mapOpts:{streetViewControl:!1},menu:!1,name:"media-map",poiList:!0,sel:jQuery(a.current),zoom:null});new p.Editor(e);s({map:e})}(n.mapdata)}),[n.mapdata]),"library"==t.context?l(d,null,m(),l("div",{className:"mapp-edit",ref:a}),b()):l(g,{className:"mapp-edit-modal",focusOnMount:!0,isDismissible:!1,title:m(),shouldCloseOnEsc:!1,shouldCloseOnClickOutside:!1,onRequestClose:function(){c("close")}},l("div",{className:"mapp-edit",ref:a,onKeyDown:function(t){return t.stopPropagation()},tabIndex:-1}),b())}},function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,"default",(function(){return S}));var p=window.mapp||{},l=wp.element.createElement,c=wp.i18n,u=c.__,m=(c._x,c._n,c.sprintf,wp.data.select),d=wp.element,f=d.Fragment,h=d.useEffect,y=(d.useLayoutEffect,d.useRef),b=d.useState,v=wp.components,g=(v.BaseControl,v.Button),w=(v.Dashicon,v.Modal),O=(v.PanelBody,v.RadioControl),j=v.Spinner,k=v.TextControl;function S(t){var e=o(b({isFetchingItems:!0,items:null,search:"",type:"all"}),2),n=e[0],i=e[1],a=y(null),s=y(null);function c(t){i((function(e){return r(r({},e),t)}))}function d(t){if("post"==n.type&&t.postid!=mappl10n.options.postid)return!1;var e=n.search.toLowerCase();return!e||(t.mapid.indexOf(e)>=0||(!!(t.post_title&&t.post_title.toLowerCase().indexOf(e)>=0)||!!(t.map_title&&t.map_title.toLowerCase().indexOf(e)>=0)))}function v(e,n){switch(e){case"close":t.onAction("list-close");break;case"destroy":confirm(mappl10n.delete_map_prompt)&&(p.store.destroyMap({mapid:n}),n==t.mapid&&t.onAction("list-destroy",n)),a.current.focus();break;case"select":t.onAction("list-select",n)}}function S(){var e="library"==t.context?null:l(O,{className:"mapp-pick-type",options:[{label:u("All maps"),value:"all"},{label:u("Attached to this post"),value:"post"}],onChange:function(t){return c({type:t})},selected:n.type});return l("div",{className:"mapp-pick-filter"},l(k,{ref:a,className:"mapp-pick-search",tabIndex:1,label:u("Search"),placeholder:u("post title, map title, or map id"),onChange:function(t){return c({search:t})}}),n.isFetchingItems&&l(j,null),e)}function C(){var t=_.filter(n.items,d);return n.isFetchingItems?null:t.length?l("div",{className:"mapp-pick-items"},l("div",{className:"mapp-pick-header"},l("div",{className:"mapp-pick-col-map-title"},u("Map title")),l("div",{className:"mapp-pick-col-mapid"},u("Map ID")),l("div",{className:"mapp-pick-col-post-title"},u("Attached to")),l("div",{className:"mapp-pick-col-actions"},u("Action"))),_.map(t,P)):void l("div",{className:"mapp-pick-items"},l("div",{className:"mapp-pick-message"},u("No maps found")))}function P(e){var i,r,a,o=e.mapid==t.mapid;r=e.postid==mappl10n.options.postid?m("core/editor").getEditedPostAttribute("title"):e.post_title,i=e.map_title?e.map_title:u("Untitled"),r=r||u("Untitled"),e.postid>0&&e.postid==mappl10n.options.postid&&"all"==n.type&&(r+=" ("+u("current post")+")"),a=e.postid>0?e.postid==mappl10n.options.postid?r:l("a",{onClick:function(t){return t.stopPropagation()},href:mappl10n.options.editurl+"?post="+e.postid+"&action=edit",target:"_blank",title:u("Edit post")},r):u("Unattached");var p=l("div",{className:"mapp-pick-col-actions"},"library"==t.context&&l(g,{onClick:function(t){var n,i;t.stopPropagation(),n=e.mapid,i=jQuery("<input>"),jQuery("body").append(i),i.val('[mappress mapid="'+n+'"]').select(),document.execCommand("copy"),i.remove(),alert(u("Shortcode copied"))},title:u("Copy shortcode"),icon:"admin-page"}),l(g,{onClick:function(t){t.stopPropagation(),v("destroy",e.mapid)},title:u("Delete map"),icon:"trash"}));"library"==t.context&&e.mapid;return l("div",{className:"mapp-pick-item"+(o?" mapp-selected":""),ref:o?s:null,key:e.mapid+"|"+e.postid,onClick:function(){return v("select",e.mapid)}},l("div",{className:"mapp-pick-col-map-title"},i),l("div",{className:"mapp-pick-col-mapid"},e.mapid),l("div",{className:"mapp-pick-col-post-title"},a),p)}return h((function(){var t=function(t){c({isFetchingItems:t.isFetchingItems,items:t.items})};return p.store.subscribe(t),function(){return p.store.unsubscribe(t)}})),h((function(){a.current&&a.current.focus(),p.store.fetchItems({})}),[]),h((function(){n.items&&(t.scrollTop>=0?jQuery(".mapp-pick-items").scrollTop(t.scrollTop):s.current&&s.current.scrollIntoView(!0))}),[n.items]),"library"==t.context?l(f,null,S(),C()):l(w,{className:"mapp-pick-modal",title:u("Select a map"),onRequestClose:function(){return v("close")}},S(),C())}},function(t,e,n){"use strict";function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,"MappSettings",(function(){return v}));window.mapp;var a=wp.element.createElement,o=wp.i18n,s=o.__,p=(o._x,o._n,o.sprintf,wp.element),l=p.Fragment,c=(p.useEffect,p.useLayoutEffect,p.useRef,p.useState),u=wp.components,m=u.BaseControl,d=u.Button,f=u.ButtonGroup,h=(u.Dashicon,u.Dropdown,u.ExternalLink,u.Panel,u.PanelBody,u.PanelRow),y=(u.RadioControl,u.SelectControl),b=u.TextControl;function v(t){var e,n=i(c({}),2);n[0],n[1];function r(t){if(!t||"string"!=typeof t)return t;var e={px:2048,vw:100,vh:100,"%":100},n=parseInt(t),i=2048,r="";for(var a in e)t.includes(a)&&(r=a,i=e[a]);return n>i?i+r:t}function o(e,n){var i=null;switch(e){case"poiList":t.map.set({poiList:n}),i={poiList:n};break;case"size":n.hasOwnProperty("height")&&(n.height=r(n.height)),n.hasOwnProperty("width")&&(n.width=r(n.width)),t.map.setSize(n),i=n;break;case"viewport-reset":t.map.center=t.map.zoom=null,t.map.recenter(),i={center:void 0,zoom:void 0};break;case"viewport-save":var a=t.map.getCenter().toJSON();i={center:a.lat+","+a.lng,zoom:t.map.getZoom()},wp.data.dispatch("core/notices").createNotice("success",s("Viewport saved"),{type:"snackbar",isDismissible:!0})}i&&t.onAction("change-settings",i)}return a("div",{className:"mapp-settings"},null,"mashup"!=t.context&&(e=t.map.title?t.map.title:s("Untitled"),a(h,null,a(m,{className:"mapp-settings-title"},e),a(m,{className:"mapp-settings-id",label:s("Map ID")},t.map.mapid))),function(){var e=mappl10n.options.sizes[mappl10n.options.size]?mappl10n.options.sizes[mappl10n.options.size]:mappl10n.options.sizes[0],n=mappl10n.options.sizes.map((function(t,e){return{label:t.width+"x"+t.height,height:t.height,width:t.width,value:e+1}}));n.unshift({height:"",label:s("Default"),value:0,width:""}),n.push({label:s("Custom"),value:"custom",disabled:!0});for(var i="custom",r=0;r<n.length-1;r++)n[r].width==t.width&&n[r].height==t.height&&(i=r);return a(l,null,a(y,{className:"mapp-settings-dims-select",help:"",label:s("Size"),value:i,options:n,onChange:function(t){return o("size",{width:n[t].width,height:n[t].height})}}),a(h,null,a(b,{className:"mapp-settings-dims-custom",help:s("px, %, vw"),label:s("Width"),onChange:function(t){return o("size",{width:t})},placeholder:e.width,value:t.width}),a(b,{className:"mapp-settings-dims-custom",help:s("px, %, vh"),label:s("Height"),onChange:function(t){return o("size",{height:t})},placeholder:e.height,value:t.height})))}(),(t.center&&(t.center.lat,t.center.lng,s("Zoom"),t.zoom),a(h,null,a(m,{label:s("Center/Zoom")}),a(m,null,a(f,null,a(d,{onClick:function(){return o("viewport-reset")},isPressed:!t.center,isSmall:!0},s("Automatic")),a(d,{onClick:function(){return o("viewport-save")},isPressed:t.center,isSmall:!0},s("Save")))))))}},function(t,e,n){"use strict";function i(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,"MappMultiSelect",(function(){return O}));var c=wp.element.createElement,u=wp.i18n,m=u.__,d=(u._x,u._n,u.sprintf,wp.element),f=(d.Fragment,d.useEffect),h=(d.useLayoutEffect,d.useRef),y=d.useState,b=wp.components,v=b.BaseControl,g=(b.Button,b.CheckboxControl),w=(b.Panel,b.PanelBody,b.PanelRow,b.Spinner,b.TextControl);function O(t){var e,n=h(null),r=h(null),o=s(y({isOpen:!1,filter:"",filteredOptions:[]}),2),p=o[0],l=o[1];function u(t){l((function(e){return a(a({},e),t)}))}function d(e){var n=_.findWhere(t.options,{value:e});return n?n.label:e}function b(){var e;return t.values instanceof Array?e=i(t.values):t.values&&(e=[t.values]),e||[]}function O(e,n){var i=b(),r=i.indexOf(e);(n=void 0!==n?n:-1==r)?i.push(e):i.splice(r,1),t.onChange(i)}function j(){return p.isOpen?c("div",{className:"mapp-select-dropdown-wrapper"},c("div",{className:"mapp-select-dropdown"},!p.isOpen||!t.options||t.options.length<10?null:c("div",{className:"mapp-select-filter",ref:r},c(w,{autocomplete:"off",placeholder:m("Search"),value:p.filter,onChange:function(t){return u({filter:t})}})),c("div",{className:"mapp-select-dropdown-list"},(e=b(),0==p.filteredOptions.length?c("div",{className:"mapp-select-dropdown-item"},m("No results")):p.filteredOptions.map((function(t){return c(g,{className:"mapp-select-dropdown-item",checked:e.includes(t.value),onChange:function(e){return O(t.value,e)},label:t.label})})))))):null;var e}return f((function(){if(t.options)if(p.filter){var e=p.filter.toUpperCase();u({filteredOptions:t.options.filter((function(t){return 0==t.label.toUpperCase().indexOf(e)}))})}else u({filteredOptions:t.options})}),[t.options,p.filter]),f((function(){p.isOpen&&r.current&&(jQuery("input",jQuery(r.current)).focus(),u({filter:""}))}),[p.isOpen]),c(v,{className:"mapp-select",label:t.label},c("div",{ref:n,tabIndex:0,onBlur:function(t){return function(t){event.relatedTarget||document.activeElement,n.current.contains(t.relatedTarget)||u({isOpen:!1})}(t)}},((e=b())instanceof Array&&e.map((function(t){return d(t)})),void 0===t.options?c("div",{className:"mapp-select-input"},c("div",{className:"mapp-select-tokens"}),c("span",{className:"dashicons dashicons-arrow-down-alt2"})):c("div",{className:"mapp-select-input",onClick:function(){return u({isOpen:!p.isOpen})}},c("div",{className:"mapp-select-tokens"},e.map((function(t){return c("span",{className:"mapp-select-token",onClick:function(e){e.stopPropagation(),O(t,!1)}},d(t))}))),c("span",{className:"dashicons "+(p.isOpen?"dashicons-arrow-up-alt2":"dashicons-arrow-down-alt2")}))),j()))}},function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,"MappOptions",(function(){return w}));var p=window.mapp||{},l=wp.element.createElement,c=wp.i18n,u=c.__,m=(c._x,c._n,c.sprintf,wp.element),d=(m.Fragment,m.useEffect,m.useLayoutEffect,m.useRef,m.useState),f=wp.components,h=f.BaseControl,y=f.Button,b=f.ButtonGroup,v=(f.Dashicon,f.Dropdown,f.ExternalLink,f.Panel,f.PanelBody,f.PanelRow),g=(f.RadioControl,f.SelectControl,f.TextControl);function w(t){var e=o(d({apiKey:mappl10n.options.apiKey,engine:mappl10n.options.engine}),2),n=e[0],i=e[1];function a(t){i((function(e){return r(r({},e),t)}))}function s(t,e){switch(t){case"apikey":a({apiKey:e});break;case"engine":a({engine:e});break;case"save":p.lib.ajax({type:"POST",data:{action:"mapp_options_save",apiKey:n.apiKey,engine:n.engine,nonce:mappl10n.options.nonce},callback:function(t){wp.data.dispatch("core/notices").createNotice("success",u("Options saved."),{type:"snackbar",isDismissible:!0,actions:[{url:window.location,label:"Refresh page"}]})}})}}return l("div",{className:"mapp-options"},null,l(v,null,l(h,{label:u("Mapping Engine")}),l(h,null,l(b,null,l(y,{onClick:function(){return s("engine","leaflet")},isPressed:"google"!=n.engine,isSmall:!0},u("Leaflet")),l(y,{onClick:function(){return s("engine","google")},isPressed:"google"==n.engine,isSmall:!0},u("Google"))))),"google"!=n.engine?null:l(g,{className:"mapp-settings-apikey",label:l("a",{href:"https://mappresspro.com/mappress-faq/#toc-google-maps-api-keys"},u("Google API key")),onChange:function(t){return s("apikey",t)},value:n.apiKey}),l(y,{onClick:function(){return s("save")},isPrimary:!0},u("Save options")))}},,,,,,,,,,,,,,,function(t,e,n){n(0),n(20),n(21),n(22),n(4),n(1),n(2),n(25),n(3),n(26),n(27),n(28)},function(t,e,n){"use strict";n.r(e);var i=n(1),r=n(0);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}window.mapp;var c=wp.element.createElement,u=wp.i18n,m=u.__,d=(u._x,u._n,u.sprintf,wp.element),f=(d.Fragment,d.render),h=d.useEffect,y=(d.useLayoutEffect,d.useRef,d.useState),b=wp.components.Button;document.getElementById("mapp-library")&&(mappl10n.options.postid=0,f(c((function(t){var e=p(y({mode:"list",mapid:null,scrollTop:null}),2),n=e[0],a=e[1];function s(t){a((function(e){return o(o({},e),t)}))}function l(t,e){switch(t){case"add-new":s({mode:"edit",mapid:null});break;case"edit-close":s({mode:"list"});break;case"edit-destroy":s({mode:"list",mapid:null});break;case"edit-save":s({mode:"list"});break;case"list-select":s({mode:"edit",mapid:e,scrollTop:jQuery(".mapp-pick-items").scrollTop()})}}return h((function(){}),[]),"list"==n.mode?c("div",{className:"wrap"},c("div",null,c("h1",null,m("Map Library")),c(b,{className:"button button-default",onClick:function(){return l("add-new")}},m("Add New"))),c("div",{className:"mapp-library-wrapper"},c(i.default,{context:"library",mapid:n.mapid,onAction:l,scrollTop:n.scrollTop}))):c("div",{className:"wrap"},c("div",{className:"mapp-library-wrapper"},c(r.default,{context:"library",mapid:n.mapid,onAction:l})))}),null),document.getElementById("mapp-library")))},function(t,e,n){"use strict";n.r(e);var i=n(2),r=n(4),a=n(1),o=n(0);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(t){r=!0,a=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var m=window.mapp||{},d=wp.element.createElement,f=wp.i18n,h=f.__,y=(f._x,f._n,f.sprintf,wp.element),b=y.Fragment,v=y.useEffect,g=(y.useLayoutEffect,y.useRef),w=y.useState;function O(t){var e=wp.components,n=(e.BaseControl,e.Button),s=(e.ButtonGroup,e.CheckboxControl,e.Dropdown,e.Modal,e.Panel,e.PanelBody),l=(e.PanelRow,e.Placeholder),u=(e.RadioControl,e.SelectControl,e.TextControl,e.ToggleControl,e.Toolbar),f=e.ToolbarButton,y=(e.ToolbarGroup,wp.blockEditor),O=y.BlockControls,j=y.InspectorControls,k=c(w({editMapid:null,isListOpen:!1,isEditorOpen:!1,map:null,mapdata:null,scrollTop:null}),2),S=k[0],C=k[1],P=g(null);function _(t){C((function(e){return p(p({},e),t)}))}function M(e,n){switch(e){case"add":_({isEditorOpen:!0,editMapid:null});break;case"change-settings":t.setAttributes(n);break;case"edit":_({isEditorOpen:!0,editMapid:t.attributes.mapid});break;case"edit-close":_({isEditorOpen:!1,editMapid:null});break;case"edit-destroy":case"list-destroy":t.setAttributes({mapid:void 0,center:void 0,zoom:void 0,width:void 0,height:void 0}),_({isEditorOpen:!1,isListOpen:!1});break;case"edit-save":_({isEditorOpen:!1,editMapid:null}),t.setAttributes({mapid:n});break;case"list-close":_({isListOpen:!1,scrollTop:jQuery(".mapp-pick-items").scrollTop()});break;case"list-select":n!=t.attributes.mapid&&t.setAttributes({center:void 0,mapid:n,zoom:void 0}),M("list-close");break;case"open-list":_({isListOpen:!0})}}function E(){var e=void 0!==e?e:u,n=mappl10n.options.block?null:d(f,{icon:"portfolio",label:h("Map Library"),onClick:function(){return M("open-list")}});return d(O,null,d(e,null,d(f,{icon:"insert",label:h("New map"),onClick:function(){return M("add")}}),t.attributes.mapid&&d(f,{icon:"edit",label:h("Edit map"),onClick:function(){return M("edit")}}),n))}function A(){if(S.isEditorOpen)return d(o.default,{mapid:S.editMapid,onAction:M})}function x(){if(S.isListOpen)return d(a.default,{mapid:t.attributes.mapid,onAction:M,scrollTop:S.scrollTop})}return v((function(){var e=function(e){var n=e.maps[t.attributes.mapid];n&&_({mapdata:n})};return m.store.subscribe(e),function(){return m.store.unsubscribe(e)}})),v((function(){t.attributes.mapid&&m.store.fetchMap({mapid:t.attributes.mapid,failure:function(){return _({mapdata:void 0})}})}),[t.attributes.mapid]),v((function(){var e;t.attributes.mapid&&P.current&&S.mapdata&&((e=new m.Map(S.mapdata,{center:t.attributes.center,height:t.attributes.height,mapOpts:{mapTypeControl:!1,streetViewControl:!1},poiList:t.attributes.poiList,sel:jQuery(P.current),width:t.attributes.width,zoom:t.attributes.zoom})).display(),_({map:e}))}),[S.mapdata]),t.attributes.preview?d("img",{className:"mapp-gt-preview",src:mappl10n.options.baseurl+"/images/preview.png",width:"100%"}):t.attributes.mapid&&void 0!==S.mapdata?d(b,null,E(),function(){if(!S.map)return null;var e,a;mappl10n.options.block&&(a=d("div",null,d("p",null,h("Like the block? Upgrade to the free plugin or MapPress Pro for more features!")),d("div",null,d(n,{isPrimary:!0,target:"_blank",href:"https://mappresspro.com"},h("MapPress Pro")),d(n,{isSecondary:!0,href:"https://wordpress.org/plugins/mappress-google-maps-for-wordpress"},h("Free plugin")))),e=d(s,{title:h("MapPress options"),initialOpen:!1},d(r.MappOptions,{onAction:M})));var o=t.attributes,p=o.center,l=o.height,c=o.poiList,u=o.width,m=o.zoom;return d(j,null,d("div",{className:"mapp-gt-inspector"},d(s,{title:h("Map settings")},d(i.MappSettings,{map:S.map,context:"map",onAction:M,center:p,height:l,poiList:c,width:u,zoom:m}),a),e))}(),d("div",{className:"mapp-gt",ref:P}),x(),A()):d(b,null,d(b,null,E(),d(l,{className:"mapp-gt-placeholder",icon:"location",label:h("MapPress Map"),instructions:h("Create a new map or choose one from the map library.")},d(n,{icon:"insert",isSecondary:!0,onClick:function(){return M("add")}},h("New map")),!mappl10n.options.block&&d(n,{icon:"portfolio",isSecondary:!0,onClick:function(){return M("open-list")}},h("Map Library")))),x(),A())}mappl10n.options.gt&&wp.blocks.registerBlockType("mappress/map",{title:"MapPress Map",icon:"location",description:h("Insert a map"),category:"mappress",attributes:{center:{type:"string"},height:{type:"string",default:""},initialOpenDirections:{type:"boolean"},mapid:{type:"string"},mapOpts:{type:"object"},poiList:{type:"boolean"},preview:{type:"boolean",default:!1},width:{type:"string",default:""},zoom:{type:"number"}},supports:{align:["left","center","right"]},transforms:{from:[{type:"shortcode",tag:"mappress",attributes:{center:{type:"string",shortcode:function(t){return t.named.center}},height:{type:"string",shortcode:function(t){return t.named.height}},initialOpenDirections:{type:"boolean",shortcode:function(t){return"true"==t.named.initialOpenDirections||"true"==t.named.initialopendirections}},mapid:{type:"string",shortcode:function(t){return t.named.mapid}},poiList:{type:"boolean",shortcode:function(t){return"true"==t.named.poiList||"true"==t.named.poilist}},width:{type:"string",shortcode:function(t){return t.named.width}},zoom:{type:"number",shortcode:function(t){return parseInt(t.named.zoom)?parseInt(t.named.zoom):null}}}},{type:"block",blocks:["core/shortcode"],isMatch:function(t){var e=t.text,n=wp.shortcode.regexp("mappress");return n.lastIndex=0,n.test(e)},transform:function(t){var e=t.text;return wp.blocks.rawHandler({HTML:"<p>"+e+"</p>",mode:"BLOCKS"})}}]},edit:function(t){return d(O,t)},save:function(t){return t},example:{attributes:{preview:!0}}})},function(t,e,n){"use strict";n.r(e);n(2),n(3),n(23);window.mapp,wp.element.createElement;var i=wp.i18n,r=(i.__,i._x,i._n,i.sprintf,wp.element),a=(r.Fragment,r.useEffect,r.useLayoutEffect,r.useRef,r.useState,wp.components);a.BaseControl,a.Button,a.ButtonGroup,a.Card,a.CardBody,a.CardFooter,a.CardHeader,a.CheckboxControl,a.ExternalLink,a.HorizontalRule,a.Panel,a.PanelBody,a.PanelRow,a.Placeholder,a.RadioControl,a.SelectControl,a.TabPanel,a.TextControl,a.TextareaControl,a.ToggleControl,a.Toolbar,wp.data.useSelect},function(t,e,n){"use strict";(function(e){t.exports=function(t,n){var i,r,a,o,s,p,l,c,u,m,d,f,h,y=String(t).replace(/^&/,"").replace(/&$/,"").split("&"),b=y.length,v=function(t){return decodeURIComponent(t.replace(/\+/g,"%20"))},g="undefined"!=typeof window?window:e;g.$locutus=g.$locutus||{};var w=g.$locutus;for(w.php=w.php||{},n||(n=g),i=0;i<b&&(u=v((c=y[i].split("="))[0]),m=c.length<2?"":v(c[1]),!(u.includes("__proto__")||u.includes("constructor")||u.includes("prototype")));i++){for(;" "===u.charAt(0);)u=u.slice(1);if(u.indexOf("\0")>-1&&(u=u.slice(0,u.indexOf("\0"))),u&&"["!==u.charAt(0)){for(f=[],d=0,r=0;r<u.length;r++)if("["!==u.charAt(r)||d){if("]"===u.charAt(r)&&d&&(f.length||f.push(u.slice(0,d-1)),f.push(u.substr(d,r-d)),d=0,"["!==u.charAt(r+1)))break}else d=r+1;for(f.length||(f=[u]),r=0;r<f[0].length&&(" "!==(l=f[0].charAt(r))&&"."!==l&&"["!==l||(f[0]=f[0].substr(0,r)+"_"+f[0].substr(r+1)),"["!==l);r++);for(p=n,r=0,h=f.length;r<h;r++){if(s=p,(""===(u=f[r].replace(/^['"]/,"").replace(/['"]$/,""))||" "===u)&&0!==r){for(o in a=-1,p)p.hasOwnProperty(o)&&+o>a&&o.match(/^\d+$/g)&&(a=+o);u=a+1}Object(p[u])!==p[u]&&(p[u]={}),p=p[u]}s[u]=m}}}}).call(this,n(24))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s=window.mapp||{},p=wp.i18n,l=p.__;p._x,p._n,p.sprintf;s.Store=function(){this.subs=new Set,this.state={isFetchingMap:!1,isFetchingItems:!1,isSavingMap:!1,itemsFetched:!1,maps:{},items:[]}},s.Store.prototype={createMap:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.success,n=void 0===e?function(){}:e;this.state.isFetchingMap=!1,this.publish(),n()},destroyMap:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.mapid,n=t.success,i=void 0===n?function(){}:n,r=this;s.lib.ajax({type:"POST",data:{action:"mapp_delete",mapid:e,nonce:mappl10n.options.nonce},callback:function(t){t&&"OK"==t.status?(delete r.state.maps[e],r.destroyItem(e),i(e)):failure(),r.publish()}})},fetchMap:function(t){var e=t.mapid,n=t.success,i=void 0===n?function(){}:n,r=t.failure,a=void 0===r?function(){}:r,o=this;if(void 0!==this.state.maps[e])return o.publish(),void i(this.state.maps[e]);this.state.isFetchingMap=!0,o.publish(),s.lib.ajax({type:"GET",data:{action:"mapp_get",mapid:e,nonce:mappl10n.options.nonce},callback:function(t){t&&"OK"==t.status?(o.state.maps[e]=t.data,i(t.data)):a(),o.state.isFetchingMap=!1,o.publish()}})},saveMap:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.mapdata,n=t.success,i=void 0===n?function(){}:n,r=t.failure,a=void 0===r?function(){}:r,o=this;this.state.isSavingMap=!0,this.publish(),s.lib.ajax({type:"POST",data:{action:"mapp_save",mapdata:JSON.stringify(e),nonce:mappl10n.options.nonce},callback:function(t){if(t&&"OK"==t.status){var e=t.data,n=e.mapid;o.state.maps[n]=e,o.saveItem(e),i(e)}else a();o.state.isSavingMap=!1,o.publish()}})},destroyItem:function(t){var e=this.state.items?this.state.items:[],n=_.findIndex(e,{mapid:t});n>-1&&e.splice(n,1),this.state.items=r(e),this.publish()},fetchItems:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.success,n=void 0===e?function(){}:e,i=t.failure,r=void 0===i?function(){}:i,a=this;if(this.state.itemsFetched)return n(this.state.items),void a.publish();this.state.isFetchingItems=!0,a.publish(),s.lib.ajax({type:"GET",data:{action:"mapp_find",nonce:mappl10n.options.nonce},callback:function(t){t&&"OK"==t.status?(a.state.items=t.data,a.sortItems(),n(a.state.items),a.state.itemsFetched=!0):r(),a.state.isFetchingItems=!1,a.sortItems(),a.publish()}})},saveItem:function(t){var e=this.state.items?this.state.items:[],r=_.findWhere(e,{mapid:t.mapid});r?(r.map_title=t.title,r=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r)):(r={mapid:t.mapid,map_title:t.title,postid:mappl10n.options.postid,post_title:null},e.unshift(r))},sortItems:function(){var t=l("Untitled");this.state.items=_.sortBy(this.state.items,(function(t){return parseInt(t.mapid)})),this.state.items=_.sortBy(this.state.items,(function(e){return e.map_title?e.map_title:t}))},subscribe:function(t){this.subs.add(t)},unsubscribe:function(t){this.subs.delete(t)},publish:function(){var t,e=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,p=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){p=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(p)throw o}}}}(r(this.subs));try{for(e.s();!(t=e.n()).done;){(0,t.value)(this.state)}}catch(t){e.e(t)}finally{e.f()}}},s.store=new s.Store},function(t,e,n){var i,r=window.mapp||{};i=jQuery,r.Editor=function(t){this.drawingManager=null,this.map=t,this.poiEditor=null;var e=this;this.initialize=function(){this.map.display(),this.poiEditor=new r.PoiEditor(this.map),this.initDrawingManager(),i(this.map.places).off("search.mapp"),i(this.map.places).on("search.mapp",(function(t,n){e.insert(n)}))},this.insert=function(t){if(t)if(this.drawingManager&&this.drawingManager.setDrawingMode(null),this.map.poiClose(),t.geometry){var e=t.formatted_address?t.formatted_address.replace(/, United States of America/i,"").replace(/, United States/i,"").replace(/, USA/i,""):null,n=t.name==e?"":e,i=new r.Poi({address:e,body:n,iconid:this.poiEditor.lastIcon,point:t.geometry.location,title:t.name,viewport:t.geometry.viewport?t.geometry.viewport:null});this.map.poiInsert(i),i.center()}else t.overlay?(i=new r.Poi({body:"",iconid:"marker"==t.type?null:"poly",overlay:t.overlay,title:"marker"==t.type?t.overlay.getPosition().toUrlValue(6):mappl10n.shape,type:"marker"==t.type?null:t.type}),this.map.poiInsert(i)):"string"==typeof t&&t.substring(0,4)},this.initDrawingManager=function(){},this.initialize.apply(this)},r.PoiEditor=function(t){this.map=t,this.poi=null,this.sel=null,this.lastIcon=null;var e=this;this.initialize=function(){this.sel=i(this.map.iw.getContent()),i(this.map).on("mapp.open",(function(t,n){e.render(n)})),i(this.map).on("mapp.close",(function(){e.mce(!1)})),this.sel.on("click","[data-mapp-poi]",(function(t){t.preventDefault();var n=i(this).attr("data-mapp-poi");e[n]()})),this.sel.on("click",".mapp-poi-visual, .mapp-poi-html",(function(t){var n=i(this).hasClass("mapp-poi-visual");e.mce(n)})),this.sel.on("keydown",(function(t){13==t.which&&t.target!=i("#mapp-poi-body")&&(t.preventDefault(),e.save())})),this.sel.on("change","[data-mapp-iconpicker]",(function(){e.poi.set({dirty:!0,iconid:i("[data-mapp-iconpicker]").attr("data-mapp-iconid")}),e.lastIcon=e.poi.iconid,e.map.renderList()})),this.sel.on("change","[data-mapp-colorpicker]",(function(){e.poi.setTemplateColors(i("[data-mapp-colorpicker]").attr("data-mapp-color"),i("[data-mapp-colorpicker]").attr("data-mapp-opacity"),i("[data-mapp-colorpicker]").attr("data-mapp-weight")),e.map.renderList()}))},this.cancel=function(){this.map.poiClose()},this.initMCE=function(){if("undefined"!=typeof tinyMCE&&void 0!==tinyMCE.init){var t="en";if(void 0!==window.tinyMCEPreInit&&void 0!==window.tinyMCEPreInit.mceInit&&void 0!==window.tinyMCEPreInit.mceInit.content){var e=window.tinyMCEPreInit.mceInit.content;t=void 0!==e.language?e.language:"en"}var n={mode:"none",height:"75px",convert_urls:!1,language:t,menubar:!1,plugins:"wordpress,paste,wplink,textcolor,image",relative_urls:!1,remove_script_host:!1,statusbar:!1,theme:"modern",toolbar1:"bold,italic,link,unlink,image",toolbar2:"",toolbar3:"",toolbar4:""};tinyMCE.init(n),this.mce(!0)}},this.mce=function(t){var n=t?"mceAddEditor":"mceRemoveEditor";"undefined"!=typeof tinyMCE&&tinyMCE.execCommand(n,!1,"mapp-poi-body"),i(".mapp-poi-visual, .mapp-poi-html",e.sel).removeClass("mapp-active"),t?i(".mapp-poi-visual",e.sel).addClass("mapp-active"):i(".mapp-poi-html",e.sel).addClass("mapp-active")},this.remove=function(){confirm(mappl10n.delete_prompt)&&(this.map.poiClose(),this.map.poiRemove(this.poi))},this.render=function(t){this.poi=t,i("[data-mapp-iconpicker]").trigger("refresh"),i("[data-mapp-colorpicker]").trigger("refresh"),this.initMCE()},this.save=function(){"undefined"!=typeof tinyMCE&&tinyMCE.get("mapp-poi-body")&&tinyMCE.get("mapp-poi-body").save(),this.poi.set({dirty:!0,title:i(".mapp-poi-title").val(),body:i(".mapp-poi-body").val()}),this.map.renderList(),this.map.poiClose()},this.initialize.apply(this)}},function(t,e){var n,i=window.mapp||{};n=jQuery,i.Media=function(){this.editor=null,this.map=null,this.settings={editable:!0,layout:"left",poiList:!0,sel:n(".mapp-edit")},this.sel=n(".mapp-mce"),this.items=null;var t=this;this.initialize=function(){this.sel.length&&(this.find(),this.sel.on("change",".mapp-mce-list-type",(function(){var e=n(".mapp-mce-list-type",this.sel).val();n(".mapp-mce-search").val(""),n(".mapp-mce-search").toggle("all"==e),t.find()})),this.sel.on("keydown",".mapp-mce-search",(function(t){if(13==t.which)return!1})),this.sel.on("input",".mapp-mce-search",(function(e){t.find()})),this.sel.on("click","[data-mapp-mce]",(function(e){e.preventDefault();var i=n(this).attr("data-mapp-mce");t[i]()})),this.sel.on("click",".mapp-mce-item",(function(){n(".mapp-mce-list .mapp-mce-item",this.sel).removeClass("mapp-active"),n(this).addClass("mapp-active")})),this.sel.on("click",".mapp-mce-list [data-mapp-mce-list]",(function(e){e.preventDefault();var i=n(this).attr("data-mapp-mce-list"),r=n(this).closest(".mapp-mce-item").attr("data-mapp-mapid");return t[i](r),!1})),this.sel.on("change",".mapp-mce-viewport",(function(){n(this).is(":checked")||(t.map.center=t.map.zoom=null,t.map.recenter())})),n(".mapp-mce-size").click((function(t){var e=n(this).data("width"),i=n(this).data("height");n(".mapp-mce-width").val(e),n(".mapp-mce-height").val(i),t.preventDefault()})),n("#publish, #post-preview").click((function(){t.save()})),n(".mapp-mce-title").keydown((function(e){13==e.which&&(e.preventDefault(),t.save())})))},this.add=function(){var e=new i.Map({},this.settings);e.width=mappl10n.options.sizes[mappl10n.options.size].width,e.height=mappl10n.options.sizes[mappl10n.options.size].height,t.open(e)},this.cancel=function(){t.closeEditor()},this.closeEditor=function(){this.map.poiClose(),this.map=null,this.editor=null,n(".mapp-mce-edit-panel").hide(),n(".mapp-mce-list-panel").show()},this.edit=function(e){i.Map.ajaxGet(e,(function(e){var n=new i.Map(e,t.settings);t.open(n)}))},this.find=function(){var t=this;null!==this.items?this.renderList():(n(".spinner",this.sel).css("visibility","visible"),i.lib.ajax({type:"GET",data:{action:"mapp_find",nonce:mappl10n.options.nonce},callback:function(e){e&&"OK"==e.status&&(n(".spinner",this.sel).css("visibility","hidden"),t.items=_.sortBy(e.data,"post_title"),t.renderList())}}))},this.insert=function(t){var e='[mappress mapid="'+(t=t||this.map.mapid)+'"]';"undefined"==typeof wpActiveEditor?alert(mappl10n.need_classic):send_to_editor(e)},this.open=function(t){this.map=t,n(".mapp-edit",this.sel).html(i.lib.template("edit-map"));var e=this.map.mapid;e?n(".mapp-mce-mapid").text(e):n(".mapp-mce-mapid").text(""),n(".mapp-mce-title").val(this.map.title),n(".mapp-mce-width").val(this.map.width),n(".mapp-mce-height").val(this.map.height),n(".mapp-mce-viewport").prop("checked",!(!this.map.center||!this.map.zoom)),n(".mapp-mce-edit-panel").show(),n(".mapp-mce-list-panel").hide(),this.editor=new i.Editor(this.map)},this.remove=function(t){if(confirm(mappl10n.delete_map_prompt)){var e=_.findIndex(this.items,{mapid:t});e>-1&&(this.items.splice(e,1),i.Map.ajaxDelete(t),this.renderList())}},this.renderList=function(){var t=null,e=n(".mapp-mce-list-type",this.sel).val(),r=n(".mapp-mce-search",this.sel).val().toLowerCase();t="all"==e?_.filter(this.items,(function(t){return t.post_title&&-1!=t.post_title.toLowerCase().indexOf(r)||t.map_title&&-1!=t.map_title.toLowerCase().indexOf(r)})):_.filter(this.items,(function(t){return t.postid==mappl10n.options.postid})),n(".mapp-mce-list",this.sel).html(i.lib.template("mce-list",{items:t,type:e,limit:400}))},this.save=function(){var t=this;this.map&&(this.map.title=n.trim(n(".mapp-mce-title").val()),this.map.width=n(".mapp-mce-width").val(),this.map.height=n(".mapp-mce-height").val(),n(".mapp-mce-viewport").prop("checked")?(this.map.center=this.map.getMap().getCenter().toJSON(),this.map.zoom=this.map.getMap().getZoom()):(this.map.center=null,this.map.zoom=null),this.map.ajaxSave((function(){var e=t.map.mapid?t.map.mapid.toString():null,i=_.findIndex(t.items,(function(t){return t.mapid==e}));-1==i?t.items.unshift({mapid:e,map_title:t.map.title,postid:mappl10n.options.postid,post_title:n("#title").val()||n("#post-title-0").val()}):t.items[i].map_title=t.map.title,t.renderList(),t.closeEditor()})))},this.initialize.apply(this)},i.media=new i.Media},function(t,e){var n;(n=jQuery)(document).ready((function(){n('input[name="mappress_options[engine]"]').on("change",(function(){n('input[name="save"]').click()})),n('input[name="mappress_options[geocoder]"]').on("change",(function(){n('input[name="save"]').click()})),n("[data-mapp-grid]").each((function(t,e){new mapp.widgets.Grid(e)})),n(document).on("focus",".mapp-expand",(function(){n(this).parent().width("100%"),n(this).attr("rows",20)})),n(document).on("blur",".mapp-expand",(function(){n(this).parent().width("auto"),n(this).attr("rows",1)})),n(".mapp-autoicons").on("change","#mapp-autoicons-key",(function(t){mapp.lib.ajax({data:{action:"mapp_autoicons_form",key:n(this).val()},callback:function(t){t&&t.status&&(n(".mapp-autoicons").html(t.data),new mapp.widgets.Grid(n("[data-mapp-grid]",".mapp-autoicons")))}})})),n("#mapp-filters tbody").sortable({handle:".mapp-handle"}),n(".mapp-confirm").on("change",(function(){var t=n(".mapp-confirm").is(":checked");n(".mapp-import").prop("disabled",!t)}))}))}]);
css/leaflet.draw/leaflet.draw.css DELETED
@@ -1,10 +0,0 @@
1
- .leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url('images/spritesheet.png');background-image:linear-gradient(transparent,transparent),url('images/spritesheet.svg');background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url('images/spritesheet-2x.png');background-image:linear-gradient(transparent,transparent),url('images/spritesheet.svg')}
2
- .leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}
3
- .leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{-webkit-border-radius:0;border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{-webkit-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#FFF;font:11px/19px "Helvetica Neue",Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}
4
- .leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}
5
- .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}
6
- .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}
7
- .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}
8
- .leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:rgba(0,0,0,0.5);border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px "Helvetica Neue",Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:rgba(0,0,0,0.5);border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}
9
- .leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:rgba(254,87,161,0.1);border:4px dashed rgba(254,87,161,0.6);-webkit-border-radius:4px;border-radius:4px;box-sizing:content-box}
10
- .leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}
 
 
 
 
 
 
 
 
 
 
css/leaflet/images/layers-2x.png DELETED
Binary file
css/leaflet/images/layers.png DELETED
Binary file
css/leaflet/images/marker-icon-2x.png DELETED
Binary file
css/leaflet/images/marker-icon.png DELETED
Binary file
css/leaflet/images/marker-shadow.png DELETED
Binary file
css/leaflet/leaflet.css DELETED
@@ -1,635 +0,0 @@
1
- /* required styles */
2
-
3
- .leaflet-pane,
4
- .leaflet-tile,
5
- .leaflet-marker-icon,
6
- .leaflet-marker-shadow,
7
- .leaflet-tile-container,
8
- .leaflet-pane > svg,
9
- .leaflet-pane > canvas,
10
- .leaflet-zoom-box,
11
- .leaflet-image-layer,
12
- .leaflet-layer {
13
- position: absolute;
14
- left: 0;
15
- top: 0;
16
- }
17
- .leaflet-container {
18
- overflow: hidden;
19
- }
20
- .leaflet-tile,
21
- .leaflet-marker-icon,
22
- .leaflet-marker-shadow {
23
- -webkit-user-select: none;
24
- -moz-user-select: none;
25
- user-select: none;
26
- -webkit-user-drag: none;
27
- }
28
- /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
29
- .leaflet-safari .leaflet-tile {
30
- image-rendering: -webkit-optimize-contrast;
31
- }
32
- /* hack that prevents hw layers "stretching" when loading new tiles */
33
- .leaflet-safari .leaflet-tile-container {
34
- width: 1600px;
35
- height: 1600px;
36
- -webkit-transform-origin: 0 0;
37
- }
38
- .leaflet-marker-icon,
39
- .leaflet-marker-shadow {
40
- display: block;
41
- }
42
- /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
43
- /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
44
- .leaflet-container .leaflet-overlay-pane svg,
45
- .leaflet-container .leaflet-marker-pane img,
46
- .leaflet-container .leaflet-shadow-pane img,
47
- .leaflet-container .leaflet-tile-pane img,
48
- .leaflet-container img.leaflet-image-layer,
49
- .leaflet-container .leaflet-tile {
50
- max-width: none !important;
51
- max-height: none !important;
52
- }
53
-
54
- .leaflet-container.leaflet-touch-zoom {
55
- -ms-touch-action: pan-x pan-y;
56
- touch-action: pan-x pan-y;
57
- }
58
- .leaflet-container.leaflet-touch-drag {
59
- -ms-touch-action: pinch-zoom;
60
- /* Fallback for FF which doesn't support pinch-zoom */
61
- touch-action: none;
62
- touch-action: pinch-zoom;
63
- }
64
- .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
65
- -ms-touch-action: none;
66
- touch-action: none;
67
- }
68
- .leaflet-container {
69
- -webkit-tap-highlight-color: transparent;
70
- }
71
- .leaflet-container a {
72
- -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
73
- }
74
- .leaflet-tile {
75
- filter: inherit;
76
- visibility: hidden;
77
- }
78
- .leaflet-tile-loaded {
79
- visibility: inherit;
80
- }
81
- .leaflet-zoom-box {
82
- width: 0;
83
- height: 0;
84
- -moz-box-sizing: border-box;
85
- box-sizing: border-box;
86
- z-index: 800;
87
- }
88
- /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
89
- .leaflet-overlay-pane svg {
90
- -moz-user-select: none;
91
- }
92
-
93
- .leaflet-pane { z-index: 400; }
94
-
95
- .leaflet-tile-pane { z-index: 200; }
96
- .leaflet-overlay-pane { z-index: 400; }
97
- .leaflet-shadow-pane { z-index: 500; }
98
- .leaflet-marker-pane { z-index: 600; }
99
- .leaflet-tooltip-pane { z-index: 650; }
100
- .leaflet-popup-pane { z-index: 700; }
101
-
102
- .leaflet-map-pane canvas { z-index: 100; }
103
- .leaflet-map-pane svg { z-index: 200; }
104
-
105
- .leaflet-vml-shape {
106
- width: 1px;
107
- height: 1px;
108
- }
109
- .lvml {
110
- behavior: url(#default#VML);
111
- display: inline-block;
112
- position: absolute;
113
- }
114
-
115
-
116
- /* control positioning */
117
-
118
- .leaflet-control {
119
- position: relative;
120
- z-index: 800;
121
- pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
122
- pointer-events: auto;
123
- }
124
- .leaflet-top,
125
- .leaflet-bottom {
126
- position: absolute;
127
- z-index: 1000;
128
- pointer-events: none;
129
- }
130
- .leaflet-top {
131
- top: 0;
132
- }
133
- .leaflet-right {
134
- right: 0;
135
- }
136
- .leaflet-bottom {
137
- bottom: 0;
138
- }
139
- .leaflet-left {
140
- left: 0;
141
- }
142
- .leaflet-control {
143
- float: left;
144
- clear: both;
145
- }
146
- .leaflet-right .leaflet-control {
147
- float: right;
148
- }
149
- .leaflet-top .leaflet-control {
150
- margin-top: 10px;
151
- }
152
- .leaflet-bottom .leaflet-control {
153
- margin-bottom: 10px;
154
- }
155
- .leaflet-left .leaflet-control {
156
- margin-left: 10px;
157
- }
158
- .leaflet-right .leaflet-control {
159
- margin-right: 10px;
160
- }
161
-
162
-
163
- /* zoom and fade animations */
164
-
165
- .leaflet-fade-anim .leaflet-tile {
166
- will-change: opacity;
167
- }
168
- .leaflet-fade-anim .leaflet-popup {
169
- opacity: 0;
170
- -webkit-transition: opacity 0.2s linear;
171
- -moz-transition: opacity 0.2s linear;
172
- transition: opacity 0.2s linear;
173
- }
174
- .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
175
- opacity: 1;
176
- }
177
- .leaflet-zoom-animated {
178
- -webkit-transform-origin: 0 0;
179
- -ms-transform-origin: 0 0;
180
- transform-origin: 0 0;
181
- }
182
- .leaflet-zoom-anim .leaflet-zoom-animated {
183
- will-change: transform;
184
- }
185
- .leaflet-zoom-anim .leaflet-zoom-animated {
186
- -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
187
- -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
188
- transition: transform 0.25s cubic-bezier(0,0,0.25,1);
189
- }
190
- .leaflet-zoom-anim .leaflet-tile,
191
- .leaflet-pan-anim .leaflet-tile {
192
- -webkit-transition: none;
193
- -moz-transition: none;
194
- transition: none;
195
- }
196
-
197
- .leaflet-zoom-anim .leaflet-zoom-hide {
198
- visibility: hidden;
199
- }
200
-
201
-
202
- /* cursors */
203
-
204
- .leaflet-interactive {
205
- cursor: pointer;
206
- }
207
- .leaflet-grab {
208
- cursor: -webkit-grab;
209
- cursor: -moz-grab;
210
- cursor: grab;
211
- }
212
- .leaflet-crosshair,
213
- .leaflet-crosshair .leaflet-interactive {
214
- cursor: crosshair;
215
- }
216
- .leaflet-popup-pane,
217
- .leaflet-control {
218
- cursor: auto;
219
- }
220
- .leaflet-dragging .leaflet-grab,
221
- .leaflet-dragging .leaflet-grab .leaflet-interactive,
222
- .leaflet-dragging .leaflet-marker-draggable {
223
- cursor: move;
224
- cursor: -webkit-grabbing;
225
- cursor: -moz-grabbing;
226
- cursor: grabbing;
227
- }
228
-
229
- /* marker & overlays interactivity */
230
- .leaflet-marker-icon,
231
- .leaflet-marker-shadow,
232
- .leaflet-image-layer,
233
- .leaflet-pane > svg path,
234
- .leaflet-tile-container {
235
- pointer-events: none;
236
- }
237
-
238
- .leaflet-marker-icon.leaflet-interactive,
239
- .leaflet-image-layer.leaflet-interactive,
240
- .leaflet-pane > svg path.leaflet-interactive {
241
- pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
242
- pointer-events: auto;
243
- }
244
-
245
- /* visual tweaks */
246
-
247
- .leaflet-container {
248
- background: #ddd;
249
- outline: 0;
250
- }
251
- .leaflet-container a {
252
- color: #0078A8;
253
- }
254
- .leaflet-container a.leaflet-active {
255
- outline: 2px solid orange;
256
- }
257
- .leaflet-zoom-box {
258
- border: 2px dotted #38f;
259
- background: rgba(255,255,255,0.5);
260
- }
261
-
262
-
263
- /* general typography */
264
- .leaflet-container {
265
- font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
266
- }
267
-
268
-
269
- /* general toolbar styles */
270
-
271
- .leaflet-bar {
272
- box-shadow: 0 1px 5px rgba(0,0,0,0.65);
273
- border-radius: 4px;
274
- }
275
- .leaflet-bar a,
276
- .leaflet-bar a:hover {
277
- background-color: #fff;
278
- border-bottom: 1px solid #ccc;
279
- width: 26px;
280
- height: 26px;
281
- line-height: 26px;
282
- display: block;
283
- text-align: center;
284
- text-decoration: none;
285
- color: black;
286
- }
287
- .leaflet-bar a,
288
- .leaflet-control-layers-toggle {
289
- background-position: 50% 50%;
290
- background-repeat: no-repeat;
291
- display: block;
292
- }
293
- .leaflet-bar a:hover {
294
- background-color: #f4f4f4;
295
- }
296
- .leaflet-bar a:first-child {
297
- border-top-left-radius: 4px;
298
- border-top-right-radius: 4px;
299
- }
300
- .leaflet-bar a:last-child {
301
- border-bottom-left-radius: 4px;
302
- border-bottom-right-radius: 4px;
303
- border-bottom: none;
304
- }
305
- .leaflet-bar a.leaflet-disabled {
306
- cursor: default;
307
- background-color: #f4f4f4;
308
- color: #bbb;
309
- }
310
-
311
- .leaflet-touch .leaflet-bar a {
312
- width: 30px;
313
- height: 30px;
314
- line-height: 30px;
315
- }
316
- .leaflet-touch .leaflet-bar a:first-child {
317
- border-top-left-radius: 2px;
318
- border-top-right-radius: 2px;
319
- }
320
- .leaflet-touch .leaflet-bar a:last-child {
321
- border-bottom-left-radius: 2px;
322
- border-bottom-right-radius: 2px;
323
- }
324
-
325
- /* zoom control */
326
-
327
- .leaflet-control-zoom-in,
328
- .leaflet-control-zoom-out {
329
- font: bold 18px 'Lucida Console', Monaco, monospace;
330
- text-indent: 1px;
331
- }
332
-
333
- .leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
334
- font-size: 22px;
335
- }
336
-
337
-
338
- /* layers control */
339
-
340
- .leaflet-control-layers {
341
- box-shadow: 0 1px 5px rgba(0,0,0,0.4);
342
- background: #fff;
343
- border-radius: 5px;
344
- }
345
- .leaflet-control-layers-toggle {
346
- background-image: url(images/layers.png);
347
- width: 36px;
348
- height: 36px;
349
- }
350
- .leaflet-retina .leaflet-control-layers-toggle {
351
- background-image: url(images/layers-2x.png);
352
- background-size: 26px 26px;
353
- }
354
- .leaflet-touch .leaflet-control-layers-toggle {
355
- width: 44px;
356
- height: 44px;
357
- }
358
- .leaflet-control-layers .leaflet-control-layers-list,
359
- .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
360
- display: none;
361
- }
362
- .leaflet-control-layers-expanded .leaflet-control-layers-list {
363
- display: block;
364
- position: relative;
365
- }
366
- .leaflet-control-layers-expanded {
367
- padding: 6px 10px 6px 6px;
368
- color: #333;
369
- background: #fff;
370
- }
371
- .leaflet-control-layers-scrollbar {
372
- overflow-y: scroll;
373
- overflow-x: hidden;
374
- padding-right: 5px;
375
- }
376
- .leaflet-control-layers-selector {
377
- margin-top: 2px;
378
- position: relative;
379
- top: 1px;
380
- }
381
- .leaflet-control-layers label {
382
- display: block;
383
- }
384
- .leaflet-control-layers-separator {
385
- height: 0;
386
- border-top: 1px solid #ddd;
387
- margin: 5px -10px 5px -6px;
388
- }
389
-
390
- /* Default icon URLs */
391
- .leaflet-default-icon-path {
392
- background-image: url(images/marker-icon.png);
393
- }
394
-
395
-
396
- /* attribution and scale controls */
397
-
398
- .leaflet-container .leaflet-control-attribution {
399
- background: #fff;
400
- background: rgba(255, 255, 255, 0.7);
401
- margin: 0;
402
- }
403
- .leaflet-control-attribution,
404
- .leaflet-control-scale-line {
405
- padding: 0 5px;
406
- color: #333;
407
- }
408
- .leaflet-control-attribution a {
409
- text-decoration: none;
410
- }
411
- .leaflet-control-attribution a:hover {
412
- text-decoration: underline;
413
- }
414
- .leaflet-container .leaflet-control-attribution,
415
- .leaflet-container .leaflet-control-scale {
416
- font-size: 11px;
417
- }
418
- .leaflet-left .leaflet-control-scale {
419
- margin-left: 5px;
420
- }
421
- .leaflet-bottom .leaflet-control-scale {
422
- margin-bottom: 5px;
423
- }
424
- .leaflet-control-scale-line {
425
- border: 2px solid #777;
426
- border-top: none;
427
- line-height: 1.1;
428
- padding: 2px 5px 1px;
429
- font-size: 11px;
430
- white-space: nowrap;
431
- overflow: hidden;
432
- -moz-box-sizing: border-box;
433
- box-sizing: border-box;
434
-
435
- background: #fff;
436
- background: rgba(255, 255, 255, 0.5);
437
- }
438
- .leaflet-control-scale-line:not(:first-child) {
439
- border-top: 2px solid #777;
440
- border-bottom: none;
441
- margin-top: -2px;
442
- }
443
- .leaflet-control-scale-line:not(:first-child):not(:last-child) {
444
- border-bottom: 2px solid #777;
445
- }
446
-
447
- .leaflet-touch .leaflet-control-attribution,
448
- .leaflet-touch .leaflet-control-layers,
449
- .leaflet-touch .leaflet-bar {
450
- box-shadow: none;
451
- }
452
- .leaflet-touch .leaflet-control-layers,
453
- .leaflet-touch .leaflet-bar {
454
- border: 2px solid rgba(0,0,0,0.2);
455
- background-clip: padding-box;
456
- }
457
-
458
-
459
- /* popup */
460
-
461
- .leaflet-popup {
462
- position: absolute;
463
- text-align: center;
464
- margin-bottom: 20px;
465
- }
466
- .leaflet-popup-content-wrapper {
467
- padding: 1px;
468
- text-align: left;
469
- border-radius: 12px;
470
- }
471
- .leaflet-popup-content {
472
- margin: 13px 19px;
473
- line-height: 1.4;
474
- }
475
- .leaflet-popup-content p {
476
- margin: 18px 0;
477
- }
478
- .leaflet-popup-tip-container {
479
- width: 40px;
480
- height: 20px;
481
- position: absolute;
482
- left: 50%;
483
- margin-left: -20px;
484
- overflow: hidden;
485
- pointer-events: none;
486
- }
487
- .leaflet-popup-tip {
488
- width: 17px;
489
- height: 17px;
490
- padding: 1px;
491
-
492
- margin: -10px auto 0;
493
-
494
- -webkit-transform: rotate(45deg);
495
- -moz-transform: rotate(45deg);
496
- -ms-transform: rotate(45deg);
497
- transform: rotate(45deg);
498
- }
499
- .leaflet-popup-content-wrapper,
500
- .leaflet-popup-tip {
501
- background: white;
502
- color: #333;
503
- box-shadow: 0 3px 14px rgba(0,0,0,0.4);
504
- }
505
- .leaflet-container a.leaflet-popup-close-button {
506
- position: absolute;
507
- top: 0;
508
- right: 0;
509
- padding: 4px 4px 0 0;
510
- border: none;
511
- text-align: center;
512
- width: 18px;
513
- height: 14px;
514
- font: 16px/14px Tahoma, Verdana, sans-serif;
515
- color: #c3c3c3;
516
- text-decoration: none;
517
- font-weight: bold;
518
- background: transparent;
519
- }
520
- .leaflet-container a.leaflet-popup-close-button:hover {
521
- color: #999;
522
- }
523
- .leaflet-popup-scrolled {
524
- overflow: auto;
525
- border-bottom: 1px solid #ddd;
526
- border-top: 1px solid #ddd;
527
- }
528
-
529
- .leaflet-oldie .leaflet-popup-content-wrapper {
530
- zoom: 1;
531
- }
532
- .leaflet-oldie .leaflet-popup-tip {
533
- width: 24px;
534
- margin: 0 auto;
535
-
536
- -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
537
- filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
538
- }
539
- .leaflet-oldie .leaflet-popup-tip-container {
540
- margin-top: -1px;
541
- }
542
-
543
- .leaflet-oldie .leaflet-control-zoom,
544
- .leaflet-oldie .leaflet-control-layers,
545
- .leaflet-oldie .leaflet-popup-content-wrapper,
546
- .leaflet-oldie .leaflet-popup-tip {
547
- border: 1px solid #999;
548
- }
549
-
550
-
551
- /* div icon */
552
-
553
- .leaflet-div-icon {
554
- background: #fff;
555
- border: 1px solid #666;
556
- }
557
-
558
-
559
- /* Tooltip */
560
- /* Base styles for the element that has a tooltip */
561
- .leaflet-tooltip {
562
- position: absolute;
563
- padding: 6px;
564
- background-color: #fff;
565
- border: 1px solid #fff;
566
- border-radius: 3px;
567
- color: #222;
568
- white-space: nowrap;
569
- -webkit-user-select: none;
570
- -moz-user-select: none;
571
- -ms-user-select: none;
572
- user-select: none;
573
- pointer-events: none;
574
- box-shadow: 0 1px 3px rgba(0,0,0,0.4);
575
- }
576
- .leaflet-tooltip.leaflet-clickable {
577
- cursor: pointer;
578
- pointer-events: auto;
579
- }
580
- .leaflet-tooltip-top:before,
581
- .leaflet-tooltip-bottom:before,
582
- .leaflet-tooltip-left:before,
583
- .leaflet-tooltip-right:before {
584
- position: absolute;
585
- pointer-events: none;
586
- border: 6px solid transparent;
587
- background: transparent;
588
- content: "";
589
- }
590
-
591
- /* Directions */
592
-
593
- .leaflet-tooltip-bottom {
594
- margin-top: 6px;
595
- }
596
- .leaflet-tooltip-top {
597
- margin-top: -6px;
598
- }
599
- .leaflet-tooltip-bottom:before,
600
- .leaflet-tooltip-top:before {
601
- left: 50%;
602
- margin-left: -6px;
603
- }
604
- .leaflet-tooltip-top:before {
605
- bottom: 0;
606
- margin-bottom: -12px;
607
- border-top-color: #fff;
608
- }
609
- .leaflet-tooltip-bottom:before {
610
- top: 0;
611
- margin-top: -12px;
612
- margin-left: -6px;
613
- border-bottom-color: #fff;
614
- }
615
- .leaflet-tooltip-left {
616
- margin-left: -6px;
617
- }
618
- .leaflet-tooltip-right {
619
- margin-left: 6px;
620
- }
621
- .leaflet-tooltip-left:before,
622
- .leaflet-tooltip-right:before {
623
- top: 50%;
624
- margin-top: -6px;
625
- }
626
- .leaflet-tooltip-left:before {
627
- right: 0;
628
- margin-right: -12px;
629
- border-left-color: #fff;
630
- }
631
- .leaflet-tooltip-right:before {
632
- left: 0;
633
- margin-left: -12px;
634
- border-right-color: #fff;
635
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/mappress.css CHANGED
@@ -13,26 +13,26 @@
13
 
14
  .mapp-layout {
15
  border: 1px solid lightgray;
 
16
  margin: 5px;
17
- min-width: 200px;
 
18
  padding: 0px;
19
- position: relative;
20
- font-family: sans-serif;
21
  }
22
 
23
  .mapp-layout * {
24
- box-sizing: border-box;
25
- font-size: 13px;
26
  }
27
 
28
  /* 2019 */
29
  .mapp-layout input, .mapp-layout button, .mapp-layout select, .mapp-layout textarea, .mapp-layout p, .mapp-layout a {
30
- font-family: sans-serif;
31
  }
32
 
33
- /* Responsive wrapper */
34
  .mapp-layout .mapp-wrapper {
35
- min-height: 200px;
36
  position: relative;
37
  }
38
 
@@ -46,8 +46,9 @@
46
 
47
  .mapp-layout .mapp-main {
48
  display: flex;
49
- flex: 1;
50
  overflow: hidden;
 
51
  }
52
 
53
  .mapp-hidden {
@@ -77,20 +78,12 @@
77
  }
78
 
79
  .mapp-canvas img {
80
- background: none;
81
  box-shadow: none !important; /* 2012 */
82
  border-radius: 0px !important; /* 2012 */
83
  visibility: inherit !important;
84
  }
85
 
86
- .mapp-layout.mapp-google .mapp-canvas img {
87
- background-color: transparent;
88
- margin: 0px;
89
- max-height: none;
90
- max-width: none !important; /* Override gutenberg */
91
- padding: 0px;
92
- }
93
-
94
  .leaflet-container .leaflet-control-attribution * {
95
  font-size: 8px;
96
  }
@@ -142,21 +135,63 @@ only screen and (min-device-pixel-ratio: 2) {
142
  -----------------------------------------------------------------------------------
143
  */
144
 
145
- .mapp-list {
 
 
146
  background-color: white;
147
- overflow: auto;
 
 
 
148
  position: relative; /* Needed to scroll list for selection */
149
- z-index: 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  }
151
 
152
  .mapp-list .mapp-list-header {
 
153
  padding: 5px;
154
  text-align: center;
155
  }
156
 
157
- .mapp-list .mapp-list-footer {
158
- padding: 5px;
159
- text-align: center;
160
  }
161
 
162
  .mapp-list .mapp-item {
@@ -166,7 +201,12 @@ only screen and (min-device-pixel-ratio: 2) {
166
  padding: 5px;
167
  }
168
 
169
- .mapp-list .mapp-item:hover, .mapp-list .mapp-item.mapp-selected {
 
 
 
 
 
170
  background-color: #f6f6f6;
171
  }
172
 
@@ -176,81 +216,12 @@ only screen and (min-device-pixel-ratio: 2) {
176
  }
177
 
178
  .mapp-list .mapp-item .mapp-icon {
 
179
  float: left;
180
  margin-right: 5px;
181
  max-width: 24px !important; /* 2012 tries to override */
182
  max-height: 24px;
183
- }
184
-
185
- .mapp-list .mapp-item .mapp-actions {
186
- visibility: hidden;
187
- }
188
-
189
- .mapp-list .mapp-item .mapp-actions a {
190
- text-decoration: none;
191
- }
192
-
193
- .mobile .mapp-actions {
194
- visibility: visible;
195
- }
196
-
197
-
198
- .mapp-list .mapp-item:hover .mapp-actions {
199
- color: black;
200
- visibility: visible;
201
- }
202
-
203
- .mapp-list .dashicons {
204
- color: #82878c;
205
- }
206
-
207
- .mapp-list-footer {
208
- margin-top: 10px;
209
- text-align: center;
210
- }
211
-
212
- .mapp-list .mapp-next, .mapp-list .mapp-prev {
213
- background-color: #f7f7f7;
214
- border: 1px solid #ccc;
215
- color: gray;
216
- cursor: pointer;
217
- display: inline-block;
218
- line-height: 1;
219
- margin: 0 10px 0 10px;
220
- padding: 5px;
221
- text-align: center;
222
- user-select: none;
223
- }
224
-
225
- .mapp-list .mapp-next.mapp-active, .mapp-list .mapp-prev.mapp-active {
226
- background-color: #e8e8e8;
227
- color: black;
228
- }
229
-
230
- .mapp-list .mapp-msg {
231
- text-align: center;
232
- }
233
-
234
- .mapp-list .spinner {
235
- float: none;
236
- }
237
-
238
- /*
239
- -----------------------------------------------------------------------------------
240
- Layouts
241
- -----------------------------------------------------------------------------------
242
- */
243
-
244
- .mapp-left .mapp-list {
245
- border-right: 1px solid lightgray;
246
- height: 100%;
247
- max-width: 45%;
248
- width: 250px;
249
- }
250
-
251
- .mapp-inline .mapp-list {
252
- border-top: 1px solid lightgray;
253
- max-height: 300px;
254
  }
255
 
256
  /*
@@ -305,10 +276,6 @@ only screen and (min-device-pixel-ratio: 2) {
305
  width: 18px;
306
  }
307
 
308
- .mapp-search .algolia-autocomplete {
309
- display: block !important;
310
- }
311
-
312
  .mapp-places {
313
  border: 1px solid #bbb ;
314
  box-shadow: none ;
@@ -321,40 +288,52 @@ only screen and (min-device-pixel-ratio: 2) {
321
  width: 100% ;
322
  }
323
 
324
- .mapp-autocomplete, .mapp-autocomplete * {
325
- width: 100%;
326
- }
327
-
328
- .mapp-aa-dropdown-menu {
329
  background-color: white;
330
  border: 1px solid lightgray;
331
- color: #8c8c8c;
 
332
  cursor: pointer;
333
- width: 100%;
334
- z-index: 1001 !important; /* Widget default is 100 which is too low */
 
 
 
 
 
 
 
335
  }
336
 
337
- .mapp-aa-suggestion {
338
- border-top: 1px solid #e6e6e6;
339
- overflow: hidden !important;
 
 
 
 
 
 
 
 
340
  padding: 5px;
341
- text-overflow: ellipsis;
342
- white-space: nowrap !important;
343
  }
344
 
345
- .mapp-aa-suggestion span, .mapp-aa-suggestion p {
346
- margin: 0 !important;
347
- white-space: nowrap !important;
348
  }
349
 
350
- /* No results */
351
- .mapp-aa-dropdown-menu .list-group-item {
352
- padding: 5px;
 
353
  }
354
 
355
-
356
- .mapp-aa-cursor {
357
- background-color: #fafafa;
358
  }
359
 
360
  /*
@@ -372,13 +351,22 @@ only screen and (min-device-pixel-ratio: 2) {
372
  border-bottom: 1px solid lightgray;
373
  display: none;
374
  max-height: 100%;
375
- overflow: auto;
376
- padding: 5px 10px 5px 10px;
377
  position: absolute;
378
  top: 0; left: 0; right: 0;
379
  z-index: 1;
380
  }
381
 
 
 
 
 
 
 
 
 
 
 
 
382
  .mapp-filter {
383
  margin-bottom: 5px;
384
  }
@@ -397,7 +385,13 @@ only screen and (min-device-pixel-ratio: 2) {
397
  display: inline-block;
398
  }
399
 
400
- /* Checkboxe filters are displayed horizontally, use display: block to show one checkbox per line */
 
 
 
 
 
 
401
  .mapp-filter-values > label {
402
  display: inline-block;
403
  font-weight: normal; /* 2017 */
@@ -436,6 +430,10 @@ only screen and (min-device-pixel-ratio: 2) {
436
  margin: 5px 0 5px 0 !important; /* To support wpautop */
437
  }
438
 
 
 
 
 
439
  .mapp-iw .mapp-title {
440
  font-weight: bold;
441
  }
@@ -524,6 +522,27 @@ only screen and (min-device-pixel-ratio: 2) {
524
  }
525
 
526
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
527
  /*
528
  -----------------------------------------------------------------------------------
529
  Views
@@ -531,7 +550,8 @@ only screen and (min-device-pixel-ratio: 2) {
531
  */
532
 
533
  .mapp-view-filters .mapp-filters {
534
- display: block;
 
535
  z-index: 1001;
536
  }
537
 
@@ -547,6 +567,13 @@ only screen and (min-device-pixel-ratio: 2) {
547
  display: none;
548
  }
549
 
 
 
 
 
 
 
 
550
 
551
  /*
552
  -----------------------------------------------------------------------------------
@@ -555,47 +582,51 @@ only screen and (min-device-pixel-ratio: 2) {
555
  */
556
 
557
  .mapp-footer {
558
- background-color: #f5f5f5;
559
- border-top: 1px solid lightgray;
560
- display: none;
561
- padding: 7px;
562
- text-align: center;
563
  }
564
 
565
  .mapp-footer [data-mapp-action="view-map"] { display: none; }
566
 
567
  /* In mini view place the list under the map */
568
  .mapp-view-mini .mapp-main {
569
- flex-direction: column-reverse;
570
  }
571
 
572
- /* List must be positioned absolute, otherwise it will compress map bounds */
573
  .mapp-view-mini .mapp-main {
574
- position: relative;
575
  }
576
 
577
  .mapp-view-mini .mapp-list {
578
- bottom: 0;
579
- height: 0;;
580
- max-width: none;
581
- position: absolute;
582
- transition-property : all;
583
- transition-duration: .3s;
584
- width: 100%;
585
- z-index: 10000;
586
  }
587
 
588
- .mapp-view-mini .mapp-footer {
589
- display: block;
590
  }
591
 
592
- .mapp-view-list .mapp-footer [data-mapp-action="view-list"] { display: none; }
593
- .mapp-view-list .mapp-footer [data-mapp-action="view-map"] { display: block; }
 
 
594
 
595
- .mapp-view-list .mapp-list {
596
- height: 100%;
597
  }
598
 
 
 
599
 
600
  /*
601
  -----------------------------------------------------------------------------------
@@ -608,11 +639,17 @@ only screen and (min-device-pixel-ratio: 2) {
608
  display: none;
609
  padding: 10px;
610
  position: relative;
 
 
 
 
 
 
611
  }
612
 
613
  .mapp-directions input {
614
- border: 1px solid gray; /* 2020 */
615
- padding: 3px;
616
  }
617
 
618
 
@@ -649,21 +686,21 @@ only screen and (min-device-pixel-ratio: 2) {
649
  }
650
 
651
  .mapp-dir-saddr {
652
- margin-bottom: 5px;
653
  }
654
 
655
  .mapp-dir-arrows {
656
  background: transparent url('../images/directions.png') no-repeat center center;
657
- background-position: -10px -489px;
658
  cursor: pointer;
659
  display: inline-block;
660
- height: 12px;
661
  margin: 0;
662
  padding: 0;
663
- position: relative;
664
- top: 10px; left: 5px;
665
  vertical-align: middle;
666
- width: 10px;
667
  }
668
 
669
  /*
@@ -684,7 +721,7 @@ only screen and (min-device-pixel-ratio: 2) {
684
  position: absolute;
685
  top: 10px; left: 10px; bottom: 0; right: 0;
686
  width: 32px;
687
- z-index: 1000;
688
  }
689
 
690
  .mapp-menu {
13
 
14
  .mapp-layout {
15
  border: 1px solid lightgray;
16
+ color: black;
17
  margin: 5px;
18
+ max-width: none !important; /* 2020 */
19
+ min-width: 100px;
20
  padding: 0px;
21
+ font-family: sans-serif;
 
22
  }
23
 
24
  .mapp-layout * {
25
+ box-sizing: border-box;
26
+ font-size: 13px;
27
  }
28
 
29
  /* 2019 */
30
  .mapp-layout input, .mapp-layout button, .mapp-layout select, .mapp-layout textarea, .mapp-layout p, .mapp-layout a {
31
+ font-family: sans-serif;
32
  }
33
 
 
34
  .mapp-layout .mapp-wrapper {
35
+ min-height: 50px;
36
  position: relative;
37
  }
38
 
46
 
47
  .mapp-layout .mapp-main {
48
  display: flex;
49
+ flex: 1;
50
  overflow: hidden;
51
+ position: relative;
52
  }
53
 
54
  .mapp-hidden {
78
  }
79
 
80
  .mapp-canvas img {
81
+ background: none;
82
  box-shadow: none !important; /* 2012 */
83
  border-radius: 0px !important; /* 2012 */
84
  visibility: inherit !important;
85
  }
86
 
 
 
 
 
 
 
 
 
87
  .leaflet-container .leaflet-control-attribution * {
88
  font-size: 8px;
89
  }
135
  -----------------------------------------------------------------------------------
136
  */
137
 
138
+ .mapp-list { display : none; }
139
+
140
+ .mapp-has-list .mapp-list {
141
  background-color: white;
142
+ border-right: 1px solid lightgray;
143
+ display: flex;
144
+ flex-direction: column;
145
+ max-width: 45%;
146
  position: relative; /* Needed to scroll list for selection */
147
+ transition-property : all;
148
+ transition-duration: .1s;
149
+ width: 0;
150
+ }
151
+
152
+ .mapp-list-open .mapp-list {
153
+ width: 250px;
154
+ }
155
+
156
+ /* List toggle, left layout only */
157
+ .mapp-list-toggle {
158
+ align-items: center;
159
+ background-color: white;
160
+ border: 1px solid lightgray;
161
+ display: flex;
162
+ height: 40px;
163
+ justify-content: center;
164
+ margin: auto;
165
+ position: absolute;
166
+ top: 0; left: 100%; bottom: 0;
167
+ width: 20px;
168
+ z-index: 1000;
169
+ }
170
+
171
+ .mapp-list-toggle::before {
172
+ width: 0;
173
+ height: 0;
174
+ border-top: 6px solid transparent;
175
+ border-bottom: 6px solid transparent;
176
+ border-left: 6px solid black;
177
+ content: '';
178
+ }
179
+
180
+ .mapp-list-open .mapp-list-toggle::before {
181
+ width: 0;
182
+ height: 0;
183
+ border-left: none;
184
+ border-right: 6px solid black;
185
  }
186
 
187
  .mapp-list .mapp-list-header {
188
+ border-bottom: 1px solid lightgray;
189
  padding: 5px;
190
  text-align: center;
191
  }
192
 
193
+ .mapp-list .mapp-items {
194
+ overflow: auto;
 
195
  }
196
 
197
  .mapp-list .mapp-item {
201
  padding: 5px;
202
  }
203
 
204
+ .mapp-list .mapp-item.mapp-selected {
205
+ background-color: #f6f6f6;
206
+ font-weight: bold;
207
+ }
208
+
209
+ .mapp-list .mapp-item:hover {
210
  background-color: #f6f6f6;
211
  }
212
 
216
  }
217
 
218
  .mapp-list .mapp-item .mapp-icon {
219
+ border: none; /* 2011 */
220
  float: left;
221
  margin-right: 5px;
222
  max-width: 24px !important; /* 2012 tries to override */
223
  max-height: 24px;
224
+ padding: 0; /* 2011 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
225
  }
226
 
227
  /*
276
  width: 18px;
277
  }
278
 
 
 
 
 
279
  .mapp-places {
280
  border: 1px solid #bbb ;
281
  box-shadow: none ;
288
  width: 100% ;
289
  }
290
 
291
+ /* JQuery Autocomplete */
292
+ .mapp-search .ui-autocomplete {
293
+ background: none;
 
 
294
  background-color: white;
295
  border: 1px solid lightgray;
296
+ box-shadow: 0px 1px 2px grey;
297
+ color: inherit;
298
  cursor: pointer;
299
+ font: inherit;
300
+ list-style: none;
301
+ margin: 0;
302
+ max-width: 100%;
303
+ overflow-x: hidden;
304
+ overflow-y: auto;
305
+ padding: 0;
306
+ position: absolute;
307
+ z-index: 10000;
308
  }
309
 
310
+ .mapp-search .ui-autocomplete li.ui-menu-item {
311
+ background-color: inherit;
312
+ border-bottom: 1px solid lightgray;
313
+ border-top: none;
314
+ border-right: none;
315
+ border-left: none;
316
+ box-shadow: none;
317
+ color: inherit;
318
+ cursor: inherit;
319
+ font: inherit;
320
+ margin: 0;
321
  padding: 5px;
 
 
322
  }
323
 
324
+ .mapp-search .ui-autocomplete li.ui-menu-item:hover {
325
+ background-color: #fafafa;
 
326
  }
327
 
328
+ .mapp-search .ui-autocomplete div.ui-menu-item-wrapper {
329
+ text-overflow: ellipsis;
330
+ overflow: hidden;
331
+ white-space: nowrap;
332
  }
333
 
334
+ .mapp-search .ui-autocomplete li.ui-state-focus {
335
+ background-image: none;
336
+ background-color: #f6f6f6;
337
  }
338
 
339
  /*
351
  border-bottom: 1px solid lightgray;
352
  display: none;
353
  max-height: 100%;
 
 
354
  position: absolute;
355
  top: 0; left: 0; right: 0;
356
  z-index: 1;
357
  }
358
 
359
+ .mapp-filters-list {
360
+ flex: 1;
361
+ overflow: auto;
362
+ padding: 5px 10px 5px 10px;
363
+ }
364
+
365
+ .mapp-filters-toolbar {
366
+ border-top: 1px solid lightgray;
367
+ padding: 5px;
368
+ }
369
+
370
  .mapp-filter {
371
  margin-bottom: 5px;
372
  }
385
  display: inline-block;
386
  }
387
 
388
+ /* Set a max-height to force column wrapping instead of rows*/
389
+ .mapp-filter-values {
390
+ display: flex;
391
+ display: grid;
392
+ grid-template-columns: auto auto auto auto;
393
+ }
394
+
395
  .mapp-filter-values > label {
396
  display: inline-block;
397
  font-weight: normal; /* 2017 */
430
  margin: 5px 0 5px 0 !important; /* To support wpautop */
431
  }
432
 
433
+ .mapp-iw .mapp-body {
434
+ overflow-wrap: break-word;
435
+ }
436
+
437
  .mapp-iw .mapp-title {
438
  font-weight: bold;
439
  }
522
  }
523
 
524
 
525
+ /*
526
+ -----------------------------------------------------------------------------------
527
+ Layouts
528
+ -----------------------------------------------------------------------------------
529
+ */
530
+ .mapp-inline .mapp-main {
531
+ flex-direction: column-reverse;
532
+ }
533
+
534
+ .mapp-inline .mapp-list {
535
+ border-right: none;
536
+ border-top: 1px solid lightgray;
537
+ max-height: 250px;
538
+ max-width: none;
539
+ width: auto;
540
+ }
541
+
542
+ .mapp-inline .mapp-directions {
543
+ width: auto;
544
+ }
545
+
546
  /*
547
  -----------------------------------------------------------------------------------
548
  Views
550
  */
551
 
552
  .mapp-view-filters .mapp-filters {
553
+ display: flex;
554
+ flex-direction: column;
555
  z-index: 1001;
556
  }
557
 
567
  display: none;
568
  }
569
 
570
+ /*todo-del
571
+ .mapp-view-list .mapp-list {
572
+ display: block;
573
+ }
574
+ */
575
+
576
+
577
 
578
  /*
579
  -----------------------------------------------------------------------------------
582
  */
583
 
584
  .mapp-footer {
585
+ background-color: #f5f5f5;
586
+ border-top: 1px solid lightgray;
587
+ display: none;
588
+ padding: 7px;
589
+ text-align: center;
590
  }
591
 
592
  .mapp-footer [data-mapp-action="view-map"] { display: none; }
593
 
594
  /* In mini view place the list under the map */
595
  .mapp-view-mini .mapp-main {
596
+ flex-direction: column-reverse;
597
  }
598
 
599
+ /* Position list absolute, otherwise it will compress map bounds */
600
  .mapp-view-mini .mapp-main {
601
+ position: relative;
602
  }
603
 
604
  .mapp-view-mini .mapp-list {
605
+ bottom: 0;
606
+ height: 0;
607
+ max-width: none;
608
+ position: absolute;
609
+ transition-property : all;
610
+ transition-duration: .3s;
611
+ width: 100%;
612
+ z-index: 10000;
613
  }
614
 
615
+ .mapp-view-mini.mapp-list-open .mapp-list {
616
+ height: 100%;
617
  }
618
 
619
+ /* Close list when a POI is open */
620
+ .mapp-view-mini.mapp-poi-open .mapp-list {
621
+ height: 0;
622
+ }
623
 
624
+ .mapp-view-mini .mapp-footer {
625
+ display: block;
626
  }
627
 
628
+ .mapp-view-mini.mapp-list-open .mapp-footer [data-mapp-action="view-list"] { display: none; }
629
+ .mapp-view-mini.mapp-list-open .mapp-footer [data-mapp-action="view-map"] { display: block; }
630
 
631
  /*
632
  -----------------------------------------------------------------------------------
639
  display: none;
640
  padding: 10px;
641
  position: relative;
642
+ overflow: auto;
643
+ width: 250px;
644
+ }
645
+
646
+ .mapp-view-mini .mapp-directions {
647
+ width: auto;
648
  }
649
 
650
  .mapp-directions input {
651
+ border: 1px solid gray; /* 2020 */
652
+ padding: 3px;
653
  }
654
 
655
 
686
  }
687
 
688
  .mapp-dir-saddr {
689
+ margin-bottom: 5px;
690
  }
691
 
692
  .mapp-dir-arrows {
693
  background: transparent url('../images/directions.png') no-repeat center center;
694
+ background-position: -10px -489px;
695
  cursor: pointer;
696
  display: inline-block;
697
+ height: 12px;
698
  margin: 0;
699
  padding: 0;
700
+ position: relative;
701
+ top: 10px; left: 5px;
702
  vertical-align: middle;
703
+ width: 10px;
704
  }
705
 
706
  /*
721
  position: absolute;
722
  top: 10px; left: 10px; bottom: 0; right: 0;
723
  width: 32px;
724
+ z-index: 1000;
725
  }
726
 
727
  .mapp-menu {
css/mappress_admin.css CHANGED
@@ -1,150 +1,595 @@
 
1
  /*
2
  -----------------------------------------------------------------------------------
3
- Metaboxes
4
  -----------------------------------------------------------------------------------
5
  */
6
- #mappress.postbox h1 {
7
- display: inline-block;
8
- margin-right: 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
10
 
11
  /*
12
  -----------------------------------------------------------------------------------
13
- Map list
14
  -----------------------------------------------------------------------------------
15
  */
16
-
17
- .mapp-media {
18
  background-color: white;
 
 
 
 
 
 
19
  }
20
 
21
- .mapp-media input[type="button"] {
22
- vertical-align: middle;
23
  }
24
 
25
- /* Override WP settings */
26
- .mapp-media input[type="text"], .mapp-media select {
27
- height: auto !important;
28
- padding: 3px 6px 3px 6px;
29
  }
30
 
31
- .mapp-media select {
32
- padding-right: 25px;
33
- vertical-align: top;
34
  }
35
 
36
- .mapp-media-edit-panel {
37
- display:none;
 
38
  }
39
 
40
- .mapp-media-edit-panel td {
41
- padding-right: 5px;
 
 
 
 
 
 
 
 
42
  }
43
 
44
- .mapp-media-edit-toolbar {
45
- margin-top: 5px;
 
 
46
  }
47
 
48
- .mapp-media-list {
49
- max-height: 300px;
 
50
  }
51
 
52
- .mapp-media-list-toolbar {
53
- border-bottom: 1px solid lightgray;
54
- padding: 5px 0 5px 0;
 
 
55
  }
56
 
57
- .mapp-media-list-toolbar * {
58
- vertical-align: middle;
 
 
 
59
  }
60
 
61
- .mapp-media-search {
62
- display: none;
63
- float: right;
 
 
 
 
 
 
 
 
64
  }
65
 
66
- input.mapp-media-title {
67
- width: 100%;
 
68
  }
69
 
70
  /*
71
  -----------------------------------------------------------------------------------
72
- Map editor
73
  -----------------------------------------------------------------------------------
74
  */
75
 
76
- .mapp-edit .mapp-list-header {
77
- background-color: #f1f1f1;
78
  border-bottom: 1px solid lightgray;
79
- padding: 10px;
80
- text-align: left;
81
  }
82
 
83
- .mapp-edit .mapp-list-header a {
84
- color: black;
85
- font-size: 12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  text-decoration: none;
87
  }
88
 
89
- .mapp-edit .mapp-list-header a:hover {
90
- text-decoration: underline;
 
91
  }
92
 
93
- .mapp-edit .mapp-list-header .dashicons {
94
- font-size: 16px;
95
- vertical-align: middle;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  }
97
 
98
  .mapp-edit .mapp-layout {
99
- border: 1px solid lightgray;
100
- margin: 5px 0 0 0;
 
 
 
101
  width: 100% !important;
102
  }
103
 
104
  .mapp-edit .mapp-wrapper {
105
- height: 350px !important;
 
106
  }
107
 
108
- .mapp-searchbox {
109
- display: block;
110
- margin-top: 10px;
111
- width: 100%;
112
- max-width: 500px;
113
  }
114
 
115
- .mapp-searchbox input {
116
- vertical-align: middle;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  width: 100%;
118
  }
119
 
120
- .mapp-search-button, .mapp-geolocate-button {
121
- background-repeat: no-repeat !important;
122
- background-position: center center !important;
123
- margin: 0 !important;
124
- vertical-align: middle !important;
125
  }
126
 
127
- .mapp-search-button:before, #mappress .mapp-geolocate-button:before {
128
- content: "XX";
129
- visibility: hidden;
130
  }
131
 
132
- .mapp-search-button, .mapp-search-button:hover, .mapp-search-button:focus {
133
- background-image: url('../images/search.png') !important;
 
134
  }
135
 
136
- .mapp-geolocate-button, .mapp-geolocate-button:hover, .mapp-geolocate-button:focus {
137
- background-image: url('../images/geolocate-2x.png') !important;
138
- background-size: 18px 18px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  /*
142
  -----------------------------------------------------------------------------------
143
  POI editor
144
  -----------------------------------------------------------------------------------
145
  */
146
 
147
- .mapp-poi-edit {}
 
 
 
 
 
 
 
148
 
149
  .mapp-poi-edit a, .mapp-poi-edit button, .mapp-poi-edit input[type="button"] {
150
  vertical-align: middle !important;
@@ -158,11 +603,6 @@ input.mapp-media-title {
158
  margin-right: 5px;
159
  }
160
 
161
- /* Table used to align title/icon */
162
- .mapp-poi-edit .mapp-table {
163
- width: 100%;
164
- }
165
-
166
  .mapp-poi-edit .mapp-poi-title {
167
  width: 100%;
168
  font-weight: bold;
@@ -173,10 +613,9 @@ input.mapp-media-title {
173
  margin-left: 5px !important;
174
  }
175
 
176
-
177
  .mapp-poi-edit .mapp-poi-body {
178
- width: 250px;
179
  height: 143px;
 
180
  }
181
 
182
  .mapp-poi-edit .mapp-poi-visual, .mapp-poi-edit .mapp-poi-html {
@@ -200,7 +639,7 @@ input.mapp-media-title {
200
 
201
  /*
202
  -----------------------------------------------------------------------------------
203
- Settings
204
  -----------------------------------------------------------------------------------
205
  */
206
 
@@ -299,6 +738,13 @@ a.mapp-help {
299
  color:red;
300
  }
301
 
 
 
 
 
 
 
 
302
  /*
303
  -----------------------------------------------------------------------------------
304
  Template Editor
@@ -357,6 +803,78 @@ a.mapp-help {
357
  bottom: 5px; left: 5px; right: 5px;
358
  }
359
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  /*
361
  -----------------------------------------------------------------------------------
362
  Tabs
@@ -423,20 +941,20 @@ a.mapp-help {
423
  }
424
 
425
  .mapp-popup-max {
426
- left: 5%;
427
- right: 5%;
428
- top: 5%;
429
- bottom: 5%;
430
- transform: none;
431
  }
432
 
433
  @media only screen and (max-width: 780px) {
434
- .mapp-popup-max {
435
- left: 0;
436
- right: 0;
437
- top: 0;
438
- bottom: 0;
439
- }
440
  }
441
 
442
  /* Prevent scrollbars on body when popup is open */
@@ -529,6 +1047,126 @@ span.mapp-colorpicker-toggle {
529
  border: 2px solid black;
530
  }
531
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
532
  /*
533
  -----------------------------------------------------------------------------------
534
  Misc
1
+
2
  /*
3
  -----------------------------------------------------------------------------------
4
+ Gutenberg block
5
  -----------------------------------------------------------------------------------
6
  */
7
+ .mapp-gt .mapp-layout {
8
+ margin: 0;
9
+ position: relative; /* Prevent map overlapping GT controls */
10
+ z-index: 0; /* Prevent map overlapping GT controls */
11
+ }
12
+
13
+ /* Center in editor */
14
+ .wp-block[data-align="center"] .mapp-gt .mapp-layout {
15
+ margin-left: auto;
16
+ margin-right: auto;
17
+ }
18
+
19
+ .mapp-gt-placeholder .dashicon {
20
+ margin-right: 5px;
21
+ }
22
+
23
+ .mapp-gt-preview {
24
+ border: 1px solid black;
25
  }
26
 
27
  /*
28
  -----------------------------------------------------------------------------------
29
+ Map library
30
  -----------------------------------------------------------------------------------
31
  */
32
+ .mapp-library-wrapper {
 
33
  background-color: white;
34
+ border: 1px solid lightgray;
35
+ display: flex;
36
+ flex-direction: column;
37
+ height: 80vh;
38
+ margin-top: 10px;
39
+ width: 90%;
40
  }
41
 
42
+ .mapp-library .mapp-edit-title {
 
43
  }
44
 
45
+ .mapp-library .mapp-edit-title input {
46
+ margin: 5px;
47
+ width: 240px;
 
48
  }
49
 
50
+ .mapp-library h1 {
51
+ display: inline;
52
+ margin-right: 10px;
53
  }
54
 
55
+ /* Hide the MCE editor */
56
+ #wp-mapp-library-tinymce-wrap {
57
+ display: none;
58
  }
59
 
60
+ /*
61
+ -----------------------------------------------------------------------------------
62
+ Media popup
63
+ -----------------------------------------------------------------------------------
64
+ */
65
+
66
+
67
+ .mapp-pick-modal .components-modal__header, .mapp-edit-modal .components-modal__header {
68
+ margin: 0;
69
+ padding: 10px 20px;
70
  }
71
 
72
+ .mapp-pick-modal .components-modal__content, .mapp-edit-modal .components-modal__content {
73
+ background-color: white;
74
+ font-size: 13px;
75
+ padding: 0;
76
  }
77
 
78
+ /* Override WP settings */
79
+ .mapp-pick-modal a, .mapp-edit-modal a {
80
+ text-decoration: none;
81
  }
82
 
83
+ .mapp-pick-modal {
84
+ height: 90vh;
85
+ max-height: 625px;
86
+ max-width: 450px;
87
+ width: 90vw;
88
  }
89
 
90
+ .mapp-edit-modal {
91
+ max-height: none;
92
+ max-width: none;
93
+ height: 95vh;
94
+ width: 90vw;
95
  }
96
 
97
+ @media screen and (max-width: 600px) {
98
+ .mapp-pick-modal {
99
+ height: 100vh;
100
+ max-height: none;
101
+ max-width: none;
102
+ width: 100vw;
103
+ }
104
+ .mapp-edit-modal {
105
+ height: 100vh;
106
+ width: 100vw;
107
+ },
108
  }
109
 
110
+ .mapp-pick-modal .components-modal__content, .mapp-edit-modal .components-modal__content {
111
+ display: flex;
112
+ flex-direction: column;
113
  }
114
 
115
  /*
116
  -----------------------------------------------------------------------------------
117
+ Media list
118
  -----------------------------------------------------------------------------------
119
  */
120
 
121
+ .mapp-pick-filter {
 
122
  border-bottom: 1px solid lightgray;
123
+ padding: 10px 20px;
 
124
  }
125
 
126
+ .mapp-pick-filter .components-radio-control__option {
127
+ display: inline-block;
128
+ margin-bottom: 0 !important; /* Classic editor */
129
+ margin-right: 10px;
130
+ vertical-align: bottom;
131
+ }
132
+
133
+ .mapp-pick-filter .components-radio-control__option input {
134
+ margin-right: 5px;
135
+ }
136
+
137
+ .mapp-pick-filter .components-spinner {
138
+ float: right;
139
+ }
140
+
141
+ .mapp-pick-type {
142
+ align-self: center;
143
+ margin-right: 10px;
144
+ margin-top: 10px;
145
+ }
146
+
147
+ .mapp-pick-search {
148
+ display: flex;
149
+ flex-direction: column;
150
+ }
151
+
152
+ .mapp-pick-search label {
153
+ margin-right: 5px;
154
+ }
155
+
156
+ .mapp-pick-search input {
157
+ margin-bottom: 8px;
158
+ max-width: 300px;
159
+ width: 100%;
160
+ }
161
+
162
+ .mapp-pick-search .components-base-control__field {
163
+ margin-bottom: 0;
164
+ }
165
+
166
+ .mapp-pick-message {
167
+ font-size: 1.5em;
168
+ position: relative;
169
+ text-align: center;
170
+ top: 45%;
171
+ }
172
+
173
+ .mapp-pick-header {
174
+ background-color: white;
175
+ border-bottom: 1px solid lightgray;
176
+ display: flex;
177
+ padding: 10px 20px;
178
+ position: stick;
179
+ top: 0;
180
+ z-index: 1;
181
+ }
182
+
183
+ .mapp-pick-items {
184
+ flex: 1;
185
+ overflow: auto;
186
+ }
187
+
188
+ .mapp-pick-item {
189
+ align-items: center;
190
+ border-bottom: 1px solid lightgray;
191
+ cursor: pointer;
192
+ display: flex;
193
+ overflow: hidden;
194
+ padding: 10px 20px;
195
+ text-overflow: ellipsis;
196
+ }
197
+
198
+ .mapp-pick-item.mapp-selected {
199
+ background-color: #f6f6f6;
200
+ font-weight: 500;
201
+ }
202
+
203
+ .mapp-pick-item:hover {
204
+ background-color: #f6f6f6;
205
+ }
206
+
207
+ .mapp-pick-col-map-title {
208
+ overflow: hidden;
209
+ text-overflow: ellipsis;
210
+ white-space: nowrap;
211
+ width: 35%;
212
+ }
213
+
214
+ .mapp-pick-col-post-title {
215
+ overflow: hidden;
216
+ text-overflow: ellipsis;
217
+ white-space: nowrap;
218
+ width: 35%;
219
+ }
220
+
221
+ .mapp-pick-col-post-title a {
222
+ font-weight: normal;
223
  text-decoration: none;
224
  }
225
 
226
+ .mapp-pick-col-mapid {
227
+ white-space: nowrap;
228
+ width: 15%;
229
  }
230
 
231
+ .mapp-pick-col-actions {
232
+ font-weight: normal;
233
+ white-space: nowrap;
234
+ width: 15%;
235
+ }
236
+
237
+ .mapp-pick-col-actions button {
238
+ background: none;
239
+ border: none;
240
+ }
241
+
242
+ .mapp-pick-col-actions button {
243
+ fill: gray;
244
+ }
245
+
246
+ .mapp-pick-col-actions button:hover {
247
+ fill: inherit;
248
+ }
249
+
250
+ .mapp-pick-col-actions button {
251
+ margin-right: 10px;
252
+ }
253
+
254
+ /*
255
+ -----------------------------------------------------------------------------------
256
+ Media editor
257
+ -----------------------------------------------------------------------------------
258
+ */
259
+
260
+ .mapp-edit {
261
+ display: flex;
262
+ flex-direction: column;
263
+ flex: 1;
264
+ }
265
+
266
+ .mapp-edit .mapp-gt {
267
+ flex: 1;
268
  }
269
 
270
  .mapp-edit .mapp-layout {
271
+ display: flex;
272
+ flex-direction: column;
273
+ height: 100%;
274
+ margin: 0;
275
+ padding: 0;
276
  width: 100% !important;
277
  }
278
 
279
  .mapp-edit .mapp-wrapper {
280
+ height: 100% !important;
281
+ padding-bottom: none;
282
  }
283
 
284
+ .mapp-edit-title input {
285
+ cursor: pointer;
286
+ font-size: 1rem !important;
287
+ margin-left: -10px;
 
288
  }
289
 
290
+ .mapp-edit-title input:not(:hover) {
291
+ border: 1px solid white !important;
292
+ }
293
+
294
+ .mapp-edit-toolbar {
295
+ border-top: 1px solid lightgray;
296
+ padding: 5px 20px;
297
+ white-space: nowrap;
298
+ }
299
+
300
+ .mapp-edit-toolbar button {
301
+ margin-right: 6px;
302
+ }
303
+
304
+ .mapp-edit-delete {
305
+ float: right;
306
+ }
307
+
308
+ /*
309
+ -----------------------------------------------------------------------------------
310
+ Inspector styles - shared styles for settings, query, options
311
+ PanelRow is used to layout items horizontally using flex
312
+ -----------------------------------------------------------------------------------
313
+ */
314
+
315
+ /* Panel rows - space after label */
316
+ .mapp-gt-inspector .components-panel__row .components-base-control__label {
317
+ margin-right: 10px;
318
+ }
319
+
320
+ /* Panel rows - margin on label & field is unecessary */
321
+ .mapp-gt-inspector .components-panel__row .components-base-control__label {
322
+ margin-bottom: 0px;
323
+ margin-right: 10px;
324
+ }
325
+
326
+ /* Panel rows - margin on bottom is unnecessary */
327
+ .mapp-gt-inspector .components-panel__row .components-base-control__field {
328
+ margin-bottom: 0px;
329
+ }
330
+
331
+ /* Panel rows - with no margin on bottom, help text doesn't need to be moved up (WP default -24px) */
332
+ .mapp-gt-inspector .components-panel__row .components-base-control__help {
333
+ margin-top: 0 !important;
334
+ }
335
+
336
+ /* Panel rows - with no margin on bottom, items may not align with default 'center' */
337
+ .mapp-gt-inspector .components-panel__row {
338
+ align-items: baseline;
339
+ }
340
+
341
+ /* WP sets different (8px) margin-bottom only on last child in panel row */
342
+ .block-editor-block-inspector .mapp-gt-inspector .components-base-control:last-child {
343
+ margin-bottom: 24px;
344
+ }
345
+
346
+ @media only screen and (max-width: 780px) {
347
+ .mapp-gt-inspector select {
348
+ max-width: none !important; /* WP puts dropdowns next to labels on small screens */
349
+ }
350
+ }
351
+
352
+ /* Make buttongroup into a block control rather than inline so it'll behave like other contros, e.g. select, text, etc */
353
+ /* todo */
354
+
355
+ /*
356
+ -----------------------------------------------------------------------------------
357
+ Settings
358
+ -----------------------------------------------------------------------------------
359
+ */
360
+
361
+ .mapp-settings-title {
362
+ display: flex;
363
+ overflow: hidden;
364
+ }
365
+
366
+ .mapp-settings-title .components-base-control__field {
367
+ overflow: hidden;
368
+ text-overflow: ellipsis;
369
+ }
370
+
371
+ .mapp-settings-title input {
372
+ font-size: 2em;
373
+ }
374
+
375
+ .mapp-settings-id {
376
+ white-space: nowrap;
377
+ }
378
+
379
+ .mapp-settings-dims-select {
380
+ display: block !important; /* GT tries to set flex */
381
+ min-width: 7em; /* WP's custom arrow obscures values */
382
+ }
383
+
384
+ .mapp-settings-dims-custom input {
385
+ margin-top: 2px;
386
+ }
387
+
388
+ .mapp-settings-dims-custom p {
389
+ margin-bottom: 0;
390
+ }
391
+
392
+ .mapp-settings-poilist {
393
+ white-space: nowrap;
394
+ }
395
+
396
+ .mapp-settings-poilist .components-radio-control__option {
397
+ display: inline-block;
398
+ }
399
+ .mapp-settings-poilist .components-base-control__label {
400
+ display: inline;
401
+ }
402
+
403
+ .mapp-settings-viewport-status {
404
+ cursor: pointer;
405
+ margin-left: 10px;
406
+ }
407
+
408
+ /*
409
+ -----------------------------------------------------------------------------------
410
+ Mashup query builder
411
+ -----------------------------------------------------------------------------------
412
+ */
413
+
414
+ button.mapp-query-refresh {
415
+ display: inline;
416
+ margin-bottom: 10px;
417
+ text-align: center;
418
  width: 100%;
419
  }
420
 
421
+ .mapp-query-custom {
422
+ display: block;
 
 
 
423
  }
424
 
425
+ .mapp-query-custom button {
426
+ margin-right: 10px;
 
427
  }
428
 
429
+ .mapp-query-error {
430
+ border: 2px solid red;
431
+ padding: 5px;
432
  }
433
 
434
+ .mapp-query-orderby select {
435
+ text-transform: capitalize;
436
+ }
437
+
438
+ .mapp-query-custom-error textarea {
439
+ border: 2px solid red;
440
+ }
441
+
442
+ .mapp-query-card {
443
+ margin-bottom: 10px !important;
444
+ }
445
+
446
+ .mapp-query-card-header {
447
+ border-bottom: 1px solid lightgray;
448
+ display: flex;
449
+ justify-content: space-between;
450
+ padding-bottom: 5px;
451
+ }
452
+
453
+ .mapp-query-card-title {
454
+ margin-right: 10px;
455
+ overflow: hidden;
456
+ text-overflow: ellipsis;
457
+ }
458
+
459
+ .mapp-query-card-body {
460
+ margin-top: 5px;
461
+ padding: 5px 0;
462
+ }
463
+
464
+ .mapp-query-add-taxonomy {
465
+ flex: 1;
466
  }
467
 
468
+ /*
469
+ -----------------------------------------------------------------------------------
470
+ Multiselect
471
+ -----------------------------------------------------------------------------------
472
+ */
473
+
474
+ .mapp-select {}
475
+
476
+ .mapp-select-input {
477
+ border: 1px solid lightgray;
478
+ cursor: pointer;
479
+ display: flex;
480
+ line-height: normal;
481
+ padding: 5px;
482
+ }
483
+
484
+ @media only screen and (max-width: 782px) {
485
+ .mapp-select-input {
486
+ min-height: 40px;
487
+ width: 100%;
488
+ }
489
+ }
490
+
491
+ .mapp-select-input .dashicons {
492
+ font-size: 16px;
493
+ height: 16px;
494
+ width: 16px;
495
+ }
496
+
497
+ .mapp-select-dropdown-wrapper {
498
+ position: relative;
499
+ }
500
+
501
+ .mapp-select-dropdown {
502
+ background-color: white;
503
+ border-radius: 4px;
504
+ box-shadow: 0 5px 15px rgba(0,0,0,.2);
505
+ cursor: pointer;
506
+ display: flex;
507
+ flex-direction: column;
508
+ max-height: 150px;
509
+ position: absolute;
510
+ top: 0; left: 0; right: 0;
511
+ z-index: 100000;
512
+ }
513
+
514
+ .mapp-select-dropdown-list {
515
+ flex: 1;
516
+ overflow: auto;
517
+ padding: 5px;
518
+ }
519
+
520
+ .mapp-select-dropdown-item {
521
+ overflow: hidden;
522
+ padding: 5px;
523
+ text-overflow : ellipsis;
524
+ white-space: nowrap;
525
+ }
526
+
527
+ .mapp-select-dropdown-item:hover {
528
+ background-color: #eee;
529
+ }
530
+
531
+ .mapp-select .components-base-control, .mapp-select .components-base-control__field {
532
+ margin-bottom: 0 !important;
533
+ }
534
+
535
+ /* WP checkboxcontrol has a bug: it doubles click events on any parent, so we can't use parent div, and it also doesn't make event object available; So, make checkbox full width instead */
536
+ .mapp-select-dropdown-item .components-base-control__field {
537
+ display: flex;
538
+ }
539
+
540
+ .mapp-select-dropdown-item label {
541
+ flex: 1;
542
+ }
543
+
544
+ .mapp-select-tokens {
545
+ display: flex;
546
+ flex: 1;
547
+ flex-wrap: wrap;
548
+ }
549
+
550
+ .mapp-select-token {
551
+ background-color: #ddd;
552
+ margin: 2px;
553
+ overflow: hidden;
554
+ padding: 3px;
555
+ text-overflow: ellipsis;
556
+ white-space: nowrap;
557
+ }
558
+
559
+ .mapp-select-token-delete {
560
+ padding: 2px;
561
+ }
562
+
563
+ .mapp-select-token-delete:hover {
564
+ color: red;
565
+ }
566
+
567
+ .mapp-select-values {
568
+ flex: 1;
569
+ overflow: hidden;
570
+ text-overflow: ellipsis;
571
+ white-space: nowrap;
572
+ }
573
+
574
+ .mapp-select-filter {
575
+ padding: 5px;
576
+ }
577
+
578
+
579
  /*
580
  -----------------------------------------------------------------------------------
581
  POI editor
582
  -----------------------------------------------------------------------------------
583
  */
584
 
585
+ .mapp-poi-edit {
586
+ width: 250px;
587
+ }
588
+
589
+ .mapp-poi-edit .mapp-poi-header {
590
+ display: flex;
591
+ align-items: center;
592
+ }
593
 
594
  .mapp-poi-edit a, .mapp-poi-edit button, .mapp-poi-edit input[type="button"] {
595
  vertical-align: middle !important;
603
  margin-right: 5px;
604
  }
605
 
 
 
 
 
 
606
  .mapp-poi-edit .mapp-poi-title {
607
  width: 100%;
608
  font-weight: bold;
613
  margin-left: 5px !important;
614
  }
615
 
 
616
  .mapp-poi-edit .mapp-poi-body {
 
617
  height: 143px;
618
+ width: 100%;
619
  }
620
 
621
  .mapp-poi-edit .mapp-poi-visual, .mapp-poi-edit .mapp-poi-html {
639
 
640
  /*
641
  -----------------------------------------------------------------------------------
642
+ Settings screen
643
  -----------------------------------------------------------------------------------
644
  */
645
 
738
  color:red;
739
  }
740
 
741
+ a.mapp-check-account {
742
+ margin-left: 10px;
743
+ text-decoration: none;
744
+ }
745
+
746
+
747
+
748
  /*
749
  -----------------------------------------------------------------------------------
750
  Template Editor
803
  bottom: 5px; left: 5px; right: 5px;
804
  }
805
 
806
+ /*
807
+ -----------------------------------------------------------------------------------
808
+ Icon Editor
809
+ -----------------------------------------------------------------------------------
810
+ */
811
+
812
+ .mapp-icon-editor {
813
+ cursor: default;
814
+ display: flex;
815
+ flex-direction: column;
816
+ height: 70vh;
817
+ max-width: 500px;
818
+ padding: 20px;
819
+ width: 70vh;;
820
+ }
821
+
822
+ .mapp-icon-editor-wrapper {
823
+ border: 1px solid lightgray;
824
+ flex: 1;
825
+ overflow: auto;
826
+ }
827
+
828
+ .mapp-icon-editor-toolbar {
829
+ padding-top: 20px;
830
+ }
831
+
832
+ ul.mapp-icon-editor-list {
833
+ display: table;
834
+ margin: 0;
835
+ padding: 0;
836
+ width: 100%;
837
+ }
838
+
839
+ .mapp-icon-editor-list li {
840
+ display: table-row;
841
+ }
842
+
843
+ .mapp-icon-editor-list li:hover {
844
+ background-color: #fafafa;
845
+ }
846
+
847
+ .mapp-icon-editor-list span {
848
+ border-bottom: 1px solid lightgray;
849
+ display: table-cell;
850
+ overflow: hidden;
851
+ padding: 5px 15px;
852
+ text-overflow: ellipsis;
853
+ }
854
+
855
+ .mapp-icon-editor-list img {
856
+ margin-right: 10px;
857
+ }
858
+
859
+ .mapp-icon-editor .dashicons {
860
+ color: #d0d0d0;
861
+ }
862
+
863
+ .mapp-icon-editor .dashicons:hover {
864
+ color: black;
865
+ }
866
+
867
+ .mapp-icon-editor .spinner {
868
+ float: none;
869
+ visibility: visible;
870
+ }
871
+
872
+ .mapp-icon-editor-msg {
873
+ margin-top: 50px;
874
+ text-align: center;
875
+ }
876
+
877
+
878
  /*
879
  -----------------------------------------------------------------------------------
880
  Tabs
941
  }
942
 
943
  .mapp-popup-max {
944
+ left: 5%;
945
+ right: 5%;
946
+ top: 5%;
947
+ bottom: 5%;
948
+ transform: none;
949
  }
950
 
951
  @media only screen and (max-width: 780px) {
952
+ .mapp-popup-max {
953
+ left: 0;
954
+ right: 0;
955
+ top: 0;
956
+ bottom: 0;
957
+ }
958
  }
959
 
960
  /* Prevent scrollbars on body when popup is open */
1047
  border: 2px solid black;
1048
  }
1049
 
1050
+ /*
1051
+ -----------------------------------------------------------------------------------
1052
+ Classic (tinyMCE) editor
1053
+ -----------------------------------------------------------------------------------
1054
+ */
1055
+ /*
1056
+ -----------------------------------------------------------------------------------
1057
+ Metaboxes
1058
+ -----------------------------------------------------------------------------------
1059
+ */
1060
+ #mappress.postbox h1 {
1061
+ display: inline-block;
1062
+ margin-right: 10px;
1063
+ }
1064
+
1065
+ /*
1066
+ -----------------------------------------------------------------------------------
1067
+ Map list
1068
+ -----------------------------------------------------------------------------------
1069
+ */
1070
+
1071
+ .mapp-mce {
1072
+ background-color: white;
1073
+ }
1074
+
1075
+ .mapp-mce input[type="button"] {
1076
+ vertical-align: middle;
1077
+ }
1078
+
1079
+ /* Override WP settings */
1080
+ .mapp-mce input[type="text"], .mapp-mce select {
1081
+ height: auto !important;
1082
+ padding: 3px 6px 3px 6px;
1083
+ }
1084
+
1085
+ .mapp-mce select {
1086
+ padding-right: 25px;
1087
+ vertical-align: top;
1088
+ }
1089
+
1090
+ .mapp-mce-edit-panel {
1091
+ display:none;
1092
+ }
1093
+
1094
+ .mapp-mce-edit-panel td {
1095
+ padding-right: 5px;
1096
+ }
1097
+
1098
+ .mapp-mce-edit-toolbar {
1099
+ margin-top: 5px;
1100
+ }
1101
+
1102
+ .mapp-mce .mapp-layout {
1103
+ border: 1px solid lightgray;
1104
+ margin: 5px 0 0 0;
1105
+ width: 100% !important;
1106
+ }
1107
+
1108
+ .mapp-mce .mapp-wrapper {
1109
+ height: 350px !important;
1110
+ }
1111
+
1112
+
1113
+
1114
+ .mapp-mce-search {
1115
+ display: none;
1116
+ float: right;
1117
+ }
1118
+
1119
+ input.mapp-mce-title {
1120
+ width: 100%;
1121
+ }
1122
+
1123
+ .mapp-mce-list {
1124
+ background-color: white;
1125
+ max-height: 300px;
1126
+ overflow: auto;
1127
+ }
1128
+
1129
+ .mapp-mce-list-toolbar {
1130
+ border-bottom: 1px solid lightgray;
1131
+ display: flex;
1132
+ flex-align: center;
1133
+ padding: 5px 0 5px 0;
1134
+ }
1135
+
1136
+ .mapp-mce-list-toolbar * {
1137
+ vertical-align: middle;
1138
+ }
1139
+
1140
+ .mapp-mce-item {
1141
+ border-bottom: 1px solid lightgray;
1142
+ cursor: pointer;
1143
+ overflow: hidden;
1144
+ padding: 5px;
1145
+ }
1146
+
1147
+ .mapp-mce-item.mapp-selected {
1148
+ background-color: #f6f6f6;
1149
+ font-weight: bold;
1150
+ }
1151
+
1152
+ .mapp-mce-item:hover {
1153
+ background-color: #f6f6f6;
1154
+ }
1155
+
1156
+ .mapp-mce-item .mapp-actions {
1157
+ visibility: hidden;
1158
+ }
1159
+
1160
+ .mobile .mapp-mce-item .mapp-actions {
1161
+ visibility: visible;
1162
+ }
1163
+
1164
+ .mapp-mce-item:hover .mapp-actions {
1165
+ visibility: visible;
1166
+ }
1167
+
1168
+
1169
+
1170
  /*
1171
  -----------------------------------------------------------------------------------
1172
  Misc
forms/dummy.js DELETED
File without changes
forms/media.php DELETED
@@ -1,84 +0,0 @@
1
- <div class='mapp-media'>
2
- <div class='mapp-media-header'>
3
- <?php echo Mappress::get_support_links(); ?>
4
- </div>
5
- <div class='mapp-media-list-panel'>
6
- <div class='mapp-media-list-toolbar'>
7
- <input data-mapp-media='add' class='button button-primary' type='button' value='<?php esc_attr_e('New Map', 'mappress-google-maps-for-wordpress')?>' />
8
- <select class='mapp-media-list-type'>
9
- <option value='post'><?php _e('This post', 'mappress-google-maps-for-wordpress');?></option>
10
- <option value='all'><?php _e('All posts', 'mappress-google-maps-for-wordpress');?></option>
11
- </select>
12
- <input type='text' size="15" class='mapp-media-search' placeholder='<?php _e('Filter by title', 'mappress-google-maps-for-wordpress');?>'>
13
- <span class='spinner'></span>
14
- </div>
15
- <div class='mapp-list mapp-media-list'></div>
16
- </div>
17
-
18
- <div class='mapp-media-edit-panel'>
19
- <table class='mapp-settings'>
20
- <tr>
21
- <td><?php _e('Map ID', 'mappress-google-maps-for-wordpress');?>:</td>
22
- <td><span class='mapp-media-mapid'></span></td>
23
- </tr>
24
-
25
- <tr>
26
- <td><?php _e('Map Title', 'mappress-google-maps-for-wordpress');?>:</td>
27
- <td><input class='mapp-media-title' type='text' placeholder='<?php _e('Untitled', 'mappress-google-maps-for-wordpress');?>' /></td>
28
- </tr>
29
-
30
- <tr>
31
- <td><?php _e('Display Size', 'mappress-google-maps-for-wordpress');?>:</td>
32
- <td>
33
- <?php
34
- $sizes = array();
35
- foreach(Mappress::$options->sizes as $i => $size)
36
- $sizes[] = "<a href='#' class='mapp-media-size' data-width='{$size['width']}' data-height='{$size['height']}'>" . $size['width'] . 'x' . $size['height'] . "</a>";
37
- echo implode(' | ', $sizes);
38
- ?>
39
- <input type='text' class='mapp-media-width' size='2' value='' /> x <input type='text' class='mapp-media-height' size='2' value='' />
40
- </td>
41
- </tr>
42
-
43
- <tr>
44
- <td><?php _e('Save center / zoom', 'mappress-google-maps-for-wordpress');?></td>
45
- <td><input type='checkbox' class='mapp-media-viewport'></td>
46
- </tr>
47
- </table>
48
- <div class='mapp-media-edit-toolbar'>
49
- <input data-mapp-media='save' class='button button-primary' type='button' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
50
- <input data-mapp-media='cancel' class='button' type='button' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
51
- <input data-mapp-media='insert' class='button' type='button' value='<?php esc_attr_e('Insert into post', 'mappress-google-maps-for-wordpress'); ?>' />
52
- </div>
53
- <?php require Mappress::$basedir . "/forms/editor.php"; ?>
54
- </div>
55
- </div>
56
-
57
- <script type='text/template' id='mapp-tmpl-media-list'>
58
- <div class='mapp-items'>
59
- <# _.forEach(items, function(item, i) { #>
60
- <div class='mapp-item' data-mapp-media-list='edit' data-mapp-mapid='{{ item.mapid }}'>
61
-
62
- <# if (type == 'all') { #>
63
- <# if (item.post_title) { #>{{ item.post_title }}<# } else { #><?php _e('Untitled', 'mappress-google-maps-for-wordpress');?><# } #>
64
- &nbsp;-&nbsp;
65
- <# } #>
66
-
67
- <# if (item.map_title) { #>{{ item.map_title }}<# } else { #><?php _e('Untitled', 'mappress-google-maps-for-wordpress');?><# } #>
68
-
69
- <div class='mapp-actions'>
70
- <a href='#' data-mapp-media-list='edit'><?php _e('Edit', 'mappress-google-maps-for-wordpress');?></a> |&nbsp;
71
- <a href='#' data-mapp-media-list='insert'><?php _e('Insert into post', 'mappress-google-maps-for-wordpress');?></a> |&nbsp;
72
- <a href='#' data-mapp-media-list='remove'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
73
- </div>
74
- </div>
75
- <# }); #>
76
- </div>
77
- <div class='mapp-list-footer'>
78
- <# if (items.length == 0) { #>
79
- <?php _e('No maps found', 'mappress-google-maps-for-wordpress');?>
80
- <# } #>
81
- {{{more}}}
82
- </div>
83
- </div>
84
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
forms/settings.php DELETED
@@ -1,34 +0,0 @@
1
- <script type='text/html' id='mapp-tmpl-tp-master'>
2
- <div class='mapp-tp-editor'>
3
- <?php echo Mappress_Controls::select('', array('map-popup' => __('Map popup', 'mappress-google-maps-for-wordpress'), 'map-item' => __('Map list item', 'mappress-google-maps-for-wordpress'), 'mashup-popup' => __('Mashup popup', 'mappress-google-maps-for-wordpress'), 'mashup-item' => __('Mashup list item', 'mappress-google-maps-for-wordpress')), 'map-tmpl-poi', array('class' => 'mapp-tp-select')); ?>
4
- <?php echo Mappress_Controls::button('', __('Edit', 'mappress-google-maps-for-wordpress'), array('class' => 'button button-primary', 'data-mapp-action' => 'edit')); ?>
5
- </div>
6
- </script>
7
-
8
- <script type='text/html' id='mapp-tmpl-tp-detail'>
9
- <div class='mapp-tp-detail'>
10
- <div class='mapp-tp-name'>{{ model.name }} <# if (!model.exists) { #>(<?php _e('New', 'mappress-google-maps-for-wordpress');?>)<# } else { #>(<?php _e('Custom', 'mappress-google-maps-for-wordpress');?>)<# } #></div>
11
- <div class='mapp-tp-path'>{{ model.path }}</div>
12
- <div class='mapp-tabs'>
13
- <div class='mapp-tab-label mapp-active' class='mapp-active'><?php _e('Editor', 'mappress-google-maps-for-wordpress');?></div>
14
- <div class='mapp-tab-label'><?php _e('Default', 'mappress-google-maps-for-wordpress');?></div>
15
- <div class='mapp-tab mapp-tab-content mapp-active'>
16
- <# _.each(tokens, function (token, i) { #>
17
- <code data-mapp-action='insert' data-mapp-insert='{{{i}}}' title='{{{i}}}'>{{{token}}}</code>
18
- <# }); #>
19
- <hr/>
20
- <textarea class='mapp-tp-content'>{{{ model.content }}}</textarea>
21
- </div>
22
- <div class='mapp-tab mapp-tab-standard'>
23
- <textarea readonly class='mapp-tp-standard'>{{{ model.standard }}}</textarea>
24
- </div>
25
- </div>
26
- <div class='mapp-tp-toolbar'>
27
- <input type='button' class='button button-primary' data-mapp-action='save' value='<?php _e('Save', 'mappress-google-maps-for-wordpress');?>'>
28
- <input type='button' class='button' data-mapp-action='cancel' value='<?php _e('Cancel', 'mappress-google-maps-for-wordpress');?>'>
29
- <# if (model.exists) { #>
30
- <a href='#' data-mapp-action='destroy'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
31
- <# } #>
32
- </div>
33
- </div>
34
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
images/cleardot.gif DELETED
Binary file
images/preview.png ADDED
Binary file
js/algolia/algoliasearchLite.min.js DELETED
@@ -1,4 +0,0 @@
1
- /*! algoliasearch 3.32.0 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
2
- !function(e){var t;"undefined"!=typeof window?t=window:"undefined"!=typeof self&&(t=self),t.ALGOLIA_MIGRATION_LAYER=e()}(function(){return function e(t,r,o){function n(s,a){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return n(r?r:e)},l,l.exports,e,t,r,o)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<o.length;s++)n(o[s]);return n}({1:[function(e,t,r){function o(e,t){for(var r in t)e.setAttribute(r,t[r])}function n(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function i(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}t.exports=function(e,t,r){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},a.type=t.type||"text/javascript",a.charset=t.charset||"utf8",a.async=!("async"in t)||!!t.async,a.src=e,t.attrs&&o(a,t.attrs),t.text&&(a.text=""+t.text);var c="onload"in a?n:i;c(a,r),a.onload||n(a,r),s.appendChild(a)}},{}],2:[function(e,t,r){"use strict";function o(e){for(var t=new RegExp("cdn\\.jsdelivr\\.net/algoliasearch/latest/"+e.replace(".","\\.")+"(?:\\.min)?\\.js$"),r=document.getElementsByTagName("script"),o=!1,n=0,i=r.length;n<i;n++)if(r[n].src&&t.test(r[n].src)){o=!0;break}return o}t.exports=o},{}],3:[function(e,t,r){"use strict";function o(t){var r=e(1),o="//cdn.jsdelivr.net/algoliasearch/2/"+t+".min.js",i="-- AlgoliaSearch `latest` warning --\nWarning, you are using the `latest` version string from jsDelivr to load the AlgoliaSearch library.\nUsing `latest` is no more recommended, you should load //cdn.jsdelivr.net/algoliasearch/2/algoliasearch.min.js\n\nAlso, we updated the AlgoliaSearch JavaScript client to V3. If you want to upgrade,\nplease read our migration guide at https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x\n-- /AlgoliaSearch `latest` warning --";window.console&&(window.console.warn?window.console.warn(i):window.console.log&&window.console.log(i));try{document.write("<script>window.ALGOLIA_SUPPORTS_DOCWRITE = true</script>"),window.ALGOLIA_SUPPORTS_DOCWRITE===!0?(document.write('<script src="'+o+'"></script>'),n("document.write")()):r(o,n("DOMElement"))}catch(s){r(o,n("DOMElement"))}}function n(e){return function(){var t="AlgoliaSearch: loaded V2 script using "+e;window.console&&window.console.log&&window.console.log(t)}}t.exports=o},{1:1}],4:[function(e,t,r){"use strict";function o(){var e="-- AlgoliaSearch V2 => V3 error --\nYou are trying to use a new version of the AlgoliaSearch JavaScript client with an old notation.\nPlease read our migration guide at https://github.com/algolia/algoliasearch-client-js/wiki/Migration-guide-from-2.x.x-to-3.x.x\n-- /AlgoliaSearch V2 => V3 error --";window.AlgoliaSearch=function(){throw new Error(e)},window.AlgoliaSearchHelper=function(){throw new Error(e)},window.AlgoliaExplainResults=function(){throw new Error(e)}}t.exports=o},{}],5:[function(e,t,r){"use strict";function o(t){var r=e(2),o=e(3),n=e(4);r(t)?o(t):n()}o("algoliasearch")},{2:2,3:3,4:4}]},{},[5])(5)}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.algoliasearch=e()}}(function(){var e;return function t(e,r,o){function n(s,a){if(!r[s]){if(!e[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return n(r?r:t)},l,l.exports,t,e,r,o)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<o.length;s++)n(o[s]);return n}({1:[function(e,t,r){(function(o){function n(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var o="color: "+this.color;e.splice(1,0,o,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(i=n))}),e.splice(i,0,o)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(t){}}function c(){var e;try{e=r.storage.debug}catch(t){}return!e&&"undefined"!=typeof o&&"env"in o&&(e=o.env.DEBUG),e}function u(){try{return window.localStorage}catch(e){}}r=t.exports=e(2),r.log=s,r.formatArgs=i,r.save=a,r.load=c,r.useColors=n,r.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(c())}).call(this,e(12))},{12:12,2:2}],2:[function(e,t,r){function o(e){var t,o=0;for(t in e)o=(o<<5)-o+e.charCodeAt(t),o|=0;return r.colors[Math.abs(o)%r.colors.length]}function n(e){function t(){if(t.enabled){var e=t,o=+new Date,n=o-(u||o);e.diff=n,e.prev=u,e.curr=o,u=o;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=r.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,o){if("%%"===t)return t;a++;var n=r.formatters[o];if("function"==typeof n){var s=i[a];t=n.call(e,s),i.splice(a,1),a--}return t}),r.formatArgs.call(e,i);var c=t.log||r.log||console.log.bind(console);c.apply(e,i)}}return t.namespace=e,t.enabled=r.enabled(e),t.useColors=r.useColors(),t.color=o(e),"function"==typeof r.init&&r.init(t),t}function i(e){r.save(e),r.names=[],r.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),o=t.length,n=0;n<o;n++)t[n]&&(e=t[n].replace(/\*/g,".*?"),"-"===e[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")))}function s(){r.enable("")}function a(e){var t,o;for(t=0,o=r.skips.length;t<o;t++)if(r.skips[t].test(e))return!1;for(t=0,o=r.names.length;t<o;t++)if(r.names[t].test(e))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}r=t.exports=n.debug=n["default"]=n,r.coerce=c,r.disable=s,r.enable=i,r.enabled=a,r.humanize=e(9),r.names=[],r.skips=[],r.formatters={};var u},{9:9}],3:[function(t,r,o){(function(n,i){!function(t,n){"object"==typeof o&&"undefined"!=typeof r?r.exports=n():"function"==typeof e&&e.amd?e(n):t.ES6Promise=n()}(this,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function r(e){return"function"==typeof e}function o(e){X=e}function s(e){W=e}function a(){return function(){return n.nextTick(d)}}function c(){return"undefined"!=typeof V?function(){V(d)}:p()}function u(){var e=0,t=new Z(d),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}function l(){var e=new MessageChannel;return e.port1.onmessage=d,function(){return e.port2.postMessage(0)}}function p(){var e=setTimeout;return function(){return e(d,1)}}function d(){for(var e=0;e<$;e+=2){var t=re[e],r=re[e+1];t(r),re[e]=void 0,re[e+1]=void 0}$=0}function h(){try{var e=t,r=e("vertx");return V=r.runOnLoop||r.runOnContext,c()}catch(o){return p()}}function f(e,t){var r=arguments,o=this,n=new this.constructor(m);void 0===n[ne]&&C(n);var i=o._state;return i?!function(){var e=r[i-1];W(function(){return E(i,n,e,o._result)})}():I(o,n,e,t),n}function y(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var r=new t(m);return R(r,e),r}function m(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function g(){return new TypeError("A promises callback cannot return that same promise.")}function b(e){try{return e.then}catch(t){return ce.error=t,ce}}function w(e,t,r,o){try{e.call(t,r,o)}catch(n){return n}}function _(e,t,r){W(function(e){var o=!1,n=w(r,t,function(r){o||(o=!0,t!==r?R(e,r):j(e,r))},function(t){o||(o=!0,S(e,t))},"Settle: "+(e._label||" unknown promise"));!o&&n&&(o=!0,S(e,n))},e)}function T(e,t){t._state===se?j(e,t._result):t._state===ae?S(e,t._result):I(t,void 0,function(t){return R(e,t)},function(t){return S(e,t)})}function x(e,t,o){t.constructor===e.constructor&&o===f&&t.constructor.resolve===y?T(e,t):o===ce?(S(e,ce.error),ce.error=null):void 0===o?j(e,t):r(o)?_(e,t,o):j(e,t)}function R(t,r){t===r?S(t,v()):e(r)?x(t,r,b(r)):j(t,r)}function A(e){e._onerror&&e._onerror(e._result),k(e)}function j(e,t){e._state===ie&&(e._result=t,e._state=se,0!==e._subscribers.length&&W(k,e))}function S(e,t){e._state===ie&&(e._state=ae,e._result=t,W(A,e))}function I(e,t,r,o){var n=e._subscribers,i=n.length;e._onerror=null,n[i]=t,n[i+se]=r,n[i+ae]=o,0===i&&e._state&&W(k,e)}function k(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var o=void 0,n=void 0,i=e._result,s=0;s<t.length;s+=3)o=t[s],n=t[s+r],o?E(r,o,n,i):n(i);e._subscribers.length=0}}function O(){this.error=null}function q(e,t){try{return e(t)}catch(r){return ue.error=r,ue}}function E(e,t,o,n){var i=r(o),s=void 0,a=void 0,c=void 0,u=void 0;if(i){if(s=q(o,n),s===ue?(u=!0,a=s.error,s.error=null):c=!0,t===s)return void S(t,g())}else s=n,c=!0;t._state!==ie||(i&&c?R(t,s):u?S(t,a):e===se?j(t,s):e===ae&&S(t,s))}function U(e,t){try{t(function(t){R(e,t)},function(t){S(e,t)})}catch(r){S(e,r)}}function P(){return le++}function C(e){e[ne]=le++,e._state=void 0,e._result=void 0,e._subscribers=[]}function N(e,t){this._instanceConstructor=e,this.promise=new e(m),this.promise[ne]||C(this.promise),G(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&j(this.promise,this._result))):S(this.promise,D())}function D(){return new Error("Array Methods must be provided an Array")}function K(e){return new N(this,e).promise}function L(e){var t=this;return new t(G(e)?function(r,o){for(var n=e.length,i=0;i<n;i++)t.resolve(e[i]).then(r,o)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function H(e){var t=this,r=new t(m);return S(r,e),r}function M(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function J(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function F(e){this[ne]=P(),this._result=this._state=void 0,this._subscribers=[],m!==e&&("function"!=typeof e&&M(),this instanceof F?U(this,e):J())}function B(){var e=void 0;if("undefined"!=typeof i)e=i;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var r=e.Promise;if(r){var o=null;try{o=Object.prototype.toString.call(r.resolve())}catch(t){}if("[object Promise]"===o&&!r.cast)return}e.Promise=F}var Q=void 0;Q=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var G=Q,$=0,V=void 0,X=void 0,W=function(e,t){re[$]=e,re[$+1]=t,$+=2,2===$&&(X?X(d):oe())},Y="undefined"!=typeof window?window:void 0,z=Y||{},Z=z.MutationObserver||z.WebKitMutationObserver,ee="undefined"==typeof self&&"undefined"!=typeof n&&"[object process]"==={}.toString.call(n),te="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,re=new Array(1e3),oe=void 0;oe=ee?a():Z?u():te?l():void 0===Y&&"function"==typeof t?h():p();var ne=Math.random().toString(36).substring(16),ie=void 0,se=1,ae=2,ce=new O,ue=new O,le=0;return N.prototype._enumerate=function(e){for(var t=0;this._state===ie&&t<e.length;t++)this._eachEntry(e[t],t)},N.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,o=r.resolve;if(o===y){var n=b(e);if(n===f&&e._state!==ie)this._settledAt(e._state,t,e._result);else if("function"!=typeof n)this._remaining--,this._result[t]=e;else if(r===F){var i=new r(m);x(i,e,n),this._willSettleAt(i,t)}else this._willSettleAt(new r(function(t){return t(e)}),t)}else this._willSettleAt(o(e),t)},N.prototype._settledAt=function(e,t,r){var o=this.promise;o._state===ie&&(this._remaining--,e===ae?S(o,r):this._result[t]=r),0===this._remaining&&j(o,this._result)},N.prototype._willSettleAt=function(e,t){var r=this;I(e,void 0,function(e){return r._settledAt(se,t,e)},function(e){return r._settledAt(ae,t,e)})},F.all=K,F.race=L,F.resolve=y,F.reject=H,F._setScheduler=o,F._setAsap=s,F._asap=W,F.prototype={constructor:F,then:f,"catch":function(e){return this.then(null,e)}},F.polyfill=B,F.Promise=F,F})}).call(this,t(12),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{12:12}],4:[function(e,t,r){function o(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0,o.defaultMaxListeners=10,o.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},o.prototype.emit=function(e){var t,r,o,i,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(r=this._events[e],a(r))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(s(r))for(i=Array.prototype.slice.call(arguments,1),u=r.slice(),o=u.length,c=0;c<o;c++)u[c].apply(this,i);return!0},o.prototype.addListener=function(e,t){var r;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,s(this._events[e])&&!this._events[e].warned&&(r=a(this._maxListeners)?o.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},o.prototype.on=o.prototype.addListener,o.prototype.once=function(e,t){function r(){this.removeListener(e,r),o||(o=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var o=!1;return r.listener=t,this.on(e,r),this},o.prototype.removeListener=function(e,t){var r,o,i,a;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],i=r.length,o=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(r)){for(a=i;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},o.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},o.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},o.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},o.listenerCount=function(e,t){return e.listenerCount(t)}},{}],5:[function(e,t,r){var o=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(e,t,r){if("[object Function]"!==n.call(t))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var s=0;s<i;s++)t.call(r,e[s],s,e);else for(var a in e)o.call(e,a)&&t.call(r,e[a],a,e)}},{}],6:[function(e,t,r){(function(e){var r;r="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],8:[function(e,t,r){var o={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},{}],9:[function(e,t,r){function o(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*p;case"days":case"day":case"d":return r*l;case"hours":case"hour":case"hrs":case"hr":case"h":return r*u;case"minutes":case"minute":case"mins":case"min":case"m":return r*c;case"seconds":case"second":case"secs":case"sec":case"s":return r*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function n(e){return e>=l?Math.round(e/l)+"d":e>=u?Math.round(e/u)+"h":e>=c?Math.round(e/c)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function i(e){return s(e,l,"day")||s(e,u,"hour")||s(e,c,"minute")||s(e,a,"second")||e+" ms"}function s(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var a=1e3,c=60*a,u=60*c,l=24*u,p=365.25*l;t.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return o(e);if("number"===r&&isNaN(e)===!1)return t["long"]?i(e):n(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],10:[function(e,t,r){"use strict";var o=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Array.prototype.slice,s=e(11),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),u=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),f=function(e){if("undefined"==typeof window||!h)return p(e);try{return p(e)}catch(t){return!1}},y=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===n.call(e),i=s(e),a=t&&"[object String]"===n.call(e),p=[];if(!t&&!r&&!i)throw new TypeError("Object.keys called on a non-object");var d=u&&r;if(a&&e.length>0&&!o.call(e,0))for(var h=0;h<e.length;++h)p.push(String(h));if(i&&e.length>0)for(var y=0;y<e.length;++y)p.push(String(y));else for(var m in e)d&&"prototype"===m||!o.call(e,m)||p.push(String(m));if(c)for(var v=f(e),g=0;g<l.length;++g)v&&"constructor"===l[g]||!o.call(e,l[g])||p.push(l[g]);return p};y.shim=function(){if(Object.keys){var e=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!e){var t=Object.keys;Object.keys=function(e){return t(s(e)?i.call(e):e)}}}else Object.keys=y;return Object.keys||y},t.exports=y},{11:11}],11:[function(e,t,r){"use strict";var o=Object.prototype.toString;t.exports=function(e){var t=o.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===o.call(e.callee)),r}},{}],12:[function(e,t,r){function o(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(p===setTimeout)return setTimeout(e,0);if((p===o||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function s(e){if(d===clearTimeout)return clearTimeout(e);if((d===n||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?y=f.concat(y):v=-1,y.length&&c())}function c(){if(!m){var e=i(a);m=!0;for(var t=y.length;t;){for(f=y,y=[];++v<t;)f&&f[v].run();v=-1,t=y.length}f=null,m=!1,s(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var p,d,h=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:o}catch(e){p=o}try{d="function"==typeof clearTimeout?clearTimeout:n}catch(e){d=n}}();var f,y=[],m=!1,v=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];y.push(new u(e,t)),1!==y.length||m||i(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],13:[function(e,t,r){"use strict";function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,i){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var p,d,h,f,y=e[l].replace(a,"%20"),m=y.indexOf(r);m>=0?(p=y.substr(0,m),d=y.substr(m+1)):(p=y,d=""),h=decodeURIComponent(p),f=decodeURIComponent(d),o(s,h)?n(s[h])?s[h].push(f):s[h]=[s[h],f]:s[h]=f}return s};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],14:[function(e,t,r){"use strict";function o(e,t){if(e.map)return e.map(t);for(var r=[],o=0;o<e.length;o++)r.push(t(e[o],o));return r}var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(s(e),function(s){var a=encodeURIComponent(n(s))+r;return i(e[s])?o(e[s],function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[s]))}).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],15:[function(e,t,r){"use strict";r.decode=r.parse=e(13),r.encode=r.stringify=e(14)},{13:13,14:14}],16:[function(e,t,r){function o(){c.apply(this,arguments)}function n(){var e="Not implemented in this environment.\nIf you feel this is a mistake, write to support@algolia.com";throw new l.AlgoliaSearchError(e)}t.exports=o;var i=e(18),s=e(28),a=e(29),c=e(17),u=e(7),l=e(30);u(o,c),o.prototype.deleteIndex=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(e),hostType:"write",callback:t})},o.prototype.moveIndex=function(e,t,r){var o={operation:"move",destination:t};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:o,hostType:"write",callback:r})},o.prototype.copyIndex=function(e,t,r,o){var n={operation:"copy",destination:t},i=o;if("function"==typeof r)i=r;else if(Array.isArray(r)&&r.length>0)n.scope=r;else if("undefined"!=typeof r)throw new Error("the scope given to `copyIndex` was not an array with settings, synonyms or rules");return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:n,hostType:"write",callback:i})},o.prototype.getLogs=function(t,r,o){var n=e(26),i={};return"object"==typeof t?(i=n(t),o=r):0===arguments.length||"function"==typeof t?o=t:1===arguments.length||"function"==typeof r?(o=r,i.offset=t):(i.offset=t,i.length=r),void 0===i.offset&&(i.offset=0),void 0===i.length&&(i.length=10),this._jsonRequest({method:"GET",url:"/1/logs?"+this._getSearchParams(i,""),hostType:"read",callback:o})},o.prototype.listIndexes=function(e,t){var r="";return void 0===e||"function"==typeof e?t=e:r="?page="+e,this._jsonRequest({method:"GET",url:"/1/indexes"+r,hostType:"read",callback:t})},o.prototype.initIndex=function(e){return new i(this,e)},o.prototype.initAnalytics=function(t){var r=e(27);return r(this.applicationID,this.apiKey,t)},o.prototype.listUserKeys=s(function(e){return this.listApiKeys(e)},a("client.listUserKeys()","client.listApiKeys()")),o.prototype.listApiKeys=function(e){return this._jsonRequest({method:"GET",url:"/1/keys",hostType:"read",callback:e})},o.prototype.getUserKeyACL=s(function(e,t){return this.getApiKey(e,t)},a("client.getUserKeyACL()","client.getApiKey()")),o.prototype.getApiKey=function(e,t){return this._jsonRequest({method:"GET",url:"/1/keys/"+e,hostType:"read",callback:t})},o.prototype.deleteUserKey=s(function(e,t){return this.deleteApiKey(e,t)},a("client.deleteUserKey()","client.deleteApiKey()")),o.prototype.deleteApiKey=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+e,hostType:"write",callback:t})},o.prototype.addUserKey=s(function(e,t,r){return this.addApiKey(e,t,r)},a("client.addUserKey()","client.addApiKey()")),o.prototype.addApiKey=function(t,r,o){var n=e(8),i="Usage: client.addApiKey(arrayOfAcls[, params, callback])";if(!n(t))throw new Error(i);1!==arguments.length&&"function"!=typeof r||(o=r,r=null);var s={acl:t};return r&&(s.validity=r.validity,s.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,s.maxHitsPerQuery=r.maxHitsPerQuery,s.indexes=r.indexes,s.description=r.description,r.queryParameters&&(s.queryParameters=this._getSearchParams(r.queryParameters,"")),s.referers=r.referers),this._jsonRequest({method:"POST",url:"/1/keys",body:s,hostType:"write",callback:o})},o.prototype.addUserKeyWithValidity=s(function(e,t,r){return this.addApiKey(e,t,r)},a("client.addUserKeyWithValidity()","client.addApiKey()")),o.prototype.updateUserKey=s(function(e,t,r,o){return this.updateApiKey(e,t,r,o)},a("client.updateUserKey()","client.updateApiKey()")),o.prototype.updateApiKey=function(t,r,o,n){var i=e(8),s="Usage: client.updateApiKey(key, arrayOfAcls[, params, callback])";if(!i(r))throw new Error(s);2!==arguments.length&&"function"!=typeof o||(n=o,o=null);var a={acl:r};return o&&(a.validity=o.validity,a.maxQueriesPerIPPerHour=o.maxQueriesPerIPPerHour,a.maxHitsPerQuery=o.maxHitsPerQuery,a.indexes=o.indexes,a.description=o.description,o.queryParameters&&(a.queryParameters=this._getSearchParams(o.queryParameters,"")),a.referers=o.referers),this._jsonRequest({method:"PUT",url:"/1/keys/"+t,body:a,hostType:"write",callback:n})},o.prototype.startQueriesBatch=s(function(){this._batch=[]},a("client.startQueriesBatch()","client.search()")),o.prototype.addQueryInBatch=s(function(e,t,r){this._batch.push({indexName:e,query:t,params:r})},a("client.addQueryInBatch()","client.search()")),o.prototype.sendQueriesBatch=s(function(e){return this.search(this._batch,e)},a("client.sendQueriesBatch()","client.search()")),o.prototype.batch=function(t,r){var o=e(8),n="Usage: client.batch(operations[, callback])";if(!o(t))throw new Error(n);return this._jsonRequest({method:"POST",url:"/1/indexes/*/batch",body:{requests:t},hostType:"write",callback:r})},o.prototype.assignUserID=function(e,t){if(!e.userID||!e.cluster)throw new l.AlgoliaSearchError("You have to provide both a userID and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping",hostType:"write",body:{cluster:e.cluster},callback:t,headers:{"x-algolia-user-id":e.userID}})},o.prototype.getTopUserID=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/top",hostType:"read",callback:e})},o.prototype.getUserID=function(e,t){if(!e.userID)throw new l.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/"+e.userID,hostType:"read",callback:t})},o.prototype.listClusters=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters",hostType:"read",callback:e})},o.prototype.listUserIDs=function(e,t){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping",body:e,hostType:"read",callback:t})},o.prototype.removeUserID=function(e,t){if(!e.userID)throw new l.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"DELETE",url:"/1/clusters/mapping",hostType:"write",callback:t,headers:{"x-algolia-user-id":e.userID}})},o.prototype.searchUserIDs=function(e,t){return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/search",body:e,hostType:"read",callback:t})},o.prototype.setPersonalizationStrategy=function(e,t){return this._jsonRequest({method:"POST",url:"/1/recommendation/personalization/strategy",body:e,hostType:"write",callback:t})},o.prototype.getPersonalizationStrategy=function(e){return this._jsonRequest({method:"GET",url:"/1/recommendation/personalization/strategy",hostType:"write",callback:e})},o.prototype.destroy=n,o.prototype.enableRateLimitForward=n,o.prototype.disableRateLimitForward=n,o.prototype.useSecuredAPIKey=n,o.prototype.disableSecuredAPIKey=n,o.prototype.generateSecuredApiKey=n},{17:17,18:18,26:26,27:27,28:28,29:29,30:30,7:7,8:8}],17:[function(e,t,r){(function(r){function o(t,r,o){var i=e(1)("algoliasearch"),s=e(26),a=e(8),u=e(32),l="Usage: algoliasearch(applicationID, apiKey, opts)";if(o._allowEmptyCredentials!==!0&&!t)throw new c.AlgoliaSearchError("Please provide an application ID. "+l);if(o._allowEmptyCredentials!==!0&&!r)throw new c.AlgoliaSearchError("Please provide an API key. "+l);this.applicationID=t,this.apiKey=r,this.hosts={read:[],write:[]},o=o||{},this._timeouts=o.timeouts||{connect:1e3,read:2e3,write:3e4
3
- },o.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=o.timeout);var p=o.protocol||"https:";if(/:$/.test(p)||(p+=":"),"http:"!==p&&"https:"!==p)throw new c.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+o.protocol+"`)");if(this._checkAppIdData(),o.hosts)a(o.hosts)?(this.hosts.read=s(o.hosts),this.hosts.write=s(o.hosts)):(this.hosts.read=s(o.hosts.read),this.hosts.write=s(o.hosts.write));else{var d=u(this._shuffleResult,function(e){return t+"-"+e+".algolianet.com"}),h=(o.dsn===!1?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+h].concat(d),this.hosts.write=[this.applicationID+".algolia.net"].concat(d)}this.hosts.read=u(this.hosts.read,n(p)),this.hosts.write=u(this.hosts.write,n(p)),this.extraHeaders={},this.cache=o._cache||{},this._ua=o._ua,this._useCache=!(void 0!==o._useCache&&!o._cache)||o._useCache,this._useRequestCache=this._useCache&&o._useRequestCache,this._useFallback=void 0===o.useFallback||o.useFallback,this._setTimeout=o._setTimeout,i("init done, %j",this)}function n(e){return function(t){return e+"//"+t.toLowerCase()}}function i(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var r=JSON.stringify(e);return Array.prototype.toJSON=t,r}function s(e){for(var t,r,o=e.length;0!==o;)r=Math.floor(Math.random()*o),o-=1,t=e[o],e[o]=e[r],e[r]=t;return e}function a(e){var t={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o;o="x-algolia-api-key"===r||"x-algolia-application-id"===r?"**hidden for security purposes**":e[r],t[r]=o}return t}t.exports=o;var c=e(30),u=e(31),l=e(20),p=e(36),d=500,h=r.env.RESET_APP_DATA_TIMER&&parseInt(r.env.RESET_APP_DATA_TIMER,10)||12e4;o.prototype.initIndex=function(e){return new l(this,e)},o.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},o.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},o.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},o.prototype.addAlgoliaAgent=function(e){this._ua.indexOf(";"+e)===-1&&(this._ua+=";"+e)},o.prototype._jsonRequest=function(t){function r(e,n){function u(e){var t=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;h("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,t,e.headers);var r=2===Math.floor(t/100),o=new Date;if(w.push({currentHost:A,headers:a(p),content:s||null,contentLength:void 0!==s?s.length:null,method:n.method,timeouts:n.timeouts,url:n.url,startTime:x,endTime:o,duration:o-x,statusCode:t}),r)return m._useCache&&!m._useRequestCache&&y&&(y[l]=e.responseText),{responseText:e.responseText,body:e.body};var i=4!==Math.floor(t/100);if(i)return v+=1,_();h("unrecoverable error");var u=new c.AlgoliaSearchError(e.body&&e.body.message,{debugData:w,statusCode:t});return m._promise.reject(u)}function d(e){h("error: %s, stack: %s",e.message,e.stack);var r=new Date;return w.push({currentHost:A,headers:a(p),content:s||null,contentLength:void 0!==s?s.length:null,method:n.method,timeouts:n.timeouts,url:n.url,startTime:x,endTime:r,duration:r-x}),e instanceof c.AlgoliaSearchError||(e=new c.Unknown(e&&e.message,e)),v+=1,e instanceof c.Unknown||e instanceof c.UnparsableJSON||v>=m.hosts[t.hostType].length&&(g||!b)?(e.debugData=w,m._promise.reject(e)):e instanceof c.RequestTimeout?T():_()}function _(){return h("retrying request"),m._incrementHostIndex(t.hostType),r(e,n)}function T(){return h("retrying request with higher timeout"),m._incrementHostIndex(t.hostType),m._incrementTimeoutMultipler(),n.timeouts=m._getTimeoutsForRequest(t.hostType),r(e,n)}m._checkAppIdData();var x=new Date;if(m._useCache&&!m._useRequestCache&&(l=t.url),m._useCache&&!m._useRequestCache&&s&&(l+="_body_"+n.body),o(!m._useRequestCache,y,l)){h("serving response from cache");var R=y[l];return m._promise.resolve({body:JSON.parse(R),responseText:R})}if(v>=m.hosts[t.hostType].length)return!b||g?(h("could not get any response"),m._promise.reject(new c.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+m.applicationID,{debugData:w}))):(h("switching to fallback"),v=0,n.method=t.fallback.method,n.url=t.fallback.url,n.jsonBody=t.fallback.body,n.jsonBody&&(n.body=i(n.jsonBody)),p=m._computeRequestHeaders({additionalUA:f,headers:t.headers}),n.timeouts=m._getTimeoutsForRequest(t.hostType),m._setHostIndexByType(0,t.hostType),g=!0,r(m._request.fallback,n));var A=m._getHostByType(t.hostType),j=A+n.url,S={body:n.body,jsonBody:n.jsonBody,method:n.method,headers:p,timeouts:n.timeouts,debug:h,forceAuthHeaders:n.forceAuthHeaders};return h("method: %s, url: %s, headers: %j, timeouts: %d",S.method,j,S.headers,S.timeouts),e===m._request.fallback&&h("using fallback"),e.call(m,j,S).then(u,d)}function o(e,t,r){return m._useCache&&e&&t&&void 0!==t[r]}function n(e,r){return o(m._useRequestCache,y,l)&&e["catch"](function(){delete y[l]}),"function"!=typeof t.callback?e.then(r):void e.then(function(e){u(function(){t.callback(null,r(e))},m._setTimeout||setTimeout)},function(e){u(function(){t.callback(e)},m._setTimeout||setTimeout)})}this._checkAppIdData();var s,l,p,h=e(1)("algoliasearch:"+t.url),f=t.additionalUA||"",y=t.cache,m=this,v=0,g=!1,b=m._useFallback&&m._request.fallback&&t.fallback;this.apiKey.length>d&&void 0!==t.body&&(void 0!==t.body.params||void 0!==t.body.requests)?(t.body.apiKey=this.apiKey,p=this._computeRequestHeaders({additionalUA:f,withApiKey:!1,headers:t.headers})):p=this._computeRequestHeaders({additionalUA:f,headers:t.headers}),void 0!==t.body&&(s=i(t.body)),h("request start");var w=[];if(m._useCache&&m._useRequestCache&&(l=t.url),m._useCache&&m._useRequestCache&&s&&(l+="_body_"+s),o(m._useRequestCache,y,l)){h("serving request from cache");var _=y[l],T="function"!=typeof _.then?m._promise.resolve({responseText:_}):_;return n(T,function(e){return JSON.parse(e.responseText)})}var x=r(m._request,{url:t.url,method:t.method,body:s,jsonBody:t.body,timeouts:m._getTimeoutsForRequest(t.hostType),forceAuthHeaders:t.forceAuthHeaders});return m._useCache&&m._useRequestCache&&y&&(y[l]=x),n(x,function(e){return e.body})},o.prototype._getSearchParams=function(e,t){if(void 0===e||null===e)return t;for(var r in e)null!==r&&void 0!==e[r]&&e.hasOwnProperty(r)&&(t+=""===t?"":"&",t+=r+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[r])?i(e[r]):e[r]));return t},o.prototype._computeRequestHeaders=function(t){var r=e(5),o=t.additionalUA?this._ua+";"+t.additionalUA:this._ua,n={"x-algolia-agent":o,"x-algolia-application-id":this.applicationID};return t.withApiKey!==!1&&(n["x-algolia-api-key"]=this.apiKey),this.userToken&&(n["x-algolia-usertoken"]=this.userToken),this.securityTags&&(n["x-algolia-tagfilters"]=this.securityTags),r(this.extraHeaders,function(e,t){n[t]=e}),t.headers&&r(t.headers,function(e,t){n[t]=e}),n},o.prototype.search=function(t,r,o){var n=e(8),i=e(32),s="Usage: client.search(arrayOfQueries[, callback])";if(!n(t))throw new Error(s);"function"==typeof r?(o=r,r={}):void 0===r&&(r={});var a=this,c={requests:i(t,function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:a._getSearchParams(e.params,t)}})},u=i(c.requests,function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)}).join("&"),l="/1/indexes/*/queries";return void 0!==r.strategy&&(c.strategy=r.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:l,body:c,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:u}},callback:o})},o.prototype.searchForFacetValues=function(t){var r=e(8),o=e(32),n="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!r(t))throw new Error(n);var i=this;return i._promise.all(o(t,function(t){if(!t||void 0===t.indexName||void 0===t.params.facetName||void 0===t.params.facetQuery)throw new Error(n);var r=e(26),o=e(34),s=t.indexName,a=t.params,c=a.facetName,u=o(r(a),function(e){return"facetName"===e}),l=i._getSearchParams(u,"");return i._jsonRequest({cache:i.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(s)+"/facets/"+encodeURIComponent(c)+"/query",hostType:"read",body:{params:l}})}))},o.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],r=0;r<e.length;++r)if("[object Array]"===Object.prototype.toString.call(e[r])){for(var o=[],n=0;n<e[r].length;++n)o.push(e[r][n]);t.push("("+o.join(",")+")")}else t.push(e[r]);e=t.join(",")}this.securityTags=e},o.prototype.setUserToken=function(e){this.userToken=e},o.prototype.clearCache=function(){this.cache={}},o.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},o.prototype.setTimeouts=function(e){this._timeouts=e},o.prototype.getTimeouts=function(){return this._timeouts},o.prototype._getAppIdData=function(){var e=p.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},o.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),p.set(this.applicationID,e)},o.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>h?this._resetInitialAppIdData(e):e},o.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||s([1,2,3]),this._setAppIdData(t)},o.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},o.prototype._partialAppIdDataUpdate=function(t){var r=e(5),o=this._getAppIdData();return r(t,function(e,t){o[t]=e}),this._setAppIdData(o)},o.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},o.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},o.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},o.prototype._setHostIndexByType=function(t,r){var o=e(26),n=o(this._hostIndexes);return n[r]=t,this._partialAppIdDataUpdate({hostIndexes:n}),t},o.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},o.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},o.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}}).call(this,e(12))},{1:1,12:12,20:20,26:26,30:30,31:31,32:32,34:34,36:36,5:5,8:8}],18:[function(e,t,r){function o(){s.apply(this,arguments)}function n(e,t,r){function o(r,n){var i={page:r||0,hitsPerPage:t||100},s=n||[];return e(i).then(function(e){var t=e.hits,r=e.nbHits,n=t.map(function(e){return delete e._highlightResult,e}),a=s.concat(n);return a.length<r?o(i.page+1,a):a})}return o().then(function(e){return"function"==typeof r?void r(e):e})}var i=e(7),s=e(20),a=e(28),c=e(29),u=e(31),l=e(30),p=a(function(){},c("forwardToSlaves","forwardToReplicas"));t.exports=o,i(o,s),o.prototype.addObject=function(e,t,r){var o=this;return 1!==arguments.length&&"function"!=typeof t||(r=t,t=void 0),this.as._jsonRequest({method:void 0!==t?"PUT":"POST",url:"/1/indexes/"+encodeURIComponent(o.indexName)+(void 0!==t?"/"+encodeURIComponent(t):""),body:e,hostType:"write",callback:r})},o.prototype.addObjects=function(t,r){var o=e(8),n="Usage: index.addObjects(arrayOfObjects[, callback])";if(!o(t))throw new Error(n);for(var i=this,s={requests:[]},a=0;a<t.length;++a){var c={action:"addObject",body:t[a]};s.requests.push(c)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/batch",body:s,hostType:"write",callback:r})},o.prototype.partialUpdateObject=function(e,t,r){1!==arguments.length&&"function"!=typeof t||(r=t,t=void 0);var o=this,n="/1/indexes/"+encodeURIComponent(o.indexName)+"/"+encodeURIComponent(e.objectID)+"/partial";return t===!1&&(n+="?createIfNotExists=false"),this.as._jsonRequest({method:"POST",url:n,body:e,hostType:"write",callback:r})},o.prototype.partialUpdateObjects=function(t,r,o){1!==arguments.length&&"function"!=typeof r||(o=r,r=!0);var n=e(8),i="Usage: index.partialUpdateObjects(arrayOfObjects[, callback])";if(!n(t))throw new Error(i);for(var s=this,a={requests:[]},c=0;c<t.length;++c){var u={action:r===!0?"partialUpdateObject":"partialUpdateObjectNoCreate",objectID:t[c].objectID,body:t[c]};a.requests.push(u)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/batch",body:a,hostType:"write",callback:o})},o.prototype.saveObject=function(e,t){var r=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e.objectID),body:e,hostType:"write",callback:t})},o.prototype.saveObjects=function(t,r){var o=e(8),n="Usage: index.saveObjects(arrayOfObjects[, callback])";if(!o(t))throw new Error(n);for(var i=this,s={requests:[]},a=0;a<t.length;++a){var c={action:"updateObject",objectID:t[a].objectID,body:t[a]};s.requests.push(c)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/batch",body:s,hostType:"write",callback:r})},o.prototype.deleteObject=function(e,t){if("function"==typeof e||"string"!=typeof e&&"number"!=typeof e){var r=new l.AlgoliaSearchError(e&&"function"!=typeof e?"ObjectID must be a string":"Cannot delete an object without an objectID");return t=e,"function"==typeof t?t(r):this.as._promise.reject(r)}var o=this;return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(o.indexName)+"/"+encodeURIComponent(e),hostType:"write",callback:t})},o.prototype.deleteObjects=function(t,r){var o=e(8),n=e(32),i="Usage: index.deleteObjects(arrayOfObjectIDs[, callback])";if(!o(t))throw new Error(i);var s=this,a={requests:n(t,function(e){return{action:"deleteObject",objectID:e,body:{objectID:e}}})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/batch",body:a,hostType:"write",callback:r})},o.prototype.deleteByQuery=a(function(t,r,o){function n(e){if(0===e.nbHits)return e;var t=p(e.hits,function(e){return e.objectID});return d.deleteObjects(t).then(i).then(s)}function i(e){return d.waitTask(e.taskID)}function s(){return d.deleteByQuery(t,r)}function a(){u(function(){o(null)},h._setTimeout||setTimeout)}function c(e){u(function(){o(e)},h._setTimeout||setTimeout)}var l=e(26),p=e(32),d=this,h=d.as;1===arguments.length||"function"==typeof r?(o=r,r={}):r=l(r),r.attributesToRetrieve="objectID",r.hitsPerPage=1e3,r.distinct=!1,this.clearCache();var f=this.search(t,r).then(n);return o?void f.then(a,c):f},c("index.deleteByQuery()","index.deleteBy()")),o.prototype.deleteBy=function(e,t){var r=this;return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/deleteByQuery",body:{params:r.as._getSearchParams(e,"")},hostType:"write",callback:t})},o.prototype.browseAll=function(t,r){function o(e){if(!a._stopped){var t;t=void 0!==e?{cursor:e}:{params:l},c._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(u.indexName)+"/browse",hostType:"read",body:t,callback:n})}}function n(e,t){if(!a._stopped)return e?void a._error(e):(a._result(t),void 0===t.cursor?void a._end():void o(t.cursor))}"object"==typeof t&&(r=t,t=void 0);var i=e(33),s=e(19),a=new s,c=this.as,u=this,l=c._getSearchParams(i({},r||{},{query:t}),"");return o(),a},o.prototype.ttAdapter=a(function(e){var t=this;return function(r,o,n){var i;i="function"==typeof n?n:o,t.search(r,e,function(e,t){return e?void i(e):void i(t.hits)})}},"ttAdapter is not necessary anymore and will be removed in the next version,\nhave a look at autocomplete.js (https://github.com/algolia/autocomplete.js)"),o.prototype.waitTask=function(e,t){function r(){return l._jsonRequest({method:"GET",hostType:"read",url:"/1/indexes/"+encodeURIComponent(c.indexName)+"/task/"+e}).then(function(e){a++;var t=i*a*a;return t>s&&(t=s),"published"!==e.status?l._promise.delay(t).then(r):e})}function o(e){u(function(){t(null,e)},l._setTimeout||setTimeout)}function n(e){u(function(){t(e)},l._setTimeout||setTimeout)}var i=100,s=5e3,a=0,c=this,l=c.as,p=r();return t?void p.then(o,n):p},o.prototype.clearIndex=function(e){var t=this;return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/clear",hostType:"write",callback:e})},o.prototype.getSettings=function(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),e=e||{};var r=encodeURIComponent(this.indexName);return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+r+"/settings?getVersion=2"+(e.advanced?"&advanced="+e.advanced:""),hostType:"read",callback:t})},o.prototype.searchSynonyms=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/search",body:e,hostType:"read",callback:t})},o.prototype.exportSynonyms=function(e,t){return n(this.searchSynonyms.bind(this),e,t)},o.prototype.saveSynonym=function(e,t,r){"function"==typeof t?(r=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&p();var o=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+o,body:e,hostType:"write",callback:r})},o.prototype.getSynonym=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e),hostType:"read",callback:t})},o.prototype.deleteSynonym=function(e,t,r){"function"==typeof t?(r=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&p();var o=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e)+"?forwardToReplicas="+o,hostType:"write",callback:r})},o.prototype.clearSynonyms=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),void 0!==e.forwardToSlaves&&p();var r=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/clear?forwardToReplicas="+r,hostType:"write",callback:t})},o.prototype.batchSynonyms=function(e,t,r){"function"==typeof t?(r=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&p();var o=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/batch?forwardToReplicas="+o+"&replaceExistingSynonyms="+(t.replaceExistingSynonyms?"true":"false"),hostType:"write",body:e,callback:r})},o.prototype.searchRules=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/search",body:e,hostType:"read",callback:t})},o.prototype.exportRules=function(e,t){return n(this.searchRules.bind(this),e,t)},o.prototype.saveRule=function(e,t,r){if("function"==typeof t?(r=t,t={}):void 0===t&&(t={}),!e.objectID)throw new l.AlgoliaSearchError("Missing or empty objectID field for rule");var o=t.forwardToReplicas===!0?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+o,body:e,hostType:"write",callback:r})},o.prototype.getRule=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e),hostType:"read",callback:t})},o.prototype.deleteRule=function(e,t,r){"function"==typeof t?(r=t,t={}):void 0===t&&(t={});var o=t.forwardToReplicas===!0?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e)+"?forwardToReplicas="+o,hostType:"write",callback:r})},o.prototype.clearRules=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={});var r=e.forwardToReplicas===!0?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/clear?forwardToReplicas="+r,hostType:"write",callback:t})},o.prototype.batchRules=function(e,t,r){"function"==typeof t?(r=t,t={}):void 0===t&&(t={});var o=t.forwardToReplicas===!0?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/batch?forwardToReplicas="+o+"&clearExistingRules="+(t.clearExistingRules===!0?"true":"false"),hostType:"write",body:e,callback:r})},o.prototype.setSettings=function(e,t,r){1!==arguments.length&&"function"!=typeof t||(r=t,t={}),void 0!==t.forwardToSlaves&&p();var o=t.forwardToSlaves||t.forwardToReplicas?"true":"false",n=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/settings?forwardToReplicas="+o,hostType:"write",body:e,callback:r})},o.prototype.listUserKeys=a(function(e){return this.listApiKeys(e)},c("index.listUserKeys()","client.listApiKeys()")),o.prototype.listApiKeys=a(function(e){var t=this;return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/keys",hostType:"read",callback:e})},c("index.listApiKeys()","client.listApiKeys()")),o.prototype.getUserKeyACL=a(function(e,t){return this.getApiKey(e,t)},c("index.getUserKeyACL()","client.getApiKey()")),o.prototype.getApiKey=a(function(e,t){var r=this;return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/keys/"+e,hostType:"read",callback:t})},c("index.getApiKey()","client.getApiKey()")),o.prototype.deleteUserKey=a(function(e,t){return this.deleteApiKey(e,t)},c("index.deleteUserKey()","client.deleteApiKey()")),o.prototype.deleteApiKey=a(function(e,t){var r=this;return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/keys/"+e,hostType:"write",callback:t})},c("index.deleteApiKey()","client.deleteApiKey()")),o.prototype.addUserKey=a(function(e,t,r){return this.addApiKey(e,t,r)},c("index.addUserKey()","client.addApiKey()")),o.prototype.addApiKey=a(function(t,r,o){var n=e(8),i="Usage: index.addApiKey(arrayOfAcls[, params, callback])";if(!n(t))throw new Error(i);1!==arguments.length&&"function"!=typeof r||(o=r,r=null);var s={acl:t};return r&&(s.validity=r.validity,s.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,s.maxHitsPerQuery=r.maxHitsPerQuery,s.description=r.description,r.queryParameters&&(s.queryParameters=this.as._getSearchParams(r.queryParameters,"")),s.referers=r.referers),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:s,hostType:"write",callback:o})},c("index.addApiKey()","client.addApiKey()")),o.prototype.addUserKeyWithValidity=a(function(e,t,r){return this.addApiKey(e,t,r)},c("index.addUserKeyWithValidity()","client.addApiKey()")),o.prototype.updateUserKey=a(function(e,t,r,o){return this.updateApiKey(e,t,r,o)},c("index.updateUserKey()","client.updateApiKey()")),o.prototype.updateApiKey=a(function(t,r,o,n){var i=e(8),s="Usage: index.updateApiKey(key, arrayOfAcls[, params, callback])";if(!i(r))throw new Error(s);2!==arguments.length&&"function"!=typeof o||(n=o,o=null);var a={acl:r};return o&&(a.validity=o.validity,a.maxQueriesPerIPPerHour=o.maxQueriesPerIPPerHour,a.maxHitsPerQuery=o.maxHitsPerQuery,a.description=o.description,o.queryParameters&&(a.queryParameters=this.as._getSearchParams(o.queryParameters,"")),a.referers=o.referers),this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+t,body:a,hostType:"write",callback:n})},c("index.updateApiKey()","client.updateApiKey()"))},{19:19,20:20,26:26,28:28,29:29,30:30,31:31,32:32,33:33,7:7,8:8}],19:[function(e,t,r){"use strict";function o(){}t.exports=o;var n=e(7),i=e(4).EventEmitter;n(o,i),o.prototype.stop=function(){this._stopped=!0,this._clean()},o.prototype._end=function(){this.emit("end"),this._clean()},o.prototype._error=function(e){this.emit("error",e),this._clean()},o.prototype._result=function(e){this.emit("result",e)},o.prototype._clean=function(){this.removeAllListeners("stop"),this.removeAllListeners("end"),this.removeAllListeners("error"),this.removeAllListeners("result")}},{4:4,7:7}],20:[function(e,t,r){function o(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}var n=e(25),i=e(28),s=e(29);t.exports=o,o.prototype.clearCache=function(){this.cache={}},o.prototype.search=n("query"),o.prototype.similarSearch=i(n("similarQuery"),s("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),o.prototype.browse=function(t,r,o){var n,i,s=e(33),a=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(n=0,o=arguments[0],t=void 0):"number"==typeof arguments[0]?(n=arguments[0],"number"==typeof arguments[1]?i=arguments[1]:"function"==typeof arguments[1]&&(o=arguments[1],i=void 0),t=void 0,r=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(o=arguments[1]),r=arguments[0],t=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(o=arguments[1],r=void 0),r=s({},r||{},{page:n,hitsPerPage:i,query:t});var c=this.as._getSearchParams(r,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/browse",body:{params:c},hostType:"read",callback:o})},o.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},o.prototype.searchForFacetValues=function(t,r){var o=e(26),n=e(34),i="Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])";if(void 0===t.facetName||void 0===t.facetQuery)throw new Error(i);var s=t.facetName,a=n(o(t),function(e){return"facetName"===e}),c=this.as._getSearchParams(a,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(s)+"/query",hostType:"read",body:{params:c},callback:r})},o.prototype.searchFacet=i(function(e,t){return this.searchForFacetValues(e,t)},s("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),o.prototype._search=function(e,t,r,o){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:r,additionalUA:o})},o.prototype.getObject=function(e,t,r){var o=this;1!==arguments.length&&"function"!=typeof t||(r=t,t=void 0);var n="";if(void 0!==t){n="?attributes=";for(var i=0;i<t.length;++i)0!==i&&(n+=","),n+=t[i]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(o.indexName)+"/"+encodeURIComponent(e)+n,hostType:"read",callback:r})},o.prototype.getObjects=function(t,r,o){var n=e(8),i=e(32),s="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!n(t))throw new Error(s);var a=this;1!==arguments.length&&"function"!=typeof r||(o=r,r=void 0);var c={requests:i(t,function(e){var t={indexName:a.indexName,objectID:e};return r&&(t.attributesToRetrieve=r.join(",")),t})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:c,callback:o})},o.prototype.as=null,o.prototype.indexName=null,o.prototype.typeAheadArgs=null,o.prototype.typeAheadValueOption=null},{25:25,26:26,28:28,29:29,32:32,33:33,34:34,8:8}],21:[function(e,t,r){"use strict";var o=e(16),n=e(22);t.exports=n(o)},{16:16,22:22}],22:[function(e,t,r){(function(r){"use strict";var o=e(6),n=o.Promise||e(3).Promise;t.exports=function(t,i){function s(t,r,o){var n=e(26);return o=n(o||{}),o._ua=o._ua||s.ua,new a(t,r,o)}function a(){t.apply(this,arguments)}var c=e(7),u=e(30),l=e(23),p=e(24),d=e(35);i=i||"","debug"===r.env.NODE_ENV&&e(1).enable("algoliasearch*"),s.version=e(37),s.ua="Algolia for vanilla JavaScript "+i+s.version,s.initPlaces=d(s),o.__algolia={debug:e(1),algoliasearch:s};var h={hasXMLHttpRequest:"XMLHttpRequest"in o,hasXDomainRequest:"XDomainRequest"in o};return h.hasXMLHttpRequest&&(h.cors="withCredentials"in new XMLHttpRequest),c(a,t),a.prototype._request=function(e,t){return new n(function(r,o){function n(){if(!f){clearTimeout(d);var e;try{e={body:JSON.parse(m.responseText),responseText:m.responseText,statusCode:m.status,headers:m.getAllResponseHeaders&&m.getAllResponseHeaders()||{}}}catch(t){e=new u.UnparsableJSON({more:m.responseText})}e instanceof u.UnparsableJSON?o(e):r(e)}}function i(e){f||(clearTimeout(d),o(new u.Network({more:e})))}function s(){f=!0,m.abort(),o(new u.RequestTimeout)}function a(){v=!0,clearTimeout(d),d=setTimeout(s,t.timeouts.complete)}function c(){v||a()}function p(){!v&&m.readyState>1&&a()}if(!h.cors&&!h.hasXDomainRequest)return void o(new u.Network("CORS not supported"));e=l(e,t.headers);var d,f,y=t.body,m=h.cors?new XMLHttpRequest:new XDomainRequest,v=!1;d=setTimeout(s,t.timeouts.connect),m.onprogress=c,"onreadystatechange"in m&&(m.onreadystatechange=p),m.onload=n,m.onerror=i,m instanceof XMLHttpRequest?(m.open(t.method,e,!0),t.forceAuthHeaders&&(m.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),m.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):m.open(t.method,e),h.cors&&(y&&("POST"===t.method?m.setRequestHeader("content-type","application/x-www-form-urlencoded"):m.setRequestHeader("content-type","application/json")),m.setRequestHeader("accept","application/json")),y?m.send(y):m.send()})},a.prototype._request.fallback=function(e,t){return e=l(e,t.headers),new n(function(r,o){p(e,t,function(e,t){return e?void o(e):void r(t)})})},a.prototype._promise={reject:function(e){return n.reject(e)},resolve:function(e){return n.resolve(e)},delay:function(e){return new n(function(t){setTimeout(t,e)})},all:function(e){return n.all(e)}},s}}).call(this,e(12))},{1:1,12:12,23:23,24:24,26:26,3:3,30:30,35:35,37:37,6:6,7:7}],23:[function(e,t,r){"use strict";function o(e,t){return e+=/\?/.test(e)?"&":"?",e+n(t)}t.exports=o;var n=e(14)},{14:14}],24:[function(e,t,r){"use strict";function o(e,t,r){function o(){t.debug("JSONP: success"),m||d||(m=!0,p||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),a(),r(new n.JSONPScriptFail)))}function s(){"loaded"!==this.readyState&&"complete"!==this.readyState||o()}function a(){clearTimeout(v),f.onload=null,f.onreadystatechange=null,f.onerror=null,h.removeChild(f)}function c(){try{delete window[y],delete window[y+"_loaded"]}catch(e){window[y]=window[y+"_loaded"]=void 0}}function u(){t.debug("JSONP: Script timeout"),d=!0,a(),r(new n.RequestTimeout)}function l(){t.debug("JSONP: Script error"),m||d||(a(),r(new n.JSONPScriptError))}if("GET"!==t.method)return void r(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));t.debug("JSONP: start");var p=!1,d=!1;i+=1;var h=document.getElementsByTagName("head")[0],f=document.createElement("script"),y="algoliaJSONP_"+i,m=!1;window[y]=function(e){return c(),d?void t.debug("JSONP: Late answer, ignoring"):(p=!0,a(),void r(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+y,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var v=setTimeout(u,t.timeouts.complete);f.onreadystatechange=s,f.onload=o,f.onerror=l,f.async=!0,f.defer=!0,f.src=e,h.appendChild(f)}t.exports=o;var n=e(30),i=0},{30:30}],25:[function(e,t,r){function o(e,t){return function(r,o,i){if("function"==typeof r&&"object"==typeof o||"object"==typeof i)throw new n.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");
4
- 0===arguments.length||"function"==typeof r?(i=r,r=""):1!==arguments.length&&"function"!=typeof o||(i=o,o=void 0),"object"==typeof r&&null!==r?(o=r,r=void 0):void 0!==r&&null!==r||(r="");var s="";void 0!==r&&(s+=e+"="+encodeURIComponent(r));var a;return void 0!==o&&(o.additionalUA&&(a=o.additionalUA,delete o.additionalUA),s=this.as._getSearchParams(o,s)),this._search(s,t,i,a)}}t.exports=o;var n=e(30)},{30:30}],26:[function(e,t,r){t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],27:[function(e,t,r){function o(e,t,r){var o={};return r=r||{},r.hosts=r.hosts||["analytics.algolia.com","analytics.algolia.com","analytics.algolia.com","analytics.algolia.com"],r.protocol=r.protocol||"https:",o.as=n(e,t,r),o.getABTests=function(e,t){var r=r||{},o=r.offset||0,n=r.limit||10;return this.as._jsonRequest({method:"GET",url:"/2/abtests?offset="+encodeURIComponent(o)+"&limit="+encodeURIComponent(n),hostType:"read",forceAuthHeaders:!0,callback:t})},o.getABTest=function(e,t){return this.as._jsonRequest({method:"GET",url:"/2/abtests/"+encodeURIComponent(e),hostType:"read",forceAuthHeaders:!0,callback:t})},o.addABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests",body:e,hostType:"read",forceAuthHeaders:!0,callback:t})},o.stopABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests/"+encodeURIComponent(e)+"/stop",hostType:"read",forceAuthHeaders:!0,callback:t})},o.deleteABTest=function(e,t){return this.as._jsonRequest({method:"DELETE",url:"/2/abtests/"+encodeURIComponent(e),hostType:"write",forceAuthHeaders:!0,callback:t})},o.waitTask=function(e,t,r){return this.as.initIndex(e).waitTask(t,r)},o}t.exports=o;var n=e(21)},{21:21}],28:[function(e,t,r){t.exports=function(e,t){function r(){return o||(console.warn(t),o=!0),e.apply(this,arguments)}var o=!1;return r}},{}],29:[function(e,t,r){t.exports=function(e,t){var r=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+r}},{}],30:[function(e,t,r){"use strict";function o(t,r){var o=e(5),n=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):n.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=t||"Unknown error",r&&o(r,function(e,t){n[t]=e})}function n(e,t){function r(){var r=Array.prototype.slice.call(arguments,0);"string"!=typeof r[0]&&r.unshift(t),o.apply(this,r),this.name="AlgoliaSearch"+e+"Error"}return i(r,o),r}var i=e(7);i(o,Error),t.exports={AlgoliaSearchError:o,UnparsableJSON:n("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:n("RequestTimeout","Request timedout before getting a response"),Network:n("Network","Network issue, see err.more for details"),JSONPScriptFail:n("JSONPScriptFail","<script> was loaded but did not call our provided callback"),JSONPScriptError:n("JSONPScriptError","<script> unable to load due to an `error` event on it"),Unknown:n("Unknown","Unknown error occured")}},{5:5,7:7}],31:[function(e,t,r){t.exports=function(e,t){t(e,0)}},{}],32:[function(e,t,r){var o=e(5);t.exports=function(e,t){var r=[];return o(e,function(o,n){r.push(t(o,n,e))}),r}},{5:5}],33:[function(e,t,r){var o=e(5);t.exports=function n(e){var t=Array.prototype.slice.call(arguments);return o(t,function(t){for(var r in t)t.hasOwnProperty(r)&&("object"==typeof e[r]&&"object"==typeof t[r]?e[r]=n({},e[r],t[r]):void 0!==t[r]&&(e[r]=t[r]))}),e}},{5:5}],34:[function(e,t,r){t.exports=function(t,r){var o=e(10),n=e(5),i={};return n(o(t),function(e){r(e)!==!0&&(i[e]=t[e])}),i}},{10:10,5:5}],35:[function(e,t,r){function o(t){return function(r,o,s){var a=e(26);s=s&&a(s)||{},s.hosts=s.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof r&&void 0!==r||(r="",o="",s._allowEmptyCredentials=!0);var c=t(r,o,s),u=c.initIndex("places");return u.search=i("query","/1/places/query"),u.reverse=function(e,t){var r=n.encode(e);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+r,hostType:"read",callback:t})},u.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},u}}t.exports=o;var n=e(15),i=e(25)},{15:15,25:25,26:26}],36:[function(e,t,r){(function(r){function o(e,t){return c("localStorage failed with",t),s(),a=l,a.get(e)}function n(e,t){return 1===arguments.length?a.get(e):a.set(e,t)}function i(){try{return"localStorage"in r&&null!==r.localStorage&&(r.localStorage[u]||r.localStorage.setItem(u,JSON.stringify({})),!0)}catch(e){return!1}}function s(){try{r.localStorage.removeItem(u)}catch(e){}}var a,c=e(1)("algoliasearch:src/hostIndexState.js"),u="algoliasearch-client-js",l={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},p={set:function(e,t){l.set(e,t);try{var n=JSON.parse(r.localStorage[u]);return n[e]=t,r.localStorage[u]=JSON.stringify(n),n[e]}catch(i){return o(e,i)}},get:function(e){try{return JSON.parse(r.localStorage[u])[e]||null}catch(t){return o(e,t)}}};a=i()?p:l,t.exports={get:n,set:n,supportsLocalStorage:i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],37:[function(e,t,r){"use strict";t.exports="3.32.0"},{}]},{},[21])(21)});
 
 
 
 
js/algolia/autocomplete.jquery.min.js DELETED
@@ -1,7 +0,0 @@
1
- /*!
2
- * autocomplete.js 0.36.0
3
- * https://github.com/algolia/autocomplete.js
4
- * Copyright 2019 Algolia, Inc. and other contributors; Licensed MIT
5
- */
6
- !function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){"use strict";a.exports=c(1)},function(a,b,c){"use strict";var d=c(2),e=c(3);d.element=e;var f=c(4);f.isArray=e.isArray,f.isFunction=e.isFunction,f.isObject=e.isPlainObject,f.bind=e.proxy,f.each=function(a,b){function c(a,c){return b(c,a)}e.each(a,c)},f.map=e.map,f.mixin=e.extend,f.Event=e.Event;var g,h,i,j=c(5),k=c(6);g=e.fn.autocomplete,h="aaAutocomplete",i={initialize:function(a,b){function c(){var c,d=e(this),f=new k({el:d});c=new j({input:d,eventBus:f,dropdownMenuContainer:a.dropdownMenuContainer,hint:void 0===a.hint||!!a.hint,minLength:a.minLength,autoselect:a.autoselect,autoselectOnBlur:a.autoselectOnBlur,tabAutocomplete:a.tabAutocomplete,openOnFocus:a.openOnFocus,templates:a.templates,debug:a.debug,clearOnSelected:a.clearOnSelected,cssClasses:a.cssClasses,datasets:b,keyboardShortcuts:a.keyboardShortcuts,appendTo:a.appendTo,autoWidth:a.autoWidth}),d.data(h,c)}return b=f.isArray(b)?b:[].slice.call(arguments,1),a=a||{},this.each(c)},open:function(){function a(){var a,b=e(this);(a=b.data(h))&&a.open()}return this.each(a)},close:function(){function a(){var a,b=e(this);(a=b.data(h))&&a.close()}return this.each(a)},val:function(a){function b(){var b,c=e(this);(b=c.data(h))&&b.setVal(a)}return arguments.length?this.each(b):function(a){var b,c;return(b=a.data(h))&&(c=b.getVal()),c}(this.first())},destroy:function(){function a(){var a,b=e(this);(a=b.data(h))&&(a.destroy(),b.removeData(h))}return this.each(a)}},e.fn.autocomplete=function(a){var b;return i[a]&&"initialize"!==a?(b=this.filter(function(){return!!e(this).data(h)}),i[a].apply(b,[].slice.call(arguments,1))):i.initialize.apply(this,arguments)},e.fn.autocomplete.noConflict=function(){return e.fn.autocomplete=g,this},e.fn.autocomplete.sources=j.sources,e.fn.autocomplete.escapeHighlightedString=f.escapeHighlightedString,a.exports=e.fn.autocomplete},function(a,b){"use strict";a.exports={element:null}},function(a,b){a.exports=jQuery},function(a,b,c){"use strict";function d(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var e=c(2);a.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(a){if(void 0===a&&(a=navigator.userAgent),/(msie|trident)/i.test(a)){var b=a.match(/(msie |rv:)(\d+(.\d+)?)/i);if(b)return b[2]}return!1},escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(a){return"number"==typeof a},toStr:function(a){return void 0===a||null===a?"":a+""},cloneDeep:function(a){var b=this.mixin({},a),c=this;return this.each(b,function(a,d){a&&(c.isArray(a)?b[d]=[].concat(a):c.isObject(a)&&(b[d]=c.cloneDeep(a)))}),b},error:function(a){throw new Error(a)},every:function(a,b){var c=!0;return a?(this.each(a,function(d,e){c&&(c=b.call(null,d,e,a)&&c)}),!!c):c},any:function(a,b){var c=!1;return a?(this.each(a,function(d,e){if(b.call(null,d,e,a))return c=!0,!1}),c):c},getUniqueId:function(){var a=0;return function(){return a++}}(),templatify:function(a){if(this.isFunction(a))return a;var b=e.element(a);return"SCRIPT"===b.prop("tagName")?function(){return b.text()}:function(){return String(a)}},defer:function(a){setTimeout(a,0)},noop:function(){},formatPrefix:function(a,b){return b?"":a+"-"},className:function(a,b,c){return(c?"":".")+a+b},escapeHighlightedString:function(a,b,c){b=b||"<em>";var e=document.createElement("div");e.appendChild(document.createTextNode(b)),c=c||"</em>";var f=document.createElement("div");f.appendChild(document.createTextNode(c));var g=document.createElement("div");return g.appendChild(document.createTextNode(a)),g.innerHTML.replace(RegExp(d(e.innerHTML),"g"),b).replace(RegExp(d(f.innerHTML),"g"),c)}}},function(a,b,c){"use strict";function d(a){var b,c;if(a=a||{},a.input||i.error("missing input"),this.isActivated=!1,this.debug=!!a.debug,this.autoselect=!!a.autoselect,this.autoselectOnBlur=!!a.autoselectOnBlur,this.openOnFocus=!!a.openOnFocus,this.minLength=i.isNumber(a.minLength)?a.minLength:1,this.autoWidth=void 0===a.autoWidth||!!a.autoWidth,this.clearOnSelected=!!a.clearOnSelected,this.tabAutocomplete=void 0===a.tabAutocomplete||!!a.tabAutocomplete,a.hint=!!a.hint,a.hint&&a.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=a.css=i.mixin({},o,a.appendTo?o.appendTo:{}),this.cssClasses=a.cssClasses=i.mixin({},o.defaultClasses,a.cssClasses||{}),this.cssClasses.prefix=a.cssClasses.formattedPrefix=i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=a.listboxId=[this.cssClasses.root,"listbox",i.getUniqueId()].join("-");var f=e(a);this.$node=f.wrapper;var g=this.$input=f.input;b=f.menu,c=f.hint,a.dropdownMenuContainer&&j.element(a.dropdownMenuContainer).css("position","relative").append(b.css("top","0")),g.on("blur.aa",function(a){var c=document.activeElement;i.isMsie()&&(b[0]===c||b[0].contains(c))&&(a.preventDefault(),a.stopImmediatePropagation(),i.defer(function(){g.focus()}))}),b.on("mousedown.aa",function(a){a.preventDefault()}),this.eventBus=a.eventBus||new k({el:g}),this.dropdown=new d.Dropdown({appendTo:a.appendTo,wrapper:this.$node,menu:b,datasets:a.datasets,templates:a.templates,cssClasses:a.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new d.Input({input:g,hint:c}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(a),this._setLanguageDirection()}function e(a){var b,c,d,e;b=j.element(a.input),c=j.element(n.wrapper.replace("%ROOT%",a.cssClasses.root)).css(a.css.wrapper),a.appendTo||"block"!==b.css("display")||"table"!==b.parent().css("display")||c.css("display","table-cell");var g=n.dropdown.replace("%PREFIX%",a.cssClasses.prefix).replace("%DROPDOWN_MENU%",a.cssClasses.dropdownMenu);d=j.element(g).css(a.css.dropdown).attr({role:"listbox",id:a.listboxId}),a.templates&&a.templates.dropdownMenu&&d.html(i.templatify(a.templates.dropdownMenu)()),e=b.clone().css(a.css.hint).css(f(b)),e.val("").addClass(i.className(a.cssClasses.prefix,a.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),e.removeData&&e.removeData(),b.data(h,{"aria-autocomplete":b.attr("aria-autocomplete"),"aria-expanded":b.attr("aria-expanded"),"aria-owns":b.attr("aria-owns"),autocomplete:b.attr("autocomplete"),dir:b.attr("dir"),role:b.attr("role"),spellcheck:b.attr("spellcheck"),style:b.attr("style"),type:b.attr("type")}),b.addClass(i.className(a.cssClasses.prefix,a.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":a.datasets&&a.datasets[0]&&a.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":a.ariaLabel,"aria-owns":a.listboxId}).css(a.hint?a.css.input:a.css.inputWithNoHint);try{b.attr("dir")||b.attr("dir","auto")}catch(a){}return c=a.appendTo?c.appendTo(j.element(a.appendTo).eq(0)).eq(0):b.wrap(c).parent(),c.prepend(a.hint?e:null).append(d),{wrapper:c,input:b,hint:e,menu:d}}function f(a){return{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}}function g(a,b){var c=a.find(i.className(b.prefix,b.input));i.each(c.data(h),function(a,b){void 0===a?c.removeAttr(b):c.attr(b,a)}),c.detach().removeClass(i.className(b.prefix,b.input,!0)).insertAfter(a),c.removeData&&c.removeData(h),a.remove()}var h="aaAttrs",i=c(4),j=c(2),k=c(6),l=c(7),m=c(16),n=c(18),o=c(19);i.mixin(d.prototype,{_bindKeyboardShortcuts:function(a){if(a.keyboardShortcuts){var b=this.$input,c=[];i.each(a.keyboardShortcuts,function(a){"string"==typeof a&&(a=a.toUpperCase().charCodeAt(0)),c.push(a)}),j.element(document).keydown(function(a){var d=a.target||a.srcElement,e=d.tagName;if(!d.isContentEditable&&"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e){var f=a.which||a.keyCode;c.indexOf(f)!==-1&&(b.focus(),a.stopPropagation(),a.preventDefault())}})}},_onSuggestionClicked:function(a,b){var c,d={selectionMethod:"click"};(c=this.dropdown.getDatumForSuggestion(b))&&this._select(c,d)},_onCursorMoved:function(a,b){var c=this.dropdown.getDatumForCursor(),d=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(d),c&&(b&&this.input.setInputValue(c.value,!0),this.eventBus.trigger("cursorchanged",c.raw,c.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var a=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",a.width+"px");var b=this.$node[0].getBoundingClientRect(),c=a.bottom-b.top;this.$node.css("top",c+"px");var d=a.left-b.left;this.$node.css("left",d+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var a=this.input.getQuery();a.length>=this.minLength?this.dropdown.update(a):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var a,b;a=this.dropdown.getDatumForCursor(),b=this.dropdown.getDatumForTopSuggestion();var c={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&a?this._select(a,c):this.autoselectOnBlur&&b?this._select(b,c):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(a,b){var c,d;c=this.dropdown.getDatumForCursor(),d=this.dropdown.getDatumForTopSuggestion();var e={selectionMethod:"enterKey"};c?(this._select(c,e),b.preventDefault()):this.autoselect&&d&&(this._select(d,e),b.preventDefault())},_onTabKeyed:function(a,b){if(!this.tabAutocomplete)return void this.dropdown.close();var c,d={selectionMethod:"tabKey"};(c=this.dropdown.getDatumForCursor())?(this._select(c,d),b.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var a=this.input.getQuery();this.dropdown.isEmpty&&a.length>=this.minLength?this.dropdown.update(a):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var a=this.input.getQuery();this.dropdown.isEmpty&&a.length>=this.minLength?this.dropdown.update(a):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(a,b){this.input.clearHintIfInvalid(),b.length>=this.minLength?this.dropdown.update(b):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var a=this.input.getLanguageDirection();this.dir!==a&&(this.dir=a,this.$node.css("direction",a),this.dropdown.setLanguageDirection(a))},_updateHint:function(){var a,b,c,d,e,f;a=this.dropdown.getDatumForTopSuggestion(),a&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(b=this.input.getInputValue(),c=l.normalizeQuery(b),d=i.escapeRegExChars(c),e=new RegExp("^(?:"+d+")(.+$)","i"),f=e.exec(a.value),f?this.input.setHint(b+f[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(a){var b,c,d,e;b=this.input.getHint(),c=this.input.getQuery(),d=a||this.input.isCursorAtEnd(),b&&c!==b&&d&&(e=this.dropdown.getDatumForTopSuggestion(),e&&this.input.setInputValue(e.value),this.eventBus.trigger("autocompleted",e.raw,e.datasetName))},_select:function(a,b){void 0!==a.value&&this.input.setQuery(a.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(a.value,!0),this._setLanguageDirection(),this.eventBus.trigger("selected",a.raw,a.datasetName,b).isDefaultPrevented()===!1&&(this.dropdown.close(),i.defer(i.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var a=this.input.getInputValue();a.length>=this.minLength?this.dropdown.update(a):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(a){a=i.toStr(a),this.isActivated?this.input.setInputValue(a):(this.input.setQuery(a),this.input.setInputValue(a,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),g(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),d.Dropdown=m,d.Input=l,d.sources=c(20),a.exports=d},function(a,b,c){"use strict";function d(a){a&&a.el||e.error("EventBus initialized without el"),this.$el=f.element(a.el)}var e=c(4),f=c(2);e.mixin(d.prototype,{trigger:function(a,b,c,d){var f=e.Event("autocomplete:"+a);return this.$el.trigger(f,[b,c,d]),f}}),a.exports=d},function(a,b,c){"use strict";function d(a){var b,c,d,f,g=this;a=a||{},a.input||i.error("input is missing"),b=i.bind(this._onBlur,this),c=i.bind(this._onFocus,this),d=i.bind(this._onKeydown,this),f=i.bind(this._onInput,this),this.$hint=j.element(a.hint),this.$input=j.element(a.input).on("blur.aa",b).on("focus.aa",c).on("keydown.aa",d),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=i.noop),i.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",function(a){h[a.which||a.keyCode]||i.defer(i.bind(g._onInput,g,a))}):this.$input.on("input.aa",f),this.query=this.$input.val(),this.$overflowHelper=e(this.$input)}function e(a){return j.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:a.css("font-family"),fontSize:a.css("font-size"),fontStyle:a.css("font-style"),fontVariant:a.css("font-variant"),fontWeight:a.css("font-weight"),wordSpacing:a.css("word-spacing"),letterSpacing:a.css("letter-spacing"),textIndent:a.css("text-indent"),textRendering:a.css("text-rendering"),textTransform:a.css("text-transform")}).insertAfter(a)}function f(a,b){return d.normalizeQuery(a)===d.normalizeQuery(b)}function g(a){return a.altKey||a.ctrlKey||a.metaKey||a.shiftKey}var h;h={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var i=c(4),j=c(2),k=c(8);d.normalizeQuery=function(a){return(a||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},i.mixin(d.prototype,k,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(a){var b=h[a.which||a.keyCode];this._managePreventDefault(b,a),b&&this._shouldTrigger(b,a)&&this.trigger(b+"Keyed",a)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(a,b){var c,d,e;switch(a){case"tab":d=this.getHint(),e=this.getInputValue(),c=d&&d!==e&&!g(b);break;case"up":case"down":c=!g(b);break;default:c=!1}c&&b.preventDefault()},_shouldTrigger:function(a,b){var c;switch(a){case"tab":c=!g(b);break;default:c=!0}return c},_checkInputValue:function(){var a,b,c;a=this.getInputValue(),b=f(a,this.query),c=!(!b||!this.query)&&this.query.length!==a.length,this.query=a,b?c&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(a){this.query=a},getInputValue:function(){return this.$input.val()},setInputValue:function(a,b){void 0===a&&(a=this.query),this.$input.val(a),b?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(a){this.$input.attr("aria-activedescendant",a)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(a){this.$hint.val(a)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var a,b,c,d;a=this.getInputValue(),b=this.getHint(),c=a!==b&&0===b.indexOf(a),(d=""!==a&&c&&!this.hasOverflow())||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var a=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=a},isCursorAtEnd:function(){var a,b,c;return a=this.$input.val().length,b=this.$input[0].selectionStart,i.isNumber(b)?b===a:!document.selection||(c=document.selection.createRange(),c.moveStart("character",-a),a===c.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),a.exports=d},function(a,b,c){"use strict";function d(a,b,c,d){var e;if(!c)return this;for(b=b.split(l),c=d?j(c,d):c,this._callbacks=this._callbacks||{};e=b.shift();)this._callbacks[e]=this._callbacks[e]||{sync:[],async:[]},this._callbacks[e][a].push(c);return this}function e(a,b,c){return d.call(this,"async",a,b,c)}function f(a,b,c){return d.call(this,"sync",a,b,c)}function g(a){var b;if(!this._callbacks)return this;for(a=a.split(l);b=a.shift();)delete this._callbacks[b];return this}function h(a){var b,c,d,e,f;if(!this._callbacks)return this;for(a=a.split(l),d=[].slice.call(arguments,1);(b=a.shift())&&(c=this._callbacks[b]);)e=i(c.sync,this,[b].concat(d)),f=i(c.async,this,[b].concat(d)),e()&&k(f);return this}function i(a,b,c){function d(){for(var d,e=0,f=a.length;!d&&e<f;e+=1)d=a[e].apply(b,c)===!1;return!d}return d}function j(a,b){return a.bind?a.bind(b):function(){a.apply(b,[].slice.call(arguments,0))}}var k=c(9),l=/\s+/;a.exports={onSync:f,onAsync:e,off:g,trigger:h}},function(a,b,c){"use strict";function d(){h&&i&&(h=!1,i.length?m=i.concat(m):l=-1,m.length&&e())}function e(){if(!h){n=!1,h=!0;for(var a=m.length,b=setTimeout(d);a;){for(i=m,m=[];i&&++l<a;)i[l].run();l=-1,a=m.length}i=null,l=-1,h=!1,clearTimeout(b)}}function f(a,b){this.fun=a,this.array=b}function g(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];m.push(new f(a,b)),n||h||(n=!0,j())}for(var h,i,j,k=[c(10),c(12),c(13),c(14),c(15)],l=-1,m=[],n=!1,o=-1,p=k.length;++o<p;)if(k[o]&&k[o].test&&k[o].test()){j=k[o].install(e);break}f.prototype.run=function(){var a=this.fun,b=this.array;switch(b.length){case 0:return a();case 1:return a(b[0]);case 2:return a(b[0],b[1]);case 3:return a(b[0],b[1],b[2]);default:return a.apply(null,b)}},a.exports=g},function(a,b,c){(function(a){"use strict";b.test=function(){return void 0!==a&&!a.browser},b.install=function(b){return function(){a.nextTick(b)}}}).call(b,c(11))},function(a,b){function c(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}function e(a){if(k===setTimeout)return setTimeout(a,0);if((k===c||!k)&&setTimeout)return k=setTimeout,setTimeout(a,0);try{return k(a,0)}catch(b){try{return k.call(null,a,0)}catch(b){return k.call(this,a,0)}}}function f(a){if(l===clearTimeout)return clearTimeout(a);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(a);try{return l(a)}catch(b){try{return l.call(null,a)}catch(b){return l.call(this,a)}}}function g(){p&&n&&(p=!1,n.length?o=n.concat(o):q=-1,o.length&&h())}function h(){if(!p){var a=e(g);p=!0;for(var b=o.length;b;){for(n=o,o=[];++q<b;)n&&n[q].run();q=-1,b=o.length}n=null,p=!1,f(a)}}function i(a,b){this.fun=a,this.array=b}function j(){}var k,l,m=a.exports={};!function(){try{k="function"==typeof setTimeout?setTimeout:c}catch(a){k=c}try{l="function"==typeof clearTimeout?clearTimeout:d}catch(a){l=d}}();var n,o=[],p=!1,q=-1;m.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];o.push(new i(a,b)),1!==o.length||p||e(h)},i.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=j,m.addListener=j,m.once=j,m.off=j,m.removeListener=j,m.removeAllListeners=j,m.emit=j,m.binding=function(a){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(a){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},function(a,b){(function(a){"use strict";var c=a.MutationObserver||a.WebKitMutationObserver;b.test=function(){return c},b.install=function(b){var d=0,e=new c(b),f=a.document.createTextNode("");return e.observe(f,{characterData:!0}),function(){f.data=d=++d%2}}}).call(b,function(){return this}())},function(a,b){(function(a){"use strict";b.test=function(){return!a.setImmediate&&void 0!==a.MessageChannel},b.install=function(b){var c=new a.MessageChannel;return c.port1.onmessage=b,function(){c.port2.postMessage(0)}}}).call(b,function(){return this}())},function(a,b){(function(a){"use strict";b.test=function(){return"document"in a&&"onreadystatechange"in a.document.createElement("script")},b.install=function(b){return function(){var c=a.document.createElement("script");return c.onreadystatechange=function(){b(),c.onreadystatechange=null,c.parentNode.removeChild(c),c=null},a.document.documentElement.appendChild(c),b}}}).call(b,function(){return this}())},function(a,b){"use strict";b.test=function(){return!0},b.install=function(a){return function(){setTimeout(a,0)}}},function(a,b,c){"use strict";function d(a){var b,c,d,h=this;a=a||{},a.menu||f.error("menu is required"),f.isArray(a.datasets)||f.isObject(a.datasets)||f.error("1 or more datasets required"),a.datasets||f.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=a.minLength||0,this.templates={},this.appendTo=a.appendTo||!1,this.css=f.mixin({},j,a.appendTo?j.appendTo:{}),this.cssClasses=a.cssClasses=f.mixin({},j.defaultClasses,a.cssClasses||{}),this.cssClasses.prefix=a.cssClasses.formattedPrefix||f.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),b=f.bind(this._onSuggestionClick,this),c=f.bind(this._onSuggestionMouseEnter,this),d=f.bind(this._onSuggestionMouseLeave,this);var i=f.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=g.element(a.menu).on("mouseenter.aa",i,c).on("mouseleave.aa",i,d).on("click.aa",i,b),this.$container=a.appendTo?a.wrapper:this.$menu,a.templates&&a.templates.header&&(this.templates.header=f.templatify(a.templates.header),this.$menu.prepend(this.templates.header())),a.templates&&a.templates.empty&&(this.templates.empty=f.templatify(a.templates.empty),this.$empty=g.element('<div class="'+f.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=f.map(a.datasets,function(b){return e(h.$menu,b,a.cssClasses)}),f.each(this.datasets,function(a){var b=a.getRoot();b&&0===b.parent().length&&h.$menu.append(b),a.onSync("rendered",h._onRendered,h)}),a.templates&&a.templates.footer&&(this.templates.footer=f.templatify(a.templates.footer),this.$menu.append(this.templates.footer()));var k=this;g.element(window).resize(function(){k._redraw()})}function e(a,b,c){return new d.Dataset(f.mixin({$menu:a,cssClasses:c},b))}var f=c(4),g=c(2),h=c(8),i=c(17),j=c(19);f.mixin(d.prototype,h,{_onSuggestionClick:function(a){this.trigger("suggestionClicked",g.element(a.currentTarget))},_onSuggestionMouseEnter:function(a){var b=g.element(a.currentTarget);if(!b.hasClass(f.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var c=this;setTimeout(function(){c._setCursor(b,!1)},0)}},_onSuggestionMouseLeave:function(a){if(a.relatedTarget){if(g.element(a.relatedTarget).closest("."+f.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0)return}this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(a,b){function c(a){return a.isEmpty()}function d(a){return a.templates&&a.templates.empty}if(this.isEmpty=f.every(this.datasets,c),this.isEmpty)if(b.length>=this.minLength&&this.trigger("empty"),this.$empty)if(b.length<this.minLength)this._hide();else{var e=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query});this.$empty.html(e),this.$empty.show(),this._show()}else f.any(this.datasets,d)?b.length<this.minLength?this._hide():this._show():this._hide();else this.isOpen&&(this.$empty&&(this.$empty.empty(),this.$empty.hide()),b.length>=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(f.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(f.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(a,b){a.first().addClass(f.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",b)},_removeCursor:function(){this._getCursor().removeClass(f.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(a){var b,c,d,e;if(this.isOpen){if(c=this._getCursor(),b=this._getSuggestions(),this._removeCursor(),d=b.index(c)+a,(d=(d+1)%(b.length+1)-1)===-1)return void this.trigger("cursorRemoved");d<-1&&(d=b.length-1),this._setCursor(e=b.eq(d),!0),this._ensureVisible(e)}},_ensureVisible:function(a){var b,c,d,e;b=a.position().top,c=b+a.height()+parseInt(a.css("margin-top"),10)+parseInt(a.css("margin-bottom"),10),d=this.$menu.scrollTop(),e=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),b<0?this.$menu.scrollTop(d+b):e<c&&this.$menu.scrollTop(d+(c-e))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(a){this.$menu.css("ltr"===a?this.css.ltr:this.css.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(a){var b=null;return a.length&&(b={raw:i.extractDatum(a),value:i.extractValue(a),datasetName:i.extractDatasetName(a)}),b},getCurrentCursor:function(){return this._getCursor().first()},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},cursorTopSuggestion:function(){this._setCursor(this._getSuggestions().first(),!1)},update:function(a){function b(b){b.update(a)}f.each(this.datasets,b)},empty:function(){function a(a){a.clear()}f.each(this.datasets,a),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function a(a){a.destroy()}this.$menu.off(".aa"),this.$menu=null,f.each(this.datasets,a)}}),d.Dataset=i,a.exports=d},function(a,b,c){"use strict";function d(a){a=a||{},a.templates=a.templates||{},a.source||k.error("missing source"),a.name&&!g(a.name)&&k.error("invalid dataset name: "+a.name),this.query=null,this._isEmpty=!0,this.highlight=!!a.highlight,this.name=void 0===a.name||null===a.name?k.getUniqueId():a.name,this.source=a.source,this.displayFn=e(a.display||a.displayKey),this.debounce=a.debounce,this.cache=a.cache!==!1,this.templates=f(a.templates,this.displayFn),this.css=k.mixin({},n,a.appendTo?n.appendTo:{}),this.cssClasses=a.cssClasses=k.mixin({},n.defaultClasses,a.cssClasses||{}),this.cssClasses.prefix=a.cssClasses.formattedPrefix||k.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var b=k.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=a.$menu&&a.$menu.find(b+"-"+this.name).length>0?l.element(a.$menu.find(b+"-"+this.name)[0]):l.element(m.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=a.$menu,this.clearCachedSuggestions()}function e(a){function b(b){return b[a]}return a=a||"value",k.isFunction(a)?a:b}function f(a,b){function c(a){return"<p>"+b(a)+"</p>"}return{empty:a.empty&&k.templatify(a.empty),header:a.header&&k.templatify(a.header),footer:a.footer&&k.templatify(a.footer),suggestion:a.suggestion||c}}function g(a){return/^[_a-zA-Z0-9-]+$/.test(a)}var h="aaDataset",i="aaValue",j="aaDatum",k=c(4),l=c(2),m=c(18),n=c(19),o=c(8);d.extractDatasetName=function(a){return l.element(a).data(h)},d.extractValue=function(a){return l.element(a).data(i)},d.extractDatum=function(a){var b=l.element(a).data(j);return"string"==typeof b&&(b=JSON.parse(b)),b},k.mixin(d.prototype,o,{_render:function(a,b){function c(){var b=[].slice.call(arguments,0);return b=[{query:a,isEmpty:!0}].concat(b),n.templates.empty.apply(this,b)}function d(){function a(a){var b,c=m.suggestion.replace("%PREFIX%",f.cssClasses.prefix).replace("%SUGGESTION%",f.cssClasses.suggestion);return b=l.element(c).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(n.templates.suggestion.apply(this,[a].concat(e))),b.data(h,n.name),b.data(i,n.displayFn(a)||void 0),b.data(j,JSON.stringify(a)),b.children().each(function(){l.element(this).css(f.css.suggestionChild)}),b}var c,d,e=[].slice.call(arguments,0),f=this,g=m.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return c=l.element(g).css(this.css.suggestions),d=k.map(b,a),c.append.apply(c,d),c}function e(){var b=[].slice.call(arguments,0);return b=[{query:a,isEmpty:!g}].concat(b),n.templates.header.apply(this,b)}function f(){var b=[].slice.call(arguments,0);return b=[{query:a,isEmpty:!g}].concat(b),n.templates.footer.apply(this,b)}if(this.$el){var g,n=this,o=[].slice.call(arguments,2);if(this.$el.empty(),g=b&&b.length,this._isEmpty=!g,!g&&this.templates.empty)this.$el.html(c.apply(this,o)).prepend(n.templates.header?e.apply(this,o):null).append(n.templates.footer?f.apply(this,o):null);else if(g)this.$el.html(d.apply(this,o)).prepend(n.templates.header?e.apply(this,o):null).append(n.templates.footer?f.apply(this,o):null);else if(b&&!Array.isArray(b))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(g?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(g?"without":"with")+"-"+this.name),this.trigger("rendered",a)}},getRoot:function(){return this.$el},update:function(a){function b(b){if(!this.canceled&&a===this.query){
7
- var c=[].slice.call(arguments,1);this.cacheSuggestions(a,b,c),this._render.apply(this,[a,b].concat(c))}}if(this.query=a,this.canceled=!1,this.shouldFetchFromCache(a))b.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var c=this,d=function(){c.canceled||c.source(a,b.bind(c))};if(this.debounce){var e=function(){c.debounceTimeout=null,d()};clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(e,this.debounce)}else d()}},cacheSuggestions:function(a,b,c){this.cachedQuery=a,this.cachedSuggestions=b,this.cachedRenderExtraArgs=c},shouldFetchFromCache:function(a){return this.cache&&this.cachedQuery===a&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered","")},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),a.exports=d},function(a,b){"use strict";a.exports={wrapper:'<span class="%ROOT%"></span>',dropdown:'<span class="%PREFIX%%DROPDOWN_MENU%"></span>',dataset:'<div class="%PREFIX%%DATASET%-%CLASS%"></div>',suggestions:'<span class="%PREFIX%%SUGGESTIONS%"></span>',suggestion:'<div class="%PREFIX%%SUGGESTION%"></div>'}},function(a,b,c){"use strict";var d=c(4),e={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};d.isMsie()&&d.mixin(e.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),d.isMsie()&&d.isMsie()<=7&&d.mixin(e.input,{marginTop:"-1px"}),a.exports=e},function(a,b,c){"use strict";a.exports={hits:c(21),popularIn:c(24)}},function(a,b,c){"use strict";var d=c(4),e=c(22),f=c(23);a.exports=function(a,b){function c(c,e){a.search(c,b,function(a,b){if(a)return void d.error(a.message);e(b.hits,b)})}var g=f(a.as._ua);return g&&g[0]>=3&&g[1]>20&&(b=b||{},b.additionalUA="autocomplete.js "+e),c}},function(a,b){a.exports="0.36.0"},function(a,b){"use strict";a.exports=function(a){var b=a.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(b)return[b[1],b[2],b[3]]}},function(a,b,c){"use strict";var d=c(4),e=c(22),f=c(23);a.exports=function(a,b,c,g){function h(h,i){a.search(h,b,function(a,h){if(a)return void d.error(a.message);if(h.hits.length>0){var l=h.hits[0],m=d.mixin({hitsPerPage:0},c);delete m.source,delete m.index;var n=f(k.as._ua);return n&&n[0]>=3&&n[1]>20&&(b.additionalUA="autocomplete.js "+e),void k.search(j(l),m,function(a,b){if(a)return void d.error(a.message);var c=[];if(g.includeAll){var e=g.allTitle||"All departments";c.push(d.mixin({facet:{value:e,count:b.nbHits}},d.cloneDeep(l)))}d.each(b.facets,function(a,b){d.each(a,function(a,e){c.push(d.mixin({facet:{facet:b,value:e,count:a}},d.cloneDeep(l)))})});for(var f=1;f<h.hits.length;++f)c.push(h.hits[f]);i(c,h)})}i([])})}var i=f(a.as._ua);if(i&&i[0]>=3&&i[1]>20&&(b=b||{},b.additionalUA="autocomplete.js "+e),!c.source)return d.error("Missing 'source' key");var j=d.isFunction(c.source)?c.source:function(a){return a[c.source]};if(!c.index)return d.error("Missing 'index' key");var k=c.index;return g=g||{},h}}]);
 
 
 
 
 
 
 
js/algolia/placesAutocompleteDataset.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! 1.16.1 | ? Algolia | https://www.jsdelivr.com/package/npm/places.js?path=dist%2Fcdn */
2
- !function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.placesAutocompleteDataset=t():n.placesAutocompleteDataset=t()}(window,function(){return function(e){var o={};function a(n){if(o[n])return o[n].exports;var t=o[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}return a.m=e,a.c=o,a.d=function(n,t,e){a.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},a.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},a.t=function(t,n){if(1&n&&(t=a(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(a.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)a.d(e,o,function(n){return t[n]}.bind(null,o));return e},a.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return a.d(t,"a",t),t},a.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},a.p="",a(a.s=78)}({1:function(n,t,e){"use strict";function z(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},o=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(e).filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.forEach(function(n){a(t,n,e[n])})}return t}function a(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var P={},L={};t.a=function(n){var t,e,o,a,r,i,c,s,u,l,p,d,h,g,v,f,m,w,y,b,x;return t=z({},P,n),e=t.hitsPerPage,o=t.aroundLatLng,a=t.aroundRadius,r=t.aroundLatLngViaIP,i=t.insideBoundingBox,c=t.insidePolygon,s=t.getRankingInfo,u=t.countries,l=t.language,p=t.type,d={countries:u,hitsPerPage:e||5,language:l||navigator.language.split("-")[0],type:p},Array.isArray(u)&&(d.countries=d.countries.map(function(n){return n.toLowerCase()})),"string"==typeof d.language&&(d.language=d.language.toLowerCase()),o?d.aroundLatLng=o:void 0!==r&&(d.aroundLatLngViaIP=r),P=z({},d,{aroundRadius:a,insideBoundingBox:i,insidePolygon:c,getRankingInfo:s}),h=z({},L,n),g=h.useDeviceLocation,v=void 0!==g&&g,f=h.computeQueryParams,m=void 0===f?function(n){return n}:f,w=h.formatInputValue,y=h.onHits,b=void 0===y?function(){}:y,x=h.onError,L={useDeviceLocation:v,computeQueryParams:m,formatInputValue:w,onHits:b,onError:void 0===x?function(n){throw n}:x,onRateLimitReached:h.onRateLimitReached},{params:P,controls:L}}},15:function(n,t){n.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 18 19"><path d="M12 9V3L9 0 6 3v2H0v14h18V9h-6zm-8 8H2v-2h2v2zm0-4H2v-2h2v2zm0-4H2V7h2v2zm6 8H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V7h2v2zm0-4H8V3h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z"/></svg>\n'},16:function(n,t){n.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">\n <path d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zM9 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L7 13v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H6V8h2c.55 0 1-.45 1-1V5h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/>\n</svg>\n'},17:function(n,t){n.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 54.9 50.5"><path d="M9.6 12.7H8.5c-2.3 0-4.1 1.9-4.1 4.1v1.1c0 2.2 1.8 4 4 4.1v21.7h-.7c-1.3 0-2.3 1-2.3 2.3h7.1c0-1.3-1-2.3-2.3-2.3h-.5V22.1c2.2-.1 4-1.9 4-4.1v-1.1c0-2.3-1.8-4.2-4.1-4.2zM46 7.6h-7.5c0-1.8-1.5-3.3-3.3-3.3h-3.6c-1.8 0-3.3 1.5-3.3 3.3H21c-2.5 0-4.6 2-4.6 4.6v26.3c0 1.7 1.3 3.1 3 3.1h.8v1.6c0 1.7 1.4 3.1 3.1 3.1 1.7 0 3-1.4 3-3.1v-1.6h14.3v1.6c0 1.7 1.4 3.1 3.1 3.1 1.7 0 3.1-1.4 3.1-3.1v-1.6h.8c1.7 0 3.1-1.4 3.1-3.1V12.2c-.2-2.5-2.2-4.6-4.7-4.6zm-27.4 4.6c0-1.3 1.1-2.4 2.4-2.4h25c1.3 0 2.4 1.1 2.4 2.4v.3c0 1.3-1.1 2.4-2.4 2.4H21c-1.3 0-2.4-1.1-2.4-2.4v-.3zM21 38c-1.5 0-2.7-1.2-2.7-2.7 0-1.5 1.2-2.7 2.7-2.7 1.5 0 2.7 1.2 2.7 2.7 0 1.5-1.2 2.7-2.7 2.7zm0-10.1c-1.3 0-2.4-1.1-2.4-2.4v-6.6c0-1.3 1.1-2.4 2.4-2.4h25c1.3 0 2.4 1.1 2.4 2.4v6.6c0 1.3-1.1 2.4-2.4 2.4H21zm24.8 10c-1.5 0-2.7-1.2-2.7-2.7 0-1.5 1.2-2.7 2.7-2.7 1.5 0 2.7 1.2 2.7 2.7 0 1.5-1.2 2.7-2.7 2.7z"/></svg>\n'},18:function(n,t){n.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 15 20">\n <path d="M13.105 20l-2.366-3.354H4.26L1.907 20H0l3.297-4.787c-1.1-.177-2.196-1.287-2.194-2.642V2.68C1.1 1.28 2.317-.002 3.973 0h7.065c1.647-.002 2.863 1.28 2.86 2.676v9.895c.003 1.36-1.094 2.47-2.194 2.647L15 20h-1.895zM6.11 2h2.78c.264 0 .472-.123.472-.27v-.46c0-.147-.22-.268-.472-.27H6.11c-.252.002-.47.123-.47.27v.46c0 .146.206.27.47.27zm6.26 3.952V4.175c-.004-.74-.5-1.387-1.436-1.388H4.066c-.936 0-1.43.648-1.436 1.388v1.777c-.002.86.644 1.384 1.436 1.388h6.868c.793-.004 1.44-.528 1.436-1.388zm-8.465 5.386c-.69-.003-1.254.54-1.252 1.21-.002.673.56 1.217 1.252 1.222.697-.006 1.26-.55 1.262-1.22-.002-.672-.565-1.215-1.262-1.212zm8.42 1.21c-.005-.67-.567-1.213-1.265-1.21-.69-.003-1.253.54-1.25 1.21-.003.673.56 1.217 1.25 1.222.698-.006 1.26-.55 1.264-1.22z"/>\n</svg>\n'},19:function(n,t){n.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M12 .6L2.5 6.9h18.9L12 .6zM3.8 8.2c-.7 0-1.3.6-1.3 1.3v8.8L.3 22.1c-.2.3-.3.5-.3.6 0 .6.8.6 1.3.6h21.5c.4 0 1.3 0 1.3-.6 0-.2-.1-.3-.3-.6l-2.2-3.8V9.5c0-.7-.6-1.3-1.3-1.3H3.8zm2.5 2.5c.7 0 1.1.6 1.3 1.3v7.6H5.1V12c0-.7.5-1.3 1.2-1.3zm5.7 0c.7 0 1.3.6 1.3 1.3v7.6h-2.5V12c-.1-.7.5-1.3 1.2-1.3zm5.7 0c.7 0 1.3.6 1.3 1.3v7.6h-2.5V12c-.1-.7.5-1.3 1.2-1.3z"/></svg>\n'},20:function(n,t){n.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M22.9 1.1s1.3.3-4.3 6.5l.7 3.8.2-.2c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l-1.2 1.2.3 1.7.1-.1c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l-1.1 1.1c.2 1.9.3 3.6.1 4.5 0 0-1.2 1.2-1.8.5 0 0-2.3-7.7-3.8-11.1-5.9 6-6.4 5.6-6.4 5.6s1.2 3.8-.2 5.2l-2.3-4.3h.1l-4.3-2.3c1.3-1.3 5.2-.2 5.2-.2s-.5-.4 5.6-6.3C8.9 7.7 1.2 5.5 1.2 5.5c-.7-.7.5-1.8.5-1.8.9-.2 2.6-.1 4.5.1l1.1-1.1c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l1.7.3 1.2-1.2c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l-.2.2 3.8.7c6.2-5.5 6.5-4.2 6.5-4.2z"/></svg>\n'},21:function(n,t){n.exports='<svg xmlns="http://www.w3.org/2000/svg" width="117" height="17" viewBox="0 0 130 19"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path fill="#5468FF" d="M59.399.044h13.299a2.372 2.372 0 0 1 2.377 2.364v13.234a2.372 2.372 0 0 1-2.377 2.364H59.399a2.372 2.372 0 0 1-2.377-2.364V2.403A2.368 2.368 0 0 1 59.399.044z"/><path fill="#FFF" d="M66.257 4.582c-2.815 0-5.1 2.272-5.1 5.078 0 2.806 2.284 5.072 5.1 5.072 2.815 0 5.1-2.272 5.1-5.078 0-2.806-2.279-5.072-5.1-5.072zm0 8.652c-1.983 0-3.593-1.602-3.593-3.574 0-1.972 1.61-3.574 3.593-3.574 1.983 0 3.593 1.602 3.593 3.574a3.582 3.582 0 0 1-3.593 3.574zm0-6.418V9.48c0 .076.082.131.153.093l2.377-1.226c.055-.027.071-.093.044-.147a2.96 2.96 0 0 0-2.465-1.487c-.055 0-.11.044-.11.104h.001zm-3.33-1.956l-.312-.31a.783.783 0 0 0-1.106 0l-.372.37a.773.773 0 0 0 0 1.1l.307.305c.049.05.121.038.164-.01.181-.246.378-.48.597-.698.225-.223.455-.42.707-.599.055-.033.06-.109.016-.158h-.001zm5.001-.806v-.616a.781.781 0 0 0-.783-.779h-1.824a.78.78 0 0 0-.783.78v.631c0 .071.066.12.137.104a5.736 5.736 0 0 1 1.588-.223c.52 0 1.035.071 1.534.207a.106.106 0 0 0 .131-.104z"/><path fill="#252C61" d="M5.027 10.246c0 .698-.252 1.246-.757 1.644-.505.397-1.201.596-2.089.596-.888 0-1.615-.138-2.181-.414v-1.214c.358.168.739.301 1.141.397.403.097.778.145 1.125.145.508 0 .884-.097 1.125-.29a.945.945 0 0 0 .363-.779.978.978 0 0 0-.333-.747c-.222-.204-.68-.446-1.375-.725C1.33 8.57.825 8.24.531 7.865c-.294-.372-.44-.82-.44-1.343 0-.655.233-1.17.698-1.547.465-.376 1.09-.564 1.875-.564.752 0 1.5.165 2.245.494l-.408 1.047c-.698-.294-1.321-.44-1.869-.44-.415 0-.73.09-.945.271a.89.89 0 0 0-.322.717c0 .204.043.38.129.524.086.145.227.282.424.411.197.13.551.3 1.063.51.577.24.999.464 1.268.671.269.208.465.442.591.704.125.261.188.57.188.924l-.001.002zm3.98 2.24c-.924 0-1.646-.269-2.167-.808-.521-.539-.781-1.28-.781-2.226 0-.97.242-1.733.725-2.288.483-.555 1.148-.833 1.993-.833.784 0 1.404.238 1.858.714.455.476.682 1.132.682 1.966v.682H7.359c.018.577.174 1.02.467 1.33.294.31.707.464 1.241.464.351 0 .678-.033.98-.099a5.1 5.1 0 0 0 .975-.33v1.026a3.865 3.865 0 0 1-.935.312 5.723 5.723 0 0 1-1.08.091zm7.46-.107l-.252-.827h-.043c-.286.362-.575.608-.865.74-.29.13-.662.195-1.117.195-.584 0-1.039-.158-1.367-.473-.328-.315-.491-.76-.491-1.337 0-.612.227-1.074.682-1.386.455-.312 1.148-.482 2.079-.51l1.026-.032v-.317c0-.38-.089-.663-.266-.85-.177-.189-.452-.283-.824-.283-.304 0-.596.045-.875.134a6.68 6.68 0 0 0-.806.317l-.408-.902a4.414 4.414 0 0 1 1.058-.384 4.856 4.856 0 0 1 1.085-.132c.756 0 1.326.165 1.711.494.385.33.577.847.577 1.552v4.001h-.904zm5.677-6.048c.254 0 .464.018.628.054l-.124 1.176a2.383 2.383 0 0 0-.559-.064c-.505 0-.914.165-1.227.494-.313.33-.47.757-.47 1.284v3.104H19.13V6.44h.988l.167 1.047h.064c.197-.354.454-.636.771-.843a1.83 1.83 0 0 1 1.023-.312h.001zm4.125 6.155c-.899 0-1.582-.262-2.049-.787-.467-.525-.701-1.277-.701-2.259 0-.999.244-1.767.733-2.304.489-.537 1.195-.806 2.119-.806.627 0 1.191.116 1.692.35l-.381 1.014c-.534-.208-.974-.312-1.321-.312-1.028 0-1.542.682-1.542 2.046 0 .666.128 1.166.384 1.501.256.335.631.502 1.125.502a3.23 3.23 0 0 0 1.595-.419v1.101a2.53 2.53 0 0 1-.722.285 4.356 4.356 0 0 1-.932.086v.002zm8.277-.107h-1.268V8.727c0-.458-.092-.8-.277-1.026-.184-.226-.477-.338-.878-.338-.53 0-.919.158-1.168.475-.249.317-.373.848-.373 1.593v2.95H29.32V4.022h1.262v2.122c0 .34-.021.704-.064 1.09h.081a1.76 1.76 0 0 1 .717-.666c.306-.158.663-.236 1.072-.236 1.439 0 2.159.725 2.159 2.175v3.873l-.001-.002zm7.648-6.048c.741 0 1.319.27 1.732.806.414.537.62 1.291.62 2.261 0 .974-.209 1.732-.628 2.275-.419.542-1.001.814-1.746.814-.752 0-1.336-.27-1.751-.81h-.086l-.231.703h-.945V4.023h1.262V6.01l-.021.655-.032.553h.054c.401-.59.992-.886 1.772-.886zm2.917.107h1.375l1.208 3.368c.183.48.304.931.365 1.354h.043c.032-.197.091-.436.177-.717.086-.28.541-1.616 1.364-4.004h1.364l-2.541 6.73c-.462 1.235-1.232 1.853-2.31 1.853-.279 0-.551-.03-.816-.09v-1c.19.043.406.064.65.064.609 0 1.037-.353 1.284-1.058l.22-.559-2.385-5.94h.002zm-3.244.924c-.508 0-.875.15-1.098.448-.224.3-.339.8-.346 1.501v.086c0 .723.115 1.247.344 1.571.229.324.603.486 1.123.486.448 0 .787-.177 1.018-.532.231-.354.346-.867.346-1.536 0-1.35-.462-2.025-1.386-2.025l-.001.001zm-27.28 4.157c.458 0 .826-.128 1.104-.384.278-.256.416-.615.416-1.077v-.516l-.763.032c-.594.021-1.027.121-1.297.298s-.406.448-.406.814c0 .265.079.47.236.615.158.145.394.218.709.218h.001zM8.775 7.287c-.401 0-.722.127-.964.381s-.386.625-.432 1.112h2.696c-.007-.49-.125-.862-.354-1.115-.229-.252-.544-.379-.945-.379l-.001.001z"/></g><path fill="#5468FF" d="M102.162 13.784c0 1.455-.372 2.517-1.123 3.193-.75.676-1.895 1.013-3.44 1.013-.564 0-1.736-.109-2.673-.316l.345-1.689c.783.163 1.819.207 2.361.207.86 0 1.473-.174 1.84-.523.367-.349.548-.866.548-1.553v-.349a6.374 6.374 0 0 1-.838.316 4.151 4.151 0 0 1-1.194.158 4.515 4.515 0 0 1-1.616-.278 3.385 3.385 0 0 1-1.254-.817 3.744 3.744 0 0 1-.811-1.35c-.192-.54-.29-1.505-.29-2.213 0-.665.104-1.498.307-2.054a3.925 3.925 0 0 1 .904-1.433 4.124 4.124 0 0 1 1.441-.926 5.31 5.31 0 0 1 1.945-.365c.696 0 1.337.087 1.961.191a15.86 15.86 0 0 1 1.588.332v8.456h-.001zm-5.955-4.206c0 .893.197 1.885.592 2.3.394.413.904.62 1.528.62.34 0 .663-.049.964-.142a2.75 2.75 0 0 0 .734-.332v-5.29a8.531 8.531 0 0 0-1.413-.18c-.778-.022-1.369.294-1.786.801-.411.507-.619 1.395-.619 2.223zm16.121 0c0 .72-.104 1.264-.318 1.858a4.389 4.389 0 0 1-.904 1.52c-.389.42-.854.746-1.402.975-.548.23-1.391.36-1.813.36-.422-.005-1.26-.125-1.802-.36a4.088 4.088 0 0 1-1.397-.975 4.486 4.486 0 0 1-.909-1.52 5.037 5.037 0 0 1-.329-1.858c0-.719.099-1.41.318-1.999.219-.588.526-1.09.92-1.509.394-.42.865-.74 1.402-.97a4.547 4.547 0 0 1 1.786-.338 4.69 4.69 0 0 1 1.791.338c.548.23 1.019.55 1.402.97.389.42.69.921.909 1.51.23.587.345 1.28.345 1.998h.001zm-2.192.005c0-.92-.203-1.689-.597-2.223-.394-.539-.948-.806-1.654-.806-.707 0-1.26.267-1.654.806-.394.54-.586 1.302-.586 2.223 0 .932.197 1.558.592 2.098.394.545.948.812 1.654.812.707 0 1.26-.272 1.654-.812.394-.545.592-1.166.592-2.098h-.001zm6.963 4.708c-3.511.016-3.511-2.822-3.511-3.274L113.583.95l2.142-.338v10.003c0 .256 0 1.88 1.375 1.885v1.793h-.001zM120.873 14.291h-2.153V5.095l2.153-.338zM119.794 3.75c.718 0 1.304-.579 1.304-1.292 0-.714-.581-1.29-1.304-1.29-.723 0-1.304.577-1.304 1.29 0 .714.586 1.291 1.304 1.291zm6.431 1.012c.707 0 1.304.087 1.786.262.482.174.871.42 1.156.73.285.311.488.735.608 1.182.126.447.186.937.186 1.476v5.481a25.24 25.24 0 0 1-1.495.251c-.668.098-1.419.147-2.251.147a6.829 6.829 0 0 1-1.517-.158 3.213 3.213 0 0 1-1.178-.507 2.455 2.455 0 0 1-.761-.904c-.181-.37-.274-.893-.274-1.438 0-.523.104-.855.307-1.215.208-.36.487-.654.838-.883a3.609 3.609 0 0 1 1.227-.49 7.073 7.073 0 0 1 2.202-.103c.263.027.537.076.833.147v-.349c0-.245-.027-.479-.088-.697a1.486 1.486 0 0 0-.307-.583c-.148-.169-.34-.3-.581-.392a2.536 2.536 0 0 0-.915-.163c-.493 0-.942.06-1.353.131-.411.071-.75.153-1.008.245l-.257-1.749c.268-.093.668-.185 1.183-.278a9.335 9.335 0 0 1 1.66-.142h-.001zm.179 7.73c.657 0 1.145-.038 1.484-.104V10.22a5.097 5.097 0 0 0-1.978-.104c-.241.033-.46.098-.652.191a1.167 1.167 0 0 0-.466.392c-.121.17-.175.267-.175.523 0 .501.175.79.493.981.323.196.75.29 1.293.29h.001zM84.108 4.816c.707 0 1.304.087 1.786.262.482.174.871.42 1.156.73.29.316.487.735.608 1.182.126.447.186.937.186 1.476v5.481a25.24 25.24 0 0 1-1.495.251c-.668.098-1.419.147-2.251.147a6.829 6.829 0 0 1-1.517-.158 3.213 3.213 0 0 1-1.178-.507 2.455 2.455 0 0 1-.761-.904c-.181-.37-.274-.893-.274-1.438 0-.523.104-.855.307-1.215.208-.36.487-.654.838-.883a3.609 3.609 0 0 1 1.227-.49 7.073 7.073 0 0 1 2.202-.103c.257.027.537.076.833.147v-.349c0-.245-.027-.479-.088-.697a1.486 1.486 0 0 0-.307-.583c-.148-.169-.34-.3-.581-.392a2.536 2.536 0 0 0-.915-.163c-.493 0-.942.06-1.353.131-.411.071-.75.153-1.008.245l-.257-1.749c.268-.093.668-.185 1.183-.278a8.89 8.89 0 0 1 1.66-.142h-.001zm.185 7.736c.657 0 1.145-.038 1.484-.104V10.28a5.097 5.097 0 0 0-1.978-.104c-.241.033-.46.098-.652.191a1.167 1.167 0 0 0-.466.392c-.121.17-.175.267-.175.523 0 .501.175.79.493.981.318.191.75.29 1.293.29h.001zm8.683 1.738c-3.511.016-3.511-2.822-3.511-3.274L89.46.948 91.602.61v10.003c0 .256 0 1.88 1.375 1.885v1.793h-.001z"/></g></svg>'},22:function(n,t){n.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12">\n <path fill="#797979" fill-rule="evenodd" d="M6.577.5L5.304.005 2.627 1.02 0 0l.992 2.767-.986 2.685.998 2.76-1 2.717.613.22 3.39-3.45.563.06.726-.69s-.717-.92-.91-1.86c.193-.146.184-.14.355-.285C4.1 1.93 6.58.5 6.58.5zm-4.17 11.354l.22.12 2.68-1.05 2.62 1.04 2.644-1.03 1.02-2.717-.33-.944s-1.13 1.26-3.44.878c-.174.29-.25.37-.25.37s-1.11-.31-1.683-.89c-.573.58-.795.71-.795.71l.08.634-2.76 2.89zm6.26-4.395c1.817 0 3.29-1.53 3.29-3.4 0-1.88-1.473-3.4-3.29-3.4s-3.29 1.52-3.29 3.4c0 1.87 1.473 3.4 3.29 3.4z"/>\n</svg>\n'},25:function(n,t){n.exports=".algolia-places {\n width: 100%;\n}\n\n.ap-input, .ap-hint {\n width: 100%;\n padding-right: 35px;\n padding-left: 16px;\n line-height: 40px;\n height: 40px;\n border: 1px solid #CCC;\n border-radius: 3px;\n outline: none;\n font: inherit;\n appearance: none;\n -webkit-appearance: none;\n box-sizing: border-box;\n}\n\n.ap-input::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n.ap-input::-ms-clear {\n display: none;\n}\n\n.ap-input:hover ~ .ap-input-icon svg,\n.ap-input:focus ~ .ap-input-icon svg,\n.ap-input-icon:hover svg {\n fill: #aaaaaa;\n}\n\n.ap-dropdown-menu {\n width: 100%;\n background: #ffffff;\n box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n margin-top: 3px;\n overflow: hidden;\n}\n\n.ap-suggestion {\n cursor: pointer;\n height: 46px;\n line-height: 46px;\n padding-left: 18px;\n overflow: hidden;\n}\n\n.ap-suggestion em {\n font-weight: bold;\n font-style: normal;\n}\n\n.ap-address {\n font-size: smaller;\n margin-left: 12px;\n color: #aaaaaa;\n}\n\n.ap-suggestion-icon {\n margin-right: 10px;\n width: 14px;\n height: 20px;\n vertical-align: middle;\n}\n\n.ap-suggestion-icon svg {\n -webkit-transform: scale(0.9) translateY(2px);\n transform: scale(0.9) translateY(2px);\n fill: #cfcfcf;\n}\n\n.ap-input-icon {\n border: 0;\n background: transparent;\n position: absolute;\n top: 0;\n bottom: 0;\n right: 16px;\n outline: none;\n}\n\n.ap-input-icon.ap-icon-pin {\n cursor: initial;\n}\n\n.ap-input-icon svg {\n fill: #cfcfcf;\n position: absolute;\n top: 50%;\n right: 0;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n}\n\n.ap-cursor {\n background: #efefef;\n}\n\n.ap-cursor .ap-suggestion-icon svg {\n -webkit-transform: scale(1) translateY(2px);\n transform: scale(1) translateY(2px);\n fill: #aaaaaa;\n}\n\n.ap-footer {\n opacity: .8;\n text-align: right;\n padding: .5em 1em .5em 0;\n font-size: 12px;\n line-height: 12px;\n}\n\n.ap-footer a {\n color: inherit;\n text-decoration: none;\n}\n\n.ap-footer a svg {\n vertical-align: middle;\n}\n\n.ap-footer:hover {\n opacity: 1;\n}\n"},26:function(n,t){var c=[],s=[];function e(n,t){if(t=t||{},void 0===n)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var e,o,a=!0===t.prepend?"prepend":"append",r=void 0!==t.container?t.container:document.querySelector("head"),i=c.indexOf(r);return-1===i&&(i=c.push(r)-1,s[i]={}),void 0!==s[i]&&void 0!==s[i][a]?e=s[i][a]:(e=s[i][a]=((o=document.createElement("style")).setAttribute("type","text/css"),o),"prepend"===a?r.insertBefore(e,r.childNodes[0]):r.appendChild(e)),65279===n.charCodeAt(0)&&(n=n.substr(1,n.length)),e.styleSheet?e.styleSheet.cssText+=n:e.textContent+=n,e}n.exports=e,n.exports.insertCss=e},27:function(n,t,e){"use strict";e.r(t);var I=e(1),_=e(9),k=e(6);function B(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},o=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(e).filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.forEach(function(n){a(t,n,e[n])})}return t}function a(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var o=e(8);function r(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},o=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(e).filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.forEach(function(n){i(t,n,e[n])})}return t}function i(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function c(n){var t=r({},o.a,n.templates);return{source:function(n){var t=n.algoliasearch,e=n.clientOptions,o=n.apiKey,a=n.appId,r=n.hitsPerPage,i=n.aroundLatLng,c=n.aroundRadius,s=n.aroundLatLngViaIP,u=n.insideBoundingBox,l=n.insidePolygon,p=n.getRankingInfo,d=n.countries,h=n.formatInputValue,g=n.computeQueryParams,v=void 0===g?function(n){return n}:g,f=n.useDeviceLocation,m=void 0!==f&&f,w=n.language,y=void 0===w?navigator.language.split("-")[0]:w,b=n.onHits,x=void 0===b?function(){}:b,z=n.onError,P=void 0===z?function(n){throw n}:z,L=n.onRateLimitReached,O=n.type,V=t.initPlaces(a,o,e);V.as.addAlgoliaAgent("Algolia Places ".concat(k.default));var j,S=Object(I.a)({hitsPerPage:r,type:O,countries:d,language:y,aroundLatLng:i,aroundRadius:c,aroundLatLngViaIP:s,insideBoundingBox:u,insidePolygon:l,getRankingInfo:p,formatInputValue:h,computeQueryParams:v,useDeviceLocation:m,onHits:x,onError:P,onRateLimitReached:L}),H=S.params,M=S.controls,R=null;function C(o,n){var t=B({},H,{query:o});return j&&(t.aroundLatLng=j),V.search(M.computeQueryParams(t)).then(function(e){var n=e.hits.map(function(n,t){return Object(_.a)({formatInputValue:M.formatInputValue,hit:n,hitIndex:t,query:o,rawAnswer:e})});return M.onHits({hits:n,query:o,rawAnswer:e}),n}).then(n).catch(function(n){429!==n.statusCode?M.onError(n):M.onRateLimitReached()})}return M.useDeviceLocation&&(R=navigator.geolocation.watchPosition(function(n){var t=n.coords;j="".concat(t.latitude,",").concat(t.longitude)})),C.configure=function(n){var t=Object(I.a)(B({},H,M,n));H=t.params,(M=t.controls).useDeviceLocation&&null===R?R=navigator.geolocation.watchPosition(function(n){var t=n.coords;j="".concat(t.latitude,",").concat(t.longitude)}):M.useDeviceLocation||null===R||(navigator.geolocation.clearWatch(R),j=R=null)},C}(r({},n,{formatInputValue:t.value,templates:void 0})),templates:t,displayKey:"value",name:"places",cache:!1}}e.d(t,"default",function(){return c})},37:function(n,t){"language"in navigator||(navigator.language=navigator.userLanguage&&navigator.userLanguage.replace(/-[a-z]{2}$/,String.prototype.toUpperCase)||"en-US")},6:function(n,t,e){"use strict";e.r(t),t.default="1.16.1"},7:function(n,t){n.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 14 20"><path d="M7 0C3.13 0 0 3.13 0 7c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5C5.62 9.5 4.5 8.38 4.5 7S5.62 4.5 7 4.5 9.5 5.62 9.5 7 8.38 9.5 7 9.5z"/></svg>\n'},78:function(n,t,e){e(37);var o=e(27).default,a=e(25);e(26)(a,{prepend:!0}),n.exports=o},8:function(n,t,e){"use strict";var o=e(7),a=e.n(o),r=e(15),i=e.n(r),c=e(16),s=e.n(c),u=e(17),l=e.n(u),p=e(18),d=e.n(p),h=e(19),g=e.n(h),v=e(20),f=e.n(v),m={address:a.a,city:i.a,country:s.a,busStop:l.a,trainStation:d.a,townhall:g.a,airport:f.a};var w=e(21),y=e.n(w),b=e(22),x=e.n(b);t.a={footer:'<div class="ap-footer">\n <a href="https://www.algolia.com/places" title="Search by Algolia" class="ap-footer-algolia">'.concat(y.a.trim(),'</a>\n using <a href="https://community.algolia.com/places/documentation.html#license" class="ap-footer-osm" title="Algolia Places data © OpenStreetMap contributors">').concat(x.a.trim()," <span>data</span></a>\n </div>"),value:function(n){var t=n.administrative,e=n.city,o=n.country,a=n.name,r=n.type;return"".concat(a).concat("country"!==r&&void 0!==o?",":"","\n ").concat(e?"".concat(e,","):"","\n ").concat(t?"".concat(t,","):"","\n ").concat(o||"").replace(/\s*\n\s*/g," ").trim()},suggestion:function(n){var t=n.type,e=n.highlight,o=e.name,a=e.administrative,r=e.city,i=e.country;return'<span class="ap-suggestion-icon">'.concat(m[t].trim(),'</span>\n<span class="ap-name">').concat(o,'</span>\n<span class="ap-address">\n ').concat([r,a,i].filter(function(n){return void 0!==n}).join(", "),"</span>").replace(/\s*\n\s*/g," ")}}},9:function(n,t,e){"use strict";function m(n){for(var t=n[0].value,e=[],o=1;o<n.length;++o)"none"!==n[o].matchLevel&&e.push({index:o,words:n[o].matchedWords});return 0===e.length?t:(e.sort(function(n,t){return n.words>t.words?-1:n.words<t.words?1:n.index-t.index}),0===e[0].index?"".concat(t," (").concat(n[e[1].index].value,")"):"".concat(n[e[0].index].value," (").concat(t,")"))}function o(n){var t=n.formatInputValue,e=n.hit,o=n.hitIndex,a=n.query,r=n.rawAnswer;try{var i=e.locale_names[0],c=e.country,s=e.administrative&&e.administrative[0]!==i?e.administrative[0]:void 0,u=e.city&&e.city[0]!==i?e.city[0]:void 0,l=e.suburb&&e.suburb[0]!==i?e.suburb[0]:void 0,p=e.county&&e.county[0]!==i?e.county[0]:void 0,d=e.postcode?function(n,t){for(var e=t[0].value,o=[],a=1;a<t.length;++a)"none"!==t[a].matchLevel&&o.push({index:a,words:t[a].matchedWords});return 0===o.length?{postcode:n[0],highlightedPostcode:e}:(o.sort(function(n,t){return n.words>t.words?-1:n.words<t.words?1:n.index-t.index}),{postcode:n[o[0].index],highlightedPostcode:t[o[0].index].value})}(e.postcode,e._highlightResult.postcode):{postcode:void 0,highlightedPostcode:void 0},h=d.postcode,g=d.highlightedPostcode,v={name:m(e._highlightResult.locale_names),city:u?m(e._highlightResult.city):void 0,administrative:s?m(e._highlightResult.administrative):void 0,country:c?e._highlightResult.country.value:void 0,suburb:l?m(e._highlightResult.suburb):void 0,county:p?m(e._highlightResult.county):void 0,postcode:g},f={name:i,administrative:s,county:p,city:u,suburb:l,country:c,countryCode:function(n){for(var t=0;t<n.length;t++){var e=n[t].match(/country\/(.*)?/);if(e)return e[1]}}(e._tags),type:function(n){var t={country:"country",city:"city","amenity/bus_station":"busStop","amenity/townhall":"townhall","railway/station":"trainStation","aeroway/aerodrome":"airport","aeroway/terminal":"airport","aeroway/gate":"airport"};for(var e in t)if(-1!==n.indexOf(e))return t[e];return"address"}(e._tags),latlng:{lat:e._geoloc.lat,lng:e._geoloc.lng},postcode:h,postcodes:e.postcode?e.postcode:void 0};return function(a){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),t.forEach(function(n){var t,e,o;t=a,o=r[e=n],e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o})}return a}({},f,{highlight:v,hit:e,hitIndex:o,query:a,rawAnswer:r,value:t(f)})}catch(n){return console.error("Could not parse object",e),console.error(n),{value:"Could not parse object"}}}e.d(t,"a",function(){return o})}})});
 
 
js/leaflet/leaflet.js DELETED
@@ -1,5 +0,0 @@
1
- /* @preserve
2
- * Leaflet 1.3.4+Detached: 0e566b2ad5e696ba9f79a9d48a7e51c8f4892441.0e566b2, a JS library for interactive maps. http://leafletjs.com
3
- * (c) 2010-2018 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
- */
5
- !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i(t.L={})}(this,function(t){"use strict";function i(t){var i,e,n,o;for(e=1,n=arguments.length;e<n;e++){o=arguments[e];for(i in o)t[i]=o[i]}return t}function e(t,i){var e=Array.prototype.slice;if(t.bind)return t.bind.apply(t,e.call(arguments,1));var n=e.call(arguments,2);return function(){return t.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}function n(t){return t._leaflet_id=t._leaflet_id||++ei,t._leaflet_id}function o(t,i,e){var n,o,s,r;return r=function(){n=!1,o&&(s.apply(e,o),o=!1)},s=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(r,i),n=!0)}}function s(t,i,e){var n=i[1],o=i[0],s=n-o;return t===n&&e?t:((t-o)%s+s)%s+o}function r(){return!1}function a(t,i){var e=Math.pow(10,void 0===i?6:i);return Math.round(t*e)/e}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return h(t).split(/\s+/)}function l(t,i){t.hasOwnProperty("options")||(t.options=t.options?ii(t.options):{});for(var e in i)t.options[e]=i[e];return t.options}function c(t,i,e){var n=[];for(var o in t)n.push(encodeURIComponent(e?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(i&&-1!==i.indexOf("?")?"&":"?")+n.join("&")}function _(t,i){return t.replace(ni,function(t,e){var n=i[e];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(i)),n})}function d(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}function p(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}function m(t){var i=+new Date,e=Math.max(0,16-(i-ri));return ri=i+e,window.setTimeout(t,e)}function f(t,i,n){if(!n||ai!==m)return ai.call(window,e(t,i));t.call(i)}function g(t){t&&hi.call(window,t)}function v(){}function y(t){if("undefined"!=typeof L&&L&&L.Mixin){t=oi(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}function x(t,i,e){this.x=e?Math.round(t):t,this.y=e?Math.round(i):i}function w(t,i,e){return t instanceof x?t:oi(t)?new x(t[0],t[1]):void 0===t||null===t?t:"object"==typeof t&&"x"in t&&"y"in t?new x(t.x,t.y):new x(t,i,e)}function P(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function b(t,i){return!t||t instanceof P?t:new P(t,i)}function T(t,i){if(t)for(var e=i?[t,i]:t,n=0,o=e.length;n<o;n++)this.extend(e[n])}function z(t,i){return t instanceof T?t:new T(t,i)}function M(t,i,e){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==e&&(this.alt=+e)}function C(t,i,e){return t instanceof M?t:oi(t)&&"object"!=typeof t[0]?3===t.length?new M(t[0],t[1],t[2]):2===t.length?new M(t[0],t[1]):null:void 0===t||null===t?t:"object"==typeof t&&"lat"in t?new M(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new M(t,i,e)}function S(t,i,e,n){if(oi(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=i,this._c=e,this._d=n}function Z(t,i,e,n){return new S(t,i,e,n)}function E(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function k(t,i){var e,n,o,s,r,a,h="";for(e=0,o=t.length;e<o;e++){for(n=0,s=(r=t[e]).length;n<s;n++)a=r[n],h+=(n?"L":"M")+a.x+" "+a.y;h+=i?Ji?"z":"x":""}return h||"M0 0"}function A(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}function B(t,i,e,n){return"touchstart"===i?O(t,e,n):"touchmove"===i?W(t,e,n):"touchend"===i&&H(t,e,n),this}function I(t,i,e){var n=t["_leaflet_"+i+e];return"touchstart"===i?t.removeEventListener(te,n,!1):"touchmove"===i?t.removeEventListener(ie,n,!1):"touchend"===i&&(t.removeEventListener(ee,n,!1),t.removeEventListener(ne,n,!1)),this}function O(t,i,n){var o=e(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(oe.indexOf(t.target.tagName)<0))return;Pt(t)}j(t,i)});t["_leaflet_touchstart"+n]=o,t.addEventListener(te,o,!1),re||(document.documentElement.addEventListener(te,R,!0),document.documentElement.addEventListener(ie,N,!0),document.documentElement.addEventListener(ee,D,!0),document.documentElement.addEventListener(ne,D,!0),re=!0)}function R(t){se[t.pointerId]=t,ae++}function N(t){se[t.pointerId]&&(se[t.pointerId]=t)}function D(t){delete se[t.pointerId],ae--}function j(t,i){t.touches=[];for(var e in se)t.touches.push(se[e]);t.changedTouches=[t],i(t)}function W(t,i,e){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&j(t,i)};t["_leaflet_touchmove"+e]=n,t.addEventListener(ie,n,!1)}function H(t,i,e){var n=function(t){j(t,i)};t["_leaflet_touchend"+e]=n,t.addEventListener(ee,n,!1),t.addEventListener(ne,n,!1)}function F(t,i,e){function n(t){var i;if(Vi){if(!bi||"mouse"===t.pointerType)return;i=ae}else i=t.touches.length;if(!(i>1)){var e=Date.now(),n=e-(s||e);r=t.touches?t.touches[0]:t,a=n>0&&n<=h,s=e}}function o(t){if(a&&!r.cancelBubble){if(Vi){if(!bi||"mouse"===t.pointerType)return;var e,n,o={};for(n in r)e=r[n],o[n]=e&&e.bind?e.bind(r):e;r=o}r.type="dblclick",i(r),s=null}}var s,r,a=!1,h=250;return t[le+he+e]=n,t[le+ue+e]=o,t[le+"dblclick"+e]=i,t.addEventListener(he,n,!1),t.addEventListener(ue,o,!1),t.addEventListener("dblclick",i,!1),this}function U(t,i){var e=t[le+he+i],n=t[le+ue+i],o=t[le+"dblclick"+i];return t.removeEventListener(he,e,!1),t.removeEventListener(ue,n,!1),bi||t.removeEventListener("dblclick",o,!1),this}function V(t){return"string"==typeof t?document.getElementById(t):t}function q(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||"auto"===e)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);e=n?n[i]:null}return"auto"===e?null:e}function G(t,i,e){var n=document.createElement(t);return n.className=i||"",e&&e.appendChild(n),n}function K(t){var i=t.parentNode;i&&i.removeChild(t)}function Y(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function X(t){var i=t.parentNode;i.lastChild!==t&&i.appendChild(t)}function J(t){var i=t.parentNode;i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function $(t,i){if(void 0!==t.classList)return t.classList.contains(i);var e=et(t);return e.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function Q(t,i){if(void 0!==t.classList)for(var e=u(i),n=0,o=e.length;n<o;n++)t.classList.add(e[n]);else if(!$(t,i)){var s=et(t);it(t,(s?s+" ":"")+i)}}function tt(t,i){void 0!==t.classList?t.classList.remove(i):it(t,h((" "+et(t)+" ").replace(" "+i+" "," ")))}function it(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function et(t){return void 0===t.className.baseVal?t.className:t.className.baseVal}function nt(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&ot(t,i)}function ot(t,i){var e=!1,n="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(n)}catch(t){if(1===i)return}i=Math.round(100*i),e?(e.Enabled=100!==i,e.Opacity=i):t.style.filter+=" progid:"+n+"(opacity="+i+")"}function st(t){for(var i=document.documentElement.style,e=0;e<t.length;e++)if(t[e]in i)return t[e];return!1}function rt(t,i,e){var n=i||new x(0,0);t.style[ce]=(Ri?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(e?" scale("+e+")":"")}function at(t,i){t._leaflet_pos=i,ji?rt(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function ht(t){return t._leaflet_pos||new x(0,0)}function ut(){mt(window,"dragstart",Pt)}function lt(){ft(window,"dragstart",Pt)}function ct(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(_t(),me=t,fe=t.style.outline,t.style.outline="none",mt(window,"keydown",_t))}function _t(){me&&(me.style.outline=fe,me=void 0,fe=void 0,ft(window,"keydown",_t))}function dt(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function pt(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}function mt(t,i,e,n){if("object"==typeof i)for(var o in i)gt(t,o,i[o],e);else for(var s=0,r=(i=u(i)).length;s<r;s++)gt(t,i[s],e,n);return this}function ft(t,i,e,n){if("object"==typeof i)for(var o in i)vt(t,o,i[o],e);else if(i)for(var s=0,r=(i=u(i)).length;s<r;s++)vt(t,i[s],e,n);else{for(var a in t[ye])vt(t,a,t[ye][a]);delete t[ye]}return this}function gt(t,i,e,o){var s=i+n(e)+(o?"_"+n(o):"");if(t[ye]&&t[ye][s])return this;var r=function(i){return e.call(o||t,i||window.event)},a=r;Vi&&0===i.indexOf("touch")?B(t,i,r,s):!qi||"dblclick"!==i||!F||Vi&&Ei?"addEventListener"in t?"mousewheel"===i?t.addEventListener("onwheel"in t?"wheel":"mousewheel",r,!1):"mouseenter"===i||"mouseleave"===i?(r=function(i){i=i||window.event,Ct(t,i)&&a(i)},t.addEventListener("mouseenter"===i?"mouseover":"mouseout",r,!1)):("click"===i&&zi&&(r=function(t){St(t,a)}),t.addEventListener(i,r,!1)):"attachEvent"in t&&t.attachEvent("on"+i,r):F(t,r,s),t[ye]=t[ye]||{},t[ye][s]=r}function vt(t,i,e,o){var s=i+n(e)+(o?"_"+n(o):""),r=t[ye]&&t[ye][s];if(!r)return this;Vi&&0===i.indexOf("touch")?I(t,i,s):!qi||"dblclick"!==i||!U||Vi&&Ei?"removeEventListener"in t?"mousewheel"===i?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",r,!1):t.removeEventListener("mouseenter"===i?"mouseover":"mouseleave"===i?"mouseout":i,r,!1):"detachEvent"in t&&t.detachEvent("on"+i,r):U(t,s),t[ye][s]=null}function yt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Mt(t),this}function xt(t){return gt(t,"mousewheel",yt),this}function wt(t){return mt(t,"mousedown touchstart dblclick",yt),gt(t,"click",zt),this}function Pt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Lt(t){return Pt(t),yt(t),this}function bt(t,i){if(!i)return new x(t.clientX,t.clientY);var e=pt(i),n=e.boundingClientRect;return new x((t.clientX-n.left)/e.x-i.clientLeft,(t.clientY-n.top)/e.y-i.clientTop)}function Tt(t){return bi?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/xe:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function zt(t){we[t.type]=!0}function Mt(t){var i=we[t.type];return we[t.type]=!1,i}function Ct(t,i){var e=i.relatedTarget;if(!e)return!0;try{for(;e&&e!==t;)e=e.parentNode}catch(t){return!1}return e!==t}function St(t,i){var e=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=ge&&e-ge;n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated?Lt(t):(ge=e,i(t))}function Zt(t,i){if(!i||!t.length)return t.slice();var e=i*i;return t=Bt(t,e),t=kt(t,e)}function Et(t,i,e){return Math.sqrt(Dt(t,i,e,!0))}function kt(t,i){var e=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(e);n[0]=n[e-1]=1,At(t,n,i,0,e-1);var o,s=[];for(o=0;o<e;o++)n[o]&&s.push(t[o]);return s}function At(t,i,e,n,o){var s,r,a,h=0;for(r=n+1;r<=o-1;r++)(a=Dt(t[r],t[n],t[o],!0))>h&&(s=r,h=a);h>e&&(i[s]=1,At(t,i,e,n,s),At(t,i,e,s,o))}function Bt(t,i){for(var e=[t[0]],n=1,o=0,s=t.length;n<s;n++)Nt(t[n],t[o])>i&&(e.push(t[n]),o=n);return o<s-1&&e.push(t[s-1]),e}function It(t,i,e,n,o){var s,r,a,h=n?ke:Rt(t,e),u=Rt(i,e);for(ke=u;;){if(!(h|u))return[t,i];if(h&u)return!1;a=Rt(r=Ot(t,i,s=h||u,e,o),e),s===h?(t=r,h=a):(i=r,u=a)}}function Ot(t,i,e,n,o){var s,r,a=i.x-t.x,h=i.y-t.y,u=n.min,l=n.max;return 8&e?(s=t.x+a*(l.y-t.y)/h,r=l.y):4&e?(s=t.x+a*(u.y-t.y)/h,r=u.y):2&e?(s=l.x,r=t.y+h*(l.x-t.x)/a):1&e&&(s=u.x,r=t.y+h*(u.x-t.x)/a),new x(s,r,o)}function Rt(t,i){var e=0;return t.x<i.min.x?e|=1:t.x>i.max.x&&(e|=2),t.y<i.min.y?e|=4:t.y>i.max.y&&(e|=8),e}function Nt(t,i){var e=i.x-t.x,n=i.y-t.y;return e*e+n*n}function Dt(t,i,e,n){var o,s=i.x,r=i.y,a=e.x-s,h=e.y-r,u=a*a+h*h;return u>0&&((o=((t.x-s)*a+(t.y-r)*h)/u)>1?(s=e.x,r=e.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new x(s,r)}function jt(t){return!oi(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Wt(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),jt(t)}function Ht(t,i,e){var n,o,s,r,a,h,u,l,c,_=[1,4,2,8];for(o=0,u=t.length;o<u;o++)t[o]._code=Rt(t[o],i);for(r=0;r<4;r++){for(l=_[r],n=[],o=0,s=(u=t.length)-1;o<u;s=o++)a=t[o],h=t[s],a._code&l?h._code&l||((c=Ot(h,a,l,i,e))._code=Rt(c,i),n.push(c)):(h._code&l&&((c=Ot(h,a,l,i,e))._code=Rt(c,i),n.push(c)),n.push(a));t=n}return t}function Ft(t,i){var e,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,h=[],u=i&&i.pointToLayer,l=i&&i.coordsToLatLng||Ut;if(!a&&!r)return null;switch(r.type){case"Point":return e=l(a),u?u(t,e):new $e(e);case"MultiPoint":for(o=0,s=a.length;o<s;o++)e=l(a[o]),h.push(u?u(t,e):new $e(e));return new Ke(h);case"LineString":case"MultiLineString":return n=Vt(a,"LineString"===r.type?0:1,l),new nn(n,i);case"Polygon":case"MultiPolygon":return n=Vt(a,"Polygon"===r.type?1:2,l),new on(n,i);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var c=Ft({geometry:r.geometries[o],type:"Feature",properties:t.properties},i);c&&h.push(c)}return new Ke(h);default:throw new Error("Invalid GeoJSON object.")}}function Ut(t){return new M(t[1],t[0],t[2])}function Vt(t,i,e){for(var n,o=[],s=0,r=t.length;s<r;s++)n=i?Vt(t[s],i-1,e):(e||Ut)(t[s]),o.push(n);return o}function qt(t,i){return i="number"==typeof i?i:6,void 0!==t.alt?[a(t.lng,i),a(t.lat,i),a(t.alt,i)]:[a(t.lng,i),a(t.lat,i)]}function Gt(t,i,e,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(i?Gt(t[s],i-1,e,n):qt(t[s],n));return!i&&e&&o.push(o[0]),o}function Kt(t,e){return t.feature?i({},t.feature,{geometry:e}):Yt(e)}function Yt(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function Xt(t,i){return new sn(t,i)}function Jt(t,i){return new mn(t,i)}function $t(t){return Xi?new vn(t):null}function Qt(t){return Ji||$i?new Pn(t):null}var ti=Object.freeze;Object.freeze=function(t){return t};var ii=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}(),ei=0,ni=/\{ *([\w_-]+) *\}/g,oi=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},si="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",ri=0,ai=window.requestAnimationFrame||p("RequestAnimationFrame")||m,hi=window.cancelAnimationFrame||p("CancelAnimationFrame")||p("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)},ui=(Object.freeze||Object)({freeze:ti,extend:i,create:ii,bind:e,lastId:ei,stamp:n,throttle:o,wrapNum:s,falseFn:r,formatNum:a,trim:h,splitWords:u,setOptions:l,getParamString:c,template:_,isArray:oi,indexOf:d,emptyImageUrl:si,requestFn:ai,cancelFn:hi,requestAnimFrame:f,cancelAnimFrame:g});v.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,o=ii(n);o.constructor=e,e.prototype=o;for(var s in this)this.hasOwnProperty(s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&(i(e,t.statics),delete t.statics),t.includes&&(y(t.includes),i.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=i(ii(o.options),t.options)),i(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=o._initHooks.length;t<i;t++)o._initHooks[t].call(this)}},e},v.include=function(t){return i(this.prototype,t),this},v.mergeOptions=function(t){return i(this.prototype.options,t),this},v.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),e="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this};var li={on:function(t,i,e){if("object"==typeof t)for(var n in t)this._on(n,t[n],i);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._on(t[o],i,e);return this},off:function(t,i,e){if(t)if("object"==typeof t)for(var n in t)this._off(n,t[n],i);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._off(t[o],i,e);else delete this._events;return this},_on:function(t,i,e){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),e===this&&(e=void 0);for(var o={fn:i,ctx:e},s=n,r=0,a=s.length;r<a;r++)if(s[r].fn===i&&s[r].ctx===e)return;s.push(o)},_off:function(t,i,e){var n,o,s;if(this._events&&(n=this._events[t]))if(i){if(e===this&&(e=void 0),n)for(o=0,s=n.length;o<s;o++){var a=n[o];if(a.ctx===e&&a.fn===i)return a.fn=r,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}else{for(o=0,s=n.length;o<s;o++)n[o].fn=r;delete this._events[t]}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,a=s.length;r<a;r++){var h=s[r];h.fn.call(h.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,i){var e=this._events&&this._events[t];if(e&&e.length)return!0;if(i)for(var n in this._eventParents)if(this._eventParents[n].listens(t,i))return!0;return!1},once:function(t,i,n){if("object"==typeof t){for(var o in t)this.once(o,t[o],i);return this}var s=e(function(){this.off(t,i,n).off(t,s,n)},this);return this.on(t,i,n).on(t,s,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[n(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[n(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};li.addEventListener=li.on,li.removeEventListener=li.clearAllEventListeners=li.off,li.addOneTimeEventListener=li.once,li.fireEvent=li.fire,li.hasEventListeners=li.listens;var ci=v.extend(li),_i=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new x(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new x(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=_i(this.x),this.y=_i(this.y),this},distanceTo:function(t){var i=(t=w(t)).x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){return(t=w(t)).x===this.x&&t.y===this.y},contains:function(t){return t=w(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+a(this.x)+", "+a(this.y)+")"}},P.prototype={extend:function(t){return t=w(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new x((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new x(this.min.x,this.max.y)},getTopRight:function(){return new x(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,e;return(t="number"==typeof t[0]||t instanceof x?w(t):b(t))instanceof P?(i=t.min,e=t.max):i=e=t,i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>=i.x&&n.x<=e.x,r=o.y>=i.y&&n.y<=e.y;return s&&r},overlaps:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>i.x&&n.x<e.x,r=o.y>i.y&&n.y<e.y;return s&&r},isValid:function(){return!(!this.min||!this.max)}},T.prototype={extend:function(t){var i,e,n=this._southWest,o=this._northEast;if(t instanceof M)i=t,e=t;else{if(!(t instanceof T))return t?this.extend(C(t)||z(t)):this;if(i=t._southWest,e=t._northEast,!i||!e)return this}return n||o?(n.lat=Math.min(i.lat,n.lat),n.lng=Math.min(i.lng,n.lng),o.lat=Math.max(e.lat,o.lat),o.lng=Math.max(e.lng,o.lng)):(this._southWest=new M(i.lat,i.lng),this._northEast=new M(e.lat,e.lng)),this},pad:function(t){var i=this._southWest,e=this._northEast,n=Math.abs(i.lat-e.lat)*t,o=Math.abs(i.lng-e.lng)*t;return new T(new M(i.lat-n,i.lng-o),new M(e.lat+n,e.lng+o))},getCenter:function(){return new M((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new M(this.getNorth(),this.getWest())},getSouthEast:function(){return new M(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof M||"lat"in t?C(t):z(t);var i,e,n=this._southWest,o=this._northEast;return t instanceof T?(i=t.getSouthWest(),e=t.getNorthEast()):i=e=t,i.lat>=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=i.lat&&n.lat<=e.lat,r=o.lng>=i.lng&&n.lng<=e.lng;return s&&r},overlaps:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>i.lat&&n.lat<e.lat,r=o.lng>i.lng&&n.lng<e.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=z(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}},M.prototype={equals:function(t,i){return!!t&&(t=C(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===i?1e-9:i))},toString:function(t){return"LatLng("+a(this.lat,t)+", "+a(this.lng,t)+")"},distanceTo:function(t){return pi.distance(this,C(t))},wrap:function(){return pi.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,e=i/Math.cos(Math.PI/180*this.lat);return z([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new M(this.lat,this.lng,this.alt)}};var di={latLngToPoint:function(t,i){var e=this.projection.project(t),n=this.scale(i);return this.transformation._transform(e,n)},pointToLatLng:function(t,i){var e=this.scale(i),n=this.transformation.untransform(t,e);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,e=this.scale(t);return new P(this.transformation.transform(i.min,e),this.transformation.transform(i.max,e))},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?s(t.lng,this.wrapLng,!0):t.lng;return new M(this.wrapLat?s(t.lat,this.wrapLat,!0):t.lat,i,t.alt)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),n=i.lat-e.lat,o=i.lng-e.lng;if(0===n&&0===o)return t;var s=t.getSouthWest(),r=t.getNorthEast();return new T(new M(s.lat-n,s.lng-o),new M(r.lat-n,r.lng-o))}},pi=i({},di,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,n=t.lat*e,o=i.lat*e,s=Math.sin((i.lat-t.lat)*e/2),r=Math.sin((i.lng-t.lng)*e/2),a=s*s+Math.cos(n)*Math.cos(o)*r*r,h=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*h}}),mi={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,n=Math.max(Math.min(e,t.lat),-e),o=Math.sin(n*i);return new x(this.R*t.lng*i,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var i=180/Math.PI;return new M((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=6378137*Math.PI;return new P([-t,-t],[t,t])}()};S.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new x((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};var fi,gi,vi,yi=i({},pi,{code:"EPSG:3857",projection:mi,transformation:function(){var t=.5/(Math.PI*mi.R);return Z(t,.5,-t,.5)}()}),xi=i({},yi,{code:"EPSG:900913"}),wi=document.documentElement.style,Pi="ActiveXObject"in window,Li=Pi&&!document.addEventListener,bi="msLaunchUri"in navigator&&!("documentMode"in document),Ti=A("webkit"),zi=A("android"),Mi=A("android 2")||A("android 3"),Ci=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Si=zi&&A("Google")&&Ci<537&&!("AudioNode"in window),Zi=!!window.opera,Ei=A("chrome"),ki=A("gecko")&&!Ti&&!Zi&&!Pi,Ai=!Ei&&A("safari"),Bi=A("phantom"),Ii="OTransition"in wi,Oi=0===navigator.platform.indexOf("Win"),Ri=Pi&&"transition"in wi,Ni="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Mi,Di="MozPerspective"in wi,ji=!window.L_DISABLE_3D&&(Ri||Ni||Di)&&!Ii&&!Bi,Wi="undefined"!=typeof orientation||A("mobile"),Hi=Wi&&Ti,Fi=Wi&&Ni,Ui=!window.PointerEvent&&window.MSPointerEvent,Vi=!(!window.PointerEvent&&!Ui),qi=!window.L_NO_TOUCH&&(Vi||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Gi=Wi&&Zi,Ki=Wi&&ki,Yi=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Xi=!!document.createElement("canvas").getContext,Ji=!(!document.createElementNS||!E("svg").createSVGRect),$i=!Ji&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}(),Qi=(Object.freeze||Object)({ie:Pi,ielt9:Li,edge:bi,webkit:Ti,android:zi,android23:Mi,androidStock:Si,opera:Zi,chrome:Ei,gecko:ki,safari:Ai,phantom:Bi,opera12:Ii,win:Oi,ie3d:Ri,webkit3d:Ni,gecko3d:Di,any3d:ji,mobile:Wi,mobileWebkit:Hi,mobileWebkit3d:Fi,msPointer:Ui,pointer:Vi,touch:qi,mobileOpera:Gi,mobileGecko:Ki,retina:Yi,canvas:Xi,svg:Ji,vml:$i}),te=Ui?"MSPointerDown":"pointerdown",ie=Ui?"MSPointerMove":"pointermove",ee=Ui?"MSPointerUp":"pointerup",ne=Ui?"MSPointerCancel":"pointercancel",oe=["INPUT","SELECT","OPTION"],se={},re=!1,ae=0,he=Ui?"MSPointerDown":Vi?"pointerdown":"touchstart",ue=Ui?"MSPointerUp":Vi?"pointerup":"touchend",le="_leaflet_",ce=st(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_e=st(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===_e||"OTransition"===_e?_e+"End":"transitionend";if("onselectstart"in document)fi=function(){mt(window,"selectstart",Pt)},gi=function(){ft(window,"selectstart",Pt)};else{var pe=st(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);fi=function(){if(pe){var t=document.documentElement.style;vi=t[pe],t[pe]="none"}},gi=function(){pe&&(document.documentElement.style[pe]=vi,vi=void 0)}}var me,fe,ge,ve=(Object.freeze||Object)({TRANSFORM:ce,TRANSITION:_e,TRANSITION_END:de,get:V,getStyle:q,create:G,remove:K,empty:Y,toFront:X,toBack:J,hasClass:$,addClass:Q,removeClass:tt,setClass:it,getClass:et,setOpacity:nt,testProp:st,setTransform:rt,setPosition:at,getPosition:ht,disableTextSelection:fi,enableTextSelection:gi,disableImageDrag:ut,enableImageDrag:lt,preventOutline:ct,restoreOutline:_t,getSizedParentNode:dt,getScale:pt}),ye="_leaflet_events",xe=Oi&&Ei?2*window.devicePixelRatio:ki?window.devicePixelRatio:1,we={},Pe=(Object.freeze||Object)({on:mt,off:ft,stopPropagation:yt,disableScrollPropagation:xt,disableClickPropagation:wt,preventDefault:Pt,stop:Lt,getMousePosition:bt,getWheelDelta:Tt,fakeStop:zt,skipped:Mt,isExternalTarget:Ct,addListener:mt,removeListener:ft}),Le=ci.extend({run:function(t,i,e,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=e||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=ht(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=f(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,e=1e3*this._duration;i<e?this._runFrame(this._easeOut(i/e),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var e=this._startPos.add(this._offset.multiplyBy(t));i&&e._round(),at(this._el,e),this.fire("step")},_complete:function(){g(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),be=ci.extend({options:{crs:yi,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=l(this,i),this._initContainer(t),this._initLayout(),this._onResize=e(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(C(i.center),i.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this.callInitHooks(),this._zoomAnimated=_e&&ji&&!Gi&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),mt(this._proxy,de,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(C(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=i({animate:n.animate},n.zoom),n.pan=i({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e),this)},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(ji?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(ji?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var n=this.getZoomScale(i),o=this.getSize().divideBy(2),s=(t instanceof x?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(s));return this.setView(r,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():z(t);var e=w(i.paddingTopLeft||i.padding||[0,0]),n=w(i.paddingBottomRight||i.padding||[0,0]),o=this.getBoundsZoom(t,!1,e.add(n));if((o="number"==typeof i.maxZoom?Math.min(i.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(e).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(r.add(a).divideBy(2).add(s),o),zoom:o}},fitBounds:function(t,i){if(!(t=z(t)).isValid())throw new Error("Bounds are not valid.");var e=this._getBoundsCenterZoom(t,i);return this.setView(e.center,e.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=w(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(!0!==i.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Le,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),!1!==i.animate){Q(this._mapPane,"leaflet-pan-anim");var e=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,e){function n(t){var i=(g*g-m*m+(t?-1:1)*x*x*v*v)/(2*(t?g:m)*x*v),e=Math.sqrt(i*i+1)-i;return e<1e-9?-18:Math.log(e)}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function s(t){return(Math.exp(t)+Math.exp(-t))/2}function r(t){return o(t)/s(t)}function a(t){return m*(s(w)/s(w+y*t))}function h(t){return m*(s(w)*r(w+y*t)-o(w))/x}function u(t){return 1-Math.pow(1-t,1.5)}function l(){var e=(Date.now()-P)/b,n=u(e)*L;e<=1?(this._flyToFrame=f(l,this),this._move(this.unproject(c.add(_.subtract(c).multiplyBy(h(n)/v)),p),this.getScaleZoom(m/a(n),p),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}if(!1===(e=e||{}).animate||!ji)return this.setView(t,i,e);this._stop();var c=this.project(this.getCenter()),_=this.project(t),d=this.getSize(),p=this._zoom;t=C(t),i=void 0===i?p:i;var m=Math.max(d.x,d.y),g=m*this.getZoomScale(p,i),v=_.distanceTo(c)||1,y=1.42,x=y*y,w=n(0),P=Date.now(),L=(n(1)-w)/y,b=e.duration?1e3*e.duration:1e3*L*.8;return this._moveStart(!0,e.noMoveStart),l.call(this),this},flyToBounds:function(t,i){var e=this._getBoundsCenterZoom(t,i);return this.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){return(t=z(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),n=this._limitCenter(e,this._zoom,z(t));return e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),s=n.divideBy(2).round(),r=o.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(e(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=e(this._handleGeolocationResponse,this),o=e(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i=t.code,e=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){var i=new M(t.coords.latitude,t.coords.longitude),e=i.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(e);this.setView(i,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:i,bounds:e,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)},addHandler:function(t,i){if(!i)return this;var e=this[t]=new i(this);return this._handlers.push(e),this.options[t]&&e.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),K(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(g(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)K(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var e=G("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new T(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=z(t),e=w(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(e),u=b(this.project(a,n),this.project(r,n)).getSize(),l=ji?this.options.zoomSnap:1,c=h.x/u.x,_=h.y/u.y,d=i?Math.max(c,_):Math.min(c,_);return n=this.getScaleZoom(d,n),l&&(n=Math.round(n/(l/100))*(l/100),n=i?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new P(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i;var n=e.zoom(t*e.scale(i));return isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(C(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(w(t),i)},layerPointToLatLng:function(t){var i=w(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(C(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(C(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(z(t))},distance:function(t,i){return this.options.crs.distance(C(t),C(i))},containerPointToLayerPoint:function(t){return w(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return w(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(w(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(C(t)))},mouseEventToContainerPoint:function(t){return bt(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=V(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");mt(i,"scroll",this._onScroll,this),this._containerId=n(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ji,Q(t,"leaflet-container"+(qi?" leaflet-touch":"")+(Yi?" leaflet-retina":"")+(Li?" leaflet-oldie":"")+(Ai?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=q(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),at(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Q(t.markerPane,"leaflet-zoom-hide"),Q(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){at(this._mapPane,new x(0,0));var e=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e){void 0===i&&(i=this._zoom);var n=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return g(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){at(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[n(this._container)]=this;var i=t?ft:mt;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),ji&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){g(this._resizeRequest),this._resizeRequest=f(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,o=[],s="mouseout"===i||"mouseover"===i,r=t.target||t.srcElement,a=!1;r;){if((e=this._targets[n(r)])&&("click"===i||"preclick"===i)&&!t._simulated&&this._draggableMoved(e)){a=!0;break}if(e&&e.listens(i,!0)){if(s&&!Ct(r,t))break;if(o.push(e),s)break}if(r===this._container)break;r=r.parentNode}return o.length||a||s||!Ct(r,t)||(o=[this]),o},_handleDOMEvent:function(t){if(this._loaded&&!Mt(t)){var i=t.type;"mousedown"!==i&&"keypress"!==i||ct(t.target||t.srcElement),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e))).length){var s=n[0];"contextmenu"===e&&s.listens(e,!0)&&Pt(t);var r={originalEvent:t};if("keypress"!==t.type){var a=s.getLatLng&&(!s._radius||s._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var h=0;h<n.length;h++)if(n[h].fire(e,r,!0),r.originalEvent._stopped||!1===n[h].options.bubblingMouseEvents&&-1!==d(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return ht(this._mapPane)||new x(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){return(t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,i,e){var n=this._getNewPixelOrigin(e,i);return b([this.project(t.getSouthWest(),i)._subtract(n),this.project(t.getNorthWest(),i)._subtract(n),this.project(t.getSouthEast(),i)._subtract(n),this.project(t.getNorthEast(),i)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e)return t;var n=this.project(t,i),o=this.getSize().divideBy(2),s=new P(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,e,i);return r.round().equals([0,0])?t:this.unproject(n.add(r),i)},_limitOffset:function(t,i){if(!i)return t;var e=this.getPixelBounds(),n=new P(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(n,i))},_getBoundsOffset:function(t,i,e){var n=b(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),o=n.min.subtract(t.min),s=n.max.subtract(t.max);return new x(this._rebound(o.x,-s.x),this._rebound(o.y,-s.y))},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=ji?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(e))&&(this.panBy(e,i),!0)},_createAnimProxy:function(){var t=this._proxy=G("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var i=ce,e=this._proxy.style[i];rt(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",function(){var t=this.getCenter(),i=this.getZoom();rt(this._proxy,this.project(t,i),this.getZoomScale(i,1))},this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){K(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||!1===e.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(o))&&(f(function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,Q(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:o}),setTimeout(e(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),f(function(){this._moveEnd(!0)},this))}}),Te=v.extend({options:{position:"topright"},initialize:function(t){l(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),n=t._controlCorners[e];return Q(i,"leaflet-control"),-1!==e.indexOf("bottom")?n.insertBefore(i,n.firstChild):n.appendChild(i),this},remove:function(){return this._map?(K(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ze=function(t){return new Te(t)};be.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var s=e+t+" "+e+o;i[t+o]=G("div",s,n)}var i=this._controlCorners={},e="leaflet-",n=this._controlContainer=G("div",e+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)K(this._controlCorners[t]);K(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Me=Te.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e<n?-1:n<e?1:0}},initialize:function(t,i,e){l(this,e),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var n in t)this._addLayer(t[n],n);for(n in i)this._addLayer(i[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Te.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(n(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){Q(this._container,"leaflet-control-layers-expanded"),this._form.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._form.clientHeight?(Q(this._form,"leaflet-control-layers-scrollbar"),this._form.style.height=t+"px"):tt(this._form,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return tt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=G("div",t),e=this.options.collapsed;i.setAttribute("aria-haspopup",!0),wt(i),xt(i);var n=this._form=G("form",t+"-list");e&&(this._map.on("click",this.collapse,this),zi||mt(i,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=G("a",t+"-toggle",i);o.href="#",o.title="Layers",qi?(mt(o,"click",Lt),mt(o,"click",this.expand,this)):mt(o,"focus",this.expand,this),e||this.expand(),this._baseLayersList=G("div",t+"-base",n),this._separator=G("div",t+"-separator",n),this._overlaysList=G("div",t+"-overlays",n),i.appendChild(n)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&n(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:n}),this.options.sortLayers&&this._layers.sort(e(function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Y(this._baseLayersList),Y(this._overlaysList),this._layerControlInputs=[];var t,i,e,n,o=0;for(e=0;e<this._layers.length;e++)n=this._layers[e],this._addItem(n),i=i||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(n(t.target)),e=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;e&&this._map.fire(e,i)},_createRadioElement:function(t,i){var e='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=e,n.firstChild},_addItem:function(t){var i,e=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=o):i=this._createRadioElement("leaflet-base-layers",o),this._layerControlInputs.push(i),i.layerId=n(t.layer),mt(i,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var r=document.createElement("div");return e.appendChild(r),r.appendChild(i),r.appendChild(s),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;s>=0;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,i,e=this._layerControlInputs,n=this._map.getZoom(),o=e.length-1;o>=0;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&n<i.options.minZoom||void 0!==i.options.maxZoom&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Ce=Te.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=G("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){var s=G("a",e,n);return s.innerHTML=t,s.href="#",s.title=i,s.setAttribute("role","button"),s.setAttribute("aria-label",i),wt(s),mt(s,"click",Lt),mt(s,"click",o,this),mt(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";tt(this._zoomInButton,i),tt(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMinZoom())&&Q(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMaxZoom())&&Q(this._zoomInButton,i)}});be.mergeOptions({zoomControl:!0}),be.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ce,this.addControl(this.zoomControl))});var Se=Te.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i=G("div","leaflet-control-scale"),e=this.options;return this._addScales(e,"leaflet-control-scale-line",i),t.on(e.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=G("div",i,e)),t.imperial&&(this._iScale=G("div",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i,e,n,o=3.2808399*t;o>5280?(i=o/5280,e=this._getRoundNum(i),this._updateScale(this._iScale,e+" mi",e/i)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;return e=e>=10?10:e>=5?5:e>=3?3:e>=2?2:1,i*e}}),Ze=Te.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){l(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=G("div","leaflet-control-attribution"),wt(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(" | ")}}});be.mergeOptions({attributionControl:!0}),be.addInitHook(function(){this.options.attributionControl&&(new Ze).addTo(this)});Te.Layers=Me,Te.Zoom=Ce,Te.Scale=Se,Te.Attribution=Ze,ze.layers=function(t,i,e){return new Me(t,i,e)},ze.zoom=function(t){return new Ce(t)},ze.scale=function(t){return new Se(t)},ze.attribution=function(t){return new Ze(t)};var Ee=v.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ee.addTo=function(t,i){return t.addHandler(i,this),this};var ke,Ae={Events:li},Be=qi?"touchstart mousedown":"mousedown",Ie={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},Oe={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Re=ci.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){l(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(mt(this._dragStartTarget,Be,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Re._dragging===this&&this.finishDrag(),ft(this._dragStartTarget,Be,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!$(this._element,"leaflet-zoom-anim")&&!(Re._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Re._dragging=this,this._preventOutline&&ct(this._element),ut(),fi(),this._moving)))){this.fire("down");var i=t.touches?t.touches[0]:t,e=dt(this._element);this._startPoint=new x(i.clientX,i.clientY),this._parentScale=pt(e),mt(document,Oe[t.type],this._onMove,this),mt(document,Ie[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var i=t.touches&&1===t.touches.length?t.touches[0]:t,e=new x(i.clientX,i.clientY)._subtract(this._startPoint);(e.x||e.y)&&(Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,Pt(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=ht(this._element).subtract(e),Q(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Q(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,g(this._animRequest),this._lastEvent=t,this._animRequest=f(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),at(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){tt(document.body,"leaflet-dragging"),this._lastTarget&&(tt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var t in Oe)ft(document,Oe[t],this._onMove,this),ft(document,Ie[t],this._onUp,this);lt(),gi(),this._moved&&this._moving&&(g(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,Re._dragging=!1}}),Ne=(Object.freeze||Object)({simplify:Zt,pointToSegmentDistance:Et,closestPointOnSegment:function(t,i,e){return Dt(t,i,e)},clipSegment:It,_getEdgeIntersection:Ot,_getBitCode:Rt,_sqClosestPointOnSegment:Dt,isFlat:jt,_flat:Wt}),De=(Object.freeze||Object)({clipPolygon:Ht}),je={project:function(t){return new x(t.lng,t.lat)},unproject:function(t){return new M(t.y,t.x)},bounds:new P([-180,-90],[180,90])},We={R:6378137,R_MINOR:6356752.314245179,bounds:new P([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,n=t.lat*i,o=this.R_MINOR/e,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-e*Math.log(Math.max(a,1e-10)),new x(t.lng*i*e,n)},unproject:function(t){for(var i,e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,u=.1;h<15&&Math.abs(u)>1e-7;h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),a+=u=Math.PI/2-2*Math.atan(r*i)-a;return new M(a*e,t.x*e/n)}},He=(Object.freeze||Object)({LonLat:je,Mercator:We,SphericalMercator:mi}),Fe=i({},pi,{code:"EPSG:3395",projection:We,transformation:function(){var t=.5/(Math.PI*We.R);return Z(t,.5,-t,.5)}()}),Ue=i({},pi,{code:"EPSG:4326",projection:je,transformation:Z(1/180,1,-1/180,.5)}),Ve=i({},di,{projection:je,transformation:Z(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,n=i.lat-t.lat;return Math.sqrt(e*e+n*n)},infinite:!0});di.Earth=pi,di.EPSG3395=Fe,di.EPSG3857=yi,di.EPSG900913=xi,di.EPSG4326=Ue,di.Simple=Ve;var qe=ci.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[n(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[n(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var e=this.getEvents();i.on(e,this),this.once("remove",function(){i.off(e,this)},this)}this.onAdd(i),this.getAttribution&&i.attributionControl&&i.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),i.fire("layeradd",{layer:this})}}});be.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=n(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=n(t);return this._layers[i]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&n(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){for(var i=0,e=(t=t?oi(t)?t:[t]:[]).length;i<e;i++)this.addLayer(t[i])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[n(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=n(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,e=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),i=void 0===o.maxZoom?i:Math.max(i,o.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,e!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ge=qe.extend({initialize:function(t,i){l(this,i),this._layers={};var e,n;if(t)for(e=0,n=t.length;e<n;e++)this.addLayer(t[e])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,e,n=Array.prototype.slice.call(arguments,1);for(i in this._layers)(e=this._layers[i])[t]&&e[t].apply(e,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return n(t)}}),Ke=Ge.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ge.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ge.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new T;for(var i in this._layers){var e=this._layers[i];t.extend(e.getBounds?e.getBounds():e.getLatLng())}return t}}),Ye=v.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){l(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(e,i&&"IMG"===i.tagName?i:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,i){var e=this.options,n=e[i+"Size"];"number"==typeof n&&(n=[n,n]);var o=w(n),s=w("shadow"===i&&e.shadowAnchor||e.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return Yi&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Xe=Ye.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Xe.imagePath||(Xe.imagePath=this._detectIconPath()),(this.options.imagePath||Xe.imagePath)+Ye.prototype._getIconUrl.call(this,t)},_detectIconPath:function(){var t=G("div","leaflet-default-icon-path",document.body),i=q(t,"background-image")||q(t,"backgroundImage");return document.body.removeChild(t),i=null===i||0!==i.indexOf("url")?"":i.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Je=Ee.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Re(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Q(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&tt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,e=i._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=ht(i._icon),r=e.getPixelBounds(),a=e.getPixelOrigin(),h=b(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o));if(!h.contains(s)){var u=w((Math.max(h.max.x,s.x)-h.max.x)/(r.max.x-h.max.x)-(Math.min(h.min.x,s.x)-h.min.x)/(r.min.x-h.min.x),(Math.max(h.max.y,s.y)-h.max.y)/(r.max.y-h.max.y)-(Math.min(h.min.y,s.y)-h.min.y)/(r.min.y-h.min.y)).multiplyBy(n);e.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),at(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=f(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(g(this._panRequest),this._panRequest=f(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,e=i._shadow,n=ht(i._icon),o=i._map.layerPointToLatLng(n);e&&at(e,n),i._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){g(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),$e=qe.extend({options:{icon:new Xe,interactive:!0,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",bubblingMouseEvents:!1,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){l(this,i),this._latlng=C(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=C(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),e=t.icon.createIcon(this._icon),n=!1;e!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(e.title=t.title),"IMG"===e.tagName&&(e.alt=t.alt||"")),Q(e,i),t.keyboard&&(e.tabIndex="0"),this._icon=e,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(Q(o,i),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane("shadowPane").appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),K(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&K(this._shadow),this._shadow=null},_setPos:function(t){at(this._icon,t),this._shadow&&at(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(Q(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Je)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Je(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;nt(this._icon,t),this._shadow&&nt(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Qe=qe.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return l(this,t),this._renderer&&this._renderer._updateStyle(this),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),tn=Qe.extend({options:{fill:!0,radius:10},initialize:function(t,i){l(this,i),this._latlng=C(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=C(t),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return Qe.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),n=[t+e,i+e];this._pxBounds=new P(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),en=tn.extend({initialize:function(t,e,n){if("number"==typeof e&&(e=i({},n,{radius:e})),l(this,e),this._latlng=C(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new T(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Qe.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,e=this._map,n=e.options.crs;if(n.distance===pi.distance){var o=Math.PI/180,s=this._mRadius/pi.R/o,r=e.project([i+s,t]),a=e.project([i-s,t]),h=r.add(a).divideBy(2),u=e.unproject(h).lat,l=Math.acos((Math.cos(s*o)-Math.sin(i*o)*Math.sin(u*o))/(Math.cos(i*o)*Math.cos(u*o)))/o;(isNaN(l)||0===l)&&(l=s/Math.cos(Math.PI/180*i)),this._point=h.subtract(e.getPixelOrigin()),this._radius=isNaN(l)?0:h.x-e.project([u,t-l]).x,this._radiusY=h.y-r.y}else{var c=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=e.latLngToLayerPoint(this._latlng),this._radius=this._point.x-e.latLngToLayerPoint(c).x}this._updateBounds()}}),nn=Qe.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){l(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i,e,n=1/0,o=null,s=Dt,r=0,a=this._parts.length;r<a;r++)for(var h=this._parts[r],u=1,l=h.length;u<l;u++){var c=s(t,i=h[u-1],e=h[u],!0);c<n&&(n=c,o=s(t,i,e))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a=this._rings[0],h=a.length;if(!h)return null;for(t=0,i=0;t<h-1;t++)i+=a[t].distanceTo(a[t+1])/2;if(0===i)return this._map.layerPointToLatLng(a[0]);for(t=0,n=0;t<h-1;t++)if(o=a[t],s=a[t+1],e=o.distanceTo(s),(n+=e)>i)return r=(n-i)/e,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=C(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new T,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return jt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=jt(t),n=0,o=t.length;n<o;n++)e?(i[n]=C(t[n]),this._bounds.extend(i[n])):i[n]=this._convertLatLngs(t[n]);return i},_project:function(){var t=new P;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t);var i=this._clickTolerance(),e=new x(i,i);this._bounds.isValid()&&t.isValid()&&(t.min._subtract(e),t.max._add(e),this._pxBounds=t)},_projectLatlngs:function(t,i,e){var n,o,s=t[0]instanceof M,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),e.extend(o[n]);i.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],i,e)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var i,e,n,o,s,r,a,h=this._parts;for(i=0,n=0,o=this._rings.length;i<o;i++)for(e=0,s=(a=this._rings[i]).length;e<s-1;e++)(r=It(a[e],a[e+1],t,e,!0))&&(h[n]=h[n]||[],h[n].push(r[0]),r[1]===a[e+1]&&e!==s-2||(h[n].push(r[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,e=0,n=t.length;e<n;e++)t[e]=Zt(t[e],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,n,o,s,r,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,s=this._parts.length;e<s;e++)for(n=0,o=(r=(a=this._parts[e]).length)-1;n<r;o=n++)if((i||0!==n)&&Et(t,a[o],a[n])<=h)return!0;return!1}});nn._flat=Wt;var on=nn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,i,e,n,o,s,r,a,h,u=this._rings[0],l=u.length;if(!l)return null;for(s=r=a=0,t=0,i=l-1;t<l;i=t++)e=u[t],n=u[i],o=e.y*n.x-n.y*e.x,r+=(e.x+n.x)*o,a+=(e.y+n.y)*o,s+=3*o;return h=0===s?u[0]:[r/s,a/s],this._map.layerPointToLatLng(h)},_convertLatLngs:function(t){var i=nn.prototype._convertLatLngs.call(this,t),e=i.length;return e>=2&&i[0]instanceof M&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){nn.prototype._setLatLngs.call(this,t),jt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return jt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new x(i,i);if(t=new P(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;o<s;o++)(n=Ht(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,e,n,o,s,r,a,h,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(h=(i=this._parts[o]).length)-1;s<h;r=s++)e=i[s],n=i[r],e.y>t.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||nn.prototype._containsPoint.call(this,t,!0)}}),sn=Ke.extend({initialize:function(t,i){l(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=oi(t)?t:t.features;if(o){for(i=0,e=o.length;i<e;i++)((n=o[i]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=Ft(t,s);return r?(r.feature=Yt(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){"function"==typeof i&&(i=i(t.feature)),t.setStyle&&t.setStyle(i)}}),rn={toGeoJSON:function(t){return Kt(this,{type:"Point",coordinates:qt(this.getLatLng(),t)})}};$e.include(rn),en.include(rn),tn.include(rn),nn.include({toGeoJSON:function(t){var i=!jt(this._latlngs),e=Gt(this._latlngs,i?1:0,!1,t);return Kt(this,{type:(i?"Multi":"")+"LineString",coordinates:e})}}),on.include({toGeoJSON:function(t){var i=!jt(this._latlngs),e=i&&!jt(this._latlngs[0]),n=Gt(this._latlngs,e?2:i?1:0,!0,t);return i||(n=[n]),Kt(this,{type:(e?"Multi":"")+"Polygon",coordinates:n})}}),Ge.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(e){i.push(e.toGeoJSON(t).geometry.coordinates)}),Kt(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===i)return this.toMultiPoint(t);var e="GeometryCollection"===i,n=[];return this.eachLayer(function(i){if(i.toGeoJSON){var o=i.toGeoJSON(t);if(e)n.push(o.geometry);else{var s=Yt(o);"FeatureCollection"===s.type?n.push.apply(n,s.features):n.push(s)}}}),e?Kt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var an=Xt,hn=qe.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t,this._bounds=z(i),l(this,e)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Q(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){K(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&X(this._image),this},bringToBack:function(){return this._map&&J(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=z(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,i=this._image=t?this._url:G("img");Q(i,"leaflet-image-layer"),this._zoomAnimated&&Q(i,"leaflet-zoom-animated"),this.options.className&&Q(i,this.options.className),i.onselectstart=r,i.onmousemove=r,i.onload=e(this.fire,this,"load"),i.onerror=e(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=i.src:(i.src=this._url,i.alt=this.options.alt)},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;rt(this._image,e,i)},_reset:function(){var t=this._image,i=new P(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();at(t,i.min),t.style.width=e.x+"px",t.style.height=e.y+"px"},_updateOpacity:function(){nt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),un=hn.extend({options:{autoplay:!0,loop:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,i=this._image=t?this._url:G("video");if(Q(i,"leaflet-image-layer"),this._zoomAnimated&&Q(i,"leaflet-zoom-animated"),i.onselectstart=r,i.onmousemove=r,i.onloadeddata=e(this.fire,this,"load"),t){for(var n=i.getElementsByTagName("source"),o=[],s=0;s<n.length;s++)o.push(n[s].src);this._url=n.length>0?o:[i.src]}else{oi(this._url)||(this._url=[this._url]),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop;for(var a=0;a<this._url.length;a++){var h=G("source");h.src=this._url[a],i.appendChild(h)}}}}),ln=qe.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,i){l(this,t),this._source=i},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&nt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&nt(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(nt(this._container,0),this._removeTimeout=setTimeout(e(K,void 0,this._container),200)):K(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=C(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&X(this._container),this},bringToBack:function(){return this._map&&J(this._container),this},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=w(this.options.offset),e=this._getAnchor();this._zoomAnimated?at(this._container,t.add(e)):i=i.add(t).add(e);var n=this._containerBottom=-i.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}}),cn=ln.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){ln.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Qe||this._source.on("preclick",yt))},onRemove:function(t){ln.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Qe||this._source.off("preclick",yt))},getEvents:function(){var t=ln.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",i=this._container=G("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),e=this._wrapper=G("div",t+"-content-wrapper",i);if(this._contentNode=G("div",t+"-content",e),wt(e),xt(this._contentNode),mt(e,"contextmenu",yt),this._tipContainer=G("div",t+"-tip-container",i),this._tip=G("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=G("a",t+"-close-button",i);n.href="#close",n.innerHTML="&#215;",mt(n,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var e=t.offsetWidth;e=Math.min(e,this.options.maxWidth),e=Math.max(e,this.options.minWidth),i.width=e+1+"px",i.whiteSpace="",i.height="";var n=t.offsetHeight,o=this.options.maxHeight;o&&n>o?(i.height=o+"px",Q(t,"leaflet-popup-scrolled")):tt(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();at(this._container,i.add(e))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var t=this._map,i=parseInt(q(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,n=this._containerWidth,o=new x(this._containerLeft,-e-this._containerBottom);o._add(ht(this._container));var s=t.layerPointToContainerPoint(o),r=w(this.options.autoPanPadding),a=w(this.options.autoPanPaddingTopLeft||r),h=w(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),l=0,c=0;s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+e+h.y>u.y&&(c=s.y+e-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close(),Lt(t)},_getAnchor:function(){return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});be.mergeOptions({closePopupOnClick:!0}),be.include({openPopup:function(t,i,e){return t instanceof cn||(t=new cn(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),qe.include({bindPopup:function(t,i){return t instanceof cn?(l(t,i),this._popup=t,t._source=this):(this._popup&&!i||(this._popup=new cn(i,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,i){if(t instanceof qe||(i=t,t=this),t instanceof Ke)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._popup&&this._map&&(this._popup._source=t,this._popup.update(),this._map.openPopup(this._popup,i)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i=t.layer||t.target;this._popup&&this._map&&(Lt(t),i instanceof Qe?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===i?this.closePopup():this.openPopup(i,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var _n=ln.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){ln.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){ln.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=ln.prototype.getEvents.call(this);return qi&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=G("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i=this._map,e=this._container,n=i.latLngToContainerPoint(i.getCenter()),o=i.layerPointToContainerPoint(t),s=this.options.direction,r=e.offsetWidth,a=e.offsetHeight,h=w(this.options.offset),u=this._getAnchor();"top"===s?t=t.add(w(-r/2+h.x,-a+h.y+u.y,!0)):"bottom"===s?t=t.subtract(w(r/2-h.x,-h.y,!0)):"center"===s?t=t.subtract(w(r/2+h.x,a/2-u.y+h.y,!0)):"right"===s||"auto"===s&&o.x<n.x?(s="right",t=t.add(w(h.x+u.x,u.y-a/2+h.y,!0))):(s="left",t=t.subtract(w(r+u.x-h.x,a/2-u.y-h.y,!0))),tt(e,"leaflet-tooltip-right"),tt(e,"leaflet-tooltip-left"),tt(e,"leaflet-tooltip-top"),tt(e,"leaflet-tooltip-bottom"),Q(e,"leaflet-tooltip-"+s),at(e,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&nt(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return w(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});be.include({openTooltip:function(t,i,e){return t instanceof _n||(t=new _n(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),qe.include({bindTooltip:function(t,i){return t instanceof _n?(l(t,i),this._tooltip=t,t._source=this):(this._tooltip&&!i||(this._tooltip=new _n(i,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?e.add=this._openTooltip:(e.mouseover=this._openTooltip,e.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(e.mousemove=this._moveTooltip),qi&&(e.click=this._openTooltip)),this[i](e),this._tooltipHandlersAdded=!t}},openTooltip:function(t,i){if(t instanceof qe||(i=t,t=this),t instanceof Ke)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._tooltip&&this._map&&(this._tooltip._source=t,this._tooltip.update(),this._map.openTooltip(this._tooltip,i),this._tooltip.options.interactive&&this._tooltip._container&&(Q(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(tt(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var i=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(i,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var i,e,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),e=this._map.containerPointToLayerPoint(i),n=this._map.layerPointToLatLng(e)),this._tooltip.setLatLng(n)}});var dn=Ye.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&"DIV"===t.tagName?t:document.createElement("div"),e=this.options;if(i.innerHTML=!1!==e.html?e.html:"",e.bgPos){var n=w(e.bgPos);i.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});Ye.Default=Xe;var pn=qe.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Wi,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){l(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),K(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(X(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(J(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof x?t:new x(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,e=this.getPane().children,n=-t(-1/0,1/0),o=0,s=e.length;o<s;o++)i=e[o].style.zIndex,e[o]!==this._container&&i&&(n=t(n,+i));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Li){nt(this._container,this.options.opacity);var t=+new Date,i=!1,e=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var s=Math.min(1,(t-o.loaded)/200);nt(o.el,s),s<1?i=!0:(o.active?e=!0:this._onOpaqueTile(o),o.active=!0)}}e&&!this._noPrune&&this._pruneTiles(),i&&(g(this._fadeFrame),this._fadeFrame=f(this._updateOpacity,this))}},_onOpaqueTile:r,_initContainer:function(){this._container||(this._container=G("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var e in this._levels)this._levels[e].el.children.length||e===t?(this._levels[e].el.style.zIndex=i-Math.abs(t-e),this._onUpdateLevel(e)):(K(this._levels[e].el),this._removeTilesAtZoom(e),this._onRemoveLevel(e),delete this._levels[e]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=G("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=i,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:r,_onRemoveLevel:r,_onCreateLevel:r,_pruneTiles:function(){if(this._map){var t,i,e=this._map.getZoom();if(e>this.options.maxZoom||e<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)if((i=this._tiles[t]).current&&!i.active){var n=i.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)K(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,e,n){var o=Math.floor(t/2),s=Math.floor(i/2),r=e-1,a=new x(+o,+s);a.z=+r;var h=this._tileCoordsToKey(a),u=this._tiles[h];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),r>n&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new x(o,s);r.z=e+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),e+1<n&&this._retainChildren(o,s,e+1,n))}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,e,n){var o=this._clampZoom(Math.round(i));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),e||this._pruneTiles(),this._noPrune=!!e),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels)this._setZoomTransform(this._levels[e],t,i)},_setZoomTransform:function(t,i,e){var n=this._map.getZoomScale(e,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(i,e)).round();ji?rt(t.el,o,n):at(t.el,o)},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],n).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],n).x/e.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],n).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],n).y/e.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),n=i.getZoomScale(e,this._tileZoom),o=i.project(t,this._tileZoom).floor(),s=i.getSize().divideBy(2*n);return new P(o.subtract(s),o.add(s))},_update:function(t){var i=this._map;if(i){var e=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],a=this.options.keepBuffer,h=new P(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var l=this._tiles[u].coords;l.z===this._tileZoom&&h.contains(new x(l.x,l.y))||(this._tiles[u].current=!1)}if(Math.abs(e-this._tileZoom)>1)this._setView(t,e);else{for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var d=new x(_,c);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:r.push(d)}}if(r.sort(function(t,i){return t.distanceTo(s)-i.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(_=0;_<r.length;_++)this._addTile(r[_],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return z(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e);return[i.unproject(n,t.z),i.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new T(i[0],i[1]);return this.options.noWrap||(e=this._map.wrapLatLngBounds(e)),e},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new x(+i[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(K(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){Q(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=r,t.onmousemove=r,Li&&this.options.opacity<1&&nt(t,this.options.opacity),zi&&!Mi&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,i){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),e(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&f(e(this._tileReady,this,t,null,s)),at(s,n),this._tiles[o]={el:s,coords:t,current:!0},i.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,n){i&&this.fire("tileerror",{error:i,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(nt(n.el,0),g(this._fadeFrame),this._fadeFrame=f(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),i||(Q(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Li||!this._map._fadeAnimated?f(this._pruneTiles,this):setTimeout(e(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new x(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new P(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),mn=pn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,i){this._url=t,(i=l(this,i)).detectRetina&&Yi&&i.maxZoom>0&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),zi||this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url=t,i||this.redraw(),this},createTile:function(t,i){var n=document.createElement("img");return mt(n,"load",e(this._tileOnLoad,this,i,n)),mt(n,"error",e(this._tileOnError,this,i,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Yi?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,i){Li?setTimeout(e(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.getAttribute("src")!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,e=this.options.zoomReverse,n=this.options.zoomOffset;return e&&(t=i-t),t+n},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=r,i.onerror=r,i.complete||(i.src=si,K(i),delete this._tiles[t]))},_removeTile:function(t){var i=this._tiles[t];if(i)return Si||i.el.setAttribute("src",si),pn.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(this._map&&(!e||e.getAttribute("src")!==si))return pn.prototype._tileReady.call(this,t,i,e)}}),fn=mn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var s=(e=l(this,e)).detectRetina&&Yi?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,mn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,n=b(e.project(i[0]),e.project(i[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Ue?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=mn.prototype.getTileUrl.call(this,t);return a+c(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});mn.WMS=fn,Jt.wms=function(t,i){return new fn(t,i)};var gn=qe.extend({options:{padding:.1,tolerance:0},initialize:function(t){l(this,t),n(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&Q(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=ht(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=this._map.project(t,i).subtract(s),a=o.multiplyBy(-e).add(n).add(o).subtract(r);ji?rt(this._container,a,e):at(this._container,a)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new P(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),vn=gn.extend({getEvents:function(){var t=gn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){gn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");mt(t,"mousemove",o(this._onMouseMove,32,this),this),mt(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),mt(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){g(this._redrawRequest),delete this._ctx,K(this._container),ft(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){this._redrawBounds=null;for(var t in this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={},gn.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),n=Yi?2:1;at(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",Yi&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){gn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[n(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,o=i.prev;e?e.prev=o:this._drawLast=o,o?o.next=e:this._drawFirst=e,delete this._drawnLayers[t._leaflet_id],delete t._order,delete this._layers[n(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var i,e=t.options.dashArray.split(/[, ]+/),n=[];for(i=0;i<e.length;i++)n.push(Number(e[i]));t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||f(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new P,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var e=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var e,n,o,s,r=t._parts,a=r.length,h=this._ctx;if(a){for(this._drawnLayers[t._leaflet_id]=t,h.beginPath(),e=0;e<a;e++){for(n=0,o=r[e].length;n<o;n++)s=r[e][n],h[n?"lineTo":"moveTo"](s.x,s.y);i&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var i=t._point,e=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;this._drawnLayers[t._leaflet_id]=t,1!==o&&(e.save(),e.scale(1,o)),e.beginPath(),e.arc(i.x,i.y/o,n,0,2*Math.PI,!1),1!==o&&e.restore(),this._fillStroke(e,t)}},_fillStroke:function(t,i){var e=i.options;e.fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor||e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick:function(t){for(var i,e,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(n)&&!this._map._draggableMoved(i)&&(e=i);e&&(zt(t),this._fireEvent([e],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(tt(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,i){for(var e,n,o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&(n=e);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(Q(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i=t._order,e=i.next,n=i.prev;e&&(e.prev=n,n?n.next=e:e&&(this._drawFirst=e),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t))},_bringToBack:function(t){var i=t._order,e=i.next,n=i.prev;n&&(n.next=e,e?e.prev=n:n&&(this._drawLast=n),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t))}}),yn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),xn={_initContainer:function(){this._container=G("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(gn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=yn("shape");Q(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=yn("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;K(i),t.removeInteractiveTarget(i),delete this._layers[n(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i||(i=t._stroke=yn("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=oi(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e||(e=t._fill=yn("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){X(t._container)},_bringToBack:function(t){J(t._container)}},wn=$i?yn:E,Pn=gn.extend({getEvents:function(){var t=gn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=wn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=wn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){K(this._container),ft(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){gn.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),at(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=wn("path");t.options.className&&Q(i,t.options.className),t.options.interactive&&Q(i,"leaflet-interactive"),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){K(t._path),t.removeInteractiveTarget(t._path),delete this._layers[n(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,e=t.options;i&&(e.stroke?(i.setAttribute("stroke",e.color),i.setAttribute("stroke-opacity",e.opacity),i.setAttribute("stroke-width",e.weight),i.setAttribute("stroke-linecap",e.lineCap),i.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?i.setAttribute("stroke-dasharray",e.dashArray):i.removeAttribute("stroke-dasharray"),e.dashOffset?i.setAttribute("stroke-dashoffset",e.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),e.fill?(i.setAttribute("fill",e.fillColor||e.color),i.setAttribute("fill-opacity",e.fillOpacity),i.setAttribute("fill-rule",e.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,k(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,o)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){X(t._path)},_bringToBack:function(t){J(t._path)}});$i&&Pn.include(xn),be.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&$t(t)||Qt(t)}});var Ln=on.extend({initialize:function(t,i){on.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=z(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Pn.create=wn,Pn.pointsToPath=k,sn.geometryToLayer=Ft,sn.coordsToLatLng=Ut,sn.coordsToLatLngs=Vt,sn.latLngToCoords=qt,sn.latLngsToCoords=Gt,sn.getFeature=Kt,sn.asFeature=Yt,be.mergeOptions({boxZoom:!0});var bn=Ee.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){mt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ft(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){K(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),fi(),ut(),this._startPoint=this._map.mouseEventToContainerPoint(t),mt(document,{contextmenu:Lt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=G("div","leaflet-zoom-box",this._container),Q(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new P(this._point,this._startPoint),e=i.getSize();at(this._box,i.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(K(this._box),tt(this._container,"leaflet-crosshair")),gi(),lt(),ft(document,{contextmenu:Lt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(e(this._resetState,this),0);var i=new T(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});be.addInitHook("addHandler","boxZoom",bn),be.mergeOptions({doubleClickZoom:!0});var Tn=Ee.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(o):i.setZoomAround(t.containerPoint,o)}});be.addInitHook("addHandler","doubleClickZoom",Tn),be.mergeOptions({dragging:!0,inertia:!Mi,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var zn=Ee.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Re(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}Q(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tt(this._map._container,"leaflet-grab"),tt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=z(this._map.options.maxBounds);this._offsetLimit=b(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,s=(n+i+e)%t-i-e,r=Math.abs(o+e)<Math.abs(s+e)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var i=this._map,e=i.options,n=!e.inertia||this._times.length<2;if(i.fire("dragend",t),n)i.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,r=e.easeLinearity,a=o.multiplyBy(r/s),h=a.distanceTo([0,0]),u=Math.min(e.inertiaMaxSpeed,h),l=a.multiplyBy(u/h),c=u/(e.inertiaDeceleration*r),_=l.multiplyBy(-c/2).round();_.x||_.y?(_=i._limitOffset(_,i.options.maxBounds),f(function(){i.panBy(_,{duration:c,easeLinearity:r,noMoveStart:!0,animate:!0})})):i.fire("moveend")}}});be.addInitHook("addHandler","dragging",zn),be.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Mn=Ee.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),mt(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),ft(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,e=t.scrollTop||i.scrollTop,n=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(n,e)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i,e,n=this._panKeys={},o=this.keyCodes;for(i=0,e=o.left.length;i<e;i++)n[o.left[i]]=[-1*t,0];for(i=0,e=o.right.length;i<e;i++)n[o.right[i]]=[t,0];for(i=0,e=o.down.length;i<e;i++)n[o.down[i]]=[0,t];for(i=0,e=o.up.length;i<e;i++)n[o.up[i]]=[0,-1*t]},_setZoomDelta:function(t){var i,e,n=this._zoomKeys={},o=this.keyCodes;for(i=0,e=o.zoomIn.length;i<e;i++)n[o.zoomIn[i]]=t;for(i=0,e=o.zoomOut.length;i<e;i++)n[o.zoomOut[i]]=-t},_addHooks:function(){mt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ft(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,e=t.keyCode,n=this._map;if(e in this._panKeys)n._panAnim&&n._panAnim._inProgress||(i=this._panKeys[e],t.shiftKey&&(i=w(i).multiplyBy(3)),n.panBy(i),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds));else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else{if(27!==e||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Lt(t)}}});be.addInitHook("addHandler","keyboard",Mn),be.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Cn=Ee.extend({addHooks:function(){mt(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ft(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=Tt(t),n=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(e(this._performZoom,this),o),Lt(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=e?Math.ceil(o/e)*e:o,r=t._limitZoom(i+(this._delta>0?s:-s))-i;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(i+r):t.setZoomAround(this._lastMousePos,i+r))}});be.addInitHook("addHandler","scrollWheelZoom",Cn),be.mergeOptions({tap:!0,tapTolerance:15});var Sn=Ee.extend({addHooks:function(){mt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ft(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Pt(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],n=i.target;this._startPos=this._newPos=new x(i.clientX,i.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&Q(n,"leaflet-active"),this._holdTimeout=setTimeout(e(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),this._simulateEvent("mousedown",i),mt(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),ft(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],e=i.target;e&&e.tagName&&"a"===e.tagName.toLowerCase()&&tt(e,"leaflet-active"),this._simulateEvent("mouseup",i),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var i=t.touches[0];this._newPos=new x(i.clientX,i.clientY),this._simulateEvent("mousemove",i)},_simulateEvent:function(t,i){var e=document.createEvent("MouseEvents");e._simulated=!0,i.target._simulatedClick=!0,e.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(e)}});qi&&!Vi&&be.addInitHook("addHandler","tap",Sn),be.mergeOptions({touchZoom:qi&&!Mi,bounceAtZoomLimits:!0});var Zn=Ee.extend({addHooks:function(){Q(this._map._container,"leaflet-touch-zoom"),mt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tt(this._map._container,"leaflet-touch-zoom"),ft(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),mt(document,"touchmove",this._onTouchMove,this),mt(document,"touchend",this._onTouchEnd,this),Pt(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,n=i.mouseEventToContainerPoint(t.touches[0]),o=i.mouseEventToContainerPoint(t.touches[1]),s=n.distanceTo(o)/this._startDist;if(this._zoom=i.getScaleZoom(s,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&s<1||this._zoom>i.getMaxZoom()&&s>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),g(this._animRequest);var a=e(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=f(a,this,!0),Pt(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,g(this._animRequest),ft(document,"touchmove",this._onTouchMove),ft(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});be.addInitHook("addHandler","touchZoom",Zn),be.BoxZoom=bn,be.DoubleClickZoom=Tn,be.Drag=zn,be.Keyboard=Mn,be.ScrollWheelZoom=Cn,be.Tap=Sn,be.TouchZoom=Zn,Object.freeze=ti,t.version="1.3.4+HEAD.0e566b2",t.Control=Te,t.control=ze,t.Browser=Qi,t.Evented=ci,t.Mixin=Ae,t.Util=ui,t.Class=v,t.Handler=Ee,t.extend=i,t.bind=e,t.stamp=n,t.setOptions=l,t.DomEvent=Pe,t.DomUtil=ve,t.PosAnimation=Le,t.Draggable=Re,t.LineUtil=Ne,t.PolyUtil=De,t.Point=x,t.point=w,t.Bounds=P,t.bounds=b,t.Transformation=S,t.transformation=Z,t.Projection=He,t.LatLng=M,t.latLng=C,t.LatLngBounds=T,t.latLngBounds=z,t.CRS=di,t.GeoJSON=sn,t.geoJSON=Xt,t.geoJson=an,t.Layer=qe,t.LayerGroup=Ge,t.layerGroup=function(t,i){return new Ge(t,i)},t.FeatureGroup=Ke,t.featureGroup=function(t){return new Ke(t)},t.ImageOverlay=hn,t.imageOverlay=function(t,i,e){return new hn(t,i,e)},t.VideoOverlay=un,t.videoOverlay=function(t,i,e){return new un(t,i,e)},t.DivOverlay=ln,t.Popup=cn,t.popup=function(t,i){return new cn(t,i)},t.Tooltip=_n,t.tooltip=function(t,i){return new _n(t,i)},t.Icon=Ye,t.icon=function(t){return new Ye(t)},t.DivIcon=dn,t.divIcon=function(t){return new dn(t)},t.Marker=$e,t.marker=function(t,i){return new $e(t,i)},t.TileLayer=mn,t.tileLayer=Jt,t.GridLayer=pn,t.gridLayer=function(t){return new pn(t)},t.SVG=Pn,t.svg=Qt,t.Renderer=gn,t.Canvas=vn,t.canvas=$t,t.Path=Qe,t.CircleMarker=tn,t.circleMarker=function(t,i){return new tn(t,i)},t.Circle=en,t.circle=function(t,i,e){return new en(t,i,e)},t.Polyline=nn,t.polyline=function(t,i){return new nn(t,i)},t.Polygon=on,t.polygon=function(t,i){return new on(t,i)},t.Rectangle=Ln,t.rectangle=function(t,i){return new Ln(t,i)},t.Map=be,t.map=function(t,i){return new be(t,i)};var En=window.L;t.noConflict=function(){return window.L=En,this},window.L=t});
 
 
 
 
 
js/mappress.min.js DELETED
@@ -1 +0,0 @@
1
- var mapp=window.mapp||{};+function(n){mapp.Map=function(n,t){this.defaults={center:null,editable:null,height:null,initialOpenDirections:null,initialOpenInfo:null,layers:null,mapid:null,mapTypeId:null,metaKey:null,mapOpts:null,name:null,pois:null,postid:null,query:null,sel:null,title:null,width:null,zoom:null};this.model=n;this.highlight=null;this.iw=null;this.places=null;this.poi=null;this.settings=t?t:{};this.templates=null;this.dir_=null;this.div={};this.layers_={};this.map_=null;this.pois_=[];this.xhr_;this.zindex_=0;_.extend(this,this.defaults,n,this.settings)};mapp.Map.prototype={display:function(){var t=this,i;if(this.div.layout=this.sel?n(".mapp-layout",this.sel):n("#"+this.name+"-layout"),n.each(["canvas","controls","dialog","directions","filters","iw","list","menu","search"],function(i,r){t.div[r]=n(".mapp-"+r,t.div.layout)}),this.sanity()===!0){this.templates=this.editable?{loop:"edit-loop",item:"edit-item",popup:"edit-popup"}:this.query?{loop:"map-loop",item:"mashup-item",popup:"mashup-popup"}:{loop:"map-loop",item:"map-item",popup:"map-popup"};mappl10n.options.engine=="leaflet"?(i=_.extend({attribution:'Map data <a href="https://openstreetmap.org">OpenStreetMap<\/a>',minZoom:0,worldCopyJump:!0,zoomControl:null},this.mapOpts),i.minZoom=isNaN(parseInt(i.minZoom))?0:parseInt(i.minZoom),this.map_=new L.Map(this.div.canvas.get(0),i),L.control.zoom({position:"bottomright",zoomInTitle:"",zoomOutTitle:""}).addTo(this.map_),this.iw=L.popup(),this.iw.setContent(this.div.iw.get(0))):(this.map_=new google.maps.Map(this.div.canvas.get(0),{mapTypeId:"roadmap",zoom:1}),i=_.extend({backgroundColor:"transparent",clickableIcons:!1,fullscreenControl:!1,mapTypeControl:!1,mapTypeControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},minZoom:0,scaleControl:!0,streetViewControl:this.editable||this.query?!1:!0},this.mapOpts),i.minZoom=isNaN(parseInt(i.minZoom))?0:parseInt(i.minZoom),this.map_.setOptions(i),this.iw=mappl10n.options.iwType=="ib"||this.editable?new mapp.InfoBox(this):new google.maps.InfoWindow,this.iw.setContent(this.div.iw.get(0)),this.addLayers());this.addStyles();this.addMenu();this.setMapTypeId(this.mapTypeId,!0);this.places=new mapp.Places(n(".mapp-places",this.div.search),{map:t});this.editable&&this.places.sel.focus();n(this.places).on("search.mapp",function(n,i){t.search(i)});this.addEvents("click drag",function(){t.close()});this.div.layout.on("click","[data-mapp-action]",function(i){var r=n(this).attr("data-mapp-action");i.preventDefault();t.action(r,n(this).attr("data-mapp-"+r),n(this))});this.div.filters.on("change",function(){t.ajaxQuery()});n(window).resize(function(){t.resize()});this.places.parse(this.center,function(n){t.center=n&&n.geometry&&n.geometry.location?{lat:n.geometry.location.lat,lng:n.geometry.location.lng}:null;t.query?t.ajaxQuery(function(){t.initCenter()}):(t.setPois(t.pois),t.initCenter())})}},initCenter:function(){var n=this;this.recenter();this.renderList();this.query&&mappl10n.options.search&&!this.editable&&this.addSearchMove();mappl10n.options.engine=="leaflet"?this.initOpen():mapp.event.addListenerOnce(n.map_,"idle",function(){n.initOpen()})},initOpen:function(){var n=this.pois_.length?this.pois_[0]:null;this.initialOpenDirections?this.openDirections(null,n):n&&this.initialOpenInfo&&n.open()},search:function(n){var i,t,f,u,r;n&&n.geometry&&(i=n.geometry.location?n.geometry.location:null,t=n.geometry.viewport?n.geometry.viewport:null,mappl10n.options.engine=="leaflet"?(f=new L.LatLng(i.lat,i.lng),r=f.toBounds(mappl10n.options.radius*1e3)):(u=new google.maps.Circle({center:i,radius:mappl10n.options.radius*1e3}),r=t?new google.maps.LatLngBounds(new google.maps.LatLng(t.sw.lat,t.sw.lng),new google.maps.LatLng(t.ne.lat,t.ne.lng)).union(u.getBounds()):u.getBounds()),this.fitBounds(r),this.setView(i))},action:function(t,i,r){var f=this,u;switch(t){case"center":this.toggleView("menu",!1);this.close();this.recenter();break;case"dir":this.openDirections(null,this.poi);break;case"dir-from":this.openDirections(this.poi,null);break;case"filters-reset":this.div.filters.find(":input").each(function(){this.type=="checkbox"||this.type=="radio"?n(this).prop("checked",!1):n(this).val("")});this.ajaxQuery();break;case"filters-toggle":this.toggleView("filters");break;case"geolocate":this.places.geolocate(function(n){f.search(n)});break;case"layer":this.toggleLayer(i);this.toggleView("menu",!1);break;case"menu-toggle":this.toggleView("menu");break;case"open":u=r.attr("data-mapp-poi");this.open(this.pois_[u]);break;case"view-map":this.toggleView("list",!1);break;case"view-list":this.toggleView("list",!0);break;default:return!0}},dialog:function(n,t){var i=this;n?(this.div.dialog.html(n),this.div.dialog.show(),t&&(clearTimeout(this.dialog.fade),this.dialog.fade=setTimeout(function(){i.dialog(null)},4e3))):this.div.dialog.hide()},addEvents:function(n,t){n=n.split(" ");for(var i=0;i<n.length;i++)mapp.event.addListener(this.map_,n[i],t)},close:function(){mappl10n.options.engine=="leaflet"?this.map_.closePopup():this.iw.close();this.dir_&&this.dir_.close();this.select(null);n(this).triggerHandler("mapp.close")},openDirections:function(n,t){var i=n?n.getAddress():"",r=t?t.getAddress():"";n?n.open():t&&t.open();this.dir_||(this.dir_=new mapp.Directions(this.div.directions,this));this.dir_.open(i,r)},sanity:function(){if(!this.div.canvas.length)return mapp.lib.log("MapPress: Missing map name or container for map: "+this.name);if(mappl10n.options.autoupdate==="tc")return mapp.lib.log("Maps API missing (800001)");if(typeof _=="undefined")return mapp.lib.alert("ERROR: underscore.js not loaded. Check cacheing / optimizing plugins.");if(mappl10n.options.engine=="leaflet"){if(typeof L=="undefined")return mapp.lib.alert("ERROR: Unable to load Leaflet")}else{if(typeof google=="undefined")return mapp.lib.alert("ERROR: Google Maps API not loaded");n(document).ready(function(){n('script[src*="https://maps.googleapis.com/maps/api/js?v=3"]').length>1&&mapp.lib.alert("ERROR: Google Maps API key loaded multiple times, please see MapPress FAQ.")})}return!0},select:function(t){if(n(".mapp-item",this.div.list).removeClass("mapp-selected"),t){var r=n.inArray(t,this.pois_),i=n('[data-mapp-poi="'+r+'"]',this.div.list);mapp.lib.scrollTo(this.div.list,i);t.setZIndex(++this.zindex_);i.addClass("mapp-selected")}this.poi=t},setHighlight:function(n){this.highlight&&(mappl10n.options.engine=="leaflet"?this.highlight.remove():this.highlight.setMap(null));n&&(mappl10n.options.engine=="leaflet"?this.highlight=new L.Marker(n.getPosition()).addTo(this.map_):(this.highlight=new google.maps.Marker({position:n.getPosition()}),this.highlight.setMap(this.map_)))},getMap:function(){return this.map_},renderList:function(){var i=this.getBounds(),r=0,u=this,t;if(!this.editable)for(t=0;t<this.pois_.length;t++)this.pois_[t].visible=this.pois_[t].type!="kml",this.query&&i&&!i.contains(this.pois_[t].getPosition())&&(this.pois_[t].visible=!1),r+=this.pois_[t].visible;this.div.list.html(mapp.lib.template(this.templates.loop,{map:this,pois:this.pois_,count:r}));this.editable&&n(".mapp-items",u.sel).sortable({axis:"y",cursor:"move",delay:200,update:function(){u.sortPois(n(this).sortable("toArray",{attribute:"data-mapp-poi"}))}})},getPois:function(){return this.pois_},insertPoi:function(n){var t=this;this.pois_.unshift(n);n.setMap(this);t.renderList();this.select(n)},removePoi:function(t){var r=this,i=n.inArray(t,this.pois_);i!=-1&&(this.pois_[i].setMap(null),this.pois_.splice(i,1),r.renderList())},resetPois:function(){for(i=0;i<this.pois_.length;i++)this.pois_[i].setMap(null);this.pois_=[];this.zindex_=0},setPois:function(n){var t,i;if(this.resetPois(),n){for(t=0;t<n.length;t++)i=new mapp.Poi(n[t]),this.pois_.push(i),i.id=this.pois_.length-1,i.setMap(this),i.setZIndex(this.zindex_+n.length-1-t);this.zindex_+=n.length-1}},sortPois:function(n){for(var r,t=Array(),i=0;i<n.length;i++){if(r=parseInt(n[i]),isNaN(r))return!1;t.push(this.pois_[r])}if(t.length!=this.pois_.length)return!1;this.pois_=t;this.renderList()},open:function(t,i){var r=null,u;if(this.close(),this.select(t),mappl10n.options.mashupClick!="poi"&&t.postid&&t.url){mappl10n.options.mashupClick=="post"?window.location.assign(t.url):window.open(t.url);return}this.toggleView("list",!1);i&&i.featureData?r=i.featureData:i&&i.propagatedFrom&&i.propagatedFrom.feature&&i.propagatedFrom.feature.properties&&(r=i.propagatedFrom.feature.properties);this.div.iw.html(t.render("popup",r));mappl10n.options.engine=="leaflet"?(this.iw.setLatLng(t.getPosition()),this.iw.options.offset=t.getAnchorPoint(),this.map_.openPopup(this.iw)):(u=new google.maps.MVCObject,u.setValues({position:t.getPosition(i),anchorPoint:t.getAnchorPoint(i)}),this.iw.open(this.map_,u));n(this).triggerHandler("mapp.open",t)},renderMenu:function(){var t=this;for(layer in this.layers_)n('[data-mapp-layer="'+layer+'"]',this.div.layout).toggleClass("mapp-active",this.layers_[layer].getMap()!=null)},addStyles:function(){var u=this,l,f,r,i;if(mappl10n.options.engine=="leaflet"){if(this.editable){for(l=[],f=L.control.layers(),r=0;r<mappl10n.options.baseLayers.length;r++){var o=mappl10n.options.baseLayers[r],s=mappl10n.options.providers[o.provider],h=n.extend({},s,o);f.addBaseLayer(L.tileLayer(s.url,h),h.label)}mappl10n.options.baseLayers.length>1&&f.addTo(this.map_)}this.map_.on("baselayerchange",function(n){u.mapTypeId=n.layer.options.name})}else{var t=mappl10n.options.styles?mappl10n.options.styles:[],e=mappl10n.options.style,c=["roadmap","satellite","terrain","hybrid"];if(e&&typeof t[e]!="undefined"&&this.map_.setOptions({styles:t[e]}),this.editable){for(i in t)this.map_.mapTypes.set(i,new google.maps.StyledMapType(t[i],{name:i})),c.push(i);this.map_.setOptions({mapTypeControl:!0,mapTypeControlOptions:{mapTypeIds:c,position:google.maps.ControlPosition.TOP_RIGHT,style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}})}else this.mapTypeId&&typeof t[this.mapTypeId]!="undefined"&&this.map_.setOptions({styles:t[this.mapTypeId]});mapp.event.addListener(this.map_,"maptypeid_changed",function(){u.mapTypeId=u.map_.getMapTypeId()})}},addLayers:function(){var u,i,t,r;for(this.layers_={traffic:new google.maps.TrafficLayer,bicycling:new google.maps.BicyclingLayer,transit:new google.maps.TransitLayer},u=n.makeArray(this.layers),i=0;i<u.length;i++)t=n.trim(u[i]),r=t.split(".").pop(),this.layers_[t]?this.toggleLayer(t):r=="kml"||r=="kmz"?this.layers_[t]=new google.maps.KmlLayer({map:this.map_,preserveViewport:!0,url:t}):r=="json"&&(this.layers_[t]=new google.maps.Data({map:this.map_}).loadGeoJson(t))},addMenu:function(){var t=this;n("body").on("click",function(i){var r=n(i.target),u=r.attr("data-mapp-action");r==t.div.filters||u=="filters-toggle"||r.closest(t.div.filters).length||t.toggleView("filters",!1);r==t.div.menu||u=="menu-toggle"||r.closest(t.div.menu).length||t.toggleView("menu",!1)})},toggleLayer:function(t,i){var r=this;i=typeof i!="undefined"?i:this.layers_[t].getMap()==null;n.each(["traffic","bicycling","transit"],function(n,t){r.layers_[t].setMap(null)});i&&this.layers_[t].setMap(this.map_)},togglePois:function(n){n=!!n;for(var t=0;t<this.pois_.length;t++)this.pois_[t].setVisible(n)},toggleView:function(n,t){if(n=="mini"){t=this.div.layout.width()<mappl10n.options.mini;this.div.layout.toggleClass("mapp-view-"+n,t);t||this.toggleView("list",!1);return}t=typeof t=="undefined"?!this.div.layout.hasClass("mapp-view-"+n):t;this.div.layout.toggleClass("mapp-view-"+n,t);n=="list"&&t&&this.renderList();n=="menu"&&t&&this.renderMenu();n=="directions"&&this.resize()},resize:function(){var n=this.getCenter();mappl10n.options.engine=="leaflet"?this.map_.invalidateSize():mapp.event.trigger(this.map_,"resize");n&&this.setView(n)},recenter:function(){var t=this.center&&this.center.lat&&this.center.lng?this.center:null,n=this.zoom&&parseInt(this.zoom)?parseInt(this.zoom):null,i,r;if(t&&!n&&this.query){this.search({geometry:{location:{lat:t.lat,lng:t.lng}}});return}if(t){this.setView(t,n?n:1);return}if(this.pois_.length==0){this.setView({lat:0,lng:0},n?n:1);return}if(this.pois_.length==1){this.pois_[0].center(n);return}for(bounds=mappl10n.options.engine=="leaflet"?new L.LatLngBounds:new google.maps.LatLngBounds,i=0;i<this.pois_.length;i++)r=this.pois_[i].getBounds(),bounds=r?mappl10n.options.engine=="leaflet"?bounds.extend(r):bounds.union(r):bounds.extend(this.pois_[i].getPosition());n?this.setView(bounds.getCenter().toJSON(),n):this.fitBounds(bounds)},fitBounds:function(n,t){var t=mappl10n.options.engine=="leaflet"&&t?{paddingTopLeft:[t.left,t.top],paddingBottomRight:[t.right,t.bottom]}:t;return this.map_.fitBounds(n,t)},getBounds:function(){try{return this.map_.getBounds()}catch(n){return null}},getCenter:function(){try{return this.map_.getCenter()}catch(n){return null}},getMapTypeId:function(n){return mappl10n.options.engine=="leaflet"?"roadmap":this.map_.getMapTypeId(n)},setMapTypeId:function(t){var s=this,i,r,e,u,o,f;if(mappl10n.options.engine=="leaflet")for(this.map_.eachLayer(function(n){s.map_.removeLayer(n)}),t=!this.editable&&mappl10n.options.style&&t=="streets"?mappl10n.options.style:t,t=_.findIndex(mappl10n.options.baseLayers,{name:t})>=0?t:mappl10n.options.baseLayers[0].name,i=0;i<mappl10n.options.baseLayers.length;i++)r=mappl10n.options.baseLayers[i],e=mappl10n.options.providers[r.provider],r.name==t&&(u=n.extend({},e,r),o=L.tileLayer(u.url,u),o.addTo(this.map_));else f=n.inArray(t,["roadmap","satellite","terrain","hybrid"])!=-1,t=this.editable?f||typeof mappl10n.options.styles[t]!="undefined"?t:"roadmap":f?t:"roadmap",this.map_.setMapTypeId(t)},setView:function(n,t,i){mappl10n.options.engine=="leaflet"?(t==null&&(t=this.map_.getZoom()?this.map_.getZoom():0),this.map_.setView(n,t,i)):(n=n&&!n.toJSON?{lat:parseFloat(n.lat),lng:parseFloat(n.lng)}:n,t=t?parseInt(t):null,n&&this.map_.setCenter(n),t&&this.map_.setZoom(t))},toJSON:function(){var n;for(this.pois=[],n=0;n<this.pois_.length;n++)this.pois.push(this.pois_[n].toJSON());return{center:this.center,height:this.height,mapid:this.mapid,mapTypeId:this.mapTypeId,metaKey:this.metaKey,pois:this.pois,postid:this.postid,title:this.title,width:this.width,zoom:this.zoom}},ajaxSave:function(n){var t=this;this.postid||(this.postid=mappl10n.options.postid);mapp.lib.ajax({type:"POST",data:{action:"mapp_save",map:JSON.stringify(this),nonce:mappl10n.options.nonce},callback:function(i){var r,u;if(i.status=="OK"){t.mapid||(t.mapid=i.data.mapid);r=t.toJSON();for(u in r)t.model[u]=r[u];n()}}})}};mapp.Map.ajaxGet=function(n,t){mapp.lib.ajax({type:"GET",data:{action:"mapp_get",mapid:n,nonce:mappl10n.options.nonce},callback:function(n){n.status=="OK"&&t(n.data.map)}})};mapp.Map.ajaxDelete=function(n,t){mapp.lib.ajax({type:"POST",data:{action:"mapp_delete",mapid:n,nonce:mappl10n.options.nonce},callback:function(n){n.status=="OK"&&t&&t()}})}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Directions=function(t,i){this.sel=n(t);this.map=i;var r=this;this.sel.on("keydown",function(n){n.which==13?(r.getDirections(),n.preventDefault()):n.which==27&&r.close()});this.sel.on("click","[data-mapp-action]",function(t){var i=n(this).attr("data-mapp-action"),u=n(".mapp-dir-daddr",r.sel).val(),f=n(".mapp-dir-saddr",r.sel).val();t.preventDefault();switch(i){case"dir-cancel":r.close();break;case"dir-get":r.getDirections();break;case"dir-swap":n(".mapp-dir-saddr",r.sel).val(u);n(".mapp-dir-daddr",r.sel).val(f)}});this.open=function(t,i){if(mappl10n.options.directions=="google"){this.openGoogle(t,i);return}this.map.toggleView("directions",!0);n(".mapp-dir-addr",this.sel).removeClass("mapp-error");n(".mapp-dir-saddr",this.sel).val(t);n(".mapp-dir-daddr",this.sel).val(i);n(".mapp-dir-get",this.sel).focus();n(".mapp-dir-saddr",this.sel).focus()};this.close=function(){this.map.toggleView("directions",!1)};this.getDirections=function(){var t=n(".mapp-dir-saddr",this.sel).val().trim(),i=n(".mapp-dir-daddr",this.sel).val().trim();this.map.close();this.openGoogle(t,i)};this.openGoogle=function(n,t){var i=mappl10n.options.directionsServer;i.toLowerCase().indexOf("http")==-1&&(i="https://"+i);i+="/maps/dir/?api=1&origin="+encodeURIComponent(n)+"&destination="+encodeURIComponent(t);window.open(i)}}}(jQuery);mapp=window.mapp||{};mapp.geocoders={};+function(n){mapp.geocoders.Algolia=function(n){this.map=n;this.places=algoliasearch.initPlaces()};mapp.geocoders.Algolia.prototype={geocode:function(n,t){var i=this;this.getPredictions(n,function(i){i&&i.hits.length?t({formatted_address:i.hits[0].locale_names[0],name:n,geometry:{location:{lat:i.hits[0]._geoloc.lat,lng:i.hits[0]._geoloc.lng}}}):t(null)})},getDetails:function(n,t){if(mappl10n.options.geocoder=="nominatim")return this.getNominatimDetails(n,t);if(mappl10n.options.geocoder=="mapbox"&&mappl10n.options.mapbox)return this.getMapboxDetails(n,t);t({formatted_address:n.value,name:n.name,geometry:{location:n.latlng}});return},getNominatimDetails:function(t,i){url="https://nominatim.openstreetmap.org/search?format=json&limit=1&q="+encodeURIComponent(t.value);url=mappl10n.options.country?url+"&countrycodes="+mappl10n.options.country.toLowerCase():url;url=mappl10n.options.language?url+"&accept-language="+mappl10n.options.language.toLowerCase():url;n.getJSON(url,function(n){if(n&&n.length){var r=n[0],u=r.boundingbox&&r.boundingbox.length==4?{sw:{lat:r.boundingbox[0],lng:r.boundingbox[2]},ne:{lat:r.boundingbox[1],lng:r.boundingbox[3]}}:null;i({formatted_address:r.display_name,name:t.name,geometry:{location:{lat:r.lat,lng:r.lon},viewport:u}})}else i({formatted_address:t.value,name:t.name,geometry:{location:t.latlng}})})},getMapboxDetails:function(t,i){url="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURIComponent(t.value)+".json?access_token="+mappl10n.options.mapbox;url=mappl10n.options.country?url+"&country="+mappl10n.options.country.toLowerCase():url;url=mappl10n.options.language?url+"&language="+mappl10n.options.language.toLowerCase():url;n.getJSON(url,function(n){if(n&&n.features&&n.features.length>0){var r=n.features[0],u=r.bbox&&r.bbox.length==4?{sw:{lat:r.bbox[1],lng:r.bbox[0]},ne:{lat:r.bbox[3],lng:r.bbox[2]}}:null;i({formatted_address:r.place_name,name:t.name,geometry:{location:{lat:r.center[1],lng:r.center[0]},viewport:u}})}else i({formatted_address:t.value,name:t.name,geometry:{location:t.latlng}})})},getPredictions:function(n,t){this.places.search({query:n,language:mappl10n.options.language},function(n,i){n||!i?t(null):t(i)})}}}(jQuery);+function(n){mapp.geocoders.Google=function(t){this.map=t;this.token=null;this.types=this.map.editable?null:["geocode"];var i=n('<div style="display:none">').appendTo("body");this.placesService=new google.maps.places.PlacesService(i.get(0));this.autocompleteService=new google.maps.places.AutocompleteService;i.remove()};mapp.geocoders.Google.prototype={geocode:function(t,i){var r=this;this.getPredictions(t,function(t){t&&n.isArray(t)?r.getDetails(t[0],function(n){i(n)}):i(null)})},getDetails:function(n,t){this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;this.token=null;var i={placeId:n.place_id,sessionToken:this.token};this.placesService.getDetails(i,function(n,i){if(i=="OK"&&n&&n.geometry){if(n.geometry.location&&(n.geometry.location=n.geometry.location.toJSON()),n.geometry.viewport){var r=n.geometry.viewport.toJSON();n.geometry.viewport={sw:{lat:r.south,lng:r.west},ne:{lat:r.north,lng:r.east}}}t(n)}else t(null)})},getPredictions:function(n,t){var i,r;this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;i=this.map.getMap().getBounds();i=i?i:new google.maps.LatLngBounds(new google.maps.LatLng(85,-180),new google.maps.LatLng(-85,180));r={input:n,bounds:i,sessionToken:this.token,types:this.types};this.autocompleteService.getPlacePredictions(r,function(n,i){i=="OK"&&n&&n.length?t(n):(i==google.maps.places.PlacesServiceStatus.REQUEST_DENIED?alert("Google Maps API Key error: please enable the Places API in the Google Developer Console."):i==google.maps.places.PlacesServiceStatus.OVER_QUERY_LIMIT&&alert("Google Maps API Key has exceeded its query limit"),t(null))})}}}(jQuery);mapp=window.mapp||{};mapp.Icons={};mapp.Icons.get=function(){var n="https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png";return mappl10n.options.engine=="leaflet"?L.icon({iconUrl:n,iconAnchor:[16,32],iconSize:[32,32],popupAnchor:[0,-32]}):{url:n}};mapp.Icons.getUrl=function(){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"};mapp=window.mapp||{};+function(n){mapp.InfoBox=function(t,i){var f=n.extend({border:20},i),u=null,r=null,o,e=this;r=n('<div class="mapp-ib-wrapper" tabindex="0"><div class="mapp-ib" tabindex="0"><\/div><div class="mapp-ib-tip"><\/div><\/div>').appendTo(t.getMap().getDiv());jQuery(window).resize(function(){e.close()});r.on("keydown",function(n){n.which==27&&e.close()});r.on("click",".mapp-close",function(){e.close()});this.getContent=function(){return n(".mapp-ib",r)};this.setContent=function(t){n(".mapp-ib",r).empty().append(t)};this.open=function(n,t){u=t;this.setMap(n)};this.onAdd=function(){o=!1;var t=n(":input",r);r.show();t.length?t.first().focus():r.focus();google.maps.event.trigger(e,"domready")};this.draw=function(){var l=this.getMap(),a=n(".mapp-ib-body",r),s=this.getProjection().fromLatLngToContainerPixel(u.position),t,h,c,i,e;o||(o=!0,t={width:n(":first-child",l.getDiv()).width(),height:n(":first-child",l.getDiv()).height()},r.css({"max-height":"9999px",left:0,bottom:0,top:"auto",right:"auto"}),h=r.outerWidth(!0),c=r.outerHeight(!0),c>t.height+u.anchorPoint.y-2*f.border&&(c=t.height+u.anchorPoint.y-2*f.border,r.css({"max-height":c+2})),i=s.x,e=s.y,i+h/2>t.width&&(i=t.width-h/2),i-h/2<0&&(i=h/2),e-c+u.anchorPoint.y<f.border&&(e=c-u.anchorPoint.y+f.border),e>t.height&&(e=t.height),(s.x-i||s.y-e)&&l.panBy(s.x-i,s.y-e),r.css({left:i-h/2,bottom:t.height-e-u.anchorPoint.y}))};this.close=function(){r.is(":visible")&&(this.setMap(null),google.maps.event.trigger(this,"closed"))};this.onRemove=function(){r.hide()}};mappl10n.options.engine!="leaflet"&&(mapp.InfoBox.prototype=new google.maps.OverlayView)}(jQuery);mapp=window.mapp||{};+function(n){mapp.lib={ajax:function(t){var i=this;return n.extend({type:"GET",data:null,spinner:null,callback:n.noop},t),t.spinner&&t.spinner.show(),n.ajax({type:t.type,url:mappl10n.options.ajaxurl,data:t.data,success:function(n,r,u){if(t.spinner&&t.spinner.hide(),n.status!="OK"){var f=typeof n=="object"?n.status:n;i.alert("AJAX ERROR\r\nResponse="+f+" TextStatus="+r+"\r\nResponseText="+u.responseText)}if(n.output){i.log("AJAX Output\r\n"+n.output);return}t.callback&&t.callback(n,u)},error:function(n,r,u){(t.spinner&&t.spinner.hide(),r!="cancel")&&typeof u!="undefined"&&u!=""&&i.alert("AJAX ERROR\r\nTextStatus="+r+"\r\nError="+u+"\r\nResponseText="+n.responseText)}})},alert:function(n){mappl10n.options.admin||mappl10n.options.debug?alert(n):window.console&&console.error(n)},jqVersionCheck:function(t){if(typeof n=="undefined"||typeof t=="undefined")return!1;for(t=t.split("."),v=n.fn.jquery.split("."),i=0;i<t.length;i++){var r=parseInt(t[i]),u=typeof v[i]!="undefined"?parseInt(v[i]):0;if(u!=r)return u>r}return!0},log:function(n){window.console&&console.error(n)},scrollTo:function(n,t){if(n&&t&&n.length&&t.length){var r=n.scrollTop(),u=n.height(),i=r+t.position().top,f=i+t.outerHeight(!0);i<r?n.scrollTop(i):f>r+u&&n.scrollTop(i)}},template:function(t,i){if(mapp.lib.templates=mapp.lib.templates?mapp.lib.templates:{},!mapp.lib.templates[t]){var r=mappl10n.options.templates?mappl10n.options.template[t]:n("#mapp-tmpl-"+t).html();if(r)mapp.lib.templates[t]=_.template(r.replace(/[\n\r\t]/g,""),null,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});else return""}return mapp.lib.templates[t](i)}};mapp.lib.jqVersionCheck("1.7")||mapp.lib.alert("jQuery version is too old: "+n.fn.jquery);n("body").on("tabsactivate tabsshow",function(t,i){var r=i.newPanel?i.newPanel:i.panel;r&&n(".mapp-layout",r).each(function(){var i=n(this).find(".mapp-canvas").attr("id"),t=window[i];t.resize();t.recenter()})})}(jQuery);+function(){mappl10n.options.engine=="leaflet"&&(L.LatLng.prototype.toJSON=function(){return{lat:this.lat,lng:this.lng}},L.LatLngBounds.prototype.toJSON=function(){return{south:this.getSouth(),west:this.getWest(),north:this.getNorth(),east:this.getEast()}},L.LatLng.prototype.toUrlValue=function(){return Math.round(this.lat*1e6)/1e6+", "+Math.round(this.lng*1e6)/1e6});mapp.event={addListener:function(n,t,i){for(var u=t.split(" "),r=0;r<u.length;r++)if(mappl10n.options.engine=="leaflet")n.on(u[r],i);else google.maps.event.addListener(n,u[r],i)},addListenerOnce:function(n,t,i){for(var u=t.split(" "),r=0;r<u.length;r++)if(mappl10n.options.engine=="leaflet")n.once(u[r],i);else google.maps.event.addListenerOnce(n,u[r],i)},clearInstanceListeners:function(n){mappl10n.options.engine=="leaflet"?n.off():google.maps.event.clearInstanceListeners(n)},clearListeners:function(n,t){mappl10n.options.engine=="leaflet"?n.off(t):google.maps.event.clearListeners(n,t)},trigger:function(n,t,i){mappl10n.options.engine=="leaflet"?n.fire(t,i):google.maps.event.trigger(n,t,i)}}}(jQuery);mapp=window.mapp||{};jQuery.fn.AlgoliaAutocomplete=jQuery.fn.autocomplete.noConflict();+function(n){mapp.Places=function(t,i){var r=this;this.sel=n(t);this.opts=n.extend({map:null},i);this.geocoder=mappl10n.options.engine=="leaflet"?new mapp.geocoders.Algolia(this.opts.map):new mapp.geocoders.Google(this.opts.map);this.sel.on("keydown",function(t){if(t.which==13){t.preventDefault();var i=r.parseLatLng(r.sel.val());i&&(n(r).triggerHandler("search.mapp",i),r.sel.AlgoliaAutocomplete("close"),t.stopImmediatePropagation());r.sel.val().substring(0,4)=="http"&&(n(r).triggerHandler("search.mapp",r.sel.val()),r.sel.AlgoliaAutocomplete("close"),t.stopImmediatePropagation())}});this.autocomplete()};mapp.Places.prototype={parse:function(t,i){var f=this,u=t&&t.name?n.trim(t.name):n.trim(t),r;if(!u){i(null);return}if(u=="user"){this.geolocate(function(n){i(n)});return}if(t&&t.geometry){i(t);return}if(r=this.parseLatLng(t),r){i(r);return}this.geocoder.geocode(t,function(n){i(n)})},parseLatLng:function(t){var i,e,r,u,f;return t.lat&&t.lng?i=t:(e=t&&t.name?n.trim(t.name):n.trim(t),r=e.split(","),r.length==2&&(u=parseFloat(r[0]),f=parseFloat(r[1]),isNaN(u)||isNaN(f)||(i={lat:u,lng:f}))),i?{name:i.lat+", "+i.lng,geometry:{location:i}}:null},geolocate:function(n){var t=this;if(!navigator||!navigator.geolocation){alert(mappl10n.no_geolocate);return}navigator.geolocation.getCurrentPosition(function(t){var i={lat:t.coords.latitude,lng:t.coords.longitude};n({name:i.lat+", "+i.lng,geometry:{location:i}})},function(t){var i=t&&t.message?" : "+t.message:"";alert(mappl10n.no_geolocate+i);n(null)},{timeout:15e3,enableHighAccuracy:!0,maximumAge:3e4})},autocomplete:function(){var t=this,r,i,u;this.sel.on("autocomplete:selected",function(i,r){t.geocoder.getDetails(r,function(i){t.parse(i,function(i){i&&n(t).triggerHandler("search.mapp",i)})})});r={empty:function(n,t){return t&&mappl10n.options.pro&&n&&n.toLowerCase().substring(0,4)=="http"?"":'<div class="list-group search-results-dropdown"><div class="list-group-item">'+mappl10n.no_results+"<\/div><\/div>"},header:'<div class="list-group search-results-dropdown">'};mappl10n.options.engine=="leaflet"?(i={algoliasearch:algoliasearch,templates:r},mappl10n.options.country&&(i.countries=[mappl10n.options.country]),mappl10n.options.language&&(i.language=mappl10n.options.language),u=placesAutocompleteDataset(i)):u={display:"description",source:function(n,i){t.geocoder.getPredictions(n,function(n){matches=n;i(matches)})},templates:r};this.sel.AlgoliaAutocomplete({autoselect:!0,cssClasses:{prefix:"mapp-aa"},debug:!1,hint:!0,highlight:!0,minLength:1},u)}}}(jQuery);mapp=window.mapp||{};+function(n){mapp.Poi=function(t){var u,f,r,o,i,e,h,s;if(this.defaults={address:null,body:null,iconid:null,kml:null,map:null,overlay:null,postid:null,props:null,title:"",url:null,type:null,viewport:null},n.extend(this,this.defaults,t),t&&t.correctedAddress&&(this.address=t.correctedAddress),mappl10n.options.engine=="leaflet"&&this.isPoly()&&(this.type=null),t.viewport&&t.viewport.sw&&t.viewport.ne&&t.viewport.sw.lat&&(u=t.viewport.sw,f=t.viewport.ne,this.viewport=mappl10n.options.engine=="leaflet"?new L.LatLngBounds(L.latLng(u.lat,u.lng),L.latLng(f.lat,f.lng)):new google.maps.LatLngBounds(new google.maps.LatLng(u.lat,u.lng),new google.maps.LatLng(f.lat,f.lng))),r=[],o=[],!t.overlay)switch(this.type){case"polygon":if(t.poly&&t.poly.paths)for(i=0;i<t.poly.paths.length;i++){for(r=[],e=0;e<t.poly.paths[i].length;e++)r.push(new google.maps.LatLng(t.poly.paths[i][e].lat,t.poly.paths[i][e].lng));o.push(new google.maps.MVCArray(r))}this.overlay=new google.maps.Polygon({paths:new google.maps.MVCArray(o)});this.setColors(t.poly);break;case"polyline":if(t.poly&&t.poly.path)for(i=0;i<t.poly.path.length;i++)r.push(new google.maps.LatLng(t.poly.path[i].lat,t.poly.path[i].lng));this.overlay=new google.maps.Polyline({path:new google.maps.MVCArray(r)});this.setColors(t.poly);break;case"circle":h=new google.maps.LatLng(t.point.lat,t.point.lng);this.overlay=new google.maps.Circle({center:h,radius:parseFloat(t.poly.radius)});this.setColors(t.poly);break;case"rectangle":this.overlay=new google.maps.Rectangle({bounds:this.viewport});this.setColors(t.poly);break;case"kml":s=t.kml&&t.kml.url?t.kml.url:"";this.overlay=mappl10n.options.engine=="leaflet"?omnivore.kml(s):new google.maps.KmlLayer(s,{preserveViewport:!0,suppressInfoWindows:!0});break;case"":default:this.overlay=mappl10n.options.engine=="leaflet"?L.marker([t.point.lat,t.point.lng],{title:t.title}):new google.maps.Marker({position:new google.maps.LatLng(t.point.lat,t.point.lng),title:t.title})}t.type||this.setIcon(t.iconid)};mapp.Poi.prototype={toJSON:function(){var n={address:this.address,body:this.body,iconid:this.iconid,point:null,poly:null,title:this.title,type:this.type,viewport:null},u=this.getPosition(),i,t,r;if(n.point=u.toJSON(),i=this.viewport?this.viewport:this.getBounds(),i&&(t=i.toJSON(),n.viewport={sw:{lat:t.south,lng:t.west},ne:{lat:t.north,lng:t.east}}),this.type=="kml"&&(n.kml=this.kml),this.isPoly()){n.poly=this.getColors();switch(this.type){case"circle":n.poly.radius=this.overlay.getRadius();break;case"polyline":n.poly.path=[];this.overlay.getPath().forEach(function(t){n.poly.path.push(t.toJSON())});break;case"polygon":n.poly.paths=[];this.overlay.getPaths().forEach(function(t){var i=[];t.forEach(function(n){i.push(n.toJSON())});n.poly.paths.push(i)});break;case"rectangle":r=this.overlay.getBounds();n.viewport={sw:r.getSouthWest().toJSON(),ne:r.getNorthEast().toJSON()}}}return n},setMap:function(n){var t=this;if(this.map=n,mapp.event.clearInstanceListeners(this.overlay),n==null){mappl10n.options.engine=="leaflet"?this.overlay.remove():this.overlay.setMap(null);return}this.type=="kml"&&(mappl10n.options.engine=="leaflet"?(mapp.event.addListenerOnce(this.overlay,"ready",function(){t.viewport=t.overlay.getBounds()}),mapp.event.addListenerOnce(this.overlay,"error",function(){alert(mappl10n.kml_error)})):(mapp.event.addListener(this.overlay,"defaultviewport_changed",function(){t.viewport=t.overlay.getDefaultViewport()}),mapp.event.addListener(this.overlay,"status_changed",function(){var n=t.overlay.getStatus();n!="OK"&&mappl10n.ajaxErrors&&alert(mappl10n.kml_error+":"+n)})));mapp.event.addListener(this.overlay,"click",function(n){t.open(n)});this.setEditable(this.map.editable);mappl10n.options.engine=="leaflet"?this.overlay.addTo(n.getMap()):this.overlay.setMap(n.getMap())},setEditable:function(n){var t=this;this.type!="kml"&&(mappl10n.options.engine=="leaflet"?this.overlay.options.draggable=n:this.overlay.setDraggable(n),this.isPoly()&&this.overlay.setEditable(n),mapp.event.clearListeners(this.overlay,"rightclick"),mapp.event.clearListeners(this.overlay,"dragstart"),n&&(mapp.event.addListener(this.overlay,"dragstart",function(){t.viewport=null;t.map.close()}),(this.type=="polygon"||this.type=="polyline")&&mapp.event.addListener(this.overlay,"rightclick",function(n){n.vertex!=null&&t.overlay.getPath().getLength()>2&&t.overlay.getPath().removeAt(n.vertex)})))},setZIndex:function(n){mappl10n.options.engine=="leaflet"?this.type||this.overlay.setZIndexOffset(n):this.overlay.set("zIndex",n)},setIcon:function(n){this.type||typeof mapp.Icons=="undefined"||(this.iconid=n,mappl10n.options.engine=="leaflet"?this.overlay.setIcon(mapp.Icons.get(n)):(this.overlay.setIcon(null),this.overlay.setIcon(mapp.Icons.get(n))))},setVisible:function(n){typeof this.overlay.setVisible!="undefined"&&this.overlay.setVisible(n)},setColors:function(n){var i={};for(var t in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})n&&typeof n[t]!="undefined"&&(i[t]=n[t]);this.overlay.setOptions(i)},setTemplateColors:function(n,t,i){var r=this.type=="polyline"?{strokeColor:n,strokeOpacity:t/100,strokeWeight:i}:{fillColor:n,fillOpacity:t/100,strokeColor:n,strokeWeight:i,strokeOpacity:1};this.setColors(r)},getColors:function(){var t={};for(var n in{strokeColor:"",strokeOpacity:"",strokeWeight:"",fillColor:"",fillOpacity:""})typeof this.overlay[n]!="undefined"&&(t[n]=this.overlay[n]);return t},getTemplateColors:function(){var n=this.getColors();return this.type=="polyline"?{color:n.strokeColor,opacity:n.strokeOpacity*100,weight:n.strokeWeight}:{color:n.fillColor,opacity:n.fillOpacity*100,weight:n.strokeWeight}},center:function(n){var t=this.getBounds();if(typeof n=="number"){this.map.setView(this.getPosition(),n);return}if(!t){this.map.setView(this.getPosition(),parseInt(mappl10n.options.poiZoom));return}this.map.fitBounds(t);this.map.setView(this.getPosition(),n,{animate:!1})},open:function(n){this.map.open(this,n)},isPoly:function(){return jQuery.inArray(this.type,["polyline","polygon","circle","rectangle"])!=-1},getBounds:function(){var n;switch(this.type){case"polyline":n=new google.maps.LatLngBounds;this.overlay.getPath().forEach(function(t){n.extend(t)});break;case"polygon":n=new google.maps.LatLngBounds;this.overlay.getPaths().forEach(function(t){t.forEach(function(t){n.extend(t)})});break;case"rectangle":case"circle":n=this.overlay.getBounds();break;case"kml":n=mappl10n.options.engine=="leaflet"?this.overlay.getBounds().isValid()?this.overlay.getBounds():null:this.overlay.getDefaultViewport();n=n?n:this.viewport;break;default:return this.viewport}return n},getPosition:function(n){if(!this.type)return mappl10n.options.engine=="leaflet"?this.overlay.getLatLng():this.overlay.getPosition();if(this.type=="kml"&&n&&n.latLng)return n.latLng;var t=this.getBounds();return t?t.getCenter():mappl10n.options.engine=="leaflet"?new L.latLng(0,0):new google.maps.LatLng(0,0)},getAddress:function(){return this.address?this.address:this.getPosition().toUrlValue()},getAnchorPoint:function(n){var t=this.isPoly()?"poly":this.type;switch(t){case"kml":return mappl10n.options.engine=="leaflet"?[0,0]:n&&n.pixelOffset?new google.maps.Point(n.pixelOffset.width,n.pixelOffset.height):new google.maps.Point(0,0);case"poly":return mappl10n.options.engine=="leaflet"?[0,0]:new google.maps.Point(0,0);default:return mappl10n.options.engine=="leaflet"?this.overlay.options.icon.options.popupAnchor?this.overlay.options.icon.options.popupAnchor:[0,-32]:typeof this.overlay.anchorPoint!="undefined"?this.overlay.anchorPoint:new google.maps.Point(0,-32)}},render:function(n,t){var i=_.extend(this,{icon:mapp.Icons.getUrl(this.iconid)});return t&&(i.body=t.description,i.title=t.name),mapp.lib.template(this.map.templates[n],{poi:i,colors:this.getTemplateColors()})}}}(jQuery);mapp=window.mapp||{};mapp.widgets={};+function(n){mapp.widgets.Grid=function(t,i){this.el=n(t);this.options=jQuery.extend({action:null,sortable:!1},i);var r=this;this.table=n("table",this.el);this.template=n("script",this.el).html().replace(new RegExp("'","g"),'"');this.el.on("click",function(t){var u=n(t.target),i=u.attr("data-mapp-action");i&&(r[i](t),t.preventDefault())})};mapp.widgets.Grid.prototype={add:function(){this.table.show();var t=n(this.template).appendTo(this.table);n(":input:eq(0)",t).focus()},remove:function(t){var i=n(t.target).closest("tr").remove();n("tbody > tr",this.table).length||this.table.hide()}}}(jQuery);+function(n){mapp.widgets.Popup=function(t,i){this.activeToggle=null;this.backdrop=null;this.content=n(t);this.el=null;var r=this;if(this.options=n.extend({closeButton:!1,closeOnEsc:!0,max:!1,modal:!1,onRequestClose:null,position:null,toggle:null},i),this.el=n('<div class="mapp-popup">'),this.setContent(t),this.el.attr("tabindex",0),this.options.max&&this.el.addClass("mapp-popup-max"),this.el.hide(),this.options.toggle)n(document).on("click",n(this.options.toggle).selector,function(t){r.activeToggle=n(this);r.open();t.stopPropagation()});if(this.options.modal){if(this.el.addClass("mapp-popup-modal"),this.backdrop=n('<div class="mapp-popup-backdrop"><\/div>'),n("body").append(this.backdrop),this.options.closeOnEsc)n(this.backdrop).on("click",function(){r.requestClose()})}else n(document).on("click",function(n){r.el.has(n.target).length||r.el.get(0)==n.target||r.requestClose()});this.el.on("click",".mapp-close",function(){r.requestClose()});this.el.on("keydown",function(n){n.which==27&&r.options.closeOnEsc&&r.requestClose()});return this};mapp.widgets.Popup.prototype={close:function(){this.el&&this.el.is(":visible")&&(this.el.hide(),this.options.modal&&(this.backdrop.hide(),n("body").removeClass("mapp-popup-noscroll")),this.activeToggle&&this.activeToggle.focus(),this.el.trigger("closed.mapp.popup"))},open:function(){var t=this;this.el.parent().length||this.el.appendTo("body");this.el.show();this.options.modal?(this.backdrop.show(),n("body").addClass("mapp-popup-noscroll")):this.el.position(n.extend({my:"center top",at:"center bottom + 5",of:this.activeToggle,collision:"flipfit"},this.options.position));this.el.focus();this.el.trigger("open.mapp.popup")},requestClose:function(){this.options.onRequestClose?this.options.onRequestClose():this.close()},setContent:function(n){this.el.empty();this.options.closeButton&&this.el.append('<span class="mapp-close">');this.el.append(n)},toggle:function(){this.el.is(":visible")?this.close():this.open()}}}(jQuery);+function(){mapp.load=function(){if(typeof mapp!="undefined"&&mapp.data)while(mapp.data.length){var n=mapp.data.pop();window[n.name]=new mapp.Map(n);window[n.name].display()}}}(jQuery);typeof mapp.Media!="undefined"?window.mappMedia=new mapp.Media:mapp.load()
 
js/mappress_editor.min.js DELETED
@@ -1 +0,0 @@
1
- var mapp=window.mapp||{};+function(n){mapp.Editor=function(t){this.drawingManager=null;this.map=t;this.poiEditor=null;this.sel=n(".mapp-edit");var i=this;this.initialize=function(){this.map.display();this.poiEditor=new mapp.PoiEditor(this.map);this.initDrawingManager();n(this.map.places).off("search.mapp");n(this.map.places).on("search.mapp",function(n,t){i.insertPoi(t)});this.sel.on("click","[data-mapp-editor]",function(t){t.preventDefault();var r=n(this).attr("data-mapp-editor");i[r]()})};this.close=function(){this.map.close()};this.insertPoi=function(n){var t;if(n)if(this.drawingManager&&this.drawingManager.setDrawingMode(null),this.map.close(),n.geometry){var i=n.formatted_address?n.formatted_address.replace(/, United States of America/i,"").replace(/, United States/i,"").replace(/, USA/i,""):null,r=n.name==i?"":i,t=new mapp.Poi({address:i,body:r,iconid:this.poiEditor.lastIcon,point:n.geometry.location,title:n.name,viewport:n.geometry.viewport?n.geometry.viewport:null});this.map.insertPoi(t);t.center()}else n.overlay&&(t=new mapp.Poi({body:"",iconid:n.type=="marker"?null:"poly",overlay:n.overlay,title:n.type=="marker"?n.overlay.getPosition().toUrlValue(6):mappl10n.shape,type:n.type=="marker"?null:n.type}),this.map.insertPoi(t))};this.initDrawingManager=function(){};this.layer=function(){var n=window.prompt(mappl10n.layer);n&&i.insertPoi(n)};this.initialize.apply(this)};mapp.PoiEditor=function(t){this.map=t;this.poi=null;this.sel=null;this.lastIcon=null;var i=this;this.initialize=function(){this.sel=n(this.map.iw.getContent());n(this.map).on("mapp.open",function(n,t){i.render(t)});n(this.map).on("mapp.close",function(){i.mce(!1)});this.sel.on("click","[data-mapp-poi]",function(t){t.preventDefault();var r=n(this).attr("data-mapp-poi");i[r]()});this.sel.on("click",".mapp-poi-visual, .mapp-poi-html",function(){var t=n(this).hasClass("mapp-poi-visual");i.mce(t)});this.sel.on("keydown",function(t){t.which==13&&t.target!=n("#mapp-poi-body")&&(t.preventDefault(),i.save())});this.sel.on("change","[data-mapp-iconpicker]",function(){i.poi.setIcon(n("[data-mapp-iconpicker]").attr("data-mapp-iconid"));i.lastIcon=i.poi.iconid;i.map.renderList()});this.sel.on("change","[data-mapp-colorpicker]",function(){i.poi.setTemplateColors(n("[data-mapp-colorpicker]").attr("data-mapp-color"),n("[data-mapp-colorpicker]").attr("data-mapp-opacity"),n("[data-mapp-colorpicker]").attr("data-mapp-weight"));i.map.renderList()})};this.cancel=function(){this.map.close()};this.initMCE=function(){var n,t,i;typeof tinyMCE!="undefined"&&typeof tinyMCE.init!="undefined"&&(n="en",typeof tinyMCEPreInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit!="undefined"&&typeof window.tinyMCEPreInit.mceInit.content!="undefined"&&(t=window.tinyMCEPreInit.mceInit.content,n=typeof t.language!="undefined"?t.language:"en"),i={mode:"none",height:"75px",convert_urls:!1,language:n,menubar:!1,plugins:"wordpress,paste,wplink,textcolor,image",relative_urls:!1,remove_script_host:!1,statusbar:!1,theme:"modern",toolbar1:"bold,italic,link,unlink,image",toolbar2:"",toolbar3:"",toolbar4:""},tinyMCE.init(i),this.mce(!0))};this.mce=function(t){var r=t?"mceAddEditor":"mceRemoveEditor";typeof tinyMCE!="undefined"&&tinyMCE.execCommand(r,!1,"mapp-poi-body");n(".mapp-poi-visual, .mapp-poi-html",i.sel).removeClass("mapp-active");t?n(".mapp-poi-visual",i.sel).addClass("mapp-active"):n(".mapp-poi-html",i.sel).addClass("mapp-active")};this.remove=function(){confirm(mappl10n.delete_prompt)&&(this.map.close(),this.map.removePoi(this.poi))};this.render=function(t){this.poi=t;n("[data-mapp-iconpicker]").trigger("refresh");n("[data-mapp-colorpicker]").trigger("refresh");this.initMCE()};this.save=function(){typeof tinyMCE!="undefined"&&tinyMCE.get("mapp-poi-body")&&tinyMCE.get("mapp-poi-body").save();this.poi.title=n(".mapp-poi-title").val();this.poi.body=n(".mapp-poi-body").val();this.map.renderList();this.map.close()};this.initialize.apply(this)}}(jQuery)
 
js/mappress_media.min.js DELETED
@@ -1 +0,0 @@
1
- var mapp=window.mapp||{};+function(n){mapp.Media=function(){this.editor=null;this.map=null;this.settings={editable:!0,name:"mapp0"};this.sel=n(".mapp-media");this.items=null;var t=this;this.initialize=function(){this.find();this.sel.on("change",".mapp-media-list-type",function(){var i=n(".mapp-media-list-type",this.sel).val();n(".mapp-media-search").val("");n(".mapp-media-search").toggle(i=="all");t.find()});this.sel.on("keydown",".mapp-media-search",function(n){if(n.which==13)return!1});this.sel.on("input",".mapp-media-search",function(){t.find()});this.sel.on("click","[data-mapp-media]",function(i){i.preventDefault();var r=n(this).attr("data-mapp-media");t[r]()});this.sel.on("click",".mapp-media-list .mapp-item",function(){n(".mapp-media-list .mapp-item",this.sel).removeClass("mapp-active");n(this).addClass("mapp-active")});this.sel.on("click",".mapp-media-list [data-mapp-media-list]",function(i){i.preventDefault();var r=n(this).attr("data-mapp-media-list"),u=n(this).closest(".mapp-item"),f=u.attr("data-mapp-mapid");return t[r](f),!1});this.sel.on("change",".mapp-media-viewport",function(){n(this).is(":checked")||(t.map.center=t.map.zoom=null,t.map.recenter())});n(".mapp-media-size").click(function(t){var i=n(this).data("width"),r=n(this).data("height");n(".mapp-media-width").val(i);n(".mapp-media-height").val(r);t.preventDefault()});n("#publish, #post-preview").click(function(){t.save()});n(".mapp-media-title").keydown(function(n){n.which==13&&(n.preventDefault(),t.save())})};this.add=function(){var n=new mapp.Map({},this.settings);n.width=mappl10n.options.sizes[mappl10n.options.size].width;n.height=mappl10n.options.sizes[mappl10n.options.size].height;t.open(n)};this.cancel=function(){t.closeEditor()};this.closeEditor=function(){this.editor.close();this.map=null;this.editor=null;n(".mapp-media-edit-panel").hide();n(".mapp-media-list-panel").show()};this.edit=function(n){mapp.Map.ajaxGet(n,function(n){var i=new mapp.Map(n,t.settings);t.open(i)})};this.find=function(){var t=this;this.items!==null?this.renderList():(n(".spinner",this.sel).css("visibility","visible"),mapp.lib.ajax({type:"GET",data:{action:"mapp_find",nonce:mappl10n.options.nonce},callback:function(i){i.status=="OK"&&(n(".spinner",this.sel).css("visibility","hidden"),t.items=_.sortBy(i.data,"post_title"),t.renderList())}}))};this.insert=function(n){n=n?n:this.map.mapid;var t='[mappress mapid="'+n+'"]';send_to_editor(t)};this.open=function(t){this.map=t;n(".mapp-edit",this.sel).html(mapp.lib.template("edit-map"));var i=this.map.mapid;i?n(".mapp-media-mapid").text(i):n(".mapp-media-mapid").text("");n(".mapp-media-title").val(this.map.title);n(".mapp-media-width").val(this.map.width);n(".mapp-media-height").val(this.map.height);n(".mapp-media-viewport").prop("checked",!!(this.map.center&&this.map.zoom));n(".mapp-media-edit-panel").show();n(".mapp-media-list-panel").hide();this.editor=new mapp.Editor(this.map)};this.remove=function(n){if(confirm(mappl10n.delete_map_prompt)){var t=_.findIndex(this.items,{mapid:n});t>-1&&(this.items.splice(t,1),mapp.Map.ajaxDelete(n),this.renderList())}};this.renderList=function(){var t=null,i=400,r=null,u=n(".mapp-media-list-type",this.sel).val(),f=n(".mapp-media-search",this.sel).val().toLowerCase();t=u=="all"?_.filter(this.items,function(n){return n.post_title&&n.post_title.toLowerCase().indexOf(f)!=-1||n.map_title&&n.map_title.toLowerCase().indexOf(f)!=-1}):_.filter(this.items,function(n){return n.postid==mappl10n.options.postid});t.length>i?(r=mappl10n.more.replace("%d",i).replace("%d",t.length),t=t.slice(0,i)):r="";n(".mapp-media-list",this.sel).html(mapp.lib.template("media-list",{items:t,type:u,more:r}))};this.save=function(){var t=this;this.map&&(this.map.title=n.trim(n(".mapp-media-title").val()),this.map.width=n(".mapp-media-width").val(),this.map.height=n(".mapp-media-height").val(),n(".mapp-media-viewport").prop("checked")?(this.map.center=this.map.getMap().getCenter().toJSON(),this.map.zoom=this.map.getMap().getZoom()):(this.map.center=null,this.map.zoom=null),this.map.ajaxSave(function(){var i=t.map.mapid?t.map.mapid.toString():null,r=_.findIndex(t.items,function(n){return n.mapid==i});r==-1?t.items.unshift({mapid:i,map_title:t.map.title,postid:mappl10n.options.postid,post_title:n("#title").val()||n("#post-title-0").val()}):t.items[r].map_title=t.map.title;t.renderList();t.closeEditor()}))};this.initialize.apply(this)}}(jQuery)
 
js/mappress_settings.min.js DELETED
@@ -1 +0,0 @@
1
- +function(n){function t(i){i=i?i:0;i==0&&n(".mapp-log").empty();mapp.lib.ajax({data:{action:"mapp_import"},callback:function(i){n(".mapp-log").append(i.data.log.join("<br/>"),"<br/>");i.data.start>=0?t(i.data.start):n(".mapp-spinner").hide()}})}n(document).ready(function(){n('input[name="mappress_options[engine]"]').on("change",function(){n('input[name="save"]').click()});n("[data-mapp-grid]").each(function(n,t){new mapp.widgets.Grid(t)});n(document).on("focus",".mapp-expand",function(){n(this).parent().width("100%");n(this).attr("rows",20)});n(document).on("blur",".mapp-expand",function(){n(this).parent().width("auto");n(this).attr("rows",1)});n(".mapp-autoicons").on("change","#mapp-autoicons-key",function(){mapp.lib.ajax({data:{action:"mapp_autoicons_form",key:n(this).val()},callback:function(t){n(".mapp-autoicons").html(t.data);new mapp.widgets.Grid(n("[data-mapp-grid]",".mapp-autoicons"))}})});n("#mapp-filters tbody").sortable({handle:".mapp-handle"});n(".mapp-confirm").on("change",function(){var t=n(".mapp-confirm").is(":checked");n(".mapp-import").prop("disabled",!t)});n(".mapp-import").on("click",function(){n(".mapp-confirm, .mapp-import").prop("disabled",!0);t()})})}(jQuery)
 
languages/mappress-google-maps-for-wordpress.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the MapPress Maps for WordPress plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: MapPress Maps for WordPress 2.54.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2020-05-06T02:27:32+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
 
@@ -33,527 +33,443 @@ msgstr ""
33
  msgid "https://www.mappresspro.com/chris-contact"
34
  msgstr ""
35
 
36
- #: forms/editor.php:14
37
- msgid "Add KML"
38
- msgstr ""
39
-
40
- #: forms/editor.php:50
41
- msgid "Visual"
42
- msgstr ""
43
-
44
- #: forms/editor.php:50
45
- msgid "HTML"
46
- msgstr ""
47
-
48
- #: forms/editor.php:56
49
- #: forms/media.php:49
50
- #: forms/settings.php:27
51
- msgid "Save"
52
- msgstr ""
53
-
54
- #: forms/editor.php:57
55
- #: forms/media.php:50
56
- #: forms/settings.php:28
57
- msgid "Cancel"
58
- msgstr ""
59
-
60
- #: forms/editor.php:58
61
- #: forms/media.php:72
62
- #: forms/settings.php:30
63
- #: mappress_controls.php:102
64
- msgid "Delete"
65
- msgstr ""
66
-
67
- #: forms/media.php:7
68
- msgid "New Map"
69
- msgstr ""
70
-
71
- #: forms/media.php:9
72
- msgid "This post"
73
- msgstr ""
74
-
75
- #: forms/media.php:10
76
- #: pro/mappress_widget.php:84
77
- msgid "All posts"
78
- msgstr ""
79
-
80
- #: forms/media.php:12
81
- msgid "Filter by title"
82
- msgstr ""
83
-
84
- #: forms/media.php:21
85
- msgid "Map ID"
86
- msgstr ""
87
-
88
- #: forms/media.php:26
89
- msgid "Map Title"
90
- msgstr ""
91
-
92
- #: forms/media.php:27
93
- #: forms/media.php:63
94
- #: forms/media.php:67
95
- #: mappress.php:427
96
- msgid "Untitled"
97
- msgstr ""
98
-
99
- #: forms/media.php:31
100
- msgid "Display Size"
101
- msgstr ""
102
-
103
- #: forms/media.php:44
104
- msgid "Save center / zoom"
105
- msgstr ""
106
-
107
- #: forms/media.php:51
108
- #: forms/media.php:71
109
- msgid "Insert into post"
110
- msgstr ""
111
-
112
- #: forms/media.php:70
113
- #: forms/settings.php:4
114
- msgid "Edit"
115
- msgstr ""
116
-
117
- #: forms/media.php:79
118
- msgid "No maps found"
119
- msgstr ""
120
-
121
- #: forms/settings.php:3
122
- msgid "Map popup"
123
- msgstr ""
124
-
125
- #: forms/settings.php:3
126
- msgid "Map list item"
127
- msgstr ""
128
-
129
- #: forms/settings.php:3
130
- msgid "Mashup popup"
131
- msgstr ""
132
-
133
- #: forms/settings.php:3
134
- msgid "Mashup list item"
135
- msgstr ""
136
-
137
- #: forms/settings.php:10
138
- msgid "New"
139
- msgstr ""
140
-
141
- #: forms/settings.php:10
142
- msgid "Custom"
143
- msgstr ""
144
-
145
- #: forms/settings.php:13
146
- msgid "Editor"
147
  msgstr ""
148
 
149
- #: forms/settings.php:14
150
- #: mappress_settings.php:177
151
- #: pro/mappress_pro_settings.php:219
152
- msgid "Default"
 
153
  msgstr ""
154
 
155
- #: mappress.php:156
156
  msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
157
  msgstr ""
158
 
159
- #: mappress.php:161
160
- msgid "WARNING: MapPress is not compatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress."
161
- msgstr ""
162
-
163
- #: mappress.php:166
164
  msgid "A Google Maps API key is required"
165
  msgstr ""
166
 
167
- #: mappress.php:166
168
  msgid "Please update your"
169
  msgstr ""
170
 
171
- #: mappress.php:166
172
  msgid "MapPress Settings"
173
  msgstr ""
174
 
175
- #: mappress.php:318
176
- #: mappress.php:825
177
  msgid "Version"
178
  msgstr ""
179
 
180
- #: mappress.php:320
 
181
  msgid "Help"
182
  msgstr ""
183
 
184
- #: mappress.php:322
185
  msgid "Upgrade to MapPress Pro"
186
  msgstr ""
187
 
188
- #: mappress.php:416
189
- msgid "Are you sure you want to delete?"
190
  msgstr ""
191
 
192
- #: mappress.php:417
193
- msgid "Delete this map?"
194
  msgstr ""
195
 
196
- #: mappress.php:418
197
- msgid "Google cannot return directions between those addresses. There is no route between them or the routing information is not available."
 
 
 
 
 
 
 
 
198
  msgstr ""
199
 
200
- #: mappress.php:419
201
  msgid "Error reading KML file"
202
  msgstr ""
203
 
204
- #: mappress.php:420
205
  msgid "URL for KML file"
206
  msgstr ""
207
 
208
- #: mappress.php:421
209
  msgid "Loading"
210
  msgstr ""
211
 
212
- #: mappress.php:422
213
- msgid "%1d of %2d shown"
214
  msgstr ""
215
 
216
- #: mappress.php:423
217
  msgid "Unable to get your location"
218
  msgstr ""
219
 
220
- #: mappress.php:424
 
221
  msgid "No results"
222
  msgstr ""
223
 
224
- #: mappress.php:425
225
  msgid "Save changes?"
226
  msgstr ""
227
 
228
- #: mappress.php:426
229
  msgid "Shape"
230
  msgstr ""
231
 
232
- #: mappress.php:453
233
  msgid "Improve this map"
234
  msgstr ""
235
 
236
- #: mappress.php:469
237
- #: mappress.php:488
238
  msgid "Streets"
239
  msgstr ""
240
 
241
- #: mappress.php:470
242
  msgid "Outdoors"
243
  msgstr ""
244
 
245
- #: mappress.php:471
246
  msgid "Light"
247
  msgstr ""
248
 
249
- #: mappress.php:472
250
  msgid "Dark"
251
  msgstr ""
252
 
253
- #: mappress.php:473
254
  msgid "Satellite"
255
  msgstr ""
256
 
257
- #: mappress.php:474
258
  msgid "Satellite Streets"
259
  msgstr ""
260
 
261
- #: mappress.php:604
262
- msgid "Settings"
263
- msgstr ""
264
-
265
  #: mappress_controls.php:93
 
 
266
  msgid "Add"
267
  msgstr ""
268
 
269
- #: mappress_map.php:90
270
- #: mappress_settings.php:320
271
- msgid "MapPress"
 
 
 
 
272
  msgstr ""
273
 
274
- #: mappress_map.php:165
275
- msgid "Map not found"
 
276
  msgstr ""
277
 
278
- #: mappress_map.php:426
279
- #: pro/mappress_pro_settings.php:37
280
- msgid "Filter"
281
  msgstr ""
282
 
283
- #: mappress_settings.php:84
284
  msgid "Sample Map"
285
  msgstr ""
286
 
287
- #: mappress_settings.php:86
288
  msgid "Basic Settings"
289
  msgstr ""
290
 
291
- #: mappress_settings.php:87
292
- msgid "Mapping Engine"
293
  msgstr ""
294
 
295
- #: mappress_settings.php:90
296
- msgid "Mapbox access token"
 
297
  msgstr ""
298
 
299
- #: mappress_settings.php:92
300
- msgid "Google API key"
301
  msgstr ""
302
 
303
- #: mappress_settings.php:97
304
  msgid "License"
305
  msgstr ""
306
 
307
- #: mappress_settings.php:99
308
  msgid "Map Settings"
309
  msgstr ""
310
 
311
- #: mappress_settings.php:100
312
  msgid "Post types"
313
  msgstr ""
314
 
315
- #: mappress_settings.php:101
316
  msgid "Automatic display"
317
  msgstr ""
318
 
319
- #: mappress_settings.php:102
320
  msgid "Map alignment"
321
  msgstr ""
322
 
323
- #: mappress_settings.php:103
324
  #: templates/map-popup.php:3
325
  #: templates/mashup-popup.php:6
326
  msgid "Directions"
327
  msgstr ""
328
 
329
- #: mappress_settings.php:106
330
  msgid "POI Settings"
331
  msgstr ""
332
 
333
- #: mappress_settings.php:107
334
  msgid "Default zoom"
335
  msgstr ""
336
 
337
- #: mappress_settings.php:108
338
- #: mappress_settings.php:242
339
  msgid "Open first POI"
340
  msgstr ""
341
 
342
- #: mappress_settings.php:111
343
  msgid "Mashups"
344
  msgstr ""
345
 
346
- #: mappress_settings.php:112
347
  msgid "Icons"
348
  msgstr ""
349
 
350
- #: mappress_settings.php:113
351
  msgid "Styled Maps"
352
  msgstr ""
353
 
354
- #: mappress_settings.php:114
355
  msgid "Geocoding"
356
  msgstr ""
357
 
358
- #: mappress_settings.php:115
359
  msgid "Templates"
360
  msgstr ""
361
 
362
- #: mappress_settings.php:118
363
- msgid "Localization"
364
- msgstr ""
365
-
366
  #: mappress_settings.php:119
367
- msgid "Language"
368
  msgstr ""
369
 
370
  #: mappress_settings.php:120
371
- msgid "Country"
372
  msgstr ""
373
 
374
  #: mappress_settings.php:121
 
 
 
 
375
  msgid "Directions server"
376
  msgstr ""
377
 
378
- #: mappress_settings.php:123
379
  msgid "Miscellaneous"
380
  msgstr ""
381
 
382
  #: mappress_settings.php:125
383
- msgid "Compatiblity"
384
  msgstr ""
385
 
386
  #: mappress_settings.php:126
387
  msgid "Scripts"
388
  msgstr ""
389
 
390
- #: mappress_settings.php:127
391
- msgid "Map sizes"
 
 
 
 
 
 
 
 
 
392
  msgstr ""
393
 
394
- #: mappress_settings.php:178
395
  msgid "Center"
396
  msgstr ""
397
 
398
- #: mappress_settings.php:179
399
  msgid "Left"
400
  msgstr ""
401
 
402
- #: mappress_settings.php:180
403
  msgid "Right"
404
  msgstr ""
405
 
406
- #: mappress_settings.php:194
 
 
 
 
407
  msgid "Top of post"
408
  msgstr ""
409
 
410
- #: mappress_settings.php:195
411
  msgid "Bottom of post"
412
  msgstr ""
413
 
414
  #: mappress_settings.php:196
415
- msgid "None"
416
- msgstr ""
417
-
418
- #: mappress_settings.php:203
419
- #: mappress_settings.php:247
420
  msgid "(list)"
421
  msgstr ""
422
 
423
- #: mappress_settings.php:208
424
  msgid "Country code for searches"
425
  msgstr ""
426
 
427
- #: mappress_settings.php:212
428
  msgid "Prevent other plugins/themes from loading the Google Maps API"
429
  msgstr ""
430
 
431
- #: mappress_settings.php:216
432
- #: mappress_settings.php:225
 
 
433
  msgid "Google"
434
  msgstr ""
435
 
436
- #: mappress_settings.php:216
437
  msgid "Inline"
438
  msgstr ""
439
 
440
- #: mappress_settings.php:225
 
441
  msgid "Leaflet"
442
  msgstr ""
443
 
444
- #: mappress_settings.php:227
445
  msgid "Leaflet is free and requires no API key. Google requires an API key and has strict usage limits."
446
  msgstr ""
447
 
448
- #: mappress_settings.php:233
449
- #: mappress_settings.php:236
450
  msgid "Output scripts in footer"
451
  msgstr ""
452
 
453
- #: mappress_settings.php:234
454
  msgid "Disabled because Jetpack Infinite Scroll is active"
455
  msgstr ""
456
 
457
- #: mappress_settings.php:237
458
  msgid "disable if maps are output using AJAX"
459
  msgstr ""
460
 
461
- #: mappress_settings.php:250
462
- msgid "Language for map controls"
463
  msgstr ""
464
 
465
- #: mappress_settings.php:254
466
  msgid "Enter token to use Mapbox map tiles"
467
  msgstr ""
468
 
469
- #: mappress_settings.php:261
470
- #: mappress_settings.php:266
471
  msgid "Map type control"
472
  msgstr ""
473
 
474
- #: mappress_settings.php:262
475
  msgid "Street view control"
476
  msgstr ""
477
 
478
- #: mappress_settings.php:263
479
- #: mappress_settings.php:267
480
  msgid "Zoom control"
481
  msgstr ""
482
 
483
- #: mappress_settings.php:282
484
  msgid "Default zoom when displaying a single POI"
485
  msgstr ""
486
 
487
- #: mappress_settings.php:295
488
  msgid "Easy Google Maps"
489
  msgstr ""
490
 
491
- #: mappress_settings.php:303
492
- msgid "Width (px or %)"
493
  msgstr ""
494
 
495
- #: mappress_settings.php:303
496
- msgid "Height (px)"
497
  msgstr ""
498
 
499
- #: mappress_settings.php:303
500
  msgid "Default size"
501
  msgstr ""
502
 
503
- #: mappress_settings.php:325
504
- #: mappress_settings.php:333
505
  msgid "Save Changes"
506
  msgstr ""
507
 
508
- #: mappress_settings.php:326
509
- #: mappress_settings.php:334
510
  msgid "Reset Defaults"
511
  msgstr ""
512
 
513
- #: mappress_template.php:33
514
  msgid "address"
515
  msgstr ""
516
 
517
- #: mappress_template.php:34
518
  msgid "body"
519
  msgstr ""
520
 
521
- #: mappress_template.php:35
522
  msgid "icon"
523
  msgstr ""
524
 
525
- #: mappress_template.php:36
526
  msgid "thumbnail"
527
  msgstr ""
528
 
529
- #: mappress_template.php:37
530
  msgid "title"
531
  msgstr ""
532
 
533
- #: mappress_template.php:38
534
  msgid "url"
535
  msgstr ""
536
 
537
- #: mappress_template.php:39
538
  msgid "custom field"
539
  msgstr ""
540
 
541
- #: pro/mappress_filter.php:93
542
- #: pro/mappress_filter.php:142
543
- #: pro/mappress_pro_settings.php:155
 
544
  msgid "Post type"
545
  msgstr ""
546
 
547
- #: pro/mappress_filter.php:129
548
  msgid "Taxonomy"
549
  msgstr ""
550
 
551
- #: pro/mappress_filter.php:129
552
  msgid "Post field"
553
  msgstr ""
554
 
555
- #: pro/mappress_filter.php:129
556
- #: pro/mappress_pro_settings.php:314
557
  msgid "Custom Field"
558
  msgstr ""
559
 
@@ -584,19 +500,16 @@ msgstr ""
584
  msgid "Invalid JSON from Geocoding service: %s"
585
  msgstr ""
586
 
587
- #: pro/mappress_icons.php:47
588
- msgid "Use default icon"
589
  msgstr ""
590
 
591
- #: pro/mappress_icons.php:57
592
- msgid "Opacity"
593
- msgstr ""
594
-
595
- #: pro/mappress_icons.php:58
596
- msgid "Weight"
597
  msgstr ""
598
 
599
  #: pro/mappress_meta.php:109
 
600
  msgid "Automatic"
601
  msgstr ""
602
 
@@ -613,6 +526,7 @@ msgid "Geocoder"
613
  msgstr ""
614
 
615
  #: pro/mappress_pro_settings.php:23
 
616
  msgid "POI list"
617
  msgstr ""
618
 
@@ -621,294 +535,332 @@ msgid "POI list layout"
621
  msgstr ""
622
 
623
  #: pro/mappress_pro_settings.php:25
 
 
 
 
624
  msgid "Sort"
625
  msgstr ""
626
 
627
  #: pro/mappress_pro_settings.php:28
628
- msgid "Popup type"
629
  msgstr ""
630
 
631
  #: pro/mappress_pro_settings.php:30
 
 
 
 
632
  msgid "Default icon"
633
  msgstr ""
634
 
635
- #: pro/mappress_pro_settings.php:31
636
  msgid "Icon directory"
637
  msgstr ""
638
 
639
- #: pro/mappress_pro_settings.php:32
 
 
 
 
640
  msgid "Icon scaling"
641
  msgstr ""
642
 
643
- #: pro/mappress_pro_settings.php:33
644
  msgid "Automatic icons"
645
  msgstr ""
646
 
647
- #: pro/mappress_pro_settings.php:35
648
- #: templates/map-search.php:2
 
 
649
  msgid "Search"
650
  msgstr ""
651
 
652
- #: pro/mappress_pro_settings.php:38
 
 
 
 
 
653
  msgid "POI content"
654
  msgstr ""
655
 
656
- #: pro/mappress_pro_settings.php:39
657
  msgid "POI click"
658
  msgstr ""
659
 
660
- #: pro/mappress_pro_settings.php:40
661
  msgid "KMLs"
662
  msgstr ""
663
 
664
- #: pro/mappress_pro_settings.php:41
665
  msgid "Thumbnails"
666
  msgstr ""
667
 
668
- #: pro/mappress_pro_settings.php:42
669
  msgid "Thumbnail size"
670
  msgstr ""
671
 
672
- #: pro/mappress_pro_settings.php:45
673
- #: pro/mappress_pro_settings.php:47
674
  msgid "Styled maps"
675
  msgstr ""
676
 
677
- #: pro/mappress_pro_settings.php:48
678
  msgid "Default style"
679
  msgstr ""
680
 
681
- #: pro/mappress_pro_settings.php:51
682
  msgid "Geocoding fields"
683
  msgstr ""
684
 
685
- #: pro/mappress_pro_settings.php:52
686
  msgid "Overwrite"
687
  msgstr ""
688
 
689
- #: pro/mappress_pro_settings.php:53
690
  msgid "Geocoding errors"
691
  msgstr ""
692
 
693
- #: pro/mappress_pro_settings.php:56
694
  msgid "Google Server API key"
695
  msgstr ""
696
 
697
- #: pro/mappress_pro_settings.php:58
698
  msgid "Custom templates"
699
  msgstr ""
700
 
701
- #: pro/mappress_pro_settings.php:60
702
  msgid "Force resize"
703
  msgstr ""
704
 
705
- #: pro/mappress_pro_settings.php:142
706
  msgid "more info"
707
  msgstr ""
708
 
709
- #: pro/mappress_pro_settings.php:143
710
  msgid "API key secured by IP address for geocoding (optional)"
711
  msgstr ""
712
 
713
- #: pro/mappress_pro_settings.php:162
714
  msgid "Value"
715
  msgstr ""
716
 
717
- #: pro/mappress_pro_settings.php:162
718
- #: pro/mappress_pro_settings.php:309
719
  msgid "Icon"
720
  msgstr ""
721
 
722
- #: pro/mappress_pro_settings.php:177
723
  msgid "Enable updates for beta versions"
724
  msgstr ""
725
 
726
- #: pro/mappress_pro_settings.php:190
 
 
 
 
727
  msgid "Checkboxes"
728
  msgstr ""
729
 
730
- #: pro/mappress_pro_settings.php:190
731
  msgid "Select"
732
  msgstr ""
733
 
734
- #: pro/mappress_pro_settings.php:197
735
  msgid "Key"
736
  msgstr ""
737
 
738
- #: pro/mappress_pro_settings.php:197
739
  msgid "Format"
740
  msgstr ""
741
 
742
- #: pro/mappress_pro_settings.php:212
743
  msgid "Permanently resize existing maps (classic editor only)"
744
  msgstr ""
745
 
746
- #: pro/mappress_pro_settings.php:214
747
  msgid "from %s to %s"
748
  msgstr ""
749
 
750
- #: pro/mappress_pro_settings.php:215
751
  msgid "Force Resize"
752
  msgstr ""
753
 
754
- #: pro/mappress_pro_settings.php:219
755
  msgid "Algolia"
756
  msgstr ""
757
 
758
- #: pro/mappress_pro_settings.php:220
759
  msgid "Nominatim"
760
  msgstr ""
761
 
762
- #: pro/mappress_pro_settings.php:221
763
  msgid "MapBox"
764
  msgstr ""
765
 
766
- #: pro/mappress_pro_settings.php:235
 
 
 
 
 
 
767
  msgid "Standard"
768
  msgstr ""
769
 
770
- #: pro/mappress_pro_settings.php:236
771
  msgid "InfoBox"
772
  msgstr ""
773
 
774
- #: pro/mappress_pro_settings.php:243
775
  msgid "Left of map"
776
  msgstr ""
777
 
778
- #: pro/mappress_pro_settings.php:244
779
  msgid "Below map"
780
  msgstr ""
781
 
782
- #: pro/mappress_pro_settings.php:250
 
 
 
 
783
  msgid "Enter license to enable automatic updates"
784
  msgstr ""
785
 
786
- #: pro/mappress_pro_settings.php:261
787
  msgid "Active"
788
  msgstr ""
789
 
790
- #: pro/mappress_pro_settings.php:266
791
- msgid "Check Now"
792
  msgstr ""
793
 
794
- #: pro/mappress_pro_settings.php:270
795
  msgid "Communication error, please try again later"
796
  msgstr ""
797
 
798
- #: pro/mappress_pro_settings.php:272
799
  msgid "License is invalid or expired"
800
  msgstr ""
801
 
802
- #: pro/mappress_pro_settings.php:276
803
- msgid "POI title + body"
804
  msgstr ""
805
 
806
- #: pro/mappress_pro_settings.php:276
807
- msgid "Post title + excerpt"
808
  msgstr ""
809
 
810
- #: pro/mappress_pro_settings.php:281
811
  msgid "Open POI"
812
  msgstr ""
813
 
814
- #: pro/mappress_pro_settings.php:281
815
  msgid "Open post"
816
  msgstr ""
817
 
818
- #: pro/mappress_pro_settings.php:281
819
  msgid "Open post in new tab"
820
  msgstr ""
821
 
822
- #: pro/mappress_pro_settings.php:286
823
  msgid "Include KML POIs in mashups"
824
  msgstr ""
825
 
826
- #: pro/mappress_pro_settings.php:298
827
  msgid "%d Errors"
828
  msgstr ""
829
 
830
- #: pro/mappress_pro_settings.php:308
831
  msgid "Address line "
832
  msgstr ""
833
 
834
- #: pro/mappress_pro_settings.php:309
835
  msgid "Latitude"
836
  msgstr ""
837
 
838
- #: pro/mappress_pro_settings.php:309
839
  msgid "Longitude"
840
  msgstr ""
841
 
842
- #: pro/mappress_pro_settings.php:309
843
  msgid "Title"
844
  msgstr ""
845
 
846
- #: pro/mappress_pro_settings.php:309
847
  msgid "Body"
848
  msgstr ""
849
 
850
- #: pro/mappress_pro_settings.php:309
 
851
  msgid "Zoom"
852
  msgstr ""
853
 
854
- #: pro/mappress_pro_settings.php:314
855
  msgid "Map Field"
856
  msgstr ""
857
 
858
- #: pro/mappress_pro_settings.php:327
859
  msgid "Overwrite maps when posts are saved"
860
  msgstr ""
861
 
862
- #: pro/mappress_pro_settings.php:331
 
 
 
 
863
  msgid "Show a list of POIs with each map"
864
  msgstr ""
865
 
866
- #: pro/mappress_pro_settings.php:339
867
  msgid "Enable search"
868
  msgstr ""
869
 
870
- #: pro/mappress_pro_settings.php:343
871
  msgid "Sort POI list by title"
872
  msgstr ""
873
 
874
- #: pro/mappress_pro_settings.php:349
875
  msgid "No styles have been defined yet"
876
  msgstr ""
877
 
878
- #: pro/mappress_pro_settings.php:358
879
  msgid "Styled Maps Wizard"
880
  msgstr ""
881
 
882
- #: pro/mappress_pro_settings.php:359
883
  msgid "JSON from Google's %s"
884
  msgstr ""
885
 
886
- #: pro/mappress_pro_settings.php:363
887
- #: pro/mappress_pro_settings.php:379
888
  msgid "Style name"
889
  msgstr ""
890
 
891
- #: pro/mappress_pro_settings.php:375
892
  msgid "Mapbox Studio"
893
  msgstr ""
894
 
895
- #: pro/mappress_pro_settings.php:376
896
  msgid "Enter styles from %s"
897
  msgstr ""
898
 
899
- #: pro/mappress_pro_settings.php:394
900
  msgid "Only admins or multisite super-admins can edit templates"
901
  msgstr ""
902
 
903
- #: pro/mappress_pro_settings.php:399
904
  msgid "WordPress 4.9 or higher is needed to use the template editor."
905
  msgstr ""
906
 
907
- #: pro/mappress_pro_settings.php:413
908
  msgid "or "
909
  msgstr ""
910
 
911
- #: pro/mappress_pro_settings.php:421
912
  msgid "Show featured image thumbnails in mashup POIs"
913
  msgstr ""
914
 
@@ -921,10 +873,12 @@ msgid "JSON error"
921
  msgstr ""
922
 
923
  #: pro/mappress_widget.php:69
 
924
  msgid "Widget title"
925
  msgstr ""
926
 
927
  #: pro/mappress_widget.php:74
 
928
  msgid "Map size"
929
  msgstr ""
930
 
@@ -940,6 +894,11 @@ msgstr ""
940
  msgid "Hide if empty"
941
  msgstr ""
942
 
 
 
 
 
 
943
  #: pro/mappress_widget.php:85
944
  msgid "Custom query"
945
  msgstr ""
@@ -948,58 +907,394 @@ msgstr ""
948
  msgid "Learn about queries"
949
  msgstr ""
950
 
951
- #: pro/mappress_widget.php:93
 
952
  msgid "Show POI list"
953
  msgstr ""
954
 
955
- #: pro/mappress_widget.php:99
 
956
  msgid "Other Settings"
957
  msgstr ""
958
 
959
- #: pro/mappress_widget.php:102
 
960
  msgid "Example: initialopeninfo=\"true\""
961
  msgstr ""
962
 
963
- #: templates/map-controls.php:2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
964
  msgid "Menu"
965
  msgstr ""
966
 
967
- #: templates/map-controls.php:4
968
  msgid "Center map"
969
  msgstr ""
970
 
971
- #: templates/map-controls.php:7
972
  msgid "Traffic"
973
  msgstr ""
974
 
975
- #: templates/map-controls.php:8
976
  msgid "Bicycling"
977
  msgstr ""
978
 
979
- #: templates/map-controls.php:9
980
  msgid "Transit"
981
  msgstr ""
982
 
983
- #: templates/map-directions.php:4
984
- msgid "My location"
985
  msgstr ""
986
 
987
- #: templates/map-directions.php:13
988
- msgid "Get Directions"
989
  msgstr ""
990
 
991
- #: templates/map-filters.php:9
992
- msgid "Done"
993
  msgstr ""
994
 
995
- #: templates/map-filters.php:10
996
- msgid "Reset"
997
  msgstr ""
998
 
999
- #: templates/map-loop.php:3
1000
- msgid "Results"
 
 
 
 
1001
  msgstr ""
1002
 
1003
- #: templates/map-search.php:4
1004
- msgid "Your Location"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1005
  msgstr ""
2
  # This file is distributed under the same license as the MapPress Maps for WordPress plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: MapPress Maps for WordPress 2.56.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2020-11-09T16:30:37+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
 
33
  msgid "https://www.mappresspro.com/chris-contact"
34
  msgstr ""
35
 
36
+ #: mappress.php:158
37
+ #: mappress.php:630
38
+ #: src/mappress_gt_mashup.js:152
39
+ msgid "Settings"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  msgstr ""
41
 
42
+ #: mappress.php:159
43
+ #: src/mappress_gt_library.js:65
44
+ #: src/mappress_gt_map.js:186
45
+ #: src/mappress_gt_map.js:277
46
+ msgid "Map Library"
47
  msgstr ""
48
 
49
+ #: mappress.php:170
50
  msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
51
  msgstr ""
52
 
53
+ #: mappress.php:175
 
 
 
 
54
  msgid "A Google Maps API key is required"
55
  msgstr ""
56
 
57
+ #: mappress.php:175
58
  msgid "Please update your"
59
  msgstr ""
60
 
61
+ #: mappress.php:175
62
  msgid "MapPress Settings"
63
  msgstr ""
64
 
65
+ #: mappress.php:344
66
+ #: mappress.php:860
67
  msgid "Version"
68
  msgstr ""
69
 
70
+ #: mappress.php:346
71
+ #: src/mappress_gt_mashup.js:406
72
  msgid "Help"
73
  msgstr ""
74
 
75
+ #: mappress.php:348
76
  msgid "Upgrade to MapPress Pro"
77
  msgstr ""
78
 
79
+ #: mappress.php:414
80
+ msgid "Please enter your MapPress license key to enable plugin updates"
81
  msgstr ""
82
 
83
+ #: mappress.php:418
84
+ msgid "You are using a BETA version of MapPress. Please make a database backup."
85
  msgstr ""
86
 
87
+ #: mappress.php:421
88
+ msgid "MapPress Gutenberg blocks require WordPress 5.3 or the latest Gutenberg Plugin. Please update if using the block editor."
89
+ msgstr ""
90
+
91
+ #: mappress.php:464
92
+ msgid "Are you sure you want to delete?"
93
+ msgstr ""
94
+
95
+ #: mappress.php:465
96
+ msgid "Permanently delete this map from the map library?"
97
  msgstr ""
98
 
99
+ #: mappress.php:466
100
  msgid "Error reading KML file"
101
  msgstr ""
102
 
103
+ #: mappress.php:467
104
  msgid "URL for KML file"
105
  msgstr ""
106
 
107
+ #: mappress.php:468
108
  msgid "Loading"
109
  msgstr ""
110
 
111
+ #: mappress.php:469
112
+ msgid "Please select a classic editor block to insert into."
113
  msgstr ""
114
 
115
+ #: mappress.php:470
116
  msgid "Unable to get your location"
117
  msgstr ""
118
 
119
+ #: mappress.php:471
120
+ #: src/mappress_gt_widgets.js:111
121
  msgid "No results"
122
  msgstr ""
123
 
124
+ #: mappress.php:472
125
  msgid "Save changes?"
126
  msgstr ""
127
 
128
+ #: mappress.php:473
129
  msgid "Shape"
130
  msgstr ""
131
 
132
+ #: mappress.php:502
133
  msgid "Improve this map"
134
  msgstr ""
135
 
136
+ #: mappress.php:518
137
+ #: mappress.php:537
138
  msgid "Streets"
139
  msgstr ""
140
 
141
+ #: mappress.php:519
142
  msgid "Outdoors"
143
  msgstr ""
144
 
145
+ #: mappress.php:520
146
  msgid "Light"
147
  msgstr ""
148
 
149
+ #: mappress.php:521
150
  msgid "Dark"
151
  msgstr ""
152
 
153
+ #: mappress.php:522
154
  msgid "Satellite"
155
  msgstr ""
156
 
157
+ #: mappress.php:523
158
  msgid "Satellite Streets"
159
  msgstr ""
160
 
 
 
 
 
161
  #: mappress_controls.php:93
162
+ #: templates_admin/widgets.php:42
163
+ #: src/mappress_gt_mashup.js:505
164
  msgid "Add"
165
  msgstr ""
166
 
167
+ #: mappress_controls.php:102
168
+ #: templates_admin/editor.php:41
169
+ #: templates_admin/media.php:72
170
+ #: templates_admin/widgets.php:94
171
+ #: src/mappress_gt_edit.js:123
172
+ #: src/mappress_gt_mashup.js:458
173
+ msgid "Delete"
174
  msgstr ""
175
 
176
+ #: mappress_map.php:85
177
+ #: mappress_settings.php:313
178
+ msgid "MapPress"
179
  msgstr ""
180
 
181
+ #: mappress_map.php:173
182
+ msgid "Map not found"
 
183
  msgstr ""
184
 
185
+ #: mappress_settings.php:85
186
  msgid "Sample Map"
187
  msgstr ""
188
 
189
+ #: mappress_settings.php:87
190
  msgid "Basic Settings"
191
  msgstr ""
192
 
193
+ #: mappress_settings.php:88
194
+ msgid "Mapping API"
195
  msgstr ""
196
 
197
+ #: mappress_settings.php:91
198
+ #: src/mappress_gt_options.js:66
199
+ msgid "Google API key"
200
  msgstr ""
201
 
202
+ #: mappress_settings.php:94
203
+ msgid "Mapbox access token"
204
  msgstr ""
205
 
206
+ #: mappress_settings.php:98
207
  msgid "License"
208
  msgstr ""
209
 
210
+ #: mappress_settings.php:100
211
  msgid "Map Settings"
212
  msgstr ""
213
 
214
+ #: mappress_settings.php:101
215
  msgid "Post types"
216
  msgstr ""
217
 
218
+ #: mappress_settings.php:102
219
  msgid "Automatic display"
220
  msgstr ""
221
 
222
+ #: mappress_settings.php:103
223
  msgid "Map alignment"
224
  msgstr ""
225
 
226
+ #: mappress_settings.php:104
227
  #: templates/map-popup.php:3
228
  #: templates/mashup-popup.php:6
229
  msgid "Directions"
230
  msgstr ""
231
 
232
+ #: mappress_settings.php:107
233
  msgid "POI Settings"
234
  msgstr ""
235
 
236
+ #: mappress_settings.php:108
237
  msgid "Default zoom"
238
  msgstr ""
239
 
240
+ #: mappress_settings.php:109
241
+ #: mappress_settings.php:235
242
  msgid "Open first POI"
243
  msgstr ""
244
 
245
+ #: mappress_settings.php:112
246
  msgid "Mashups"
247
  msgstr ""
248
 
249
+ #: mappress_settings.php:113
250
  msgid "Icons"
251
  msgstr ""
252
 
253
+ #: mappress_settings.php:114
254
  msgid "Styled Maps"
255
  msgstr ""
256
 
257
+ #: mappress_settings.php:115
258
  msgid "Geocoding"
259
  msgstr ""
260
 
261
+ #: mappress_settings.php:116
262
  msgid "Templates"
263
  msgstr ""
264
 
 
 
 
 
265
  #: mappress_settings.php:119
266
+ msgid "Localization"
267
  msgstr ""
268
 
269
  #: mappress_settings.php:120
270
+ msgid "Search language"
271
  msgstr ""
272
 
273
  #: mappress_settings.php:121
274
+ msgid "Search country"
275
+ msgstr ""
276
+
277
+ #: mappress_settings.php:122
278
  msgid "Directions server"
279
  msgstr ""
280
 
281
+ #: mappress_settings.php:124
282
  msgid "Miscellaneous"
283
  msgstr ""
284
 
285
  #: mappress_settings.php:125
286
+ msgid "Map sizes"
287
  msgstr ""
288
 
289
  #: mappress_settings.php:126
290
  msgid "Scripts"
291
  msgstr ""
292
 
293
+ #: mappress_settings.php:128
294
+ msgid "Compatiblity"
295
+ msgstr ""
296
+
297
+ #: mappress_settings.php:172
298
+ #: mappress_settings.php:241
299
+ #: pro/mappress_pro_settings.php:235
300
+ #: templates_admin/widgets.php:78
301
+ #: src/mappress_gt_settings.js:94
302
+ #: src/mappress_gt_settings.js:139
303
+ msgid "Default"
304
  msgstr ""
305
 
306
+ #: mappress_settings.php:173
307
  msgid "Center"
308
  msgstr ""
309
 
310
+ #: mappress_settings.php:174
311
  msgid "Left"
312
  msgstr ""
313
 
314
+ #: mappress_settings.php:175
315
  msgid "Right"
316
  msgstr ""
317
 
318
+ #: mappress_settings.php:187
319
+ msgid "None"
320
+ msgstr ""
321
+
322
+ #: mappress_settings.php:188
323
  msgid "Top of post"
324
  msgstr ""
325
 
326
+ #: mappress_settings.php:189
327
  msgid "Bottom of post"
328
  msgstr ""
329
 
330
  #: mappress_settings.php:196
331
+ #: mappress_settings.php:240
 
 
 
 
332
  msgid "(list)"
333
  msgstr ""
334
 
335
+ #: mappress_settings.php:201
336
  msgid "Country code for searches"
337
  msgstr ""
338
 
339
+ #: mappress_settings.php:205
340
  msgid "Prevent other plugins/themes from loading the Google Maps API"
341
  msgstr ""
342
 
343
+ #: mappress_settings.php:209
344
+ #: mappress_settings.php:218
345
+ #: pro/mappress_pro_settings.php:233
346
+ #: src/mappress_gt_options.js:86
347
  msgid "Google"
348
  msgstr ""
349
 
350
+ #: mappress_settings.php:209
351
  msgid "Inline"
352
  msgstr ""
353
 
354
+ #: mappress_settings.php:218
355
+ #: src/mappress_gt_options.js:81
356
  msgid "Leaflet"
357
  msgstr ""
358
 
359
+ #: mappress_settings.php:220
360
  msgid "Leaflet is free and requires no API key. Google requires an API key and has strict usage limits."
361
  msgstr ""
362
 
363
+ #: mappress_settings.php:226
364
+ #: mappress_settings.php:229
365
  msgid "Output scripts in footer"
366
  msgstr ""
367
 
368
+ #: mappress_settings.php:227
369
  msgid "Disabled because Jetpack Infinite Scroll is active"
370
  msgstr ""
371
 
372
+ #: mappress_settings.php:230
373
  msgid "disable if maps are output using AJAX"
374
  msgstr ""
375
 
376
+ #: mappress_settings.php:243
377
+ msgid "Language for searches and Google map controls"
378
  msgstr ""
379
 
380
+ #: mappress_settings.php:247
381
  msgid "Enter token to use Mapbox map tiles"
382
  msgstr ""
383
 
384
+ #: mappress_settings.php:254
385
+ #: mappress_settings.php:259
386
  msgid "Map type control"
387
  msgstr ""
388
 
389
+ #: mappress_settings.php:255
390
  msgid "Street view control"
391
  msgstr ""
392
 
393
+ #: mappress_settings.php:256
394
+ #: mappress_settings.php:260
395
  msgid "Zoom control"
396
  msgstr ""
397
 
398
+ #: mappress_settings.php:275
399
  msgid "Default zoom when displaying a single POI"
400
  msgstr ""
401
 
402
+ #: mappress_settings.php:288
403
  msgid "Easy Google Maps"
404
  msgstr ""
405
 
406
+ #: mappress_settings.php:296
407
+ msgid "Width (px, %, vh, vw)"
408
  msgstr ""
409
 
410
+ #: mappress_settings.php:296
411
+ msgid "Height (px, %, vh, vw)"
412
  msgstr ""
413
 
414
+ #: mappress_settings.php:296
415
  msgid "Default size"
416
  msgstr ""
417
 
418
+ #: mappress_settings.php:318
419
+ #: mappress_settings.php:326
420
  msgid "Save Changes"
421
  msgstr ""
422
 
423
+ #: mappress_settings.php:319
424
+ #: mappress_settings.php:327
425
  msgid "Reset Defaults"
426
  msgstr ""
427
 
428
+ #: mappress_template.php:34
429
  msgid "address"
430
  msgstr ""
431
 
432
+ #: mappress_template.php:35
433
  msgid "body"
434
  msgstr ""
435
 
436
+ #: mappress_template.php:36
437
  msgid "icon"
438
  msgstr ""
439
 
440
+ #: mappress_template.php:37
441
  msgid "thumbnail"
442
  msgstr ""
443
 
444
+ #: mappress_template.php:38
445
  msgid "title"
446
  msgstr ""
447
 
448
+ #: mappress_template.php:39
449
  msgid "url"
450
  msgstr ""
451
 
452
+ #: mappress_template.php:40
453
  msgid "custom field"
454
  msgstr ""
455
 
456
+ #: pro/mappress_filter.php:84
457
+ #: pro/mappress_filter.php:133
458
+ #: pro/mappress_pro_settings.php:168
459
+ #: src/mappress_gt_mashup.js:540
460
  msgid "Post type"
461
  msgstr ""
462
 
463
+ #: pro/mappress_filter.php:120
464
  msgid "Taxonomy"
465
  msgstr ""
466
 
467
+ #: pro/mappress_filter.php:120
468
  msgid "Post field"
469
  msgstr ""
470
 
471
+ #: pro/mappress_filter.php:120
472
+ #: pro/mappress_pro_settings.php:344
473
  msgid "Custom Field"
474
  msgstr ""
475
 
500
  msgid "Invalid JSON from Geocoding service: %s"
501
  msgstr ""
502
 
503
+ #: pro/mappress_icons.php:49
504
+ msgid "No file provided"
505
  msgstr ""
506
 
507
+ #: pro/mappress_icons.php:74
508
+ msgid "Files error: "
 
 
 
 
509
  msgstr ""
510
 
511
  #: pro/mappress_meta.php:109
512
+ #: src/mappress_gt_settings.js:166
513
  msgid "Automatic"
514
  msgstr ""
515
 
526
  msgstr ""
527
 
528
  #: pro/mappress_pro_settings.php:23
529
+ #: src/mappress_gt_settings.js:136
530
  msgid "POI list"
531
  msgstr ""
532
 
535
  msgstr ""
536
 
537
  #: pro/mappress_pro_settings.php:25
538
+ msgid "Mini width"
539
+ msgstr ""
540
+
541
+ #: pro/mappress_pro_settings.php:26
542
  msgid "Sort"
543
  msgstr ""
544
 
545
  #: pro/mappress_pro_settings.php:28
546
+ msgid "Clustering"
547
  msgstr ""
548
 
549
  #: pro/mappress_pro_settings.php:30
550
+ msgid "Popup type"
551
+ msgstr ""
552
+
553
+ #: pro/mappress_pro_settings.php:32
554
  msgid "Default icon"
555
  msgstr ""
556
 
557
+ #: pro/mappress_pro_settings.php:33
558
  msgid "Icon directory"
559
  msgstr ""
560
 
561
+ #: pro/mappress_pro_settings.php:34
562
+ msgid "Custom icons"
563
+ msgstr ""
564
+
565
+ #: pro/mappress_pro_settings.php:35
566
  msgid "Icon scaling"
567
  msgstr ""
568
 
569
+ #: pro/mappress_pro_settings.php:36
570
  msgid "Automatic icons"
571
  msgstr ""
572
 
573
+ #: pro/mappress_pro_settings.php:38
574
+ #: templates/map.php:50
575
+ #: src/mappress_gt_pick.js:138
576
+ #: src/mappress_gt_widgets.js:125
577
  msgid "Search"
578
  msgstr ""
579
 
580
+ #: pro/mappress_pro_settings.php:40
581
+ #: templates/map.php:57
582
+ msgid "Filter"
583
+ msgstr ""
584
+
585
+ #: pro/mappress_pro_settings.php:41
586
  msgid "POI content"
587
  msgstr ""
588
 
589
+ #: pro/mappress_pro_settings.php:42
590
  msgid "POI click"
591
  msgstr ""
592
 
593
+ #: pro/mappress_pro_settings.php:43
594
  msgid "KMLs"
595
  msgstr ""
596
 
597
+ #: pro/mappress_pro_settings.php:44
598
  msgid "Thumbnails"
599
  msgstr ""
600
 
601
+ #: pro/mappress_pro_settings.php:45
602
  msgid "Thumbnail size"
603
  msgstr ""
604
 
605
+ #: pro/mappress_pro_settings.php:48
606
+ #: pro/mappress_pro_settings.php:50
607
  msgid "Styled maps"
608
  msgstr ""
609
 
610
+ #: pro/mappress_pro_settings.php:51
611
  msgid "Default style"
612
  msgstr ""
613
 
614
+ #: pro/mappress_pro_settings.php:54
615
  msgid "Geocoding fields"
616
  msgstr ""
617
 
618
+ #: pro/mappress_pro_settings.php:55
619
  msgid "Overwrite"
620
  msgstr ""
621
 
622
+ #: pro/mappress_pro_settings.php:56
623
  msgid "Geocoding errors"
624
  msgstr ""
625
 
626
+ #: pro/mappress_pro_settings.php:59
627
  msgid "Google Server API key"
628
  msgstr ""
629
 
630
+ #: pro/mappress_pro_settings.php:61
631
  msgid "Custom templates"
632
  msgstr ""
633
 
634
+ #: pro/mappress_pro_settings.php:63
635
  msgid "Force resize"
636
  msgstr ""
637
 
638
+ #: pro/mappress_pro_settings.php:155
639
  msgid "more info"
640
  msgstr ""
641
 
642
+ #: pro/mappress_pro_settings.php:156
643
  msgid "API key secured by IP address for geocoding (optional)"
644
  msgstr ""
645
 
646
+ #: pro/mappress_pro_settings.php:175
647
  msgid "Value"
648
  msgstr ""
649
 
650
+ #: pro/mappress_pro_settings.php:175
651
+ #: pro/mappress_pro_settings.php:339
652
  msgid "Icon"
653
  msgstr ""
654
 
655
+ #: pro/mappress_pro_settings.php:190
656
  msgid "Enable updates for beta versions"
657
  msgstr ""
658
 
659
+ #: pro/mappress_pro_settings.php:194
660
+ msgid "Enable marker clustering"
661
+ msgstr ""
662
+
663
+ #: pro/mappress_pro_settings.php:203
664
  msgid "Checkboxes"
665
  msgstr ""
666
 
667
+ #: pro/mappress_pro_settings.php:203
668
  msgid "Select"
669
  msgstr ""
670
 
671
+ #: pro/mappress_pro_settings.php:210
672
  msgid "Key"
673
  msgstr ""
674
 
675
+ #: pro/mappress_pro_settings.php:210
676
  msgid "Format"
677
  msgstr ""
678
 
679
+ #: pro/mappress_pro_settings.php:225
680
  msgid "Permanently resize existing maps (classic editor only)"
681
  msgstr ""
682
 
683
+ #: pro/mappress_pro_settings.php:227
684
  msgid "from %s to %s"
685
  msgstr ""
686
 
687
+ #: pro/mappress_pro_settings.php:228
688
  msgid "Force Resize"
689
  msgstr ""
690
 
691
+ #: pro/mappress_pro_settings.php:235
692
  msgid "Algolia"
693
  msgstr ""
694
 
695
+ #: pro/mappress_pro_settings.php:236
696
  msgid "Nominatim"
697
  msgstr ""
698
 
699
+ #: pro/mappress_pro_settings.php:237
700
  msgid "MapBox"
701
  msgstr ""
702
 
703
+ #: pro/mappress_pro_settings.php:247
704
+ #: templates_admin/media.php:70
705
+ #: templates_admin/widgets.php:68
706
+ msgid "Edit"
707
+ msgstr ""
708
+
709
+ #: pro/mappress_pro_settings.php:261
710
  msgid "Standard"
711
  msgstr ""
712
 
713
+ #: pro/mappress_pro_settings.php:262
714
  msgid "InfoBox"
715
  msgstr ""
716
 
717
+ #: pro/mappress_pro_settings.php:269
718
  msgid "Left of map"
719
  msgstr ""
720
 
721
+ #: pro/mappress_pro_settings.php:270
722
  msgid "Below map"
723
  msgstr ""
724
 
725
+ #: pro/mappress_pro_settings.php:276
726
+ msgid "Get license"
727
+ msgstr ""
728
+
729
+ #: pro/mappress_pro_settings.php:277
730
  msgid "Enter license to enable automatic updates"
731
  msgstr ""
732
 
733
+ #: pro/mappress_pro_settings.php:290
734
  msgid "Active"
735
  msgstr ""
736
 
737
+ #: pro/mappress_pro_settings.php:295
738
+ msgid "Check now"
739
  msgstr ""
740
 
741
+ #: pro/mappress_pro_settings.php:300
742
  msgid "Communication error, please try again later"
743
  msgstr ""
744
 
745
+ #: pro/mappress_pro_settings.php:302
746
  msgid "License is invalid or expired"
747
  msgstr ""
748
 
749
+ #: pro/mappress_pro_settings.php:306
750
+ msgid "POI title + POI body"
751
  msgstr ""
752
 
753
+ #: pro/mappress_pro_settings.php:306
754
+ msgid "Post title + post excerpt"
755
  msgstr ""
756
 
757
+ #: pro/mappress_pro_settings.php:311
758
  msgid "Open POI"
759
  msgstr ""
760
 
761
+ #: pro/mappress_pro_settings.php:311
762
  msgid "Open post"
763
  msgstr ""
764
 
765
+ #: pro/mappress_pro_settings.php:311
766
  msgid "Open post in new tab"
767
  msgstr ""
768
 
769
+ #: pro/mappress_pro_settings.php:316
770
  msgid "Include KML POIs in mashups"
771
  msgstr ""
772
 
773
+ #: pro/mappress_pro_settings.php:328
774
  msgid "%d Errors"
775
  msgstr ""
776
 
777
+ #: pro/mappress_pro_settings.php:338
778
  msgid "Address line "
779
  msgstr ""
780
 
781
+ #: pro/mappress_pro_settings.php:339
782
  msgid "Latitude"
783
  msgstr ""
784
 
785
+ #: pro/mappress_pro_settings.php:339
786
  msgid "Longitude"
787
  msgstr ""
788
 
789
+ #: pro/mappress_pro_settings.php:339
790
  msgid "Title"
791
  msgstr ""
792
 
793
+ #: pro/mappress_pro_settings.php:339
794
  msgid "Body"
795
  msgstr ""
796
 
797
+ #: pro/mappress_pro_settings.php:339
798
+ #: src/mappress_gt_settings.js:156
799
  msgid "Zoom"
800
  msgstr ""
801
 
802
+ #: pro/mappress_pro_settings.php:344
803
  msgid "Map Field"
804
  msgstr ""
805
 
806
+ #: pro/mappress_pro_settings.php:357
807
  msgid "Overwrite maps when posts are saved"
808
  msgstr ""
809
 
810
+ #: pro/mappress_pro_settings.php:362
811
+ msgid "Width (px) at which to collapse the left POI list"
812
+ msgstr ""
813
+
814
+ #: pro/mappress_pro_settings.php:366
815
  msgid "Show a list of POIs with each map"
816
  msgstr ""
817
 
818
+ #: pro/mappress_pro_settings.php:374
819
  msgid "Enable search"
820
  msgstr ""
821
 
822
+ #: pro/mappress_pro_settings.php:378
823
  msgid "Sort POI list by title"
824
  msgstr ""
825
 
826
+ #: pro/mappress_pro_settings.php:384
827
  msgid "No styles have been defined yet"
828
  msgstr ""
829
 
830
+ #: pro/mappress_pro_settings.php:393
831
  msgid "Styled Maps Wizard"
832
  msgstr ""
833
 
834
+ #: pro/mappress_pro_settings.php:394
835
  msgid "JSON from Google's %s"
836
  msgstr ""
837
 
838
+ #: pro/mappress_pro_settings.php:398
839
+ #: pro/mappress_pro_settings.php:414
840
  msgid "Style name"
841
  msgstr ""
842
 
843
+ #: pro/mappress_pro_settings.php:410
844
  msgid "Mapbox Studio"
845
  msgstr ""
846
 
847
+ #: pro/mappress_pro_settings.php:411
848
  msgid "Enter styles from %s"
849
  msgstr ""
850
 
851
+ #: pro/mappress_pro_settings.php:429
852
  msgid "Only admins or multisite super-admins can edit templates"
853
  msgstr ""
854
 
855
+ #: pro/mappress_pro_settings.php:434
856
  msgid "WordPress 4.9 or higher is needed to use the template editor."
857
  msgstr ""
858
 
859
+ #: pro/mappress_pro_settings.php:448
860
  msgid "or "
861
  msgstr ""
862
 
863
+ #: pro/mappress_pro_settings.php:456
864
  msgid "Show featured image thumbnails in mashup POIs"
865
  msgstr ""
866
 
873
  msgstr ""
874
 
875
  #: pro/mappress_widget.php:69
876
+ #: pro/mappress_widget_map.php:56
877
  msgid "Widget title"
878
  msgstr ""
879
 
880
  #: pro/mappress_widget.php:74
881
+ #: pro/mappress_widget_map.php:66
882
  msgid "Map size"
883
  msgstr ""
884
 
894
  msgid "Hide if empty"
895
  msgstr ""
896
 
897
+ #: pro/mappress_widget.php:84
898
+ #: templates_admin/media.php:10
899
+ msgid "All posts"
900
+ msgstr ""
901
+
902
  #: pro/mappress_widget.php:85
903
  msgid "Custom query"
904
  msgstr ""
907
  msgid "Learn about queries"
908
  msgstr ""
909
 
910
+ #: pro/mappress_widget.php:94
911
+ #: pro/mappress_widget_map.php:74
912
  msgid "Show POI list"
913
  msgstr ""
914
 
915
+ #: pro/mappress_widget.php:101
916
+ #: pro/mappress_widget_map.php:81
917
  msgid "Other Settings"
918
  msgstr ""
919
 
920
+ #: pro/mappress_widget.php:104
921
+ #: pro/mappress_widget_map.php:84
922
  msgid "Example: initialopeninfo=\"true\""
923
  msgstr ""
924
 
925
+ #: pro/mappress_widget_map.php:61
926
+ #: templates_admin/media.php:21
927
+ #: src/mappress_gt_pick.js:155
928
+ #: src/mappress_gt_settings.js:151
929
+ msgid "Map ID"
930
+ msgstr ""
931
+
932
+ #: templates/map-directions.php:5
933
+ msgid "My location"
934
+ msgstr ""
935
+
936
+ #: templates/map-directions.php:14
937
+ msgid "Get Directions"
938
+ msgstr ""
939
+
940
+ #: templates/map-filters.php:12
941
+ msgid "Done"
942
+ msgstr ""
943
+
944
+ #: templates/map-filters.php:13
945
+ msgid "Reset"
946
+ msgstr ""
947
+
948
+ #: templates/map-loop.php:3
949
+ msgid "Results"
950
+ msgstr ""
951
+
952
+ #: templates/map.php:52
953
+ msgid "Your Location"
954
+ msgstr ""
955
+
956
+ #: templates/map.php:66
957
  msgid "Menu"
958
  msgstr ""
959
 
960
+ #: templates/map.php:68
961
  msgid "Center map"
962
  msgstr ""
963
 
964
+ #: templates/map.php:71
965
  msgid "Traffic"
966
  msgstr ""
967
 
968
+ #: templates/map.php:72
969
  msgid "Bicycling"
970
  msgstr ""
971
 
972
+ #: templates/map.php:73
973
  msgid "Transit"
974
  msgstr ""
975
 
976
+ #: templates/map.php:83
977
+ msgid "Show List"
978
  msgstr ""
979
 
980
+ #: templates/map.php:84
981
+ msgid "Show Map"
982
  msgstr ""
983
 
984
+ #: templates_admin/editor.php:33
985
+ msgid "Visual"
986
  msgstr ""
987
 
988
+ #: templates_admin/editor.php:33
989
+ msgid "HTML"
990
  msgstr ""
991
 
992
+ #: templates_admin/editor.php:39
993
+ #: templates_admin/media.php:49
994
+ #: templates_admin/widgets.php:91
995
+ #: src/mappress_gt_edit.js:121
996
+ #: src/mappress_gt_settings.js:171
997
+ msgid "Save"
998
  msgstr ""
999
 
1000
+ #: templates_admin/editor.php:40
1001
+ #: templates_admin/media.php:50
1002
+ #: templates_admin/widgets.php:92
1003
+ #: src/mappress_gt_edit.js:122
1004
+ msgid "Cancel"
1005
+ msgstr ""
1006
+
1007
+ #: templates_admin/media.php:7
1008
+ msgid "New Map"
1009
+ msgstr ""
1010
+
1011
+ #: templates_admin/media.php:9
1012
+ msgid "This post"
1013
+ msgstr ""
1014
+
1015
+ #: templates_admin/media.php:12
1016
+ msgid "Filter by title"
1017
+ msgstr ""
1018
+
1019
+ #: templates_admin/media.php:26
1020
+ msgid "Map Title"
1021
+ msgstr ""
1022
+
1023
+ #: templates_admin/media.php:27
1024
+ #: templates_admin/media.php:63
1025
+ #: templates_admin/media.php:67
1026
+ #: src/mappress_gt_edit.js:112
1027
+ #: src/mappress_gt_pick.js:176
1028
+ #: src/mappress_gt_pick.js:177
1029
+ #: src/mappress_gt_settings.js:148
1030
+ #: src/mappress_gt_store.js:173
1031
+ msgid "Untitled"
1032
+ msgstr ""
1033
+
1034
+ #: templates_admin/media.php:31
1035
+ msgid "Display Size"
1036
+ msgstr ""
1037
+
1038
+ #: templates_admin/media.php:44
1039
+ msgid "Save center / zoom"
1040
+ msgstr ""
1041
+
1042
+ #: templates_admin/media.php:51
1043
+ #: templates_admin/media.php:71
1044
+ msgid "Insert into post"
1045
+ msgstr ""
1046
+
1047
+ #: templates_admin/media.php:79
1048
+ #: src/mappress_gt_pick.js:163
1049
+ msgid "No maps found"
1050
+ msgstr ""
1051
+
1052
+ #: templates_admin/widgets.php:7
1053
+ msgid "Opacity"
1054
+ msgstr ""
1055
+
1056
+ #: templates_admin/widgets.php:13
1057
+ msgid "Weight"
1058
+ msgstr ""
1059
+
1060
+ #: templates_admin/widgets.php:28
1061
+ msgid "No custom icons have been added yet."
1062
+ msgstr ""
1063
+
1064
+ #: templates_admin/widgets.php:59
1065
+ msgid "Use default icon"
1066
+ msgstr ""
1067
+
1068
+ #: templates_admin/widgets.php:67
1069
+ msgid "Map popup"
1070
+ msgstr ""
1071
+
1072
+ #: templates_admin/widgets.php:67
1073
+ msgid "Map list item"
1074
+ msgstr ""
1075
+
1076
+ #: templates_admin/widgets.php:67
1077
+ msgid "Mashup popup"
1078
+ msgstr ""
1079
+
1080
+ #: templates_admin/widgets.php:67
1081
+ msgid "Mashup list item"
1082
+ msgstr ""
1083
+
1084
+ #: templates_admin/widgets.php:74
1085
+ msgid "New"
1086
+ msgstr ""
1087
+
1088
+ #: templates_admin/widgets.php:74
1089
+ #: src/mappress_gt_settings.js:96
1090
+ msgid "Custom"
1091
+ msgstr ""
1092
+
1093
+ #: templates_admin/widgets.php:77
1094
+ msgid "Editor"
1095
+ msgstr ""
1096
+
1097
+ #: src/mappress_gt_library.js:66
1098
+ msgid "Add New"
1099
+ msgstr ""
1100
+
1101
+ #: src/mappress_gt_map.js:16
1102
+ msgid "Insert a map"
1103
+ msgstr ""
1104
+
1105
+ #: src/mappress_gt_map.js:190
1106
+ #: src/mappress_gt_map.js:276
1107
+ msgid "New map"
1108
+ msgstr ""
1109
+
1110
+ #: src/mappress_gt_map.js:191
1111
+ msgid "Edit map"
1112
+ msgstr ""
1113
+
1114
+ #: src/mappress_gt_map.js:212
1115
+ msgid "Like the block? Upgrade to the free plugin or MapPress Pro for more features!"
1116
+ msgstr ""
1117
+
1118
+ #: src/mappress_gt_map.js:214
1119
+ msgid "MapPress Pro"
1120
+ msgstr ""
1121
+
1122
+ #: src/mappress_gt_map.js:215
1123
+ msgid "Free plugin"
1124
+ msgstr ""
1125
+
1126
+ #: src/mappress_gt_map.js:218
1127
+ msgid "MapPress options"
1128
+ msgstr ""
1129
+
1130
+ #: src/mappress_gt_map.js:228
1131
+ msgid "Map settings"
1132
+ msgstr ""
1133
+
1134
+ #: src/mappress_gt_map.js:275
1135
+ msgid "MapPress Map"
1136
+ msgstr ""
1137
+
1138
+ #: src/mappress_gt_map.js:275
1139
+ msgid "Create a new map or choose one from the map library."
1140
+ msgstr ""
1141
+
1142
+ #: src/mappress_gt_mashup.js:17
1143
+ msgid "Insert a mashup"
1144
+ msgstr ""
1145
+
1146
+ #: src/mappress_gt_mashup.js:165
1147
+ msgid "Query"
1148
+ msgstr ""
1149
+
1150
+ #: src/mappress_gt_mashup.js:394
1151
+ msgid "Author"
1152
+ msgstr ""
1153
+
1154
+ #: src/mappress_gt_mashup.js:402
1155
+ msgid "Invalid JSON"
1156
+ msgstr ""
1157
+
1158
+ #: src/mappress_gt_mashup.js:405
1159
+ msgid "Update"
1160
+ msgstr ""
1161
+
1162
+ #: src/mappress_gt_mashup.js:409
1163
+ msgid "Query code"
1164
+ msgstr ""
1165
+
1166
+ #: src/mappress_gt_mashup.js:464
1167
+ msgid "Value (a or a,b,c...)"
1168
+ msgstr ""
1169
+
1170
+ #: src/mappress_gt_mashup.js:487
1171
+ msgid "Add custom field"
1172
+ msgstr ""
1173
+
1174
+ #: src/mappress_gt_mashup.js:491
1175
+ msgid "Field name"
1176
+ msgstr ""
1177
+
1178
+ #: src/mappress_gt_mashup.js:500
1179
+ msgid "Please enter a field name"
1180
+ msgstr ""
1181
+
1182
+ #: src/mappress_gt_mashup.js:502
1183
+ msgid "The field \"%s\" has already been added"
1184
+ msgstr ""
1185
+
1186
+ #: src/mappress_gt_mashup.js:522
1187
+ msgid "Order by"
1188
+ msgstr ""
1189
+
1190
+ #: src/mappress_gt_mashup.js:548
1191
+ msgid "Refresh map"
1192
+ msgstr ""
1193
+
1194
+ #: src/mappress_gt_mashup.js:565
1195
+ msgid "Include children"
1196
+ msgstr ""
1197
+
1198
+ #: src/mappress_gt_mce.js:59
1199
+ msgid "Please place the cursor on a blank line or a [mappress] shortcode."
1200
+ msgstr ""
1201
+
1202
+ #: src/mappress_gt_options.js:48
1203
+ msgid "Options saved."
1204
+ msgstr ""
1205
+
1206
+ #: src/mappress_gt_options.js:74
1207
+ msgid "Mapping Engine"
1208
+ msgstr ""
1209
+
1210
+ #: src/mappress_gt_options.js:96
1211
+ msgid "Save options"
1212
+ msgstr ""
1213
+
1214
+ #: src/mappress_gt_pick.js:73
1215
+ msgid "Shortcode copied"
1216
+ msgstr ""
1217
+
1218
+ #: src/mappress_gt_pick.js:128
1219
+ msgid "All maps"
1220
+ msgstr ""
1221
+
1222
+ #: src/mappress_gt_pick.js:129
1223
+ msgid "Attached to this post"
1224
+ msgstr ""
1225
+
1226
+ #: src/mappress_gt_pick.js:138
1227
+ msgid "post title, map title, or map id"
1228
+ msgstr ""
1229
+
1230
+ #: src/mappress_gt_pick.js:154
1231
+ msgid "Map title"
1232
+ msgstr ""
1233
+
1234
+ #: src/mappress_gt_pick.js:156
1235
+ msgid "Attached to"
1236
+ msgstr ""
1237
+
1238
+ #: src/mappress_gt_pick.js:157
1239
+ msgid "Action"
1240
+ msgstr ""
1241
+
1242
+ #: src/mappress_gt_pick.js:180
1243
+ msgid "current post"
1244
+ msgstr ""
1245
+
1246
+ #: src/mappress_gt_pick.js:187
1247
+ msgid "Edit post"
1248
+ msgstr ""
1249
+
1250
+ #: src/mappress_gt_pick.js:189
1251
+ msgid "Unattached"
1252
+ msgstr ""
1253
+
1254
+ #: src/mappress_gt_pick.js:197
1255
+ msgid "Copy shortcode"
1256
+ msgstr ""
1257
+
1258
+ #: src/mappress_gt_pick.js:198
1259
+ msgid "Delete map"
1260
+ msgstr ""
1261
+
1262
+ #: src/mappress_gt_pick.js:220
1263
+ msgid "Select a map"
1264
+ msgstr ""
1265
+
1266
+ #: src/mappress_gt_settings.js:72
1267
+ msgid "Viewport saved"
1268
+ msgstr ""
1269
+
1270
+ #: src/mappress_gt_settings.js:109
1271
+ msgid "Size"
1272
+ msgstr ""
1273
+
1274
+ #: src/mappress_gt_settings.js:117
1275
+ msgid "px, %, vw"
1276
+ msgstr ""
1277
+
1278
+ #: src/mappress_gt_settings.js:118
1279
+ msgid "Width"
1280
+ msgstr ""
1281
+
1282
+ #: src/mappress_gt_settings.js:125
1283
+ msgid "px, %, vh"
1284
+ msgstr ""
1285
+
1286
+ #: src/mappress_gt_settings.js:126
1287
+ msgid "Height"
1288
+ msgstr ""
1289
+
1290
+ #: src/mappress_gt_settings.js:140
1291
+ msgid "On"
1292
+ msgstr ""
1293
+
1294
+ #: src/mappress_gt_settings.js:141
1295
+ msgid "Off"
1296
+ msgstr ""
1297
+
1298
+ #: src/mappress_gt_settings.js:159
1299
+ msgid "Center/Zoom"
1300
  msgstr ""
languages/texts.php CHANGED
@@ -4,47 +4,24 @@ __("https://www.mappresspro.com/mappress");
4
  __("MapPress makes it easy to add Google and Leaflet Maps to WordPress");
5
  __("Chris Richardson");
6
  __("https://www.mappresspro.com/chris-contact");
7
- __("Add KML");
8
- __("Visual");
9
- __("HTML");
10
- __("Save");
11
- __("Cancel");
12
- __("Delete");
13
- __("New Map");
14
- __("This post");
15
- __("All posts");
16
- __("Filter by title");
17
- __("Map ID");
18
- __("Map Title");
19
- __("Untitled");
20
- __("Display Size");
21
- __("Save center / zoom");
22
- __("Insert into post");
23
- __("Edit");
24
- __("No maps found");
25
- __("Map popup");
26
- __("Map list item");
27
- __("Mashup popup");
28
- __("Mashup list item");
29
- __("New");
30
- __("Custom");
31
- __("Editor");
32
- __("Default");
33
  __("MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this.");
34
- __("WARNING: MapPress is not compatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress.");
35
  __("A Google Maps API key is required");
36
  __("Please update your");
37
  __("MapPress Settings");
38
  __("Version");
39
  __("Help");
40
  __("Upgrade to MapPress Pro");
 
 
 
41
  __("Are you sure you want to delete?");
42
- __("Delete this map?");
43
- __("Google cannot return directions between those addresses. There is no route between them or the routing information is not available.");
44
  __("Error reading KML file");
45
  __("URL for KML file");
46
  __("Loading");
47
- __("%1d of %2d shown");
48
  __("Unable to get your location");
49
  __("No results");
50
  __("Save changes?");
@@ -56,16 +33,15 @@ __("Light");
56
  __("Dark");
57
  __("Satellite");
58
  __("Satellite Streets");
59
- __("Settings");
60
  __("Add");
 
61
  __("MapPress");
62
  __("Map not found");
63
- __("Filter");
64
  __("Sample Map");
65
  __("Basic Settings");
66
- __("Mapping Engine");
67
- __("Mapbox access token");
68
  __("Google API key");
 
69
  __("License");
70
  __("Map Settings");
71
  __("Post types");
@@ -81,19 +57,20 @@ __("Styled Maps");
81
  __("Geocoding");
82
  __("Templates");
83
  __("Localization");
84
- __("Language");
85
- __("Country");
86
  __("Directions server");
87
  __("Miscellaneous");
88
- __("Compatiblity");
89
- __("Scripts");
90
  __("Map sizes");
 
 
 
91
  __("Center");
92
  __("Left");
93
  __("Right");
 
94
  __("Top of post");
95
  __("Bottom of post");
96
- __("None");
97
  __("(list)");
98
  __("Country code for searches");
99
  __("Prevent other plugins/themes from loading the Google Maps API");
@@ -104,15 +81,15 @@ __("Leaflet is free and requires no API key. Google requires an API key and has
104
  __("Output scripts in footer");
105
  __("Disabled because Jetpack Infinite Scroll is active");
106
  __("disable if maps are output using AJAX");
107
- __("Language for map controls");
108
  __("Enter token to use Mapbox map tiles");
109
  __("Map type control");
110
  __("Street view control");
111
  __("Zoom control");
112
  __("Default zoom when displaying a single POI");
113
  __("Easy Google Maps");
114
- __("Width (px or %)");
115
- __("Height (px)");
116
  __("Default size");
117
  __("Save Changes");
118
  __("Reset Defaults");
@@ -133,22 +110,25 @@ __("Server API Key is missing - see MapPress Settings");
133
  __("Invalid status: %s, %s Address: %s");
134
  __("Error: %s %s");
135
  __("Invalid JSON from Geocoding service: %s");
136
- __("Use default icon");
137
- __("Opacity");
138
- __("Weight");
139
  __("Automatic");
140
  __("MapPress license key");
141
  __("Beta versions");
142
  __("Geocoder");
143
  __("POI list");
144
  __("POI list layout");
 
145
  __("Sort");
 
146
  __("Popup type");
147
  __("Default icon");
148
  __("Icon directory");
 
149
  __("Icon scaling");
150
  __("Automatic icons");
151
  __("Search");
 
152
  __("POI content");
153
  __("POI click");
154
  __("KMLs");
@@ -167,6 +147,7 @@ __("API key secured by IP address for geocoding (optional)");
167
  __("Value");
168
  __("Icon");
169
  __("Enable updates for beta versions");
 
170
  __("Checkboxes");
171
  __("Select");
172
  __("Key");
@@ -177,17 +158,19 @@ __("Force Resize");
177
  __("Algolia");
178
  __("Nominatim");
179
  __("MapBox");
 
180
  __("Standard");
181
  __("InfoBox");
182
  __("Left of map");
183
  __("Below map");
 
184
  __("Enter license to enable automatic updates");
185
  __("Active");
186
- __("Check Now");
187
  __("Communication error, please try again later");
188
  __("License is invalid or expired");
189
- __("POI title + body");
190
- __("Post title + excerpt");
191
  __("Open POI");
192
  __("Open post");
193
  __("Open post in new tab");
@@ -201,6 +184,7 @@ __("Body");
201
  __("Zoom");
202
  __("Map Field");
203
  __("Overwrite maps when posts are saved");
 
204
  __("Show a list of POIs with each map");
205
  __("Enable search");
206
  __("Sort POI list by title");
@@ -221,20 +205,99 @@ __("Map size");
221
  __("Show");
222
  __("Current posts");
223
  __("Hide if empty");
 
224
  __("Custom query");
225
  __("Learn about queries");
226
  __("Show POI list");
227
  __("Other Settings");
228
  __("Example: initialopeninfo=\"true\"");
229
- __("Menu");
230
- __("Center map");
231
- __("Traffic");
232
- __("Bicycling");
233
- __("Transit");
234
  __("My location");
235
  __("Get Directions");
236
  __("Done");
237
  __("Reset");
238
  __("Results");
239
  __("Your Location");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  ?>
4
  __("MapPress makes it easy to add Google and Leaflet Maps to WordPress");
5
  __("Chris Richardson");
6
  __("https://www.mappresspro.com/chris-contact");
7
+ __("Settings");
8
+ __("Map Library");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  __("MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this.");
 
10
  __("A Google Maps API key is required");
11
  __("Please update your");
12
  __("MapPress Settings");
13
  __("Version");
14
  __("Help");
15
  __("Upgrade to MapPress Pro");
16
+ __("Please enter your MapPress license key to enable plugin updates");
17
+ __("You are using a BETA version of MapPress. Please make a database backup.");
18
+ __("MapPress Gutenberg blocks require WordPress 5.3 or the latest Gutenberg Plugin. Please update if using the block editor.");
19
  __("Are you sure you want to delete?");
20
+ __("Permanently delete this map from the map library?");
 
21
  __("Error reading KML file");
22
  __("URL for KML file");
23
  __("Loading");
24
+ __("Please select a classic editor block to insert into.");
25
  __("Unable to get your location");
26
  __("No results");
27
  __("Save changes?");
33
  __("Dark");
34
  __("Satellite");
35
  __("Satellite Streets");
 
36
  __("Add");
37
+ __("Delete");
38
  __("MapPress");
39
  __("Map not found");
 
40
  __("Sample Map");
41
  __("Basic Settings");
42
+ __("Mapping API");
 
43
  __("Google API key");
44
+ __("Mapbox access token");
45
  __("License");
46
  __("Map Settings");
47
  __("Post types");
57
  __("Geocoding");
58
  __("Templates");
59
  __("Localization");
60
+ __("Search language");
61
+ __("Search country");
62
  __("Directions server");
63
  __("Miscellaneous");
 
 
64
  __("Map sizes");
65
+ __("Scripts");
66
+ __("Compatiblity");
67
+ __("Default");
68
  __("Center");
69
  __("Left");
70
  __("Right");
71
+ __("None");
72
  __("Top of post");
73
  __("Bottom of post");
 
74
  __("(list)");
75
  __("Country code for searches");
76
  __("Prevent other plugins/themes from loading the Google Maps API");
81
  __("Output scripts in footer");
82
  __("Disabled because Jetpack Infinite Scroll is active");
83
  __("disable if maps are output using AJAX");
84
+ __("Language for searches and Google map controls");
85
  __("Enter token to use Mapbox map tiles");
86
  __("Map type control");
87
  __("Street view control");
88
  __("Zoom control");
89
  __("Default zoom when displaying a single POI");
90
  __("Easy Google Maps");
91
+ __("Width (px, %, vh, vw)");
92
+ __("Height (px, %, vh, vw)");
93
  __("Default size");
94
  __("Save Changes");
95
  __("Reset Defaults");
110
  __("Invalid status: %s, %s Address: %s");
111
  __("Error: %s %s");
112
  __("Invalid JSON from Geocoding service: %s");
113
+ __("No file provided");
114
+ __("Files error: ");
 
115
  __("Automatic");
116
  __("MapPress license key");
117
  __("Beta versions");
118
  __("Geocoder");
119
  __("POI list");
120
  __("POI list layout");
121
+ __("Mini width");
122
  __("Sort");
123
+ __("Clustering");
124
  __("Popup type");
125
  __("Default icon");
126
  __("Icon directory");
127
+ __("Custom icons");
128
  __("Icon scaling");
129
  __("Automatic icons");
130
  __("Search");
131
+ __("Filter");
132
  __("POI content");
133
  __("POI click");
134
  __("KMLs");
147
  __("Value");
148
  __("Icon");
149
  __("Enable updates for beta versions");
150
+ __("Enable marker clustering");
151
  __("Checkboxes");
152
  __("Select");
153
  __("Key");
158
  __("Algolia");
159
  __("Nominatim");
160
  __("MapBox");
161
+ __("Edit");
162
  __("Standard");
163
  __("InfoBox");
164
  __("Left of map");
165
  __("Below map");
166
+ __("Get license");
167
  __("Enter license to enable automatic updates");
168
  __("Active");
169
+ __("Check now");
170
  __("Communication error, please try again later");
171
  __("License is invalid or expired");
172
+ __("POI title + POI body");
173
+ __("Post title + post excerpt");
174
  __("Open POI");
175
  __("Open post");
176
  __("Open post in new tab");
184
  __("Zoom");
185
  __("Map Field");
186
  __("Overwrite maps when posts are saved");
187
+ __("Width (px) at which to collapse the left POI list");
188
  __("Show a list of POIs with each map");
189
  __("Enable search");
190
  __("Sort POI list by title");
205
  __("Show");
206
  __("Current posts");
207
  __("Hide if empty");
208
+ __("All posts");
209
  __("Custom query");
210
  __("Learn about queries");
211
  __("Show POI list");
212
  __("Other Settings");
213
  __("Example: initialopeninfo=\"true\"");
214
+ __("Map ID");
 
 
 
 
215
  __("My location");
216
  __("Get Directions");
217
  __("Done");
218
  __("Reset");
219
  __("Results");
220
  __("Your Location");
221
+ __("Menu");
222
+ __("Center map");
223
+ __("Traffic");
224
+ __("Bicycling");
225
+ __("Transit");
226
+ __("Show List");
227
+ __("Show Map");
228
+ __("Visual");
229
+ __("HTML");
230
+ __("Save");
231
+ __("Cancel");
232
+ __("New Map");
233
+ __("This post");
234
+ __("Filter by title");
235
+ __("Map Title");
236
+ __("Untitled");
237
+ __("Display Size");
238
+ __("Save center / zoom");
239
+ __("Insert into post");
240
+ __("No maps found");
241
+ __("Opacity");
242
+ __("Weight");
243
+ __("No custom icons have been added yet.");
244
+ __("Use default icon");
245
+ __("Map popup");
246
+ __("Map list item");
247
+ __("Mashup popup");
248
+ __("Mashup list item");
249
+ __("New");
250
+ __("Custom");
251
+ __("Editor");
252
+ __("Add New");
253
+ __("Insert a map");
254
+ __("New map");
255
+ __("Edit map");
256
+ __("Like the block? Upgrade to the free plugin or MapPress Pro for more features!");
257
+ __("MapPress Pro");
258
+ __("Free plugin");
259
+ __("MapPress options");
260
+ __("Map settings");
261
+ __("MapPress Map");
262
+ __("Create a new map or choose one from the map library.");
263
+ __("Insert a mashup");
264
+ __("Query");
265
+ __("Author");
266
+ __("Invalid JSON");
267
+ __("Update");
268
+ __("Query code");
269
+ __("Value (a or a,b,c...)");
270
+ __("Add custom field");
271
+ __("Field name");
272
+ __("Please enter a field name");
273
+ __("The field \"%s\" has already been added");
274
+ __("Order by");
275
+ __("Refresh map");
276
+ __("Include children");
277
+ __("Please place the cursor on a blank line or a [mappress] shortcode.");
278
+ __("Options saved.");
279
+ __("Mapping Engine");
280
+ __("Save options");
281
+ __("Shortcode copied");
282
+ __("All maps");
283
+ __("Attached to this post");
284
+ __("post title, map title, or map id");
285
+ __("Map title");
286
+ __("Attached to");
287
+ __("Action");
288
+ __("current post");
289
+ __("Edit post");
290
+ __("Unattached");
291
+ __("Copy shortcode");
292
+ __("Delete map");
293
+ __("Select a map");
294
+ __("Viewport saved");
295
+ __("Size");
296
+ __("px, %, vw");
297
+ __("Width");
298
+ __("px, %, vh");
299
+ __("Height");
300
+ __("On");
301
+ __("Off");
302
+ __("Center/Zoom");
303
  ?>
lib/Leaflet.markercluster/MarkerCluster.Default.css ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .marker-cluster-small {
2
+ background-color: rgba(181, 226, 140, 0.6);
3
+ }
4
+ .marker-cluster-small div {
5
+ background-color: rgba(110, 204, 57, 0.6);
6
+ }
7
+
8
+ .marker-cluster-medium {
9
+ background-color: rgba(241, 211, 87, 0.6);
10
+ }
11
+ .marker-cluster-medium div {
12
+ background-color: rgba(240, 194, 12, 0.6);
13
+ }
14
+
15
+ .marker-cluster-large {
16
+ background-color: rgba(253, 156, 115, 0.6);
17
+ }
18
+ .marker-cluster-large div {
19
+ background-color: rgba(241, 128, 23, 0.6);
20
+ }
21
+
22
+ /* IE 6-8 fallback colors */
23
+ .leaflet-oldie .marker-cluster-small {
24
+ background-color: rgb(181, 226, 140);
25
+ }
26
+ .leaflet-oldie .marker-cluster-small div {
27
+ background-color: rgb(110, 204, 57);
28
+ }
29
+
30
+ .leaflet-oldie .marker-cluster-medium {
31
+ background-color: rgb(241, 211, 87);
32
+ }
33
+ .leaflet-oldie .marker-cluster-medium div {
34
+ background-color: rgb(240, 194, 12);
35
+ }
36
+
37
+ .leaflet-oldie .marker-cluster-large {
38
+ background-color: rgb(253, 156, 115);
39
+ }
40
+ .leaflet-oldie .marker-cluster-large div {
41
+ background-color: rgb(241, 128, 23);
42
+ }
43
+
44
+ .marker-cluster {
45
+ background-clip: padding-box;
46
+ border-radius: 20px;
47
+ }
48
+ .marker-cluster div {
49
+ width: 30px;
50
+ height: 30px;
51
+ margin-left: 5px;
52
+ margin-top: 5px;
53
+
54
+ text-align: center;
55
+ border-radius: 15px;
56
+ font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
57
+ }
58
+ .marker-cluster span {
59
+ line-height: 30px;
60
+ }
lib/Leaflet.markercluster/MarkerCluster.css ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
2
+ -webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
3
+ -moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
4
+ -o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
5
+ transition: transform 0.3s ease-out, opacity 0.3s ease-in;
6
+ }
7
+
8
+ .leaflet-cluster-spider-leg {
9
+ /* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */
10
+ -webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;
11
+ -moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;
12
+ -o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;
13
+ transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
14
+ }
lib/Leaflet.markercluster/leaflet.markercluster.js ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e.Leaflet=e.Leaflet||{},e.Leaflet.markercluster=e.Leaflet.markercluster||{}))}(this,function(e){"use strict";var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):e.getLatLng?this._map?e.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e}),this):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e}),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,n=this._featureGroup,r=this._nonPointGroup,s=this.options.chunkedLoading,o=this.options.chunkInterval,a=this.options.chunkProgress,h=e.length,l=0,u=!0;if(this._map){var _=(new Date).getTime(),d=L.bind(function(){for(var c=(new Date).getTime();h>l;l++){if(s&&0===l%200){var p=(new Date).getTime()-c;if(p>o)break}if(i=e[l],i instanceof L.LayerGroup)u&&(e=e.slice(),u=!1),this._extractNonGroupLayers(i,e),h=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var f=i.__parent.getAllChildMarkers(),m=f[0]===i?f[1]:f[0];n.removeLayer(m)}}else r.addLayer(i),t||this.fire("layeradd",{layer:i})}a&&a(l,h,(new Date).getTime()-_),l===h?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)},this);d()}else for(var c=this._needsClustering;h>l;l++)i=e[l],i instanceof L.LayerGroup?(u&&(e=e.slice(),u=!1),this._extractNonGroupLayers(i,e),h=e.length):i.getLatLng?this.hasLayer(i)||c.push(i):r.addLayer(i);return this},removeLayers:function(e){var t,i,n=e.length,r=this._featureGroup,s=this._nonPointGroup,o=!0;if(!this._map){for(t=0;n>t;t++)i=e[t],i instanceof L.LayerGroup?(o&&(e=e.slice(),o=!1),this._extractNonGroupLayers(i,e),n=e.length):(this._arraySplice(this._needsClustering,i),s.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=e.slice(),h=n;for(t=0;h>t;t++)i=a[t],i instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),h=a.length):this._unspiderfyLayer(i)}for(t=0;n>t;t++)i=e[t],i instanceof L.LayerGroup?(o&&(e=e.slice(),o=!1),this._extractNonGroupLayers(i,e),n=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),r.hasLayer(i)&&(r.removeLayer(i),i.clusterShow&&i.clusterShow())):(s.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;t>=0;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,n,r,s=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),n=s.length-1;n>=0;n--){for(i=!0,r=o.length-1;r>=0;r--)if(o[r].layer===s[n]){i=!1;break}i&&e.call(t,s[n])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer(function(t){e.push(t)}),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer(function(i){L.stamp(i)===e&&(t=i)}),t},hasLayer:function(e){if(!e)return!1;var t,i=this._needsClustering;for(t=i.length-1;t>=0;t--)if(i[t]===e)return!0;for(i=this._needsRemoving,t=i.length-1;t>=0;t--)if(i[t].layer===e)return!1;return!(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){"function"!=typeof t&&(t=function(){});var i=function(){!e._icon&&!e.__parent._icon||this._inZoomAnimation||(this._map.off("moveend",i,this),this.off("animationend",i,this),e._icon?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",i,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",i,this),this.on("animationend",i,this),e.__parent.zoomToBounds())},onAdd:function(e){this._map=e;var t,i,n;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;i>t;t++)n=this._needsRemoving[t],n.newlatlng=n.layer._latlng,n.layer._latlng=n.latlng;for(t=0,i=this._needsRemoving.length;i>t;t++)n=this._needsRemoving[t],this._removeLayer(n.layer,!0),n.layer._latlng=n.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;i>=0;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,n=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());t>=r&&n[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,i){var n=this._gridClusters,r=this._gridUnclustered,s=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var h,l=e.__parent,u=l._markers;for(this._arraySplice(u,e);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<a));)t&&l._childCount<=1?(h=l._markers[0]===e?l._markers[1]:l._markers[0],n[l._zoom].removeObject(l,o.project(l._cLatLng,l._zoom)),r[l._zoom].addObject(h,o.project(h.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(h),h.__parent=l.__parent,l._icon&&(s.removeLayer(l),i||s.addLayer(h))):l._iconNeedsUpdate=!0,l=l.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e}L.FeatureGroup.prototype.fire.call(this,e,t,i)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=10>t?"small":100>t?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick;(t||n)&&this.on("clusterclick",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){for(var t=e.layer,i=t;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),e.layer.getChildCount()>2&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this._map;(e||i)&&this.off("clusterclick",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;"function"!=typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var r=e;r>=t;r--)this._gridClusters[r]=new L.DistanceGrid(n(r)),this._gridUnclustered[r]=new L.DistanceGrid(n(r));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,n,r=this._gridClusters,s=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);t>=o;t--){i=this._map.project(e.getLatLng(),t);var a=r[t].getNearObject(i);if(a)return a._addChild(e),e.__parent=a,void 0;if(a=s[t].getNearObject(i)){var h=a.__parent;h&&this._removeLayer(a,!1);var l=new this._markerCluster(this,t,a,e);r[t].addObject(l,this._map.project(l._cLatLng,t)),a.__parent=l,e.__parent=l;var u=l;for(n=t-1;n>h._zoom;n--)u=new this._markerCluster(this,n,u),r[n].addObject(u,this._map.project(a.getLatLng(),n));return h._addChild(u),this._removeFromGridUnclustered(a,t),void 0}s[t].addObject(e,i)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()})},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i,n=e.getLayers(),r=0;for(t=t||[];r<n.length;r++)i=n[r],i instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){var t=e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}});return t}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(e,t){var i,n=this._getExpandedVisibleBounds(),r=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(n,e,s,function(s){var o,a=s._latlng,h=s._markers;for(n.contains(a)||(a=null),s._isSingleParent()&&e+1===t?(r.removeLayer(s),s._recursivelyAddChildrenToMap(null,t,n)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,t,n)),i=h.length-1;i>=0;i--)o=h[i],n.contains(o._latlng)||r.removeLayer(o)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,t),r.eachLayer(function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()}),this._topClusterLevel._recursively(n,e,t,function(e){e._recursivelyRestoreChildPositions(t)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(n,e,s,function(e){r.removeLayer(e),e.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,n=this._featureGroup;n.addLayer(e),t!==e&&(t._childCount>2?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue(function(){n.removeLayer(e),e.clusterShow(),i._animationEnd()})):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var n=this._getExpandedVisibleBounds(),r=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(n,r,t+1,i);var s=this;this._forceLayout(),e._recursivelyBecomeVisible(n,i),this._enqueue(function(){if(1===e._childCount){var o=e._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else e._recursively(n,i,r,function(e){e._recursivelyRemoveChildrenFromMap(n,r,t+1)});s._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i].getAllChildMarkers(e);for(var n=this._markers.length-1;n>=0;n--)t&&this._markers[n].__dragStart||e.push(this._markers[n]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),n=this._group._map,r=n.getBoundsZoom(this._bounds),s=this._zoom+1,o=n.getZoom();i.length>0&&r>s;){s++;var a=[];for(t=0;t<i.length;t++)a=a.concat(i[t]._childClusters);i=a}r>s?this._group._map.setView(this._latlng,s):o>=r?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,i,n,r=this._markers,s=this._childClusters,o=0,a=0,h=this._childCount;if(0!==h){for(this._resetBounds(),e=0;e<r.length;e++)i=r[e]._latlng,this._bounds.extend(i),o+=i.lat,a+=i.lng;for(e=0;e<s.length;e++)t=s[e],t._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,n=t._childCount,o+=i.lat*n,a+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(o/h,a/h),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,function(e){var i,n,r=e._markers;for(i=r.length-1;i>=0;i--)n=r[i],n._icon&&(n._setPos(t),n.clusterHide())},function(e){var i,n,r=e._childClusters;for(i=r.length-1;i>=0;i--)n=r[i],n._icon&&(n._setPos(t),n.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,n){this._recursively(e,n,t,function(r){r._recursivelyAnimateChildrenIn(e,r._group._map.latLngToLayerPoint(r.getLatLng()).round(),i),r._isSingleParent()&&i-1===n?(r.clusterShow(),r._recursivelyRemoveChildrenFromMap(e,t,i)):r.clusterHide(),r._addToMap()})},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,function(e){e.clusterShow()})},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,function(n){if(t!==n._zoom)for(var r=n._markers.length-1;r>=0;r--){var s=n._markers[r];i.contains(s._latlng)&&(e&&(s._backupLatlng=s.getLatLng(),s.setLatLng(e),s.clusterHide&&s.clusterHide()),n._group._featureGroup.addLayer(s))}},function(t){t._addToMap(e)})},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;t>=0;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-1===this._zoom)for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n]._restorePosition();else for(var r=this._childClusters.length-1;r>=0;r--)this._childClusters[r]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,n){var r,s;this._recursively(e,t-1,i-1,function(e){for(s=e._markers.length-1;s>=0;s--)r=e._markers[s],n&&n.contains(r._latlng)||(e._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())},function(e){for(s=e._childClusters.length-1;s>=0;s--)r=e._childClusters[s],n&&n.contains(r._latlng)||(e._group._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow())})},_recursively:function(e,t,i,n,r){var s,o,a=this._childClusters,h=this._zoom;if(h>=t&&(n&&n(this),r&&h===i&&r(this)),t>h||i>h)for(s=a.length-1;s>=0;s--)o=a[s],o._boundsNeedUpdate&&o._recalculateBounds(),e.intersects(o._bounds)&&o._recursively(e,t,i,n,r)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),n=this._getCoord(t.y),r=this._grid,s=r[n]=r[n]||{},o=s[i]=s[i]||[],a=L.Util.stamp(e);this._objectPoint[a]=t,o.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,n,r=this._getCoord(t.x),s=this._getCoord(t.y),o=this._grid,a=o[s]=o[s]||{},h=a[r]=a[r]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,n=h.length;n>i;i++)if(h[i]===e)return h.splice(i,1),1===n&&delete a[r],!0},eachObject:function(e,t){var i,n,r,s,o,a,h,l=this._grid;for(i in l){o=l[i];for(n in o)for(a=o[n],r=0,s=a.length;s>r;r++)h=e.call(t,a[r]),h&&(r--,s--)}},getNearObject:function(e){var t,i,n,r,s,o,a,h,l=this._getCoord(e.x),u=this._getCoord(e.y),_=this._objectPoint,d=this._sqCellSize,c=null;for(t=u-1;u+1>=t;t++)if(r=this._grid[t])for(i=l-1;l+1>=i;i++)if(s=r[i])for(n=0,o=s.length;o>n;n++)a=s[n],h=this._sqDist(_[L.Util.stamp(a)],e),(d>h||d>=h&&null===c)&&(d=h,c=a);return c},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n}},function(){L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat,n=t[0].lng-t[1].lng;return n*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,n,r,s=0,o=null,a=[];for(i=t.length-1;i>=0;i--)n=t[i],r=this.getDistant(n,e),r>0&&(a.push(n),r>s&&(s=r,o=n));return{maxPoint:o,newPoints:a}},buildConvexHull:function(e,t){var i=[],n=this.findMostDistantPointFromBaseLine(e,t);return n.maxPoint?(i=i.concat(this.buildConvexHull([e[0],n.maxPoint],n.newPoints)),i=i.concat(this.buildConvexHull([n.maxPoint,e[1]],n.newPoints))):[e[0]]},getConvexHull:function(e){var t,i=!1,n=!1,r=!1,s=!1,o=null,a=null,h=null,l=null,u=null,_=null;for(t=e.length-1;t>=0;t--){var d=e[t];(i===!1||d.lat>i)&&(o=d,i=d.lat),(n===!1||d.lat<n)&&(a=d,n=d.lat),(r===!1||d.lng>r)&&(h=d,r=d.lng),(s===!1||d.lng<s)&&(l=d,s=d.lng)}n!==i?(_=a,u=o):(_=l,u=h);var c=[].concat(this.buildConvexHull([_,u],e),this.buildConvexHull([u,_],e));return c}}}(),L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),n=[];for(t=i.length-1;t>=0;t--)e=i[t].getLatLng(),n.push(e);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(null,!0),i=this._group,n=i._map,r=n.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,t.length>=this._circleSpiralSwitchover?e=this._generatePointsSpiral(t.length,r):(r.y+=10,e=this._generatePointsCircle(t.length,r)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i,n,r=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e),s=r/this._2PI,o=this._2PI/e,a=[];for(s=Math.max(s,35),a.length=e,i=0;e>i;i++)n=this._circleStartAngle+i*o,a[i]=new L.Point(t.x+s*Math.cos(n),t.y+s*Math.sin(n))._round();return a},_generatePointsSpiral:function(e,t){var i,n=this._group.options.spiderfyDistanceMultiplier,r=n*this._spiralLengthStart,s=n*this._spiralFootSeparation,o=n*this._spiralLengthFactor*this._2PI,a=0,h=[];for(h.length=e,i=e;i>=0;i--)e>i&&(h[i]=new L.Point(t.x+r*Math.cos(a),t.y+r*Math.sin(a))._round()),a+=s/r+5e-4*i,r+=o/a;return h},_noanimationUnspiderfy:function(){var e,t,i=this._group,n=i._map,r=i._featureGroup,s=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=s.length-1;t>=0;t--)e=s[t],r.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(n.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,n,r,s,o=this._group,a=o._map,h=o._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,i=0;i<e.length;i++)s=a.layerPointToLatLng(t[i]),n=e[i],r=new L.Polyline([this._latlng,s],l),a.addLayer(r),n._spiderLeg=r,n._preSpiderfyLatlng=n._latlng,n.setLatLng(s),n.setZIndexOffset&&n.setZIndexOffset(1e6),h.addLayer(n);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,n,r,s,o,a,h=this,l=this._group,u=l._map,_=l._featureGroup,d=this._latlng,c=u.latLngToLayerPoint(d),p=L.Path.SVG,f=L.extend({},this._group.options.spiderLegPolylineOptions),m=f.opacity;for(void 0===m&&(m=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),p?(f.opacity=0,f.className=(f.className||"")+" leaflet-cluster-spider-leg"):f.opacity=m,l._ignoreMove=!0,i=0;i<e.length;i++)n=e[i],a=u.layerPointToLatLng(t[i]),r=new L.Polyline([d,a],f),u.addLayer(r),n._spiderLeg=r,p&&(s=r._path,o=s.getTotalLength()+.1,s.style.strokeDasharray=o,s.style.strokeDashoffset=o),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),_.addLayer(n),n._setPos&&n._setPos(c);for(l._forceLayout(),l._animationStart(),i=e.length-1;i>=0;i--)a=u.layerPointToLatLng(t[i]),n=e[i],n._preSpiderfyLatlng=n._latlng,n.setLatLng(a),n.clusterShow&&n.clusterShow(),p&&(r=n._spiderLeg,s=r._path,s.style.strokeDashoffset=0,r.setStyle({opacity:m}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout(function(){l._animationEnd(),l.fire("spiderfied",{cluster:h,markers:e})},200)},_animationUnspiderfy:function(e){var t,i,n,r,s,o,a=this,h=this._group,l=h._map,u=h._featureGroup,_=e?l._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):l.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),c=L.Path.SVG;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),i=d.length-1;i>=0;i--)t=d[i],t._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,o=!0,t._setPos&&(t._setPos(_),o=!1),t.clusterHide&&(t.clusterHide(),o=!1),o&&u.removeLayer(t),c&&(n=t._spiderLeg,r=n._path,s=r.getTotalLength()+.1,r.style.strokeDashoffset=s,n.setStyle({opacity:0})));h._ignoreMove=!1,setTimeout(function(){var e=0;for(i=d.length-1;i>=0;i--)t=d[i],t._spiderLeg&&e++;for(i=d.length-1;i>=0;i--)t=d[i],t._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),e>1&&u.removeLayer(t),l.removeLayer(t._spiderLeg),delete t._spiderLeg);h._animationEnd(),h.fire("unspiderfied",{cluster:a,markers:d})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()
2
+ },_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i});
3
+ //# sourceMappingURL=leaflet.markercluster.js.map
lib/Leaflet.markercluster/leaflet.markercluster.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["../src/MarkerClusterGroup.js","../src/MarkerCluster.js","../src/MarkerOpacity.js","../src/DistanceGrid.js","../src/MarkerCluster.QuickHull.js","../src/MarkerCluster.Spiderfier.js","../src/MarkerClusterGroup.Refresh.js"],"names":[],"mappings":"0PAIO,IAAI,GAAqB,EAAE,mBAAqB,EAAE,aAAa,QAErE,SACC,iBAAkB,GAClB,mBAAoB,KACpB,YAAa,EAAE,OAAO,UAAU,QAAQ,KAExC,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAElB,wBAAyB,KAIzB,4BAA4B,EAK5B,SAAS,EAIT,sBAAsB,EAGtB,2BAA4B,EAG5B,0BAA4B,OAAQ,IAAK,MAAO,OAAQ,QAAS,IAGjE,gBAAgB,EAChB,cAAe,IACf,WAAY,GACZ,cAAe,KAGf,mBAGD,WAAY,SAAU,GACrB,EAAE,KAAK,WAAW,KAAM,GACnB,KAAK,QAAQ,qBACjB,KAAK,QAAQ,mBAAqB,KAAK,4BAGxC,KAAK,cAAgB,EAAE,eACvB,KAAK,cAAc,eAAe,MAElC,KAAK,eAAiB,EAAE,eACxB,KAAK,eAAe,eAAe,MAEnC,KAAK,iBAAmB,EACxB,KAAK,oBACL,KAAK,kBAEL,KAAK,oBAAsB,KAE3B,KAAK,UAEL,KAAK,2BACJ,UAAa,KAAK,sBAClB,KAAQ,KAAK,kBACb,QAAW,KAAK,oBAIjB,IAAI,GAAU,EAAE,QAAQ,YAAc,KAAK,QAAQ,OACnD,GAAE,OAAO,KAAM,EAAU,KAAK,eAAiB,KAAK,cAEpD,KAAK,eAAiB,EAAU,EAAE,cAAgB,EAAE,0BAGrD,SAAU,SAAU,GAEnB,GAAI,YAAiB,GAAE,WACtB,MAAO,MAAK,WAAW,GAIxB,KAAK,EAAM,UAGV,MAFA,MAAK,eAAe,SAAS,GAC7B,KAAK,KAAK,YAAc,MAAO,IACxB,IAGR,KAAK,KAAK,KAGT,MAFA,MAAK,iBAAiB,KAAK,GAC3B,KAAK,KAAK,YAAc,MAAO,IACxB,IAGR,IAAI,KAAK,SAAS,GACjB,MAAO,KAMJ,MAAK,aACR,KAAK,cAGN,KAAK,UAAU,EAAO,KAAK,UAC3B,KAAK,KAAK,YAAc,MAAO,IAG/B,KAAK,iBAAiB,qBAEtB,KAAK,uBAGL,IAAI,GAAe,EACf,EAAc,KAAK,KACvB,IAAI,EAAM,SACT,KAAO,EAAa,SAAS,OAAS,GACrC,EAAe,EAAa,QAW9B,OAPI,MAAK,oBAAoB,SAAS,EAAa,eAC9C,KAAK,QAAQ,qBAChB,KAAK,mBAAmB,EAAO,GAE/B,KAAK,8BAA8B,EAAO,IAGrC,MAGR,YAAa,SAAU,GAEtB,MAAI,aAAiB,GAAE,WACf,KAAK,cAAc,IAItB,EAAM,UAMN,KAAK,KAQL,EAAM,UAIP,KAAK,cACR,KAAK,cACL,KAAK,iBAAiB,IAIvB,KAAK,aAAa,GAAO,GACzB,KAAK,KAAK,eAAiB,MAAO,IAGlC,KAAK,iBAAiB,qBAEtB,KAAK,wBAEL,EAAM,IAAI,KAAK,0BAA2B,MAEtC,KAAK,cAAc,SAAS,KAC/B,KAAK,cAAc,YAAY,GAC3B,EAAM,aACT,EAAM,eAID,MA1BC,OARF,KAAK,aAAa,KAAK,iBAAkB,IAAU,KAAK,SAAS,IACrE,KAAK,eAAe,MAAO,MAAO,EAAO,OAAQ,EAAM,UAExD,KAAK,KAAK,eAAiB,MAAO,IAC3B,OAVP,KAAK,eAAe,YAAY,GAChC,KAAK,KAAK,eAAiB,MAAO,IAC3B,OA0CT,UAAW,SAAU,EAAa,GACjC,IAAK,EAAE,KAAK,QAAQ,GACnB,MAAO,MAAK,SAAS,EAGtB,IAQI,GARA,EAAK,KAAK,cACV,EAAM,KAAK,eACX,EAAU,KAAK,QAAQ,eACvB,EAAgB,KAAK,QAAQ,cAC7B,EAAgB,KAAK,QAAQ,cAC7B,EAAI,EAAY,OAChB,EAAS,EACT,GAAgB,CAGpB,IAAI,KAAK,KAAM,CACd,GAAI,IAAU,GAAK,OAAQ,UACvB,EAAU,EAAE,KAAK,WAEpB,IADA,GAAI,IAAQ,GAAK,OAAQ,UACT,EAAT,EAAY,IAAU,CAC5B,GAAI,GAA4B,IAAjB,EAAS,IAAW,CAElC,GAAI,IAAU,GAAK,OAAQ,UAAY,CACvC,IAAI,EAAU,EACb,MAYF,GARA,EAAI,EAAY,GAQZ,YAAa,GAAE,WACd,IACH,EAAc,EAAY,QAC1B,GAAgB,GAEjB,KAAK,uBAAuB,EAAG,GAC/B,EAAI,EAAY,WAKjB,IAAK,EAAE,WAQP,IAAI,KAAK,SAAS,KAIlB,KAAK,UAAU,EAAG,KAAK,UAClB,GACJ,KAAK,KAAK,YAAc,MAAO,IAI5B,EAAE,UAC8B,IAA/B,EAAE,SAAS,iBAAuB,CACrC,GAAI,GAAU,EAAE,SAAS,qBACrB,EAAc,EAAQ,KAAO,EAAI,EAAQ,GAAK,EAAQ,EAC1D,GAAG,YAAY,QArBhB,GAAI,SAAS,GACR,GACJ,KAAK,KAAK,YAAc,MAAO,IAwB9B,GAEH,EAAc,EAAQ,GAAG,GAAK,OAAQ,UAAY,GAI/C,IAAW,GAGd,KAAK,iBAAiB,qBAEtB,KAAK,wBAEL,KAAK,iBAAiB,6BAA6B,KAAM,KAAK,MAAO,KAAK,sBAE1E,WAAW,EAAS,KAAK,QAAQ,aAEhC,KAEH,SAIA,KAFA,GAAI,GAAkB,KAAK,iBAEX,EAAT,EAAY,IAClB,EAAI,EAAY,GAGZ,YAAa,GAAE,YACd,IACH,EAAc,EAAY,QAC1B,GAAgB,GAEjB,KAAK,uBAAuB,EAAG,GAC/B,EAAI,EAAY,QAKZ,EAAE,UAKH,KAAK,SAAS,IAIlB,EAAgB,KAAK,GARpB,EAAI,SAAS,EAWhB,OAAO,OAIR,aAAc,SAAU,GACvB,GAAI,GAAG,EACH,EAAI,EAAY,OAChB,EAAK,KAAK,cACV,EAAM,KAAK,eACX,GAAgB,CAEpB,KAAK,KAAK,KAAM,CACf,IAAK,EAAI,EAAO,EAAJ,EAAO,IAClB,EAAI,EAAY,GAGZ,YAAa,GAAE,YACd,IACH,EAAc,EAAY,QAC1B,GAAgB,GAEjB,KAAK,uBAAuB,EAAG,GAC/B,EAAI,EAAY,SAIjB,KAAK,aAAa,KAAK,iBAAkB,GACzC,EAAI,YAAY,GACZ,KAAK,SAAS,IACjB,KAAK,eAAe,MAAO,MAAO,EAAG,OAAQ,EAAE,UAEhD,KAAK,KAAK,eAAiB,MAAO,IAEnC,OAAO,MAGR,GAAI,KAAK,YAAa,CACrB,KAAK,aAGL,IAAI,GAAe,EAAY,QAC3B,EAAK,CACT,KAAK,EAAI,EAAO,EAAJ,EAAQ,IACnB,EAAI,EAAa,GAGb,YAAa,GAAE,YAClB,KAAK,uBAAuB,EAAG,GAC/B,EAAK,EAAa,QAInB,KAAK,iBAAiB,GAIxB,IAAK,EAAI,EAAO,EAAJ,EAAO,IAClB,EAAI,EAAY,GAGZ,YAAa,GAAE,YACd,IACH,EAAc,EAAY,QAC1B,GAAgB,GAEjB,KAAK,uBAAuB,EAAG,GAC/B,EAAI,EAAY,QAIZ,EAAE,UAMP,KAAK,aAAa,GAAG,GAAM,GAC3B,KAAK,KAAK,eAAiB,MAAO,IAE9B,EAAG,SAAS,KACf,EAAG,YAAY,GACX,EAAE,aACL,EAAE,iBAXH,EAAI,YAAY,GAChB,KAAK,KAAK,eAAiB,MAAO,IAuBpC,OAPA,MAAK,iBAAiB,qBAEtB,KAAK,wBAGL,KAAK,iBAAiB,6BAA6B,KAAM,KAAK,MAAO,KAAK,qBAEnE,MAIR,YAAa,WA6BZ,MAzBK,MAAK,OACT,KAAK,oBACL,KAAK,wBACE,MAAK,oBACL,MAAK,kBAGT,KAAK,wBACR,KAAK,yBAIN,KAAK,cAAc,cACnB,KAAK,eAAe,cAEpB,KAAK,UAAU,SAAU,GACxB,EAAO,IAAI,KAAK,0BAA2B,YACpC,GAAO,UACZ,MAEC,KAAK,MAER,KAAK,2BAGC,MAIR,UAAW,WACV,GAAI,GAAS,GAAI,GAAE,YAEf,MAAK,kBACR,EAAO,OAAO,KAAK,iBAAiB,QAGrC,KAAK,GAAI,GAAI,KAAK,iBAAiB,OAAS,EAAG,GAAK,EAAG,IACtD,EAAO,OAAO,KAAK,iBAAiB,GAAG,YAKxC,OAFA,GAAO,OAAO,KAAK,eAAe,aAE3B,GAIR,UAAW,SAAU,EAAQ,GAC5B,GAEC,GAAmB,EAAG,EAFnB,EAAU,KAAK,iBAAiB,QACnC,EAAgB,KAAK,cAOtB,KAJI,KAAK,kBACR,KAAK,iBAAiB,mBAAmB,GAGrC,EAAI,EAAQ,OAAS,EAAG,GAAK,EAAG,IAAK,CAGzC,IAFA,GAAoB,EAEf,EAAI,EAAc,OAAS,EAAG,GAAK,EAAG,IAC1C,GAAI,EAAc,GAAG,QAAU,EAAQ,GAAI,CAC1C,GAAoB,CACpB,OAIE,GACH,EAAO,KAAK,EAAS,EAAQ,IAI/B,KAAK,eAAe,UAAU,EAAQ,IAIvC,UAAW,WACV,GAAI,KAIJ,OAHA,MAAK,UAAU,SAAU,GACxB,EAAO,KAAK,KAEN,GAIR,SAAU,SAAU,GACnB,GAAI,GAAS,IAUb,OARA,GAAK,SAAS,EAAI,IAElB,KAAK,UAAU,SAAU,GACpB,EAAE,MAAM,KAAO,IAClB,EAAS,KAIJ,GAIR,SAAU,SAAU,GACnB,IAAK,EACJ,OAAO,CAGR,IAAI,GAAG,EAAU,KAAK,gBAEtB,KAAK,EAAI,EAAQ,OAAS,EAAG,GAAK,EAAG,IACpC,GAAI,EAAQ,KAAO,EAClB,OAAO,CAKT,KADA,EAAU,KAAK,eACV,EAAI,EAAQ,OAAS,EAAG,GAAK,EAAG,IACpC,GAAI,EAAQ,GAAG,QAAU,EACxB,OAAO,CAIT,UAAU,EAAM,UAAY,EAAM,SAAS,SAAW,OAAS,KAAK,eAAe,SAAS,IAI7F,gBAAiB,SAAU,EAAO,GAET,kBAAb,KACV,EAAW,aAGZ,IAAI,GAAa,YACX,EAAM,QAAS,EAAM,SAAS,OAAW,KAAK,mBAClD,KAAK,KAAK,IAAI,UAAW,EAAY,MACrC,KAAK,IAAI,eAAgB,EAAY,MAEjC,EAAM,MACT,IACU,EAAM,SAAS,QACzB,KAAK,KAAK,aAAc,EAAU,MAClC,EAAM,SAAS,aAKd,GAAM,OAAS,KAAK,KAAK,YAAY,SAAS,EAAM,aAEvD,IACU,EAAM,SAAS,MAAQ,KAAK,MAAM,KAAK,KAAK,QAEtD,KAAK,KAAK,GAAG,UAAW,EAAY,MACpC,KAAK,KAAK,MAAM,EAAM,eAEtB,KAAK,KAAK,GAAG,UAAW,EAAY,MACpC,KAAK,GAAG,eAAgB,EAAY,MACpC,EAAM,SAAS,iBAKjB,MAAO,SAAU,GAChB,KAAK,KAAO,CACZ,IAAI,GAAG,EAAG,CAEV,KAAK,SAAS,KAAK,KAAK,cACvB,KAAM,8BAaP,KAVA,KAAK,cAAc,MAAM,GACzB,KAAK,eAAe,MAAM,GAErB,KAAK,eACT,KAAK,2BAGN,KAAK,QAAU,EAAI,QAAQ,IAAI,WAAW,aAGrC,EAAI,EAAG,EAAI,KAAK,eAAe,OAAY,EAAJ,EAAO,IAClD,EAAQ,KAAK,eAAe,GAC5B,EAAM,UAAY,EAAM,MAAM,QAC9B,EAAM,MAAM,QAAU,EAAM,MAG7B,KAAK,EAAI,EAAG,EAAI,KAAK,eAAe,OAAY,EAAJ,EAAO,IAClD,EAAQ,KAAK,eAAe,GAC5B,KAAK,aAAa,EAAM,OAAO,GAC/B,EAAM,MAAM,QAAU,EAAM,SAE7B,MAAK,kBAGL,KAAK,MAAQ,KAAK,MAAM,KAAK,KAAK,OAClC,KAAK,oBAAsB,KAAK,4BAEhC,KAAK,KAAK,GAAG,UAAW,KAAK,SAAU,MACvC,KAAK,KAAK,GAAG,UAAW,KAAK,SAAU,MAEnC,KAAK,kBACR,KAAK,mBAGN,KAAK,cAGL,EAAI,KAAK,iBACT,KAAK,oBACL,KAAK,UAAU,GAAG,IAInB,SAAU,SAAU,GACnB,EAAI,IAAI,UAAW,KAAK,SAAU,MAClC,EAAI,IAAI,UAAW,KAAK,SAAU,MAElC,KAAK,gBAGL,KAAK,KAAK,SAAS,UAAY,KAAK,KAAK,SAAS,UAAU,QAAQ,wBAAyB,IAEzF,KAAK,qBACR,KAAK,4BAGC,MAAK,QAGZ,KAAK,gBACL,KAAK,cAAc,SACnB,KAAK,eAAe,SAEpB,KAAK,cAAc,cAEnB,KAAK,KAAO,MAGb,iBAAkB,SAAU,GAE3B,IADA,GAAI,GAAU,EACP,IAAY,EAAQ,OAC1B,EAAU,EAAQ,QAEnB,OAAO,IAAW,MAInB,aAAc,SAAU,EAAS,GAChC,IAAK,GAAI,GAAI,EAAQ,OAAS,EAAG,GAAK,EAAG,IACxC,GAAI,EAAQ,KAAO,EAElB,MADA,GAAQ,OAAO,EAAG,IACX,GAWV,2BAA4B,SAAU,EAAQ,GAK7C,IAJA,GAAI,GAAM,KAAK,KACX,EAAkB,KAAK,iBAC1B,EAAU,KAAK,MAAM,KAAK,KAAK,cAEzB,GAAK,GACN,EAAgB,GAAG,aAAa,EAAQ,EAAI,QAAQ,EAAO,YAAa,IADzD,OAOtB,sBAAuB,SAAU,GAChC,EAAE,OAAO,YAAc,EAAE,OAAO,SAGjC,kBAAmB,SAAU,GAC5B,IAAK,KAAK,cAAgB,EAAE,OAAO,YAAa,CAC/C,GAAI,GAAc,EAAE,OAAO,QAAU,EAAE,OAAO,OAAO,QAErD,MAAK,WAAW,EAAE,OAAQ,EAAE,UAAW,EAAE,QAErC,GACH,EAAE,OAAO,cAKZ,WAAY,SAAU,EAAO,EAAM,GAClC,EAAM,QAAU,EAChB,KAAK,YAAY,GAEjB,EAAM,QAAU,EAChB,KAAK,SAAS,IAGf,oBAAqB,SAAU,GAC9B,GAAI,GAAY,EAAE,OAAO,kBAClB,GAAE,OAAO,YACZ,GACH,KAAK,WAAW,EAAE,OAAQ,EAAW,EAAE,OAAO,UAOhD,aAAc,SAAU,EAAQ,EAAwB,GACvD,GAAI,GAAe,KAAK,cACvB,EAAkB,KAAK,iBACvB,EAAK,KAAK,cACV,EAAM,KAAK,KACX,EAAU,KAAK,MAAM,KAAK,KAAK,aAG5B,IACH,KAAK,2BAA2B,EAAQ,KAAK,SAI9C,IAEC,GAFG,EAAU,EAAO,SACpB,EAAU,EAAQ,QAMnB,KAFA,KAAK,aAAa,EAAS,GAEpB,IACN,EAAQ,cACR,EAAQ,mBAAoB,IAExB,EAAQ,MAAQ,KAGT,GAA0B,EAAQ,aAAe,GAE3D,EAAc,EAAQ,SAAS,KAAO,EAAS,EAAQ,SAAS,GAAK,EAAQ,SAAS,GAGtF,EAAa,EAAQ,OAAO,aAAa,EAAS,EAAI,QAAQ,EAAQ,SAAU,EAAQ,QACxF,EAAgB,EAAQ,OAAO,UAAU,EAAa,EAAI,QAAQ,EAAY,YAAa,EAAQ,QAGnG,KAAK,aAAa,EAAQ,SAAS,eAAgB,GACnD,EAAQ,SAAS,SAAS,KAAK,GAC/B,EAAY,SAAW,EAAQ,SAE3B,EAAQ,QAEX,EAAG,YAAY,GACV,GACJ,EAAG,SAAS,KAId,EAAQ,kBAAmB,EAG5B,EAAU,EAAQ,eAGZ,GAAO,UAGf,cAAe,SAAU,EAAI,GAC5B,KAAO,GAAK,CACX,GAAI,IAAO,EACV,OAAO,CAER,GAAM,EAAI,WAEX,OAAO,GAIR,KAAM,SAAU,EAAM,EAAM,GAC3B,GAAI,GAAQ,EAAK,gBAAiB,GAAE,cAAe,CAElD,GAAI,EAAK,eAAiB,KAAK,cAAc,EAAK,MAAM,MAAO,EAAK,cAAc,eACjF,MAED,GAAO,UAAY,EAGpB,EAAE,aAAa,UAAU,KAAK,KAAK,KAAM,EAAM,EAAM,IAItD,QAAS,SAAU,EAAM,GACxB,MAAO,GAAE,aAAa,UAAU,QAAQ,KAAK,KAAM,EAAM,IAAc,EAAE,aAAa,UAAU,QAAQ,KAAK,KAAM,UAAY,EAAM,IAItI,2BAA4B,SAAU,GACrC,GAAI,GAAa,EAAQ,gBAErB,EAAI,kBASR,OAPC,IADgB,GAAb,EACE,QACkB,IAAb,EACL,SAEA,QAGC,GAAI,GAAE,SAAU,KAAM,cAAgB,EAAa,gBAAiB,UAAW,iBAAmB,EAAG,SAAU,GAAI,GAAE,MAAM,GAAI,OAGvI,YAAa,WACZ,GAAI,GAAM,KAAK,KACX,EAAoB,KAAK,QAAQ,kBACjC,EAAsB,KAAK,QAAQ,oBACnC,EAAsB,KAAK,QAAQ,qBAGnC,GAAqB,IACxB,KAAK,GAAG,eAAgB,KAAK,gBAAiB,MAI3C,IACH,KAAK,GAAG,mBAAoB,KAAK,cAAe,MAChD,KAAK,GAAG,kBAAmB,KAAK,cAAe,MAC/C,EAAI,GAAG,UAAW,KAAK,cAAe,QAIxC,gBAAiB,SAAU,GAI1B,IAHA,GAAI,GAAU,EAAE,MACZ,EAAgB,EAE2B,IAAxC,EAAc,eAAe,QACnC,EAAgB,EAAc,eAAe,EAG1C,GAAc,QAAU,KAAK,UAChC,EAAc,cAAgB,EAAQ,aACtC,KAAK,QAAQ,kBAGb,EAAQ,WACE,KAAK,QAAQ,qBACvB,EAAQ,eAIL,EAAE,eAA6C,KAA5B,EAAE,cAAc,SACtC,KAAK,KAAK,WAAW,SAIvB,cAAe,SAAU,GACxB,GAAI,GAAM,KAAK,IACX,MAAK,mBAGL,KAAK,eACR,EAAI,YAAY,KAAK,eAElB,EAAE,MAAM,gBAAkB,GAAK,EAAE,QAAU,KAAK,cACnD,KAAK,cAAgB,GAAI,GAAE,QAAQ,EAAE,MAAM,gBAAiB,KAAK,QAAQ,gBACzE,EAAI,SAAS,KAAK,kBAIpB,cAAe,WACV,KAAK,gBACR,KAAK,KAAK,YAAY,KAAK,eAC3B,KAAK,cAAgB,OAIvB,cAAe,WACd,GAAI,GAAoB,KAAK,QAAQ,kBACpC,EAAsB,KAAK,QAAQ,oBACnC,EAAsB,KAAK,QAAQ,oBACnC,EAAM,KAAK,MAER,GAAqB,IACxB,KAAK,IAAI,eAAgB,KAAK,gBAAiB,MAE5C,IACH,KAAK,IAAI,mBAAoB,KAAK,cAAe,MACjD,KAAK,IAAI,kBAAmB,KAAK,cAAe,MAChD,EAAI,IAAI,UAAW,KAAK,cAAe,QAIzC,SAAU,WACJ,KAAK,OAGV,KAAK,sBAEL,KAAK,MAAQ,KAAK,MAAM,KAAK,KAAK,OAClC,KAAK,oBAAsB,KAAK,8BAGjC,SAAU,WACT,IAAI,KAAK,iBAAT,CAIA,GAAI,GAAY,KAAK,2BAErB,MAAK,iBAAiB,kCAAkC,KAAK,oBAAqB,KAAK,MAAM,KAAK,KAAK,cAAe,KAAK,MAAO,GAClI,KAAK,iBAAiB,6BAA6B,KAAM,KAAK,MAAM,KAAK,KAAK,OAAQ,GAEtF,KAAK,oBAAsB,IAI5B,yBAA0B,WACzB,GAAI,GAAU,KAAK,KAAK,KAAK,KAAK,cACjC,EAAU,KAAK,MAAM,KAAK,KAAK,cAC/B,EAAS,KAAK,QAAQ,iBACtB,EAAW,CAKU,mBAAX,KACV,EAAW,WAAc,MAAO,KAGY,OAAzC,KAAK,QAAQ,0BAChB,EAAU,KAAK,QAAQ,wBAA0B,GAElD,KAAK,SAAW,EAChB,KAAK,iBACL,KAAK,mBAGL,KAAK,GAAI,GAAO,EAAS,GAAQ,EAAS,IACzC,KAAK,cAAc,GAAQ,GAAI,GAAE,aAAa,EAAS,IACvD,KAAK,iBAAiB,GAAQ,GAAI,GAAE,aAAa,EAAS,GAI3D,MAAK,iBAAmB,GAAI,MAAK,eAAe,KAAM,EAAU,IAIjE,UAAW,SAAU,EAAO,GAC3B,GAGI,GAAa,EAHb,EAAe,KAAK,cACpB,EAAkB,KAAK,iBAC1B,EAAU,KAAK,MAAM,KAAK,KAAK,aAUhC,KAPI,KAAK,QAAQ,kBAChB,KAAK,oBAAoB,GAG1B,EAAM,GAAG,KAAK,0BAA2B,MAGlC,GAAQ,EAAS,IAAQ,CAC/B,EAAc,KAAK,KAAK,QAAQ,EAAM,YAAa,EAGnD,IAAI,GAAU,EAAa,GAAM,cAAc,EAC/C,IAAI,EAGH,MAFA,GAAQ,UAAU,GAClB,EAAM,SAAW,EACjB,MAKD,IADA,EAAU,EAAgB,GAAM,cAAc,GACjC,CACZ,GAAI,GAAS,EAAQ,QACjB,IACH,KAAK,aAAa,GAAS,EAK5B,IAAI,GAAa,GAAI,MAAK,eAAe,KAAM,EAAM,EAAS,EAC9D,GAAa,GAAM,UAAU,EAAY,KAAK,KAAK,QAAQ,EAAW,SAAU,IAChF,EAAQ,SAAW,EACnB,EAAM,SAAW,CAGjB,IAAI,GAAa,CACjB,KAAK,EAAI,EAAO,EAAG,EAAI,EAAO,MAAO,IACpC,EAAa,GAAI,MAAK,eAAe,KAAM,EAAG,GAC9C,EAAa,GAAG,UAAU,EAAY,KAAK,KAAK,QAAQ,EAAQ,YAAa,GAO9E,OALA,GAAO,UAAU,GAGjB,KAAK,2BAA2B,EAAS,GAEzC,OAID,EAAgB,GAAM,UAAU,EAAO,GAIxC,KAAK,iBAAiB,UAAU,GAChC,EAAM,SAAW,KAAK,kBASvB,sBAAuB,WACtB,KAAK,cAAc,UAAU,SAAU,GAClC,YAAa,GAAE,eAAiB,EAAE,kBACrC,EAAE,iBAML,SAAU,SAAU,GACnB,KAAK,OAAO,KAAK,GACZ,KAAK,gBACT,KAAK,cAAgB,WAAW,EAAE,KAAK,KAAK,cAAe,MAAO,OAGpE,cAAe,WACd,IAAK,GAAI,GAAI,EAAG,EAAI,KAAK,OAAO,OAAQ,IACvC,KAAK,OAAO,GAAG,KAAK,KAErB,MAAK,OAAO,OAAS,EACrB,aAAa,KAAK,eAClB,KAAK,cAAgB,MAItB,oBAAqB,WACpB,GAAI,GAAU,KAAK,MAAM,KAAK,KAAK,MAGnC,MAAK,gBAED,KAAK,MAAQ,GAAW,KAAK,oBAAoB,WAAW,KAAK,8BACpE,KAAK,kBAEL,KAAK,iBAAiB,kCAAkC,KAAK,oBAAqB,KAAK,MAAM,KAAK,KAAK,cAAe,KAAK,MAAO,KAAK,6BAEvI,KAAK,iBAAiB,KAAK,MAAO,IAExB,KAAK,MAAQ,GACvB,KAAK,kBAEL,KAAK,kBAAkB,KAAK,MAAO,IAEnC,KAAK,YAKP,0BAA2B,WAC1B,MAAK,MAAK,QAAQ,2BAEP,EAAE,QAAQ,OACb,KAAK,mBAAmB,KAAK,KAAK,aAGnC,KAAK,mBAAmB,KAAK,KAAK,YAAY,IAAI,IALjD,KAAK,oBAkBd,mBAAoB,SAAU,GAC7B,GAAI,GAAS,KAAK,OAWlB,OATe,UAAX,IACC,EAAO,YAAc,IACxB,EAAO,WAAW,IAAM,KAErB,EAAO,aAAe,IACzB,EAAO,WAAW,KAAO,MAIpB,GAIR,8BAA+B,SAAU,EAAO,GAC/C,GAAI,IAAe,EAClB,KAAK,cAAc,SAAS,OACtB,IAA+B,IAA3B,EAAW,YAAmB,CACxC,EAAW,WAEX,IAAI,GAAU,EAAW,oBACzB,MAAK,cAAc,YAAY,EAAQ,IACvC,KAAK,cAAc,YAAY,EAAQ,QAEvC,GAAW,eAWb,uBAAwB,SAAU,EAAO,GACxC,GAEI,GAFA,EAAS,EAAM,YACf,EAAI,CAKR,KAFA,EAAS,MAEF,EAAI,EAAO,OAAQ,IACzB,EAAQ,EAAO,GAEX,YAAiB,GAAE,WACtB,KAAK,uBAAuB,EAAO,GAIpC,EAAO,KAAK,EAGb,OAAO,IASR,oBAAqB,SAAU,GAC9B,GAAI,GAAO,EAAM,QAAQ,KAAO,KAAK,QAAQ,oBAC5C,cAAe,WACd,MAAO,IAER,mBAAoB,WACnB,OAAQ,KAIV,OAAO,KAKT,GAAE,mBAAmB,SACpB,mBAAoB,GAAI,GAAE,aAAa,GAAI,GAAE,QAAQ,KAAW,KAAW,GAAI,GAAE,OAAO,IAAU,QAGnG,EAAE,mBAAmB,SACpB,cAEC,gBAAiB,aAGjB,iBAAkB,SAAU,EAAmB,GAC9C,KAAK,iBAAiB,kCAAkC,KAAK,oBAAqB,KAAK,MAAM,KAAK,KAAK,cAAe,GACtH,KAAK,iBAAiB,6BAA6B,KAAM,EAAc,KAAK,6BAG5E,KAAK,KAAK,iBAEX,kBAAmB,SAAU,EAAmB,GAC/C,KAAK,iBAAiB,kCAAkC,KAAK,oBAAqB,KAAK,MAAM,KAAK,KAAK,cAAe,GACtH,KAAK,iBAAiB,6BAA6B,KAAM,EAAc,KAAK,6BAG5E,KAAK,KAAK,iBAEX,mBAAoB,SAAU,EAAO,GACpC,KAAK,8BAA8B,EAAO,KAI5C,gBAEC,gBAAiB,WAChB,KAAK,KAAK,SAAS,WAAa,wBAChC,KAAK,oBAGN,iBAAkB,SAAU,EAAmB,GAC9C,GAGI,GAHA,EAAS,KAAK,4BACd,EAAK,KAAK,cACb,EAAU,KAAK,MAAM,KAAK,KAAK,aAGhC,MAAK,aAAc,EAGnB,KAAK,iBAAiB,aAAa,EAAQ,EAAmB,EAAS,SAAU,GAChF,GAEI,GAFA,EAAW,EAAE,QACb,EAAW,EAAE,QAkBjB,KAfK,EAAO,SAAS,KACpB,EAAW,MAGR,EAAE,mBAAqB,EAAoB,IAAM,GACpD,EAAG,YAAY,GACf,EAAE,6BAA6B,KAAM,EAAc,KAGnD,EAAE,cACF,EAAE,6BAA6B,EAAU,EAAc,IAKnD,EAAI,EAAQ,OAAS,EAAG,GAAK,EAAG,IACpC,EAAI,EAAQ,GACP,EAAO,SAAS,EAAE,UACtB,EAAG,YAAY,KAMlB,KAAK,eAGL,KAAK,iBAAiB,0BAA0B,EAAQ,GAExD,EAAG,UAAU,SAAU,GAChB,YAAa,GAAE,gBAAkB,EAAE,OACxC,EAAE,gBAKJ,KAAK,iBAAiB,aAAa,EAAQ,EAAmB,EAAc,SAAU,GACrF,EAAE,kCAAkC,KAGrC,KAAK,aAAc,EAGnB,KAAK,SAAS,WAEb,KAAK,iBAAiB,aAAa,EAAQ,EAAmB,EAAS,SAAU,GAChF,EAAG,YAAY,GACf,EAAE,gBAGH,KAAK,mBAIP,kBAAmB,SAAU,EAAmB,GAC/C,KAAK,wBAAwB,KAAK,iBAAkB,EAAoB,EAAG,GAG3E,KAAK,iBAAiB,6BAA6B,KAAM,EAAc,KAAK,6BAE5E,KAAK,iBAAiB,kCAAkC,KAAK,oBAAqB,KAAK,MAAM,KAAK,KAAK,cAAe,EAAmB,KAAK,8BAG/I,mBAAoB,SAAU,EAAO,GACpC,GAAI,GAAK,KACL,EAAK,KAAK,aAEd,GAAG,SAAS,GACR,IAAe,IACd,EAAW,YAAc,GAE5B,EAAW,cACX,KAAK,eACL,KAAK,kBAEL,EAAM,QAAQ,KAAK,KAAK,mBAAmB,EAAW,cACtD,EAAM,cAEN,KAAK,SAAS,WACb,EAAG,YAAY,GACf,EAAM,cAEN,EAAG,oBAIJ,KAAK,eAEL,EAAG,kBACH,EAAG,wBAAwB,EAAY,KAAK,KAAK,aAAc,KAAK,WAOxE,wBAAyB,SAAU,EAAS,EAAmB,GAC9D,GAAI,GAAS,KAAK,4BACjB,EAAU,KAAK,MAAM,KAAK,KAAK,aAGhC,GAAQ,6CAA6C,EAAQ,EAAS,EAAoB,EAAG,EAE7F,IAAI,GAAK,IAGT,MAAK,eACL,EAAQ,0BAA0B,EAAQ,GAI1C,KAAK,SAAS,WAGb,GAA4B,IAAxB,EAAQ,YAAmB,CAC9B,GAAI,GAAI,EAAQ,SAAS,EAEzB,MAAK,aAAc,EACnB,EAAE,UAAU,EAAE,aACd,KAAK,aAAc,EACf,EAAE,aACL,EAAE,kBAGH,GAAQ,aAAa,EAAQ,EAAc,EAAS,SAAU,GAC7D,EAAE,kCAAkC,EAAQ,EAAS,EAAoB,IAG3E,GAAG,mBAIL,cAAe,WACV,KAAK,OACR,KAAK,KAAK,SAAS,UAAY,KAAK,KAAK,SAAS,UAAU,QAAQ,wBAAyB,KAE9F,KAAK,mBACL,KAAK,KAAK,iBAKX,aAAc,WAIb,EAAE,KAAK,QAAQ,SAAS,KAAK,gBAI/B,EAAE,mBAAqB,SAAU,GAChC,MAAO,IAAI,GAAE,mBAAmB,GC51C1B,IAAI,GAAgB,EAAE,cAAgB,EAAE,OAAO,QACrD,QAAS,EAAE,KAAK,UAAU,QAE1B,WAAY,SAAU,EAAO,EAAM,EAAG,GAErC,EAAE,OAAO,UAAU,WAAW,KAAK,KAAM,EAAK,EAAE,UAAY,EAAE,YAAe,GAAI,GAAE,OAAO,EAAG,IACjF,KAAM,KAAM,KAAM,EAAM,QAAQ,cAE5C,KAAK,OAAS,EACd,KAAK,MAAQ,EAEb,KAAK,YACL,KAAK,kBACL,KAAK,YAAc,EACnB,KAAK,kBAAmB,EACxB,KAAK,mBAAoB,EAEzB,KAAK,QAAU,GAAI,GAAE,aAEjB,GACH,KAAK,UAAU,GAEZ,GACH,KAAK,UAAU,IAKjB,mBAAoB,SAAU,EAAc,GAC3C,EAAe,KAEf,KAAK,GAAI,GAAI,KAAK,eAAe,OAAS,EAAG,GAAK,EAAG,IACpD,KAAK,eAAe,GAAG,mBAAmB,EAG3C,KAAK,GAAI,GAAI,KAAK,SAAS,OAAS,EAAG,GAAK,EAAG,IAC1C,GAAuB,KAAK,SAAS,GAAG,aAG5C,EAAa,KAAK,KAAK,SAAS,GAGjC,OAAO,IAIR,cAAe,WACd,MAAO,MAAK,aAIb,aAAc,SAAU,GASvB,IARA,GAKC,GALG,EAAgB,KAAK,eAAe,QACvC,EAAM,KAAK,OAAO,KAClB,EAAa,EAAI,cAAc,KAAK,SACpC,EAAO,KAAK,MAAQ,EACpB,EAAU,EAAI,UAIR,EAAc,OAAS,GAAK,EAAa,GAAM,CACrD,GACA,IAAI,KACJ,KAAK,EAAI,EAAG,EAAI,EAAc,OAAQ,IACrC,EAAc,EAAY,OAAO,EAAc,GAAG,eAEnD,GAAgB,EAGb,EAAa,EAChB,KAAK,OAAO,KAAK,QAAQ,KAAK,QAAS,GACf,GAAd,EACV,KAAK,OAAO,KAAK,QAAQ,KAAK,QAAS,EAAU,GAEjD,KAAK,OAAO,KAAK,UAAU,KAAK,QAAS,IAI3C,UAAW,WACV,GAAI,GAAS,GAAI,GAAE,YAEnB,OADA,GAAO,OAAO,KAAK,SACZ,GAGR,YAAa,WACZ,KAAK,kBAAmB,EACpB,KAAK,OACR,KAAK,QAAQ,OAKf,WAAY,WAKX,MAJI,MAAK,mBACR,KAAK,SAAW,KAAK,OAAO,QAAQ,mBAAmB,MACvD,KAAK,kBAAmB,GAElB,KAAK,SAAS,cAEtB,aAAc,WACb,MAAO,MAAK,SAAS,gBAItB,UAAW,SAAU,EAAM,GAE1B,KAAK,kBAAmB,EAExB,KAAK,mBAAoB,EACzB,KAAK,kBAAkB,GAEnB,YAAgB,GAAE,eAChB,IACJ,KAAK,eAAe,KAAK,GACzB,EAAK,SAAW,MAEjB,KAAK,aAAe,EAAK,cAEpB,GACJ,KAAK,SAAS,KAAK,GAEpB,KAAK,eAGF,KAAK,UACR,KAAK,SAAS,UAAU,GAAM,IAShC,kBAAmB,SAAU,GACvB,KAAK,WAET,KAAK,SAAW,EAAM,UAAY,EAAM,UAU1C,aAAc,WACb,GAAI,GAAS,KAAK,OAEd,GAAO,aACV,EAAO,WAAW,IAAM,IACxB,EAAO,WAAW,IAAM,KAErB,EAAO,aACV,EAAO,WAAW,KAAO,IACzB,EAAO,WAAW,KAAO,MAI3B,mBAAoB,WACnB,GAKI,GAAG,EAAO,EAAa,EALvB,EAAU,KAAK,SACf,EAAgB,KAAK,eACrB,EAAS,EACT,EAAS,EACT,EAAa,KAAK,WAItB,IAAmB,IAAf,EAAJ,CAQA,IAHA,KAAK,eAGA,EAAI,EAAG,EAAI,EAAQ,OAAQ,IAC/B,EAAc,EAAQ,GAAG,QAEzB,KAAK,QAAQ,OAAO,GAEpB,GAAU,EAAY,IACtB,GAAU,EAAY,GAIvB,KAAK,EAAI,EAAG,EAAI,EAAc,OAAQ,IACrC,EAAQ,EAAc,GAGlB,EAAM,mBACT,EAAM,qBAGP,KAAK,QAAQ,OAAO,EAAM,SAE1B,EAAc,EAAM,SACpB,EAAa,EAAM,YAEnB,GAAU,EAAY,IAAM,EAC5B,GAAU,EAAY,IAAM,CAG7B,MAAK,QAAU,KAAK,SAAW,GAAI,GAAE,OAAO,EAAS,EAAY,EAAS,GAG1E,KAAK,mBAAoB,IAI1B,UAAW,SAAU,GAChB,IACH,KAAK,cAAgB,KAAK,QAC1B,KAAK,UAAU,IAEhB,KAAK,OAAO,cAAc,SAAS,OAGpC,8BAA+B,SAAU,EAAQ,EAAQ,GACxD,KAAK,aAAa,EAAQ,KAAK,OAAO,KAAK,aAAc,EAAU,EAClE,SAAU,GACT,GACC,GAAG,EADA,EAAU,EAAE,QAEhB,KAAK,EAAI,EAAQ,OAAS,EAAG,GAAK,EAAG,IACpC,EAAI,EAAQ,GAGR,EAAE,QACL,EAAE,QAAQ,GACV,EAAE,gBAIL,SAAU,GACT,GACC,GAAG,EADA,EAAgB,EAAE,cAEtB,KAAK,EAAI,EAAc,OAAS,EAAG,GAAK,EAAG,IAC1C,EAAK,EAAc,GACf,EAAG,QACN,EAAG,QAAQ,GACX,EAAG,kBAOR,6CAA8C,SAAU,EAAQ,EAAY,EAAmB,GAC9F,KAAK,aAAa,EAAQ,EAAc,EACvC,SAAU,GACT,EAAE,8BAA8B,EAAQ,EAAE,OAAO,KAAK,mBAAmB,EAAE,aAAa,QAAS,GAI7F,EAAE,mBAAqB,EAAoB,IAAM,GACpD,EAAE,cACF,EAAE,kCAAkC,EAAQ,EAAY,IAExD,EAAE,cAGH,EAAE,eAKL,0BAA2B,SAAU,EAAQ,GAC5C,KAAK,aAAa,EAAQ,KAAK,OAAO,KAAK,aAAc,EAAW,KAAM,SAAU,GACnF,EAAE,iBAIJ,6BAA8B,SAAU,EAAU,EAAW,GAC5D,KAAK,aAAa,EAAQ,KAAK,OAAO,KAAK,aAAe,EAAG,EAC5D,SAAU,GACT,GAAI,IAAc,EAAE,MAKpB,IAAK,GAAI,GAAI,EAAE,SAAS,OAAS,EAAG,GAAK,EAAG,IAAK,CAChD,GAAI,GAAK,EAAE,SAAS,EAEf,GAAO,SAAS,EAAG,WAIpB,IACH,EAAG,cAAgB,EAAG,YAEtB,EAAG,UAAU,GACT,EAAG,aACN,EAAG,eAIL,EAAE,OAAO,cAAc,SAAS,MAGlC,SAAU,GACT,EAAE,UAAU,MAKf,kCAAmC,SAAU,GAE5C,IAAK,GAAI,GAAI,KAAK,SAAS,OAAS,EAAG,GAAK,EAAG,IAAK,CACnD,GAAI,GAAK,KAAK,SAAS,EACnB,GAAG,gBACN,EAAG,UAAU,EAAG,qBACT,GAAG,eAIZ,GAAI,EAAY,IAAM,KAAK,MAE1B,IAAK,GAAI,GAAI,KAAK,eAAe,OAAS,EAAG,GAAK,EAAG,IACpD,KAAK,eAAe,GAAG,uBAGxB,KAAK,GAAI,GAAI,KAAK,eAAe,OAAS,EAAG,GAAK,EAAG,IACpD,KAAK,eAAe,GAAG,kCAAkC,IAK5D,iBAAkB,WACb,KAAK,gBACR,KAAK,UAAU,KAAK,qBACb,MAAK,gBAKd,kCAAmC,SAAU,EAAgB,EAAY,EAAW,GACnF,GAAI,GAAG,CACP,MAAK,aAAa,EAAgB,EAAa,EAAG,EAAY,EAC7D,SAAU,GAET,IAAK,EAAI,EAAE,SAAS,OAAS,EAAG,GAAK,EAAG,IACvC,EAAI,EAAE,SAAS,GACV,GAAiB,EAAa,SAAS,EAAE,WAC7C,EAAE,OAAO,cAAc,YAAY,GAC/B,EAAE,aACL,EAAE,gBAKN,SAAU,GAET,IAAK,EAAI,EAAE,eAAe,OAAS,EAAG,GAAK,EAAG,IAC7C,EAAI,EAAE,eAAe,GAChB,GAAiB,EAAa,SAAS,EAAE,WAC7C,EAAE,OAAO,cAAc,YAAY,GAC/B,EAAE,aACL,EAAE,kBAcR,aAAc,SAAU,EAAiB,EAAkB,EAAiB,EAAiB,GAC5F,GAEI,GAAG,EAFH,EAAgB,KAAK,eACrB,EAAO,KAAK,KAYhB,IATwB,GAApB,IACC,GACH,EAAgB,MAEb,GAAoB,IAAS,GAChC,EAAiB,OAIR,EAAP,GAAkC,EAAP,EAC9B,IAAK,EAAI,EAAc,OAAS,EAAG,GAAK,EAAG,IAC1C,EAAI,EAAc,GACd,EAAE,mBACL,EAAE,qBAEC,EAAgB,WAAW,EAAE,UAChC,EAAE,aAAa,EAAiB,EAAkB,EAAiB,EAAiB,IAOxF,gBAAiB,WAEhB,MAAO,MAAK,eAAe,OAAS,GAAK,KAAK,eAAe,GAAG,cAAgB,KAAK,cC1YvF,GAAE,OAAO,SACR,YAAa,WACZ,GAAI,GAAS,KAAK,QAAQ,OAG1B,OAFA,MAAK,WAAW,GAChB,KAAK,QAAQ,QAAU,EAChB,MAGR,YAAa,WACZ,MAAO,MAAK,WAAW,KAAK,QAAQ,YChBtC,EAAE,aAAe,SAAU,GAC1B,KAAK,UAAY,EACjB,KAAK,YAAc,EAAW,EAC9B,KAAK,SACL,KAAK,iBAGN,EAAE,aAAa,WAEd,UAAW,SAAU,EAAK,GACzB,GAAI,GAAI,KAAK,UAAU,EAAM,GACzB,EAAI,KAAK,UAAU,EAAM,GACzB,EAAO,KAAK,MACZ,EAAM,EAAK,GAAK,EAAK,OACrB,EAAO,EAAI,GAAK,EAAI,OACpB,EAAQ,EAAE,KAAK,MAAM,EAEzB,MAAK,aAAa,GAAS,EAE3B,EAAK,KAAK,IAGX,aAAc,SAAU,EAAK,GAC5B,KAAK,aAAa,GAClB,KAAK,UAAU,EAAK,IAIrB,aAAc,SAAU,EAAK,GAC5B,GAKI,GAAG,EALH,EAAI,KAAK,UAAU,EAAM,GACzB,EAAI,KAAK,UAAU,EAAM,GACzB,EAAO,KAAK,MACZ,EAAM,EAAK,GAAK,EAAK,OACrB,EAAO,EAAI,GAAK,EAAI,MAKxB,WAFO,MAAK,aAAa,EAAE,KAAK,MAAM,IAEjC,EAAI,EAAG,EAAM,EAAK,OAAY,EAAJ,EAAS,IACvC,GAAI,EAAK,KAAO,EAQf,MANA,GAAK,OAAO,EAAG,GAEH,IAAR,SACI,GAAI,IAGL,GAMV,WAAY,SAAU,EAAI,GACzB,GAAI,GAAG,EAAG,EAAG,EAAK,EAAK,EAAM,EACzB,EAAO,KAAK,KAEhB,KAAK,IAAK,GAAM,CACf,EAAM,EAAK,EAEX,KAAK,IAAK,GAGT,IAFA,EAAO,EAAI,GAEN,EAAI,EAAG,EAAM,EAAK,OAAY,EAAJ,EAAS,IACvC,EAAU,EAAG,KAAK,EAAS,EAAK,IAC5B,IACH,IACA,OAOL,cAAe,SAAU,GACxB,GAEI,GAAG,EAAG,EAAG,EAAK,EAAM,EAAK,EAAK,EAF9B,EAAI,KAAK,UAAU,EAAM,GACzB,EAAI,KAAK,UAAU,EAAM,GAEzB,EAAc,KAAK,aACnB,EAAgB,KAAK,YACrB,EAAU,IAEd,KAAK,EAAI,EAAI,EAAQ,EAAI,GAAT,EAAY,IAE3B,GADA,EAAM,KAAK,MAAM,GAGhB,IAAK,EAAI,EAAI,EAAQ,EAAI,GAAT,EAAY,IAE3B,GADA,EAAO,EAAI,GAGV,IAAK,EAAI,EAAG,EAAM,EAAK,OAAY,EAAJ,EAAS,IACvC,EAAM,EAAK,GACX,EAAO,KAAK,QAAQ,EAAY,EAAE,KAAK,MAAM,IAAO,IACzC,EAAP,GACK,GAAR,GAAqC,OAAZ,KACzB,EAAgB,EAChB,EAAU,EAOhB,OAAO,IAGR,UAAW,SAAU,GACpB,GAAI,GAAQ,KAAK,MAAM,EAAI,KAAK,UAChC,OAAO,UAAS,GAAS,EAAQ,GAGlC,QAAS,SAAU,EAAG,GACrB,GAAI,GAAK,EAAG,EAAI,EAAE,EACd,EAAK,EAAG,EAAI,EAAE,CAClB,OAAO,GAAK,EAAK,EAAK,ICzFvB,WACA,EAAE,WAQD,WAAY,SAAU,EAAK,GAC1B,GAAI,GAAK,EAAG,GAAG,IAAM,EAAG,GAAG,IAC1B,EAAK,EAAG,GAAG,IAAM,EAAG,GAAG,GACxB,OAAQ,IAAM,EAAI,IAAM,EAAG,GAAG,KAAO,GAAM,EAAI,IAAM,EAAG,GAAG,MAU5D,iCAAkC,SAAU,EAAU,GACrD,GAGC,GAAG,EAAI,EAHJ,EAAO,EACV,EAAQ,KACR,IAGD,KAAK,EAAI,EAAQ,OAAS,EAAG,GAAK,EAAG,IACpC,EAAK,EAAQ,GACb,EAAI,KAAK,WAAW,EAAI,GAEpB,EAAI,IACP,EAAU,KAAK,GAKZ,EAAI,IACP,EAAO,EACP,EAAQ,GAIV,QAAS,SAAU,EAAO,UAAW,IAWtC,gBAAiB,SAAU,EAAU,GACpC,GAAI,MACH,EAAI,KAAK,iCAAiC,EAAU,EAErD,OAAI,GAAE,UACL,EACC,EAAoB,OACnB,KAAK,iBAAiB,EAAS,GAAI,EAAE,UAAW,EAAE,YAEpD,EACC,EAAoB,OACnB,KAAK,iBAAiB,EAAE,SAAU,EAAS,IAAK,EAAE,cAI5C,EAAS,KAWnB,cAAe,SAAU,GAExB,GAKC,GALG,GAAS,EAAO,GAAS,EAC5B,GAAS,EAAO,GAAS,EACzB,EAAW,KAAM,EAAW,KAC5B,EAAW,KAAM,EAAW,KAC5B,EAAQ,KAAM,EAAQ,IAGvB,KAAK,EAAI,EAAQ,OAAS,EAAG,GAAK,EAAG,IAAK,CACzC,GAAI,GAAK,EAAQ,IACb,KAAW,GAAS,EAAG,IAAM,KAChC,EAAW,EACX,EAAS,EAAG,MAET,KAAW,GAAS,EAAG,IAAM,KAChC,EAAW,EACX,EAAS,EAAG,MAET,KAAW,GAAS,EAAG,IAAM,KAChC,EAAW,EACX,EAAS,EAAG,MAET,KAAW,GAAS,EAAG,IAAM,KAChC,EAAW,EACX,EAAS,EAAG,KAIV,IAAW,GACd,EAAQ,EACR,EAAQ,IAER,EAAQ,EACR,EAAQ,EAGT,IAAI,MAAQ,OAAO,KAAK,iBAAiB,EAAO,GAAQ,GACnD,KAAK,iBAAiB,EAAO,GAAQ,GAC1C,OAAO,QAKV,EAAE,cAAc,SACf,cAAe,WACd,GAEC,GAAG,EAFA,EAAe,KAAK,qBACvB,IAGD,KAAK,EAAI,EAAa,OAAS,EAAG,GAAK,EAAG,IACzC,EAAI,EAAa,GAAG,YACpB,EAAO,KAAK,EAGb,OAAO,GAAE,UAAU,cAAc,MC/JnC,EAAE,cAAc,SAEf,KAAgB,EAAV,KAAK,GACX,sBAAuB,GACvB,kBAAmB,EAEnB,sBAAwB,GACxB,mBAAoB,GACpB,oBAAqB,EAErB,wBAAyB,EAGzB,SAAU,WACT,GAAI,KAAK,OAAO,cAAgB,OAAQ,KAAK,OAAO,iBAApD,CAIA,GAIC,GAJG,EAAe,KAAK,mBAAmB,MAAM,GAChD,EAAQ,KAAK,OACb,EAAM,EAAM,KACZ,EAAS,EAAI,mBAAmB,KAAK,QAGtC,MAAK,OAAO,cACZ,KAAK,OAAO,YAAc,KAItB,EAAa,QAAU,KAAK,wBAC/B,EAAY,KAAK,sBAAsB,EAAa,OAAQ,IAE5D,EAAO,GAAK,GACZ,EAAY,KAAK,sBAAsB,EAAa,OAAQ,IAG7D,KAAK,mBAAmB,EAAc,KAGvC,WAAY,SAAU,GAEjB,KAAK,OAAO,mBAGhB,KAAK,qBAAqB,GAE1B,KAAK,OAAO,YAAc,OAG3B,sBAAuB,SAAU,EAAO,GACvC,GAIC,GAAG,EAJA,EAAgB,KAAK,OAAO,QAAQ,2BAA6B,KAAK,uBAAyB,EAAI,GACtG,EAAY,EAAgB,KAAK,KACjC,EAAY,KAAK,KAAO,EACxB,IAOD,KAJA,EAAY,KAAK,IAAI,EAAW,IAEhC,EAAI,OAAS,EAER,EAAI,EAAO,EAAJ,EAAW,IACtB,EAAQ,KAAK,kBAAoB,EAAI,EACrC,EAAI,GAAK,GAAI,GAAE,MAAM,EAAS,EAAI,EAAY,KAAK,IAAI,GAAQ,EAAS,EAAI,EAAY,KAAK,IAAI,IAAQ,QAG1G,OAAO,IAGR,sBAAuB,SAAU,EAAO,GACvC,GAMC,GANG,EAA6B,KAAK,OAAO,QAAQ,2BACpD,EAAY,EAA6B,KAAK,mBAC9C,EAAa,EAA6B,KAAK,sBAC/C,EAAe,EAA6B,KAAK,oBAAsB,KAAK,KAC5E,EAAQ,EACR,IAMD,KAHA,EAAI,OAAS,EAGR,EAAI,EAAO,GAAK,EAAG,IAGf,EAAJ,IACH,EAAI,GAAK,GAAI,GAAE,MAAM,EAAS,EAAI,EAAY,KAAK,IAAI,GAAQ,EAAS,EAAI,EAAY,KAAK,IAAI,IAAQ,UAE1G,GAAS,EAAa,EAAgB,KAAJ,EAClC,GAAa,EAAe,CAE7B,OAAO,IAGR,uBAAwB,WACvB,GAIC,GAAG,EAJA,EAAQ,KAAK,OAChB,EAAM,EAAM,KACZ,EAAK,EAAM,cACX,EAAe,KAAK,mBAAmB,MAAM,EAM9C,KAHA,EAAM,aAAc,EAEpB,KAAK,WAAW,GACX,EAAI,EAAa,OAAS,EAAG,GAAK,EAAG,IACzC,EAAI,EAAa,GAEjB,EAAG,YAAY,GAEX,EAAE,qBACL,EAAE,UAAU,EAAE,0BACP,GAAE,oBAEN,EAAE,iBACL,EAAE,gBAAgB,GAGf,EAAE,aACL,EAAI,YAAY,EAAE,kBACX,GAAE,WAIX,GAAM,KAAK,gBACV,QAAS,KACT,QAAS,IAEV,EAAM,aAAc,EACpB,EAAM,YAAc,QAKtB,EAAE,yBAA2B,EAAE,cAAc,QAC5C,mBAAoB,SAAU,EAAc,GAC3C,GAIC,GAAG,EAAG,EAAK,EAJR,EAAQ,KAAK,OAChB,EAAM,EAAM,KACZ,EAAK,EAAM,cACX,EAAa,KAAK,OAAO,QAAQ,wBAOlC,KAJA,EAAM,aAAc,EAIf,EAAI,EAAG,EAAI,EAAa,OAAQ,IACpC,EAAS,EAAI,mBAAmB,EAAU,IAC1C,EAAI,EAAa,GAGjB,EAAM,GAAI,GAAE,UAAU,KAAK,QAAS,GAAS,GAC7C,EAAI,SAAS,GACb,EAAE,WAAa,EAGf,EAAE,mBAAqB,EAAE,QACzB,EAAE,UAAU,GACR,EAAE,iBACL,EAAE,gBAAgB,KAGnB,EAAG,SAAS,EAEb,MAAK,WAAW,IAEhB,EAAM,aAAc,EACpB,EAAM,KAAK,cACV,QAAS,KACT,QAAS,KAIX,qBAAsB,WACrB,KAAK,4BAKP,EAAE,cAAc,SAEf,mBAAoB,SAAU,EAAc,GAC3C,GASC,GAAG,EAAG,EAAK,EAAS,EAAW,EAT5B,EAAK,KACR,EAAQ,KAAK,OACb,EAAM,EAAM,KACZ,EAAK,EAAM,cACX,EAAkB,KAAK,QACvB,EAAe,EAAI,mBAAmB,GACtC,EAAM,EAAE,KAAK,IACb,EAAa,EAAE,UAAW,KAAK,OAAO,QAAQ,0BAC9C,EAAkB,EAAW,OAuB9B,KApBwB,SAApB,IACH,EAAkB,EAAE,mBAAmB,UAAU,QAAQ,yBAAyB,SAG/E,GAEH,EAAW,QAAU,EAGrB,EAAW,WAAa,EAAW,WAAa,IAAM,+BAGtD,EAAW,QAAU,EAGtB,EAAM,aAAc,EAKf,EAAI,EAAG,EAAI,EAAa,OAAQ,IACpC,EAAI,EAAa,GAEjB,EAAS,EAAI,mBAAmB,EAAU,IAG1C,EAAM,GAAI,GAAE,UAAU,EAAiB,GAAS,GAChD,EAAI,SAAS,GACb,EAAE,WAAa,EAIX,IACH,EAAU,EAAI,MACd,EAAY,EAAQ,iBAAmB,GACvC,EAAQ,MAAM,gBAAkB,EAChC,EAAQ,MAAM,iBAAmB,GAI9B,EAAE,iBACL,EAAE,gBAAgB,KAEf,EAAE,aACL,EAAE,cAIH,EAAG,SAAS,GAER,EAAE,SACL,EAAE,QAAQ,EAQZ,KAJA,EAAM,eACN,EAAM,kBAGD,EAAI,EAAa,OAAS,EAAG,GAAK,EAAG,IACzC,EAAS,EAAI,mBAAmB,EAAU,IAC1C,EAAI,EAAa,GAGjB,EAAE,mBAAqB,EAAE,QACzB,EAAE,UAAU,GAER,EAAE,aACL,EAAE,cAIC,IACH,EAAM,EAAE,WACR,EAAU,EAAI,MACd,EAAQ,MAAM,iBAAmB,EAEjC,EAAI,UAAU,QAAS,IAGzB,MAAK,WAAW,IAEhB,EAAM,aAAc,EAEpB,WAAW,WACV,EAAM,gBACN,EAAM,KAAK,cACV,QAAS,EACT,QAAS,KAER,MAGJ,qBAAsB,SAAU,GAC/B,GAOC,GAAG,EAAG,EAAK,EAAS,EAAW,EAP5B,EAAK,KACR,EAAQ,KAAK,OACb,EAAM,EAAM,KACZ,EAAK,EAAM,cACX,EAAe,EAAc,EAAI,uBAAuB,KAAK,QAAS,EAAY,KAAM,EAAY,QAAU,EAAI,mBAAmB,KAAK,SAC1I,EAAe,KAAK,mBAAmB,MAAM,GAC7C,EAAM,EAAE,KAAK,GAQd,KALA,EAAM,aAAc,EACpB,EAAM,kBAGN,KAAK,WAAW,GACX,EAAI,EAAa,OAAS,EAAG,GAAK,EAAG,IACzC,EAAI,EAAa,GAGZ,EAAE,qBAKP,EAAE,aAGF,EAAE,UAAU,EAAE,0BACP,GAAE,mBAGT,GAAgB,EACZ,EAAE,UACL,EAAE,QAAQ,GACV,GAAgB,GAEb,EAAE,cACL,EAAE,cACF,GAAgB,GAEb,GACH,EAAG,YAAY,GAIZ,IACH,EAAM,EAAE,WACR,EAAU,EAAI,MACd,EAAY,EAAQ,iBAAmB,GACvC,EAAQ,MAAM,iBAAmB,EACjC,EAAI,UAAU,QAAS,KAIzB,GAAM,aAAc,EAEpB,WAAW,WAEV,GAAI,GAAuB,CAC3B,KAAK,EAAI,EAAa,OAAS,EAAG,GAAK,EAAG,IACzC,EAAI,EAAa,GACb,EAAE,YACL,GAKF,KAAK,EAAI,EAAa,OAAS,EAAG,GAAK,EAAG,IACzC,EAAI,EAAa,GAEZ,EAAE,aAIH,EAAE,aACL,EAAE,cAEC,EAAE,iBACL,EAAE,gBAAgB,GAGf,EAAuB,GAC1B,EAAG,YAAY,GAGhB,EAAI,YAAY,EAAE,kBACX,GAAE,WAEV,GAAM,gBACN,EAAM,KAAK,gBACV,QAAS,EACT,QAAS,KAER,QAKL,EAAE,mBAAmB,SAEpB,YAAa,KAEb,WAAY,WACX,KAAK,YAAY,MAAM,KAAM,YAG9B,iBAAkB,WACjB,KAAK,KAAK,GAAG,QAAS,KAAK,mBAAoB,MAE3C,KAAK,KAAK,QAAQ,eACrB,KAAK,KAAK,GAAG,YAAa,KAAK,qBAAsB,MAGtD,KAAK,KAAK,GAAG,UAAW,KAAK,uBAAwB,MAEhD,EAAE,QAAQ,OACd,KAAK,KAAK,YAAY,OAOxB,oBAAqB,WACpB,KAAK,KAAK,IAAI,QAAS,KAAK,mBAAoB,MAChD,KAAK,KAAK,IAAI,YAAa,KAAK,qBAAsB,MACtD,KAAK,KAAK,IAAI,WAAY,KAAK,oBAAqB,MACpD,KAAK,KAAK,IAAI,UAAW,KAAK,uBAAwB,MAItD,KAAK;EAKN,qBAAsB,WAChB,KAAK,MAIV,KAAK,KAAK,GAAG,WAAY,KAAK,oBAAqB,OAGpD,oBAAqB,SAAU,GAE1B,EAAE,QAAQ,SAAS,KAAK,KAAK,SAAU,sBAI3C,KAAK,KAAK,IAAI,WAAY,KAAK,oBAAqB,MACpD,KAAK,YAAY,KAGlB,mBAAoB,WAEnB,KAAK,eAGN,YAAa,SAAU,GAClB,KAAK,aACR,KAAK,YAAY,WAAW,IAI9B,uBAAwB,WACnB,KAAK,aACR,KAAK,YAAY,0BAKnB,iBAAkB,SAAU,GACvB,EAAM,aACT,KAAK,cAAc,YAAY,GAE3B,EAAM,aACT,EAAM,cAGH,EAAM,iBACT,EAAM,gBAAgB,GAGvB,KAAK,KAAK,YAAY,EAAM,kBACrB,GAAM,eC/chB,EAAE,mBAAmB,SASpB,gBAAiB,SAAU,GAoB1B,MAnBK,GAEM,YAAkB,GAAE,mBAC9B,EAAS,EAAO,iBAAiB,qBACvB,YAAkB,GAAE,WAC9B,EAAS,EAAO,QACN,YAAkB,GAAE,cAC9B,EAAS,EAAO,qBACN,YAAkB,GAAE,SAC9B,GAAU,IARV,EAAS,KAAK,iBAAiB,qBAUhC,KAAK,4BAA4B,GACjC,KAAK,wBAGD,KAAK,QAAQ,kBAChB,KAAK,gCAAgC,GAG/B,MAQR,4BAA6B,SAAU,GACtC,GAAI,GAAI,CAGR,KAAK,IAAM,GAOV,IADA,EAAS,EAAO,GAAI,SACb,GACN,EAAO,kBAAmB,EAC1B,EAAS,EAAO,UAWnB,gCAAiC,SAAU,GAC1C,GAAI,GAAI,CAER,KAAK,IAAM,GACV,EAAQ,EAAO,GAGX,KAAK,SAAS,IAEjB,EAAM,QAAQ,KAAK,oBAAoB,OAM3C,EAAE,OAAO,SAQR,mBAAoB,SAAU,EAAS,GACtC,GAAI,GAAO,KAAK,QAAQ,IAcxB,OAZA,GAAE,WAAW,EAAM,GAEnB,KAAK,QAAQ,GAMT,GAA2B,KAAK,UACnC,KAAK,SAAS,OAAO,gBAAgB,MAG/B","file":"dist/leaflet.markercluster.js"}
lib/js-markerclustererplus-main/images/m1.png ADDED
Binary file
lib/js-markerclustererplus-main/images/m2.png ADDED
Binary file
lib/js-markerclustererplus-main/images/m3.png ADDED
Binary file
lib/js-markerclustererplus-main/images/m4.png ADDED
Binary file
lib/js-markerclustererplus-main/images/m5.png ADDED
Binary file
{js/leaflet → lib}/leaflet-omnivore.min.js RENAMED
File without changes
mappress.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: MapPress Maps for WordPress
4
  Plugin URI: https://www.mappresspro.com/mappress
5
  Author URI: https://www.mappresspro.com/chris-contact
6
  Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
7
- Version: 2.54.6
8
  Author: Chris Richardson
9
  Text Domain: mappress-google-maps-for-wordpress
10
  Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
@@ -32,10 +32,11 @@ if (is_dir(dirname( __FILE__ ) . '/pro')) {
32
  include_once dirname( __FILE__ ) . '/pro/mappress_query.php';
33
  include_once dirname( __FILE__ ) . '/pro/mappress_updater.php';
34
  include_once dirname( __FILE__ ) . '/pro/mappress_widget.php';
 
35
  }
36
 
37
  class Mappress {
38
- const VERSION = '2.54.6';
39
 
40
  static
41
  $baseurl,
@@ -44,6 +45,7 @@ class Mappress {
44
  $debug,
45
  $loaded,
46
  $options,
 
47
  $pages,
48
  $pro,
49
  $updater,
@@ -96,17 +98,22 @@ class Mappress {
96
  add_action('wp_print_scripts', array(__CLASS__, 'deregister'), -1);
97
  }
98
 
99
- // Dismissible notices
100
- add_action('wp_ajax_mapp_dismiss', array( __CLASS__, 'ajax_dismiss' ));
101
-
102
  // Slow heartbeat
103
  if (self::$debug)
104
  add_filter( 'heartbeat_settings', array(__CLASS__, 'heartbeat_settings'));
 
 
 
 
 
 
105
  }
106
 
107
  // Scripts & styles for admin
108
  // CSS is always loaded from the plugin directory
109
  static function admin_enqueue_scripts($hook) {
 
 
110
  // Some plugins call this without setting $hook
111
  if (empty($hook))
112
  return;
@@ -115,26 +122,32 @@ class Mappress {
115
  if (empty(self::$pages))
116
  return;
117
 
118
- $editing = in_array($hook, array('post.php', 'post-new.php'));
 
 
119
 
120
- if ($editing)
121
- self::scripts_enqueue('editor');
122
 
123
- // Settings scripts
124
- if ($hook == self::$pages[0]) {
125
- self::scripts_enqueue('settings');
126
- if (function_exists('wp_enqueue_code_editor'))
127
- wp_enqueue_code_editor(array( 'type' => 'php' ));
128
- }
129
 
130
- // Leaflet CSS
131
- if (self::$options->engine == 'leaflet')
132
- wp_enqueue_style('mappress-leaflet', self::$baseurl . "/css/leaflet/leaflet.css", null, '1.4.0');
 
 
 
 
133
 
134
- // Mappress CSS
135
- if (in_array($hook, self::$pages) || $editing) {
136
  wp_enqueue_style('mappress', self::$baseurl . '/css/mappress.css', null, self::$version);
137
  wp_enqueue_style('mappress-admin', self::$baseurl . '/css/mappress_admin.css', null, self::$version);
 
 
138
  }
139
  }
140
 
@@ -142,38 +155,33 @@ class Mappress {
142
  // Settings
143
  $settings = (self::$pro) ? new Mappress_Pro_Settings() : new Mappress_Settings();
144
  self::$pages[] = add_menu_page('MapPress', 'MapPress', 'manage_options', 'mappress', array(&$settings, 'options_page'), 'dashicons-location');
 
 
145
  }
146
 
147
  static function admin_notices() {
148
  global $wpdb;
149
- $notices = array();
150
-
151
- $error = "<div class='notice error'><p>%s</p></div>";
152
  $map_table = $wpdb->prefix . "mappress_maps";
153
  $exists = $wpdb->get_var("show tables like '$map_table'");
154
 
 
155
  if (!$exists) {
156
  printf($error, __("MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this.", 'mappress-google-maps-for-wordpress'));
157
  return;
158
  }
159
 
160
- if (class_exists('WPGeo')) {
161
- printf($error, __("WARNING: MapPress is not compatible with the WP-Geo plugin. Please deactivate or uninstall WP-Geo before using MapPress.", 'mappress-google-maps-for-wordpress'));
162
- return;
163
- }
164
-
165
  if (self::$options->engine != 'leaflet' && !self::get_api_keys()->browser)
166
  printf($error, sprintf("%s. %s <a href='%s'>%s</a>.", __("A Google Maps API key is required", 'mappress-google-maps-for-wordpress'), __("Please update your", 'mappress-google-maps-for-wordpress'), admin_url('admin.php?page=mappress'), __('MapPress Settings', 'mappress-google-maps-for-wordpress')));
167
 
168
- // Print notices
169
  if (is_super_admin()) {
170
- $dismissed = get_user_meta(get_current_user_id(), 'mappress-dismissed', true);
171
- $dismissed = (is_array($dismissed)) ? $dismissed : array();
 
172
 
173
- // Print notices
174
- $notices = array_diff_key($notices, $dismissed);
175
- foreach($notices as $key => $msg)
176
- echo "<div class='notice error is-dismissible' data-mapp-dismiss='$key'><p>$msg</p></div>";
177
 
178
  if ($notices) {
179
  echo Mappress::script("jQuery('[data-mapp-dismiss]').on('click', '.notice-dismiss', function(e) {
@@ -184,29 +192,47 @@ class Mappress {
184
  }
185
 
186
  static function ajax_dismiss() {
187
- $key = (isset($_POST['key'])) ? $_POST['key'] : null;
188
- if ($key) {
189
- $user_id = get_current_user_id();
190
- $dismissed = get_user_meta($user_id, 'mappress-dismissed', true);
191
- $dismissed = (is_array($dismissed)) ? $dismissed : array();
192
- $dismissed[$key] = true;
193
- update_user_meta($user_id, 'mappress-dismissed', $dismissed);
194
- }
 
195
  }
196
 
197
- static function ajax_response($status, $data=null, $gzip = false) {
198
  $output = trim(ob_get_clean()); // Ignore whitespace, any other output is an error
199
  header( "Content-Type: application/json" );
200
 
201
- if ($gzip && get_site_option('can_compress_scripts'))
202
- ob_start('ob_gzhandler');
203
- else
204
- ob_start();
 
205
 
206
  $response = json_encode(array('status' => $status, 'output' => $output, 'data' => $data));
207
  die ($response);
208
  }
209
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  static function debugging() {
211
  global $wpdb;
212
 
@@ -315,7 +341,7 @@ class Mappress {
315
 
316
  static function get_support_links() {
317
  $html = "<div class='mapp-support'>";
318
- $html .= __('Version', 'mappress-google-maps-for-wordpress') . ' ';
319
  $html .= self::$version;
320
  $html .= " | <a target='_blank' href='https://mappresspro.com/mappress/mappress-documentation'>" . __('Help', 'mappress-google-maps-for-wordpress') . "</a>";
321
  if (!self::$pro)
@@ -337,7 +363,7 @@ class Mappress {
337
  */
338
  static function init() {
339
  Mappress_Map::register();
340
- Mappress_Template::register();
341
 
342
  if (self::$pro) {
343
  Mappress_Icons::register();
@@ -345,17 +371,24 @@ class Mappress {
345
  Mappress_Pro_Settings::register();
346
  Mappress_Query::register();
347
  Mappress_Widget::register();
 
348
  }
349
 
350
  self::scripts_register();
351
 
352
- // Register Gutenberg block type
353
- //if (function_exists('register_block_type')) {
354
- // register_block_type('mappress/map', array(
355
- // 'render_callback' => array(__CLASS__, 'shortcode_map'),
356
- // 'editor_script' => array('mappress-gt')
357
- // ));
358
- //}
 
 
 
 
 
 
359
 
360
  // Check if upgrade is needed
361
  $current_version = get_option('mappress_version');
@@ -376,6 +409,17 @@ class Mappress {
376
  Mappress::$options->save();
377
  }
378
 
 
 
 
 
 
 
 
 
 
 
 
379
  update_option('mappress_version', self::VERSION);
380
  }
381
 
@@ -401,6 +445,10 @@ class Mappress {
401
  return (is_admin() || $rest || self::$options->footer && !$infinite);
402
  }
403
 
 
 
 
 
404
  static function is_localhost() {
405
  return !filter_var($_SERVER['SERVER_ADDR'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE);
406
  }
@@ -414,34 +462,35 @@ class Mappress {
414
 
415
  $l10n = array(
416
  'delete_prompt' => __('Are you sure you want to delete?', 'mappress-google-maps-for-wordpress'),
417
- 'delete_map_prompt' => __('Delete this map?', 'mappress-google-maps-for-wordpress'),
418
- 'dir_error' => __('Google cannot return directions between those addresses. There is no route between them or the routing information is not available.', 'mappress-google-maps-for-wordpress'),
419
  'kml_error' => __('Error reading KML file', 'mappress-google-maps-for-wordpress'),
420
  'layer' => __('URL for KML file', 'mappress-google-maps-for-wordpress'),
421
  'loading' => "<span class='mapp-spinner'></span>" . __('Loading', 'mappress-google-maps-for-wordpress'),
422
- 'more' => __('%1d of %2d shown', 'mappress-google-maps-for-wordpress'),
423
  'no_geolocate' => __('Unable to get your location', 'mappress-google-maps-for-wordpress'),
424
  'no_results' => __('No results', 'mappress-google-maps-for-wordpress'),
425
  'save' => __('Save changes?', 'mappress-google-maps-for-wordpress'),
426
- 'shape' => __('Shape', 'mappress-google-maps-for-wordpress'),
427
- 'untitled' => __('Untitled', 'mappress-google-maps-for-wordpress')
428
  );
429
 
430
  // Globals
431
  $l10n['options'] = array(
432
  'admin' => current_user_can('administrator'),
433
  'ajaxurl' => admin_url('admin-ajax.php'),
 
434
  'debug' => self::$debug,
435
- 'gt' => function_exists('use_block_editor_for_post') && use_block_editor_for_post($post),
436
  'iconsUrl' => (self::$pro) ? Mappress_Icons::$icons_url : null,
 
437
  'language' => self::get_language(),
438
  'mapbox' => self::get_api_keys()->mapbox,
439
- 'mini' => 400,
440
- 'nonce' => wp_create_nonce('mappress'),
441
  'postid' => ($post) ? $post->ID : null, // Note: GT => numeric, classic => string
442
  'pro' => self::$pro,
443
- 'siteUrl' => site_url(),
444
- 'standardIconsUrl' => (self::$pro) ? Mappress_Icons::$standard_icons_url : null
 
 
445
  );
446
 
447
  // Leaflet layers for mapbox / OSM
@@ -499,11 +548,20 @@ class Mappress {
499
  }
500
 
501
  // Global settings
502
- $options = array('autoupdate', 'country', 'defaultIcon', 'directions', 'directionsServer', 'engine', 'geocoder', 'iconScale', 'iwType', 'mashupBody', 'mashupClick', 'poiZoom', 'radius', 'search', 'size', 'sizes', 'style');
503
- foreach($options as $option)
504
- $l10n['options'][$option] = self::$options->$option;
 
 
 
 
 
 
505
 
506
- return apply_filters('mappress_options', $l10n);
 
 
 
507
  }
508
 
509
  static function scripts_register() {
@@ -511,93 +569,61 @@ class Mappress {
511
  $footer = self::is_footer();
512
 
513
  // Directories
514
- $min = ($dev) ? "" : ".min";
515
- $js = ($dev) ? "http://localhost/$dev/wp-content/plugins/mappress-google-maps-for-wordpress/src" : self::$baseurl . '/js';
516
 
517
- // Lefleat API
518
- wp_register_script("mappress-leaflet", $js . "/leaflet/leaflet.js", null, '1.4.0', $footer);
519
- wp_register_script("mappress-omnivore", $js . "/leaflet/leaflet-omnivore.min.js", null, '0.3.1', $footer);
520
- wp_register_script("mappress-algolia-places", $js . "/algolia/placesAutocompleteDataset.min.js", null, '1.16.1', $footer);
521
- wp_register_script("mappress-algolia-search", $js . "/algolia/algoliasearchLite.min.js", null, '3.32.0', $footer);
522
 
523
- // Google API
524
  $language = self::get_language();
525
  $language = ($language) ? "&language=$language" : '';
526
  $apiversion = ($dev) ? 'v=3.exp' : 'v=3';
527
  $apikey = "&key=" . self::get_api_keys()->browser;
528
  $libs = '&libraries=places,drawing';
529
- wp_register_script("mappress-gmaps", "https://maps.googleapis.com/maps/api/js?{$apiversion}{$language}{$libs}{$apikey}", null, null, $footer);
530
 
531
- // Settings
532
- wp_register_script('mappress-settings', $js . "/mappress_settings$min.js", array('postbox', 'jquery', 'jquery-ui-position', 'jquery-ui-sortable'), self::$version, $footer);
 
533
 
534
- // Editor
535
- wp_register_script('mappress-editor', $js . "/mappress_editor$min.js", array('jquery', 'jquery-ui-position', 'jquery-ui-sortable'), self::$version, $footer);
536
- wp_register_script('mappress-media', $js . "/mappress_media$min.js", array('jquery'), self::$version, $footer);
537
- wp_register_script('mappress-gt', $js . "/mappress_gt$min.js", array('jquery', 'mappress', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n'), self::$version, false);
 
 
 
 
538
 
539
- // Autocomplete
540
- wp_register_script('mappress-algolia-autocomplete', $js . "/algolia/autocomplete.jquery.min.js", array('jquery'), '0.36.0', $footer);
541
 
542
- // MapPress
543
- wp_register_script('mappress', $js . "/mappress$min.js", array('underscore', 'jquery'), self::$version, $footer);
544
- if ($dev) {
545
- foreach(array('directions', 'geocoding', 'icons', 'infobox', 'lib', 'places', 'poi', 'widgets', 'loader') as $script)
546
- wp_register_script("mappress-$script", $js . "/mappress_{$script}.js", null, self::$version, $footer);
547
- }
548
-
549
- // I18N
550
- if (function_exists('wp_set_script_translation'))
551
- wp_set_script_translations('mappress-gt', 'mappress-google-maps-for-wordpress', self::$baseurl . '/languages');
552
  }
553
 
554
- static function scripts_enqueue($type = null) {
555
  if (self::$loaded)
556
  return;
557
  else
558
  self::$loaded = true;
559
 
560
- if (self::$options->engine == 'leaflet') {
561
- wp_enqueue_script("mappress-leaflet");
562
- wp_enqueue_script("mappress-omnivore");
563
- wp_enqueue_script("mappress-algolia-places");
564
- wp_enqueue_script("mappress-algolia-search");
565
- } else {
566
- wp_enqueue_script("mappress-gmaps");
567
- }
568
-
569
- wp_enqueue_script('mappress-algolia-autocomplete');
570
-
571
- if ($type == 'settings')
572
- wp_enqueue_script('mappress-settings');
573
-
574
- if ($type == 'editor') {
575
- wp_enqueue_script('mappress-editor');
576
- wp_enqueue_script('mappress-media');
577
- }
578
-
579
- // mappress.js includes loader, so must come after editor
580
  wp_enqueue_script('mappress');
581
-
582
- // Dev scripts
583
- foreach(array('directions', 'geocoding', 'icons', 'infobox', 'lib', 'places', 'poi', 'widgets', 'loader') as $script)
584
- wp_enqueue_script("mappress-$script");
585
-
586
  wp_localize_script('mappress', 'mappl10n', self::l10n());
587
 
588
- // Templates
589
- $footer = self::is_footer();
590
- $templates = array('map-popup', 'map-loop', 'map-item');
591
 
592
- if ($type == 'editor')
593
- $templates = array_merge($templates, array('editor'));
594
- else if ($type == 'settings')
595
- $templates = array_merge($templates, array('settings'));
596
- else if (Mappress::$pro)
597
- $templates = array_merge($templates, array('mashup-popup', 'mashup-loop', 'mashup-item'));
598
 
599
  foreach($templates as $template_name)
600
- Mappress_Template::enqueue_template($template_name, $footer);
601
  }
602
 
603
  static function plugin_action_links($links, $file) {
@@ -663,6 +689,10 @@ class Mappress {
663
  $atts['center'] = ($map && $map->pois) ? $map->pois[0]->point['lat'] . ',' . $map->pois[0]->point['lng'] : null;
664
  }
665
 
 
 
 
 
666
  return $atts;
667
  }
668
 
@@ -801,8 +831,13 @@ class Mappress {
801
  */
802
  static function wp_enqueue_scripts() {
803
  // Leaflet CSS
804
- if (self::$options->engine == 'leaflet')
805
- wp_enqueue_style('mappress-leaflet', self::$baseurl . '/css/leaflet/leaflet.css', null, '1.4.0');
 
 
 
 
 
806
 
807
  // Mappress CSS from plugin directory
808
  wp_enqueue_style('mappress', self::$baseurl . '/css/mappress.css', null, self::$version);
4
  Plugin URI: https://www.mappresspro.com/mappress
5
  Author URI: https://www.mappresspro.com/chris-contact
6
  Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
7
+ Version: 2.56.4
8
  Author: Chris Richardson
9
  Text Domain: mappress-google-maps-for-wordpress
10
  Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
32
  include_once dirname( __FILE__ ) . '/pro/mappress_query.php';
33
  include_once dirname( __FILE__ ) . '/pro/mappress_updater.php';
34
  include_once dirname( __FILE__ ) . '/pro/mappress_widget.php';
35
+ include_once dirname( __FILE__ ) . '/pro/mappress_widget_map.php';
36
  }
37
 
38
  class Mappress {
39
+ const VERSION = '2.56.3';
40
 
41
  static
42
  $baseurl,
45
  $debug,
46
  $loaded,
47
  $options,
48
+ $notices,
49
  $pages,
50
  $pro,
51
  $updater,
98
  add_action('wp_print_scripts', array(__CLASS__, 'deregister'), -1);
99
  }
100
 
 
 
 
101
  // Slow heartbeat
102
  if (self::$debug)
103
  add_filter( 'heartbeat_settings', array(__CLASS__, 'heartbeat_settings'));
104
+
105
+ // Dismissible notices
106
+ add_action('wp_ajax_mapp_dismiss', array(__CLASS__, 'ajax_dismiss' ));
107
+
108
+ // Add block category
109
+ add_filter( 'block_categories', array(__CLASS__, 'block_categories'), 10, 2 );
110
  }
111
 
112
  // Scripts & styles for admin
113
  // CSS is always loaded from the plugin directory
114
  static function admin_enqueue_scripts($hook) {
115
+ global $postid;
116
+
117
  // Some plugins call this without setting $hook
118
  if (empty($hook))
119
  return;
122
  if (empty(self::$pages))
123
  return;
124
 
125
+ $is_editing = in_array($hook, array('post.php', 'post-new.php'));
126
+ $is_settings = in_array($hook, self::$pages);
127
+ $is_customizer = $hook == 'customize.php';
128
 
129
+ if ($is_editing || $is_settings || $is_customizer) {
130
+ self::scripts_enqueue('backend');
131
 
132
+ // Settings code editor
133
+ if ($is_settings) {
134
+ if (function_exists('wp_enqueue_code_editor'))
135
+ wp_enqueue_code_editor(array( 'type' => 'php' ));
136
+ }
 
137
 
138
+ // Leaflet CSS
139
+ if (self::$options->engine == 'leaflet')
140
+ wp_enqueue_style('mappress-leaflet', 'https://unpkg.com/leaflet@1.7.1/dist/leaflet.css', null, '1.7.1');
141
+ if (self::$options->clustering) {
142
+ wp_enqueue_style('mappress-leaflet-markercluster-default', self::$baseurl . "/lib/Leaflet.markercluster/MarkerCluster.Default.css", null, '1.4.1');
143
+ wp_enqueue_style('mappress-leaflet-markercluster', self::$baseurl . "/lib/Leaflet.markercluster/MarkerCluster.css", null, '1.4.1');
144
+ }
145
 
146
+ // Mappress CSS
 
147
  wp_enqueue_style('mappress', self::$baseurl . '/css/mappress.css', null, self::$version);
148
  wp_enqueue_style('mappress-admin', self::$baseurl . '/css/mappress_admin.css', null, self::$version);
149
+
150
+ // Gutenberg CSS (for GT media block in mce editor): wp_enqueue_style( 'wp-edit-blocks' );
151
  }
152
  }
153
 
155
  // Settings
156
  $settings = (self::$pro) ? new Mappress_Pro_Settings() : new Mappress_Settings();
157
  self::$pages[] = add_menu_page('MapPress', 'MapPress', 'manage_options', 'mappress', array(&$settings, 'options_page'), 'dashicons-location');
158
+ self::$pages[] = add_submenu_page('mappress', __('Settings', 'mappress-google-maps-for-wordpress'), __('Settings', 'mappress-google-maps-for-wordpress'), 'manage_options', 'mappress', array(&$settings, 'options_page'));
159
+ self::$pages[] = add_submenu_page('mappress', __('Map Library', 'mappress-google-maps-for-wordpress'), __('Map Library', 'mappress-google-maps-for-wordpress'), 'manage_options', 'mappress_maps', array(__CLASS__, 'map_library'));
160
  }
161
 
162
  static function admin_notices() {
163
  global $wpdb;
164
+ $error = "<div class='notice notice-error'><p>%s</p></div>";
 
 
165
  $map_table = $wpdb->prefix . "mappress_maps";
166
  $exists = $wpdb->get_var("show tables like '$map_table'");
167
 
168
+ // Non-dismissible notices
169
  if (!$exists) {
170
  printf($error, __("MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this.", 'mappress-google-maps-for-wordpress'));
171
  return;
172
  }
173
 
 
 
 
 
 
174
  if (self::$options->engine != 'leaflet' && !self::get_api_keys()->browser)
175
  printf($error, sprintf("%s. %s <a href='%s'>%s</a>.", __("A Google Maps API key is required", 'mappress-google-maps-for-wordpress'), __("Please update your", 'mappress-google-maps-for-wordpress'), admin_url('admin.php?page=mappress'), __('MapPress Settings', 'mappress-google-maps-for-wordpress')));
176
 
177
+ // Dismissibles
178
  if (is_super_admin()) {
179
+ $content = "<div class='notice notice-%s is-dismissible' data-mapp-dismiss='%s'><p>%s</p></div>";
180
+ $dismissed = array_filter( explode( ',', (string) get_user_meta( get_current_user_id(), 'mappress_dismissed', true ) ) );
181
+ $notices = (self::$notices) ? array_diff_key(self::$notices, array_flip($dismissed)) : array();
182
 
183
+ foreach($notices as $key => $notice)
184
+ printf($content, $notice[0], $key, $notice[1]);
 
 
185
 
186
  if ($notices) {
187
  echo Mappress::script("jQuery('[data-mapp-dismiss]').on('click', '.notice-dismiss', function(e) {
192
  }
193
 
194
  static function ajax_dismiss() {
195
+ $key = isset($_POST['key']) ? $_POST['key'] : null;
196
+
197
+ if (!$key || sanitize_key( $key) != $key)
198
+ wp_die( 0 );
199
+
200
+ $dismissed = array_filter( explode( ',', (string) get_user_meta( get_current_user_id(), 'mappress_dismissed', true ) ) );
201
+ $dismissed[] = $key;
202
+ update_user_meta( get_current_user_id(), 'mappress_dismissed', implode( ',', $dismissed ));
203
+ self::ajax_response('OK');
204
  }
205
 
206
+ static function ajax_response($status, $data=null) {
207
  $output = trim(ob_get_clean()); // Ignore whitespace, any other output is an error
208
  header( "Content-Type: application/json" );
209
 
210
+ // WP bug: when zlib active, warning messages are generated, which corrupt JSON output
211
+ // Ticket has been open for 9 years. Workaround is to disable flush when providing json response - may cause other conflicts!
212
+ // https://core.trac.wordpress.org/ticket/22430, https://core.trac.wordpress.org/ticket/18525
213
+ if (ini_get('zlib.output_compression'))
214
+ remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );
215
 
216
  $response = json_encode(array('status' => $status, 'output' => $output, 'data' => $data));
217
  die ($response);
218
  }
219
 
220
+ // GT assets are still loaded when using classic editor, but this script doesn't run
221
+ static function block_categories( $categories, $post ) {
222
+ if (!in_array($post->post_type, self::$options->postTypes))
223
+ return $categories;
224
+
225
+ return array_merge(
226
+ $categories,
227
+ array(
228
+ array(
229
+ 'slug' => 'mappress',
230
+ 'title' => 'MapPress'
231
+ ),
232
+ )
233
+ );
234
+ }
235
+
236
  static function debugging() {
237
  global $wpdb;
238
 
341
 
342
  static function get_support_links() {
343
  $html = "<div class='mapp-support'>";
344
+ $html .= __('Version', 'mappress-google-maps-for-wordpress') . ' ';
345
  $html .= self::$version;
346
  $html .= " | <a target='_blank' href='https://mappresspro.com/mappress/mappress-documentation'>" . __('Help', 'mappress-google-maps-for-wordpress') . "</a>";
347
  if (!self::$pro)
363
  */
364
  static function init() {
365
  Mappress_Map::register();
366
+ Mappress_Template::register();
367
 
368
  if (self::$pro) {
369
  Mappress_Icons::register();
371
  Mappress_Pro_Settings::register();
372
  Mappress_Query::register();
373
  Mappress_Widget::register();
374
+ Mappress_Widget_Map::register();
375
  }
376
 
377
  self::scripts_register();
378
 
379
+ // Register Gutenberg block types and load GT scripts
380
+ if (function_exists('register_block_type')) {
381
+ register_block_type('mappress/map', array(
382
+ 'render_callback' => array(__CLASS__, 'shortcode_map'),
383
+ 'editor_script' => array('mappress_admin')
384
+ ));
385
+ if (self::$pro) {
386
+ register_block_type('mappress/mashup', array(
387
+ 'render_callback' => array(__CLASS__, 'shortcode_mashup'),
388
+ 'editor_script' => array('mappress_admin'),
389
+ ));
390
+ }
391
+ }
392
 
393
  // Check if upgrade is needed
394
  $current_version = get_option('mappress_version');
409
  Mappress::$options->save();
410
  }
411
 
412
+ // Missing license
413
+ if (self::$pro && !trim(self::$options->license) && (!is_multisite() || (is_super_admin() && is_main_site())))
414
+ self::$notices['nolicense'] = array('warning', __('Please enter your MapPress license key to enable plugin updates', 'mappress-google-maps-for-wordpress'));
415
+
416
+ // Beta notice
417
+ if (self::VERSION > '2.55' && self::VERSION < '2.56')
418
+ self::$notices['255'] = array('error', __('You are using a BETA version of MapPress. Please make a database backup.', 'mappress-google-maps-for-wordpress'));
419
+
420
+ if (self::VERSION >= '2.55' && version_compare(get_bloginfo('version'),'5.3', '<') )
421
+ self::$notices['255_min_version'] = array('error', __('MapPress Gutenberg blocks require WordPress 5.3 or the latest Gutenberg Plugin. Please update if using the block editor.', 'mappress-google-maps-for-wordpress'));
422
+
423
  update_option('mappress_version', self::VERSION);
424
  }
425
 
445
  return (is_admin() || $rest || self::$options->footer && !$infinite);
446
  }
447
 
448
+ static function is_gt($post) {
449
+ return function_exists('use_block_editor_for_post') && use_block_editor_for_post($post) && in_array($post->post_type, self::$options->postTypes);
450
+ }
451
+
452
  static function is_localhost() {
453
  return !filter_var($_SERVER['SERVER_ADDR'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE);
454
  }
462
 
463
  $l10n = array(
464
  'delete_prompt' => __('Are you sure you want to delete?', 'mappress-google-maps-for-wordpress'),
465
+ 'delete_map_prompt' => __('Permanently delete this map from the map library?', 'mappress-google-maps-for-wordpress'),
 
466
  'kml_error' => __('Error reading KML file', 'mappress-google-maps-for-wordpress'),
467
  'layer' => __('URL for KML file', 'mappress-google-maps-for-wordpress'),
468
  'loading' => "<span class='mapp-spinner'></span>" . __('Loading', 'mappress-google-maps-for-wordpress'),
469
+ 'need_classic' => __('Please select a classic editor block to insert into.', 'mappress-google-maps-for-wordpress'),
470
  'no_geolocate' => __('Unable to get your location', 'mappress-google-maps-for-wordpress'),
471
  'no_results' => __('No results', 'mappress-google-maps-for-wordpress'),
472
  'save' => __('Save changes?', 'mappress-google-maps-for-wordpress'),
473
+ 'shape' => __('Shape', 'mappress-google-maps-for-wordpress')
 
474
  );
475
 
476
  // Globals
477
  $l10n['options'] = array(
478
  'admin' => current_user_can('administrator'),
479
  'ajaxurl' => admin_url('admin-ajax.php'),
480
+ 'baseurl' => self::$baseurl,
481
  'debug' => self::$debug,
482
+ 'editurl' => admin_url('post.php'),
483
  'iconsUrl' => (self::$pro) ? Mappress_Icons::$icons_url : null,
484
+ 'gt' => self::is_gt($post),
485
  'language' => self::get_language(),
486
  'mapbox' => self::get_api_keys()->mapbox,
487
+ 'nonce' => wp_create_nonce('mappress'),
 
488
  'postid' => ($post) ? $post->ID : null, // Note: GT => numeric, classic => string
489
  'pro' => self::$pro,
490
+ 'ssl' => self::is_ssl(), // SSL is needed for 'your location' in directions
491
+ 'standardIcons' => (self::$pro) ? Mappress_Icons::$standard_icons : null,
492
+ 'standardIconsUrl' => (self::$pro) ? Mappress_Icons::$standard_icons_url : null,
493
+ 'userIcons' => (self::$pro) ? Mappress_Icons::get_user_icons() : null
494
  );
495
 
496
  // Leaflet layers for mapbox / OSM
548
  }
549
 
550
  // Global settings
551
+ $options = array('alignment', 'clustering', 'country', 'defaultIcon', 'directions', 'directionsServer', 'engine', 'filter', 'geocoder', 'gt', 'iconScale', 'initialOpenInfo', 'iwType', 'layout', 'mashupClick', 'mini', 'poiList', 'poiZoom', 'radius', 'search', 'size', 'sizes', 'style');
552
+ foreach($options as $option) {
553
+ if (isset(self::$options->$option)) {
554
+ $l10n['options'][$option] = self::$options->$option;
555
+ }
556
+ }
557
+
558
+ return apply_filters('mappress_options', $l10n);
559
+ }
560
 
561
+ static function map_library() {
562
+ self::scripts_enqueue('backend');
563
+ echo '<div id="mapp-library" class="mapp-library"></div>';
564
+ wp_editor('', 'mapp-library-tinymce');
565
  }
566
 
567
  static function scripts_register() {
569
  $footer = self::is_footer();
570
 
571
  // Directories
572
+ $lib = self::$baseurl . '/lib';
573
+ $js = ($dev) ? "http://localhost/$dev/wp-content/plugins/mappress-google-maps-for-wordpress/build" : self::$baseurl . '/build';
574
 
575
+ // Leaflet
576
+ wp_register_script("mappress-leaflet", 'https://unpkg.com/leaflet@1.7.1/dist/leaflet.js', null, '1.7.1', $footer);
577
+ wp_register_script("mappress-omnivore", $lib . "/leaflet-omnivore.min.js", null, '0.3.1', $footer);
 
 
578
 
579
+ // Google
580
  $language = self::get_language();
581
  $language = ($language) ? "&language=$language" : '';
582
  $apiversion = ($dev) ? 'v=3.exp' : 'v=3';
583
  $apikey = "&key=" . self::get_api_keys()->browser;
584
  $libs = '&libraries=places,drawing';
585
+ wp_register_script("mappress-google", "https://maps.googleapis.com/maps/api/js?{$apiversion}{$language}{$libs}{$apikey}", null, null, $footer);
586
 
587
+ // Clustering ( https://github.com/googlemaps/js-markerclustererplus | https://github.com/Leaflet/Leaflet.markercluster )
588
+ wp_register_script('mappress-markerclustererplus', "https://unpkg.com/@googlemaps/markerclustererplus@1.0.3/dist/index.min.js", null, '1.0.3', $footer);
589
+ wp_register_script('mappress-leaflet-markercluster', $lib . "/Leaflet.markercluster/leaflet.markercluster.js", null, '1.4.1', $footer);
590
 
591
+ // Dependencies
592
+ $deps = array('jquery', 'jquery-ui-autocomplete', 'underscore');
593
+ if (self::$options->engine == 'leaflet')
594
+ $deps = array_merge(array('mappress-leaflet', 'mappress-omnivore'), $deps);
595
+ if (self::$options->engine != 'leaflet' || self::$options->geocoder == 'google')
596
+ $deps[] = 'mappress-google';
597
+ if (self::$options->clustering)
598
+ $deps[] = (self::$options->engine == 'leaflet') ? 'mappress-leaflet-markercluster' : 'mappress-markerclustererplus';
599
 
600
+ wp_register_script('mappress', $js . "/index_mappress.js", $deps, self::$version, $footer);
601
+ wp_register_script('mappress_admin', $js . "/index_mappress_admin.js", array('mappress', 'jquery-ui-position', 'jquery-ui-sortable', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-editor', 'wp-element', 'wp-i18n'), self::$version, $footer);
602
 
603
+ // I18N
604
+ if (function_exists('wp_set_script_translations'))
605
+ wp_set_script_translations('mappress', 'mappress-google-maps-for-wordpress', self::$baseurl . '/languages');
 
 
 
 
 
 
 
606
  }
607
 
608
+ static function scripts_enqueue($type = 'frontend') {
609
  if (self::$loaded)
610
  return;
611
  else
612
  self::$loaded = true;
613
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
614
  wp_enqueue_script('mappress');
 
 
 
 
 
615
  wp_localize_script('mappress', 'mappl10n', self::l10n());
616
 
617
+ if ($type == 'backend')
618
+ wp_enqueue_script('mappress_admin');
 
619
 
620
+ // Templates
621
+ $templates = array('map', 'map-directions', 'map-filters', 'map-item', 'map-loop', 'map-popup', 'mashup-popup', 'mashup-loop', 'mashup-item');
622
+ if ($type == 'backend')
623
+ $templates = array_merge($templates, array('mce', 'editor', 'widgets'));
 
 
624
 
625
  foreach($templates as $template_name)
626
+ Mappress_Template::enqueue_template($template_name, self::is_footer());
627
  }
628
 
629
  static function plugin_action_links($links, $file) {
689
  $atts['center'] = ($map && $map->pois) ? $map->pois[0]->point['lat'] . ',' . $map->pois[0]->point['lng'] : null;
690
  }
691
 
692
+ // Conver GT 'align' to 'alignment'
693
+ if (isset($atts['align']))
694
+ $atts['alignment'] = $atts['align'];
695
+
696
  return $atts;
697
  }
698
 
831
  */
832
  static function wp_enqueue_scripts() {
833
  // Leaflet CSS
834
+ if (self::$options->engine == 'leaflet') {
835
+ wp_enqueue_style('mappress-leaflet', 'https://unpkg.com/leaflet@1.7.1/dist/leaflet.css', null, '1.7.1');
836
+ if (self::$options->clustering) {
837
+ wp_enqueue_style('mappress-leaflet-markercluster-default', self::$baseurl . "/lib/Leaflet.markercluster/MarkerCluster.Default.css", null, '1.4.1');
838
+ wp_enqueue_style('mappress-leaflet-markercluster', self::$baseurl . "/lib/Leaflet.markercluster/MarkerCluster.css", null, '1.4.1');
839
+ }
840
+ }
841
 
842
  // Mappress CSS from plugin directory
843
  wp_enqueue_style('mappress', self::$baseurl . '/css/mappress.css', null, self::$version);
mappress_controls.php CHANGED
@@ -270,7 +270,7 @@ class Mappress_Walker extends Walker {
270
  // If 'indent' set, use spaces (for hierarchical lists like taxonomies)
271
  $indent = (isset($args['indent']) && $args['indent']) ? str_repeat('&mdash;', $depth) : '';
272
  $value = ($this->fields == 'names') ? $term->name : $term->slug;
273
- $output[$term->slug] = $indent . $value;
274
  }
275
  }
276
  ?>
270
  // If 'indent' set, use spaces (for hierarchical lists like taxonomies)
271
  $indent = (isset($args['indent']) && $args['indent']) ? str_repeat('&mdash;', $depth) : '';
272
  $value = ($this->fields == 'names') ? $term->name : $term->slug;
273
+ $output[$term->slug] = $indent . $value . ' (' . $term->count . ')';
274
  }
275
  }
276
  ?>
mappress_map.php CHANGED
@@ -2,7 +2,9 @@
2
  class Mappress_Map extends Mappress_Obj {
3
  var $alignment,
4
  $center,
 
5
  $editable,
 
6
  $height,
7
  $hideEmpty,
8
  $initialOpenDirections,
@@ -28,14 +30,7 @@ class Mappress_Map extends Mappress_Obj {
28
  return array('mapid', 'center', 'height', 'mapTypeId', 'metaKey', 'pois', 'title', 'width', 'zoom');
29
  }
30
 
31
- function to_json() {
32
- // Use same keys as sleep
33
- $result = array_intersect_key(get_object_vars($this), array_flip($this->__sleep()));
34
- return $result;
35
- }
36
-
37
  function __construct($atts = null) {
38
- $this->update(Mappress::$options);
39
  $this->update($atts);
40
 
41
  // Convert POIs from arrays to objects if needed
@@ -55,8 +50,8 @@ class Mappress_Map extends Mappress_Obj {
55
  add_action('wp_ajax_mapp_get', array(__CLASS__, 'ajax_get'));
56
  add_action('wp_ajax_mapp_save', array(__CLASS__, 'ajax_save'));
57
 
58
- // Editing meta boxes
59
- add_action('admin_init', array(__CLASS__, 'add_meta_boxes'));
60
 
61
  // Tables
62
  $maps_table = $wpdb->prefix . 'mappress_maps';
@@ -91,15 +86,18 @@ class Mappress_Map extends Mappress_Obj {
91
  }
92
  }
93
 
94
- static function add_meta_boxes() {
 
 
 
 
95
  foreach(Mappress::$options->postTypes as $post_type)
96
  add_meta_box('mappress', 'MapPress', array(__CLASS__, 'meta_box'), $post_type, 'normal', 'high');
97
  }
98
 
99
  static function meta_box($post) {
100
- Mappress::scripts_enqueue('editor');
101
- $map = new Mappress_Map(array('editable' => true, 'layout' => 'left', 'name' => 'mapp0', 'poiList' => true));
102
- require(Mappress::$basedir . '/forms/media.php');
103
  }
104
 
105
  static function find($args) {
@@ -108,15 +106,24 @@ class Mappress_Map extends Mappress_Obj {
108
  $maps_table = $wpdb->prefix . 'mappress_maps';
109
  $posts_table = $wpdb->prefix . 'mappress_posts';
110
 
111
- $sql = "SELECT SQL_CALC_FOUND_ROWS $maps_table.mapid, $maps_table.obj, $posts_table.postid, $wpdb->posts.post_title "
112
  . " FROM $maps_table "
113
  . " INNER JOIN $posts_table ON ($posts_table.mapid = $maps_table.mapid)"
114
- . " INNER JOIN $wpdb->posts ON ($wpdb->posts.ID = $posts_table.postid)"
115
  ;
116
  $results = $wpdb->get_results($sql);
117
 
118
  $items = array();
119
  foreach($results as $result) {
 
 
 
 
 
 
 
 
 
120
  $mapdata = unserialize($result->obj);
121
  $items[] = array(
122
  'mapid' => $result->mapid,
@@ -130,7 +137,9 @@ class Mappress_Map extends Mappress_Obj {
130
  }
131
 
132
  static function ajax_find() {
133
- check_ajax_referer('mappress', 'nonce');
 
 
134
  Mappress::ajax_response('OK', self::find($_GET));
135
  }
136
 
@@ -156,15 +165,14 @@ class Mappress_Map extends Mappress_Obj {
156
  }
157
 
158
  static function ajax_get() {
159
- check_ajax_referer('mappress', 'nonce');
160
-
161
  ob_start();
162
  $mapid = (isset($_GET['mapid'])) ? $_GET['mapid'] : null;
163
  $map = ($mapid) ? self::get($mapid) : null;
164
  if (!$map)
165
- Mappress::ajax_response(__('Map not found', 'mappress-google-maps-for-wordpress'));
166
  else
167
- Mappress::ajax_response('OK', array('map' => $map));
168
  }
169
 
170
  /**
@@ -211,7 +219,7 @@ class Mappress_Map extends Mappress_Obj {
211
  if (!$this->mapid) {
212
  // If no ID then autonumber
213
  $result = $wpdb->query($wpdb->prepare("INSERT INTO $maps_table (obj) VALUES(%s)", $map));
214
- $this->mapid = (int)$wpdb->get_var("SELECT LAST_INSERT_ID()");
215
  } else {
216
  // Id provided, so insert or update
217
  $result = $wpdb->query($wpdb->prepare("INSERT INTO $maps_table (mapid, obj) VALUES(%d, '%s') ON DUPLICATE KEY UPDATE obj = %s", $this->mapid, $map, $map));
@@ -228,31 +236,31 @@ class Mappress_Map extends Mappress_Obj {
228
  return false;
229
 
230
  $wpdb->query("COMMIT");
231
- return $this->mapid;
232
  }
233
 
234
  static function ajax_save() {
235
- check_ajax_referer('mappress', 'nonce');
236
 
237
- if (!current_user_can('edit_posts'))
238
- Mappress::ajax_response('Not authorized');
239
 
240
  ob_start();
241
- $mapdata = (isset($_POST['map'])) ? json_decode(stripslashes($_POST['map']), true) : null;
242
 
243
  if (!$mapdata)
244
  Mappress::ajax_response('Internal error, your data has not been saved!');
245
 
246
  $map = new Mappress_Map($mapdata);
247
- $mapid = $map->save();
248
 
249
- if ($mapid === false)
250
  Mappress::ajax_response('Internal error, your data has not been saved!');
251
 
252
- do_action('mappress_map_save', $mapid); // Use for your own developments
253
 
254
  // Return saved mapid
255
- Mappress::ajax_response('OK', array('mapid' => $mapid));
256
  }
257
 
258
  /**
@@ -279,10 +287,10 @@ class Mappress_Map extends Mappress_Obj {
279
  }
280
 
281
  static function ajax_delete() {
282
- check_ajax_referer('mappress', 'nonce');
283
 
284
- if (!current_user_can('edit_posts'))
285
- Mappress::ajax_response('Not authorized');
286
 
287
  ob_start();
288
  $mapid = (isset($_POST['mapid'])) ? $_POST['mapid'] : null;
@@ -292,12 +300,13 @@ class Mappress_Map extends Mappress_Obj {
292
  Mappress::ajax_response("Internal error when deleting map ID '$mapid'!");
293
 
294
  do_action('mappress_map_delete', $mapid); // Use for your own developments
295
- Mappress::ajax_response('OK', array('mapid' => $mapid));
296
  }
297
 
298
  /**
299
  * Delete a map assignment(s) for a post
300
  * If $mapid is null, then ALL maps will be removed from the post
 
301
  *
302
  * @param int $mapid Map to remove
303
  * @param int $postid Post to remove from
@@ -346,7 +355,11 @@ class Mappress_Map extends Mappress_Obj {
346
  // Last chance to alter map before display
347
  do_action('mappress_map_display', $this);
348
 
349
- $html = Mappress_Template::get_template('map', array('map' => $this));
 
 
 
 
350
  Mappress::scripts_enqueue();
351
  $script = "mapp.data.push( " . json_encode($this) . " ); \r\nif (typeof mapp.load != 'undefined') { mapp.load(); };";
352
 
@@ -359,107 +372,6 @@ class Mappress_Map extends Mappress_Obj {
359
  return $html;
360
  }
361
 
362
- function width() {
363
- $default = (object) Mappress::$options->sizes[Mappress::$options->size];
364
- $width = ($this->width) ? $this->width : $default->width;
365
- return ( stripos($width, 'px') || strpos($width, '%')) ? $width : $width. 'px';
366
- }
367
-
368
- function height() {
369
- $default = (object) Mappress::$options->sizes[Mappress::$options->size];
370
- $height = ($this->height) ? $this->height : $default->height;
371
-
372
- if (stristr($height, ':')) {
373
- $parts = explode(':', $height);
374
- if (count($parts) == 2 && $parts[0] > 0)
375
- return round((100 * $parts[1] / $parts[0]), 2) . '%';
376
- }
377
- return ( stripos($height, 'px') || strpos($height, '%')) ? $height : $height. 'px';
378
- }
379
-
380
- function check($part) {
381
- switch ($part) {
382
- case 'directions' :
383
- return !$this->editable && Mappress::$options->directions != 'google';
384
-
385
- case 'filters' :
386
- case 'filters-toggle' :
387
- return $this->query && Mappress::$options->filter;
388
-
389
- case 'footer' :
390
- return $this->check('list');
391
-
392
- case 'header' :
393
- return $this->check('filters') || $this->check('search');
394
-
395
- case 'list-inline' :
396
- return $this->poiList && $this->layout != 'left';
397
-
398
- case 'list-left' :
399
- return $this->poiList && $this->layout == 'left';
400
-
401
- case 'search' :
402
- return $this->editable || ($this->query && Mappress::$options->search);
403
- }
404
- return true;
405
- }
406
-
407
- function part($part) {
408
- if (!$this->check($part))
409
- return;
410
-
411
- switch ($part) {
412
- case 'controls' :
413
- case 'directions' :
414
- case 'filters' :
415
- case 'footer' :
416
- case 'header' :
417
- case 'search' :
418
- $html = Mappress_Template::get_template("map-$part", array('map' => $this));
419
- break;
420
-
421
- case 'canvas' :
422
- $html = "<div class='mapp-canvas' id='{$this->name}'></div>";
423
- break;
424
-
425
- case 'filters-toggle' :
426
- $html = "<div class='mapp-caret mapp-header-button mapp-filters-toggle' data-mapp-action='filters-toggle'>" . __('Filter', 'mappress-google-maps-for-wordpress') . "</div>";
427
- break;
428
-
429
- case 'iw' :
430
- $html = "<div class='mapp-iw'></div>";
431
- break;
432
-
433
- case 'layout-atts' :
434
- $id = $this->name . '-layout';
435
-
436
- $class = 'mapp-layout';
437
- $class .= ($this->layout == 'left') ? ' mapp-left' : ' mapp-inline';
438
- $class .= (Mappress::$options->engine == 'leaflet') ? ' mapp-leaflet ' : ' mapp-google';
439
- if (wp_is_mobile())
440
- $class .= ' mobile';
441
- if (!$this->editable)
442
- $class .= ($this->alignment) ? " mapp-align-{$this->alignment}" : '';
443
-
444
- $style = sprintf("width: %s;", $this->width());
445
- $html = "id='$id' class='$class' style='$style'";
446
- break;
447
-
448
- case 'list-inline' :
449
- case 'list-left' :
450
- $html = "<div class='mapp-list'></div>";
451
- break;
452
-
453
- case 'wrapper-style' :
454
- $h = $this->height();
455
- // Responsive if aspect ratio present (':') otherwise use specified % or px
456
- $html = (stristr($this->height, ':')) ? "padding-bottom: $h;" : "height: $h";
457
- break;
458
- }
459
-
460
- return (isset($html)) ? $html : "<!-- unknown part $part -->";
461
- }
462
-
463
  /**
464
  * Prepare map for output
465
  *
2
  class Mappress_Map extends Mappress_Obj {
3
  var $alignment,
4
  $center,
5
+ $classname,
6
  $editable,
7
+ $embed,
8
  $height,
9
  $hideEmpty,
10
  $initialOpenDirections,
30
  return array('mapid', 'center', 'height', 'mapTypeId', 'metaKey', 'pois', 'title', 'width', 'zoom');
31
  }
32
 
 
 
 
 
 
 
33
  function __construct($atts = null) {
 
34
  $this->update($atts);
35
 
36
  // Convert POIs from arrays to objects if needed
50
  add_action('wp_ajax_mapp_get', array(__CLASS__, 'ajax_get'));
51
  add_action('wp_ajax_mapp_save', array(__CLASS__, 'ajax_save'));
52
 
53
+ // MCE meta box
54
+ add_action('add_meta_boxes', array(__CLASS__, 'add_meta_boxes'), 10, 2);
55
 
56
  // Tables
57
  $maps_table = $wpdb->prefix . 'mappress_maps';
86
  }
87
  }
88
 
89
+ static function add_meta_boxes($post_type, $post = null) {
90
+ // No metaboxes for gutenberg if using gt editor
91
+ if (Mappress::is_gt($post))
92
+ return;
93
+
94
  foreach(Mappress::$options->postTypes as $post_type)
95
  add_meta_box('mappress', 'MapPress', array(__CLASS__, 'meta_box'), $post_type, 'normal', 'high');
96
  }
97
 
98
  static function meta_box($post) {
99
+ $map = new Mappress_Map(array('editable' => true, 'layout' => 'left', 'name' => 'mapp0', 'poiList' => true));
100
+ require(Mappress::$basedir . '/templates_admin/media.php');
 
101
  }
102
 
103
  static function find($args) {
106
  $maps_table = $wpdb->prefix . 'mappress_maps';
107
  $posts_table = $wpdb->prefix . 'mappress_posts';
108
 
109
+ $sql = "SELECT SQL_CALC_FOUND_ROWS $maps_table.mapid, $maps_table.obj, $posts_table.postid, $wpdb->posts.post_status, $wpdb->posts.post_title "
110
  . " FROM $maps_table "
111
  . " INNER JOIN $posts_table ON ($posts_table.mapid = $maps_table.mapid)"
112
+ . " LEFT OUTER JOIN $wpdb->posts ON ($wpdb->posts.ID = $posts_table.postid)"
113
  ;
114
  $results = $wpdb->get_results($sql);
115
 
116
  $items = array();
117
  foreach($results as $result) {
118
+
119
+ // Only check if map is attached to a post (postid > 0)
120
+ if ($result->postid) {
121
+ if (!current_user_can('edit_post', $result->postid))
122
+ continue;
123
+ if (in_array($result->post_status, array('trash', 'auto-draft', 'inherit')))
124
+ continue;
125
+ }
126
+
127
  $mapdata = unserialize($result->obj);
128
  $items[] = array(
129
  'mapid' => $result->mapid,
137
  }
138
 
139
  static function ajax_find() {
140
+ check_ajax_referer('mappress', 'nonce');
141
+ if (!current_user_can('edit_posts'))
142
+ Mappress::ajax_response('Not authorized');
143
  Mappress::ajax_response('OK', self::find($_GET));
144
  }
145
 
165
  }
166
 
167
  static function ajax_get() {
168
+ check_ajax_referer('mappress', 'nonce');
 
169
  ob_start();
170
  $mapid = (isset($_GET['mapid'])) ? $_GET['mapid'] : null;
171
  $map = ($mapid) ? self::get($mapid) : null;
172
  if (!$map)
173
+ Mappress::ajax_response(sprintf(__('Map not found', 'mappress-google-maps-for-wordpress'), $mapid));
174
  else
175
+ Mappress::ajax_response('OK', $map);
176
  }
177
 
178
  /**
219
  if (!$this->mapid) {
220
  // If no ID then autonumber
221
  $result = $wpdb->query($wpdb->prepare("INSERT INTO $maps_table (obj) VALUES(%s)", $map));
222
+ $this->mapid = $wpdb->get_var("SELECT LAST_INSERT_ID()");
223
  } else {
224
  // Id provided, so insert or update
225
  $result = $wpdb->query($wpdb->prepare("INSERT INTO $maps_table (mapid, obj) VALUES(%d, '%s') ON DUPLICATE KEY UPDATE obj = %s", $this->mapid, $map, $map));
236
  return false;
237
 
238
  $wpdb->query("COMMIT");
239
+ return true;
240
  }
241
 
242
  static function ajax_save() {
243
+ check_ajax_referer('mappress', 'nonce');
244
 
245
+ if (!current_user_can('edit_posts'))
246
+ Mappress::ajax_response('Not authorized');
247
 
248
  ob_start();
249
+ $mapdata = (isset($_POST['mapdata'])) ? json_decode(stripslashes($_POST['mapdata']), true) : null;
250
 
251
  if (!$mapdata)
252
  Mappress::ajax_response('Internal error, your data has not been saved!');
253
 
254
  $map = new Mappress_Map($mapdata);
255
+ $result = $map->save();
256
 
257
+ if (!$result)
258
  Mappress::ajax_response('Internal error, your data has not been saved!');
259
 
260
+ do_action('mappress_map_save', $map); // Use for your own developments
261
 
262
  // Return saved mapid
263
+ Mappress::ajax_response('OK', $map);
264
  }
265
 
266
  /**
287
  }
288
 
289
  static function ajax_delete() {
290
+ check_ajax_referer('mappress', 'nonce');
291
 
292
+ if (!current_user_can('edit_posts'))
293
+ Mappress::ajax_response('Not authorized');
294
 
295
  ob_start();
296
  $mapid = (isset($_POST['mapid'])) ? $_POST['mapid'] : null;
300
  Mappress::ajax_response("Internal error when deleting map ID '$mapid'!");
301
 
302
  do_action('mappress_map_delete', $mapid); // Use for your own developments
303
+ Mappress::ajax_response('OK');
304
  }
305
 
306
  /**
307
  * Delete a map assignment(s) for a post
308
  * If $mapid is null, then ALL maps will be removed from the post
309
+ * Maps are not deleted, only the post_table entry is removed
310
  *
311
  * @param int $mapid Map to remove
312
  * @param int $postid Post to remove from
355
  // Last chance to alter map before display
356
  do_action('mappress_map_display', $this);
357
 
358
+ // Empty container to prevent pop-ins
359
+ $id = $this->name . '-layout';
360
+ $html = "<div class='mapp-layout' id='$id'></div>";
361
+
362
+ // Dynamically enqueue scripts
363
  Mappress::scripts_enqueue();
364
  $script = "mapp.data.push( " . json_encode($this) . " ); \r\nif (typeof mapp.load != 'undefined') { mapp.load(); };";
365
 
372
  return $html;
373
  }
374
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
375
  /**
376
  * Prepare map for output
377
  *
mappress_settings.php CHANGED
@@ -8,8 +8,9 @@ class Mappress_Options extends Mappress_Obj {
8
  $autoupdate,
9
  $apiKey,
10
  $apiKeyServer,
11
- $autodisplay = 'top',
12
  $betas,
 
13
  $country,
14
  $css = true,
15
  $defaultIcon,
@@ -26,7 +27,6 @@ class Mappress_Options extends Mappress_Obj {
26
  $language,
27
  $layout = 'left',
28
  $license,
29
- // TBD $mapOptions = array('mapTypeControl' => true, 'streetViewControl' => true, 'zoomControl' => true),
30
  $mapbox,
31
  $mapboxStyles = array(),
32
  $mashupBody = 'poi',
@@ -34,6 +34,7 @@ class Mappress_Options extends Mappress_Obj {
34
  $mashupKml,
35
  $metaKeys = array(),
36
  $metaSyncSave = true,
 
37
  $poiList = false,
38
  $poiZoom = 15,
39
  $postTypes = array('post', 'page'),
@@ -84,13 +85,13 @@ class Mappress_Settings {
84
  $this->add_section('demo', __('Sample Map', 'mappress-google-maps-for-wordpress'));
85
 
86
  $this->add_section('basic', __('Basic Settings', 'mappress-google-maps-for-wordpress'));
87
- $this->add_field('engine', __('Mapping Engine', 'mappress-google-maps-for-wordpress'), 'basic');
88
 
89
- if ($this->options->engine == 'leaflet') {
90
- $this->add_field('mapbox', __('Mapbox access token', 'mappress-google-maps-for-wordpress'), 'basic');
91
- } else {
92
  $this->add_field('apiKey', __('Google API key', 'mappress-google-maps-for-wordpress'), 'basic');
93
- }
 
 
94
 
95
  // License: single blogs, or main blog on multisite
96
  if (Mappress::$pro && (!is_multisite() || (is_super_admin() && is_main_site())) )
@@ -101,7 +102,7 @@ class Mappress_Settings {
101
  $this->add_field('autodisplay', __('Automatic display', 'mappress-google-maps-for-wordpress'), 'maps');
102
  $this->add_field('alignment', __('Map alignment', 'mappress-google-maps-for-wordpress'), 'maps');
103
  $this->add_field('directions', __('Directions', 'mappress-google-maps-for-wordpress'), 'maps');
104
- // TBD $this->add_field('mapOptions', __('Map options'), 'maps');
105
 
106
  $this->add_section('pois', __('POI Settings', 'mappress-google-maps-for-wordpress'));
107
  $this->add_field('poiZoom', __('Default zoom', 'mappress-google-maps-for-wordpress'), 'pois');
@@ -116,15 +117,15 @@ class Mappress_Settings {
116
  }
117
 
118
  $this->add_section('l10n', __('Localization', 'mappress-google-maps-for-wordpress'));
119
- $this->add_field('language', __('Language', 'mappress-google-maps-for-wordpress'), 'l10n');
120
- $this->add_field('country', __('Country', 'mappress-google-maps-for-wordpress'), 'l10n');
121
  $this->add_field('directionsServer', __('Directions server', 'mappress-google-maps-for-wordpress'), 'l10n');
122
 
123
  $this->add_section('misc', __('Miscellaneous', 'mappress-google-maps-for-wordpress'));
 
 
124
  if ($this->options->engine != 'leaflet')
125
  $this->add_field('deregister', __('Compatiblity', 'mappress-google-maps-for-wordpress'), 'misc');
126
- $this->add_field('footer', __('Scripts', 'mappress-google-maps-for-wordpress'), 'misc');
127
- $this->add_field('sizes', __('Map sizes', 'mappress-google-maps-for-wordpress'), 'misc');
128
  }
129
 
130
  function add_section($section, $title) {
@@ -150,12 +151,6 @@ class Mappress_Settings {
150
  $input[$key] = trim($input[$key]);
151
  }
152
 
153
- // Sizes - strip 'px' from value if user entered it
154
- foreach( $input['sizes'] as &$size ) {
155
- $size['width'] = str_ireplace('px', '', $size['width']);
156
- $size['height'] = str_ireplace('px', '', $size['height']);
157
- }
158
-
159
  // If NO post types selected, set value to empty array
160
  if (!isset($input['postTypes']))
161
  $input['postTypes'] = array();
@@ -183,17 +178,15 @@ class Mappress_Settings {
183
  }
184
 
185
  function set_api_key($name) {
186
- // Google API key; show as hidden field if using leaflet
187
- $type = ($this->options->engine == 'leaflet') ? 'hidden' : 'text';
188
- echo Mappress_Controls::input($name, $this->options->apiKey, array('type' => $type, 'size' => '50'));
189
- echo Mappress_Controls::help('', '#toc-google-maps-api-keys');
190
  }
191
 
192
  function set_autodisplay($name) {
193
  $autos = array(
 
194
  'top' => __('Top of post', 'mappress-google-maps-for-wordpress'),
195
- 'bottom' => __('Bottom of post', 'mappress-google-maps-for-wordpress'),
196
- 'none' => __('None', 'mappress-google-maps-for-wordpress')
197
  );
198
  echo Mappress_Controls::radios($name, $autos, $this->options->autodisplay);
199
  }
@@ -224,7 +217,7 @@ class Mappress_Settings {
224
  function set_engine($name) {
225
  $engines = array('leaflet' => __('Leaflet', 'mappress-google-maps-for-wordpress'), 'google' => __('Google', 'mappress-google-maps-for-wordpress'));
226
  echo Mappress_Controls::radios($name, $engines, $this->options->engine);
227
- echo Mappress_Controls::help(__('Leaflet is free and requires no API key. Google requires an API key and has strict usage limits.', 'mappress-google-maps-for-wordpress'), '#toc-picking-a-mapping-engine');
228
  }
229
 
230
  function set_footer($name) {
@@ -245,9 +238,9 @@ class Mappress_Settings {
245
  function set_language($name) {
246
  $url = ($this->options->engine == 'leaflet') ? 'https://en.wikipedia.org/wiki/ISO_639-1' : 'http://code.google.com/apis/maps/faq.html#languagesupport';
247
  $lang_link = sprintf('<a style="vertical-align:text-bottom" target="_blank" href="%s">%s</a>', $url, __("(list)", 'mappress-google-maps-for-wordpress'));
248
- $langs = array('' => '', 'ab' => 'Abkhazian', 'aa' => 'Afar', 'af' => 'Afrikaans', 'ak' => 'Akan', 'sq' => 'Albanian', 'am' => 'Amharic', 'ar' => 'Arabic', 'an' => 'Aragonese', 'hy' => 'Armenian', 'as' => 'Assamese', 'av' => 'Avaric', 'ae' => 'Avestan', 'ay' => 'Aymara', 'az' => 'Azerbaijani', 'bm' => 'Bambara', 'ba' => 'Bashkir', 'eu' => 'Basque', 'be' => 'Belarusian', 'bn' => 'Bengali', 'bh' => 'Bihari languages', 'bi' => 'Bislama', 'bs' => 'Bosnian', 'br' => 'Breton', 'bg' => 'Bulgarian', 'my' => 'Burmese', 'ca' => 'Catalan, Valencian', 'km' => 'Central Khmer', 'ch' => 'Chamorro', 'ce' => 'Chechen', 'ny' => 'Chichewa, Chewa, Nyanja', 'zh' => 'Chinese', 'cv' => 'Chuvash', 'kw' => 'Cornish', 'co' => 'Corsican', 'cr' => 'Cree', 'hr' => 'Croatian', 'cs' => 'Czech', 'da' => 'Danish', 'dv' => 'Divehi, Dhivehi, Maldivian', 'nl' => 'Dutch, Flemish', 'dz' => 'Dzongkha', 'en' => 'English', 'eo' => 'Esperanto', 'et' => 'Estonian', 'ee' => 'Ewe', 'fo' => 'Faroese', 'fj' => 'Fijian', 'fi' => 'Finnish', 'fr' => 'French', 'ff' => 'Fulah', 'gd' => 'Gaelic, Scottish Gaelic', 'gl' => 'Galician', 'lg' => 'Ganda', 'ka' => 'Georgian', 'de' => 'German', 'ki' => 'Gikuyu, Kikuyu', 'el' => 'Greek (Modern)', 'kl' => 'Greenlandic, Kalaallisut', 'gn' => 'Guarani', 'gu' => 'Gujarati', 'ht' => 'Haitian, Haitian Creole', 'ha' => 'Hausa', 'he' => 'Hebrew', 'hz' => 'Herero', 'hi' => 'Hindi', 'ho' => 'Hiri Motu', 'hu' => 'Hungarian', 'is' => 'Icelandic', 'io' => 'Ido', 'ig' => 'Igbo', 'id' => 'Indonesian', 'iu' => 'Inuktitut', 'ik' => 'Inupiaq', 'ga' => 'Irish', 'it' => 'Italian', 'ja' => 'Japanese', 'jv' => 'Javanese', 'kn' => 'Kannada', 'kr' => 'Kanuri', 'ks' => 'Kashmiri', 'kk' => 'Kazakh', 'rw' => 'Kinyarwanda', 'kv' => 'Komi', 'kg' => 'Kongo', 'ko' => 'Korean', 'kj' => 'Kwanyama, Kuanyama', 'ku' => 'Kurdish', 'ky' => 'Kyrgyz', 'lo' => 'Lao', 'la' => 'Latin', 'lv' => 'Latvian', 'lb' => 'Letzeburgesch, Luxembourgish', 'li' => 'Limburgish, Limburgan, Limburger', 'ln' => 'Lingala', 'lt' => 'Lithuanian', 'lu' => 'Luba-Katanga', 'mk' => 'Macedonian', 'mg' => 'Malagasy', 'ms' => 'Malay', 'ml' => 'Malayalam', 'mt' => 'Maltese', 'gv' => 'Manx', 'mi' => 'Maori', 'mr' => 'Marathi', 'mh' => 'Marshallese', 'ro' => 'Moldovan, Moldavian, Romanian', 'mn' => 'Mongolian', 'na' => 'Nauru', 'nv' => 'Navajo, Navaho', 'nd' => 'Northern Ndebele', 'ng' => 'Ndonga', 'ne' => 'Nepali', 'se' => 'Northern Sami', 'no' => 'Norwegian', 'nb' => 'Norwegian Bokmål', 'nn' => 'Norwegian Nynorsk', 'ii' => 'Nuosu, Sichuan Yi', 'oc' => 'Occitan (post 1500)', 'oj' => 'Ojibwa', 'or' => 'Oriya', 'om' => 'Oromo', 'os' => 'Ossetian, Ossetic', 'pi' => 'Pali', 'pa' => 'Panjabi, Punjabi', 'ps' => 'Pashto, Pushto', 'fa' => 'Persian', 'pl' => 'Polish', 'pt' => 'Portuguese', 'qu' => 'Quechua', 'rm' => 'Romansh', 'rn' => 'Rundi', 'ru' => 'Russian', 'sm' => 'Samoan', 'sg' => 'Sango', 'sa' => 'Sanskrit', 'sc' => 'Sardinian', 'sr' => 'Serbian', 'sn' => 'Shona', 'sd' => 'Sindhi', 'si' => 'Sinhala, Sinhalese', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'so' => 'Somali', 'st' => 'Sotho, Southern', 'nr' => 'South Ndebele', 'es' => 'Spanish, Castilian', 'su' => 'Sundanese', 'sw' => 'Swahili', 'ss' => 'Swati', 'sv' => 'Swedish', 'tl' => 'Tagalog', 'ty' => 'Tahitian', 'tg' => 'Tajik', 'ta' => 'Tamil', 'tt' => 'Tatar', 'te' => 'Telugu', 'th' => 'Thai', 'bo' => 'Tibetan', 'ti' => 'Tigrinya', 'to' => 'Tonga (Tonga Islands)', 'ts' => 'Tsonga', 'tn' => 'Tswana', 'tr' => 'Turkish', 'tk' => 'Turkmen', 'tw' => 'Twi', 'ug' => 'Uighur, Uyghur', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'uz' => 'Uzbek', 've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'Volap_k', 'wa' => 'Walloon', 'cy' => 'Welsh', 'fy' => 'Western Frisian', 'wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang, Chuang', 'zu' => 'Zulu');
249
  echo Mappress_Controls::select($name, $langs, $this->options->language);
250
- echo ' ' . __('Language for map controls', 'mappress-google-maps-for-wordpress') . ' ' . $lang_link;
251
  }
252
 
253
  function set_mapbox($name) {
@@ -255,26 +248,26 @@ class Mappress_Settings {
255
  echo Mappress_Controls::help('', 'https://www.mapbox.com/help/define-access-token/');
256
  }
257
 
258
- function set_map_options($name) {
259
- $labels = array(
260
- 'google' => array(
261
- 'mapTypeControl' => __('Map type control', 'mappress-google-maps-for-wordpress'),
262
- 'streetViewControl' => __("Street view control", 'mappress-google-maps-for-wordpress'),
263
- 'zoomControl' => __('Zoom control', 'mappress-google-maps-for-wordpress')
264
- ),
265
- 'leaflet' => array(
266
- 'mapTypeControl' => __('Map type control', 'mappress-google-maps-for-wordpress'),
267
- 'zoomControl' => __('Zoom control', 'mappress-google-maps-for-wordpress')
268
- )
269
- );
270
-
271
- $mapOptions = $this->options->mapOptions;
272
-
273
- foreach($labels[$this->options->engine] as $option => $label) {
274
- $value = (isset($mapOptions->$option)) ? $mapOptions->$option : false;
275
- echo Mappress_Controls::checkmark($name . "[$option]", $value, $label);
276
- }
277
- }
278
 
279
  function set_poi_zoom($name) {
280
  $zooms = array_combine(range(1, 17), range(1,17));
@@ -300,7 +293,7 @@ class Mappress_Settings {
300
  echo "<table class='form-table'><tr><td>" . $map->display() . "</td></tr></table>";
301
  }
302
  function set_sizes($name) {
303
- $headers = array(__('Width (px or %)', 'mappress-google-maps-for-wordpress'), __('Height (px)', 'mappress-google-maps-for-wordpress'), __('Default size', 'mappress-google-maps-for-wordpress'));
304
  $rows = array();
305
 
306
  foreach($this->options->sizes as $i => $size) {
@@ -338,4 +331,4 @@ class Mappress_Settings {
338
  <?php
339
  }
340
  }
341
- ?>
8
  $autoupdate,
9
  $apiKey,
10
  $apiKeyServer,
11
+ $autodisplay,
12
  $betas,
13
+ $clustering = false,
14
  $country,
15
  $css = true,
16
  $defaultIcon,
27
  $language,
28
  $layout = 'left',
29
  $license,
 
30
  $mapbox,
31
  $mapboxStyles = array(),
32
  $mashupBody = 'poi',
34
  $mashupKml,
35
  $metaKeys = array(),
36
  $metaSyncSave = true,
37
+ $mini = 400,
38
  $poiList = false,
39
  $poiZoom = 15,
40
  $postTypes = array('post', 'page'),
85
  $this->add_section('demo', __('Sample Map', 'mappress-google-maps-for-wordpress'));
86
 
87
  $this->add_section('basic', __('Basic Settings', 'mappress-google-maps-for-wordpress'));
88
+ $this->add_field('engine', __('Mapping API', 'mappress-google-maps-for-wordpress'), 'basic');
89
 
90
+ if ($this->options->engine == 'google')
 
 
91
  $this->add_field('apiKey', __('Google API key', 'mappress-google-maps-for-wordpress'), 'basic');
92
+
93
+ if ($this->options->engine == 'leaflet')
94
+ $this->add_field('mapbox', __('Mapbox access token', 'mappress-google-maps-for-wordpress'), 'basic');
95
 
96
  // License: single blogs, or main blog on multisite
97
  if (Mappress::$pro && (!is_multisite() || (is_super_admin() && is_main_site())) )
102
  $this->add_field('autodisplay', __('Automatic display', 'mappress-google-maps-for-wordpress'), 'maps');
103
  $this->add_field('alignment', __('Map alignment', 'mappress-google-maps-for-wordpress'), 'maps');
104
  $this->add_field('directions', __('Directions', 'mappress-google-maps-for-wordpress'), 'maps');
105
+ // TBD $this->add_field('mapOptions', __('Map options'), 'maps');
106
 
107
  $this->add_section('pois', __('POI Settings', 'mappress-google-maps-for-wordpress'));
108
  $this->add_field('poiZoom', __('Default zoom', 'mappress-google-maps-for-wordpress'), 'pois');
117
  }
118
 
119
  $this->add_section('l10n', __('Localization', 'mappress-google-maps-for-wordpress'));
120
+ $this->add_field('language', __('Search language', 'mappress-google-maps-for-wordpress'), 'l10n');
121
+ $this->add_field('country', __('Search country', 'mappress-google-maps-for-wordpress'), 'l10n');
122
  $this->add_field('directionsServer', __('Directions server', 'mappress-google-maps-for-wordpress'), 'l10n');
123
 
124
  $this->add_section('misc', __('Miscellaneous', 'mappress-google-maps-for-wordpress'));
125
+ $this->add_field('sizes', __('Map sizes', 'mappress-google-maps-for-wordpress'), 'misc');
126
+ $this->add_field('footer', __('Scripts', 'mappress-google-maps-for-wordpress'), 'misc');
127
  if ($this->options->engine != 'leaflet')
128
  $this->add_field('deregister', __('Compatiblity', 'mappress-google-maps-for-wordpress'), 'misc');
 
 
129
  }
130
 
131
  function add_section($section, $title) {
151
  $input[$key] = trim($input[$key]);
152
  }
153
 
 
 
 
 
 
 
154
  // If NO post types selected, set value to empty array
155
  if (!isset($input['postTypes']))
156
  $input['postTypes'] = array();
178
  }
179
 
180
  function set_api_key($name) {
181
+ echo Mappress_Controls::input($name, $this->options->apiKey, array('size' => '50'));
182
+ echo Mappress_Controls::help('', 'https://mappresspro.com/mappress-faq/#toc-google-maps-api-keys');
 
 
183
  }
184
 
185
  function set_autodisplay($name) {
186
  $autos = array(
187
+ '' => __('None', 'mappress-google-maps-for-wordpress'),
188
  'top' => __('Top of post', 'mappress-google-maps-for-wordpress'),
189
+ 'bottom' => __('Bottom of post', 'mappress-google-maps-for-wordpress')
 
190
  );
191
  echo Mappress_Controls::radios($name, $autos, $this->options->autodisplay);
192
  }
217
  function set_engine($name) {
218
  $engines = array('leaflet' => __('Leaflet', 'mappress-google-maps-for-wordpress'), 'google' => __('Google', 'mappress-google-maps-for-wordpress'));
219
  echo Mappress_Controls::radios($name, $engines, $this->options->engine);
220
+ echo Mappress_Controls::help(__('Leaflet is free and requires no API key. Google requires an API key and has strict usage limits.', 'mappress-google-maps-for-wordpress'), '#toc-picking-a-mapping-api');
221
  }
222
 
223
  function set_footer($name) {
238
  function set_language($name) {
239
  $url = ($this->options->engine == 'leaflet') ? 'https://en.wikipedia.org/wiki/ISO_639-1' : 'http://code.google.com/apis/maps/faq.html#languagesupport';
240
  $lang_link = sprintf('<a style="vertical-align:text-bottom" target="_blank" href="%s">%s</a>', $url, __("(list)", 'mappress-google-maps-for-wordpress'));
241
+ $langs = array('' => __('Default', 'mappress-google-maps-for-wordpress'), 'ab' => 'Abkhazian', 'aa' => 'Afar', 'af' => 'Afrikaans', 'ak' => 'Akan', 'sq' => 'Albanian', 'am' => 'Amharic', 'ar' => 'Arabic', 'an' => 'Aragonese', 'hy' => 'Armenian', 'as' => 'Assamese', 'av' => 'Avaric', 'ae' => 'Avestan', 'ay' => 'Aymara', 'az' => 'Azerbaijani', 'bm' => 'Bambara', 'ba' => 'Bashkir', 'eu' => 'Basque', 'be' => 'Belarusian', 'bn' => 'Bengali', 'bh' => 'Bihari languages', 'bi' => 'Bislama', 'bs' => 'Bosnian', 'br' => 'Breton', 'bg' => 'Bulgarian', 'my' => 'Burmese', 'ca' => 'Catalan, Valencian', 'km' => 'Central Khmer', 'ch' => 'Chamorro', 'ce' => 'Chechen', 'ny' => 'Chichewa, Chewa, Nyanja', 'zh' => 'Chinese', 'cv' => 'Chuvash', 'kw' => 'Cornish', 'co' => 'Corsican', 'cr' => 'Cree', 'hr' => 'Croatian', 'cs' => 'Czech', 'da' => 'Danish', 'dv' => 'Divehi, Dhivehi, Maldivian', 'nl' => 'Dutch, Flemish', 'dz' => 'Dzongkha', 'en' => 'English', 'eo' => 'Esperanto', 'et' => 'Estonian', 'ee' => 'Ewe', 'fo' => 'Faroese', 'fj' => 'Fijian', 'fi' => 'Finnish', 'fr' => 'French', 'ff' => 'Fulah', 'gd' => 'Gaelic, Scottish Gaelic', 'gl' => 'Galician', 'lg' => 'Ganda', 'ka' => 'Georgian', 'de' => 'German', 'ki' => 'Gikuyu, Kikuyu', 'el' => 'Greek (Modern)', 'kl' => 'Greenlandic, Kalaallisut', 'gn' => 'Guarani', 'gu' => 'Gujarati', 'ht' => 'Haitian, Haitian Creole', 'ha' => 'Hausa', 'he' => 'Hebrew', 'hz' => 'Herero', 'hi' => 'Hindi', 'ho' => 'Hiri Motu', 'hu' => 'Hungarian', 'is' => 'Icelandic', 'io' => 'Ido', 'ig' => 'Igbo', 'id' => 'Indonesian', 'iu' => 'Inuktitut', 'ik' => 'Inupiaq', 'ga' => 'Irish', 'it' => 'Italian', 'ja' => 'Japanese', 'jv' => 'Javanese', 'kn' => 'Kannada', 'kr' => 'Kanuri', 'ks' => 'Kashmiri', 'kk' => 'Kazakh', 'rw' => 'Kinyarwanda', 'kv' => 'Komi', 'kg' => 'Kongo', 'ko' => 'Korean', 'kj' => 'Kwanyama, Kuanyama', 'ku' => 'Kurdish', 'ky' => 'Kyrgyz', 'lo' => 'Lao', 'la' => 'Latin', 'lv' => 'Latvian', 'lb' => 'Letzeburgesch, Luxembourgish', 'li' => 'Limburgish, Limburgan, Limburger', 'ln' => 'Lingala', 'lt' => 'Lithuanian', 'lu' => 'Luba-Katanga', 'mk' => 'Macedonian', 'mg' => 'Malagasy', 'ms' => 'Malay', 'ml' => 'Malayalam', 'mt' => 'Maltese', 'gv' => 'Manx', 'mi' => 'Maori', 'mr' => 'Marathi', 'mh' => 'Marshallese', 'ro' => 'Moldovan, Moldavian, Romanian', 'mn' => 'Mongolian', 'na' => 'Nauru', 'nv' => 'Navajo, Navaho', 'nd' => 'Northern Ndebele', 'ng' => 'Ndonga', 'ne' => 'Nepali', 'se' => 'Northern Sami', 'no' => 'Norwegian', 'nb' => 'Norwegian Bokmål', 'nn' => 'Norwegian Nynorsk', 'ii' => 'Nuosu, Sichuan Yi', 'oc' => 'Occitan (post 1500)', 'oj' => 'Ojibwa', 'or' => 'Oriya', 'om' => 'Oromo', 'os' => 'Ossetian, Ossetic', 'pi' => 'Pali', 'pa' => 'Panjabi, Punjabi', 'ps' => 'Pashto, Pushto', 'fa' => 'Persian', 'pl' => 'Polish', 'pt' => 'Portuguese', 'qu' => 'Quechua', 'rm' => 'Romansh', 'rn' => 'Rundi', 'ru' => 'Russian', 'sm' => 'Samoan', 'sg' => 'Sango', 'sa' => 'Sanskrit', 'sc' => 'Sardinian', 'sr' => 'Serbian', 'sn' => 'Shona', 'sd' => 'Sindhi', 'si' => 'Sinhala, Sinhalese', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'so' => 'Somali', 'st' => 'Sotho, Southern', 'nr' => 'South Ndebele', 'es' => 'Spanish, Castilian', 'su' => 'Sundanese', 'sw' => 'Swahili', 'ss' => 'Swati', 'sv' => 'Swedish', 'tl' => 'Tagalog', 'ty' => 'Tahitian', 'tg' => 'Tajik', 'ta' => 'Tamil', 'tt' => 'Tatar', 'te' => 'Telugu', 'th' => 'Thai', 'bo' => 'Tibetan', 'ti' => 'Tigrinya', 'to' => 'Tonga (Tonga Islands)', 'ts' => 'Tsonga', 'tn' => 'Tswana', 'tr' => 'Turkish', 'tk' => 'Turkmen', 'tw' => 'Twi', 'ug' => 'Uighur, Uyghur', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'uz' => 'Uzbek', 've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'Volap_k', 'wa' => 'Walloon', 'cy' => 'Welsh', 'fy' => 'Western Frisian', 'wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang, Chuang', 'zu' => 'Zulu');
242
  echo Mappress_Controls::select($name, $langs, $this->options->language);
243
+ echo ' ' . __('Language for searches and Google map controls', 'mappress-google-maps-for-wordpress') . ' ' . $lang_link;
244
  }
245
 
246
  function set_mapbox($name) {
248
  echo Mappress_Controls::help('', 'https://www.mapbox.com/help/define-access-token/');
249
  }
250
 
251
+ function set_map_options($name) {
252
+ $labels = array(
253
+ 'google' => array(
254
+ 'mapTypeControl' => __('Map type control', 'mappress-google-maps-for-wordpress'),
255
+ 'streetViewControl' => __("Street view control", 'mappress-google-maps-for-wordpress'),
256
+ 'zoomControl' => __('Zoom control', 'mappress-google-maps-for-wordpress')
257
+ ),
258
+ 'leaflet' => array(
259
+ 'mapTypeControl' => __('Map type control', 'mappress-google-maps-for-wordpress'),
260
+ 'zoomControl' => __('Zoom control', 'mappress-google-maps-for-wordpress')
261
+ )
262
+ );
263
+
264
+ $mapOptions = $this->options->mapOptions;
265
+
266
+ foreach($labels[$this->options->engine] as $option => $label) {
267
+ $value = (isset($mapOptions->$option)) ? $mapOptions->$option : false;
268
+ echo Mappress_Controls::checkmark($name . "[$option]", $value, $label);
269
+ }
270
+ }
271
 
272
  function set_poi_zoom($name) {
273
  $zooms = array_combine(range(1, 17), range(1,17));
293
  echo "<table class='form-table'><tr><td>" . $map->display() . "</td></tr></table>";
294
  }
295
  function set_sizes($name) {
296
+ $headers = array(__('Width (px, %, vh, vw)', 'mappress-google-maps-for-wordpress'), __('Height (px, %, vh, vw)', 'mappress-google-maps-for-wordpress'), __('Default size', 'mappress-google-maps-for-wordpress'));
297
  $rows = array();
298
 
299
  foreach($this->options->sizes as $i => $size) {
331
  <?php
332
  }
333
  }
334
+ ?>
mappress_template.php CHANGED
@@ -24,9 +24,10 @@ class Mappress_Template extends Mappress_Obj {
24
 
25
 
26
  // Print queued templates
 
27
  add_action('wp_print_scripts', array(__CLASS__, 'print_templates'), -1);
28
  add_action('admin_print_scripts', array(__CLASS__, 'print_templates'), -1);
29
- add_action('wp_print_footer_scripts', array(__CLASS__, 'print_footer_templates'), -10);
30
  add_action('admin_print_footer_scripts', array(__CLASS__, 'print_footer_templates'), -10);
31
 
32
  self::$tokens = array(
@@ -41,10 +42,10 @@ class Mappress_Template extends Mappress_Obj {
41
  }
42
 
43
  static function ajax_delete() {
44
- check_ajax_referer('mappress', 'nonce');
45
 
46
- if (!current_user_can('manage_options'))
47
- Mappress::ajax_response('Not authorized');
48
 
49
  $name = (isset($_POST['name'])) ? $_POST['name'] : null;
50
  $filepath = get_stylesheet_directory() . '/' . $name . '.php';
@@ -57,20 +58,20 @@ class Mappress_Template extends Mappress_Obj {
57
  }
58
 
59
  static function ajax_get() {
60
- check_ajax_referer('mappress', 'nonce');
61
 
62
- if (!current_user_can('manage_options'))
63
- Mappress::ajax_response('Not authorized');
64
 
65
  $name = (isset($_GET['name'])) ? $_GET['name'] : null;
66
  $filename = basename($name) . '.php';
67
  $filepath = get_stylesheet_directory() . '/' . $filename;
68
  $html = @file_get_contents($filepath);
69
 
70
- // Verify legitimate path
71
- $standard_path = realpath(Mappress::$basedir . "/templates/$filename");
72
- if (strpos($standard_path, realpath(Mappress::$basedir)) !== 0)
73
- Mappress::ajax_response('Invalid template path');
74
 
75
  $standard = @file_get_contents($standard_path);
76
 
@@ -88,12 +89,11 @@ class Mappress_Template extends Mappress_Obj {
88
  Mappress::ajax_response('OK', $template);
89
  }
90
 
91
-
92
  static function ajax_save() {
93
- check_ajax_referer('mappress', 'nonce');
94
 
95
- if (!current_user_can('manage_options'))
96
- Mappress::ajax_response('Not authorized');
97
 
98
  $name = (isset($_POST['name'])) ? $_POST['name'] : null;
99
  $content = (isset($_POST['content'])) ? stripslashes($_POST['content']) : null;
@@ -118,7 +118,7 @@ class Mappress_Template extends Mappress_Obj {
118
  return $template_file;
119
 
120
  // Check forms directory
121
- $template_file = Mappress::$basedir . "/forms/$template_name";
122
  if (file_exists($template_file))
123
  return $template_file;
124
 
@@ -129,15 +129,19 @@ class Mappress_Template extends Mappress_Obj {
129
  * Get template.
130
  */
131
  static function get_template($template_name, $args = array()) {
132
- ob_start();
133
  foreach($args as $arg => $value)
134
  $$arg = $value;
135
  $template_file = self::locate_template($template_name);
136
- if ($template_file)
 
 
137
  require($template_file);
138
- $html = ob_get_clean();
139
- $html = str_replace(array("\r\n", "\t"), array(), $html); // Strip chars that won't display in html anyway
140
- return $html;
 
 
 
141
  }
142
 
143
  static function filter_poi_props($props, $postid) {
@@ -184,10 +188,14 @@ class Mappress_Template extends Mappress_Obj {
184
  }
185
 
186
  static function print_template($template_name) {
187
- if (in_array($template_name, array('editor', 'media', 'settings')))
 
188
  require(self::locate_template($template_name));
189
- else
190
- printf("<script type='text/html' id='mapp-tmpl-$template_name'>%s</script>", self::get_template($template_name));
 
 
 
191
  }
192
  }
193
  ?>
24
 
25
 
26
  // Print queued templates
27
+ // wp_footer used instead of wp_footer_scripts because NGG reverses calling order of the two hooks
28
  add_action('wp_print_scripts', array(__CLASS__, 'print_templates'), -1);
29
  add_action('admin_print_scripts', array(__CLASS__, 'print_templates'), -1);
30
+ add_action('wp_footer', array(__CLASS__, 'print_footer_templates'), -10);
31
  add_action('admin_print_footer_scripts', array(__CLASS__, 'print_footer_templates'), -10);
32
 
33
  self::$tokens = array(
42
  }
43
 
44
  static function ajax_delete() {
45
+ check_ajax_referer('mappress', 'nonce');
46
 
47
+ if (!current_user_can('manage_options'))
48
+ Mappress::ajax_response('Not authorized');
49
 
50
  $name = (isset($_POST['name'])) ? $_POST['name'] : null;
51
  $filepath = get_stylesheet_directory() . '/' . $name . '.php';
58
  }
59
 
60
  static function ajax_get() {
61
+ check_ajax_referer('mappress', 'nonce');
62
 
63
+ if (!current_user_can('manage_options'))
64
+ Mappress::ajax_response('Not authorized');
65
 
66
  $name = (isset($_GET['name'])) ? $_GET['name'] : null;
67
  $filename = basename($name) . '.php';
68
  $filepath = get_stylesheet_directory() . '/' . $filename;
69
  $html = @file_get_contents($filepath);
70
 
71
+ // Verify legitimate path
72
+ $standard_path = realpath(Mappress::$basedir . "/templates/$filename");
73
+ if (strpos($standard_path, realpath(Mappress::$basedir)) !== 0)
74
+ Mappress::ajax_response('Invalid template path');
75
 
76
  $standard = @file_get_contents($standard_path);
77
 
89
  Mappress::ajax_response('OK', $template);
90
  }
91
 
 
92
  static function ajax_save() {
93
+ check_ajax_referer('mappress', 'nonce');
94
 
95
+ if (!current_user_can('manage_options'))
96
+ Mappress::ajax_response('Not authorized');
97
 
98
  $name = (isset($_POST['name'])) ? $_POST['name'] : null;
99
  $content = (isset($_POST['content'])) ? stripslashes($_POST['content']) : null;
118
  return $template_file;
119
 
120
  // Check forms directory
121
+ $template_file = Mappress::$basedir . "/templates_admin/$template_name";
122
  if (file_exists($template_file))
123
  return $template_file;
124
 
129
  * Get template.
130
  */
131
  static function get_template($template_name, $args = array()) {
 
132
  foreach($args as $arg => $value)
133
  $$arg = $value;
134
  $template_file = self::locate_template($template_name);
135
+
136
+ if ($template_file) {
137
+ ob_start();
138
  require($template_file);
139
+ $html = ob_get_clean();
140
+ $html = str_replace(array("\r\n", "\t"), array(), $html); // Strip chars that won't display in html anyway
141
+ return $html;
142
+ } else {
143
+ return false;
144
+ }
145
  }
146
 
147
  static function filter_poi_props($props, $postid) {
188
  }
189
 
190
  static function print_template($template_name) {
191
+ // Read collections of templates or individual templates
192
+ if (in_array($template_name, array('editor', 'map', 'widgets')))
193
  require(self::locate_template($template_name));
194
+ else {
195
+ $template = self::get_template($template_name);
196
+ if ($template)
197
+ printf("<script type='text/html' id='mapp-tmpl-$template_name'>%s</script>", $template);
198
+ }
199
  }
200
  }
201
  ?>
readme.txt CHANGED
@@ -1,55 +1,50 @@
1
  === MapPress Maps for WordPress ===
2
  Contributors: chrisvrichardson
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4339298
4
- Tags: leaflet, openstreetmap, osm, mapbox, map box, google maps,google,map,maps,easy,poi,mapping,mapper,gps,lat,lon,latitude,longitude,geocoder,geocoding,georss,geo rss,geo,v3,marker,mashup,mash,api,v3,buddypress,mashup,geo,wp-geo,geo mashup,simplemap,simple,wpml
5
- Requires at least: 4.5
6
- Tested up to: 5.5
7
- Stable tag: 2.54.6
8
 
9
  == Description ==
10
- MapPress adds beautiful, interactive Google or Leaflet maps to WordPress.
11
 
12
- When editing a post or page just enter any addresses you'd like to map and the plugin will automatically insert an interactive map into your blog.
13
- The free version supports unlimited maps and multiple maps per post.
14
 
15
- For additional features, try [MapPress Pro](https://mappresspro.com/mappress)
16
 
17
  [Home Page](https://mappresspro.com/mappress)
18
  [Documentation](https://mappresspro.com/mappress-beta)
19
  [FAQ](https://mappresspro.com/mappress-faq)
20
  [Support](https://mappresspro.com/mappress-faq)
21
 
22
-
23
  = Key Features =
24
- * MapPress is based on the latest Google and Leaflet APIs
25
- * WordPress MultiSite compatible
26
- * Custom post types are supported
27
- * Easily create maps right in the standard post edit and page edit screens
28
- * Add markers for any address, place or latitude/longitude location, or drag markers where you want them
29
- * Create custom text and HTML for the markers, including photos, links, etc.
30
- * Street view supported
31
- * Readers can get driving, walking and bicycling directions right in your blog. Directions can be dragged to change waypoints or route
32
- * Multiple maps can be created in a single post or page
33
- * Real-time traffic
34
- * New shortcodes with many parameters: "mapid" (to specify which map to show), "width" "height", "zoom", etc.
35
 
36
  = Pro Version Features =
37
- * Get the [MapPress Pro Version](https://mappresspro.com/mappress) for additional functionality
38
- * Use marker icons in your maps - 100 standard icons included
39
- * Use your own custom icons or download thousands of icons from the web
40
- * Create mashups by taxonomy, tag, category, or post to show multiple locations on a single map
41
- * Map widget to show a map or a mashup
42
-
43
- == Screenshots ==
44
- 1. Options screen
45
- 2. More options
46
- 3. Visual map editor in WordPress post editor
47
- 4. Mashup shortcode in a post
48
- 5. Mashup in your blog
49
- 6. Street view of mashup location
 
 
50
 
51
  = Localization =
52
- Please [Contact me](https://mappresspro.com/chris-contact) if you'd like to provide a translation or an update. Special thanks to all the folks who created and udpated translations.
53
 
54
  == Installation ==
55
 
@@ -76,55 +71,63 @@ Please see the plugin documentation pages:
76
  1. Delete your old MapPress version (don't worry, the maps are saved in the database)
77
  1. Follow the installation instructions to install the new version
78
 
79
- == Screenshots ==
80
-
81
- 1. Options screen
82
- 2. Visual map editor in posts and pages
83
- 3. Edit map markers in the post editor
84
- 4. Get directions from any map marker
85
-
86
  == Changelog ==
87
 
88
- = 2.54.6 =
89
- * Fixed: added additional security to template display function
90
-
91
- = 2.54.5 =
92
- * Fixed: error is media JS on post/page list screen
93
-
94
- = 2.54.4 =
95
- * Added: authorization checks added for saving maps ('edit_posts') and templates ('manage_options')
96
-
97
- = 2.54.3 =
98
- * Fixed: POI list not displaying in sidebar widgets
99
-
100
- = 2.54.2 =
101
- * Fixed: script loading error in Gutenberg editor
102
-
103
- = 2.54.1 =
104
- * Fixed: removed wp_set_script_translations for older WP versions
105
- * Changed: internal separation of media and editor classes
106
-
107
- = 2.54 =
108
- * Changed: Google map type control is hidden in frontend, visible only in editor
109
- * Changed: scrollwheel zoom and keyboard shortcuts are now enabled by default (to match Google API defaults)
110
- * Changed: filters 'mappress_tile_providers' and 'mappress_baselayers' replaced by filter 'mappress_options'
111
- * Changed: map filters taxonomy can only be defined via settings, not in shortcodes
112
- * Changed: improved handling of user location in directions form
113
- * Changed: directions form closes when map is dragged or clicked
114
- * Changed: internal updates to template editor, icon/color pickers, JavaScript loading
115
-
116
- = 2.53.9 =
117
- * Fixed: internal updates to ajax functions with nonces
118
-
119
- = 2.53.8 =
120
- * Changed: mashups no longer automatically focus the search box, since this can cause unwanted scrolling
121
-
122
- = 2.53.7 =
123
- * Fixed: change in build process delivered version with missing .js files
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
 
125
  = 2.53.6 =
126
  * Changed: additional CSS changes to migrate layout to flex
127
- * Changed: map font set to sans-serif to override themes
128
  * Fixed: warning in settings when switching map engine type
129
  * Fixed: warning in PHP log when displaying empty mashups
130
  * Fixed: mashup sometimes deselected current POI in list for small maps
1
  === MapPress Maps for WordPress ===
2
  Contributors: chrisvrichardson
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4339298
4
+ Tags: google, leaflet, openstreetmap, osm, mapbox, map, maps, mapping, mapper, gps, geocoder, geocoding, georss, mashup, wpml, multisite
5
+ Requires at least: 5.3
6
+ Tested up to: 5.6
7
+ Stable tag: 2.56.3
8
 
9
  == Description ==
10
+ MapPress adds beautiful interfactive Google and Leaflet maps to WordPress.
11
 
12
+ Easily create unlimited maps and locations using the Gutenberg block editor, classic editor or shortcodes.
 
13
 
14
+ Upgrade to [MapPress Pro](https://mappresspro.com/mappress) for custom markers, searchable mashups, clustering, and much more.
15
 
16
  [Home Page](https://mappresspro.com/mappress)
17
  [Documentation](https://mappresspro.com/mappress-beta)
18
  [FAQ](https://mappresspro.com/mappress-faq)
19
  [Support](https://mappresspro.com/mappress-faq)
20
 
 
21
  = Key Features =
22
+ * Add unlimited maps and markers to any post, page or custom post type
23
+ * Locations can be added by address, place, or latitude/longitude, or dragged into position
24
+ * Markers support custom text and HTML including photos, images, and links
25
+ * Google street view and overlays (traffic, bicycling and transit)
26
+ * Markers link to Google maps for detailed turn-by-turn directins
27
+ * Maps can be generated using PHP for use in themes and templates
 
 
 
 
 
28
 
29
  = Pro Version Features =
30
+ * Get [MapPress Pro](https://mappresspro.com/mappress) for additional functionality
31
+ * Custom marker icons, or upload your own - 100 standard icons included
32
+ * Combine maps and locations into a searchable "mashup" map
33
+ * Filter locations by by taxonomy, tag or category
34
+ * Map and mashup widgets
35
+ * Marker clustering for both Leaflet and Google
36
+ * Multiple geocoders including Google, Nominatim, Algolia and MapBox
37
+ * Customizable marker and list templates
38
+ * Custom map colors and styles using Google styled maps and Mapbox Studio
39
+ * Generate maps automatically from custom fields
40
+ * Automatically assign marker icons by taxonomy, tag, or category
41
+ * KML support for Google Earth
42
+ * Google drawing manager for drawing polygons, circles, and lines directly on your maps
43
+ * MultiSite compatible
44
+ * Compatible with WPML language settings
45
 
46
  = Localization =
47
+ Please [Contact me](https://mappresspro.com/chris-contact) if you'd like to provide a translation or an update. Many thanks to all the folks who have created and udpated translations.
48
 
49
  == Installation ==
50
 
71
  1. Delete your old MapPress version (don't worry, the maps are saved in the database)
72
  1. Follow the installation instructions to install the new version
73
 
 
 
 
 
 
 
 
74
  == Changelog ==
75
 
76
+ = 2.56.3 =
77
+ * Fixed: directions form not working
78
+ * Fixed: fatal error for missing icon upload
79
+
80
+ = 2.56.2 =
81
+ * Changed: map font color set to black
82
+ * Fixed: Next Gen Gallery plugin interferes with template output
83
+
84
+ = 2.56.1 =
85
+ * Added: refresh button for Gutenberg mashup block
86
+ * Added: workaround for Gutenberg 'additional classes' bug (https://core.trac.wordpress.org/ticket/45882)
87
+ * Fixed: POI title was not set for POIs added using Nominatim geocoder
88
+ * Fixed: autocomplete CSS styles are not applied
89
+ * Fixed: Remove console log message
90
+
91
+ = 2.56.0 =
92
+ * Release beta changes from 2.55
93
+
94
+ = 2.55.2 =
95
+ * Added: map library, available in the MapPress settings
96
+ * Changed: map 'picker' dialog now saves scroll position
97
+
98
+ = 2.55.1 =
99
+ * Added: Gutenberg map and mashup blocks added
100
+ * Added: mini mode setting (width at which the left POI list is collapsed)
101
+
102
+ = 2.55 =
103
+ * Added: clustering is now supported, enable it in the MapPress settings screen
104
+ * added: maps with POI list on the left go into 'mini' mode when small: list is hidden and buttons can be used to toggle map or list
105
+ * Added: custom icons can now be uploaded directly in the MapPress settings screen
106
+ * Added: a new widget is available to display a single map, in addition to the mashup widget
107
+ * Added: .jpg icons are now supported in addition to .png and .gif
108
+ * Added: mashup filters dropdown includes post counts for each term
109
+ * Added: filter 'mappress_options' allows global options to be changed before maps are displayed
110
+ * Added: mashup queries now only read post title and body if 'POI content' setting is set to 'Post title + post excerpt'
111
+ * Added: new PHP filters are available for mashup queries: mappress_pre_filter($filters), mappress_pre_query($query) and mappress_post_query($map)
112
+ * Changed: algolia autocomplete has been removed and replaced with jquery autocomplete
113
+ * Changed: because of data discrepancies, algolia places no longer provides autocomplete results for Nominatim/Mapbox geocoders
114
+ * Changed: Nominatim/Mapquest autocomplete requests will affect quotas with those services, only Algolia is "free"
115
+ * Changed: for the 'left' map layout, directions are displayed in the sidebar like the POI list
116
+ * Changed: mashups with blank query now show ALL posts: [mashup] is now equivalent to [mashup query="all"]
117
+ * Changed: to show current posts, use [mashup query="current"] instead of leaving query blank
118
+ * Changed: PHP templates have been converted to JavaScript templates (for example, file 'map.php')
119
+ * Changed: mashup filter CSS has been converted to a grid layout
120
+ * Changed: Leaflet updated to version 1.7.1
121
+ * Changed: JS map 'close' and 'open' methods changed to 'poiOpen' and 'poiClose'
122
+ * Changed: like Google, the Leaflet API is now downloaded from CDN rather than the plugin directory
123
+ * Changed: action 'mappress_map_save' receives entire $map object, not just $mapid
124
+ * Fixed: some geocoders were not properly using the country/language parameters
125
+ * Fixed: color picker not positioning correctly when opened
126
+ * Fixed: popup not positioning correctly when opened
127
 
128
  = 2.53.6 =
129
  * Changed: additional CSS changes to migrate layout to flex
130
+ * Changed: map font switched to sans-serif (overriding theme - change mappress.css if needed)
131
  * Fixed: warning in settings when switching map engine type
132
  * Fixed: warning in PHP log when displaying empty mashups
133
  * Fixed: mashup sometimes deselected current POI in list for small maps
templates/map-controls.php DELETED
@@ -1,12 +0,0 @@
1
- <div class='mapp-controls'>
2
- <div class='mapp-menu-toggle' data-mapp-action='menu-toggle' title='<?php _e('Menu', 'mappress-google-maps-for-wordpress');?>'></div>
3
- <div class='mapp-menu'>
4
- <div class='mapp-menu-item' data-mapp-action='center'><?php _e('Center map', 'mappress-google-maps-for-wordpress');?></div>
5
- <?php if (Mappress::$options->engine != 'leaflet') { ?>
6
- <div class='mapp-menu-separator'></div>
7
- <div class='mapp-menu-item' data-mapp-action='layer' data-mapp-layer='traffic'><?php _e('Traffic', 'mappress-google-maps-for-wordpress');?></div>
8
- <div class='mapp-menu-item' data-mapp-action='layer' data-mapp-layer='bicycling'><?php _e('Bicycling', 'mappress-google-maps-for-wordpress');?></div>
9
- <div class='mapp-menu-item' data-mapp-action='layer' data-mapp-layer='transit'><?php _e('Transit', 'mappress-google-maps-for-wordpress');?></div>
10
- <?php } ?>
11
- </div>
12
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
templates/map-directions.php CHANGED
@@ -1,17 +1,19 @@
1
- <div class='mapp-directions'>
2
- <span class='mapp-close' data-mapp-action='dir-cancel'></span>
3
- <div>
4
- <input class='mapp-dir-saddr' tabindex='1' placeholder='<?php _e("My location", 'mappress-google-maps-for-wordpress');?>' />
5
- <span data-mapp-action='dir-swap' class='mapp-dir-arrows'></span>
6
- </div>
 
7
 
8
- <div>
9
- <input class='mapp-dir-daddr' tabindex='2'/>
10
- </div>
11
 
12
- <div class='mapp-dir-toolbar'>
13
- <span class='mapp-button-submit' data-mapp-action='dir-get'><?php esc_html_e('Get Directions', 'mappress-google-maps-for-wordpress'); ?></span>
14
- <span class='mapp-spinner'></span>
 
 
15
  </div>
16
- <div class='mapp-dir-renderer'></div>
17
- </div>
1
+ <# if (!map.editable && mappl10n.options.directions != 'google') { #>
2
+ <div class='mapp-directions'>
3
+ <span class='mapp-close' data-mapp-action='dir-cancel'></span>
4
+ <div>
5
+ <input class='mapp-dir-saddr' tabindex='1' placeholder='<?php _e("My location", 'mappress-google-maps-for-wordpress');?>' />
6
+ <span data-mapp-action='dir-swap' class='mapp-dir-arrows'></span>
7
+ </div>
8
 
9
+ <div>
10
+ <input class='mapp-dir-daddr' tabindex='2'/>
11
+ </div>
12
 
13
+ <div class='mapp-dir-toolbar'>
14
+ <span class='mapp-button-submit' data-mapp-action='dir-get'><?php _e('Get Directions', 'mappress-google-maps-for-wordpress'); ?></span>
15
+ <span class='mapp-spinner'></span>
16
+ </div>
17
+ <div class='mapp-dir-renderer'></div>
18
  </div>
19
+ <# } #>
 
templates/map-filters.php CHANGED
@@ -1,11 +1,17 @@
1
- <div class='mapp-filters'>
2
- <div class='mapp-filters-list'>
3
- <?php $filter = new Mappress_Filter(array('key' => Mappress::$options->filter, 'format' => null)); ?>
4
- <div class='mapp-filter mapp-<?php echo $filter->key; ?>'>
5
- <div class='mapp-filter-label'><?php echo $filter->get_label(); ?></div>
6
- <div class='mapp-filter-values'><?php echo $filter->get_html(); ?></div>
7
- </div>
8
- </div>
9
- <span class='mapp-button-submit mapp-filters-done' data-mapp-action='filters-toggle'><?php _e('Done', 'mappress-google-maps-for-wordpress');?></span>
10
- <span class='mapp-button mapp-filters-reset' data-mapp-action='filters-reset'><?php _e('Reset', 'mappress-google-maps-for-wordpress');?></span>
11
- </div>
 
 
 
 
 
 
1
+ <?php if (Mappress::$pro) { ?>
2
+ <# if (map.query && mappl10n.options.filter) { #>
3
+ <div class='mapp-filters'>
4
+ <div class='mapp-filters-list'>
5
+ <?php $filter = new Mappress_Filter(array('key' => Mappress::$options->filter, 'format' => null)); ?>
6
+ <div class='mapp-filter mapp-<?php echo $filter->key; ?>'>
7
+ <div class='mapp-filter-label'><?php echo $filter->get_label(); ?></div>
8
+ <div class='mapp-filter-values'><?php echo $filter->get_html(); ?></div>
9
+ </div>
10
+ </div>
11
+ <div class='mapp-filters-toolbar'>
12
+ <span class='mapp-button-submit mapp-filters-done' data-mapp-action='filters-toggle'><?php _e('Done', 'mappress-google-maps-for-wordpress');?></span>
13
+ <span class='mapp-button mapp-filters-reset' data-mapp-action='filters-reset'><?php _e('Reset', 'mappress-google-maps-for-wordpress');?></span>
14
+ </div>
15
+ </div>
16
+ <# } #>
17
+ <?php } ?>
templates/map-header.php DELETED
@@ -1,5 +0,0 @@
1
- <div class='mapp-header'>
2
- <?php echo $map->part('search'); ?>
3
- <?php echo $map->part('filters-toggle');?>
4
- </div>
5
-
 
 
 
 
 
templates/map-loop.php CHANGED
@@ -4,6 +4,10 @@
4
  </div>
5
  <# } #>
6
 
 
 
 
 
7
  <div class="mapp-items">
8
  <# _.forEach(pois, function(poi, i) { #>
9
  <# if (!poi.visible) { return; } #>
@@ -11,4 +15,8 @@
11
  <# print(poi.render('item')); #>
12
  </div>
13
  <# }); #>
14
- </div>
 
 
 
 
4
  </div>
5
  <# } #>
6
 
7
+ <# if (map.layout != 'inline') { #>
8
+ <div class='mapp-list-toggle' data-mapp-action='list-toggle'></div>
9
+ <# } #>
10
+
11
  <div class="mapp-items">
12
  <# _.forEach(pois, function(poi, i) { #>
13
  <# if (!poi.visible) { return; } #>
15
  <# print(poi.render('item')); #>
16
  </div>
17
  <# }); #>
18
+ </div>
19
+ <# if (map.layout || mappl10n.options.layout == 'left') { #>
20
+ <div class="mapp-list-footer">
21
+ </div>
22
+ <# } #>
templates/map-search.php DELETED
@@ -1,6 +0,0 @@
1
- <div class='mapp-search'>
2
- <input class='mapp-places' type='text' placeholder='<?php _e('Search', 'mappress-google-maps-for-wordpress'); ?>'/>
3
- <?php if (Mappress::is_ssl()) : ?>
4
- <div class='mapp-geolocate' data-mapp-action='geolocate' title='<?php _e('Your Location', 'mappress-google-maps-for-wordpress');?>'></div>
5
- <?php endif; ?>
6
- </div>
 
 
 
 
 
 
templates/map.php CHANGED
@@ -1,19 +1,87 @@
1
- <div <?php echo $map->part('layout-atts');?>>
2
- <div class='mapp-wrapper' style='<?php echo $map->part('wrapper-style');?>' >
3
- <div class='mapp-content'>
4
- <?php echo $map->part('header'); ?>
5
- <div class='mapp-main'>
6
- <?php echo $map->part('filters'); ?>
7
- <?php echo $map->part('list-left'); ?>
8
- <div class='mapp-canvas-panel'>
9
- <?php echo $map->part('canvas'); ?>
10
- <?php echo $map->part('controls'); ?>
11
- <?php echo $map->part('iw'); ?>
12
- <div class='mapp-dialog'></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  </div>
 
14
  </div>
15
  </div>
 
 
 
16
  </div>
17
- <?php echo $map->part('directions'); ?>
18
- <?php echo $map->part('list-inline'); ?>
19
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type='text/template' id='mapp-tmpl-map'>
2
+ <#
3
+ let id = (map.name) ? map.name + "-layout" : '';
4
+ let classes = 'mapp-layout';
5
+ let layout = (map.layout) ? map.layout : mappl10n.options.layout;
6
+
7
+ classes += (layout == 'left') ? ' mapp-left' : ' mapp-inline';
8
+ classes += (mappl10n.options.engine == 'leaflet') ? ' mapp-leaflet ' : ' mapp-google ';
9
+
10
+ let alignment = (map.alignment) ? map.alignment : mappl10n.options.alignment;
11
+ classes += (alignment) ? ' mapp-align-' + alignment : '';
12
+
13
+ // Gutenberg additional classes https://core.trac.wordpress.org/ticket/45882
14
+ classes += (map.classname) ? ' ' + map.classname : '';
15
+ #>
16
+
17
+ <div id='{{id}}' class='{{classes}}'>
18
+ <div class='mapp-wrapper'>
19
+ <div class='mapp-content'>
20
+ <# print(mapp.lib.template('map-header', { map : map })); #>
21
+ <div class='mapp-main'>
22
+ <# print(mapp.lib.template('map-filters', { map : map })); #>
23
+ <# if (layout != 'inline') { #>
24
+ <div class='mapp-list'></div>
25
+ <# } #>
26
+ <# print(mapp.lib.template('map-directions', { map : map })); #>
27
+ <div class='mapp-canvas-panel'>
28
+ <div class='mapp-canvas'></div>
29
+ <# print(mapp.lib.template('map-menu', { map : map })); #>
30
+ <div class='mapp-iw'></div>
31
+ <div class='mapp-dialog'></div>
32
+ </div>
33
  </div>
34
+ <# print(mapp.lib.template('map-footer', { map : map })); #>
35
  </div>
36
  </div>
37
+ <# if (layout == 'inline') { #>
38
+ <div class='mapp-list'></div>
39
+ <# } #>
40
  </div>
41
+ </script>
42
+
43
+ <script type='text/template' id='mapp-tmpl-map-header'>
44
+ <# var filter = !map.editable && map.query && mappl10n.options.filter; #>
45
+ <# var search = map.editable || (map.query && mappl10n.options.search); #>
46
+ <# if (search || filter) { #>
47
+ <div class='mapp-header'>
48
+ <# if (search) { #>
49
+ <div class='mapp-search'>
50
+ <input class='mapp-places' type='text' placeholder='<?php _e('Search', 'mappress-google-maps-for-wordpress'); ?>'/>
51
+ <# if (mappl10n.options.ssl) { #>
52
+ <div class='mapp-geolocate' data-mapp-action='geolocate' title='<?php _e('Your Location', 'mappress-google-maps-for-wordpress');?>'></div>
53
+ <# } #>
54
+ </div>
55
+ <# } #>
56
+ <# if (filter) { #>
57
+ <div class='mapp-caret mapp-header-button mapp-filters-toggle' data-mapp-action='filters-toggle'><?php _e('Filter', 'mappress-google-maps-for-wordpress');?></div>
58
+ <# } #>
59
+ </div>
60
+ <# } #>
61
+ </script>
62
+
63
+ <script type='text/template' id='mapp-tmpl-map-menu'>
64
+ <# if (!map.editable) { #>
65
+ <div class='mapp-controls'>
66
+ <div class='mapp-menu-toggle' data-mapp-action='menu-toggle' title='<?php _e('Menu', 'mappress-google-maps-for-wordpress');?>'></div>
67
+ <div class='mapp-menu'>
68
+ <div class='mapp-menu-item' data-mapp-action='center'><?php _e('Center map', 'mappress-google-maps-for-wordpress');?></div>
69
+ <?php if (Mappress::$options->engine != 'leaflet') { ?>
70
+ <div class='mapp-menu-separator'></div>
71
+ <div class='mapp-menu-item' data-mapp-action='layer' data-mapp-layer='traffic'><?php _e('Traffic', 'mappress-google-maps-for-wordpress');?></div>
72
+ <div class='mapp-menu-item' data-mapp-action='layer' data-mapp-layer='bicycling'><?php _e('Bicycling', 'mappress-google-maps-for-wordpress');?></div>
73
+ <div class='mapp-menu-item' data-mapp-action='layer' data-mapp-layer='transit'><?php _e('Transit', 'mappress-google-maps-for-wordpress');?></div>
74
+ <?php } ?>
75
+ </div>
76
+ </div>
77
+ <# } #>
78
+ </script>
79
+
80
+ <script type='text/template' id='mapp-tmpl-map-footer'>
81
+ <# if ( (map.poiList || mappl10n.options.poiList) && map.layout != 'inline') { #>
82
+ <div class='mapp-footer'>
83
+ <div class='mapp-view-list' data-mapp-action='view-list'><?php _e('Show List', 'mappress-google-maps-for-wordpress'); ?></div>
84
+ <div class='mapp-view-map' data-mapp-action='view-map'><?php _e('Show Map', 'mappress-google-maps-for-wordpress'); ?></div>
85
+ </div>
86
+ <# } #>
87
+ </script>
{forms → templates_admin}/editor.php RENAMED
@@ -1,19 +1,4 @@
1
- <div class='mapp-edit'></div>
2
-
3
- <script type='text/template' id='mapp-tmpl-edit-map'>
4
- <?php
5
- $map = new Mappress_Map(array('editable' => true, 'layout' => 'left', 'name' => 'mapp0', 'poiList' => true));
6
- echo Mappress_Template::get_template('map', array('map' => $map));
7
- ?>
8
- </script>
9
-
10
  <script type='text/template' id='mapp-tmpl-edit-loop'>
11
- <# if (mappl10n.options.pro) { #>
12
- <div class='mapp-list-header'>
13
- <span class="dashicons dashicons-admin-page"></span>
14
- <a href='#' data-mapp-editor='layer'><?php esc_attr_e('Add KML', 'mappress-google-maps-for-wordpress'); ?></a>
15
- </div>
16
- <# } #>
17
  <div class='mapp-items'>
18
  <# _.forEach(pois, function(poi, i) { #>
19
  <div class='mapp-item' data-mapp-action='open' data-mapp-poi='{{{i}}}'><# print(poi.render('item')); #></div>
@@ -28,16 +13,14 @@
28
 
29
  <script type='text/template' id='mapp-tmpl-edit-popup'>
30
  <div class='mapp-poi-edit'>
31
- <div class='mapp-table'>
32
- <div>
33
- <div><input class='mapp-poi-title' type='text' value='{{poi.title}}'></div>
34
- <# if (!poi.type) { #>
35
- <div><img data-mapp-iconpicker data-mapp-iconid='{{{poi.iconid}}}' class='mapp-icon'></div>
36
- <# } else if (poi.isPoly()) { #>
37
- <# var colors = poi.getTemplateColors(); #>
38
- <div><span data-mapp-colorpicker class='mapp-colorpicker-toggle' data-mapp-color='{{{colors.color}}}' data-mapp-opacity='{{{colors.opacity}}}' data-mapp-weight='{{{colors.weight}}}' tabindex='0'></span></div>
39
- <# } #>
40
- </div>
41
  </div>
42
 
43
  <# if (poi.type == 'kml') { #>
 
 
 
 
 
 
 
 
 
1
  <script type='text/template' id='mapp-tmpl-edit-loop'>
 
 
 
 
 
 
2
  <div class='mapp-items'>
3
  <# _.forEach(pois, function(poi, i) { #>
4
  <div class='mapp-item' data-mapp-action='open' data-mapp-poi='{{{i}}}'><# print(poi.render('item')); #></div>
13
 
14
  <script type='text/template' id='mapp-tmpl-edit-popup'>
15
  <div class='mapp-poi-edit'>
16
+ <div class='mapp-poi-header'>
17
+ <input class='mapp-poi-title' type='text' value='{{poi.title}}'>
18
+ <# if (!poi.type) { #>
19
+ <img data-mapp-iconpicker data-mapp-iconid='{{{poi.iconid}}}' class='mapp-icon'>
20
+ <# } else if (poi.isPoly()) { #>
21
+ <# var colors = poi.getTemplateColors(); #>
22
+ <span data-mapp-colorpicker class='mapp-colorpicker-toggle' data-mapp-color='{{{colors.color}}}' data-mapp-opacity='{{{colors.opacity}}}' data-mapp-weight='{{{colors.weight}}}' tabindex='0'></span>
23
+ <# } #>
 
 
24
  </div>
25
 
26
  <# if (poi.type == 'kml') { #>
templates_admin/media.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class='mapp-mce'>
2
+ <div class='mapp-mce-header'>
3
+ <?php echo Mappress::get_support_links(); ?>
4
+ </div>
5
+ <div class='mapp-mce-list-panel'>
6
+ <div class='mapp-mce-list-toolbar'>
7
+ <input data-mapp-mce='add' class='button button-primary' type='button' value='<?php esc_attr_e('New Map', 'mappress-google-maps-for-wordpress')?>' />
8
+ <select class='mapp-mce-list-type'>
9
+ <option value='post'><?php _e('This post', 'mappress-google-maps-for-wordpress');?></option>
10
+ <option value='all'><?php _e('All posts', 'mappress-google-maps-for-wordpress');?></option>
11
+ </select>
12
+ <input type='text' size="15" class='mapp-mce-search' placeholder='<?php _e('Filter by title', 'mappress-google-maps-for-wordpress');?>'>
13
+ <span class='spinner'></span>
14
+ </div>
15
+ <div class='mapp-mce-list'></div>
16
+ </div>
17
+
18
+ <div class='mapp-mce-edit-panel'>
19
+ <table class='mapp-settings'>
20
+ <tr>
21
+ <td><?php _e('Map ID', 'mappress-google-maps-for-wordpress');?>:</td>
22
+ <td><span class='mapp-mce-mapid'></span></td>
23
+ </tr>
24
+
25
+ <tr>
26
+ <td><?php _e('Map Title', 'mappress-google-maps-for-wordpress');?>:</td>
27
+ <td><input class='mapp-mce-title' type='text' placeholder='<?php _e('Untitled', 'mappress-google-maps-for-wordpress');?>' /></td>
28
+ </tr>
29
+
30
+ <tr>
31
+ <td><?php _e('Display Size', 'mappress-google-maps-for-wordpress');?>:</td>
32
+ <td>
33
+ <?php
34
+ $sizes = array();
35
+ foreach(Mappress::$options->sizes as $i => $size)
36
+ $sizes[] = "<a href='#' class='mapp-mce-size' data-width='{$size['width']}' data-height='{$size['height']}'>" . $size['width'] . 'x' . $size['height'] . "</a>";
37
+ echo implode(' | ', $sizes);
38
+ ?>
39
+ <input type='text' class='mapp-mce-width' size='2' value='' /> x <input type='text' class='mapp-mce-height' size='2' value='' />
40
+ </td>
41
+ </tr>
42
+
43
+ <tr>
44
+ <td><?php _e('Save center / zoom', 'mappress-google-maps-for-wordpress');?></td>
45
+ <td><input type='checkbox' class='mapp-mce-viewport'></td>
46
+ </tr>
47
+ </table>
48
+ <div class='mapp-mce-edit-toolbar'>
49
+ <input data-mapp-mce='save' class='button button-primary' type='button' value='<?php esc_attr_e('Save', 'mappress-google-maps-for-wordpress'); ?>' />
50
+ <input data-mapp-mce='cancel' class='button' type='button' value='<?php esc_attr_e('Cancel', 'mappress-google-maps-for-wordpress'); ?>' />
51
+ <input data-mapp-mce='insert' class='button' type='button' value='<?php esc_attr_e('Insert into post', 'mappress-google-maps-for-wordpress'); ?>' />
52
+ </div>
53
+ <div class='mapp-edit'></div>
54
+ </div>
55
+ </div>
56
+
57
+ <script type='text/template' id='mapp-tmpl-mce-list'>
58
+ <div class='mapp-mce-items'>
59
+ <# _.forEach(items, function(item, i) { #>
60
+ <div class='mapp-mce-item' data-mapp-mce-list='edit' data-mapp-mapid='{{ item.mapid }}'>
61
+
62
+ <# if (type == 'all') { #>
63
+ <# if (item.post_title) { #>{{ item.post_title }}<# } else { #><?php _e('Untitled', 'mappress-google-maps-for-wordpress');?><# } #>
64
+ &nbsp;-&nbsp;
65
+ <# } #>
66
+
67
+ <# if (item.map_title) { #>{{ item.map_title }}<# } else { #><?php _e('Untitled', 'mappress-google-maps-for-wordpress');?><# } #>
68
+
69
+ <div class='mapp-actions'>
70
+ <a href='#' data-mapp-mce-list='edit'><?php _e('Edit', 'mappress-google-maps-for-wordpress');?></a> |&nbsp;
71
+ <a href='#' data-mapp-mce-list='insert'><?php _e('Insert into post', 'mappress-google-maps-for-wordpress');?></a> |&nbsp;
72
+ <a href='#' data-mapp-mce-list='remove'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
73
+ </div>
74
+ </div>
75
+ <# }); #>
76
+ </div>
77
+ <div class='mapp-list-footer'>
78
+ <# if (items.length == 0) { #>
79
+ <?php _e('No maps found', 'mappress-google-maps-for-wordpress');?>
80
+ <# } #>
81
+ </div>
82
+ </div>
83
+ </script>
templates_admin/widgets.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type='text/html' id='mapp-tmpl-color-picker'>
2
+ <# var colors = ['#F4EB37','#CDDC39','#62AF44','#009D57','#0BA9CC','#4186F0','#3F5BA9','#7C3592','#A61B4A','#DB4436','#F8971B','#F4B400','#795046','#F9F7A6','#E6EEA3','#B7DBAB','#7CCFA9','#93D7E8','#9FC3FF','#A7B5D7','#C6A4CF','#D698AD','#EE9C96','#FAD199','#FFDD5E','#B29189','#FFFFFF','#CCCCCC','#777777','#000000']; #>
3
+ <div class='mapp-colorpicker' tabindex='0'>
4
+ <# _.each(colors, function(color, i) { #>
5
+ <span data-mapp-color='{{color}}' class='mapp-color' style='background-color: {{color}}' tabindex='0'></span>
6
+ <# }); #>
7
+ <?php _e('Opacity', 'mappress-google-maps-for-wordpress'); ?>
8
+ <select class='mapp-opacity'>
9
+ <# for (var i = 100; i >= 0; i -= 10) { #>
10
+ <option value='{{i}}'>{{i}}</option>
11
+ <# } #>
12
+ </select>
13
+ <?php _e('Weight', 'mappress-google-maps-for-wordpress'); ?>
14
+ <select class='mapp-weight'>
15
+ <# for (var i = 1; i <= 20; i++) { #>
16
+ <option value='{{i}}'>{{i}}</option>
17
+ <# } #>
18
+ </select>
19
+ </div>
20
+ </script>
21
+
22
+ <script type='text/html' id='mapp-tmpl-icon-editor'>
23
+ <div class='mapp-icon-editor'>
24
+ <div class='mapp-icon-editor-wrapper'>
25
+ <ul class='mapp-icon-editor-list'>
26
+ <# if (!mappl10n.options.userIcons.length) { #>
27
+ <h2 class='mapp-icon-editor-msg'>
28
+ <?php _e('No custom icons have been added yet.', 'mappress-google-maps-for-wordpress');?>
29
+ </h2>
30
+ <# } #>
31
+ <# _.each(mappl10n.options.userIcons, function(icon, i) { #>
32
+ <li data-mapp-iconid='{{icon}}'>
33
+ <span><img class='mapp-icon' title='{{icon}}' alt='{{icon}}' src='{{mappl10n.options.iconsUrl}}/{{icon}}'></span>
34
+ <span>{{icon}}</span>
35
+ <span data-mapp-action='delete' class='dashicons dashicons-trash'></span>
36
+ </li>
37
+ <# }); #>
38
+ </ul>
39
+ </div>
40
+ <div class='mapp-icon-editor-toolbar'>
41
+ <input type='file' multiple name='mapp-icon-files' class='mapp-icon-files'>
42
+ <button data-mapp-action='add' class='button mapp-icon-add'><?php _e('Add', 'mappress-google-maps-for-wordpress');?></button>
43
+ </div>
44
+ </div>
45
+ </script>
46
+
47
+ <script type='text/html' id='mapp-tmpl-icon-picker'>
48
+ <div class='mapp-iconpicker' tabindex='0'>
49
+ <div class='mapp-iconpicker-wrapper'>
50
+ <# _.each(mappl10n.options.userIcons, function(iconid, i) { #>
51
+ <img class='mapp-icon' data-mapp-iconid='{{iconid}}' src='{{mappl10n.options.iconsUrl}}{{iconid}}' alt='iconid' title='iconid'>
52
+ <# }); #>
53
+ <br/>
54
+ <# _.each(mappl10n.options.standardIcons, function(iconid, i) { #>
55
+ <span data-mapp-iconid='{{iconid}}' class='mapp-icon-sprite' style='background-position: <# print(i * -24) #>px 0px' alt='{{iconid}}' title='{{iconid}}'></span>
56
+ <# }); #>
57
+ </div>
58
+ <div class='mapp-iconpicker-toolbar'>
59
+ <input class='button' data-mapp-iconid='' type='button' value='<?php _e('Use default icon', 'mappress-google-maps-for-wordpress');?>'>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </script>
64
+
65
+ <script type='text/html' id='mapp-tmpl-tp-master'>
66
+ <div class='mapp-tp-editor'>
67
+ <?php echo Mappress_Controls::select('', array('map-popup' => __('Map popup', 'mappress-google-maps-for-wordpress'), 'map-item' => __('Map list item', 'mappress-google-maps-for-wordpress'), 'mashup-popup' => __('Mashup popup', 'mappress-google-maps-for-wordpress'), 'mashup-item' => __('Mashup list item', 'mappress-google-maps-for-wordpress')), 'map-tmpl-poi', array('class' => 'mapp-tp-select')); ?>
68
+ <?php echo Mappress_Controls::button('', __('Edit', 'mappress-google-maps-for-wordpress'), array('class' => 'button button-primary', 'data-mapp-action' => 'edit')); ?>
69
+ </div>
70
+ </script>
71
+
72
+ <script type='text/html' id='mapp-tmpl-tp-detail'>
73
+ <div class='mapp-tp-detail'>
74
+ <div class='mapp-tp-name'>{{ model.name }} <# if (!model.exists) { #>(<?php _e('New', 'mappress-google-maps-for-wordpress');?>)<# } else { #>(<?php _e('Custom', 'mappress-google-maps-for-wordpress');?>)<# } #></div>
75
+ <div class='mapp-tp-path'>{{ model.path }}</div>
76
+ <div class='mapp-tabs'>
77
+ <div class='mapp-tab-label mapp-active' class='mapp-active'><?php _e('Editor', 'mappress-google-maps-for-wordpress');?></div>
78
+ <div class='mapp-tab-label'><?php _e('Default', 'mappress-google-maps-for-wordpress');?></div>
79
+ <div class='mapp-tab mapp-tab-content mapp-active'>
80
+ <# _.each(tokens, function (token, i) { #>
81
+ <code data-mapp-action='insert' data-mapp-insert='{{{i}}}' title='{{{i}}}'>{{{token}}}</code>
82
+ <# }); #>
83
+ <hr/>
84
+ <textarea class='mapp-tp-content'>{{{ model.content }}}</textarea>
85
+ </div>
86
+ <div class='mapp-tab mapp-tab-standard'>
87
+ <textarea readonly class='mapp-tp-standard'>{{{ model.standard }}}</textarea>
88
+ </div>
89
+ </div>
90
+ <div class='mapp-tp-toolbar'>
91
+ <input type='button' class='button button-primary' data-mapp-action='save' value='<?php _e('Save', 'mappress-google-maps-for-wordpress');?>'>
92
+ <input type='button' class='button' data-mapp-action='cancel' value='<?php _e('Cancel', 'mappress-google-maps-for-wordpress');?>'>
93
+ <# if (model.exists) { #>
94
+ <a href='#' data-mapp-action='destroy'><?php _e('Delete', 'mappress-google-maps-for-wordpress');?></a>
95
+ <# } #>
96
+ </div>
97
+ </div>
98
+ </script>