1L.Control.Notifications=L.Control.extend({options:{position:"topright",timeout:3e3,closable:!0,dismissable:!0,className:"",icons:{info:null,warning:null,success:null,alert:null,custom:null},marginLeft:null,marginRight:null},onAdd:function(i){return this._notifications=[],this._container=L.DomUtil.create("div",`leaflet-control-notifications ${this.options.className}`),this.options.marginLeft&&(this._container.style.marginLeft=this.options.marginLeft),this.options.marginRight&&(this._container.style.marginRight=this.options.marginRight),L.DomEvent.disableScrollPropagation(this._container),L.DomEvent.disableClickPropagation(this._container),L.DomEvent.on(this._container,"contextmenu",L.DomEvent.stopPropagation),i._container.insertBefore(this._container,i._container.firstChild),this._container},info:function(i,t,n){this._add("info",i,t,{icon:"fa fa-info-circle",...n})},warning:function(i,t,n){this._add("warning",i,t,{icon:"fa fa-exclamation-triangle",...n})},success:function(i,t,n){this._add("success",i,t,{icon:"fa fa-check-circle",...n})},alert:function(i,t,n){this._add("alert",i,t,{icon:"fa fa-exclamation-circle",...n})},custom:function(i,t,n){this._add("custom",i,t,{icon:"fa fa-cog",...n})},clear:function(){for(var i=0;i<this._notifications.length;i++){var t=this._notifications[i];this._remove(t),i--}this._notifications=[]},_add:function(i,t,n,o){const{className:e,icon:a,timeout:s,closable:c,dismissable:l}={...o};var r,m,f,d,h,u=L.DomUtil.create("div",`leaflet-notification ${i}`,this._container),v=void 0!==c?c:this.options.closable,_=void 0!==l?l:this.options.dismissable;(a&&(r=L.DomUtil.create("div","leaflet-notification-icon",u),L.DomUtil.create("i",a,r)),m=L.DomUtil.create("div","leaflet-notification-content",u),f=L.DomUtil.create("div","leaflet-notification-title",m),d=L.DomUtil.create("div","leaflet-notification-message",m),_&&(L.DomUtil.addClass(u,"dismissable"),L.DomEvent.addListener(u,"click",L.DomEvent.stop),L.DomEvent.addListener(u,"click",(()=>this._remove(u))),L.DomEvent.disableClickPropagation(u)),v)&&((h=L.DomUtil.create("span","leaflet-notification-close-button",u)).innerHTML="×",L.DomEvent.addListener(h,"click",L.DomEvent.stop),L.DomEvent.addListener(h,"click",(()=>this._remove(u))),L.DomEvent.disableClickPropagation(h));return e&&L.DomUtil.addClass(u,e),t&&(f.innerHTML=t),n&&(d.innerHTML=n),setTimeout((()=>{u.style.opacity="1"})),setTimeout((()=>{this._remove(u)}),s||this.options.timeout),this._notifications.push(u),u},_remove:function(i){var t=this._notifications.indexOf(i);this._notifications.splice(t,1),i.style.opacity="0",setTimeout((function(){L.DomUtil.remove(i)}),300)}}),L.control.notifications=function(i){return new L.Control.Notifications(i)};
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.