var dragEnter=dragOver=dragLeave=dragDrop=function(){};(function(C,E){var A=(function(F,K){var L={},G=function(P,Q){var N,M,O;if(typeof P==="string"){return J(P)}else{N=[];for(M=P.length,O=0;O1024){L=L/1024}return(N==="B"?L:L.toFixed(O||2))+N}}});D("mediator",["base"],function(L){var H=L.$,G=[].slice,J=/\s+/,F;function M(O,N,Q,P){return H.grep(O,function(R){return R&&(!N||R.e===N)&&(!Q||R.cb===Q||R.cb._cb===Q)&&(!P||R.ctx===P)})}function K(O,P,N){H.each((O||"").split(J),function(R,Q){N(Q,P)})}function I(Q,O){var S=false,R=-1,N=Q.length,P;while(++R1){if(H.isPlainObject(L)&&H.isPlainObject(J[K])){H.extend(J[K],L)}else{J[K]=L}}else{return K?J[K]:J}},getStats:function(){var J=this.request("get-stats");return{successNum:J.numOfSuccess,cancelNum:J.numOfCancel,invalidNum:J.numOfInvalid,uploadFailNum:J.numOfUploadFailed,queueNum:J.numOfQueue}},trigger:function(M){var L=[].slice.call(arguments,1),J=this.options,K="on"+M.substring(0,1).toUpperCase()+M.substring(1);if(I.trigger.apply(this,arguments)===false){return false}if(H.isFunction(J[K])&&J[K].apply(this,L)===false){return false}if(H.isFunction(this[K])&&this[K].apply(this,L)===false){return false}return true},request:G.noop,reset:function(){}});G.create=function(J){return new F(J)};G.Uploader=F;return F});D("runtime/runtime",["base","mediator"],function(G,J){var I=G.$,K={},F=function(M){for(var L in M){if(M.hasOwnProperty(L)){return L}}return null};function H(L){this.options=I.extend({container:document.body},L);this.uid=G.guid("rt_")}I.extend(H.prototype,{getContainer:function(){var L=this.options,N,M;if(this._container){return this._container}N=L.container||I(document.body);M=I(document.createElement("div"));M.attr("id","rt_"+this.uid);M.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"});N.append(M);N.addClass("webuploader-container");this._container=M;return M},init:G.noop,exec:G.noop,destroy:function(){if(this._container){this._container.parentNode.removeChild(this.__container)}this.off()}});H.orders="html5,flash";H.addRuntime=function(L,M){K[L]=M};H.hasRuntime=function(L){return !!(L?K[L]:F(K))};H.create=function(L,M){var N,O;M=M||H.orders;I.each(M.split(/\s*,\s*/g),function(){if(K[this]){N=this;return false}});N=N||F(K);if(!N){throw new Error("Runtime Error")}O=new K[N](L);return O};J.installTo(H.prototype);return H});D("runtime/client",["base","mediator","runtime/runtime"],function(G,I,H){var F=(function(){var K={};return{add:function(L){K[L.uid]=L},get:function(M){var L;if(M){return K[M]}for(L in K){return K[L]}return null},remove:function(L){delete K[L.uid]},has:function(){return !!this.get.apply(this,arguments)}}})();function J(K,M){var L=G.Deferred(),N;this.uid=G.guid("client_");this.runtimeReady=function(O){return L.done(O)};this.connectRuntime=function(O,P){if(N){return}L.done(P);if(typeof O==="string"&&F.get(O)){N=F.get(O)}else{if(!M&&F.has()){N=F.get()}}if(!N){N=H.create(O,O.runtimeOrder);F.add(N);N.promise=L.promise();N.once("ready",L.resolve);N.init();N.client=1;return N}N.promise.then(L.resolve);N.client++;return N};this.getRuntime=function(){return N};this.disconnectRuntime=function(){if(!N){return}N.client--;if(N.client<=0){F.remove(N);delete N.promise;N.destroy()}N=null};this.exec=function(){if(!N){return}var O=G.slice(arguments);K&&O.unshift(K);return N.exec.apply(this,O)};this.getRuid=function(){return N&&N.uid};this.destroy=(function(O){return function(){O&&O.apply(this,arguments);this.trigger("destroy");this.off();this.exec("destroy");this.disconnectRuntime()}})(this.destroy)}I.installTo(J.prototype);return J});D("lib/blob",["base","runtime/client"],function(F,H){function G(I,J){var K=this;K.source=J;K.ruid=I;H.call(K,"Blob");this.uid=J.uid||this.uid;this.type=J.type||"";this.size=J.size||0;if(I){K.connectRuntime(I)}}F.inherits(H,{constructor:G,slice:function(I,J){return this.exec("slice",I,J)},getSource:function(){return this.source}});return G});D("lib/file",["base","lib/blob"],function(G,J){var F=0,H=/\.([^.]+)$/;function I(L,M){var K;J.apply(this,arguments);this.name=M.name||("untitled"+F++);K=H.exec(M.name)?RegExp.$1.toLowerCase():"";if(!this.type&&~"jpg,jpeg,png,gif,bmp".indexOf(K)){this.type="image/"+K}this.ext=K;this.lastModifiedDate=M.lastModifiedDate||(new Date()).toLocaleString()}return G.inherits(J,I)});D("lib/filepicker",["base","runtime/client","lib/file"],function(G,I,F){var H=G.$;function J(K){K=this.options=H.extend({},J.options,K);K.container=H(K.id);if(!K.container.length){throw new Error("按钮指定错误")}K.label=K.label||K.container.text()||"选择文件";K.button=H(K.button||document.createElement("div"));K.button.text(K.label);K.container.html(K.button);I.call(this,"FilePicker",true)}J.options={button:null,container:null,label:null,multiple:true,accept:null};G.inherits(I,{constructor:J,init:function(){var M=this,K=M.options,L=K.button;L.addClass("webuploader-pick");M.on("all",function(N){var O;switch(N){case"mouseenter":L.addClass("webuploader-pick-hover");break;case"mouseleave":L.removeClass("webuploader-pick-hover");break;case"change":O=M.exec("getFiles");M.trigger("select",H.map(O,function(P){return new F(M.getRuid(),P)}));break}});M.connectRuntime(K,function(){M.refresh();M.exec("init",K)});H(C).on("resize",function(){M.refresh()})},refresh:function(){var N=this.getRuntime().getContainer(),O=this.options.button,M=O.outerWidth(),L=O.outerHeight(),K=O.offset();M&&N.css({width:M+"px",height:L+"px"}).offset(K)},destroy:function(){if(this.runtime){this.exec("destroy");this.disconnectRuntime()}}});return J});D("widgets/widget",["base","uploader"],function(L,J){var H=L.$,K=J.prototype._init,M={},G=[];function F(P){if(!P){return false}var O=P.length,N=H.type(P);if(P.nodeType===1&&O){return true}return N==="array"||N!=="function"&&N!=="string"&&(O===0||typeof O==="number"&&O>0&&(O-1) in P)}function I(N){this.owner=N;this.options=N.options}H.extend(I.prototype,{init:L.noop,invoke:function(P,N){var O=this.responseMap;if(!O||!(P in O)||!(O[P] in this)||!H.isFunction(this[O[P]])){return M}return this[O[P]].apply(this,N)},request:function(){return this.owner.request.apply(this.owner,arguments)}});H.extend(J.prototype,{_init:function(){var O=this,N=O._widgets=[];H.each(G,function(Q,P){N.push(new P(O))});return K.apply(O,arguments)},request:function(T,S,W){var N=0,P=this._widgets,V=P.length,O=[],U=[],Q,R;S=F(S)?S:[S];for(;N';O.html(P)},getFlash:function(){if(this._flash){return this._flash}this._flash=G("#"+this.uid).get(0);return this._flash}});M.register=function(N,O){O=K[N]=L.inherits(F,G.extend({flashExec:function(){var P=this.owner,Q=this.getRuntime();return Q.flashExec.apply(P,arguments)}},O));return O};if(I()>=11.3){J.addRuntime(H,M)}return M});D("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(G,F){var H=G.$;return F.register("FilePicker",{init:function(I){var J=H.extend({},I);delete J.button;delete J.container;this.flashExec("FilePicker","init",J)},destroy:function(){}})});D("runtime/flash/image",["runtime/flash/runtime"],function(F){return F.register("Image",{loadFromBlob:function(H){var G=this.owner;G.info()&&this.flashExec("Image","info",G.info());G.meta()&&this.flashExec("Image","meta",G.meta());this.flashExec("Image","loadFromBlob",H.uid)}})});D("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(G,F,H){return F.register("Transport",{init:function(){this._status=0;this._response=null;this._responseJson=null},send:function(){var I=this.owner,L=this.options,N=this._initAjax(),K=I._blob,M=L.server,J;N.connectRuntime(K.ruid);if(L.sendAsBinary){M+=(/\?/.test(M)?"&":"?")+$.param(I._formData);J=K.uid}else{$.each(I._formData,function(P,O){N.exec("append",P,O)});N.exec("appendBlob",L.fileVar,K.uid,L.filename||I._formData.name||"")}this._setRequestHeader(N,L.headers);N.exec("send",{method:L.method,url:M},J)},getStatus:function(){return this._status},getResponse:function(){return this._response},getResponseAsJson:function(){return this._responseJson},abort:function(){var I=this._xhr;if(I){I.exec("abort");I.destroy();this._xhr=I=null}},destroy:function(){this.abort()},_initAjax:function(){var J=this,I=new H("XMLHttpRequest");I.on("uploadprogress progress",function(K){return J.trigger("progress",K.loaded/K.total)});I.on("load",function(){var K=I.exec("getStatus");I.off();J._xhr=null;if(K===200){J._response=I.exec("getResponse");J._responseJson=I.exec("getResponseAsJson");return J.trigger("load")}J._status=K;I.destroy();I=null;return J.trigger("error","http")});I.on("error",function(){I.off();J._xhr=null;J.trigger("error","http")});J._xhr=I;return I},_setRequestHeader:function(J,I){$.each(I,function(K,L){J.exec("setRequestHeader",K,L)})}})});D("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(G,I,J){var K="html5",H={};function F(){var L={},N=this,M=this.destory;I.apply(N,arguments);N.type=K;N.exec=function(T,O){var S=this,Q=S.uid,P=G.slice(arguments,2),R;if(H[T]){R=L[Q]=L[Q]||new H[T](S,N);if(R[O]){return R[O].apply(R,P)}}};N.destory=function(){return M&&M.apply(this,arguments)}}G.inherits(I,{constructor:F,init:function(){var L=this;setTimeout(function(){L.trigger("ready")},1)}});F.register=function(L,N){var M=H[L]=G.inherits(J,N);return M};if(C.Blob&&C.FileReader&&C.DataView){I.addRuntime(K,F)}return F});D("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(F,G){return F.register("Blob",{slice:function(H,I){var K=this.owner.source,J=K.slice||K.webkitSlice||K.mozSlice;K=J.call(K,H,I);return new G(this.getRuid(),K)}})});D("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(H,G,F){var I=H.$;return G.register("DragAndDrop",{init:function(){var J=this.elem=this.options.container;this.dragEnterHandler=H.bindFn(this._dragEnterHandler,this);this.dragOverHandler=H.bindFn(this._dragOverHandler,this);this.dragLeaveHandler=H.bindFn(this._dragLeaveHandler,this);this.dropHandler=H.bindFn(this._dropHandler,this);J.on("dragenter",this.dragEnterHandler);J.on("dragover",this.dragOverHandler);J.on("dragleave",this.dragLeaveHandler);J.on("drop",this.dropHandler);if(this.options.disableGlobalDnd){I(document).on("dragover",this.dragOverHandler);I(document).on("drop",this.dropHandler)}},_dragEnterHandler:function(J){dragEnter(J);this.elem.addClass("webuploader-dnd-over");J=J.originalEvent||J;J.dataTransfer.dropEffect="copy";return false},_dragOverHandler:function(J){dragOver(J);if(!I.contains(this.elem.parent().get(0),J.target)){return false}this._dragEnterHandler.call(this,J);return false},_dragLeaveHandler:function(){dragLeave();this.elem.removeClass("webuploader-dnd-over");return false},_dropHandler:function(Q){dragDrop(Q);var N=[],M=[],S=this,K=S.getRuid(),L,P,O,R,J,T,U;if(!I.contains(S.elem.parent().get(0),Q.target)){return false}Q=Q.originalEvent||Q;O=Q.dataTransfer;L=O.items;P=O.files;if(P.length==0){return}U=!!(L&&L[0].webkitGetAsEntry);for(J=0,T=P.length;J0){M=[];for(I=0,Q=R.accept.length;I=65504&&L<=65519||L===65534){P=O.getUint16(Q+2)+2;if(Q+P>O.byteLength){break}G=F.parsers[L];if(!K&&G){for(J=0;J6){if(I.slice){H.imageHead=I.slice(2,M)}else{H.imageHead=new Uint8Array(I).subarray(2,M)}}}return H},updateImageHead:function(H,G){var L=this._parse(H,true),J,I,K;K=2;if(L.imageHead){K=2+L.imageHead.byteLength}if(H.slice){I=H.slice(K)}else{I=new Uint8Array(H).subarray(K)}J=new Uint8Array(G.byteLength+2+I.byteLength);J[0]=255;J[1]=216;J.set(new Uint8Array(G),2);J.set(new Uint8Array(I),G.byteLength+2);return J.buffer}};return F});D("runtime/html5/image",["runtime/html5/runtime","runtime/html5/util","runtime/html5/imagemeta"],function(G,I,F){var H="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D";return G.register("Image",{modified:false,init:function(){var K=this,J=new Image();J.onload=function(){K._info={type:K.type,width:this.width,height:this.height};if(!K._metas&&~"image/jpegimage/jpg".indexOf(K.type)){F.parse(K._blob,function(M,L){K._metas=L;K.owner.trigger("load")})}else{K.owner.trigger("load")}};J.onerror=function(){K.owner.trigger("error")};K._img=J},loadFromBlob:function(K){var L=this,J=L._img;L._blob=K;L.type=K.type;J.src=I.createObjectURL(K.getSource());L.owner.once("load",function(){I.revokeObjectURL(J.src)})},resize:function(K,J){var L=this._canvas||(this._canvas=document.createElement("canvas"));this._resize(this._img,L,K,J);this._blob=null;this.modified=true;this.owner.trigger("complete")},getAsBlob:function(K){var M=this._blob,J=this.options,L;K=K||this.type;if(this.modified||this.type!==K){L=this._canvas;if(K==="image/jpeg"){M=L.toDataURL("image/jpeg",J.quality/100);if(J.preserveHeaders&&this._metas&&this._metas.imageHead){M=I.dataURL2ArrayBuffer(M);M=F.updateImageHead(M,this._metas.imageHead);M=I.arrayBufferToBlob(M,K);return M}}else{M=L.toDataURL(K)}M=I.dataURL2Blob(M)}return M},getAsDataUrl:function(K){var J=this.options;K=K||this.type;if(K==="image/jpeg"){return this._canvas.toDataURL(K,J.quality/100)}else{return this._canvas.toDataURL(K)}},getOrientation:function(){return this._metas&&this._metas.exif&&this._metas.exif.get("Orientation")||1},info:function(J){if(J){this._info=J;return this}return this._info},meta:function(J){if(J){this._meta=J;return this}return this._meta},destroy:function(){var J=this._canvas;this._img.onload=null;if(J){J.getContext("2d").clearRect(0,0,J.width,J.height);J.width=J.height=0;this._canvas=null}this._img.src=H;this._img=this._blob=null},_resize:function(K,T,J,O){var P=this.options,S=K.width,V=K.height,Q=this.getOrientation(),L,U,R,M,N;if(~[5,6,7,8].indexOf(Q)){J^=O;O^=J;J^=O}L=Math[P.crop?"max":"min"](J/S,O/V);P.allowMagnify||(L=Math.min(1,L));U=S*L;R=V*L;if(P.crop){T.width=J;T.height=O}else{T.width=U;T.height=R}M=(T.width-U)/2;N=(T.height-R)/2;P.preserveHeaders||this._rotate2Orientaion(T,Q);this._renderImageToCanvas(T,K,M,N,U,R)},_rotate2Orientaion:function(N,M){var L=N.width,J=N.height,K=N.getContext("2d");switch(M){case 5:case 6:case 7:case 8:N.width=J;N.height=L;break}switch(M){case 2:K.translate(L,0);K.scale(-1,1);break;case 3:K.translate(L,J);K.rotate(Math.PI);break;case 4:K.translate(0,J);K.scale(1,-1);break;case 5:K.rotate(0.5*Math.PI);K.scale(1,-1);break;case 6:K.rotate(0.5*Math.PI);K.translate(0,-J);break;case 7:K.rotate(0.5*Math.PI);K.translate(L,-J);K.scale(-1,1);break;case 8:K.rotate(-0.5*Math.PI);K.translate(-L,0);break}},_renderImageToCanvas:function(O,L,J,K,M,N){O.getContext("2d").drawImage(L,J,K,M,N)}})});D("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(G,F){var H={};H.ExifMap=function(){return this};H.ExifMap.prototype.map={"Orientation":274};H.ExifMap.prototype.get=function(I){return this[I]||this[this.map[I]]};H.exifTagTypes={1:{getValue:function(J,I){return J.getUint8(I)},size:1},2:{getValue:function(J,I){return String.fromCharCode(J.getUint8(I))},size:1,ascii:true},3:{getValue:function(K,I,J){return K.getUint16(I,J)},size:2},4:{getValue:function(K,I,J){return K.getUint32(I,J)},size:4},5:{getValue:function(K,I,J){return K.getUint32(I,J)/K.getUint32(I+4,J)},size:8},9:{getValue:function(K,I,J){return K.getInt32(I,J)},size:4},10:{getValue:function(K,I,J){return K.getInt32(I,J)/K.getInt32(I+4,J)},size:8}};H.exifTagTypes[7]=H.exifTagTypes[1];H.getExifValue=function(J,U,I,K,S,L){var M=H.exifTagTypes[K],T,R,Q,O,P,N;if(!M){G.log("Invalid Exif data: Invalid tag type.");return}T=M.size*S;R=T>4?U+J.getUint32(I+8,L):(I+8);if(R+T>J.byteLength){G.log("Invalid Exif data: Invalid data offset.");return}if(S===1){return M.getValue(J,R,L)}Q=[];for(O=0;OK.byteLength){G.log("Invalid Exif data: Invalid directory offset.");return}O=K.getUint16(N,L);J=N+2+12*O;if(J+4>K.byteLength){G.log("Invalid Exif data: Invalid directory size.");return}for(I=0;IN.byteLength){G.log("Invalid Exif data: Invalid segment size.");return}if(N.getUint16(M+8)!==0){G.log("Invalid Exif data: Missing byte alignment offset.");return}switch(N.getUint16(I)){case 18761:K=true;break;case 19789:K=false;break;default:G.log("Invalid Exif data: Invalid byte alignment marker.");return}if(N.getUint16(I+2,K)!==42){G.log("Invalid Exif data: Missing TIFF marker.");return}L=N.getUint32(I+4,K);O.exif=new H.ExifMap();L=H.parseExifTags(N,I,I+L,K,O)};F.parsers[65505].push(H.parseExifData);return H});D("runtime/html5/transport",["base","runtime/html5/runtime"],function(G,F){var I=G.noop,H=G.$;return F.register("Transport",{init:function(){this._status=0;this._response=null},send:function(){var J=this.owner,M=this.options,O=this._initAjax(),L=J._blob,N=M.server,K,P;if(M.sendAsBinary){N+=(/\?/.test(N)?"&":"?")+H.param(J._formData);P=L.getSource()}else{K=new FormData();H.each(J._formData,function(R,Q){K.append(R,Q)});K.append(M.fileVar,L.getSource(),M.filename||J._formData.name||"")}if(M.withCredentials&&"withCredentials" in O){O.open(M.method,N,true);O.withCredentials=true}else{O.open(M.method,N)}this._setRequestHeader(O,M.headers);P&&O.overrideMimeType("application/octet-stream");O.send(P||K)},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getStatus:function(){return this._status},abort:function(){var J=this._xhr;if(J){J.upload.onprogress=I;J.onreadystatechange=I;J.abort();this._xhr=J=null}},destroy:function(){this.abort()},_initAjax:function(){var L=this,K=new XMLHttpRequest(),J=this.options;if(J.withCredentials&&!("withCredentials" in K)&&typeof XDomainRequest!=="undefined"){K=new XDomainRequest()}K.upload.onprogress=function(M){var N=0;if(M.lengthComputable){N=M.loaded/M.total}return L.trigger("progress",N)};K.onreadystatechange=function(){if(K.readyState!==4){return}K.upload.onprogress=I;K.onreadystatechange=I;L._xhr=null;if(K.status===200){L._response=K.responseText;return L.trigger("load")}L._status=K.status;K=null;return L.trigger("error",L._status?"http":"abort")};L._xhr=K;return K},_setRequestHeader:function(K,J){H.each(J,function(L,M){K.setRequestHeader(L,M)})},_parseJson:function(K){var J;try{J=JSON.parse(K)}catch(L){J={}}return J}})});D("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(F,G,H){G.options.dnd="";return G.register({init:function(I){if(!I.dnd||this.request("predict-runtime-type")!=="html5"){return}var M=this,L=F.Deferred(),K=$.extend({},{container:I.dnd,accept:I.accept}),J;J=new H(K);J.once("ready",L.resolve);J.on("drop",function(N){M.request("add-file",[N])});J.init();return L.promise()}})});D("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(F,H,G){return H.register({init:function(I){if(!I.paste||this.request("predict-runtime-type")!=="html5"){return}var M=this,K=F.Deferred(),J=$.extend({},{container:I.paste,accept:I.accept}),L;L=new G(J);L.once("ready",K.resolve);L.on("paste",function(N){M.owner.request("add-file",[N])});L.init();return K.promise()}})});D("widgets/image",["base","uploader","lib/image","widgets/widget"],function(F,H,I){var G=F.$,J;J=(function(N){var L=0,M=[],K=function(){var O;while(M.length&&L1){H.each(Q.blocks,function(Z,Y){W+=(Y.percentage||0)*(Y.end-Y.start)});V=W/Q.size}P.trigger("uploadProgress",Q,V||0)});S.on("error",function(V){N.retried=N.retried||0;if(N.chunks>1&&~"http,abort".indexOf(V)&&N.retried1&&H.extend(O,{chunks:N.chunks,chunk:N.chunk});P.trigger("uploadBeforeSend",N,O,T);S.appendBlob(U.fileVal,N.blob,Q.name);S.append(O);S.setRequestHeader(T);S.send()},_finishFile:function(Q,P,O){var N=this.owner;return N.request("after-send-file",arguments,function(){Q.setStatus(G.COMPLETE);N.trigger("uploadSuccess",Q,P,O)}).fail(function(R){if(Q.getStatus()===G.PROGRESS){Q.setStatus(G.ERROR,R)}N.trigger("uploadError",Q,R)}).always(function(){N.trigger("uploadComplete",Q)})}})});D("widgets/validator",["base","uploader","file","widgets/widget"],function(G,I,J){var H=G.$,K={},F;F={addValidator:function(M,L){K[M]=L},removeValidator:function(L){delete K[L]}};I.register({init:function(){var L=this;H.each(K,function(){this.call(L.owner)})}});F.addValidator("fileNumLimit",function(){var N=this,L=N.options,P=0,O=L.fileNumLimit>>0,M=true;if(!O){return}N.on("beforeFileQueued",function(){if(P>=O&&M){M=false;this.trigger("error","Q_EXCEED_NUM_LIMIT",O);setTimeout(function(){M=true},1)}return P>=O?false:true});N.on("fileQueued",function(){P++});N.on("fileDequeued",function(){P--})});F.addValidator("fileSizeLimit",function(){var N=this,L=N.options,P=0,O=L.fileSizeLimit>>0,M=true;if(!O){return}N.on("beforeFileQueued",function(R){var Q=P+R.size>O;if(Q&&M){M=false;this.trigger("error","Q_EXCEED_SIZE_LIMIT",O);setTimeout(function(){M=true},1)}return Q?false:true});N.on("fileQueued",function(Q){P+=Q.size});N.on("fileDequeued",function(Q){P-=Q.size})});F.addValidator("fileSingleSizeLimit",function(){var M=this,L=M.options,N=L.fileSingleSizeLimit;if(!N){return}M.on("fileQueued",function(O){if(O.size>N){O.setStatus(J.Status.INVALID,"exceed_size")}})});F.addValidator("duplicate",function(){var N=this,L=N.options,O={};if(L.duplicate){return}function M(R){var Q=0,S=0,P=R.length,T;for(;S