<commit_before>(function(l,r,u,g){function f(b,a){try{return r.hasOwnProperty?b.hasOwnProperty(a.toString()):Object.prototype.hasOwnProperty.call(b,a.toString())}catch(d){}}function n(b){var a=b.css||"";this.setValues(b);this.span=l("<span/>").css({position:"relative",left:"-50%",top:"0","white-space":"nowrap"}).addClass(a);this.div=l("<div/>").css({position:"absolute",display:"none"});this.span.appendTo(this.div)}function s(b,a){f(r,"google")&&(this.markerCluster=this.map=null,this._markers=[],this._labels=[],
this.container=b,this.options=l.extend({},t,a),this.interval=parseInt(this.options.interval,10)||200,this.GoogleMapOptions={center:new google.maps.LatLng(this.options.center.x,this.options.center.y),control:this.options.control,disableDoubleClickZoom:this.options.disableDoubleClickZoom,disableDefaultUI:this.options.disableDefaultUI,draggable:this.options.draggable,keyboardShortcuts:this.options.keyboardShortcuts,mapTypeId:google.maps.MapTypeId[this.options.mapTypeId.toUpperCase()],mapTypeControl:this.options.mapTypeControl,
mapTypeControlOptions:{position:google.maps.ControlPosition[this.options.mapTypeControlOptions.position],style:google.maps.MapTypeControlStyle[this.options.mapTypeControlOptions.style.toUpperCase()]},maxZoom:this.options.maxZoom,minZoom:this.options.minZoom,navigationControl:this.options.navigationControl,navigationControlOptions:{position:google.maps.ControlPosition[this.options.navigationControlOptions.position],style:google.maps.NavigationControlStyle[this.options.navigationControlOptions.style.toUpperCase()]},
panControl:this.options.panControl,panControlOptions:{position:google.maps.ControlPosition[this.options.panControlOptions.position]},rotateControl:this.options.rotateControl,scaleControl:this.options.scaleControl,scaleControlOptions:{position:google.maps.ControlPosition[this.options.scaleControlOptions.position],style:google.maps.ScaleControlStyle[this.options.scaleControlOptions.style.toUpperCase()]},scrollwheel:this.options.scrollwheel,streetViewControl:this.options.streetViewControl,streetViewControlOptions:{position:google.maps.ControlPosition[this.options.streetViewControlOptions.position]},
zoom:this.options.zoom,zoomControl:this.options.zoomControl,zoomControlOptions:{position:google.maps.ControlPosition[this.options.zoomControlOptions.position],style:google.maps.ZoomControlStyle[this.options.zoomControlOptions.style.toUpperCase()]}},!0===this.options.disableDefaultUI&&(this.GoogleMapOptions.mapTypeControl=!1,this.GoogleMapOptions.navigationControl=!1,this.GoogleMapOptions.panControl=!1,this.GoogleMapOptions.rotateControl=!1,this.GoogleMapOptions.scaleControl=!1,this.GoogleMapOptions.streetViewControl=
!1,this.GoogleMapOptions.zoomControl=!1),l(this.container).html(this.options.loading),this.init())}var t={center:{x:"24",y:"121"},control:!0,disableDoubleClickZoom:!1,disableDefaultUI:!1,draggable:!0,keyboardShortcuts:!0,mapTypeControl:!0,mapTypeControlOptions:{position:"TOP_RIGHT",style:"DEFAULT"},mapTypeId:"ROADMAP",marker:[],markerFitBounds:!1,markerCluster:!1,maxZoom:null,minZoom:null,panControl:!0,panControlOptions:{position:"LEFT_TOP"},polyline:[],navigationControl:!0,navigationControlOptions:{position:"TOP_LEFT",
style:"DEFAULT"},scaleControl:!0,scaleControlOptions:{position:"BOTTOM_LEFT",style:"DEFAULT"},scrollwheel:!0,streetViewControl:!0,streetViewControlOptions:{position:"LEFT_TOP"},zoom:4,zoomControl:!0,zoomControlOptions:{style:"LARGE",position:"LEFT_TOP"},notfound:"\u627e\u4e0d\u5230\u67e5\u8a62\u7684\u5730\u9ede",loading:"\u8b80\u53d6\u4e2d&hellip;",kml:{url:"",viewport:!0,infowindow:!1},interval:200,event:null,showStreetView:!1},p=0,q=0;n.prototype=new google.maps.OverlayView;n.prototype.onAdd=function(){var b=
this.getPanes().overlayLayer;this.div.appendTo(l(b));this.listeners=[google.maps.event.addListener(this,"visible_changed",this.onRemove)]};n.prototype.draw=function(){var b=this.getProjection(),a={};try{a=b.fromLatLngToDivPixel(this.get("position")),this.div.css({left:a.x+"px",top:a.y+"px",display:"block"}),this.text&&this.span.html(this.text.toString())}catch(d){}};n.prototype.onRemove=function(){l(this.div).remove()};s.prototype={VERSION:"2.7.6",_polylines:[],_polygons:[],_circles:[],_kmls:[],_directions:[],
bounds:new google.maps.LatLngBounds,setZoom:function(b,a){f(a,"zoom")&&b&&b.setZoom(a.zoom)},kml:function(b,a){var d={},c="",d={};a=a?a:this.options;g!==a.kml&&(d={preserveViewport:!0,suppressInfoWindows:!1},c="string"===typeof a.kml&&0!==a.kml.length?a.kml:g!==a.kml.url?a.kml.url:"",d=new google.maps.KmlLayer(c,l.extend(d,a.kml)),this._kmls.push(d),d.setMap(b))},direction:function(b,a){var d="";a=a?a:this.options;if(g!==a.direction&&0<a.direction.length)for(d in a.direction)f(a.direction,d)&&g!==
a.direction[d]&&this.directionService(a.direction[d])},markers:function(b,a,d){var c="",e=0,m=0,h=[],k=[];a=a?a:this.options;q=p=0;h=this._markers;if((!d||0===h.length)&&g!==a.marker&&0<a.marker.length)for(c in a.marker)f(a.marker,c)&&f(a.marker[c],"addr")&&("object"===typeof a.marker[c].addr&&2===a.marker[c].addr.length?this.markerDirect(b,a.marker[c],a):"string"===typeof a.marker[c].addr&&this.markerByGeocoder(b,a.marker[c],a));if("modify"===d)for(k=this._labels,e=0;e<a.marker.length;e+=1)if(g!==
a.marker[e].id){for(m=0;m<h.length;m+=1)a.marker[e].id===h[m].id&&g!==a.marker[e].addr&&(h[m].setPosition(new google.maps.LatLng(a.marker[e].addr[0],a.marker[e].addr[1])),"function"===typeof h[e].infoWindow.setContent&&h[m].infoWindow.setContent(a.marker[e].text));for(m=0;m<k.length;m+=1)a.marker[e].id===k[m].id&&(f(a.marker[e],"label")&&(k[m].text=a.marker[e].label),k[m].draw())}else"object"===typeof a.marker[e].addr&&2===a.marker[e].addr.length?this.markerDirect(b,a.marker[e]):"string"===typeof a.marker[e].addr&&
this.markerByGeocoder(b,a.marker[e]);if(f(a,"markerCluster")&&!0===a.markerCluster&&"function"===typeof MarkerClusterer)return new MarkerClusterer(b,this._markers)},drawPolyline:function(b,a){var d={},d="",c={},e=[];a=a?a:this.options;if(g!==a.polyline&&g!==a.polyline.coords){for(d in a.polyline.coords)f(a.polyline.coords,d)&&(c=a.polyline.coords,g!==c[d]&&e.push(new google.maps.LatLng(c[d][0],c[d][1])));d=new google.maps.Polyline({path:e,strokeColor:a.polyline.color||"#FF0000",strokeOpacity:1,strokeWeight:a.polyline.width||
2});this._polylines.push(d);d.setMap(b)}},drawPolygon:function(b,a){var d={},d="",c={},e=[];a=a?a:this.options;if(g!==a.polygon&&g!==a.polygon.coords){for(d in a.polygon.coords)f(a.polygon.coords,d)&&(c=a.polygon.coords,g!==c[d]&&e.push(new google.maps.LatLng(c[d][0],c[d][1])));d=new google.maps.Polygon({path:e,strokeColor:a.polygon.color||"#FF0000",strokeOpacity:1,strokeWeight:a.polygon.width||2,fillColor:a.polygon.fillcolor||"#CC0000",fillOpacity:.35});this._polygons.push(d);d.setMap(this.map);
l.isFunction(a.polygon.click)&&google.maps.event.addListener(d,"click",a.polygon.click)}},drawCircle:function(b,a){var d=0,c={},c={};a=a?a:this.options;if(g!==a.circle&&0<a.circle.length)for(d=a.circle.length-1;0<=d;d-=1)c=a.circle[d],g!==c.center.x&&g!==c.center.y&&(c=new google.maps.Circle({strokeColor:c.color||"#FF0000",strokeOpacity:c.opacity||.8,strokeWeight:c.width||2,fillColor:c.fillcolor||"#FF0000",fillOpacity:c.fillopacity||.35,map:this.map,center:new google.maps.LatLng(c.center.x,c.center.y),
radius:c.radius||10,zIndex:100}),this._circles.push(c),l.isFunction(a.circle[d].click)&&google.maps.event.addListener(c,"click",a.circle[d].click))},overlay:function(){var b=this.map,a=this.options;this.kml(b,a);this.direction(b,a);this.markers(b,a);this.drawPolyline(b,a);this.drawPolygon(b,a);this.drawCircle(b,a);this.streetView(b,a)},markerIcon:function(b){var a={};if(f(b,"icon")){if("string"===typeof b.icon)return b.icon;f(b.icon,"url")&&(a.url=b.icon.url);f(b.icon,"size")&&g!==b.icon.size[0]&&
g!==b.icon.size[1]&&(a.scaledSize=new google.maps.Size(b.icon.size[0],b.icon.size[1]));f(b.icon,"anchor")&&g!==b.icon.anchor[0]&&g!==b.icon.anchor[1]&&(a.anchor=new google.maps.Point(b.icon.anchor[0],b.icon.anchor[1]))}return a},markerDirect:function(b,a){var d={},c={},c={},c=f(a,"id")?a.id:"",d=f(a,"title")?a.title.toString().replace(/<([^>]+)>/g,""):"",e=f(a,"text")?a.text.toString():"",e={map:b,position:new google.maps.LatLng(a.addr[0],a.addr[1]),infoWindow:new google.maps.InfoWindow({content:e}),
animation:null,id:c},m=this.markerIcon(a);d&&(e.title=d);p+=1;if("string"===typeof m||f(m,"url"))e.icon=m;f(a.animation)&&"string"===typeof a.animation&&(e.animation=google.maps.Animation[a.animation.toUpperCase()]);d=new google.maps.Marker(e);this._markers.push(d);if(f(d,"position")&&(d.getPosition().lat()&&d.getPosition().lng()&&this.bounds.extend(e.position),!0===this.options.markerFitBounds&&p===this.options.marker.length))return b.fitBounds(this.bounds);!0===this.options.markerCluster&&"function"===
typeof MarkerClusterer&&p===this.options.marker.length?this.markerCluster=new MarkerClusterer(b,this._markers):(c={map:b,css:g!==a.css?a.css:"",id:c},"string"===typeof a.label&&0!==a.label.length&&(c.text=a.label,c=new n(c),c.bindTo("position",d,"position"),c.bindTo("text",d,"position"),c.bindTo("visible",d),this._labels.push(c)),this.bindEvents(d,a.event))},markerByGeocoder:function(b,a){var d=new google.maps.Geocoder,c=this;-1!==a.addr.indexOf(",")&&(a.addr="loc: "+a.addr);d.geocode({address:a.addr},
function(d,g){if(g===google.maps.GeocoderStatus.OVER_QUERY_LIMIT)r.setTimeout(function(){c.markerByGeocoder(a)},c.interval);else if(g===google.maps.GeocoderStatus.OK){var h={},k={},k={},h=f(a,"title")?a.title.toString().replace(/<([^>]+)>/g,""):"",k=f(a,"text")?a.text.toString():"",k={map:b,position:d[0].geometry.location,title:h,infoWindow:new google.maps.InfoWindow({content:k}),animation:null},l=c.markerIcon(a);h&&(k.title=h);q+=1;if("string"===typeof l||f(l,"url"))k.icon=l;f(a,"animation")&&"string"===
typeof a.animation&&(k.animation=google.maps.Animation[a.animation.toUpperCase()]);h=new google.maps.Marker(k);c._markers.push(h);f(h,"position")&&h.getPosition().lat()&&h.getPosition().lng()&&c.bounds.extend(k.position);if(!0===c.options.markerFitBounds&&q===c.options.marker.length)return b.fitBounds(c.bounds);f(c.options,"markerCluster")&&"function"===typeof MarkerClusterer&&q===c.options.marker.length?c.markerCluster=new MarkerClusterer(b,c._markers):(k={map:c.map,css:a.css||""},"string"===typeof a.label&&
0!==a.label.length&&(k.text=a.label,k=new n(k),k.bindTo("position",h,"position"),k.bindTo("text",h,"position"),k.bindTo("visible",h),c._labels.push(k)),c.bindEvents(h,a.event))}})},directionService:function(b){var a=[],d=new google.maps.DirectionsService,c=new google.maps.DirectionsRenderer,e={travelMode:google.maps.DirectionsTravelMode.DRIVING,optimizeWaypoints:b.optimize||!1},f={},h=0,k=0;"string"===typeof b.from&&(e.origin=b.from);"string"===typeof b.to&&(e.destination=b.to);"string"===typeof b.travel&&
b.travel.length&&(e.travelMode=google.maps.TravelMode[b.travel.toUpperCase()]);f=l(g!==b.panel?b.panel:null);if(g!==b.waypoint&&0!==b.waypoint){h=0;for(k=b.waypoint.length;h<k;h+=1)a.push({location:b.waypoint[h].toString(),stopover:!0});e.waypoints=a}g!==e.origin&&g!==e.destination&&(d.route(e,function(a,b){b===google.maps.DirectionsStatus.OK&&c.setDirections(a)}),c.setMap(this.map),f.length&&c.setPanel(f.get(0)),this._directions.push(c))},bindEvents:function(b,a){var d=this,c={};switch(typeof a){case "function":google.maps.event.addListener(b,
"click",a);break;case "object":for(c in a)"function"===typeof a[c]?google.maps.event.addListener(b,c,a[c]):f(a[c],"func")&&"function"===typeof a[c].func?f(a[c],"once")&&!0===a[c].once?google.maps.event.addListenerOnce(b,c,a[c].func):google.maps.event.addListener(b,c,a[c].func):"function"===typeof a[c]&&google.maps.event.addListener(b,c,a[c])}f(b,"infoWindow")&&google.maps.event.addListener(b,"click",function(){b.infoWindow.open(d.map,b)})},streetView:function(b,a){var d=b.getStreetView();d.setPosition(b.getCenter());
f(a,"showStreetView")&&d.setVisible(a.showStreetView)},init:function(){var b=this,a={};"string"===typeof b.options.center?r.setTimeout(function(){var d=l(b.container),c="";-1!==b.options.center.indexOf(",")&&(b.options.center="loc: "+b.options.center);a=new google.maps.Geocoder;a.geocode({address:b.options.center},function(a,f){try{f===google.maps.GeocoderStatus.OVER_QUERY_LIMIT?b.init():f===google.maps.GeocoderStatus.OK&&0!==a.length?(b.GoogleMapOptions.center=f===google.maps.GeocoderStatus.OK&&
0!==a.length?a[0].geometry.location:"",b.map=new google.maps.Map(b.container,b.GoogleMapOptions),google.maps.event.addListenerOnce(b.map,"idle",function(){b.overlay()}),b.bindEvents(b.map,b.options.event)):(c=b.options.notfound.text||f,d.html(c.replace(/</g,"&lt;").replace(/>/g,"&gt;")))}catch(h){d.html((g!==h.message?h.message:h.description).toString())}})},b.interval):(b.map=new google.maps.Map(b.container,b.GoogleMapOptions),google.maps.event.addListenerOnce(b.map,"idle",function(){b.overlay()}),
b.bindEvents(b.map,b.options.event))},panto:function(b){var a="",d={},c=this.map;f(this,"map")&&null!==c&&g!==c&&("string"===typeof b?(-1!==b.indexOf(",")&&(a="loc: "+b),d=new google.maps.Geocoder,d.geocode({address:b},function(a,b){b===google.maps.GeocoderStatus.OK&&l.isFunction(c.panTo)&&g!==a[0]&&c.panTo(a[0].geometry.location)})):("[object Array]"===Object.prototype.toString.call(b)?2===b.length&&(a=new google.maps.LatLng(b[0],b[1])):f(b,"lat")&&f(b,"lng")?a=new google.maps.LatLng(b.lat,b.lng):
f(b,"x")&&f(b,"y")&&(a=new google.maps.LatLng(b.x,b.y)),l.isFunction(c.panTo)&&g!==a&&c.panTo(a)))},clear:function(b){for(var a=[],d="",c=0,e=0,a="string"===typeof b?b.split(","):"[object Array]"===Object.prototype.toString.call(b)?b:[],c=0;c<a.length;c+=1)if(d="_"+l.trim(a[c].toString().toLowerCase())+"s",g!==this[d]&&this[d].length){for(e=0;e<this[d].length;e+=1)this.map===this[d][e].getMap()&&(this[d][e].set("visible",!1),this[d][e].set("directions",null),this[d][e].setMap(null));this[d].length=
0}},modify:function(b){var a=[],d=[["kml","kml"],["marker","markers"],["direction","direction"],["polyline","drawPolyline"],["polygon","drawPolygon"],["circle","drawCircle"],["zoom","setZoom"],["showStreetView","streetView"]],c=0,e=this.map;if(g!==b){for(c=0;c<d.length;c+=1)f(b,d[c][0])&&a.push(d[c][1]);if(null!==e)if(a.length)for(c=0;c<a.length;c+=1){if("function"===typeof this[a[c]])this[a[c]](e,b,"modify")}else e.setOptions(b)}}};l.fn.tinyMap=function(b){var a=arguments,d=[],c={};return"string"===
typeof b?(this.each(function(){c=l.data(this,"tinyMap");c instanceof s&&"function"===typeof c[b]&&(d=c[b].apply(c,Array.prototype.slice.call(a,1)))}),g!==d?d:this):this.each(function(){l.data(this,"tinyMap")||l.data(this,"tinyMap",new s(this,b))})}})(jQuery,window,document);
<commit_msg>v2.8.0 minified<commit_after>(function(m,r,u,h){function f(b,a){try{return r.hasOwnProperty?b.hasOwnProperty(a.toString()):Object.prototype.hasOwnProperty.call(b,a.toString())}catch(d){}}function p(b){var a=b.css||"";this.setValues(b);this.span=m("<span/>").css({position:"relative",left:"-50%",top:"0","white-space":"nowrap"}).addClass(a);this.div=m("<div/>").css({position:"absolute",display:"none"});this.span.appendTo(this.div)}function s(b,a){f(r,"google")&&(this.markerCluster=this.map=null,this._markers=[],this._labels=[],
this.container=b,this.options=m.extend({},t,a),this.interval=parseInt(this.options.interval,10)||200,this.GoogleMapOptions={center:new google.maps.LatLng(this.options.center.x,this.options.center.y),control:this.options.control,disableDoubleClickZoom:this.options.disableDoubleClickZoom,disableDefaultUI:this.options.disableDefaultUI,draggable:this.options.draggable,keyboardShortcuts:this.options.keyboardShortcuts,mapTypeId:google.maps.MapTypeId[this.options.mapTypeId.toUpperCase()],mapTypeControl:this.options.mapTypeControl,
mapTypeControlOptions:{position:google.maps.ControlPosition[this.options.mapTypeControlOptions.position],style:google.maps.MapTypeControlStyle[this.options.mapTypeControlOptions.style.toUpperCase()]},maxZoom:this.options.maxZoom,minZoom:this.options.minZoom,navigationControl:this.options.navigationControl,navigationControlOptions:{position:google.maps.ControlPosition[this.options.navigationControlOptions.position],style:google.maps.NavigationControlStyle[this.options.navigationControlOptions.style.toUpperCase()]},
panControl:this.options.panControl,panControlOptions:{position:google.maps.ControlPosition[this.options.panControlOptions.position]},rotateControl:this.options.rotateControl,scaleControl:this.options.scaleControl,scaleControlOptions:{position:google.maps.ControlPosition[this.options.scaleControlOptions.position],style:google.maps.ScaleControlStyle[this.options.scaleControlOptions.style.toUpperCase()]},scrollwheel:this.options.scrollwheel,streetViewControl:this.options.streetViewControl,streetViewControlOptions:{position:google.maps.ControlPosition[this.options.streetViewControlOptions.position]},
zoom:this.options.zoom,zoomControl:this.options.zoomControl,zoomControlOptions:{position:google.maps.ControlPosition[this.options.zoomControlOptions.position],style:google.maps.ZoomControlStyle[this.options.zoomControlOptions.style.toUpperCase()]}},!0===this.options.disableDefaultUI&&(this.GoogleMapOptions.mapTypeControl=!1,this.GoogleMapOptions.navigationControl=!1,this.GoogleMapOptions.panControl=!1,this.GoogleMapOptions.rotateControl=!1,this.GoogleMapOptions.scaleControl=!1,this.GoogleMapOptions.streetViewControl=
!1,this.GoogleMapOptions.zoomControl=!1),m(this.container).html(this.options.loading),this.init())}var t={center:{x:"24",y:"121"},control:!0,disableDoubleClickZoom:!1,disableDefaultUI:!1,draggable:!0,keyboardShortcuts:!0,mapTypeControl:!0,mapTypeControlOptions:{position:"TOP_RIGHT",style:"DEFAULT"},mapTypeId:"ROADMAP",marker:[],markerFitBounds:!1,markerCluster:!1,maxZoom:null,minZoom:null,panControl:!0,panControlOptions:{position:"LEFT_TOP"},polyline:[],navigationControl:!0,navigationControlOptions:{position:"TOP_LEFT",
style:"DEFAULT"},scaleControl:!0,scaleControlOptions:{position:"BOTTOM_LEFT",style:"DEFAULT"},scrollwheel:!0,streetViewControl:!0,streetViewControlOptions:{position:"LEFT_TOP"},zoom:4,zoomControl:!0,zoomControlOptions:{style:"LARGE",position:"LEFT_TOP"},notfound:"\u627e\u4e0d\u5230\u67e5\u8a62\u7684\u5730\u9ede",loading:"\u8b80\u53d6\u4e2d&hellip;",kml:{url:"",viewport:!0,infowindow:!1},interval:200,event:null,showStreetView:!1},n=0,q=0;p.prototype=new google.maps.OverlayView;p.prototype.onAdd=function(){var b=
this.getPanes().overlayLayer;this.div.appendTo(m(b));this.listeners=[google.maps.event.addListener(this,"visible_changed",this.onRemove)]};p.prototype.draw=function(){var b=this.getProjection(),a={};try{a=b.fromLatLngToDivPixel(this.get("position")),this.div.css({left:a.x+"px",top:a.y+"px",display:"block"}),this.text&&this.span.html(this.text.toString())}catch(d){}};p.prototype.onRemove=function(){m(this.div).remove()};s.prototype={VERSION:"2.8.0",_polygons:[],_circles:[],_kmls:[],_directions:[],
bounds:new google.maps.LatLngBounds,setZoom:function(b,a){f(a,"zoom")&&b&&b.setZoom(a.zoom)},kml:function(b,a){var d={},c="",d={};a=a?a:this.options;h!==a.kml&&(d={preserveViewport:!0,suppressInfoWindows:!1},c="string"===typeof a.kml&&0!==a.kml.length?a.kml:h!==a.kml.url?a.kml.url:"",d=new google.maps.KmlLayer(c,m.extend(d,a.kml)),this._kmls.push(d),d.setMap(b))},direction:function(b,a){var d="";a=a?a:this.options;if(h!==a.direction&&0<a.direction.length)for(d in a.direction)f(a.direction,d)&&h!==
a.direction[d]&&this.directionService(a.direction[d])},markers:function(b,a,d){var c="",e=0,k=0,l=[],g=[];a=a?a:this.options;q=n=0;l=this._markers;if((!d||0===l.length)&&h!==a.marker&&0<a.marker.length)for(c in a.marker)f(a.marker,c)&&f(a.marker[c],"addr")&&("object"===typeof a.marker[c].addr&&2===a.marker[c].addr.length?this.markerDirect(b,a.marker[c],a):"string"===typeof a.marker[c].addr&&this.markerByGeocoder(b,a.marker[c],a));if("modify"===d)for(g=this._labels,e=0;e<a.marker.length;e+=1)if(h!==
a.marker[e].id){for(k=0;k<l.length;k+=1)a.marker[e].id===l[k].id&&h!==a.marker[e].addr&&(l[k].setPosition(new google.maps.LatLng(a.marker[e].addr[0],a.marker[e].addr[1])),"function"===typeof l[e].infoWindow.setContent&&l[k].infoWindow.setContent(a.marker[e].text));for(k=0;k<g.length;k+=1)a.marker[e].id===g[k].id&&(f(a.marker[e],"label")&&(g[k].text=a.marker[e].label),g[k].draw())}else"object"===typeof a.marker[e].addr&&2===a.marker[e].addr.length?this.markerDirect(b,a.marker[e]):"string"===typeof a.marker[e].addr&&
this.markerByGeocoder(b,a.marker[e]);if(f(a,"markerCluster")&&!0===a.markerCluster&&"function"===typeof MarkerClusterer)return new MarkerClusterer(b,this._markers)},drawPolyline:function(b,a){var d={},c=0,e="",k={},l=0,g=new google.maps.MVCArray,m=[],k={},p=[],n={};a=a?a:this.options;if(h!==a.polyline&&h!==a.polyline.coords){for(e in a.polyline.coords)f(a.polyline.coords,e)&&(k=a.polyline.coords,h!==k[e]&&g.push(new google.maps.LatLng(k[e][0],k[e][1])));d=new google.maps.Polyline({strokeColor:a.polyline.color||
"#FF0000",strokeOpacity:1,strokeWeight:a.polyline.width||2});2<g.getLength()&&g.forEach(function(a,b){0<b&&g.getLength()-1>b&&p.push({location:a,stopover:!1})});!0===a.polyline.snap?(k=new google.maps.DirectionsService,k.route({origin:g.getAt(0),waypoints:p,destination:g.getAt(g.getLength()-1),travelMode:google.maps.DirectionsTravelMode.DRIVING},function(b,e){if(e===google.maps.DirectionsStatus.OK){c=0;for(l=b.routes[0].overview_path.length;c<l;c+=1)m.push(b.routes[0].overview_path[c]);d.setPath(m);
"function"===typeof a.polyline.getDistance&&(n=b.routes[0].legs[0].distance,a.polyline.getDistance.call(this,n))}})):(d.setPath(g),"function"===typeof google.maps.geometry.spherical.computeDistanceBetween&&(n=google.maps.geometry.spherical.computeDistanceBetween(g.getAt(0),g.getAt(g.getLength()-1)),"function"===typeof a.polyline.getDistance&&a.polyline.getDistance.call(this,n)));d.setMap(b)}},drawPolygon:function(b,a){var d={},d="",c={},e=[];a=a?a:this.options;if(h!==a.polygon&&h!==a.polygon.coords){for(d in a.polygon.coords)f(a.polygon.coords,
d)&&(c=a.polygon.coords,h!==c[d]&&e.push(new google.maps.LatLng(c[d][0],c[d][1])));d=new google.maps.Polygon({path:e,strokeColor:a.polygon.color||"#FF0000",strokeOpacity:1,strokeWeight:a.polygon.width||2,fillColor:a.polygon.fillcolor||"#CC0000",fillOpacity:.35});this._polygons.push(d);d.setMap(this.map);m.isFunction(a.polygon.click)&&google.maps.event.addListener(d,"click",a.polygon.click)}},drawCircle:function(b,a){var d=0,c={},c={};a=a?a:this.options;if(h!==a.circle&&0<a.circle.length)for(d=a.circle.length-
1;0<=d;d-=1)c=a.circle[d],h!==c.center.x&&h!==c.center.y&&(c=new google.maps.Circle({strokeColor:c.color||"#FF0000",strokeOpacity:c.opacity||.8,strokeWeight:c.width||2,fillColor:c.fillcolor||"#FF0000",fillOpacity:c.fillopacity||.35,map:this.map,center:new google.maps.LatLng(c.center.x,c.center.y),radius:c.radius||10,zIndex:100,id:f(a,"id")?a.id:""}),this._circles.push(c),m.isFunction(a.circle[d].click)&&google.maps.event.addListener(c,"click",a.circle[d].click))},overlay:function(){var b=this.map,
a=this.options;this.kml(b,a);this.direction(b,a);this.markers(b,a);this.drawPolyline(b,a);this.drawPolygon(b,a);this.drawCircle(b,a);this.streetView(b,a)},markerIcon:function(b){var a={};if(f(b,"icon")){if("string"===typeof b.icon)return b.icon;f(b.icon,"url")&&(a.url=b.icon.url);f(b.icon,"size")&&h!==b.icon.size[0]&&h!==b.icon.size[1]&&(a.scaledSize=new google.maps.Size(b.icon.size[0],b.icon.size[1]));f(b.icon,"anchor")&&h!==b.icon.anchor[0]&&h!==b.icon.anchor[1]&&(a.anchor=new google.maps.Point(b.icon.anchor[0],
b.icon.anchor[1]))}return a},markerDirect:function(b,a){var d={},c={},c={},c=f(a,"id")?a.id:"",d=f(a,"title")?a.title.toString().replace(/<([^>]+)>/g,""):"",e=f(a,"text")?a.text.toString():"",e={map:b,position:new google.maps.LatLng(a.addr[0],a.addr[1]),infoWindow:new google.maps.InfoWindow({content:e}),animation:null,id:c},k=this.markerIcon(a);d&&(e.title=d);n+=1;if("string"===typeof k||f(k,"url"))e.icon=k;f(a.animation)&&"string"===typeof a.animation&&(e.animation=google.maps.Animation[a.animation.toUpperCase()]);
d=new google.maps.Marker(e);this._markers.push(d);if(f(d,"position")&&(d.getPosition().lat()&&d.getPosition().lng()&&this.bounds.extend(e.position),!0===this.options.markerFitBounds&&n===this.options.marker.length))return b.fitBounds(this.bounds);!0===this.options.markerCluster&&"function"===typeof MarkerClusterer&&n===this.options.marker.length?this.markerCluster=new MarkerClusterer(b,this._markers):(c={map:b,css:h!==a.css?a.css:"",id:c},"string"===typeof a.label&&0!==a.label.length&&(c.text=a.label,
c=new p(c),c.bindTo("position",d,"position"),c.bindTo("text",d,"position"),c.bindTo("visible",d),this._labels.push(c)),this.bindEvents(d,a.event))},markerByGeocoder:function(b,a){var d=new google.maps.Geocoder,c=this;-1!==a.addr.indexOf(",")&&(a.addr="loc: "+a.addr);d.geocode({address:a.addr},function(d,k){if(k===google.maps.GeocoderStatus.OVER_QUERY_LIMIT)r.setTimeout(function(){c.markerByGeocoder(a)},c.interval);else if(k===google.maps.GeocoderStatus.OK){var l={},g={},g={},l=f(a,"title")?a.title.toString().replace(/<([^>]+)>/g,
""):"",g=f(a,"text")?a.text.toString():"",g={map:b,position:d[0].geometry.location,title:l,infoWindow:new google.maps.InfoWindow({content:g}),animation:null},h=c.markerIcon(a);l&&(g.title=l);q+=1;if("string"===typeof h||f(h,"url"))g.icon=h;f(a,"animation")&&"string"===typeof a.animation&&(g.animation=google.maps.Animation[a.animation.toUpperCase()]);l=new google.maps.Marker(g);c._markers.push(l);f(l,"position")&&l.getPosition().lat()&&l.getPosition().lng()&&c.bounds.extend(g.position);if(!0===c.options.markerFitBounds&&
q===c.options.marker.length)return b.fitBounds(c.bounds);f(c.options,"markerCluster")&&"function"===typeof MarkerClusterer&&q===c.options.marker.length?c.markerCluster=new MarkerClusterer(b,c._markers):(g={map:c.map,css:a.css||""},"string"===typeof a.label&&0!==a.label.length&&(g.text=a.label,g=new p(g),g.bindTo("position",l,"position"),g.bindTo("text",l,"position"),g.bindTo("visible",l),c._labels.push(g)),c.bindEvents(l,a.event))}})},directionService:function(b){var a=[],d=new google.maps.DirectionsService,
c=new google.maps.DirectionsRenderer,e={travelMode:google.maps.DirectionsTravelMode.DRIVING,optimizeWaypoints:b.optimize||!1},k={},f=0,g=0;"string"===typeof b.from&&(e.origin=b.from);"string"===typeof b.to&&(e.destination=b.to);"string"===typeof b.travel&&b.travel.length&&(e.travelMode=google.maps.TravelMode[b.travel.toUpperCase()]);k=m(h!==b.panel?b.panel:null);if(h!==b.waypoint&&0!==b.waypoint){f=0;for(g=b.waypoint.length;f<g;f+=1)a.push({location:b.waypoint[f].toString(),stopover:!0});e.waypoints=
a}h!==e.origin&&h!==e.destination&&(d.route(e,function(a,b){b===google.maps.DirectionsStatus.OK&&c.setDirections(a)}),c.setMap(this.map),k.length&&c.setPanel(k.get(0)),this._directions.push(c))},bindEvents:function(b,a){var d=this,c={};switch(typeof a){case "function":google.maps.event.addListener(b,"click",a);break;case "object":for(c in a)"function"===typeof a[c]?google.maps.event.addListener(b,c,a[c]):f(a[c],"func")&&"function"===typeof a[c].func?f(a[c],"once")&&!0===a[c].once?google.maps.event.addListenerOnce(b,
c,a[c].func):google.maps.event.addListener(b,c,a[c].func):"function"===typeof a[c]&&google.maps.event.addListener(b,c,a[c])}f(b,"infoWindow")&&google.maps.event.addListener(b,"click",function(){b.infoWindow.open(d.map,b)})},streetView:function(b,a){var d=b.getStreetView();d.setPosition(b.getCenter());f(a,"showStreetView")&&d.setVisible(a.showStreetView)},init:function(){var b=this,a={};"string"===typeof b.options.center?r.setTimeout(function(){var d=m(b.container),c="";-1!==b.options.center.indexOf(",")&&
(b.options.center="loc: "+b.options.center);a=new google.maps.Geocoder;a.geocode({address:b.options.center},function(a,f){try{f===google.maps.GeocoderStatus.OVER_QUERY_LIMIT?b.init():f===google.maps.GeocoderStatus.OK&&0!==a.length?(b.GoogleMapOptions.center=f===google.maps.GeocoderStatus.OK&&0!==a.length?a[0].geometry.location:"",b.map=new google.maps.Map(b.container,b.GoogleMapOptions),google.maps.event.addListenerOnce(b.map,"idle",function(){b.overlay()}),b.bindEvents(b.map,b.options.event)):(c=
b.options.notfound.text||f,d.html(c.replace(/</g,"&lt;").replace(/>/g,"&gt;")))}catch(l){d.html((h!==l.message?l.message:l.description).toString())}})},b.interval):(b.map=new google.maps.Map(b.container,b.GoogleMapOptions),google.maps.event.addListenerOnce(b.map,"idle",function(){b.overlay()}),b.bindEvents(b.map,b.options.event))},panto:function(b){var a="",d={},c=this.map;f(this,"map")&&null!==c&&h!==c&&("string"===typeof b?(-1!==b.indexOf(",")&&(a="loc: "+b),d=new google.maps.Geocoder,d.geocode({address:b},
function(a,b){b===google.maps.GeocoderStatus.OK&&m.isFunction(c.panTo)&&h!==a[0]&&c.panTo(a[0].geometry.location)})):("[object Array]"===Object.prototype.toString.call(b)?2===b.length&&(a=new google.maps.LatLng(b[0],b[1])):f(b,"lat")&&f(b,"lng")?a=new google.maps.LatLng(b.lat,b.lng):f(b,"x")&&f(b,"y")&&(a=new google.maps.LatLng(b.x,b.y)),m.isFunction(c.panTo)&&h!==a&&c.panTo(a)))},clear:function(b){for(var a=[],d="",c=0,e=0,a="string"===typeof b?b.split(","):"[object Array]"===Object.prototype.toString.call(b)?
b:[],c=0;c<a.length;c+=1)if(d="_"+m.trim(a[c].toString().toLowerCase())+"s",h!==this[d]&&this[d].length){for(e=0;e<this[d].length;e+=1)this.map===this[d][e].getMap()&&(this[d][e].set("visible",!1),this[d][e].set("directions",null),this[d][e].setMap(null));this[d].length=0}},modify:function(b){var a=[],d=[["kml","kml"],["marker","markers"],["direction","direction"],["polyline","drawPolyline"],["polygon","drawPolygon"],["circle","drawCircle"],["zoom","setZoom"],["showStreetView","streetView"]],c=0,
e=this.map;if(h!==b){for(c=0;c<d.length;c+=1)f(b,d[c][0])&&a.push(d[c][1]);if(null!==e)if(a.length)for(c=0;c<a.length;c+=1){if("function"===typeof this[a[c]])this[a[c]](e,b,"modify")}else e.setOptions(b)}}};m.fn.tinyMap=function(b){var a=arguments,d=[],c={};return"string"===typeof b?(this.each(function(){c=m.data(this,"tinyMap");c instanceof s&&"function"===typeof c[b]&&(d=c[b].apply(c,Array.prototype.slice.call(a,1)))}),h!==d?d:this):this.each(function(){m.data(this,"tinyMap")||m.data(this,"tinyMap",
new s(this,b))})}})(jQuery,window,document);

{'fraction_non_alphanumeric': 0.2629050830728738, 'fraction_numerical': 0.013620661292975818, 'mean_word_length': 14.773741567202906, 'pattern_counts': {'":': 6, '<': 40, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '196694', 'n_tokens_mistral': 12218, 'n_tokens_neox': 12090, 'n_words': 300}