!function(e,t){"function"==typeofdefine&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeofmodule&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeofwindow?window:this,function(){functione(){}vart=e.prototype;returnt.on=function(e,t){vari;if(e&&t)return-1==(i=(i=this._events=this._events||{})[e]=i[e]||[]).indexOf(t)&&i.push(t),this},t.once=function(e,t){vari;if(e&&t)returnthis.on(e,t),((i=this._onceEvents=this._onceEvents||{})[e]=i[e]||{})[t]=!0,this},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length)return-1!=(t=e.indexOf(t))&&e.splice(t,1),this},t.emitEvent=function(e,t){vari=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(varn=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){vars=i[o];n&&n[s]&&(this.off(e,s),deleten[s]),s.apply(this,t)}returnthis}},t.allOff=function(){deletethis._events,deletethis._onceEvents},e}),function(t,i){"use strict";"function"==typeofdefine&&define.amd?define(["ev-emitter/ev-emitter"],function(e){returni(t,e)}):"object"==typeofmodule&&module.exports?module.exports=i(t,require("ev-emitter")):t.imagesLoaded=i(t,t.EvEmitter)}("undefined"!=typeofwindow?window:this,function(t,e){functions(e,t){for(variint)e[i]=t[i];returne}functionr(e,t,i){varn,o;returnthisinstanceofr?(n="string"==typeof(n=e)?document.querySelectorAll(e):n)?(this.elements=(o=n,Array.isArray(o)?o:"object"==typeofo&&"number"==typeofo.length?h.call(o):[o]),this.options=s({},this.options),"function"==typeoft?i=t:s(this.options,t),i&&this.on("always",i),this.getImages(),a&&(this.jqDeferred=newa.Deferred),voidsetTimeout(this.check.bind(this))):voidd.error("Bad element for imagesLoaded "+(n||e)):newr(e,t,i)}functioni(e){this.img=e}functionn(e,t){this.url=e,this.element=t,this.img=newImage}vara=t.jQuery,d=t.console,h=Array.prototype.slice,c=((r.prototype=Object.create(e.prototype)).options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);vart=e.nodeType;if(t&&c[t]){for(vari=e.querySelectorAll("img"),n=0;n<i.length;n++){varo=i[n];this.addImage(o)}if("string"==typeofthis.options.background)for(vars=e.querySelectorAll(this.options.background),n=0;n<s.length;n++){varr=s[n];this.addElementBackgroundImages(r)}}},{1:!0,9:!0,11:!0});returnr.prototype.addElementBackgroundImages=function(e){vart=getComputedStyle(e);if(t)for(vari=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){varo=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},r.prototype.addImage=function(e){e=newi(e);this.images.push(e)},r.prototype.addBackground=function(e,t){e=newn(e,t);this.images.push(e)},r.prototype.check=function(){functiont(e,t,i){setTimeout(function(){n.progress(e,t,i)})}varn=this;returnthis.progressedCount=0,this.hasAnyBroken=!1,this.images.length?voidthis.images.forEach(function(e){e.once("progress",t),e.check()}):voidthis.complete()},r.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&d&&d.log("progress: "+i,e,t)},r.prototype.complete=function(){vare=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(i.prototype=Object.create(e.prototype)).check=function(){returnthis.getIsImageComplete()?voidthis.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=newImage,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},i.prototype.getIsImageComplete=function(){ret