!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):"object"==typeofexports?exports["angular-file-upload"]=t():e["angular-file-upload"]=t()}(this,function(){returnfunction(e){functiont(r){if(n[r])returnn[r].exports;vari=n[r]={exports:{},id:r,loaded:!1};returne[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}varn={};returnt.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";varr=function(e){returne&&e.__esModule?e["default"]:e},i=r(n(2)),o=r(n(3)),s=r(n(4)),a=r(n(5)),u=r(n(6)),l=r(n(7)),c=r(n(1)),f=r(n(8)),p=r(n(9)),d=r(n(10)),v=r(n(11)),h=r(n(12));angular.module(i.name,[]).value("fileUploaderOptions",o).factory("FileUploader",s).factory("FileLikeObject",a).factory("FileItem",u).factory("FileDirective",l).factory("FileSelect",c).factory("FileDrop",f).factory("FileOver",p).directive("nvFileSelect",d).directive("nvFileDrop",v).directive("nvFileOver",h).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver",function(e,t,n,r,i,o,s){e.FileLikeObject=t,e.FileItem=n,e.FileDirective=r,e.FileSelect=i,e.FileDrop=o,e.FileOver=s}])},function(e,t,n){"use strict";varr=function(e){returne&&e.__esModule?e["default"]:e},i=function(){functione(e,t){for(varnint){varr=t[n];r.configurable=!0,r.value&&(r.writable=!0)}Object.defineProperties(e,t)}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),o=functionl(e,t,n){varr=Object.getOwnPropertyDescriptor(e,t);if(void0===r){vari=Object.getPrototypeOf(e);returnnull===i?void0:l(i,t,n)}if("value"inr&&r.writable)returnr.value;varo=r.get;returnvoid0===o?void0:o.call(n)},s=function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)},a=function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")},u=(r(n(2)),angular.extend);e.exports=function(e){vart=function(e){functiont(e){a(this,t);varn=u(e,{events:{$destroy:"destroy",change:"onChange"},prop:"select"});o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,n),this.uploader.isHTML5||this.element.removeAttr("multiple"),this.element.prop("value",null)}returns(t,e),i(t,{getOptions:{value:function(){}},getFilters:{value:function(){}},isEmptyAfterSelection:{value:function(){return!!this.element.attr("multiple")}},onChange:{value:function(){vare=this.uploader.isHTML5?this.element[0].files:this.element[0],t=this.getOptions(),n=this.getFilters();this.uploader.isHTML5||this.destroy(),this.uploader.addToQueue(e,t,n),this.isEmptyAfterSelection()&&(this.element.prop("value",null),this.element.replaceWith(this.element=this.element.clone(!0)))}}}),t}(e);returnt},e.exports.$inject=["FileDirective"]},function(e,t){e.exports={name:"angularFileUpload"}},function(e,t){"use strict";e.exports={url:"/",alias:"file",headers:{},queue:[],progress:0,autoUpload:!1,removeAfterUpload:!1,method:"POST",filters:[],formData:[],queueLimit:Number.MAX_VALUE,withCredentials:!1}},function(e,t,n){"use strict";varr=function(e){returne&&e.__esModule?e["default"]:e},i=function(){functione(e,t){for(varnint){varr=t[n];r.configurable=!0,r.value&&(r.writable=!0)}Object.defineProperties(e,t)}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")},s=(r(n(2)),angular.copy),a=angular.extend,u=angular.forEach,l=angular.isObject,c=angular.isNumber,f=angular.isDefined,p=angular.isArray,d=angular.element;e.exports=function(e,t,n,r,v,h){varm=r.File,g=r.FormData,_=function(){functionr(t){o(this,r);varn=s(e);a(this,n,t,{isUploading:!1,_nextIndex:0,_failFilterIndex:-1,_directives:{select:[],drop:[],over:[]}}),this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}returni(r,{addToQueue:{value:function(e,