(function(){function vi(){return window.location.hostname.indexOf("staging.scribblemaps.com")!=-1}function k(n){return n==null||n==""||n==undefined?!0:!1}function it(n,t){var i=document.createElement("link");t&&(i.onload=function(){pi=!0;t()});i.setAttribute("rel","stylesheet");i.setAttribute("type","text/css");i.setAttribute("href",n);document.getElementsByTagName("head")[0].appendChild(i)}function ot(n,t,i){var r,u;document.readyState==="complete"||document.readyState==="interactive"?(r=document.createElement("script"),r.src=n,r.type="text/javascript",i&&r.setAttribute("crossorigin","anonymous"),r.onload=r.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(t&&t(),r.onload=r.onreadystatechange=null)},u=document.getElementsByTagName("script")[0],u.parentNode.insertBefore(r,u)):setTimeout(function(){ot(n,t,i)},100)}function lr(){return window.sm_overrides&&window.sm_overrides.baseAPI&&window.sm_overrides.baseAPI.indexOf("google")==-1?!1:!0}function rt(){clearTimeout(ni);ni=setTimeout(function(){c()},250)}function ar(){for(var n=0;n<nt.length;n++)if(nt[n].opts.useStatic&&(!window.L||!window.L.Map))return rt(),!1;return window.ScribbleMapCore?(u=="google"||u=="googleEnterprise"||u=="googleKey")&&lr()?window.google!=null&&window.google.maps!=null?!0:(rt(),!1):u=="bing"?window.Microsoft&&window.Microsoft.Maps?!0:(rt(),!1):u=="arcgis"?window.esri&&window.esri.layers?!0:(rt(),!1):u=="cesium"?window.Cesium?!0:(rt(),!1):u=="maplibre"?window.maplibregl?!0:(rt(),!1):window.L&&window.L.Map?!0:(rt(),!1):(rt(),!1)}function vr(){if(ti==gt.length)return!0}function c(){return yi&&ct&&pi&&ar()&&vr()?(clearTimeout(ni),yr(),window[st]&&!ii&&(ii=!0,window[st]()),!0):!1}function yr(){for(var n=0;n<nt.length;n++)nt[n].makeReal();nt=[];l=[]}function wi(){for(var n=0;n<nt.length;n++)nt[n].createLoader()}function di(n,t,i,r,u,f){var e;if(ci.indexOf(t)==-1){if(ci.push(t),a[t].css)for(e=0;e<a[t].css.length;e++)it(n+a[t].css[e]);if(window.sm_overrides&&window.sm_overrides.baseAPI)ot(window.sm_overrides.baseAPI.replace("{gurl}",ki).replace("{key}",i).replace("{clientId}",r).replace("{libraries}",u).replace("{lang}",f),function(){c()},!0);else for(t=="bing"&&vt=="https://"&&(a[t].scripts[0]+="&s=1"),e=0;e<a[t].scripts.length;e++)ot((n+a[t].scripts[e]).replace("{gurl}",ki).replace("{key}",i).replace("{clientId}",r).replace("{libraries}",u).replace("{lang}",f),function(){c()},!0)}}function gi(){var i="",t;return i!=""&&g!="null"?i:n.projectId||n.pId?n.projectId||n.pId:ui&&(t=ui.src.match(/pId=([0-9a-zA-Z-]+)/),t&&t[1])?t[1]:null}function kr(){var t="css/",i,r;for(vi()&&(t="staging-css/"),i=e&&e!=""?"?d="+e:"",n.theme=="dark"?it(b+t+"dark.css"+i,function(){c()}):n.theme=="light"?it(b+t+"light.css"+i,function(){c()}):n.theme=="light2021"?it(b+t+"light2021.css"+i,function(){c()}):n.theme=="dark2021"?it(b+t+"dark2021.css"+i,function(){c()}):n.theme=="ash2021"?it(b+t+"ash2021.css"+i,function(){c()}):it(b+t+"modern.css"+i,function(){c()}),it(tt+"themes/icons/glyphicons.css"+(e&&e!=""?"?d="+e:"")),r=0;r<gt.length;r++)ot(gt[r],function(){ti++;c()},!0);ot(er,function(){yi=!0;c()},!0)}function ir(n){return n==null||n==""?!0:!1}function rr(){var t=n.key,i=n.libraries,r=n.clientId,f=ir(hi)?ir(n.lang)?"":n.lang:hi,e=navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage;di(dt,u,t,r,i,f);kr()}var y,t,p,i,ht,yt,f,s,d,r,pt,h,wt,ti,ii,lt,ri,bt,v,ut,et,w,fi,ei,u,g,nr,tr,ur;window.scribblemaps=window.scribblemaps||{};var nt=[],vt=document.location.protocol=="https:"?"https://":"http://",si=!0,kt="1.613",hi="",st="";st=st==""?null:st;var e="2024-12-13",dt="",ci=[],fr=document.URL.indexOf("http://")===-1&&document.URL.indexOf("https://")===-1;fr&&(dt="http:");var li="cdn.scribblemaps.com",tt=vt+li+"/api/js/shared/",b=vt+li+"/api/js/"+kt+"/",ai=vt+"www.scribblemaps.com/",er=vi()?b+"staging-scripts/main.js"+(e&&e!=""?"?d="+e:""):b+"scripts/main.js"+(e&&e!=""?"?d="+e:"");var or=tt+"scripts/sanitizer.js"+(e&&e!=""?"?d="+e:""),sr=tt+"scripts/apis/date-fns.js"+(e&&e!=""?"?d="+e:""),gt=[or,sr],o=function(n,t,i){window.scribblemaps[n]=t;i||(window[n]||window[n]==t?window[n]!=t&&console.log("Could not register global variable "+n+" variable available using scribblemaps."+n):window[n]=t)};y={};y.SEARCH="0";y.ZOOM="1";y.TOOLBOX="2";y.LINE_SETTINGS="3";y.LINE_COLOR="4";y.FILL_COLOR="5";y.MAP_TYPE="6";y.LEGEND="7";y.GPS="10";y.LAYERS="undefined";y.OVERLAY_LIST="8";o("ControlType",y,!0);t={};t.NONE="none";t.MENU="menu";t.DRAG="drag";t.DRAGEDIT="dragEdit";t.DRAGEDITADVANCED="dragEditAdvanced";t.DRAW="scribble";t.DRAWSNAP="scribbleSnap";t.LINE="line";t.LINESNAP="lineSnap";t.PEN="pen";t.FLIGHT_LINE="flightLine";t.EDIT="edit";t.EDITADVANCED="editAdvanced";t.LABEL="label";t.LABELMULTI="labelMulti";t.POLYGON="polygon";t.MARKER="marker";t.SINGLE_MARKER="singleMarker";t.ERASER="eraser";t.CIRCLE="circle";t.RECTANGLE="rectangle";t.FILL="fill";t.SELECT="select";t.IMAGE="image";t.CONNECTED_LINE="connectedLine";t.ROUTE="route";t.ROTATE="rotate";t.SPLIT_LINE="splitLine";t.SPLIT="splitLine";t.STYLE_PICKER="stylePicker";t.DIMENSION_LINE="dimensionLine";o("ToolType",t,!0);p={};p.LINE="1";p.RECT="2";p.CIRCLE="3";p.POLYGON="4";p.LABEL="5";p.MARKER="6";p.IMAGE="7";p.FLIGHT_LINE="16";p.INFO_BUBBLE="17";p.MEDIA_MARKER="18";p.POINT="19";o("OverlayType",p,!0);i={};i.MARKER="1";i.TEXT_EDITOR="2";i.SETTINGS="3";i.LOAD_MAP="4";i.SAVE_MAP="5";i.WIDGET="6";i.MAP_INFO="7";i.MENU="8";i.SAVE_IMAGE="9";i.SEND_TO_FRIEND="10";i.LEGEND_CREATOR="11";i.DIRECTIONS_CREATOR="12";i.MANAGE_USERS="13";i.REGION_HIGHLIGHTER="15";i.GIS="18";i.SAVE_POSTER="19";i.LAYERS="20";i.LIST_IMPORT="25";i.FILTER="27";i.GEOJSON_IMPORT="28";i.SATELLITE="29";i.IMAGE_OVERLAY="30";i.CATALOG="31";i.MAPS="36";i.IMPORT_FILE="38";i.CHART_VIEW="47";i.HELP="49";o("PanelType",i,!0);ht={};ht.NONE="none";ht.MGRS="mgrs";ht.UKNG="ukng";o("GridType",ht,!0);yt={};yt.DEFAULT=0;yt.SMALL=1;o("ControlModes",yt,!0);f={};f.NEW_MAP="newMap";f.LOAD_MAP="loadMap";f.SAVE_MAP="saveMap";f.OFFLINE_LOAD_MAP="offlineLoadMap";f.OFFLINE_SAVE_MAP="offlineSaveMap";f.WIDGET="getWidget";f.SEND_TO_FRIEND="sendToFriend";f.SAVE_IMAGE="saveImage";f.SAVE_PDF="savePDF";f.FACEBOOK="facebook";f.KML_DOWNLOAD="saveKML";f.GPX_DOWNLOAD="saveGPX";f.DXF_DOWNLOAD="saveDXF";f.SHP_DOWNLOAD="saveSHP";f.JSON_DOWNLOAD="saveJSON";f.CSV_DOWNLOAD="saveCSV";f.GEOPARQUET_DOWNLOAD="saveGeoParquet";f.MANAGE_USERS="manageUsers";f.SAVE_TEMPLATE="saveTemplate";f.LOAD_TEMPLATE="loadTemplate";o("MenuType",f,!0);s={};s.MILLIMETRE="mm";s.CENTIMETRE="cm";s.METRE="m";s.KILOMETRE="km";s.INCH="mm";s.FOOT="ft";s.YARD="yd";s.MILE="mi";s.NAUTICAL_MILE="nmi";s.SQUARE_CENTIMETRE="sqcm";s.SQUARE_METRE="sqm";s.SQUARE_KILOMETRE="sqkm";s.HECTARE="ha";s.SQUARE_INCH="sqin";s.SQUARE_FOOT="sqft";s.SQUARE_YARD="sqyd";s.SQUARE_MILE="sqmi";s.ACRE="acre";o("MeasureType",s,!0);d={};d.ZOOM_START="zoom_start";d.ZOOM_END="zoom_end";d.CHANGED="view_changed";d.TILES_LOADED="tiles_loaded";d.MOVED="view_moved";d.RENDERED="view_rendered";d.GRID_CHANGED="grid_changed";o("ViewEvent",d,!0);r={};r.NEW_MAP="new_map";r.MAP_SAVE_ERROR="save_error";r.MAP_SAVE_START="save_start";r.MAP_SAVED="save_complete";r.DATA_IMPORTED="data_imported";r.MAP_LOADED="map_loaded";r.MAP_LOAD_ERROR="map_load_error";r.MAP_NOT_AUTHORIZED="map_not_authorized";r.MAP_PASSWORD_ERROR="map_password_error";r.MAP_PASSWORD_REQUIRED="map_password_required";r.SMJSON_ERROR="smjson_error";r.BASE_TYPE_CHANGED="basetype_changed";r.OVERLAY_HIDDEN="overlay_hidden";r.OVERLAY_SHOWN="overlay_shown";r.OVERLAY_ADDED="overlay_added";r.OVERLAY_REMOVED="overlay_removed";r.OVERLAY_CHANGED="overlay_changed";r.OVERLAY_META_CHANGED="overlay_meta_changed";r.OVERLAY_OVER="overlay_over";r.OVERLAY_OUT="overlay_out";r.OVERLAY_CLICK="overlay_click";r.OVERLAY_MOVE="overlay_move";r.OVERLAY_UP="overlay_up";r.OVERLAY_DOWN="overlay_down";r.GROUP_ADDED="group_added";r.GROUP_REMOVED="group_removed";r.GROUP_META_CHANGED="group_meta_changed";o("MapEvent",r,!0);pt={};pt.STYLE_CHANGED="style_changed";pt.MARKER_CHANGED="marker_changed";o("DrawEvent",pt,!0);h={};h.VIEWLOADER_OPEN="viewloader_open";h.VIEWLOADER_CLOSE="viewloader_close";h.ALERT_CLOSE="alert_close";h.ALERT_OPEN="alert_open";h.PANEL_CLOSE="panel_close";h.PANEL_OPEN="panel_open";h.PANEL_MARKER_SELECT="marker_select";h.LEGEND_CREATED="legend_created";h.LEGEND_REMOVED="legend_removed";h.TOOL_SELECT="tool_select";h.GIS_RUN="gis_run";h.LIST_MAPPED="list_mapped";h.MENU_SELECT="menu_select";h.THEME_CHANGED="theme_changed";h.SUBMENU_SELECT="submenu_select";h.SEARCH_ITEM_SELECT="search_item_select";o("UIEvent",h,!0);wt={};wt.ALL_READY="ready";wt.SETTINGS_CHANGED="settings_changed";o("CoreEvent",wt,!0);o("CapType",{SQUARE:1,ROUND:0},!0);o("JoinType",{MITER:1,ROUND:0},!0);o("LineType",{SOLID:0,DASHED:1,ARROW:2,ARROW_ONLY:3,DOTS:4,DOTS_ONLY:5,ARROW_END:6,ARROW_ENDS:7},!0);var hr=!1,cr=!1,yi=!1,ct=!1,pi=!1,ni=-1;ti=0;ii=!1;lt=document.onreadystatechange;document.readyState!=="complete"&&document.readyState!=="interactive"||ct?document.onreadystatechange=function(){ct||((document.readyState==="complete"||document.readyState==="interactive")&&(ct=!0,wi(),c()),lt&&lt())}:(ct=!0,wi(),c(),lt&&lt());var l=[],bi=function(n,t,i){return function(){return l.push({group:n,fname:t,args:arguments,sm:i}),i}},at={clustering:["setSize","setRangePixels","enable","disable","clusterViewOverride"],data:["addListener","removeListener","getSMJSON","importGeoJSON","getGeoJSON"],view:["getUICenter","addListener","removeListener","pixelToLatLng","latLngToPixel","getZoom","getMaxZoom","setZoom","lockView","unlockView","lockToBounds","render","getBounds","setBounds","getCenter","setCenter","fitContent","setGrid","getGridCenter","getGridType"],draw:["setGroup","setStyle","rectangle","circle","polygon","line","infoBubble","label","mediaMarker","marker","point","image"],map:["setFilters","clearFilters","dataProviders","setType","openInfoWindow","closeInfoWindow","getOverlays","addOverlay","getGroups","addOverlayToGroup","createOverlayGroup","removeOverlay","wipe","import","importById","load","loadById","save","startAutoSave","stopAutoSave","getMapType","saveCurrent","importKML","loadSmJSON","importSmJSON","addListener","removeListener","createNewMap","isFresh","hasUpdates"],layers:["setMapDataLayers","setBase","add","remove","addAt","removeAt","clear","createTileLayer"],utils:["unitTypes","convertUnit","geoCode","distances","bindEvent","unbindEvent","optimizeRoute"],ui:["addAICommand","toggleFullMobile","isHalted","setFSContainer","setMode","setSettings","setSearchEngine","enableImageryUpload","enableOLRendering","disableOLRendering","enableCtrlZoom","forceEnable","addTooltip","enableMarkerUpload","disableMarkerUpload","getCurrentTool","getControlElement","showCrosshairs","hideCrosshairs","setMapTypes","editMarker","addListener","removeListener","setStyle","hideDomElements","showDomElements","showControls","hideControls","enableOverlayUpload","disableOverlayUpload","setSearchControlMode","showLoader","hideLoader","showAlert","hideAlert","closeGallery","setAvailableTools","setMapInfoIcons","setMenuIcons","enableOverlayListEdit","enableUserGIS","disableUserGIS","setMapTypeControlMode","getSearchControls","setTool","createTool","styleControl","createLegend","removeLegend","setMarkerLibrary","enableAdvancedSearch","runScript","disableAdvancedSearch","setTheme","showMenu","showMenuIcon","addDomElement","showPanel","hidePanel","showDock","hideDock","showColorPicker","showCustomPanel","hideNotice","showNotice","hideMenuIcon","setSearchRegion","setSearchBounds","enableLegendEdit","disableLegendEdit","enableFullPolygonErase","disableFullPolygonErase","enableManageUsers","enableLayersModule","setModalElement"],settings:["hideGraphics","showGraphics","setCRS","setInternalSettings","disableDevCatch","suppressErrors","clearListeners","setToImperial","noPasswordSkip","updateCredentials","disableChangesHalt","enableChangesHalt","setToMetric","setFrameRate","toggleFullScreen","disableZoom","enableZoom","disableLineSnap","disableInteractivity","enableInteractivity","enableLineSnap","resize","setMeasurementUnits","getMeasurementUnits","set","get"],addListener:[],removeListener:[],getBaseAPIMap:[]},pr=function(n){for(var t=0;t<l.length;t++)l[t].sm===n&&(l[t].fname?n[l[t].group][l[t].fname].apply(n[l[t].group],l[t].args):n[l[t].group].apply(n[l[t].group],l[t].args))},ki="maps.googleapis.com";ri=!1;bt=function(t,i,r){var f,s,u,o;i=k(i)?{}:i;this.opts=i;i.sm_date=e;i.sm_version=kt;f=document.createElement("div");this.createLoader=function(){f.className=n.theme=="dark"?"sm_loader sm_dark":"sm_loader sm_light";Object.prototype.toString.call(t)=="[object String]"?document.getElementById(t).appendChild(f):t instanceof Array?t[0].appendChild(f):t.appendChild(f)};this.makeReal=function(){for(var o,u,e=[],n=0;n<l.length;n++)l[n].sm==this&&e.push(l[n]);o=this;s=new window.ScribbleMapCore(t,i,r,e);s.placeHolder=this;for(u in s)this[u]=s[u];pr(this);f.parentNode&&f.parentNode.removeChild(f);delete this.makeReal;delete this.createLoader};for(u in at){for(this[u]={},o=0;o<at[u].length;o++)this[u][at[u][o]]=bi(u,at[u][o],this);at[u].length==0&&(this[u]=bi(u,null,this))}nt.push(this);i&&i.useStatic&&window.L==null&&(ri||(ri=!0,di(dt,"leaflet")));c()};window.ScribbleMap||(window.ScribbleMap=bt);var v=document.getElementsByTagName("script"),ui,n={libraries:"places"},ft=window.scribblemaps.settings;if(window.scribblemaps&&window.scribblemaps.settings){!ft.baseAPI&&(ft.key||ft.clientId)&&(ft.baseAPI="google",ft.libraries="places");for(v in ft)n[v]=ft[v]}else{for(ut=0;ut<v.length;ut++)if(v[ut].innerHTML.toString().indexOf("{")!=-1&&(ui=v[ut],v[ut].innerHTML&&v[ut].innerHTML!=null))try{if(et=eval("("+v[ut].innerHTML+")"),window.scribblemaps.settings){for(w in et)window.scribblemaps.settings[w]=et[w];for(w in n)window.scribblemaps.settings[w]||(window.scribblemaps.settings[w]=n[w]);n=window.scribblemaps.settings}else{for(w in n)et[w]||(et[w]=n[w]);n=et;window.scribblemaps.settings=et}break}catch(dr){}o("settings",n)}window.scribblemaps.settings.sharedLoc=tt;window.scribblemaps.settings.baseLoc=b;fi="sm_goog_mapLoadCallback";window[fi]=function(){hr=!0;c()};ei="sm_bing_mapLoadCallback";window[ei]=function(){cr=!0;c()};var oi=function(){return si?"&callback="+fi:""},wr=function(){return window.location.hostname.indexOf("scribblemaps.com")!=-1||window.location.hostname.indexOf("mapyourlist.com")!=-1||window.location.hostname.indexOf("lifestorage.com")!=-1||window.location.hostname.indexOf("smwidgets-east-staging.azurewebsites.net")!=-1||window.location.hostname.indexOf("localhost")!=-1},br=function(){return si?"callback="+ei:""},a={};if(a.bing={scripts:["//www.bing.com/api/maps/mapcontrol?"+br()]},a.leaflet={scripts:[tt+"scripts/apis/leaflet/leaflet.js"],css:[tt+"scripts/apis/leaflet/leaflet.css"]},a.maplibre={scripts:[tt+"scripts/apis/maplibre/maplibre-gl.js"],css:[tt+"scripts/apis/maplibre/maplibre-gl.css"]},a.mapquest={scripts:["//cdnjs.cloudflare.com/ajax/libs/leaflet/0.6.4/leaflet.js","//www.mapquestapi.com/sdk/leaflet/v1.0/mq-map.js?key={key}"],css:["//cdnjs.cloudflare.com/ajax/libs/leaflet/0.6.4/leaflet.css"]},a.google={scripts:["//{gurl}/maps/api/js?v=3&language={lang}&libraries={libraries}&key={key}"+oi()]},a.googleKey={scripts:["//{gurl}/maps/api/js?v=3&language={lang}&libraries={libraries}&key={key}"+oi()]},a.googleEnterprise={scripts:["//{gurl}/maps/api/js?v=3&language={lang}&libraries={libraries}&client={clientId}"+oi()]},a.arcgis={scripts:["//serverapi.arcgisonline.com/jsapi/arcgis/3.4/"],css:["//serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri.css"]},n.baseLoc=b,u=n.baseAPI,g=gi(),g&&g!=""&&g!="null"&&(n.projectId=g),nr=["google","googleEnterprise","bing","nokia","arcgis","mapquest","maplibre"],u&&u!=""?u=="google"&&n.clientId?u="googleEnterprise":u=="google"&&n.key&&(u="googleKey"):n.clientId?(u="googleEnterprise",n.baseAPI="google"):n.key?(u="google",n.baseAPI="google"):u="leaflet",g&&g!=""&&g!="null")window.$SMLicense=function(t){t?(u=nr[t.providerId-1],n.license=t,n.baseAPI=u,n.key=t.apiKey,n.clientId=t.clientId,n.appID=t.otherKey):n.projectId=null;u=="google"&&n.clientId?u="googleEnterprise":u=="google"&&n.key&&(u="googleKey");window.scribblemaps.settings=n;v=document.getElementsByTagName("script");for(var i=0;i<v.length;i++)if(v[i].src.indexOf(ai)!=-1){v[i].parentNode.removeChild(v[i]);break}window.$SMLicense=undefined;rr()},tr=ai+"api/projects/"+gi()+"/license?callback=$SMLicense&v="+(new Date).getTime(),ot(tr);else if(wr())rr();else throw"API implementations require a key contact support@scribblemaps.com";ur=function(n,t,i,r){t=k(t)?{}:t;t.sm_date=e;t.sm_version=kt;t.mode="viewer";k(t.tools)&&(t.tools=[]);k(t.fillColorControl)&&(t.fillColorControl=!1);k(t.undoControl)&&(t.undoControl=!1);k(t.lineColorControl)&&(t.lineColorControl=!1);k(t.searchControl)&&(t.searchControl=!1);k(t.lineSettingsControl)&&(t.lineSettingsControl=!1);var u=new bt(n,t,r);return k(i)||i.password==null||i.password==undefined?k(i)||u.map.loadById(i):u.map.load(i),u};o("ScribbleMapsAPIs",a);o("ScribbleMap",bt,!0);o("ScribbleMapViewer",ur)})()