1L.GridLayer.GoogleMutant=L.GridLayer.extend({includes:L.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",opacity:1,continuousWorld:!1,noWrap:!1,type:"roadmap",maxNativeZoom:21},initialize:function(a){L.GridLayer.prototype.initialize.call(this,a),this._ready=!!window.google&&!!window.google.maps&&!!window.google.maps.Map,this._GAPIPromise=this._ready?Promise.resolve(window.google):new Promise(function(a,b){var c=0,d=null;d=setInterval(function(){return c>=10?(clearInterval(d),b(new Error("window.google not found after 10 attempts"))):window.google&&window.google.maps&&window.google.maps.Map?(clearInterval(d),a(window.google)):void c++},500)}),this._tileCallbacks={},this._freshTiles={},this._imagesPerTile="hybrid"===this.options.type?2:1,this.createTile="hybrid"===this.options.type?this._createMultiTile:this._createSingleTile},onAdd:function(a){L.GridLayer.prototype.onAdd.call(this,a),this._initMutantContainer(),this._GAPIPromise.then(function(){this._ready=!0,this._map=a,this._initMutant(),a.on("viewreset",this._reset,this),a.on("move",this._update,this),a.on("zoomend",this._handleZoomAnim,this),a.on("resize",this._resize,this),a._controlCorners.bottomright.style.marginBottom="20px",this._reset(),this._update()}.bind(this))},onRemove:function(a){L.GridLayer.prototype.onRemove.call(this,a),a._container.removeChild(this._mutantContainer),this._mutantContainer=void 0,a.off("viewreset",this._reset,this),a.off("move",this._update,this),a.off("zoomend",this._handleZoomAnim,this),a.off("resize",this._resize,this),a._controlCorners.bottomright.style.marginBottom="0em"},getAttribution:function(){return this.options.attribution},setOpacity:function(a){this.options.opacity=a,a<1&&L.DomUtil.setOpacity(this._mutantContainer,a)},setElementSize:function(a,b){a.style.width=b.x+"px",a.style.height=b.y+"px"},_initMutantContainer:function(){this._mutantContainer||(this._mutantContainer=L.DomUtil.create("div","leaflet-google-mutant leaflet-top leaflet-left"),this._mutantContainer.id="_MutantContainer_"+L.Util.stamp(this._mutantContainer),this._mutantContainer.style.pointerEvents="none",this._map.getContainer().appendChild(this._mutantContainer)),this.setOpacity(this.options.opacity),this.setElementSize(this._mutantContainer,this._map.getSize()),this._attachObserver(this._mutantContainer)},_initMutant:function(){if(this._ready&&this._mutantContainer){this._mutantCenter=new google.maps.LatLng(0,0);var a=new google.maps.Map(this._mutantContainer,{center:this._mutantCenter,zoom:0,tilt:0,mapTypeId:this.options.type,disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1,styles:this.options.styles||{},backgroundColor:"transparent"});this._mutant=a,this.fire("spawned",{mapObject:a})}},_attachObserver:function(b){var c=new MutationObserver(this._onMutations.bind(this));c.observe(b,{childList:!0,subtree:!0})},_onMutations:function(b){for(var c=0;c<b.length;++c)for(var d=b[c],e=0;e<d.addedNodes.length;++e){var f=d.addedNodes[e];f instanceof HTMLImageElement?this._onMutatedImage(f):f instanceof HTMLElement&&Array.prototype.forEach.call(f.querySelectorAll("img"),this._onMutatedImage.bind(this))}},_roadRegexp:/!1i(\d+)!2i(\d+)!3i(\d+)!/,_satRegexp:/x=(\d+)&y=(\d+)&z=(\d+)/,_staticRegExp:/StaticMapService\.GetMapImage/,_onMutatedImage:function(b){var c,e,f,d=b.src.match(this._roadRegexp);if(d?(c={z:d[1],x:d[2],y:d[3]},this._imagesPerTile>1&&(b.style.zIndex=1),e=1):(d=b.src.match(this._satRegexp),d&&(c={x:d[1],y:d[2],z:d[3]}),e=0),c){var g=this._tileCoordsToKey(c);b.style.position="absolute",this._imagesPerTile>1&&(g+="/"+e),g in this._tileCallbacks&&this._tileCallbacks[g]?(this._tileCallbacks[g].pop()(b),this._tileCallbacks[g].length||delete this._tileCallbacks[g]):(f=b.parentNode,f&&(f.removeChild(b),f.removeChild=L.Util.falseFn),g in this._freshTiles?this._freshTiles[g].push(b):this._freshTiles[g]=[b])}else b.src.match(this._staticRegExp)&&(f=b.parentNode,f&&b.parentNode.replaceChild(L.DomUtil.create("img"),b))},_createSingleTile:function(b,c){var d=this._tileCoordsToKey(b),e=L.DomUtil.create("div");if(c=c.bind(this,null,e),d in this._freshTiles){var f=this._freshTiles[d].pop();this._freshTiles[d].length||delete this._freshTiles[d],e.appendChild(f),L.Util.requestAnimFrame
1(c)}else this._tileCallbacks[d]=this._tileCallbacks[d]||[],this._tileCallbacks[d].push(function(a){return function(b){var d=b.parentNode;d&&(d.removeChild(b),d.removeChild=L.Util.falseFn),a.appendChild(b),c()}.bind(this)}.bind(this)(e));return e},_createMultiTile:function(b,c){var d=this._tileCoordsToKey(b),e=L.DomUtil.create("div");e.dataset.pending=this._imagesPerTile,c=c.bind(this,null,e);for(var f=0;f<this._imagesPerTile;f++){var g=d+"/"+f;g in this._freshTiles?(e.appendChild(this._freshTiles[g].pop()),this._freshTiles[g].length||delete this._freshTiles[g],e.dataset.pending--):(this._tileCallbacks[g]=this._tileCallbacks[g]||[],this._tileCallbacks[g].push(function(a){return function(b){var d=b.parentNode;d&&(d.removeChild(b),d.removeChild=L.Util.falseFn),a.appendChild(b),a.dataset.pending--,parseInt(a.dataset.pending)||c()}.bind(this)}.bind(this)(e)))}return parseInt(e.dataset.pending)||L.Util.requestAnimFrame(c),e},_checkZoomLevels:function(){void 0!==this._map.getZoom()&&this._mutant.getZoom()!==this._map.getZoom()&&this._map.setZoom(this._mutant.getZoom())},_reset:function(){this._initContainer()},_update:function(){if(L.GridLayer.prototype._update.call(this),this._mutant){var a=this._map.getCenter(),b=new google.maps.LatLng(a.lat,a.lng);this._mutant.setCenter(b);var c=this._map.getZoom();void 0!==c&&this._mutant.setZoom(Math.round(this._map.getZoom()))}},_resize:function(){var a=this._map.getSize();this._mutantContainer.style.width===a.x&&this._mutantContainer.style.height===a.y||(this.setElementSize(this._mutantContainer,a),this._mutant&&google.maps.event.trigger(this._mutant,"resize"))},_handleZoomAnim:function(){var a=this._map.getCenter(),b=new google.maps.LatLng(a.lat,a.lng);this._mutant.setCenter(b),this._mutant.setZoom(Math.round(this._map.getZoom()))},_removeTile:function(a){if(this._imagesPerTile>1)for(var b=0;b<this._imagesPerTile;b++){var c=a+"/"+b;c in this._freshTiles&&delete this._freshTiles[c]}else a in this._freshTiles&&delete this._freshTiles[a];return L.GridLayer.prototype._removeTile.call(this,a)}}),L.gridLayer.googleMutant=function(a){return new L.GridLayer.GoogleMutant(a)};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.