!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(n){if(o[n])returno[n].exports;varr=o[n]={exports:{},id:n,loaded:!1};returne[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}varo={};returnt.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";functionn(e){returne&&e.__esModule?e:{default:e}}varr=n(o(1)),i=n(o(2)),s=n(o(3)),a=n(o(4)),l=n(o(5)),u=n(o(6)),p=n(o(7)),c=n(o(8)),f=n(o(9)),d=n(o(10)),h=n(o(11)),y=n(o(12)),v=n(o(13));angular.module(r.default.name,[]).value("fileUploaderOptions",i.default).factory("FileUploader",s.default).factory("FileLikeObject",a.default).factory("FileItem",l.default).factory("FileDirective",u.default).factory("FileSelect",p.default).factory("FileDrop",f.default).factory("FileOver",d.default).factory("Pipeline",c.default).directive("nvFileSelect",h.default).directive("nvFileDrop",y.default).directive("nvFileOver",v.default).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Pipeline",function(e,t,o,n,r,i,s,a){e.FileLikeObject=t,e.FileItem=o,e.FileDirective=n,e.FileSelect=r,e.FileDrop=i,e.FileOver=s,e.Pipeline=a}])},function(e,t){e.exports={name:"angularFileUpload"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={url:"/",alias:"file",headers:{},queue:[],progress:0,autoUpload:!1,removeAfterUpload:!1,method:"POST",filters:[],formData:[],queueLimit:Number.MAX_VALUE,withCredentials:!1,disableMultipart:!1}},function(e,t,o){"use strict";functionn(e,t,o,n,i,v,m,_){varg=n.File,b=n.FormData,F=function(){functionn(t){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,n);varo=a(e);l(this,o,t,{isUploading:!1,_nextIndex:0,_directives:{select:[],drop:[],over:[]}}),this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}returnn.prototype.addToQueue=function(e,t,o){varn=this,i=this.isArrayLikeObject(e)?Array.prototype.slice.call(e):[e],s=this._getFilters(o),a=this.queue.length,l=[],u=function(){n.queue.length!==a&&(n._onAfterAddingAll(l),n.progress=n._getTotalProgress()),n._render(),n.autoUpload&&n.uploadAll()};!functione(){varo=i.shift();if(h(o))returnu();vara=n.isFile(o)?o:newv(o),p=n._convertFiltersToPipes(s),c=new_(p);c.onThrown=function(t){varo=t.pipe.originalFilter,i=r(t.args,2),s=i[0],a=i[1];n._onWhenAddingFileFailed(s,o,a),e()},c.onSuccessful=function(t,o){varr=newm(n,t,o);l.push(r),n.queue.push(r),n._onAfterAddingFile(r),e()},c.exec(a,t)}()},n.prototype.removeFromQueue=function(e){vart=this.getIndexOfItem(e),o=this.queue[t];o.isUploading&&o.cancel(),this.queue.splice(t,1),o._destroy(),this.progress=this._getTotalProgress()},n.prototype.clearQueue=function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0},n.prototype.uploadItem=function(e){vart=this.getIndexOfItem(e),o=this.queue[t],n=this.isHTML5?"_xhrTransport":"_iframeTransport";o._prepareToUploading(),this.isUploading||(this._onBeforeUploadItem(o),o.isCancel||(o.isUploading=!0,this.isUploading=!0,this[n](o),this._render()))},n.prototype.cancelItem=function(e){vart=this,o=this.getIndexOfItem(e),n=this.queue[o],r=this.isHTML5?"_xhr":"_form";n&&(n.isCancel=!0,n.isUploading?n[r].abort():function(){vare=[void0,0,{}];i(function(){t._onCancelItem.apply(t,[n].concat(e)),t._onCompleteItem.apply(t,[n].concat(e))})}())},n.prototype.uploadAll=function(){vare=this.getNotUploadedItems().filter(function(e){return!e.isUploading});e.length&&(u(e,function(e){returne._prepareToUploading()}),e[0].upload())},n.prototype.cancelAll=function(){vare=this.getNotUploadedItems();u(e,function(e){returne.cancel()})},n.prototype.isFile=function(e){returnthis.constructor.isFile(e)},n.prototype.isFileLikeObject=function(e){returnthis.constructor.isFileLikeObject(e)},n.prototype.isArrayLikeObject=functio