(function(a){if(typeof define==="function"&&define.amd){define(["jquery","load-image","./jquery.fileupload-process"],a);}else{if(typeof exports==="object"){a(require("jquery"),require("blueimp-load-image/js/load-image"),require("./jquery.fileupload-process"));}else{a(window.jQuery,window.loadImage);}}}(function(a,b){a.blueimp.fileupload.prototype.options.processQueue.unshift({action:"loadVideo",prefix:true,fileTypes:"@",maxFileSize:"@",disabled:"@disableVideoPreview"},{action:"setVideo",name:"@videoPreviewName",disabled:"@disableVideoPreview"});a.widget("blueimp.fileupload",a.blueimp.fileupload,{options:{loadVideoFileTypes:/^video\/.*$/},_videoElement:document.createElement("video"),processActions:{loadVideo:function(g,d){if(d.disabled){return g;}var e=g.files[g.index],c,f;if(this._videoElement.canPlayType&&this._videoElement.canPlayType(e.type)&&(a.type(d.maxFileSize)!=="number"||e.size<=d.maxFileSize)&&(!d.fileTypes||d.fileTypes.test(e.type))){c=b.createObjectURL(e);if(c){f=this._videoElement.cloneNode(false);f.src=c;f.controls=true;g.video=f;return g;}}return g;},setVideo:function(d,c){if(d.video&&!c.disabled){d.files[d.index][c.name||"preview"]=d.video;}return d;}}});}));