"+E.getText("Help - Complete the APIKeys1")+"
"+E.getText("Help - Complete the APIKeys2")+"
"+E.getText("Help - Complete the APIKeys3")+"
"),o}const De=new class{constructor(){Object.freeze(this)}dispatch(e,t){let o=function(e){return-1<["showitinerary","updateitinerary","showtravelnotes","updatetravelnotes","showsearch","updatesearch","setrouteslist","setprovider","providersadded","travelnameupdated","settransitmode"].indexOf(e)?document.querySelector("#TravelNotes-UI-MainDiv"):-1<["removeobject","removeallobjects","zoomto","additinerarypointmarker","addsearchpointmarker","addrectangle","addwaypoint","layerchange","geolocationstatuschanged","geolocationpositionchanged","routeupdated","routepropertiesupdated","noteupdated","roadbookupdate","profileclosed"].indexOf(e)?document:null}(e);if(o){let a=new Event(e);t&&(a.data=t),o.dispatchEvent(a)}}};let Ce=new Map,Re=!1;function Me(e){return Ce.get(e.toLowerCase())}function Se(e,t){Ce.set(e.toLowerCase(),t)}function Oe(e){sessionStorage.clear(),Ce.clear();let t=j.storageAvailable("sessionStorage")&&y.APIKeys.saveToSessionStorage;e.forEach(e=>{t&&sessionStorage.setItem(e.providerName.toLowerCase()+"ProviderKey",btoa(e.providerKey)),Se(e.providerName,e.providerKey)}),he.providers.forEach(e=>{e.providerKey=Me(e.name)||""}),De.dispatch("providersadded")}function Ae(e){Oe(JSON.parse((new TextDecoder).decode(e)))}function ke(e){e instanceof Error&&console.error(e),e&&"Canceled by user"!==e&&je.showError(E.getText("APIKeysManager - An error occurs when reading the APIKeys file"))}function Ue(e){window.isSecureContext&&window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey&&be().decryptData(e,Ae,ke,fe(!1).show())}const Be=new class{constructor(){Object.freeze(this)}hasKey(e){return Ce.has(e.toLowerCase())}getUrl(e){if(e.providerKeyNeeded){let t=Ce.get(e.providerName.toLowerCase());return t?e.url.replace("{providerKey}",t):null}return e.url}setKeysFromServerFile(){let e=!1;0!==function(){let e=0;for(let t=0;t"+E.getText("Help - Complete the APIKeys1")+"
"+E.getText("Help - Complete the APIKeys2")+"
"+E.getText("Help - Complete the APIKeys3")+"
"),o}const De=new class{constructor(){Object.freeze(this)}dispatch(e,t){let o=function(e){return-1<["showitinerary","updateitinerary","showtravelnotes","updatetravelnotes","showsearch","updatesearch","setrouteslist","setprovider","providersadded","travelnameupdated","settransitmode"].indexOf(e)?document.querySelector("#TravelNotes-UI-MainDiv"):-1<["removeobject","removeallobjects","zoomto","additinerarypointmarker","addsearchpointmarker","addrectangle","addwaypoint","layerchange","geolocationstatuschanged","geolocationpositionchanged","routeupdated","routepropertiesupdated","noteupdated","roadbookupdate","profileclosed"].indexOf(e)?document:null}(e);if(o){let a=new Event(e);t&&(a.data=t),o.dispatchEvent(a)}}};let Ce=new Map,Re=!1;function Me(e){return Ce.get(e.toLowerCase())}function Se(e,t){Ce.set(e.toLowerCase(),t)}function Oe(e){sessionStorage.clear(),Ce.clear();let t=j.storageAvailable("sessionStorage")&&y.APIKeys.saveToSessionStorage;e.forEach(e=>{t&&sessionStorage.setItem(e.providerName.toLowerCase()+"ProviderKey",btoa(e.providerKey)),Se(e.providerName,e.providerKey)}),he.providers.forEach(e=>{e.providerKey=Me(e.name)||""}),De.dispatch("providersadded")}function Ae(e){Oe(JSON.parse((new TextDecoder).decode(e)))}function ke(e){e instanceof Error&&console.error(e),e&&"Canceled by user"!==e&&je.showError(E.getText("APIKeysManager - An error occurs when reading the APIKeys file"))}function Ue(e){window.isSecureContext&&window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey&&be().decryptData(e,Ae,ke,fe(!1).show())}const Be=new class{constructor(){Object.freeze(this)}hasKey(e){return Ce.has(e.toLowerCase())}getUrl(e){if(e.providerKeyNeeded){let t=Ce.get(e.providerName.toLowerCase());return t?e.url.replace("{providerKey}",t):null}return e.url}setKeysFromServerFile(){let e=!1;0!==function(){let e=0;for(let t=0;tThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version.
Copyright - 2017 2021 - wwwouaiebe
Contact : https://www.ouaie.be/
GitHub : https://github.com/wwwouaiebe/leaflet.TravelNotes
Version : 2.3.0.
This program uses: leaflet, Project-OSRM/osrm-text-instructions and the Overpass API
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version.
Copyright - 2017 2021 - wwwouaiebe
Contact : https://www.ouaie.be/
GitHub : https://github.com/wwwouaiebe/leaflet.TravelNotes
Version : 2.3.0.
This program uses: leaflet, Project-OSRM/osrm-text-instructions and the Overpass API