!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){if(e&&t){varn=this._events=this._events||{},e=n[e]=n[e]||[];return-1==e.indexOf(t)&&e.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);varn=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length){t=e.indexOf(t);return-1!=t&&e.splice(t,1),this}},t.emitEvent=function(e,t){varn=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(vari=this._onceEvents&&this._onceEvents[e],r=0;r<n.length;r++){vara=n[r];i&&i[a]&&(this.off(e,a),deletei[a]),a.apply(this,t)}returnthis}},t.allOff=function(){deletethis._events,deletethis._onceEvents},e}),function(t,n){"use strict";"function"==typeofdefine&&define.amd?define(["ev-emitter/ev-emitter"],function(e){returnn(t,e)}):"object"==typeofmodule&&module.exports?module.exports=n(t,require("ev-emitter")):t.imagesLoaded=n(t,t.EvEmitter)}("undefined"!=typeofwindow?window:this,function(t,e){functiona(e,t){for(varnint)e[n]=t[n];returne}functiono(e,t,n){if(!(thisinstanceofo))returnnewo(e,t,n);vari,r=e;return(r="string"==typeofe?document.querySelectorAll(e):r)?(this.elements=(i=r,Array.isArray(i)?i:"object"==typeofi&&"number"==typeofi.length?d.call(i):[i]),this.options=a({},this.options),"function"==typeoft?n=t:a(this.options,t),n&&this.on("always",n),this.getImages(),s&&(this.jqDeferred=news.Deferred),voidsetTimeout(this.check.bind(this))):voidl.error("Bad element for imagesLoaded "+(r||e))}functionn(e){this.img=e}functioni(e,t){this.url=e,this.element=t,this.img=newImage}vars=t.jQuery,l=t.console,d=Array.prototype.slice;(o.prototype=Object.create(e.prototype)).options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.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(varn=e.querySelectorAll("img"),i=0;i<n.length;i++){varr=n[i];this.addImage(r)}if("string"==typeofthis.options.background)for(vara=e.querySelectorAll(this.options.background),i=0;i<a.length;i++){varo=a[i];this.addElementBackgroundImages(o)}}};varc={1:!0,9:!0,11:!0};returno.prototype.addElementBackgroundImages=function(e){vart=getComputedStyle(e);if(t)for(varn=/url\((['"])?(.*?)\1\)/gi,i=n.exec(t.backgroundImage);null!==i;){varr=i&&i[2];r&&this.addBackground(r,e),i=n.exec(t.backgroundImage)}},o.prototype.addImage=function(e){e=newn(e);this.images.push(e)},o.prototype.addBackground=function(e,t){t=newi(e,t);this.images.push(t)},o.prototype.check=function(){functiont(e,t,n){setTimeout(function(){i.progress(e,t,n)})}vari=this;returnthis.progressedCount=0,this.hasAnyBroken=!1,this.images.length?voidthis.images.forEach(function(e){e.once("progress",t),e.check()}):voidthis.complete()},o.prototype.progress=function(e,t,n){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&&l&&l.log("progress: "+n,e,t)},o.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))},(n.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))},n.prototype.getIsImageComplete=