{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///angular-file-upload.min.js","webpack:///webpack/bootstrap 4e4cd37cef8307ff6bc2?839d","webpack:///./src/index.js?9552","webpack:///./src/config.json?1c25","webpack:///./src/values/options.js?b00e","webpack:///./src/services/FileUploader.js?148d","webpack:///./src/services/FileLikeObject.js?b90b","webpack:///./src/services/FileItem.js?e529","webpack:///./src/services/FileDirective.js?4dd3","webpack:///./src/services/FileSelect.js?5a11","webpack:///./src/services/FileDrop.js?e446","webpack:///./src/services/FileOver.js?26c9","webpack:///./src/directives/FileSelect.js?8405","webpack:///./src/directives/FileDrop.js?82da","webpack:///./src/directives/FileOver.js?6161"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","_config","_config2","_options","_options2","_FileUploader","_FileUploader2","_FileLikeObject","_FileLikeObject2","_FileItem","_FileItem2","_FileDirective","_FileDirective2","_FileSelect","_FileSelect2","_FileDrop","_FileDrop2","_FileOver","_FileOver2","_FileSelect3","_FileSelect4","_FileDrop3","_FileDrop4","_FileOver3","_FileOver4","angular","name","value","directive","run","FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Object","defineProperty","url","alias","headers","queue","progress","autoUpload","removeAfterUpload","method","filters","formData","queueLimit","Number","MAX_VALUE","withCredentials","disableMultipart","_classCallCheck","instance","Constructor","TypeError","__identity","fileUploaderOptions","$rootScope","$http","$window","$timeout","File","FormData","options","settings","copy","extend","isUploading","_nextIndex","_failFilterIndex","_directives","select","drop","over","unshift","fn","_queueLimitFilter","_folderFilter","prototype","addToQueue","files","_this","list","isArrayLikeObject","arrayOfFilters","_getFilters","count","length","addedFileItems","forEach","some","temp","_isValidFile","fileItem","push","_onAfterAddingFile","filter","_onWhenAddingFileFailed","_onAfterAddingAll","_getTotalProgress","_render","uploadAll","removeFromQueue","index","getIndexOfItem","item","cancel","splice","_destroy","clearQueue","remove","uploadItem","transport","isHTML5","_prepareToUploading","_onBeforeUploadItem","isCancel","cancelItem","_this2","prop","abort","dummy","undefined","onNextTick","_onCancelItem","apply","concat","_onCompleteItem","items","getNotUploadedItems","upload","cancelAll","isFile","constructor","isFileLikeObject","isNumber","indexOf","isUploaded","getReadyItems","isReady","sort","item1","item2","destroy","_this3","key","object","onAfterAddingAll","fileItems","onAfterAddingFile","onWhenAddingFileFailed","onBeforeUploadItem","onProgressItem","onProgressAll","onSuccessItem","response","status","onErrorItem","onCancelItem","onCompleteItem","onCompleteAll","notUploaded","uploaded","ratio","current","Math","round","isArray","names","match","$$phase","$apply","size","type","file","_this4","every","_isSuccessCode","_transformResponse","headersGetter","_headersGetter","defaults","transformResponse","transformFn","_parseHeaders","val","i","parsed","split","line","slice","trim","toLowerCase","parsedHeaders","_xhrTransport","sendable","_this5","xhr","_xhr","XMLHttpRequest","_file","append","onprogress","event","lengthComputable","total","_onProgressItem","onload","getAllResponseHeaders","gist","onerror","_onErrorItem","onabort","open","setRequestHeader","send","_iframeTransport","_this6","form","element","iframe","Date","now","input","_input","_form","replaceWith","element_","action","target","enctype","encoding","bind","html","contentDocument","body","innerHTML","e","_onSuccessItem","unbind","after","submit","_onBeforeUpload","_onProgress","_onSuccess","_onError","_onCancel","_onComplete","nextItem","isDefined","isObject","inherit","source","create","super_","_angular","$inject","fileOrInput","isInput","isElement","fakePathOrObject","postfix","isString","_createFromFakePath","path","lastModifiedDate","lastIndexOf","_createFromObject","$compile","uploader","isSuccess","isError","_replaceNode","onBeforeUpload","onProgress","onSuccess","onError","onCancel","onComplete","clone","scope","css","_saveLinks","events","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","enumerable","writable","configurable","setPrototypeOf","__proto__","extendedOptions","$destroy","change","removeAttr","getOptions","getFilters","isEmptyAfterSelection","attr","onChange","dragover","dragleave","onDrop","transfer","_getTransfer","_preventAndStop","_removeOverClass","onDragOver","_haveFiles","types","dropEffect","_addOverClass","onDragLeave","currentTarget","dataTransfer","originalEvent","preventDefault","stopPropagation","contains","addOverClass","removeOverClass","overClass","addClass","getOverClass","removeClass","$parse","link","attributes","$eval"],"mappings":";;;;;CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,uBAAAD,IAEAD,EAAA,uBAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,QAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,GAGAR,EAAA,KDgBM,SAASL,EAAQD,EAASM,GEtDhC,YF0GC,SAASS,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,UAASF,GEvGxF,GAAAG,GAAAb,EAAA,GFyDKc,EAAWL,EAAuBI,GEtDvCE,EAAAf,EAAA,GF0DKgB,EAAYP,EAAuBM,GEvDxCE,EAAAjB,EAAA,GF2DKkB,EAAiBT,EAAuBQ,GE1D7CE,EAAAnB,EAAA,GF8DKoB,EAAmBX,EAAuBU,GE7D/CE,EAAArB,EAAA,GFiEKsB,EAAab,EAAuBY,GEhEzCE,EAAAvB,EAAA,GFoEKwB,EAAkBf,EAAuBc,GEnE9CE,EAAAzB,EAAA,GFuEK0B,EAAejB,EAAuBgB,GEtE3CE,EAAA3B,EAAA,GF0EK4B,EAAanB,EAAuBkB,GEzEzCE,EAAA7B,EAAA,GF6EK8B,EAAarB,EAAuBoB,GE1EzCE,EAAA/B,EAAA,IF8EKgC,EAAevB,EAAuBsB,G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J,QAAd,CAEA,GAAIiC,GAAS,GAAIlH,IACb6O,SAAUA,EACVlD,QAASA,GAGbzE,GAAOyJ,WAAa8B,EAAOE,EAAW5Q,SAASyK,KAAKtF,EAAQsI,GAC5DtI,EAAO0J,WAAa,iBAAM+B,GAAW/R,Yb40DhDV,OAAOC,eAAexD,EAAS,cAC3B6C,OAAO,IAEX7C,aal2DuB4E,CAHxB,IAAAzD,GAAAb,EAAA,Eby2DgBS,GAAuBI,Ea30DvCyD,GAAWyM,SACP,SACA,eACA,aby2DE,SAASpR,EAAQD,EAASM,Gc74DhC,Yd05DC,SAASS,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,UAASF,Gcp5DzE,QAAS4D,GAAW5B,EAAcM,GAG7C,OACIyS,KAAM,SAAClD,EAAO7D,EAASgH,GACnB,GAAI9D,GAAWW,EAAMoD,MAAMD,EAAW9D,SAEtC,MAAMA,YAAoBlP,IACtB,KAAM,IAAI2B,WAAU,iDAGxB,IAAI4F,GAAS,GAAIjH,IACb4O,SAAUA,EACVlD,QAASA,GAGbzE,GAAOqL,aAAe,iBAAMI,GAAWN,WAAanL,EAAOmL,ad23DtEnS,OAAOC,eAAexD,EAAS,cAC3B6C,OAAO,IAEX7C,ac94DuB4E,CAHxB,IAAAzD,GAAAb,EAAA,Edq5DgBS,GAAuBI,Ec13DvCyD,GAAWyM,SACP,eACA","file":"angular-file-upload.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"angular-file-upload\"] = factory();\n\telse\n\t\troot[\"angular-file-upload\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"angular-file-upload\"] = factory();\n\telse\n\t\troot[\"angular-file-upload\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _config = __webpack_require__(1);\n\t\n\tvar _config2 = _interopRequireDefault(_config);\n\t\n\tvar _options = __webpack_require__(2);\n\t\n\tvar _options2 = _interopRequireDefault(_options);\n\t\n\tvar _FileUploader = __webpack_require__(3);\n\t\n\tvar _FileUploader2 = _interopRequireDefault(_FileUploader);\n\t\n\tvar _FileLikeObject = __webpack_require__(4);\n\t\n\tvar _FileLikeObject2 = _interopRequireDefault(_FileLikeObject);\n\t\n\tvar _FileItem = __webpack_require__(5);\n\t\n\tvar _FileItem2 = _interopRequireDefault(_FileItem);\n\t\n\tvar _FileDirective = __webpack_require__(6);\n\t\n\tvar _FileDirective2 = _interopRequireDefault(_FileDirective);\n\t\n\tvar _FileSelect = __webpack_require__(7);\n\t\n\tvar _FileSelect2 = _interopRequireDefault(_FileSelect);\n\t\n\tvar _FileDrop = __webpack_require__(8);\n\t\n\tvar _FileDrop2 = _interopRequireDefault(_FileDrop);\n\t\n\tvar _FileOver = __webpack_require__(9);\n\t\n\tvar _FileOver2 = _interopRequireDefault(_FileOver);\n\t\n\tvar _FileSelect3 = __webpack_require__(10);\n\t\n\tvar _FileSelect4 = _interopRequireDefault(_FileSelect3);\n\t\n\tvar _FileDrop3 = __webpack_require__(11);\n\t\n\tvar _FileDrop4 = _interopRequireDefault(_FileDrop3);\n\t\n\tvar _FileOver3 = __webpack_require__(12);\n\t\n\tvar _FileOver4 = _interopRequireDefault(_FileOver3);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tangular.module(_config2.default.name, []).value('fileUploaderOptions', _options2.default).factory('FileUploader', _FileUploader2.default).factory('FileLikeObject', _FileLikeObject2.default).factory('FileItem', _FileItem2.default).factory('FileDirective', _FileDirective2.default).factory('FileSelect', _FileSelect2.default).factory('FileDrop', _FileDrop2.default).factory('FileOver', _FileOver2.default).directive('nvFileSelect', _FileSelect4.default).directive('nvFileDrop', _FileDrop4.default).directive('nvFileOver', _FileOver4.default).run(['FileUploader', 'FileLikeObject', 'FileItem', 'FileDirective', 'FileSelect', 'FileDrop', 'FileOver', function (FileUploader, FileLikeObject, FileItem, FileDirective, FileSelect, FileDrop, FileOver) {\n\t // only for compatibility\n\t FileUploader.FileLikeObject = FileLikeObject;\n\t FileUploader.FileItem = FileItem;\n\t FileUploader.FileDirective = FileDirective;\n\t FileUploader.FileSelect = FileSelect;\n\t FileUploader.FileDrop = FileDrop;\n\t FileUploader.FileOver = FileOver;\n\t}]);\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\tmodule.exports = {\n\t\t\"name\": \"angularFileUpload\"\n\t};\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = {\n\t url: '/',\n\t alias: 'file',\n\t headers: {},\n\t queue: [],\n\t progress: 0,\n\t autoUpload: false,\n\t removeAfterUpload: false,\n\t method: 'POST',\n\t filters: [],\n\t formData: [],\n\t queueLimit: Number.MAX_VALUE,\n\t withCredentials: false,\n\t disableMultipart: false\n\t};\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.default = __identity;\n\t\n\tvar _config = __webpack_require__(1);\n\t\n\tvar _config2 = _interopRequireDefault(_config);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar _angular = angular;\n\tvar copy = _angular.copy;\n\tvar extend = _angular.extend;\n\tvar forEach = _angular.forEach;\n\tvar isObject = _angular.isObject;\n\tvar isNumber = _angular.isNumber;\n\tvar isDefined = _angular.isDefined;\n\tvar isArray = _angular.isArray;\n\tvar element = _angular.element;\n\tfunction __identity(fileUploaderOptions, $rootScope, $http, $window, $timeout, FileLikeObject, FileItem) {\n\t var File = $window.File;\n\t var FormData = $window.FormData;\n\t\n\t var FileUploader = function () {\n\t /**********************\n\t * PUBLIC\n\t **********************/\n\t /**\n\t * Creates an instance of FileUploader\n\t * @param {Object} [options]\n\t * @constructor\n\t */\n\t\n\t function FileUploader(options) {\n\t _classCallCheck(this, FileUploader);\n\t\n\t var settings = copy(fileUploaderOptions);\n\t\n\t extend(this, settings, options, {\n\t isUploading: false,\n\t _nextIndex: 0,\n\t _failFilterIndex: -1,\n\t _directives: { select: [], drop: [], over: [] }\n\t });\n\t\n\t // add default filters\n\t this.filters.unshift({ name: 'queueLimit', fn: this._queueLimitFilter });\n\t this.filters.unshift({ name: 'folder', fn: this._folderFilter });\n\t }\n\t /**\n\t * Adds items to the queue\n\t * @param {File|HTMLInputElement|Object|FileList|Array} files\n\t * @param {Object} [options]\n\t * @param {Array|String} filters\n\t */\n\t\n\t\n\t FileUploader.prototype.addToQueue = function addToQueue(files, options, filters) {\n\t var _this = this;\n\t\n\t var list = this.isArrayLikeObject(files) ? files : [files];\n\t var arrayOfFilters = this._getFilters(filters);\n\t var count = this.queue.length;\n\t var addedFileItems = [];\n\t\n\t forEach(list, function (some /*{File|HTMLInputElement|Object}*/) {\n\t var temp = new FileLikeObject(some);\n\t\n\t if (_this._isValidFile(temp, arrayOfFilters, options)) {\n\t var fileItem = new FileItem(_this, some, options);\n\t addedFileItems.push(fileItem);\n\t _this.queue.push(fileItem);\n\t _this._onAfterAddingFile(fileItem);\n\t } else {\n\t var filter = arrayOfFilters[_this._failFilterIndex];\n\t _this._onWhenAddingFileFailed(temp, filter, options);\n\t }\n\t });\n\t\n\t if (this.queue.length !== count) {\n\t this._onAfterAddingAll(addedFileItems);\n\t this.progress = this._getTotalProgress();\n\t }\n\t\n\t this._render();\n\t if (this.autoUpload) this.uploadAll();\n\t };\n\t /**\n\t * Remove items from the queue. Remove last: index = -1\n\t * @param {FileItem|Number} value\n\t */\n\t\n\t\n\t FileUploader.prototype.removeFromQueue = function removeFromQueue(value) {\n\t var index = this.getIndexOfItem(value);\n\t var item = this.queue[index];\n\t if (item.isUploading) item.cancel();\n\t this.queue.splice(index, 1);\n\t item._destroy();\n\t this.progress = this._getTotalProgress();\n\t };\n\t /**\n\t * Clears the queue\n\t */\n\t\n\t\n\t FileUploader.prototype.clearQueue = function clearQueue() {\n\t while (this.queue.length) {\n\t this.queue[0].remove();\n\t }\n\t this.progress = 0;\n\t };\n\t /**\n\t * Uploads a item from the queue\n\t * @param {FileItem|Number} value\n\t */\n\t\n\t\n\t FileUploader.prototype.uploadItem = function uploadItem(value) {\n\t var index = this.getIndexOfItem(value);\n\t var item = this.queue[index];\n\t var transport = this.isHTML5 ? '_xhrTransport' : '_iframeTransport';\n\t\n\t item._prepareToUploading();\n\t if (this.isUploading) return;\n\t\n\t this._onBeforeUploadItem(item);\n\t if (item.isCancel) return;\n\t\n\t item.isUploading = true;\n\t this.isUploading = true;\n\t this[transport](item);\n\t this._render();\n\t };\n\t /**\n\t * Cancels uploading of item from the queue\n\t * @param {FileItem|Number} value\n\t */\n\t\n\t\n\t FileUploader.prototype.cancelItem = function cancelItem(value) {\n\t var _this2 = this;\n\t\n\t var index = this.getIndexOfItem(value);\n\t var item = this.queue[index];\n\t var prop = this.isHTML5 ? '_xhr' : '_form';\n\t if (!item) return;\n\t item.isCancel = true;\n\t if (item.isUploading) {\n\t // It will call this._onCancelItem() & this._onCompleteItem() asynchronously\n\t item[prop].abort();\n\t } else {\n\t (function () {\n\t var dummy = [undefined, 0, {}];\n\t var onNextTick = function onNextTick() {\n\t _this2._onCancelItem.apply(_this2, [item].concat(dummy));\n\t _this2._onCompleteItem.apply(_this2, [item].concat(dummy));\n\t };\n\t $timeout(onNextTick); // Trigger callbacks asynchronously (setImmediate emulation)\n\t })();\n\t }\n\t };\n\t /**\n\t * Uploads all not uploaded items of queue\n\t */\n\t\n\t\n\t FileUploader.prototype.uploadAll = function uploadAll() {\n\t var items = this.getNotUploadedItems().filter(function (item) {\n\t return !item.isUploading;\n\t });\n\t if (!items.length) return;\n\t\n\t forEach(items, function (item) {\n\t return item._prepareToUploading();\n\t });\n\t items[0].upload();\n\t };\n\t /**\n\t * Cancels all uploads\n\t */\n\t\n\t\n\t FileUploader.prototype.cancelAll = function cancelAll() {\n\t var items = this.getNotUploadedItems();\n\t forEach(items, function (item) {\n\t return item.cancel();\n\t });\n\t };\n\t /**\n\t * Returns \"true\" if value an instance of File\n\t * @param {*} value\n\t * @returns {Boolean}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype.isFile = function isFile(value) {\n\t return this.constructor.isFile(value);\n\t };\n\t /**\n\t * Returns \"true\" if value an instance of FileLikeObject\n\t * @param {*} value\n\t * @returns {Boolean}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype.isFileLikeObject = function isFileLikeObject(value) {\n\t return this.constructor.isFileLikeObject(value);\n\t };\n\t /**\n\t * Returns \"true\" if value is array like object\n\t * @param {*} value\n\t * @returns {Boolean}\n\t */\n\t\n\t\n\t FileUploader.prototype.isArrayLikeObject = function isArrayLikeObject(value) {\n\t return this.constructor.isArrayLikeObject(value);\n\t };\n\t /**\n\t * Returns a index of item from the queue\n\t * @param {Item|Number} value\n\t * @returns {Number}\n\t */\n\t\n\t\n\t FileUploader.prototype.getIndexOfItem = function getIndexOfItem(value) {\n\t return isNumber(value) ? value : this.queue.indexOf(value);\n\t };\n\t /**\n\t * Returns not uploaded items\n\t * @returns {Array}\n\t */\n\t\n\t\n\t FileUploader.prototype.getNotUploadedItems = function getNotUploadedItems() {\n\t return this.queue.filter(function (item) {\n\t return !item.isUploaded;\n\t });\n\t };\n\t /**\n\t * Returns items ready for upload\n\t * @returns {Array}\n\t */\n\t\n\t\n\t FileUploader.prototype.getReadyItems = function getReadyItems() {\n\t return this.queue.filter(function (item) {\n\t return item.isReady && !item.isUploading;\n\t }).sort(function (item1, item2) {\n\t return item1.index - item2.index;\n\t });\n\t };\n\t /**\n\t * Destroys instance of FileUploader\n\t */\n\t\n\t\n\t FileUploader.prototype.destroy = function destroy() {\n\t var _this3 = this;\n\t\n\t forEach(this._directives, function (key) {\n\t forEach(_this3._directives[key], function (object) {\n\t object.destroy();\n\t });\n\t });\n\t };\n\t /**\n\t * Callback\n\t * @param {Array} fileItems\n\t */\n\t\n\t\n\t FileUploader.prototype.onAfterAddingAll = function onAfterAddingAll(fileItems) {};\n\t /**\n\t * Callback\n\t * @param {FileItem} fileItem\n\t */\n\t\n\t\n\t FileUploader.prototype.onAfterAddingFile = function onAfterAddingFile(fileItem) {};\n\t /**\n\t * Callback\n\t * @param {File|Object} item\n\t * @param {Object} filter\n\t * @param {Object} options\n\t */\n\t\n\t\n\t FileUploader.prototype.onWhenAddingFileFailed = function onWhenAddingFileFailed(item, filter, options) {};\n\t /**\n\t * Callback\n\t * @param {FileItem} fileItem\n\t */\n\t\n\t\n\t FileUploader.prototype.onBeforeUploadItem = function onBeforeUploadItem(fileItem) {};\n\t /**\n\t * Callback\n\t * @param {FileItem} fileItem\n\t * @param {Number} progress\n\t */\n\t\n\t\n\t FileUploader.prototype.onProgressItem = function onProgressItem(fileItem, progress) {};\n\t /**\n\t * Callback\n\t * @param {Number} progress\n\t */\n\t\n\t\n\t FileUploader.prototype.onProgressAll = function onProgressAll(progress) {};\n\t /**\n\t * Callback\n\t * @param {FileItem} item\n\t * @param {*} response\n\t * @param {Number} status\n\t * @param {Object} headers\n\t */\n\t\n\t\n\t FileUploader.prototype.onSuccessItem = function onSuccessItem(item, response, status, headers) {};\n\t /**\n\t * Callback\n\t * @param {FileItem} item\n\t * @param {*} response\n\t * @param {Number} status\n\t * @param {Object} headers\n\t */\n\t\n\t\n\t FileUploader.prototype.onErrorItem = function onErrorItem(item, response, status, headers) {};\n\t /**\n\t * Callback\n\t * @param {FileItem} item\n\t * @param {*} response\n\t * @param {Number} status\n\t * @param {Object} headers\n\t */\n\t\n\t\n\t FileUploader.prototype.onCancelItem = function onCancelItem(item, response, status, headers) {};\n\t /**\n\t * Callback\n\t * @param {FileItem} item\n\t * @param {*} response\n\t * @param {Number} status\n\t * @param {Object} headers\n\t */\n\t\n\t\n\t FileUploader.prototype.onCompleteItem = function onCompleteItem(item, response, status, headers) {};\n\t /**\n\t * Callback\n\t */\n\t\n\t\n\t FileUploader.prototype.onCompleteAll = function onCompleteAll() {};\n\t /**********************\n\t * PRIVATE\n\t **********************/\n\t /**\n\t * Returns the total progress\n\t * @param {Number} [value]\n\t * @returns {Number}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._getTotalProgress = function _getTotalProgress(value) {\n\t if (this.removeAfterUpload) return value || 0;\n\t\n\t var notUploaded = this.getNotUploadedItems().length;\n\t var uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length;\n\t var ratio = 100 / this.queue.length;\n\t var current = (value || 0) * ratio / 100;\n\t\n\t return Math.round(uploaded * ratio + current);\n\t };\n\t /**\n\t * Returns array of filters\n\t * @param {Array|String} filters\n\t * @returns {Array}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._getFilters = function _getFilters(filters) {\n\t if (!filters) return this.filters;\n\t if (isArray(filters)) return filters;\n\t var names = filters.match(/[^\\s,]+/g);\n\t return this.filters.filter(function (filter) {\n\t return names.indexOf(filter.name) !== -1;\n\t });\n\t };\n\t /**\n\t * Updates html\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._render = function _render() {\n\t if (!$rootScope.$$phase) $rootScope.$apply();\n\t };\n\t /**\n\t * Returns \"true\" if item is a file (not folder)\n\t * @param {File|FileLikeObject} item\n\t * @returns {Boolean}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._folderFilter = function _folderFilter(item) {\n\t return !!(item.size || item.type);\n\t };\n\t /**\n\t * Returns \"true\" if the limit has not been reached\n\t * @returns {Boolean}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._queueLimitFilter = function _queueLimitFilter() {\n\t return this.queue.length < this.queueLimit;\n\t };\n\t /**\n\t * Returns \"true\" if file pass all filters\n\t * @param {File|Object} file\n\t * @param {Array} filters\n\t * @param {Object} options\n\t * @returns {Boolean}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._isValidFile = function _isValidFile(file, filters, options) {\n\t var _this4 = this;\n\t\n\t this._failFilterIndex = -1;\n\t return !filters.length ? true : filters.every(function (filter) {\n\t _this4._failFilterIndex++;\n\t return filter.fn.call(_this4, file, options);\n\t });\n\t };\n\t /**\n\t * Checks whether upload successful\n\t * @param {Number} status\n\t * @returns {Boolean}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._isSuccessCode = function _isSuccessCode(status) {\n\t return status >= 200 && status < 300 || status === 304;\n\t };\n\t /**\n\t * Transforms the server response\n\t * @param {*} response\n\t * @param {Object} headers\n\t * @returns {*}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._transformResponse = function _transformResponse(response, headers) {\n\t var headersGetter = this._headersGetter(headers);\n\t forEach($http.defaults.transformResponse, function (transformFn) {\n\t response = transformFn(response, headersGetter);\n\t });\n\t return response;\n\t };\n\t /**\n\t * Parsed response headers\n\t * @param headers\n\t * @returns {Object}\n\t * @see https://github.com/angular/angular.js/blob/master/src/ng/http.js\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._parseHeaders = function _parseHeaders(headers) {\n\t var parsed = {},\n\t key,\n\t val,\n\t i;\n\t\n\t if (!headers) return parsed;\n\t\n\t forEach(headers.split('\\n'), function (line) {\n\t i = line.indexOf(':');\n\t key = line.slice(0, i).trim().toLowerCase();\n\t val = line.slice(i + 1).trim();\n\t\n\t if (key) {\n\t parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n\t }\n\t });\n\t\n\t return parsed;\n\t };\n\t /**\n\t * Returns function that returns headers\n\t * @param {Object} parsedHeaders\n\t * @returns {Function}\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._headersGetter = function _headersGetter(parsedHeaders) {\n\t return function (name) {\n\t if (name) {\n\t return parsedHeaders[name.toLowerCase()] || null;\n\t }\n\t return parsedHeaders;\n\t };\n\t };\n\t /**\n\t * The XMLHttpRequest transport\n\t * @param {FileItem} item\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._xhrTransport = function _xhrTransport(item) {\n\t var _this5 = this;\n\t\n\t var xhr = item._xhr = new XMLHttpRequest();\n\t var sendable;\n\t\n\t if (!item.disableMultipart) {\n\t sendable = new FormData();\n\t forEach(item.formData, function (obj) {\n\t forEach(obj, function (value, key) {\n\t sendable.append(key, value);\n\t });\n\t });\n\t\n\t sendable.append(item.alias, item._file, item.file.name);\n\t } else {\n\t sendable = item._file;\n\t }\n\t\n\t if (typeof item._file.size != 'number') {\n\t throw new TypeError('The file specified is no longer valid');\n\t }\n\t\n\t xhr.upload.onprogress = function (event) {\n\t var progress = Math.round(event.lengthComputable ? event.loaded * 100 / event.total : 0);\n\t _this5._onProgressItem(item, progress);\n\t };\n\t\n\t xhr.onload = function () {\n\t var headers = _this5._parseHeaders(xhr.getAllResponseHeaders());\n\t var response = _this5._transformResponse(xhr.response, headers);\n\t var gist = _this5._isSuccessCode(xhr.status) ? 'Success' : 'Error';\n\t var method = '_on' + gist + 'Item';\n\t _this5[method](item, response, xhr.status, headers);\n\t _this5._onCompleteItem(item, response, xhr.status, headers);\n\t };\n\t\n\t xhr.onerror = function () {\n\t var headers = _this5._parseHeaders(xhr.getAllResponseHeaders());\n\t var response = _this5._transformResponse(xhr.response, headers);\n\t _this5._onErrorItem(item, response, xhr.status, headers);\n\t _this5._onCompleteItem(item, response, xhr.status, headers);\n\t };\n\t\n\t xhr.onabort = function () {\n\t var headers = _this5._parseHeaders(xhr.getAllResponseHeaders());\n\t var response = _this5._transformResponse(xhr.response, headers);\n\t _this5._onCancelItem(item, response, xhr.status, headers);\n\t _this5._onCompleteItem(item, response, xhr.status, headers);\n\t };\n\t\n\t xhr.open(item.method, item.url, true);\n\t\n\t xhr.withCredentials = item.withCredentials;\n\t\n\t forEach(item.headers, function (value, name) {\n\t xhr.setRequestHeader(name, value);\n\t });\n\t\n\t xhr.send(sendable);\n\t };\n\t /**\n\t * The IFrame transport\n\t * @param {FileItem} item\n\t * @private\n\t */\n\t\n\t\n\t FileUploader.prototype._iframeTransport = function _iframeTransport(item) {\n\t var _this6 = this;\n\t\n\t var form = element('
');\n\t var iframe = element('