/
var
/
www
/
doncode.com.ua
/
www
/
public
/
js
/
/var/www/doncode.com.ua/www/public/js
mkdir
upload
Name
Size
Mode
Actions
counter/
-
0755
rm
images/
-
0755
rm
slick/
-
0755
rm
bootstrap.js
67589
0644
edit
dl
rm
bootstrap.min.js
37045
0644
edit
dl
rm
call_count.php
362
0644
edit
dl
rm
client_app.js
5135
0644
edit
dl
rm
color_prettify.js
1823
0644
edit
dl
rm
Control.Geocoder.js
18236
0644
edit
dl
rm
datepicker_ru.js
1010
0644
edit
dl
rm
device.min.js
2605
0644
edit
dl
rm
EasePack.min.js
5211
0666
edit
dl
rm
html5imageupload.js
34806
0644
edit
dl
rm
jquery-1.11.2.min.js
95931
0644
edit
dl
rm
jquery-ui.min.js
240427
0644
edit
dl
rm
jquery.cookie.js
1726
0644
edit
dl
rm
jquery.maskedinput.min.js
4274
0644
edit
dl
rm
jquery.min.js
3840
0644
edit
dl
rm
jquery.paginator.src.js
9378
0644
edit
dl
rm
leaflet-routing-machine.js
62769
0644
edit
dl
rm
leaflet-routing-machine.min.js
38208
0644
edit
dl
rm
leaflet.js
125410
0644
edit
dl
rm
leaflet.label.js
8364
0644
edit
dl
rm
md5.js
12295
0644
edit
dl
rm
modern.js
9201
0644
edit
dl
rm
osrm.dev.js
214260
0644
edit
dl
rm
osrm.min.js
55674
0644
edit
dl
rm
osrm.printing.dev.js
304036
0644
edit
dl
rm
osrm.priting.min.js
46055
0644
edit
dl
rm
prettify.js
13631
0644
edit
dl
rm
space.js
5749
0666
edit
dl
rm
space2.js
2953
0666
edit
dl
rm
swfobject.js
10220
0644
edit
dl
rm
template.js
19093
0644
edit
dl
rm
TweenLite.min.js
25167
0666
edit
dl
rm
typeahead.js
71417
0644
edit
dl
rm
web_socket.js
12961
0644
edit
dl
rm
web_socket_use.js
2917
0644
edit
dl
rm
Edit:
/var/www/doncode.com.ua/www/public/js/osrm.min.js
(55674B)
!function(t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):"undefined"!=typeof window?window.osrm=t():"undefined"!=typeof global?global.osrm=t():"undefined"!=typeof self&&(self.osrm=t())}(function(){return function t(e,n,o){function r(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var u=n[s]={exports:{}};e[s][0].call(u.exports,function(t){var n=e[s][1][t];return r(n?n:t)},u,u.exports,t,e,n,o)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<o.length;s++)r(o[s]);return r}({1:[function(t,e){e.exports={name:"Deutsch",Link:"Link","Open in editor":"Im Editor öffnen","Open in JOSM":"In JSOM öffnen","Download as GPX":"Als GPX herunterladen",Short:"Verkürzt","Select language and units":"Sprache und Einheiten auswählen",Print:"Drucken"}},{}],2:[function(t,e){e.exports={name:"English",Link:"Link","Open in editor":"Open in editor","Open in JOSM":"Open in JSOM","Download as GPX":"Download as GPX",Short:"Short","Select language and units":"Select language and units",Print:"Print"}},{}],3:[function(t,e,n){function o(t){return"[object Array]"===u.call(t)}function r(t,e){var n;if(null===t)n={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var o=function(){};o.prototype=t,n=new o,n.__proto__=t}return"undefined"!=typeof e&&Object.defineProperties&&Object.defineProperties(n,e),n}function i(t){return"object"!=typeof t&&"function"!=typeof t||null===t}function s(t){if(i(t))throw new TypeError("Object.keys called on a non-object");var e=[];for(var n in t)c.call(t,n)&&e.push(n);return e}function a(t){if(i(t))throw new TypeError("Object.getOwnPropertyNames called on a non-object");var e=s(t);return n.isArray(t)&&-1===n.indexOf(t,"length")&&e.push("length"),e}function l(t,e){return{value:t[e]}}var u=Object.prototype.toString,c=Object.prototype.hasOwnProperty;n.isArray="function"==typeof Array.isArray?Array.isArray:o,n.indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(e===t[n])return n;return-1},n.filter=function(t,e){if(t.filter)return t.filter(e);for(var n=[],o=0;o<t.length;o++)e(t[o],o,t)&&n.push(t[o]);return n},n.forEach=function(t,e,n){if(t.forEach)return t.forEach(e,n);for(var o=0;o<t.length;o++)e.call(n,t[o],o,t)},n.map=function(t,e){if(t.map)return t.map(e);for(var n=new Array(t.length),o=0;o<t.length;o++)n[o]=e(t[o],o,t);return n},n.reduce=function(t,e,n){if(t.reduce)return t.reduce(e,n);var o,r=!1;2<arguments.length&&(o=n,r=!0);for(var i=0,s=t.length;s>i;++i)t.hasOwnProperty(i)&&(r?o=e(o,t[i],i,t):(o=t[i],r=!0));return o},n.substr="b"!=="ab".substr(-1)?function(t,e,n){return 0>e&&(e=t.length+e),t.substr(e,n)}:function(t,e,n){return t.substr(e,n)},n.trim=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},n.bind=function(){var t=Array.prototype.slice.call(arguments),e=t.shift();if(e.bind)return e.bind.apply(e,t);var n=t.shift();return function(){e.apply(n,t.concat([Array.prototype.slice.call(arguments)]))}},n.create="function"==typeof Object.create?Object.create:r;var p="function"==typeof Object.keys?Object.keys:s,h="function"==typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:a;if((new Error).hasOwnProperty("description")){var f=function(t,e){return"[object Error]"===u.call(t)&&(e=n.filter(e,function(t){return"description"!==t&&"number"!==t&&"message"!==t})),e};n.keys=function(t){return f(t,p(t))},n.getOwnPropertyNames=function(t){return f(t,h(t))}}else n.keys=p,n.getOwnPropertyNames=h;if("function"==typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1},"a"),n.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(m){n.getOwnPropertyDescriptor=function(t,e){try{return Object.getOwnPropertyDescriptor(t,e)}catch(n){return l(t,e)}}}else n.getOwnPropertyDescriptor=l},{}],4:[function(t,e){function n(t,e){return h.isUndefined(e)?""+e:!h.isNumber(e)||!isNaN(e)&&isFinite(e)?h.isFunction(e)||h.isRegExp(e)?e.toString():e:e.toString()}function o(t,e){return h.isString(t)?t.length<e?t:t.slice(0,e):t}function r(t){return o(JSON.stringify(t.actual,n),128)+" "+t.operator+" "+o(JSON.stringify(t.expected,n),128)}function i(t,e,n,o,r){throw new g.AssertionError({message:n,actual:t,expected:e,operator:o,stackStartFunction:r})}function s(t,e){t||i(t,!0,e,"==",g.ok)}function a(t,e){if(t===e)return!0;if(h.isBuffer(t)&&h.isBuffer(e)){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return h.isDate(t)&&h.isDate(e)?t.getTime()===e.getTime():h.isRegExp(t)&&h.isRegExp(e)?t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase:h.isObject(t)||h.isObject(e)?u(t,e):t==e}function l(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function u(t,e){if(h.isNullOrUndefined(t)||h.isNullOrUndefined(e))return!1;if(t.prototype!==e.prototype)return!1;if(l(t))return l(e)?(t=m.call(t),e=m.call(e),a(t,e)):!1;try{var n,o,r=f.keys(t),i=f.keys(e)}catch(s){return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),o=r.length-1;o>=0;o--)if(r[o]!=i[o])return!1;for(o=r.length-1;o>=0;o--)if(n=r[o],!a(t[n],e[n]))return!1;return!0}function c(t,e){return t&&e?"[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function p(t,e,n,o){var r;h.isString(n)&&(o=n,n=null);try{e()}catch(s){r=s}if(o=(n&&n.name?" ("+n.name+").":".")+(o?" "+o:"."),t&&!r&&i(r,n,"Missing expected exception"+o),!t&&c(r,n)&&i(r,n,"Got unwanted exception"+o),t&&r&&n&&!c(r,n)||!t&&r)throw r}var h=t("util"),f=t("_shims"),m=Array.prototype.slice,g=e.exports=s;g.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,this.message=t.message||r(this)},h.inherits(g.AssertionError,Error),g.fail=i,g.ok=s,g.equal=function(t,e,n){t!=e&&i(t,e,n,"==",g.equal)},g.notEqual=function(t,e,n){t==e&&i(t,e,n,"!=",g.notEqual)},g.deepEqual=function(t,e,n){a(t,e)||i(t,e,n,"deepEqual",g.deepEqual)},g.notDeepEqual=function(t,e,n){a(t,e)&&i(t,e,n,"notDeepEqual",g.notDeepEqual)},g.strictEqual=function(t,e,n){t!==e&&i(t,e,n,"===",g.strictEqual)},g.notStrictEqual=function(t,e,n){t===e&&i(t,e,n,"!==",g.notStrictEqual)},g.throws=function(){p.apply(this,[!0].concat(m.call(arguments)))},g.doesNotThrow=function(){p.apply(this,[!1].concat(m.call(arguments)))},g.ifError=function(t){if(t)throw t}},{_shims:3,util:7}],5:[function(t,e,n){function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t){return t.charCodeAt(0)}var i=n,s=t("util"),a=t("_shims"),l=t("buffer").Buffer;i.unescapeBuffer=function(t,e){for(var n,o,i,s=new l(t.length),a="CHAR",u=0,c=0;u<=t.length;u++){var p=t.charCodeAt(u);switch(a){case"CHAR":switch(p){case r("%"):n=0,o=0,a="HEX0";break;case r("+"):e&&(p=r(" "));default:s[c++]=p}break;case"HEX0":if(a="HEX1",i=p,r("0")<=p&&p<=r("9"))n=p-r("0");else if(r("a")<=p&&p<=r("f"))n=p-r("a")+10;else{if(!(r("A")<=p&&p<=r("F"))){s[c++]=r("%"),s[c++]=p,a="CHAR";break}n=p-r("A")+10}break;case"HEX1":if(a="CHAR",r("0")<=p&&p<=r("9"))o=p-r("0");else if(r("a")<=p&&p<=r("f"))o=p-r("a")+10;else{if(!(r("A")<=p&&p<=r("F"))){s[c++]=r("%"),s[c++]=i,s[c++]=p;break}o=p-r("A")+10}s[c++]=16*n+o}}return s.slice(0,c-1)},i.unescape=function(t,e){return i.unescapeBuffer(t,e).toString()},i.escape=function(t){return encodeURIComponent(t)};var u=function(t){return s.isString(t)?t:s.isBoolean(t)?t?"true":"false":s.isNumber(t)&&isFinite(t)?t:""};i.stringify=i.encode=function(t,e,n,o){return e=e||"&",n=n||"=",s.isNull(t)&&(t=void 0),s.isObject(t)?a.map(a.keys(t),function(o){var r=i.escape(u(o))+n;return s.isArray(t[o])?a.map(t[o],function(t){return r+i.escape(u(t))}).join(e):r+i.escape(u(t[o]))}).join(e):o?i.escape(u(o))+n+i.escape(u(t)):""},i.parse=i.decode=function(t,e,n,r){e=e||"&",n=n||"=";var a={};if(!s.isString(t)||0===t.length)return a;var l=/\+/g;t=t.split(e);var u=1e3;r&&s.isNumber(r.maxKeys)&&(u=r.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var p=0;c>p;++p){var h,f,m,g,d=t[p].replace(l,"%20"),y=d.indexOf(n);y>=0?(h=d.substr(0,y),f=d.substr(y+1)):(h=d,f="");try{m=decodeURIComponent(h),g=decodeURIComponent(f)}catch(v){m=i.unescape(h,!0),g=i.unescape(f,!0)}o(a,m)?s.isArray(a[m])?a[m].push(g):a[m]=[a[m],g]:a[m]=g}return a}},{_shims:3,buffer:9,util:7}],6:[function(t,e,n){function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function r(t,e,n){if(t&&u.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}function i(t){return u.isString(t)&&(t=r(t)),t instanceof o?t.format():o.prototype.format.call(t)}function s(t,e){return r(t,!1,!0).resolve(e)}function a(t,e){return t?r(t,!1,!0).resolveObject(e):e}var l={encode:function(t){return t}},u=t("util"),c=t("_shims");n.parse=r,n.resolve=s,n.resolveObject=a,n.format=i,n.Url=o;var p=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,f=["<",">",'"',"`"," ","\r","\n"," "],m=["{","}","|","\\","^","`"].concat(f),g=["'"].concat(m),d=["%","/","?",";","#"].concat(g),y=["/","?","#"],v=255,b=/^[a-z0-9A-Z_-]{0,63}$/,w=/^([a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},k={javascript:!0,"javascript:":!0},L={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=t("querystring");o.prototype.parse=function(t,e,n){if(!u.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t;o=c.trim(o);var r=p.exec(o);if(r){r=r[0];var i=r.toLowerCase();this.protocol=i,o=o.substr(r.length)}if(n||r||o.match(/^\/\/[^@\/]+@[^@\/]+/)){var s="//"===o.substr(0,2);!s||r&&k[r]||(o=o.substr(2),this.slashes=!0)}if(!k[r]&&(s||r&&!L[r])){for(var a=-1,h=0;h<y.length;h++){var f=o.indexOf(y[h]);-1!==f&&(-1===a||a>f)&&(a=f)}var m,C;C=-1===a?o.lastIndexOf("@"):o.lastIndexOf("@",a),-1!==C&&(m=o.slice(0,C),o=o.slice(C+1),this.auth=decodeURIComponent(m)),a=-1;for(var h=0;h<d.length;h++){var f=o.indexOf(d[h]);-1!==f&&(-1===a||a>f)&&(a=f)}-1===a&&(a=o.length),this.host=o.slice(0,a),o=o.slice(a),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var j=this.hostname.split(/\./),h=0,S=j.length;S>h;h++){var _=j[h];if(_&&!_.match(b)){for(var D="",U=0,A=_.length;A>U;U++)D+=_.charCodeAt(U)>127?"x":_[U];if(!D.match(b)){var M=j.slice(0,h),I=j.slice(h+1),B=_.match(w);B&&(M.push(B[1]),I.unshift(B[2])),I.length&&(o="/"+I.join(".")+o),this.hostname=M.join(".");break}}}if(this.hostname=this.hostname.length>v?"":this.hostname.toLowerCase(),!O){for(var N=this.hostname.split("."),z=[],h=0;h<N.length;++h){var P=N[h];z.push(P.match(/[^A-Za-z0-9_-]/)?"xn--"+l.encode(P):P)}this.hostname=z.join(".")}var T=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+T,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==o[0]&&(o="/"+o))}if(!x[i])for(var h=0,S=g.length;S>h;h++){var R=g[h],W=encodeURIComponent(R);W===R&&(W=escape(R)),o=o.split(R).join(W)}var F=o.indexOf("#");-1!==F&&(this.hash=o.substr(F),o=o.slice(0,F));var H=o.indexOf("?");if(-1!==H?(this.search=o.substr(H),this.query=o.substr(H+1),e&&(this.query=E.parse(this.query)),o=o.slice(0,H)):e&&(this.search="",this.query={}),o&&(this.pathname=o),L[i]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var T=this.pathname||"",P=this.search||"";this.path=T+P}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",o=this.hash||"",r=!1,i="";this.host?r=t+this.host:this.hostname&&(r=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&u.isObject(this.query)&&c.keys(this.query).length&&(i=E.stringify(this.query));var s=this.search||i&&"?"+i||"";return e&&":"!==c.substr(e,-1)&&(e+=":"),this.slashes||(!e||L[e])&&r!==!1?(r="//"+(r||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):r||(r=""),o&&"#"!==o.charAt(0)&&(o="#"+o),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),s=s.replace("#","%23"),e+r+n+s+o},o.prototype.resolve=function(t){return this.resolveObject(r(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(u.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}var n=new o;if(c.forEach(c.keys(this),function(t){n[t]=this[t]},this),n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol)return c.forEach(c.keys(t),function(e){"protocol"!==e&&(n[e]=t[e])}),L[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n;if(t.protocol&&t.protocol!==n.protocol){if(!L[t.protocol])return c.forEach(c.keys(t),function(e){n[e]=t[e]}),n.href=n.format(),n;if(n.protocol=t.protocol,t.host||k[t.protocol])n.pathname=t.pathname;else{for(var r=(t.pathname||"").split("/");r.length&&!(t.host=r.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),n.pathname=r.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var i=n.pathname||"",s=n.search||"";n.path=i+s}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var a=n.pathname&&"/"===n.pathname.charAt(0),l=t.host||t.pathname&&"/"===t.pathname.charAt(0),p=l||a||n.host&&t.pathname,h=p,f=n.pathname&&n.pathname.split("/")||[],r=t.pathname&&t.pathname.split("/")||[],m=n.protocol&&!L[n.protocol];if(m&&(n.hostname="",n.port=null,n.host&&(""===f[0]?f[0]=n.host:f.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===r[0]?r[0]=t.host:r.unshift(t.host)),t.host=null),p=p&&(""===r[0]||""===f[0])),l)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,f=r;else if(r.length)f||(f=[]),f.pop(),f=f.concat(r),n.search=t.search,n.query=t.query;else if(!u.isNullOrUndefined(t.search)){if(m){n.hostname=n.host=f.shift();var g=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;g&&(n.auth=g.shift(),n.host=n.hostname=g.shift())}return n.search=t.search,n.query=t.query,u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!f.length)return n.pathname=null,n.path=n.search?"/"+n.search:null,n.href=n.format(),n;for(var d=f.slice(-1)[0],y=(n.host||t.host)&&("."===d||".."===d)||""===d,v=0,b=f.length;b>=0;b--)d=f[b],"."==d?f.splice(b,1):".."===d?(f.splice(b,1),v++):v&&(f.splice(b,1),v--);if(!p&&!h)for(;v--;v)f.unshift("..");!p||""===f[0]||f[0]&&"/"===f[0].charAt(0)||f.unshift(""),y&&"/"!==c.substr(f.join("/"),-1)&&f.push("");var w=""===f[0]||f[0]&&"/"===f[0].charAt(0);if(m){n.hostname=n.host=w?"":f.length?f.shift():"";var g=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;g&&(n.auth=g.shift(),n.host=n.hostname=g.shift())}return p=p||n.host&&f.length,p&&!w&&f.unshift(""),f.length?n.pathname=f.join("/"):(n.pathname=null,n.path=null),u.isNull(n.pathname)&&u.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=h.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{_shims:3,querystring:5,util:7}],7:[function(t,e,n){function o(t,e){var o={seen:[],stylize:i};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),m(e)?o.showHidden=e:e&&n._extend(o,e),w(o.showHidden)&&(o.showHidden=!1),w(o.depth)&&(o.depth=2),w(o.colors)&&(o.colors=!1),w(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=r),a(o,t,o.depth)}function r(t,e){var n=o.styles[e];return n?"["+o.colors[n][0]+"m"+t+"["+o.colors[n][1]+"m":t}function i(t){return t}function s(t){var e={};return A.forEach(t,function(t){e[t]=!0}),e}function a(t,e,o){if(t.customInspect&&e&&C(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(o);return v(r)||(r=a(t,r,o)),r}var i=l(t,e);if(i)return i;var m=A.keys(e),g=s(m);if(t.showHidden&&(m=A.getOwnPropertyNames(e)),0===m.length){if(C(e)){var d=e.name?": "+e.name:"";return t.stylize("[Function"+d+"]","special")}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(L(e))return t.stylize(Date.prototype.toString.call(e),"date");if(E(e))return u(e)}var y="",b=!1,w=["{","}"];if(f(e)&&(b=!0,w=["[","]"]),C(e)){var k=e.name?": "+e.name:"";y=" [Function"+k+"]"}if(x(e)&&(y=" "+RegExp.prototype.toString.call(e)),L(e)&&(y=" "+Date.prototype.toUTCString.call(e)),E(e)&&(y=" "+u(e)),0===m.length&&(!b||0==e.length))return w[0]+y+w[1];if(0>o)return x(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var O;return O=b?c(t,e,o,g,m):m.map(function(n){return p(t,e,o,g,n,b)}),t.seen.pop(),h(O,y,w)}function l(t,e){if(w(e))return t.stylize("undefined","undefined");if(v(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}function u(t){return"["+Error.prototype.toString.call(t)+"]"}function c(t,e,n,o,r){for(var i=[],s=0,a=e.length;a>s;++s)i.push(U(e,String(s))?p(t,e,n,o,String(s),!0):"");return A.forEach(r,function(r){r.match(/^\d+$/)||i.push(p(t,e,n,o,r,!0))}),i}function p(t,e,n,o,r,i){var s,l,u;if(u=A.getOwnPropertyDescriptor(e,r)||{value:e[r]},u.get?l=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(l=t.stylize("[Setter]","special")),U(o,r)||(s="["+r+"]"),l||(A.indexOf(t.seen,u.value)<0?(l=g(n)?a(t,u.value,null):a(t,u.value,n-1),l.indexOf("\n")>-1&&(l=i?l.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+l.split("\n").map(function(t){return" "+t}).join("\n"))):l=t.stylize("[Circular]","special")),w(s)){if(i&&r.match(/^\d+$/))return l;s=JSON.stringify(""+r),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+l}function h(t,e,n){var o=0,r=A.reduce(t,function(t,e){return o++,e.indexOf("\n")>=0&&o++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function f(t){return A.isArray(t)}function m(t){return"boolean"==typeof t}function g(t){return null===t}function d(t){return null==t}function y(t){return"number"==typeof t}function v(t){return"string"==typeof t}function b(t){return"symbol"==typeof t}function w(t){return void 0===t}function x(t){return k(t)&&"[object RegExp]"===S(t)}function k(t){return"object"==typeof t&&t}function L(t){return k(t)&&"[object Date]"===S(t)}function E(t){return k(t)&&"[object Error]"===S(t)}function C(t){return"function"==typeof t}function O(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function j(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.binarySlice}function S(t){return Object.prototype.toString.call(t)}function _(t){return 10>t?"0"+t.toString(10):t.toString(10)}function D(){var t=new Date,e=[_(t.getHours()),_(t.getMinutes()),_(t.getSeconds())].join(":");return[t.getDate(),I[t.getMonth()],e].join(" ")}function U(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var A=t("_shims"),M=/%[sdj%]/g;n.format=function(t){if(!v(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(o(arguments[n]));return e.join(" ")}for(var n=1,r=arguments,i=r.length,s=String(t).replace(M,function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}}),a=r[n];i>n;a=r[++n])s+=g(a)||!k(a)?" "+a:" "+o(a);return s},n.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=f,n.isBoolean=m,n.isNull=g,n.isNullOrUndefined=d,n.isNumber=y,n.isString=v,n.isSymbol=b,n.isUndefined=w,n.isRegExp=x,n.isObject=k,n.isDate=L,n.isError=E,n.isFunction=C,n.isPrimitive=O,n.isBuffer=j;var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",D(),n.format.apply(n,arguments))},n.inherits=function(t,e){t.super_=e,t.prototype=A.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},n._extend=function(t,e){if(!e||!k(e))return t;for(var n=A.keys(e),o=n.length;o--;)t[n[o]]=e[n[o]];return t}},{_shims:3}],8:[function(t,e,n){n.readIEEE754=function(t,e,n,o,r){var i,s,a=8*r-o-1,l=(1<<a)-1,u=l>>1,c=-7,p=n?0:r-1,h=n?1:-1,f=t[e+p];for(p+=h,i=f&(1<<-c)-1,f>>=-c,c+=a;c>0;i=256*i+t[e+p],p+=h,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=o;c>0;s=256*s+t[e+p],p+=h,c-=8);if(0===i)i=1-u;else{if(i===l)return s?0/0:1/0*(f?-1:1);s+=Math.pow(2,o),i-=u}return(f?-1:1)*s*Math.pow(2,i-o)},n.writeIEEE754=function(t,e,n,o,r,i){var s,a,l,u=8*i-r-1,c=(1<<u)-1,p=c>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?i-1:0,m=o?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),e+=s+p>=1?h/l:h*Math.pow(2,1-p),e*l>=2&&(s++,l/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(e*l-1)*Math.pow(2,r),s+=p):(a=e*Math.pow(2,p-1)*Math.pow(2,r),s=0));r>=8;t[n+f]=255&a,f+=m,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;t[n+f]=255&s,f+=m,s/=256,u-=8);t[n+f-m]|=128*g}},{}],9:[function(t,e,n){function o(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function r(e,n,i){if(D||(D=t("assert")),!(this instanceof r))return new r(e,n,i);if(this.parent=this,this.offset=0,"base64"==n&&"string"==typeof e)for(e=o(e);e.length%4!=0;)e+="=";var a;if("number"==typeof i){this.length=s(n);for(var u=0;u<this.length;u++)this[u]=e.get(u+i)}else{switch(a=typeof e){case"number":this.length=s(e);break;case"string":this.length=r.byteLength(e,n);break;case"object":this.length=s(e.length);break;default:throw new Error("First argument needs to be a number, array or string.")}if(l(e))for(var u=0;u<this.length;u++)this[u]=e instanceof r?e.readUInt8(u):e[u];else if("string"==a)this.length=this.write(e,0,n);else if("number"===a)for(var u=0;u<this.length;u++)this[u]=0}}function i(t,e,n){return"number"!=typeof t?n:(t=~~t,t>=e?e:t>=0?t:(t+=e,t>=0?t:0))}function s(t){return t=~~Math.ceil(+t),0>t?0:t}function a(t){return(Array.isArray||function(t){return"[object Array]"=={}.toString.apply(t)})(t)}function l(t){return a(t)||r.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function u(t){return 16>t?"0"+t.toString(16):t.toString(16)}function c(t){for(var e=[],n=0;n<t.length;n++)if(t.charCodeAt(n)<=127)e.push(t.charCodeAt(n));else for(var o=encodeURIComponent(t.charAt(n)).substr(1).split("%"),r=0;r<o.length;r++)e.push(parseInt(o[r],16));return e}function p(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function h(e){return t("base64-js").toByteArray(e)}function f(t,e,n,o){for(var r=0;o>r&&!(r+n>=e.length||r>=t.length);)e[r+n]=t[r],r++;return r}function m(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function g(t,e,n,o){var r=0;return o||(D.ok("boolean"==typeof n,"missing or invalid endian"),D.ok(void 0!==e&&null!==e,"missing offset"),D.ok(e+1<t.length,"Trying to read beyond buffer length")),e>=t.length?0:(n?(r=t[e]<<8,e+1<t.length&&(r|=t[e+1])):(r=t[e],e+1<t.length&&(r|=t[e+1]<<8)),r)}function d(t,e,n,o){var r=0;return o||(D.ok("boolean"==typeof n,"missing or invalid endian"),D.ok(void 0!==e&&null!==e,"missing offset"),D.ok(e+3<t.length,"Trying to read beyond buffer length")),e>=t.length?0:(n?(e+1<t.length&&(r=t[e+1]<<16),e+2<t.length&&(r|=t[e+2]<<8),e+3<t.length&&(r|=t[e+3]),r+=t[e]<<24>>>0):(e+2<t.length&&(r=t[e+2]<<16),e+1<t.length&&(r|=t[e+1]<<8),r|=t[e],e+3<t.length&&(r+=t[e+3]<<24>>>0)),r)}function y(t,e,n,o){var r,i;return o||(D.ok("boolean"==typeof n,"missing or invalid endian"),D.ok(void 0!==e&&null!==e,"missing offset"),D.ok(e+1<t.length,"Trying to read beyond buffer length")),i=g(t,e,n,o),r=32768&i,r?-1*(65535-i+1):i}function v(t,e,n,o){var r,i;return o||(D.ok("boolean"==typeof n,"missing or invalid endian"),D.ok(void 0!==e&&null!==e,"missing offset"),D.ok(e+3<t.length,"Trying to read beyond buffer length")),i=d(t,e,n,o),r=2147483648&i,r?-1*(4294967295-i+1):i}function b(e,n,o,r){return r||(D.ok("boolean"==typeof o,"missing or invalid endian"),D.ok(n+3<e.length,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,n,o,23,4)}function w(e,n,o,r){return r||(D.ok("boolean"==typeof o,"missing or invalid endian"),D.ok(n+7<e.length,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,n,o,52,8)}function x(t,e){D.ok("number"==typeof t,"cannot write a non-number as a number"),D.ok(t>=0,"specified a negative value for writing an unsigned value"),D.ok(e>=t,"value is larger than maximum value for type"),D.ok(Math.floor(t)===t,"value has a fractional component")}function k(t,e,n,o,r){r||(D.ok(void 0!==e&&null!==e,"missing value"),D.ok("boolean"==typeof o,"missing or invalid endian"),D.ok(void 0!==n&&null!==n,"missing offset"),D.ok(n+1<t.length,"trying to write beyond buffer length"),x(e,65535));for(var i=0;i<Math.min(t.length-n,2);i++)t[n+i]=(e&255<<8*(o?1-i:i))>>>8*(o?1-i:i)}function L(t,e,n,o,r){r||(D.ok(void 0!==e&&null!==e,"missing value"),D.ok("boolean"==typeof o,"missing or invalid endian"),D.ok(void 0!==n&&null!==n,"missing offset"),D.ok(n+3<t.length,"trying to write beyond buffer length"),x(e,4294967295));for(var i=0;i<Math.min(t.length-n,4);i++)t[n+i]=e>>>8*(o?3-i:i)&255}function E(t,e,n){D.ok("number"==typeof t,"cannot write a non-number as a number"),D.ok(e>=t,"value larger than maximum allowed value"),D.ok(t>=n,"value smaller than minimum allowed value"),D.ok(Math.floor(t)===t,"value has a fractional component")}function C(t,e,n){D.ok("number"==typeof t,"cannot write a non-number as a number"),D.ok(e>=t,"value larger than maximum allowed value"),D.ok(t>=n,"value smaller than minimum allowed value")}function O(t,e,n,o,r){r||(D.ok(void 0!==e&&null!==e,"missing value"),D.ok("boolean"==typeof o,"missing or invalid endian"),D.ok(void 0!==n&&null!==n,"missing offset"),D.ok(n+1<t.length,"Trying to write beyond buffer length"),E(e,32767,-32768)),e>=0?k(t,e,n,o,r):k(t,65535+e+1,n,o,r)}function j(t,e,n,o,r){r||(D.ok(void 0!==e&&null!==e,"missing value"),D.ok("boolean"==typeof o,"missing or invalid endian"),D.ok(void 0!==n&&null!==n,"missing offset"),D.ok(n+3<t.length,"Trying to write beyond buffer length"),E(e,2147483647,-2147483648)),e>=0?L(t,e,n,o,r):L(t,4294967295+e+1,n,o,r)}function S(e,n,o,r,i){i||(D.ok(void 0!==n&&null!==n,"missing value"),D.ok("boolean"==typeof r,"missing or invalid endian"),D.ok(void 0!==o&&null!==o,"missing offset"),D.ok(o+3<e.length,"Trying to write beyond buffer length"),C(n,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,n,o,r,23,4)}function _(e,n,o,r,i){i||(D.ok(void 0!==n&&null!==n,"missing value"),D.ok("boolean"==typeof r,"missing or invalid endian"),D.ok(void 0!==o&&null!==o,"missing offset"),D.ok(o+7<e.length,"Trying to write beyond buffer length"),C(n,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,n,o,r,52,8)}var D;n.Buffer=r,n.SlowBuffer=r,r.poolSize=8192,n.INSPECT_MAX_BYTES=50,r.prototype.get=function(t){if(0>t||t>=this.length)throw new Error("oob");return this[t]},r.prototype.set=function(t,e){if(0>t||t>=this.length)throw new Error("oob");return this[t]=e},r.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return c(t).length;case"ascii":case"binary":return t.length;case"base64":return h(t).length;default:throw new Error("Unknown encoding")}},r.prototype.utf8Write=function(t,e,n){return r._charsWritten=f(c(t),this,e,n)},r.prototype.asciiWrite=function(t,e,n){return r._charsWritten=f(p(t),this,e,n)},r.prototype.binaryWrite=r.prototype.asciiWrite,r.prototype.base64Write=function(t,e,n){return r._charsWritten=f(h(t),this,e,n)},r.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},r.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",n="",o=0;o<t.length;)t[o]<=127?(e+=m(n)+String.fromCharCode(t[o]),n=""):n+="%"+t[o].toString(16),o++;return e+m(n)},r.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},r.prototype.binarySlice=r.prototype.asciiSlice,r.prototype.inspect=function(){for(var t=[],e=this.length,o=0;e>o;o++)if(t[o]=u(this[o]),o==n.INSPECT_MAX_BYTES){t[o+1]="...";break}return"<Buffer "+t.join(" ")+">"},r.prototype.hexSlice=function(t,e){var n=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>n)&&(e=n);for(var o="",r=t;e>r;r++)o+=u(this[r]);return o},r.prototype.toString=function(t,e,n){if(t=String(t||"utf8").toLowerCase(),e=+e||0,"undefined"==typeof n&&(n=this.length),+n==e)return"";switch(t){case"hex":return this.hexSlice(e,n);case"utf8":case"utf-8":return this.utf8Slice(e,n);case"ascii":return this.asciiSlice(e,n);case"binary":return this.binarySlice(e,n);case"base64":return this.base64Slice(e,n);case"ucs2":case"ucs-2":return this.ucs2Slice(e,n);default:throw new Error("Unknown encoding")}},r.prototype.hexWrite=function(t,e,n){e=+e||0;var o=this.length-e;n?(n=+n,n>o&&(n=o)):n=o;var i=t.length;if(i%2)throw new Error("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;n>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw new Error("Invalid hex string");this[e+s]=a}return r._charsWritten=2*s,s},r.prototype.write=function(t,e,n,o){if(isFinite(e))isFinite(n)||(o=n,n=void 0);else{var r=o;o=e,e=n,n=r}e=+e||0;var i=this.length-e;switch(n?(n=+n,n>i&&(n=i)):n=i,o=String(o||"utf8").toLowerCase()){case"hex":return this.hexWrite(t,e,n);case"utf8":case"utf-8":return this.utf8Write(t,e,n);case"ascii":return this.asciiWrite(t,e,n);case"binary":return this.binaryWrite(t,e,n);case"base64":return this.base64Write(t,e,n);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,n);default:throw new Error("Unknown encoding")}},r.prototype.slice=function(t,e){var n=this.length;return t=i(t,n,0),e=i(e,n,n),new r(this,e-t,+t)},r.prototype.copy=function(t,e,n,o){var r=this;if(n||(n=0),(void 0===o||isNaN(o))&&(o=this.length),e||(e=0),n>o)throw new Error("sourceEnd < sourceStart");if(o===n)return 0;if(0==t.length||0==r.length)return 0;if(0>e||e>=t.length)throw new Error("targetStart out of bounds");if(0>n||n>=r.length)throw new Error("sourceStart out of bounds");if(0>o||o>r.length)throw new Error("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-n&&(o=t.length-e+n);for(var i=[],s=n;o>s;s++)D.ok("undefined"!=typeof this[s],"copying undefined buffer bytes!"),i.push(this[s]);for(var s=e;s<e+i.length;s++)t[s]=i[s-e]},r.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw new Error("value is not a number");if(e>n)throw new Error("end < start");if(n===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw new Error("start out of bounds");if(0>n||n>this.length)throw new Error("end out of bounds"); for(var o=e;n>o;o++)this[o]=t},r.isBuffer=function(t){return t instanceof r||t instanceof r},r.concat=function(t,e){if(!a(t))throw new Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new r(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var n=0;n<t.length;n++){var o=t[n];e+=o.length}}for(var i=new r(e),s=0,n=0;n<t.length;n++){var o=t[n];o.copy(i,s),s+=o.length}return i},r.isEncoding=function(t){switch((t+"").toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},r.prototype.readUInt8=function(t,e){var n=this;return e||(D.ok(void 0!==t&&null!==t,"missing offset"),D.ok(t<n.length,"Trying to read beyond buffer length")),t>=n.length?void 0:n[t]},r.prototype.readUInt16LE=function(t,e){return g(this,t,!1,e)},r.prototype.readUInt16BE=function(t,e){return g(this,t,!0,e)},r.prototype.readUInt32LE=function(t,e){return d(this,t,!1,e)},r.prototype.readUInt32BE=function(t,e){return d(this,t,!0,e)},r.prototype.readInt8=function(t,e){var n,o=this;return e||(D.ok(void 0!==t&&null!==t,"missing offset"),D.ok(t<o.length,"Trying to read beyond buffer length")),t>=o.length?void 0:(n=128&o[t],n?-1*(255-o[t]+1):o[t])},r.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},r.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},r.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},r.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},r.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},r.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},r.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},r.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},r.prototype.writeUInt8=function(t,e,n){var o=this;n||(D.ok(void 0!==t&&null!==t,"missing value"),D.ok(void 0!==e&&null!==e,"missing offset"),D.ok(e<o.length,"trying to write beyond buffer length"),x(t,255)),e<o.length&&(o[e]=t)},r.prototype.writeUInt16LE=function(t,e,n){k(this,t,e,!1,n)},r.prototype.writeUInt16BE=function(t,e,n){k(this,t,e,!0,n)},r.prototype.writeUInt32LE=function(t,e,n){L(this,t,e,!1,n)},r.prototype.writeUInt32BE=function(t,e,n){L(this,t,e,!0,n)},r.prototype.writeInt8=function(t,e,n){var o=this;n||(D.ok(void 0!==t&&null!==t,"missing value"),D.ok(void 0!==e&&null!==e,"missing offset"),D.ok(e<o.length,"Trying to write beyond buffer length"),E(t,127,-128)),t>=0?o.writeUInt8(t,e,n):o.writeUInt8(255+t+1,e,n)},r.prototype.writeInt16LE=function(t,e,n){O(this,t,e,!1,n)},r.prototype.writeInt16BE=function(t,e,n){O(this,t,e,!0,n)},r.prototype.writeInt32LE=function(t,e,n){j(this,t,e,!1,n)},r.prototype.writeInt32BE=function(t,e,n){j(this,t,e,!0,n)},r.prototype.writeFloatLE=function(t,e,n){S(this,t,e,!1,n)},r.prototype.writeFloatBE=function(t,e,n){S(this,t,e,!0,n)},r.prototype.writeDoubleLE=function(t,e,n){_(this,t,e,!1,n)},r.prototype.writeDoubleBE=function(t,e,n){_(this,t,e,!0,n)}},{"./buffer_ieee754":8,assert:4,"base64-js":10}],10:[function(t,e){!function(){"use strict";function t(t){var e,n,r,i,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],r=s>0?t.length-4:t.length,e=0,n=0;r>e;e+=4,n+=3)i=o.indexOf(t[e])<<18|o.indexOf(t[e+1])<<12|o.indexOf(t[e+2])<<6|o.indexOf(t[e+3]),a.push((16711680&i)>>16),a.push((65280&i)>>8),a.push(255&i);return 2===s?(i=o.indexOf(t[e])<<2|o.indexOf(t[e+1])>>4,a.push(255&i)):1===s&&(i=o.indexOf(t[e])<<10|o.indexOf(t[e+1])<<4|o.indexOf(t[e+2])>>2,a.push(i>>8&255),a.push(255&i)),a}function n(t){function e(t){return o[t>>18&63]+o[t>>12&63]+o[t>>6&63]+o[63&t]}var n,r,i,s=t.length%3,a="";for(n=0,i=t.length-s;i>n;n+=3)r=(t[n]<<16)+(t[n+1]<<8)+t[n+2],a+=e(r);switch(s){case 1:r=t[t.length-1],a+=o[r>>2],a+=o[r<<4&63],a+="==";break;case 2:r=(t[t.length-2]<<8)+t[t.length-1],a+=o[r>>10],a+=o[r>>4&63],a+=o[r<<2&63],a+="="}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=n}()},{}],11:[function(t,e){function n(){}function o(t,e,o){function s(){a.parentNode.removeChild(a),window[m]=n}"function"==typeof e&&(o=e,e={}),e||(e={});var a,l,u=e.prefix||"__jp",c=e.param||"callback",p=null!=e.timeout?e.timeout:6e4,h=encodeURIComponent,f=document.getElementsByTagName("script")[0]||document.head,m=u+i++;p&&(l=setTimeout(function(){s(),o&&o(new Error("Timeout"))},p)),window[m]=function(t){r("jsonp got",t),l&&clearTimeout(l),s(),o&&o(null,t)},t+=(~t.indexOf("?")?"&":"?")+c+"="+h(m),t=t.replace("?&","?"),r('jsonp req "%s"',t),a=document.createElement("script"),a.src=t,f.parentNode.insertBefore(a,f)}var r=t("debug")("jsonp");e.exports=o;var i=0},{debug:12}],12:[function(t,e,n){function o(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function r(){var t=arguments,e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+n.humanize(this.diff),!e)return t;var o="color: "+this.color;t=[t[0],o,"color: inherit"].concat(Array.prototype.slice.call(t,1));var r=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(r++,"%c"===t&&(i=r))}),t.splice(i,0,o),t}function i(){return"object"==typeof console&&"function"==typeof console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(t){try{null==t?localStorage.removeItem("debug"):localStorage.debug=t}catch(e){}}function a(){var t;try{t=localStorage.debug}catch(e){}return t}n=e.exports=t("./debug"),n.log=i,n.formatArgs=r,n.save=s,n.load=a,n.useColors=o,n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(t){return JSON.stringify(t)},n.enable(a())},{"./debug":13}],13:[function(t,e,n){function o(){return n.colors[c++%n.colors.length]}function r(t){function e(){}function r(){var t=r,e=+new Date,i=e-(u||e);t.diff=i,t.prev=u,t.curr=e,u=e,null==t.useColors&&(t.useColors=n.useColors()),null==t.color&&t.useColors&&(t.color=o());var s=Array.prototype.slice.call(arguments);s[0]=n.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var a=0;s[0]=s[0].replace(/%([a-z%])/g,function(e,o){if("%%"===e)return e;a++;var r=n.formatters[o];if("function"==typeof r){var i=s[a];e=r.call(t,i),s.splice(a,1),a--}return e}),"function"==typeof n.formatArgs&&(s=n.formatArgs.apply(t,s));var l=r.log||n.log||console.log.bind(console);l.apply(t,s)}e.enabled=!1,r.enabled=!0;var i=n.enabled(t)?r:e;return i.namespace=t,i}function i(t){n.save(t);for(var e=(t||"").split(/[\s,]+/),o=e.length,r=0;o>r;r++)e[r]&&(t=e[r].replace(/\*/g,".*?"),"-"===t[0]?n.skips.push(new RegExp("^"+t.substr(1)+"$")):n.names.push(new RegExp("^"+t+"$")))}function s(){n.enable("")}function a(t){var e,o;for(e=0,o=n.skips.length;o>e;e++)if(n.skips[e].test(t))return!1;for(e=0,o=n.names.length;o>e;e++)if(n.names[e].test(t))return!0;return!1}function l(t){return t instanceof Error?t.stack||t.message:t}n=e.exports=r,n.coerce=l,n.disable=s,n.enable=i,n.enabled=a,n.humanize=t("ms"),n.names=[],n.skips=[],n.formatters={};var u,c=0},{ms:14}],14:[function(t,e){function n(t){var e=/^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"y":return n*c;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"h":return n*l;case"minutes":case"minute":case"m":return n*a;case"seconds":case"second":case"s":return n*s;case"ms":return n}}}function o(t){return t>=u?Math.round(t/u)+"d":t>=l?Math.round(t/l)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function r(t){return i(t,u,"day")||i(t,l,"hour")||i(t,a,"minute")||i(t,s,"second")||t+" ms"}function i(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,l=60*a,u=24*l,c=365.25*u;e.exports=function(t,e){return e=e||{},"string"==typeof t?n(t):e.long?r(t):o(t)}},{}],15:[function(t,e){"use strict";var n=t("./itinerary_builder.js"),o=t("./geocoder.js"),r="#3c4e5a",i="#f1f075",s={lrm:{addButtonClassName:"mapbox-directions-button-add",pointMarkerStyle:{radius:6,color:"black",fillColor:i,opacity:.35,fillOpacity:1,weight:1},lineOptions:{styles:[{color:"black",opacity:.35,weight:8},{color:"white",opacity:.3,weight:6},{color:r,opacity:1,weight:4}]},dragStyles:[{color:"black",opacity:.35,weight:9},{color:"white",opacity:.8,weight:7},{color:r,opacity:1,weight:5,dashArray:"7,12"}],summaryTemplate:'<div class="mapbox-directions-summary"><h2>{name}</h2><h3>{distance}, {time}</h3></div>',containerClassName:"dark pad2",alternativeClassName:"mapbox-directions-instructions",stepClassName:"mapbox-directions-step",geocodersClassName:"mapbox-directions-inputs",createGeocoder:o,itineraryBuilder:n({containerClassName:"mapbox-directions-steps"})},popup:{removeButtonClass:"mapbox-directions-icon mapbox-close-light-icon",uturnButtonClass:"mapbox-directions-icon mapbox-u-turn-icon",markerOptions:{}},tools:{popupWindowClass:"fill-dark dark",popupCloseButtonClass:"mapbox-directions-icon mapbox-close-icon",linkButtonClass:"mapbox-directions-icon mapbox-link-icon",editorButtonClass:"mapbox-directions-icon mapbox-editor-icon",josmButtonClass:"mapbox-directions-icon mapbox-josm-icon",localizationButtonClass:"mapbox-directions-icon mapbox-flag-icon",printButtonClass:"icon printer",toolsContainerClass:"fill-dark dark"}};e.exports={options:s,setup:function(t){t.hide(),t.on("routeselected",function(){t.show()})}}},{"./geocoder.js":16,"./itinerary_builder.js":18}],16:[function(t,e){"use strict";var n=function(t,e){var n=L.DomUtil.create("div",function(){return 0===t?"mapbox-directions-origin":t===e-1?"mapbox-directions-destination":"mapbox-directions-via"}()),o=L.DomUtil.create("label","mapbox-form-label",n),r=L.DomUtil.create("input","",n),i=L.DomUtil.create("span","mapbox-directions-icon mapbox-close-icon",n),s=String.fromCharCode(65+t),a=L.DomUtil.create("div","leaflet-osrm-geocoder-label",o);return a.innerHTML=s,{container:n,input:r,closeButton:i}};e.exports=n},{}],17:[function(t){"use strict";function e(){p.off("routeselected",e),p.off("routingerror",e),p.selectAlternative(u.alternative)}var n=t("./directions_theme.js"),o=t("./links.js"),r=t("./options.js"),i=t("./tools.js"),s=t("./markers.js"),a=t("./osrm-map.js"),l=o.parse(window.location.search),u=L.extend(r.viewDefaults,l),c=new a("map",{zoomControl:!1,layers:[r.layers[u.layer]]}).setView(u.center,u.zoom),p=L.Routing.control(L.extend({language:u.language,units:u.units,serviceUrl:r.services[u.service]},L.extend(r.controlDefaults,n.options.lrm))).addTo(c);p.getPlan().options.createMarker=s(p,n.options.popup),i.control(p,L.extend({position:"bottomleft",language:u.language},n.options.tools)).addTo(c),L.control.layers(r.layers,{},{position:"bottomleft"}).addTo(c),L.control.scale({position:"bottomleft"}).addTo(c),c.on("click",function(t){var e,n=p.getPlan(),o=n.getWaypoints();for(e=0;e<o.length;e++)if(void 0===o[e].latLng||null===o[e].latLng){n.spliceWaypoints(e,1,t.latlng);break}}),u.alternative&&(p.on("routeselected",e),p.on("routingerror",e)),p.setWaypoints(u.waypoints)},{"./directions_theme.js":15,"./links.js":19,"./markers.js":21,"./options.js":22,"./osrm-map.js":23,"./tools.js":24}],18:[function(t,e){"use strict";var n=L.Class.extend({options:{containerClassName:""},initialize:function(t){L.setOptions(this,t)},createContainer:function(){return L.DomUtil.create("div",this.options.containerClassName)},createStepsContainer:function(){return L.DomUtil.create("ol","")},createStep:function(t,e,n,o){var r,i=L.DomUtil.create("li","mapbox-directions-step",o);return L.DomUtil.create("span","mapbox-directions-icon mapbox-"+n+"-icon",i),r=L.DomUtil.create("div","mapbox-directions-step-maneuver",i),r.appendChild(document.createTextNode(t)),r=L.DomUtil.create("div","mapbox-directions-step-distance",i),r.appendChild(document.createTextNode(e)),i}});e.exports=function(t){return new n(t)}},{}],19:[function(t,e){"use strict";function n(t){var e=6;return t.lat.toFixed(e)+","+t.lng.toFixed(e)}function o(t){var e=t.split(","),n=parseFloat(e[0]),o=parseFloat(e[1]);if(isNaN(n)||isNaN(o))throw{name:"InvalidCoords",message:'"'+t+'" is not a valid coordinate.'};return L.latLng(n,o)}function r(t){var e=parseInt(t);if(isNaN(e))throw{name:"InvalidInt",message:'"'+t+'" is not a valid integer.'};return e}function i(t,e){var o=a.parse(t),r=a.format({protocol:o.protocol,host:o.host,pathname:o.pathname,query:{z:e.zoom,center:e.center?n(e.center):void 0,loc:e.waypoints?e.waypoints.filter(function(t){return void 0!==t.latLng}).map(function(t){return t.latLng}).map(n):void 0,hl:e.language,ly:e.layer,alt:e.alternative,df:e.units,srv:e.service}});return r}function s(t){var e,n=a.parse(t,!0),i=n.query,s={},l={};try{s.zoom=i.zoom&&r(i.zoom),s.center=i.center&&o(i.center),s.waypoints=i.loc&&i.loc.map(o).map(function(t){return L.Routing.waypoint(t)}),s.language=i.hl,s.alternative=i.alt,s.units=i.df,s.layer=i.ly,s.service=i.srv}catch(u){console.log("Exception "+u.name+": "+u.message)}for(e in s)void 0!==s[e]&&""!==s[e]&&(l[e]=s[e]);return l}var a=t("url"),l=t("jsonp"),u=L.Class.extend({options:{baseURL:"http://short.project-osrm.org/"},initialize:function(t){L.Util.setOptions(this,t)},shorten:function(t,e,n){var o=this.options.baseURL+t;l(o,{param:"jsonp"},function(t,o){return t?(console.log("Error: "+t),void e.call(n,"")):void 0===o.ShortURL?(console.log("Error: "+o.Error),void e.call(n,"")):void e.call(n,o.ShortURL)})}});e.exports={parse:s,format:i,shortener:function(t){return new u(t||{})}}},{jsonp:11,url:6}],20:[function(t,e){"use strict";e.exports={en:t("../i18n/en.js"),de:t("../i18n/de.js")}},{"../i18n/de.js":1,"../i18n/en.js":2}],21:[function(t,e){"use strict";var n=L.Class.extend({include:L.Mixin.Events,options:{removeButtonClass:"",uturnButtonClass:"",markerOptions:{}},initialize:function(t,e){L.setOptions(this,e),this._lrm=t},_updateUTurnIcon:function(t,e){e.options.allowUTurn?L.DomUtil.removeClass(t,"leaflet-osrm-popup-inactive"):L.DomUtil.addClass(t,"leaflet-osrm-popup-inactive")},_createPopup:function(t){var e,n=L.DomUtil.create("div","leaflet-osrm-popup-container"),o=L.DomUtil.create("span",this.options.removeButtonClass,n),r=L.DomUtil.create("span",this.options.uturnButtonClass,n);return L.DomEvent.addListener(o,"click",function(){this._lrm.spliceWaypoints(t,1)},this),L.DomEvent.addListener(r,"click",function(){var e=this._lrm.getPlan().getWaypoints()[t];e.options.allowUTurn=e.options.allowUTurn?!1:!0,this._updateUTurnIcon(r,e)},this),this._updateUTurnIcon(r,this._lrm.getPlan().getWaypoints()[t]),e=L.popup({className:"leaflet-osrm-waypoint-popup",closeButton:!1}),e.setContent(n),e},createMarker:function(t,e){var n=String.fromCharCode(65+t),o=L.extend({draggable:!0},this.options.markerOptions),r=L.marker(e.latLng,o);return r.bindLabel(n,{direction:"auto",noHide:!0,className:"leaflet-osrm-waypoint-label"}),r.bindPopup(this._createPopup(t)),r}});e.exports=function(t,e){var o=new n(t,e);return function(t,e,n){return o.createMarker(t,e,n)}}},{}],22:[function(t,e){"use strict";var n={center:L.latLng(48.84,10.1),zoom:5,waypoints:[],language:"en",service:"Car (fastest)",layer:"OSRM bright"},o={geocoder:L.Control.Geocoder.nominatim(),routeWhileDragging:!0,routeDragInterval:2,addWaypoints:!1,waypointMode:"snap"},r={"Car (fastest)":"//router.project-osrm.org/viaroute"},i={"OSRM bright":L.tileLayer("https://{s}.tiles.mapbox.com/v3/dennisl.4e2aab76/{z}/{x}/{y}.png",{attribution:'<a href="https://www.mapbox.com/about/maps">© Mapbox</a> <a href="http://openstreetmap.org/copyright">© OpenStreetMap</a> | <a href="http://mapbox.com/map-feedback/">Improve this map</a>',maxZoom:18}),"Mapbox Terrain":L.tileLayer("https://{s}.tiles.mapbox.com/v3/dennisl.map-dfbkqsr2/{z}/{x}/{y}.png",{attribution:'<a href="https://www.mapbox.com/about/maps">© Mapbox</a> <a href="http://openstreetmap.org/copyright">© OpenStreetMap</a> | <a href="http://mapbox.com/map-feedback/">Improve this map</a>',maxZoom:18}),"Mapbox Labelled Satellite":L.tileLayer("https://{s}.tiles.mapbox.com/v3/dennisl.map-6g3jtnzm/{z}/{x}/{y}.png",{attribution:'<a href="https://www.mapbox.com/about/maps">© Mapbox</a> <a href="http://openstreetmap.org/copyright">© OpenStreetMap</a> | <a href="http://mapbox.com/map-feedback/">Improve this map</a>',maxZoom:18}),"Mapbox Satellite":L.tileLayer("https://{s}.tiles.mapbox.com/v3/dennisl.map-inp5al1s/{z}/{x}/{y}.png",{attribution:'<a href="https://www.mapbox.com/about/maps">© Mapbox</a> <a href="http://openstreetmap.org/copyright">© OpenStreetMap</a> | <a href="http://mapbox.com/map-feedback/">Improve this map</a>',maxZoom:18}),"osm.org":L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="http://www.openstreetmap.org/copyright/en">OpenStreetMap</a> contributors',maxZoom:18}),"osm.de":L.tileLayer("http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",{attribution:'© <a href="http://www.openstreetmap.org/copyright/en">OpenStreetMap</a> contributors',maxZoom:18}),MapQuest:L.tileLayer("http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png",{attribution:'© <a href="http://www.openstreetmap.org/copyright/en">OpenStreetMap</a> contributors, Imagery © <a href="http://www.mapquest.de/">MapQuest</a>',maxZoom:18,subdomains:"1234"}),OpenCycleMap:L.tileLayer("http://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png",{attribution:'© <a href="http://www.openstreetmap.org/copyright/en">OpenStreetMap</a> contributors. Tiles courtesy of <a href="http://www.thunderforest.com">Andy Allan</a>',maxZoom:18})};e.exports={viewDefaults:n,controlDefaults:o,layers:i,services:r}},{}],23:[function(t,e){"use strict";e.exports=L.Map.extend({fitBounds:function(t,e){var n=document.querySelector(".leaflet-routing-container"),o=document.querySelector(".leaflet-routing-geocoders"),r=n.getBoundingClientRect().width,i=o.getBoundingClientRect().bottom;return L.Map.prototype.fitBounds.call(this,t,L.extend({paddingTopLeft:[0,i],paddingBottomRight:[r,0]},e))}})},{}],24:[function(t,e){"use strict";var n=t("./links.js"),o=t("./localization.js"),r=L.Control.extend({include:L.Mixin.Events,options:{linkButtonClass:"",popupWindowClass:"",popupCloseButtonClass:"",toolContainerClass:"",editorButtonClass:"",josmButtonClass:"",localizationButtonClass:"",printButtonClass:"",gpxLinkClass:"",language:"en",units:"metric"},initialize:function(t,e){L.setOptions(this,e),this._lrm=t,t.on("routesfound",this._updateDownloadLink,this),t.on("routeselected",function(t){this._selectedAlternative=t.route},this)},onAdd:function(){var t,e,n,r,i,s,a,l,u,c,p,h;return this._container=L.DomUtil.create("div","leaflet-osrm-tools-container leaflet-bar "+this.options.toolsContainerClass),L.DomEvent.disableClickPropagation(this._container),t=L.DomUtil.create("div","leaflet-osrm-tools-link",this._container),e=L.DomUtil.create("span",this.options.linkButtonClass,t),e.title=o[this.options.language].Link,L.DomEvent.on(e,"click",this._showLink,this),n=L.DomUtil.create("div","leaflet-osrm-tools-editor",this._container),r=L.DomUtil.create("span",this.options.editorButtonClass,n),r.title=o[this.options.language]["Open in editor"],L.DomEvent.on(r,"click",this._openEditor,this),i=L.DomUtil.create("div","leaflet-osrm-tools-josm",this._container),s=L.DomUtil.create("span",this.options.josmButtonClass,i),s.title=o[this.options.language]["Open in JOSM"],L.DomEvent.on(s,"click",this._openJOSM,this),l=L.DomUtil.create("div","leaflet-osrm-tools-localization",this._container),u=L.DomUtil.create("span",this.options.localizationButtonClass,l),u.title=o[this.options.language]["Select language and units"],L.DomEvent.on(u,"click",this._selectLocalization,this),c=L.DomUtil.create("div","leaflet-osrm-tools-print",this._container),p=L.DomUtil.create("span",this.options.printButtonClass,c),p.title=o[this.options.language].Print,L.DomEvent.on(p,"click",this._printPage,this),h=L.DomUtil.create("div","leaflet-osrm-tools-gpx",this._container),this._gpxLink=L.DomUtil.create("a",this.options.gpxLinkClass,h),this._gpxLink.innerHTML="GPX",this._gpxLink.alt=o[this.options.language]["Download as GPX"],this._popupWindow=L.DomUtil.create("div","leaflet-osrm-tools-popup leaflet-osrm-tools-popup-hide "+this.options.popupWindowClass,this._container),this._popupContainer=L.DomUtil.create("div","",this._popupWindow),a=L.DomUtil.create("span","leaflet-osrm-tools-popup-close "+this.options.popupCloseButtonClass,this._popupWindow),L.DomEvent.on(a,"click",this._closePopup,this),this._container},onRemove:function(){},_openEditor:function(){var t=this._map.getCenter(),e=this._map.getZoom(),n=6;window.open("http://www.openstreetmap.org/edit?lat="+t.lat.toFixed(n)+"&lon="+t.lng.toFixed(n)+"&zoom="+e)},_openJOSM:function(){var t=this._map.getBounds(),e="http://127.0.0.1:8111/load_and_zoom?left="+t.getWest()+"&right="+t.getEast()+"&bottom="+t.getSouth()+"&top="+t.getNorth();window.open(e)},_getLinkOptions:function(){return{zoom:this._map.getZoom(),center:this._map.getCenter(),waypoints:this._lrm.getWaypoints(),language:this.options.language,units:this.options.units,alternative:this._selectedAlternative}},_showLink:function(){var t,e,r,i,s,a;e=n.format(window.location.href,this._getLinkOptions()),t=n.shortener(),r=L.DomUtil.create("div","dark checkbox-pill"),i=L.DomUtil.create("input","",r),i.value=e,s=L.DomUtil.create("input","dark stretch",r),s.type="checkbox",s.id="short",a=L.DomUtil.create("label","button icon check",r),a.setAttribute("for","short"),a.innerHTML=o[this.options.language].Short,L.DomEvent.on(s,"click",function(){t.shorten(e,function(t){""===t?s.checked=!1:i.value=t})},this),this._openPopup(r)},_printPage:function(){var t=this._getLinkOptions(),e=t.waypoints.filter(function(t){return void 0!==t.latLng}),o=window.location.href.replace("/index.html?","/printing.html?").replace("/?","/printing.html?");"/"===o.slice(-1)&&(o+="printing.html"),e.length<2||(console.log(n.format(o,t)),window.location.href=n.format(o,t))},_selectLocalization:function(){var t,e,r,i,s,a=L.DomUtil.create("div","leaflet-osrm-tools-localization-popup"),l=L.DomUtil.create("ul","leaflet-osrm-tools-language-list",a),u=L.DomUtil.create("ul","leaflet-osrm-tools-units-list",a),c=this._getLinkOptions();for(t in o)i=L.DomUtil.create("il","",l),s=L.DomUtil.create("a","",i),c.language=t,s.href=n.format(window.location.href,c),s.alt=o[t].name,s.innerHTML=o[t].name;for(c.language=this.options.language,e=["Metric","Imperial"],r=0;r<e.length;r++)i=L.DomUtil.create("il","",u),s=L.DomUtil.create("a","",i),c.units=e[r].toLowerCase(),s.href=n.format(window.location.href,c),s.alt=e[r],s.innerHTML=e[r];this._openPopup(a)},_updateDownloadLink:function(){var t,e=this._lrm.getPlan(),n=this._lrm.getRouter();e.isReady()&&(t=n.buildRouteUrl(e.getWaypoints(),{fileformat:"gpx"}),this._gpxLink.href=t)},_updatePopupPosition:function(){var t=this._container.getBoundingClientRect();this._popupWindow.style.position="absolute",this._popupWindow.style.left="0px",this._popupWindow.style.bottom=t.height+"px"},_openPopup:function(t){var e,n=this._popupContainer.children;for(this._updatePopupPosition(),e=0;e<n.length;e++)this._popupContainer.removeChild(n[e]);this._popupContainer.appendChild(t),L.DomUtil.removeClass(this._popupWindow,"leaflet-osrm-tools-popup-hide")},_closePopup:function(){L.DomUtil.addClass(this._popupWindow,"leaflet-osrm-tools-popup-hide")}});e.exports={control:function(t,e){return new r(t,e)}}},{"./links.js":19,"./localization.js":20}]},{},[17])(17)});
Save
cmd:
run