(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-file-agent"]=t():e["vue-file-agent"]=t()})("undefined"!==typeof self?self:this,function(){return function(e){var t={};function i(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(r,a,function(t){return e[t]}.bind(null,a));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="fb15")}({e8b6:function(e,t,i){},f6fd:function(e,t){(function(e){var t="currentScript",i=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in i)if(i[e].src==t||"interactive"==i[e].readyState)return i[e];return null}}})})(document)},fb15:function(e,t,i){"use strict";var r;(i.r(t),"undefined"!==typeof window)&&(i("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(i.p=r[1]));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{viewBox:e.viewBoxComputed}},[e._l(e.icon.paths,function(t){return[t?i("path",{attrs:{d:t}}):e._e()]})],2)},s=[],l={audio:["aif","cda","mid","midi","mpa","wma","wpl"],"audio-playable":["mp3","ogg","wav"],archive:["7z","arj","deb","pkg","rar","rpm","tar.gz","z","zip"],disc:["dmg","iso","toast","vcd"],database:["csv","dat","db","dbf","log","mdb","sav","sql","tar"],executable:["apk","bat","bin","cgi","pl","com","exe","gadget","jar","py","wsf","ipa"],font:["fnt","fon","otf","ttf"],image:["ai","bmp","gif","ico","jpeg","jpg","png","ps","psd","svg","tif","tiff"],markup:["asp","aspx","cer","cfm","cgi","pl","css","scss","htm","html","jsp","part","php","py","rss","xml","xhtml"],presentation:["key","odp","pps","ppt","pptx"],script:["c","class","cpp","cs","h","java","js","json","sh","swift","vb"],sheet:["ods","xlr","xls","xlsx"],system:["bak","cab","cfg","cpl","cur","dll","dmp","drv","icns","ini","lnk","msi","sys","tmp"],video:["3g2","3gp","avi","flv","h264","mkv","mpg","mpeg","rm","swf","vob","wmv"],"video-playable":["mp4","webm","mov"],vue:["vue"],doc:["doc","docx","odt","rtf","tex","wks","wps","wpd"],text:["txt"],ebook:["epub"],pdf:["pdf"],folder:["folder"],play:["play"]},o=function(e,t,i){e=Array.isArray(e)?e:[e],this.paths=e,this.color=t,this.viewBox=i},n=["M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm-4 29V15l12 9-12 9z"],h={folder:new o(["M96.5 93.7h-93c-2 0-3.5-1.5-3.5-3.5V35.4h100v54.8c0 2-1.5 3.5-3.5 3.5z","M44.9 20V9.7c0-2-1.5-3.5-3.5-3.5h-38C1.5 6.3 0 7.8 0 9.7v25.7h100V23.5c0-2-1.5-3.5-3.5-3.5H44.9z"],"#efce4a"),audio:new o(["M32.5 37.5h-9v25h9L53.6 77V23L32.5 37.5M71.9 50c0 6.8-3.7 12.7-9.1 15.8l2.8 4.9c7.1-4.1 11.9-11.8 11.9-20.7 0-8.8-4.8-16.6-11.9-20.7l-2.8 4.9c5.4 3.1 9.1 9 9.1 15.8z","M62.1 50c0 3.2-1.7 5.9-4.3 7.4l2.7 4.7c4.2-2.4 7-6.9 7-12.1 0-5.2-2.8-9.7-7-12.1l-2.7 4.7c2.6 1.5 4.3 4.2 4.3 7.4z"],"#039"),video:new o(["M21 26.4v47.1h58V26.4H21zm10.9 43.5h-7.2v-7.2h7.2v7.2zm0-10.8h-7.2v-7.2h7.2v7.2zm0-10.9h-7.2V41h7.2v7.2zm0-10.9h-7.2v-7.2h7.2v7.2zm10.9 25.4V37.3L60.9 50 42.8 62.7zm32.6 7.2h-7.2v-7.2h7.2v7.2zm0-10.8h-7.2v-7.2h7.2v7.2zm0-10.9h-7.2V41h7.2v7.2zm0-10.9h-7.2v-7.2h7.2v7.2z"],"#ef6f2e"),"audio-playable":new o(n,"#039","0 0 48 48"),"video-playable":new o(n,"#ef6f2e","0 0 48 48"),archive:new o(["M72.4 38.5h-7.9v-7.9l7.9 7.9zm-21.3-7.9v28.8h21.4v-19h-9.9v-9.9H51.1zm3.3-7.6H30.8v5.6h9.3l-5.9 4.5v4.8l8.6-6.6v-2.7h30.1v-2.3L54.4 23zM42.9 35.1l-8.6 6.6v4.8l8.6-6.6v-4.8zm-8.7 20l8.6-6.6v-4.8l-8.6 6.6v4.8zm8.7 2v-4.8l-8.6 6.6v2.6h-3.4v5.6h5.3v3.8H33c-.6-1-1.6-1.6-2.8-1.6-1.8 0-3.2 1.4-3.2 3.2s1.4 3.2 3.2 3.2c1.2 0 2.2-.6 2.8-1.6h3.1V77h4.8v-2.9H44c.6 1 1.6 1.6 2.8 1.6 1.8 0 3.2-1.4 3.2-3.2s-1.4-3.2-3.2-3.2c-1.2 0-2.2.6-2.8 1.6h-3.1v-3.8h13.5l18.5-3.3v-2.3H37.1l5.8-4.4z"],"#d8a13f"),system:new o(["M73.6 54.8c-2.1-.7-3.4-2.6-3.4-4.8s1.4-4.1 3.4-4.8c.6-.2 1-.9.8-1.5-.6-2.3-1.5-4.4-2.7-6.5-.3-.6-1.1-.8-1.7-.5-.7.4-1.6.6-2.4.6-2.8 0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l-1.1 1.6c-.3.4-.9.7-1.4.5l-16.5-4.6c-.5-.2-.7-.6-.4-1zM42.7 44l1.1-1.6c.3-.4.9-.7 1.4-.5l16.5 4.6c.5.1.7.6.4 1L60.9 49c-.3.4-.9.7-1.4.5L43.1 45c-.5-.1-.7-.6-.4-1z"],"#963"),markup:new o(["M21.5 48.3l16.2-14v7.1l-11 9.2v.1l11 9.2V67L21.5 53v-4.7zm30.6-17.6h4.3L48 71.3h-4.2l8.3-40.6zM62.3 60l11-9.2v-.1l-11-9.2v-7.1l16.2 14v4.9l-16.2 14V60z"]),script:new o(["M42.3 44.2h15.4V48H42.3v-3.8zm0 7.7h15.4v3.8H42.3v-3.8zm0 7.7h15.4v3.8H42.3v-3.8zM69.2 25H38.5c-4.2 0-7.7 3.4-7.7 7.7v34.6h-7.7c0 4.2 3.4 7.7 7.7 7.7h30.8c4.2 0 7.7-3.4 7.7-7.7V36.5H77v-3.8c-.1-4.3-3.5-7.7-7.8-7.7zm-3.8 41.6c0 2.5-2 4.5-4.5 4.5H32.7c1.9-1.3 1.9-3.8 1.9-3.8V32.7c0-2.1 1.7-3.8 3.8-3.8s3.8 1.7 3.8 3.8v3.8h23.1v30.1zM46.2 32.7v-3.8h23.1c3.5 0 3.8 2.2 3.8 3.8H46.2z"]),disc:new o(["M46.9 50c0 .8.3 1.6.9 2.2 1.2 1.2 3.2 1.2 4.4 0 .6-.6.9-1.4.9-2.2 0-.8-.3-1.6-.9-2.2-.6-.6-1.4-.9-2.2-.9-.8 0-1.6.3-2.2.9-.6.6-.9 1.4-.9 2.2z","M32.3 32.3c-9.8 9.8-9.8 25.6 0 35.4 9.8 9.8 25.6 9.8 35.4 0 9.8-9.8 9.8-25.6 0-35.4-9.8-9.7-25.6-9.7-35.4 0zm37 28.2c-.9 1.7-2.1 3.2-3.5 4.6-1.4 1.4-3 2.6-4.6 3.5l-5.8-11.1s.5-.2 1.6-1.2c1.1-1.1 1.3-1.6 1.3-1.6l11 5.8zM54.4 45.6c1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1z"],"#c11e07"),sheet:new o(["M62.1 30.9h14.1v9.4H62.1zm0 14.5h14.1v9.4H62.1zm0 14.3h14.1v9.4H62.1zm-19.2 0H57v9.4H42.9zm-19 0H38v9.4H23.9zm19.2-14.2h14.1v9.4H43.1zm-19.2 0H38v9.4H23.9zm19.2-14.6h14.1v9.4H43.1zm-19.2 0H38v9.4H23.9z"],"#30723f"),presentation:new o(["M 73.319289,26.32707 H 26.61477 c -2.335226,0 -4.258353,1.917194 -4.258353,4.245215 v 29.853446 c 0,2.328021 1.923127,4.245215 4.258353,4.245215 h 19.506006 l -1.923128,7.257947 h -2.197859 c -0.961564,0 -1.648395,0.684712 -1.648395,1.643309 0,0.958597 0.686831,1.643309 1.648395,1.643309 h 15.797117 c 0.961563,0 1.648394,-0.684712 1.648394,-1.643309 0,-0.958597 -0.686831,-1.643309 -1.648394,-1.643309 H 55.46168 l -1.923128,-7.39489 h 19.780737 c 2.335226,0 4.258353,-1.917193 4.258353,-4.245214 V 30.572285 c 0,-2.328021 -1.923127,-4.245215 -4.258353,-4.245215 z m 0.412099,34.372546 H 26.202672 V 30.2984 h 47.39135 z","m 38.428266,48.511741 h 3.846255 v 7.668775 h -3.846255 z m 6.456214,-2.464963 h 3.846254 V 56.180516 H 44.88448 Z m 6.318846,-2.601906 h 3.846255 v 12.735644 h -3.846255 z m 6.318847,-2.464964 h 3.846255 v 15.200608 h -3.846255 z m -0.274732,-5.614639 -6.730946,3.697445 -4.945184,-1.643308 -8.379341,4.519099 1.236296,1.369424 7.417777,-3.834387 4.945185,1.643309 7.692509,-4.245215 1.236296,1.369424 2.88469,-4.792984 -6.593578,0.410827 z"],"#c24f32"),font:new o(["M40.4 56.2H28.7l-1.4 3.1c-.5 1-.7 1.9-.7 2.6 0 .9.4 1.6 1.1 2 .4.3 1.5.4 3.2.6v.9H20v-.9c1.2-.2 2.2-.6 2.9-1.4.8-.8 1.7-2.4 2.8-4.8l11.8-25.6h.5l12 26.2c1.1 2.5 2.1 4.1 2.8 4.7.6.5 1.3.8 2.3.9v.9h-16v-.9h.7c1.3 0 2.2-.2 2.7-.5.4-.3.5-.6.5-1.1 0-.3 0-.6-.1-.9 0-.1-.3-.7-.7-1.8l-1.8-4zm-.8-1.8l-4.9-11-5.1 11h10z","M80 44.2l-4.7 15.7-.5 1.9c0 .2-.1.4-.1.5 0 .2.1.4.2.5.1.2.3.2.4.2.3 0 .8-.3 1.4-.8.2-.2.8-.9 1.8-2.2l.9.4c-1.2 2-2.4 3.5-3.7 4.5-1.3.9-2.7 1.4-4.2 1.4-.9 0-1.6-.2-2.1-.7-.5-.5-.7-1-.7-1.8 0-.6.3-1.8.8-3.4l.6-1.9c-1.9 3.1-3.7 5.4-5.4 6.7-1 .8-2.1 1.1-3.2 1.1-1.5 0-2.6-.6-3.2-1.8-.7-1.2-1-2.5-1-4 0-2.2.7-4.8 2.1-7.6 1.4-2.9 3.2-5.2 5.5-6.9 1.9-1.4 3.6-2.2 5.3-2.2.9 0 1.6.3 2.2.8.6.5 1 1.4 1.2 2.8l.9-2.9 5.5-.3zm-7.8 4.5c0-1.3-.2-2.2-.6-2.8-.3-.4-.7-.6-1.2-.6s-1 .2-1.6.7c-1.1 1-2.3 3-3.5 5.9-1.3 3-1.9 5.6-1.9 7.7 0 .8.1 1.4.4 1.8.3.4.6.6.9.6.7 0 1.5-.4 2.2-1.2 1.1-1.2 2-2.6 2.9-4.3 1.6-2.9 2.4-5.5 2.4-7.8z"],"#7291a1"),vue:new o(["M 66.425365,28.281905 H 56.751974 L 49.707631,39.427061 43.669624,28.281905 H 21.530262 L 49.707631,76.54823 77.885006,28.281905 Z m -37.888497,4.025337 h 6.767604 L 49.707631,57.239179 64.098226,32.307242 h 6.767597 L 49.707631,68.560446 Z"],"#41B883"),other:new o(["M71 36.3L57.8 23.1c-.4-.4-.9-.6-1.4-.6h-26c-1.1 0-2 .9-2 2v51.1c0 1.1.9 2 2 2h39.3c1.1 0 2-.9 2-2V37.7c-.1-.5-.3-1-.7-1.4zm-3.9 2.3H55.5V27l11.6 11.6zm.1 34.5H32.8V26.9h18.5v13.3c0 1.4 1.2 2.6 2.6 2.6h13.3v30.3z"])};for(var d in h)h[d].category=d;var c={};for(var u in l)for(var p in l[u]){var f=l[u][p];c[f]=u}function v(e){e=e.toLowerCase();var t=c[e],i=h[t]||h.other;return i}var m={props:["ext","viewBox"],computed:{viewBoxComputed(){return!this.viewBox&&this.icon&&this.icon.viewBox?this.icon.viewBox:this.viewBox?this.viewBox:"0 0 100 100"},icon(){var e=v(this.ext);return e}}},g=m;function w(e,t,i,r,a,s,l,o){var n,h="function"===typeof e?e.options:e;if(t&&(h.render=t,h.staticRenderFns=i,h._compiled=!0),r&&(h.functional=!0),s&&(h._scopeId="data-v-"+s),l?(n=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(l)},h._ssrRegister=n):a&&(n=o?function(){a.call(this,this.$root.$options.shadowRoot)}:a),n)if(h.functional){h._injectStyles=n;var d=h.render;h.render=function(e,t){return n.call(t),d(e,t)}}else{var c=h.beforeCreate;h.beforeCreate=c?[].concat(c,n):[n]}return{exports:e,options:h}}var z=w(g,a,s,!1,null,null,null),x=z.exports,b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.fileData.error?i("div",{staticClass:"file-error-wrapper"},[e.fileData.error?i("div",{staticClass:"file-error-message file-error-message-client"},[e._v("\n      "+e._s(e.fileData.getErrorMessage(e.errorText))+"\n    ")]):e._e()]):e._e(),e.fileData.isPlayableAudio()||e.fileData.isPlayableVideo()?i("div",{ref:"wrapper",staticClass:"file-av-wrapper"},[i("div",{staticClass:"file-av-action",on:{click:function(t){return e.playAv(e.fileData)}}},[i("span",{staticClass:"file-av-stop"},[i("svg",{attrs:{width:"24",height:"24",viewBox:"0 0 24 24"}},[i("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}),i("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])]),i("span",{staticClass:"file-av-play"},[i("svg",{attrs:{width:"48",height:"48",viewBox:"0 0 48 48"}},[i("path",{attrs:{d:"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm-4 29V15l12 9-12 9z"}})])])])]):e._e(),i("span",{staticClass:"file-preview",class:{"image-preview":e.fileData.isImage(),"other-preview":!e.fileData.isImage(),"dark-content":e.fileData.isImage()&&e.fileData.isDarkColor()},style:{"background-color":e.fileData.color(),"background-imagex":"url("+e.fileData.src()+")",widthx:e.fileData.width+"px",heightx:e.fileData.height+"px"}},[i("span",{staticClass:"thumbnail",staticStyle:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",overflow:"hidden"}},[e.fileData.isImage()||e.fileData.isPlayableVideo()?i("img",{staticClass:"file-preview-img",attrs:{src:e.fileData.src()}}):e._e()]),i("span",{staticClass:"file-ext"},[e._v(e._s(e.fileData.ext()))]),i("span",{staticClass:"file-size"},[e._v(e._s(e.fileData.size()))]),e.deletable?i("span",{staticClass:"file-delete",on:{click:function(t){return e.removeFileData(e.fileData)}}},[e._v("\n      ×\n    ")]):e._e(),i("span",{staticClass:"file-name"},[e._v("\n      "+e._s(e.fileData.name(!0))+"\n    ")]),e.fileData.dimensions.width&&e.fileData.dimensions.height?i("span",{staticClass:"image-dimension"},[i("span",{staticClass:"image-dimension-width"},[e._v(e._s(e.fileData.dimensions.width))]),i("span",{staticClass:"image-dimension-height"},[e._v(e._s(e.fileData.dimensions.height))])]):e._e(),e.fileData.hasProgress()?i("span",{staticClass:"file-progress",class:{"file-progress-full":e.fileData.progress()>=100,"has-file-progress":e.fileData.progress()>0}},[i("span",{staticClass:"file-progress-bar",style:{width:e.fileData.progress()+"%"}})]):e._e(),i("span",{staticClass:"file-icon"},[i("VueFileIcon",{attrs:{ext:e.fileData.ext()}})],1)])])},y=[];class D{getAverageColor(e){var t=4,i=e.length;if(i<t)return!1;for(var r=5,a=i-i%t,s=(r||1)*t,l=0,o=0,n=0,h=0,d=0,c=0;c<a;c+=s){var u=e[c+3],p=e[c]*u,f=e[c+1]*u,v=e[c+2]*u;l+=p,o+=f,n+=v,h+=u,d++}return h?[Math.round(l/h),Math.round(o/h),Math.round(n/h),Math.round(h/d)]:[0,0,0,0]}createVideoThumbnail(e,t,i){return new Promise((r,a)=>{t.getContext("2d");var s=!1,l=!1,o=()=>{if(s&&l){var i=t.getContext("2d");i.drawImage(e,0,0,t.width,t.height);var a=i.getImageData(0,0,t.width,t.height),o=t.toDataURL();r({url:o,color:this.getAverageColor(a.data),width:e.videoWidth,height:e.videoHeight})}};e.addEventListener("loadedmetadata",()=>{t.width=i,t.height=t.width/e.videoWidth*e.videoHeight,e.currentTime=1,s=!0,o()}),e.addEventListener("loadeddata",()=>{l=!0,o()})})}getDataURL(e){return new Promise((t,i)=>{var r=new FileReader;r.onload=e=>{t(e.target["result"])},r.readAsDataURL(e)})}getImageResized(e,t,i){var r=e.width,a=e.height,s=t;t&&i?(r=t,a=i):r>a?r>s&&(a*=s/r,r=s):a>s&&(r*=s/a,a=s),r=Math.floor(r),a=Math.floor(a);var l=document.createElement("canvas");l.width=r,l.height=a;var o=l.getContext("2d");o.drawImage(e,0,0,r,a);var n=null;try{var h=o.getImageData(0,0,r,a),d=this.getAverageColor(h.data);d&&(n=d)}catch(c){}return{image:e,url:l.toDataURL("image/png"),color:n}}resizeImageUrl(e,t,i){return new Promise((r,a)=>{e.onload=()=>{var t=this.getImageResized(e,i);r(t)},e.src=t})}resizeImageFile(e,t,i){return new Promise((r,a)=>{if(-1!=t.type.indexOf("image")){var s=(window.URL||window["webkitURL"]||{}).createObjectURL,l=(window.URL||window["webkitURL"]||{}).revokeObjectURL,o=!1;return e.onload=()=>{o&&l(e.src);var t=this.getImageResized(e,i);r(t)},t instanceof File?s&&l?(o=!0,void(e.src=s(t))):void this.getDataURL(t).then(t=>{e.src=t}):a("Invalid file object. Use url or a valid instance of File class")}a(new Error("Not an image"))})}resizeImage(e,t,i){var r=new Image;return r.setAttribute("crossOrigin","anonymous"),i?this.resizeImageUrl(r,i,e):this.resizeImageFile(r,t,e)}getSizeFormatted(e){var t=["B","KB","MB","GB","TB"];if(0==e)return"0 B";var i=Math.floor(Math.log(e)/Math.log(1024));return i=parseInt(""+i),Math.round(e/Math.pow(1024,i))+" "+t[i]}getSizeParsed(e){e=(""+e).toUpperCase();var t=e.match(/([\d|.]+?)\s*?([A-Z]+)/),i=["B","KB","MB","GB","TB"],r=i.indexOf(t[2]);return-1==r?e:parseFloat(t[1])*Math.pow(1024,r)}getColorForText(e){var t=function(e){var t=0;if(0==e.length)return t;for(var i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t),t&=t;return t},i=function(e){var t=e%360,i=e%100,r=50;return"hsl("+t+","+i+"%,"+r+"%, 0.75)"};return i(t(e.toLowerCase()))}validateType(e,t){if(!t)return!0;t=t.split(",");let i=e.type,r=i.replace(/\/.*$/,"");for(let a of t)if(a=a.trim(),"."===a.charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(i===a)return!0;return!1}validateSize(e,t){if(!t)return!0;var i=this.getSizeParsed(t);return e.size<=i}}var M=new D,C={props:["fileData","deletable","errorText"],methods:{createThumbnail(e,t){var i=document.createElement("canvas");M.createVideoThumbnail(t,i,this.fileData.thumbnailSize).then(t=>{e.imageColor=t.color,e.videoThumbnail=t.url,e.dimensions.width=t.width,e.dimensions.height=t.height})},playAv(e){if(e.stopAv)e.stopAv();else{var t=(window.URL||window["webkitURL"]||{}).createObjectURL,i=(window.URL||window["webkitURL"]||{}).revokeObjectURL,r=this.$refs.wrapper,a=document.createElement(e.isAudio()?"audio":"video");e.isPlayableVideo()&&(this.createThumbnail(e,a),a.poster=e.src()),a.controls=!0,r.appendChild(a);var s=e.url||t(e.file);a.src=s,a.play(),e.isPlayingAv=!0,e.stopAv=function(){a.src=null,r.removeChild(a),i(s),e.isPlayingAv=!1,e.stopAv=null}}},removeFileData(e){this.$emit("remove",e)}}},R=C,_=w(R,b,y,!1,null,null,null),H=_.exports,U=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[{"is-drag-over":e.isDragging},"theme-"+e.theme],on:{dragover:e.dragOver,dragenter:e.dragEnter,dragleave:e.dragLeave,drop:e.drop}},[e._t("before-outer"),i("div",{staticClass:"grid-block-wrapper vue-file-agent vue-file-agent-light file-input-wrapper drop_zone",class:{"is-drag-overx":e.isDragging,"is-compact":!!e.compact,"is-single":!e.hasMultiple,"has-multiple":e.hasMultiple,"no-meta":!1===e.meta}},[e._t("before-inner"),i("canvas",{ref:"thumbnailCanvas",staticStyle:{position:"fixed",visibility:"hidden","z-index":"-3"}}),e.overallProgress?i("div",{staticClass:"overall-progress",class:{"overall-progress-full":e.overallProgress>=100}},[i("div",{staticClass:"overall-progress-bar",style:{width:e.overallProgress+"%"}}),i("div",{staticClass:"overall-progress-left",style:{width:100-e.overallProgress+"%"}})]):e._e(),i("transition-group",{attrs:{name:"grid-box",tag:"div"}},[e._l(e.filesData,function(t,r){return i("VueFilePreview",{key:t.id,staticClass:"file-preview-wrapper grid-box-item grid-block",class:["file-preview-wrapper-"+t.ext(),t.isImage()?"file-preview-wrapper-image":"file-preview-wrapper-other","file-category-"+t.icon().category,{"file-is-playing-av":t.isPlayingAv},{"is-deletable":e.isDeletable},{"is-deletable":e.isDeletable},{"has-error":t.error}],attrs:{fileData:t,index:r,deletable:e.isDeletable,errorText:e.errorText},on:{remove:function(t){return e.removeFileData(t)}}})}),e.canAddMore?i("div",{key:"new",staticClass:"file-preview-wrapper grid-box-item grid-block file-preview-new"},[i("span",{staticClass:"file-preview"},[i("span",{staticStyle:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}},[i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"100px",y:"0px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000","xml:space":"preserve"}},[i("path",{attrs:{d:"M745,353c-5.6,0-11.3,0.2-17.2,0.7C687.4,237.3,577.8,157,451,157c-162.1,0-294,131.9-294,294c0,2.1,0,4.1,0,6.2C72.6,479,10,555.8,10,647c0,108.1,87.9,196,196,196h245V618.3l-63.4,63.4c-9.6,9.6-22.1,14.4-34.6,14.4s-25.1-4.8-34.6-14.4c-19.2-19.2-19.2-50.1,0-69.3l147-147c4.6-4.6,9.9-8.1,16-10.6c12-4.9,25.5-4.9,37.4,0c6,2.5,11.4,6.1,16,10.6l147,147c19.2,19.2,19.2,50.1,0,69.3c-9.6,9.6-22.1,14.4-34.6,14.4s-25.1-4.8-34.6-14.4L549,618.3V843h196c135.1,0,245-109.9,245-245S880.1,353,745,353z"}})]),i("span",{staticClass:"help-text"},[e._v(e._s(e.helpTextComputed))])])])]):e._e()],2),i("input",{ref:"fileInput",staticClass:"file-input",attrs:{title:"",disabled:e.hasMultiple&&!e.canAddMore,type:"file",multiple:e.hasMultiple,accept:e.accept||"*"},on:{change:e.filesChanged}}),e._t("after-inner")],2),e._t("after-outer")],2)},L=[];i("e8b6");class V{constructor(e,t={}){this.populate(e,t),this.validate()}populate(e,t={}){this.raw=e,this.file=e.file instanceof File?e.file:e,this.url=null,this.urlResized=null,this.lastKnownSrc=null,this._progress=!isNaN(e.progress)&&e.progress,this.width=V.defaultWidth,this.height=V.defaultHeight,this.thumbnailSize=t.thumbnailSize||360,this.read=!!t.read,this.image={},this.dimensions=e.dimensions||{},this.dimensions.width=this.dimensions.width||0,this.dimensions.height=this.dimensions.height||0,this.error=e.error,this.options=t,this.maxSize=t.maxSize,this.accept=t.accept,this.isPlayingAv=!1,this.id=Math.random()+":"+(new Date).getTime(),this.videoThumbnail=e.videoThumbnail,this.imageColor=e.imageColor,this.upload=null}hasProgress(){return!isNaN(this._progress)}progress(e){if(void 0===e)return this._progress||0;this._progress=e}src(){return this.isImage()?this.urlResized||this.url||this.file.url:this.isPlayableVideo()&&this.videoThumbnail||""}size(){return this.file?M.getSizeFormatted(this.file.size):""}ext(){return this.file&&-1!==this.file.name.indexOf(".")?this.file.name.split(".").pop():"?"}name(e){var t=this.file&&this.file.name;if(e){var i=this.ext();if("?"!=i)return t.substr(0,t.length-(i.length+1))}return t}isDarkColor(){if(this.imageColor){var e=this.imageColor,t=20;return e[0]<=t&&e[1]<=t&&e[2]<=t}return!1}color(){if(this.imageColor){var e=this.imageColor;return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}if(this.isImage())return"transparent";var t=this.ext(),i=this.icon();return i.color?i.color:M.getColorForText(t)}isImage(){return this.file&&-1!=this.file.type.indexOf("image")}isVideo(){return this.file&&-1!=this.file.type.indexOf("video")}isPlayableVideo(){return"video-playable"==this.icon().category}isAudio(){return this.file&&-1!=this.file.type.indexOf("audio")}isPlayableAudio(){return"audio-playable"==this.icon().category}isText(){return this.file&&-1!=this.file.type.indexOf("text")}setUrl(e){return new Promise((t,i)=>{this.url=e,this.isImage()?this.resizeImage().then(()=>{t(this)},i):t(this)})}imageResized(e){this.urlResized=e.url,this.image=e.image,e.image&&e.image.width&&e.image.height&&(this.dimensions.width=e.image.width,this.dimensions.height=e.image.height),this.lastKnownSrc=this.urlResized,this.imageColor=e.color}resizeImage(){return new Promise((e,t)=>{M.resizeImage(this.thumbnailSize,this.file,this.url,this).then(t=>{this.imageResized(t),e(this)}).catch(t)})}icon(){var e=this.ext(),t=v(e);return t}getErrorMessage(e){var t=this.error;return t?(e=e||{},e={common:e.common||"Invalid file.",type:e.type||"Invalid file type.",size:e.size||"Files should not exceed "+this.maxSize+" in size"},t.type?e.type:t.size?e.size:t.upload?this.upload&&this.upload.error?this.upload.error:t.upload:e.common):""}toRaw(){var e=this.raw||{};return e.url=this.url,e.urlResized=this.urlResized,e.src=this.src,e.name=this.file.name,e.lastModified=this.file.lastModified,e.sizeText=this.size(),e.size=this.file.size,e.type=this.file.type,e.ext=this.ext(),e.color=this.color(),e.file=this.file,e.progress=this.progress.bind(this),e.error=this.error,e.dimensions=this.dimensions,e}validate(){var e=M.validateType(this.file,this.accept),t=M.validateSize(this.file,this.maxSize);this.error=(!e||!t)&&{type:!e,size:!t}}static fromRaw(e,t){var i=new V(e,t),r=i.setUrl(e.url);return e.progress=i.progress.bind(i),r}static fromRawArray(e,t){var i=[];return e.forEach(e=>{i.push(V.fromRaw(e,t))}),Promise.all(i)}static toRawArray(e){var t=[];return e.forEach(e=>{t.push(e.toRaw())}),t}static readFile(e){return new Promise((t,i)=>{if(!e.read)return e.setUrl(null),void t(e);M.getDataURL(e.file).then(r=>{e.setUrl(r).then(()=>{t(e)},i)},i)})}static readFiles(e){var t=[];return e.forEach(e=>{t.push(V.readFile(e))}),Promise.all(t)}}var A=V;class P{createError(e,t,i,r){var a=new Error(e);return t&&(a.code=t),a.request=i,a.response=r,a}settle(e,t,i){var r=function(e){return e>=200&&e<300};i.status&&r&&!r(i.status)?t(this.createError("Request failed with status code "+i.status,null,i.request,i)):e(i)}request(e,t,i=null,r=null){return new Promise((a,s)=>{var l=new XMLHttpRequest,o="onreadystatechange";l.open(e,t,!0),l[o]=()=>{if(l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var e=l.getAllResponseHeaders(),t=l.responseText,i=l.getResponseHeader("Content-Type");i&&-1!=i.indexOf("application/json")&&(t=JSON.parse(t));var r={data:t,status:1223===l.status?204:l.status,statusText:1223===l.status?"No Content":l.statusText,headers:e,request:l};this.settle(a,s,r),l=null}},l.onabort=()=>{l&&(s(this.createError("Request aborted","ECONNABORTED",l)),l=null)},l.onerror=()=>{s(this.createError("Network Error",null,l)),l=null},l.ontimeout=()=>{s(this.createError("timeout exceeded","ECONNABORTED",l)),l=null},"function"===typeof r&&r(l),l.send(i)})}post(e,t,i=null){return this.request("POST",e,t,i)}delete(e,t,i=null){return this.request("DELETE",e,t,i)}}var S=new P;class T{useAxios(e){this.axios=e}addHeaders(e,t){if(e.setRequestHeader("Accept","application/json"),t)for(var i in t)e.setRequestHeader(i,t[i]);return e}doUpload(e,t,i,r,a){return S.post(e,i,e=>{this.addHeaders(e,t),e.upload.addEventListener("progress",r,!1),a(e)})}doDeleteUpload(e,t,i,r){return"string"!=typeof i&&(i=JSON.stringify(i)),S.delete(e,i,e=>{e.setRequestHeader("Content-Type","application/json"),this.addHeaders(e,t),r(e)})}doUploadAxios(e,t,i){return e.post("/upload",t,{onUploadProgress:i})}doDeleteUploadAxios(e,t,i){return e.delete("/upload",t,{})}prepareUploadError(e,t){var i=t.message;if(t.response&&t.response.data)try{var r=t.response.data.error||JSON.parse(t.response.data).error;i=r}catch(a){}e.error||(e.error={}),e.error.upload=i}upload(e,t,i,r){var a=this;r=r||function(){};var s=[];function l(){for(var e=0,t=0;t<i.length;t++)e+=i[t].progress();r(e/i.length)}for(let n=0;n<i.length;n++){let r=i[n];var o=new FormData;o.append("file",r.file),function(i){var r=a.doUpload(e,t,o,function(e){var t=100*e.loaded/e.total;Math.round(t);i.progress(t>=100?99.99:t),l()},function(e){i.xhr=e});r.then(function(e){delete i.xhr,i.upload=e.data,i.progress(100)},function(e){a.prepareUploadError(i,e)}),s.push(r)}(r)}return Promise.all(s)}deleteUpload(e,t,i){return new Promise((r,a)=>{i.xhr&&i.xhr.abort(),i.upload&&this.doDeleteUpload(e,t,i.upload,e=>{}).then(e=>{r(e)},e=>{this.prepareUploadError(i,e),a(e)})})}}var F=new T,E=0,k={props:["uploadUrl","uploadHeaders","multiple","deletable","read","accept","value","progress","helpText","maxSize","maxFiles","errorText","meta","compact","thumbnailSize","theme"],components:{VueFileIcon:x,VueFilePreview:H},data(){return{filesData:[],filesDataRaw:[],isDragging:!1,overallProgress:0}},computed:{canAddMore(){return this.hasMultiple?!this.maxFiles||this.filesData.length<this.maxFiles:0===this.filesData.length},helpTextComputed(){return this.helpText?this.helpText:"Choose "+(this.hasMultiple?"files":"file")+" or drag & drop here"},isDeletable(){return"string"==typeof this.deletable?"false"!==this.deletable:!!this.deletable},hasMultiple(){return"string"==typeof this.multiple?"false"!==this.multiple:void 0===this.multiple?Array.isArray(this.value):!!this.multiple},shouldRead(){return"string"==typeof this.read?"true"===this.read:!!this.read}},methods:{createThumbnail(e,t){return new Promise((i,r)=>{var a=document.createElement("canvas");M.createVideoThumbnail(t,a,e.thumbnailSize).then(t=>{e.imageColor=t.color,e.videoThumbnail=t.url,e.dimensions.width=t.width,e.dimensions.height=t.height,i()},r)})},initVideo(e){if(e.isPlayableVideo()){var t=(window.URL||window["webkitURL"]||{}).createObjectURL,i=(window.URL||window["webkitURL"]||{}).revokeObjectURL,r=document.createElement("video");r.src=t(e.file),this.createThumbnail(e,r,!0).then(()=>{i(r.src)}),r.load()}},upload(e,t,i){for(var r=[],a=0;a<i.length;a++)i[a].error||r.push(i[a]);return F.upload(e,t,r,e=>{this.overallProgress=e})},deleteUpload(e,t,i){return this.filesData.length<1&&(this.overallProgress=0),F.deleteUpload(e,t,i)},autoUpload(e){this.uploadUrl&&this.upload(this.uploadUrl,this.uploadHeaders,e)},autoDeleteUpload(e){return this.uploadUrl?this.deleteUpload(this.uploadUrl,this.uploadHeaders,e):Promise.resolve(!1)},equalFiles(e,t){return e.name===t.name&&e.size===t.size&&e.type===t.type&&e.lastModified===t.lastModified},isFileAddedAlready(e){for(var t=0;t<this.filesData.length;t++)if(this.equalFiles(e,this.filesData[t].file))return!0;return!1},handleFiles(e){if(!this.hasMultiple||this.canAddMore){for(var t=[],i=[],r=0;r<e.length;r++)this.isFileAddedAlready(e[r])||i.push(e[r]);e=i,this.maxFiles&&e.length>this.maxFiles-this.filesData.length&&(e=e.slice(0,this.maxFiles-this.filesData.length));for(r=0;r<e.length;r++)t.push(new A({file:e[r]},{read:this.shouldRead,maxSize:this.maxSize,accept:this.accept,thumbnailSize:this.thumbnailSize}));for(r=0;r<t.length;r++)t[r].file.size<=20971520&&this.initVideo(t[r]);this.hasMultiple?this.filesData.splice(this.filesData.length,0,...t):this.filesData=t,A.readFiles(t).then(e=>{var t=A.toRawArray(this.filesData);this.filesDataRaw=t,t=Array.isArray(this.value)?t:t[0],this.$emit("input",t),this.$emit("select",A.toRawArray(e))}),this.autoUpload(t)}},filesChanged(e){var t=e.target.files;this.$emit("change",e),t[0]&&(this.handleFiles(t),this.$refs.fileInput&&(this.$refs.fileInput.value=null))},drop(e){E=0,this.isDragging=!1,e.stopPropagation(),e.preventDefault();var t=e.dataTransfer.files;this.$emit("drop",e),t[0]&&(this.hasMultiple||(t=[t[0]]),this.handleFiles(t))},dragEnter(e){this.isDragging=!0,e.stopPropagation(),e.preventDefault(),E++,e.dataTransfer.dropEffect="copy"},dragOver(e){this.isDragging=!0,e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},dragLeave(e){E--,0===E&&(this.isDragging=!1)},removeFileData(e){var t;t=e instanceof A?this.filesData.indexOf(e):this.filesDataRaw.indexOf(e),this.filesData.splice(t,1),this.filesDataRaw.splice(t,1),this.$emit("input",this.filesDataRaw),this.$emit("delete",A.toRawArray([e])[0]),this.autoDeleteUpload(e).then(e=>{},i=>{this.filesData.splice(t,1,e)})},checkValue(){var e=this.value||[];e=Array.isArray(e)?e:[e];for(var t=[],i=[],r=0;r<e.length;r++){var a=this.filesDataRaw.indexOf(e[r]);-1!==a?(t.push(Promise.resolve(this.filesData[a])),i[r]=this.filesDataRaw[a]):(t.push(A.fromRaw(e[r],{read:this.shouldRead,maxSize:this.maxSize,accept:this.accept,thumbnailSize:this.thumbnailSize})),i.push(e[r]))}this.filesDataRaw=i,Promise.all(t).then(e=>{this.filesData=e})}},created(){this.checkValue()},watch:{value(){this.checkValue()}}},O={mixins:[k]},I=O,j=w(I,U,L,!1,null,null,null),B=j.exports,$=function(){};$.VueFileIcon=x,$.VueFilePreview=H,$.VueFileAgent=B,$.component=B,$.mixin=k,$.install=function(e,t){e.component("VueFileIcon",x),e.component("VueFileAgent",B),e.prototype.$vueFileAgent={mixin:k}},"undefined"!==typeof window&&window.Vue&&$.install(window.Vue);var N=$,q=k;i.d(t,"mixin",function(){return q});t["default"]=N}})});
//# sourceMappingURL=vue-file-agent.umd.min.js.map