text: (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Uppy = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  
  },{}],2:[function(require,module,exports){
  function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex<t;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,t=queue.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}var process=module.exports={},cachedSetTimeout,cachedClearTimeout;!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var queue=[],draining=!1,currentQueue,queueIndex=-1;process.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)t[u-1]=arguments[u];queue.push(new Item(e,t)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.binding=function(e){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(e){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};
  },{}],3:[function(require,module,exports){
  function dragDrop(e,r){function t(t){if(t.stopPropagation(),t.preventDefault(),t.dataTransfer.items){var n=toArray(t.dataTransfer.items).filter(function(e){return"file"===e.kind});if(0===n.length)return}return e.classList.add("drag"),clearTimeout(i),r.onDragOver&&r.onDragOver(t),t.dataTransfer.dropEffect="copy",!1}function n(e){return e.stopPropagation(),e.preventDefault(),r.onDragLeave&&r.onDragLeave(e),clearTimeout(i),i=setTimeout(o,50),!1}function a(e){e.stopPropagation(),e.preventDefault(),r.onDragLeave&&r.onDragLeave(e),clearTimeout(i),o();var t={x:e.clientX,y:e.clientY};if(e.dataTransfer.items){var n=toArray(e.dataTransfer.items).filter(function(e){return"file"===e.kind});if(0===n.length)return;parallel(n.map(function(e){return function(r){processEntry(e.webkitGetAsEntry(),r)}}),function(e,n){if(e)throw e;r.onDrop&&r.onDrop(flatten(n),t)})}else{var a=toArray(e.dataTransfer.files);if(0===a.length)return;a.forEach(function(e){e.fullPath="/"+e.name}),r.onDrop&&r.onDrop(a,t)}return!1}function o(){e.classList.remove("drag")}"string"==typeof e&&(e=window.document.querySelector(e)),"function"==typeof r&&(r={onDrop:r});var i;return e.addEventListener("dragenter",stopEvent,!1),e.addEventListener("dragover",t,!1),e.addEventListener("dragleave",n,!1),e.addEventListener("drop",a,!1),function(){o(),e.removeEventListener("dragenter",stopEvent,!1),e.removeEventListener("dragover",t,!1),e.removeEventListener("dragleave",n,!1),e.removeEventListener("drop",a,!1)}}function stopEvent(e){return e.stopPropagation(),e.preventDefault(),!1}function processEntry(e,r){function t(){o.readEntries(function(e){e.length>0?(a=a.concat(toArray(e)),t()):n()})}function n(){parallel(a.map(function(e){return function(r){processEntry(e,r)}}),r)}var a=[];if(e.isFile)e.file(function(t){t.fullPath=e.fullPath,r(null,t)},function(e){r(e)});else if(e.isDirectory){var o=e.createReader();t()}}function toArray(e){return Array.prototype.slice.call(e||[],0)}module.exports=dragDrop;var flatten=require("flatten"),parallel=require("run-parallel");
  },{"flatten":4,"run-parallel":5}],4:[function(require,module,exports){
  module.exports=function(r,n){function t(r,u){return r.reduce(function(r,e){return Array.isArray(e)&&u<n?r.concat(t(e,u+1)):r.concat(e)},[])}return n="number"==typeof n?n:1/0,n?t(r,1):Array.isArray(r)?r.map(function(r){return r}):r};
  },{}],5:[function(require,module,exports){
  (function (process){
  module.exports=function(n,c){function o(n){function o(){c&&c(n,u),c=null}r?process.nextTick(o):o()}function t(n,c,t){u[n]=t,(0===--f||c)&&o(c)}var u,f,i,r=!0;Array.isArray(n)?(u=[],f=n.length):(i=Object.keys(n),u={},f=i.length),f?i?i.forEach(function(c){n[c](function(n,o){t(c,n,o)})}):n.forEach(function(n,c){n(function(n,o){t(c,n,o)})}):o(null),r=!1};
  }).call(this,require('_process'))
  
  },{"_process":2}],6:[function(require,module,exports){
  (function (process,global){
  (function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function e(t){return"function"==typeof t}function n(t){G=t}function r(t){Q=t}function o(){return function(){process.nextTick(a)}}function i(){return function(){B(a)}}function s(){var t=0,e=new X(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){t.port2.postMessage(0)}}function c(){return function(){setTimeout(a,1)}}function a(){for(var t=0;t<J;t+=2){var e=tt[t],n=tt[t+1];e(n),tt[t]=void 0,tt[t+1]=void 0}J=0}function f(){try{var t=require,e=t("vertx");return B=e.runOnLoop||e.runOnContext,i()}catch(t){return c()}}function l(t,e){var n=this,r=new this.constructor(p);void 0===r[rt]&&k(r);var o=n._state;if(o){var i=arguments[o-1];Q(function(){x(o,r,i,n._result)})}else E(n,r,t,e);return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return g(n,t),n}function p(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function v(t){try{return t.then}catch(t){return ut.error=t,ut}}function y(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function m(t,e,n){Q(function(t){var r=!1,o=y(n,e,function(n){r||(r=!0,e!==n?g(t,n):S(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function b(t,e){e._state===it?S(t,e._result):e._state===st?j(t,e._result):E(e,void 0,function(e){g(t,e)},function(e){j(t,e)})}function w(t,n,r){n.constructor===t.constructor&&r===et&&constructor.resolve===nt?b(t,n):r===ut?j(t,ut.error):void 0===r?S(t,n):e(r)?m(t,n,r):S(t,n)}function g(e,n){e===n?j(e,_()):t(n)?w(e,n,v(n)):S(e,n)}function A(t){t._onerror&&t._onerror(t._result),T(t)}function S(t,e){t._state===ot&&(t._result=e,t._state=it,0!==t._subscribers.length&&Q(T,t))}function j(t,e){t._state===ot&&(t._state=st,t._result=e,Q(A,t))}function E(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+it]=n,o[i+st]=r,0===i&&t._state&&Q(T,t)}function T(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?x(n,r,o,i):o(i);t._subscribers.length=0}}function M(){this.error=null}function P(t,e){try{return t(e)}catch(t){return ct.error=t,ct}}function x(t,n,r,o){var i,s,u,c,a=e(r);if(a){if(i=P(r,o),i===ct?(c=!0,s=i.error,i=null):u=!0,n===i)return void j(n,d())}else i=o,u=!0;n._state!==ot||(a&&u?g(n,i):c?j(n,s):t===it?S(n,i):t===st&&j(n,i))}function C(t,e){try{e(function(e){g(t,e)},function(e){j(t,e)})}catch(e){j(t,e)}}function O(){return at++}function k(t){t[rt]=at++,t._state=void 0,t._result=void 0,t._subscribers=[]}function Y(t){return new _t(this,t).promise}function q(t){var e=this;return new e(I(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){e(new TypeError("You must pass an array to race."))})}function F(t){var e=this,n=new e(p);return j(n,t),n}function D(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function K(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function L(t){this[rt]=O(),this._result=this._state=void 0,this._subscribers=[],p!==t&&("function"!=typeof t&&D(),this instanceof L?C(this,t):K())}function N(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[rt]||k(this.promise),I(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&S(this.promise,this._result))):j(this.promise,U())}function U(){return new Error("Array Methods must be provided an Array")}function W(){var t;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;e&&"[object Promise]"===Object.prototype.toString.call(e.resolve())&&!e.cast||(t.Promise=pt)}var z;z=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var B,G,H,I=z,J=0,Q=function(t,e){tt[J]=t,tt[J+1]=e,J+=2,2===J&&(G?G(a):H())},R="undefined"!=typeof window?window:void 0,V=R||{},X=V.MutationObserver||V.WebKitMutationObserver,Z="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),$="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,tt=new Array(1e3);H=Z?o():X?s():$?u():void 0===R&&"function"==typeof require?f():c();var et=l,nt=h,rt=Math.random().toString(36).substring(16),ot=void 0,it=1,st=2,ut=new M,ct=new M,at=0,ft=Y,lt=q,ht=F,pt=L;L.all=ft,L.race=lt,L.resolve=nt,L.reject=ht,L._setScheduler=n,L._setAsap=r,L._asap=Q,L.prototype={constructor:L,then:et,catch:function(t){return this.then(null,t)}};var _t=N;N.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ot&&n<t;n++)this._eachEntry(e[n],n)},N.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===nt){var o=v(t);if(o===et&&t._state!==ot)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===pt){var i=new n(p);w(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(r(t),e)},N.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ot&&(this._remaining--,t===st?j(r,n):this._result[e]=n),0===this._remaining&&S(r,this._result)},N.prototype._willSettleAt=function(t,e){var n=this;E(t,void 0,function(t){n._settledAt(it,e,t)},function(t){n._settledAt(st,e,t)})};var dt=W,vt={Promise:pt,polyfill:dt};"function"==typeof define&&define.amd?define(function(){return vt}):"undefined"!=typeof module&&module.exports?module.exports=vt:"undefined"!=typeof this&&(this.ES6Promise=vt),dt()}).call(this);
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
  
  },{"_process":2}],7:[function(require,module,exports){
  module.exports=function(){function n(n){var t=[],s=n.split(":"),i=f._fns;return Object.keys(i).forEach(function(n){"*"===n&&(t=t.concat(i[n])),2===s.length&&s[0]===n&&(t=t.concat(i[n]))}),t}function t(n,t,f){for(var s=0;s<t.length&&t[s];s++)t[s].event=n,t[s].apply(t[s],f)}var f={_fns:{}};return f.emit=function(f){var s=[].slice.call(arguments,1),i=n(f);this._fns[f]&&t(f,this._fns[f],s),i&&t(f,i,s)},f.on=function(n,t){if("function"!=typeof t)throw new Error("callback required");(this._fns[n]=this._fns[n]||[]).push(t)},f.once=function(n,t){function s(){t.apply(this,arguments),f.off(n,s)}this.on(n,s)},f.off=function(n,t){var f=[];if(n&&t)for(var s=0;s<this._fns.length;s++)this._fns[s]!==t&&f.push(this._fns[s]);f.length?this._fns[n]=f:delete this._fns[n]},f};
  },{}],8:[function(require,module,exports){
  "use strict";var numberIsNan=require("number-is-nan");module.exports=function(e){if("number"!=typeof e||numberIsNan(e))throw new TypeError("Expected a number, got "+typeof e);var r,t,n=e<0,o=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];return n&&(e=-e),e<1?(n?"-":"")+e+" B":(r=Math.min(Math.floor(Math.log(e)/Math.log(1e3)),o.length-1),e=Number((e/Math.pow(1e3,r)).toFixed(2)),t=o[r],(n?"-":"")+e+" "+t)};
  },{"number-is-nan":9}],9:[function(require,module,exports){
  "use strict";module.exports=Number.isNaN||function(e){return e!==e};
  },{}],10:[function(require,module,exports){
  "use strict";function encode(e){return btoa(unescape(encodeURIComponent(e)))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.encode=encode;var _window=window,btoa=_window.btoa,isSupported=exports.isSupported="btoa"in window;
  },{}],11:[function(require,module,exports){
  "use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function newRequest(){return new window.XMLHttpRequest}function resolveUrl(e,r){return(0,_resolveUrl2.default)(e,r)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.newRequest=newRequest,exports.resolveUrl=resolveUrl;var _resolveUrl=require("resolve-url"),_resolveUrl2=_interopRequireDefault(_resolveUrl);
  },{"resolve-url":19}],12:[function(require,module,exports){
  "use strict";function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function getSource(e){if("function"==typeof e.slice&&"undefined"!=typeof e.size)return new FileSource(e);throw new Error("source object may only be an instance of File or Blob in this environment")}var _createClass=function(){function e(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}();Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSource=getSource;var FileSource=function(){function e(n){_classCallCheck(this,e),this._file=n,this.size=n.size}return _createClass(e,[{key:"slice",value:function(e,n){return this._file.slice(e,n)}},{key:"close",value:function(){}}]),e}();
  },{}],13:[function(require,module,exports){
  "use strict";function setItem(e,t){if(hasStorage)return localStorage.setItem(e,t)}function getItem(e){if(hasStorage)return localStorage.getItem(e)}function removeItem(e){if(hasStorage)return localStorage.removeItem(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.setItem=setItem,exports.getItem=getItem,exports.removeItem=removeItem;var hasStorage=!1;try{hasStorage="localStorage"in window,localStorage.length}catch(e){if(e.code!==e.SECURITY_ERR)throw e;hasStorage=!1}var canStoreURLs=exports.canStoreURLs=hasStorage;
  },{}],14:[function(require,module,exports){
  "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(exports,"__esModule",{value:!0});var DetailedError=function(e){function t(e){var r=arguments.length<=1||void 0===arguments[1]?null:arguments[1],o=arguments.length<=2||void 0===arguments[2]?null:arguments[2];_classCallCheck(this,t);var n=_possibleConstructorReturn(this,Object.getPrototypeOf(t).call(this,e.message));n.originalRequest=o,n.causingError=r;var s=e.message;return null!=r&&(s+=", caused by "+r.toString()),null!=o&&(s+=", originated from request (response code: "+o.status+", response text: "+o.responseText+")"),n.message=s,n}return _inherits(t,e),t}(Error);exports.default=DetailedError;
  },{}],15:[function(require,module,exports){
  "use strict";function fingerprint(e){return["tus",e.name,e.type,e.size,e.lastModified].join("-")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=fingerprint;
  },{}],16:[function(require,module,exports){
  "use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _upload=require("./upload"),_upload2=_interopRequireDefault(_upload),_storage=require("./node/storage"),defaultOptions=_upload2.default.defaultOptions;if("undefined"!=typeof window)var _window=window,XMLHttpRequest=_window.XMLHttpRequest,Blob=_window.Blob,isSupported=XMLHttpRequest&&Blob&&"function"==typeof Blob.prototype.slice;else var isSupported=!0;module.exports={Upload:_upload2.default,isSupported:isSupported,canStoreURLs:_storage.canStoreURLs,defaultOptions:defaultOptions};
  },{"./node/storage":13,"./upload":17}],17:[function(require,module,exports){
  "use strict";function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function encodeMetadata(e){if(!Base64.isSupported)return"";var t=[];for(var r in e)t.push(r+" "+Base64.encode(e[r]));return t.join(",")}var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}();Object.defineProperty(exports,"__esModule",{value:!0});var _fingerprint=require("./fingerprint"),_fingerprint2=_interopRequireDefault(_fingerprint),_error=require("./error"),_error2=_interopRequireDefault(_error),_extend=require("extend"),_extend2=_interopRequireDefault(_extend),_request=require("./node/request"),_source=require("./node/source"),_base=require("./node/base64"),Base64=_interopRequireWildcard(_base),_storage=require("./node/storage"),Storage=_interopRequireWildcard(_storage),defaultOptions={endpoint:"",fingerprint:_fingerprint2.default,resume:!0,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,headers:{},chunkSize:1/0,withCredentials:!1,uploadUrl:null,uploadSize:null,overridePatchMethod:!1,retryDelays:null},Upload=function(){function e(t,r){_classCallCheck(this,e),this.options=(0,_extend2.default)(!0,{},defaultOptions,r),this.file=t,this.url=null,this._xhr=null,this._fingerprint=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0}return _createClass(e,[{key:"start",value:function(){var e=this,t=this.file;if(!t)return void this._emitError(new Error("tus: no file or stream to upload provided"));if(!this.options.endpoint)return void this._emitError(new Error("tus: no endpoint provided"));var r=this._source=(0,_source.getSource)(t,this.options.chunkSize);if(null!=this.options.uploadSize){var o=+this.options.uploadSize;if(isNaN(o))throw new Error("tus: cannot convert `uploadSize` option into a number");this._size=o}else{var o=r.size;if(null==o)throw new Error("tus: cannot automatically derive upload's size from input and must be specified manually using the `uploadSize` option");this._size=o}var i=this.options.retryDelays;if(null!=i){if("[object Array]"!==Object.prototype.toString.call(i))throw new Error("tus: the `retryDelays` option must either be an array or null");!function(){var t=e.options.onError;e.options.onError=function(r){e.options.onError=t;var o=null!=e._offset&&e._offset>e._offsetBeforeRetry;o&&(e._retryAttempt=0);var n=!0;"undefined"!=typeof window&&"navigator"in window&&window.navigator.onLine===!1&&(n=!1);var s=e._retryAttempt<i.length&&null!=r.originalRequest&&n;if(!s)return void e._emitError(r);var u=i[e._retryAttempt++];e._offsetBeforeRetry=e._offset,e.options.uploadUrl=e.url,e._retryTimeout=setTimeout(function(){e.start()},u)}}()}if(null!=this.options.uploadUrl)return this.url=this.options.uploadUrl,void this._resumeUpload();if(this.options.resume){this._fingerprint=this.options.fingerprint(t);var n=Storage.getItem(this._fingerprint);if(null!=n)return this.url=n,void this._resumeUpload()}this._createUpload()}},{key:"abort",value:function(){null!==this._xhr&&(this._xhr.abort(),this._source.close(),this._aborted=!0),null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null)}},{key:"_emitXhrError",value:function(e,t,r){this._emitError(new _error2.default(t,r,e))}},{key:"_emitError",value:function(e){if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}},{key:"_emitSuccess",value:function(){"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_setupXHR",value:function(e){e.setRequestHeader("Tus-Resumable","1.0.0");var t=this.options.headers;for(var r in t)e.setRequestHeader(r,t[r]);e.withCredentials=this.options.withCredentials}},{key:"_createUpload",value:function(){var e=this,t=(0,_request.newRequest)();t.open("POST.html",this.options.endpoint,!0),t.onload=function(){return t.status>=200&&t.status<300?(e.url=(0,_request.resolveUrl)(e.options.endpoint,t.getResponseHeader("Location")),e.options.resume&&Storage.setItem(e._fingerprint,e.url),e._offset=0,void e._startUpload()):void e._emitXhrError(t,new Error("tus: unexpected response while creating upload"))},t.onerror=function(r){e._emitXhrError(t,new Error("tus: failed to create upload"),r)},this._setupXHR(t),t.setRequestHeader("Upload-Length",this._size);var r=encodeMetadata(this.options.metadata);""!==r&&t.setRequestHeader("Upload-Metadata",r),t.send(null)}},{key:"_resumeUpload",value:function(){var e=this,t=(0,_request.newRequest)();t.open("HEAD.html",this.url,!0),t.onload=function(){if(!(t.status>=200&&t.status<300))return e.options.resume&&Storage.removeItem(e._fingerprint),e.url=null,void e._createUpload();var r=parseInt(t.getResponseHeader("Upload-Offset"),10);if(isNaN(r))return void e._emitXhrError(t,new Error("tus: invalid or missing offset value"));var o=parseInt(t.getResponseHeader("Upload-Length"),10);return isNaN(o)?void e._emitXhrError(t,new Error("tus: invalid or missing length value")):r===o?(e._emitProgress(o,o),void e._emitSuccess()):(e._offset=r,void e._startUpload())},t.onerror=function(r){e._emitXhrError(t,new Error("tus: failed to resume upload"),r)},this._setupXHR(t),t.send(null)}},{key:"_startUpload",value:function(){var e=this,t=this._xhr=(0,_request.newRequest)();this.options.overridePatchMethod?(t.open("POST.html",this.url,!0),t.setRequestHeader("X-HTTP-Method-Override","PATCH")):t.open("PATCH.html",this.url,!0),t.onload=function(){if(!(t.status>=200&&t.status<300))return void e._emitXhrError(t,new Error("tus: unexpected response while uploading chunk"));var r=parseInt(t.getResponseHeader("Upload-Offset"),10);return isNaN(r)?void e._emitXhrError(t,new Error("tus: invalid or missing offset value")):(e._emitProgress(r,e._size),e._emitChunkComplete(r-e._offset,r,e._size),e._offset=r,r==e._size?(e._emitSuccess(),void e._source.close()):void e._startUpload())},t.onerror=function(r){e._aborted||e._emitXhrError(t,new Error("tus: failed to upload chunk at offset "+e._offset),r)},"upload"in t&&(t.upload.onprogress=function(t){t.lengthComputable&&e._emitProgress(r+t.loaded,e._size)}),this._setupXHR(t),t.setRequestHeader("Upload-Offset",this._offset),t.setRequestHeader("Content-Type","application/offset+octet-stream");var r=this._offset,o=this._offset+this.options.chunkSize;(o===1/0||o>this._size)&&(o=this._size),t.send(this._source.slice(r,o))}}]),e}();Upload.defaultOptions=defaultOptions,exports.default=Upload;
  },{"./error":14,"./fingerprint":15,"./node/base64":10,"./node/request":11,"./node/source":12,"./node/storage":13,"extend":18}],18:[function(require,module,exports){
  "use strict";var hasOwn=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,isArray=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===toStr.call(t)},isPlainObject=function(t){if(!t||"[object Object]"!==toStr.call(t))return!1;var r=hasOwn.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&hasOwn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!o)return!1;var n;for(n in t);return"undefined"==typeof n||hasOwn.call(t,n)};module.exports=function t(){var r,o,n,e,c,a,i=arguments[0],s=1,u=arguments.length,f=!1;for("boolean"==typeof i?(f=i,i=arguments[1]||{},s=2):("object"!=typeof i&&"function"!=typeof i||null==i)&&(i={});s<u;++s)if(r=arguments[s],null!=r)for(o in r)n=i[o],e=r[o],i!==e&&(f&&e&&(isPlainObject(e)||(c=isArray(e)))?(c?(c=!1,a=n&&isArray(n)?n:[]):a=n&&isPlainObject(n)?n:{},i[o]=t(f,a,e)):"undefined"!=typeof e&&(i[o]=e));return i};
  },{}],19:[function(require,module,exports){
  void function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():e.resolveUrl=r()}(this,function(){function e(){var e=arguments.length;if(0===e)throw new Error("resolveUrl requires at least one argument; got none.");var r=document.createElement("base");if(r.href=arguments[0],1===e)return r.href;var t=document.getElementsByTagName("head")[0];t.insertBefore(r,t.firstChild);for(var n,o=document.createElement("a"),f=1;f<e;f++)o.href=arguments[f],n=o.href,r.href=n;return t.removeChild(r),n}return e});
  },{}],20:[function(require,module,exports){
  !function(t){"use strict";function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function o(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return y.iterable&&(e[Symbol.iterator]=function(){return e}),e}function n(t){this.map={},t instanceof n?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function s(t){return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function i(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function a(t){var e=new FileReader;return e.readAsArrayBuffer(t),i(e)}function h(t){var e=new FileReader;return e.readAsText(t),i(e)}function u(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(y.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(y.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(y.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(t){if(!y.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):y.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},y.blob?(this.blob=function(){var t=s(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(a)},this.text=function(){var t=s(this);if(t)return t;if(this._bodyBlob)return h(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var t=s(this);return t?t:Promise.resolve(this._bodyText)},y.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(t){var e=t.toUpperCase();return b.indexOf(e)>-1?e:t}function d(t,e){e=e||{};var r=e.body;if(d.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new n(t.headers)),this.method=t.method,this.mode=t.mode,r||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new n(e.headers)),this.method=f(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function p(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}}),e}function c(t){var e=new n,r=(t.getAllResponseHeaders()||"").trim().split("\n");return r.forEach(function(t){var r=t.trim().split(":"),o=r.shift().trim(),n=r.join(":").trim();e.append(o,n)}),e}function l(t,e){e||(e={}),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof n?e.headers:new n(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var y={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};n.prototype.append=function(t,o){t=e(t),o=r(o);var n=this.map[t];n||(n=[],this.map[t]=n),n.push(o)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var r=this.map[e(t)];return r?r[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(t,o){this.map[e(t)]=[r(o)]},n.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(r){this.map[r].forEach(function(o){t.call(e,o,r,this)},this)},this)},n.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),o(t)},n.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),o(t)},n.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),o(t)},y.iterable&&(n.prototype[Symbol.iterator]=n.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this)},u.call(d.prototype),u.call(l.prototype),l.prototype.clone=function(){return new l(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},l.error=function(){var t=new l(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];l.redirect=function(t,e){if(m.indexOf(e)===-1)throw new RangeError("Invalid status code");return new l(null,{status:e,headers:{location:t}})},t.Headers=n,t.Request=d,t.Response=l,t.fetch=function(t,e){return new Promise(function(r,o){function n(){return"responseURL"in i?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):void 0}var s;s=d.prototype.isPrototypeOf(t)&&!e?t:new d(t,e);var i=new XMLHttpRequest;i.onload=function(){var t={status:i.status,statusText:i.statusText,headers:c(i),url:n()},e="response"in i?i.response:i.responseText;r(new l(e,t))},i.onerror=function(){o(new TypeError("Network request failed"))},i.ontimeout=function(){o(new TypeError("Network request failed"))},i.open(s.method,s.url,!0),"include"===s.credentials&&(i.withCredentials=!0),"responseType"in i&&y.blob&&(i.responseType="blob"),s.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.send("undefined"==typeof s._bodyInit?null:s._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this);
  },{}],21:[function(require,module,exports){
  var bel=require("bel"),morphdom=require("morphdom"),defaultEvents=require("./update-events.js");module.exports=bel,module.exports.update=function(e,t,u){function l(e,t){for(var l=u.events||defaultEvents,o=0;o<l.length;o++){var r=l[o];t[r]?e[r]=t[r]:e[r]&&(e[r]=void 0)}"INPUT"===e.nodeName&&"file"!==e.type||"SELECT"===e.nodeName?null===t.getAttribute("value")&&(t.value=e.value):"TEXTAREA"===e.nodeName&&null===t.getAttribute("value")&&(e.value=t.value)}return u||(u={}),u.events!==!1&&(u.onBeforeElUpdated||(u.onBeforeElUpdated=l)),morphdom(e,t,u)};
  },{"./update-events.js":29,"bel":22,"morphdom":28}],22:[function(require,module,exports){
  function belCreateElement(e,t,a){function n(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var a=e[t];if(Array.isArray(a))n(a);else{if(("number"==typeof a||"boolean"==typeof a||a instanceof Date||a instanceof RegExp)&&(a=a.toString()),"string"==typeof a){if(o.lastChild&&"#text"===o.lastChild.nodeName){o.lastChild.nodeValue+=a;continue}a=document.createTextNode(a)}a&&a.nodeType&&o.appendChild(a)}}}var o;SVG_TAGS.indexOf(e)!==-1&&(t.namespace=SVGNS);var l=!1;if(t.namespace&&(l=t.namespace,delete t.namespace),o=l?document.createElementNS(l,e):document.createElement(e),t.onload||t.onunload){var r=t.onload||function(){},i=t.onunload||function(){};onload(o,function(){r(o)},function(){i(o)},belCreateElement.caller.caller.caller),delete t.onload,delete t.onunload}for(var f in t)if(t.hasOwnProperty(f)){var c=f.toLowerCase(),s=t[f];if("classname"===c&&(c="class",f="class"),"htmlFor"===f&&(f="for"),BOOL_PROPS[c])if("true"===s)s=c;else if("false"===s)continue;"on"===c.slice(0,2)?o[f]=s:l?"xlink:href"===f?o.setAttributeNS(XLINKNS,f,s):o.setAttributeNS(null,f,s):o.setAttribute(f,s)}return n(a),o}var document=require("global/document"),hyperx=require("hyperx"),onload=require("on-load"),SVGNS="http://www.w3.org/2000/svg",XLINKNS="http://www.w3.org/1999/xlink",BOOL_PROPS={autofocus:1,checked:1,defaultchecked:1,disabled:1,formnovalidate:1,indeterminate:1,readonly:1,required:1,selected:1,willvalidate:1},SVG_TAGS=["svg","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"];module.exports=hyperx(belCreateElement),module.exports.createElement=belCreateElement;
  },{"global/document":23,"hyperx":25,"on-load":27}],23:[function(require,module,exports){
  (function (global){
  var topLevel="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},minDoc=require("min-document");if("undefined"!=typeof document)module.exports=document;else{var doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"];doccy||(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"]=minDoc),module.exports=doccy}
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
  
  },{"min-document":1}],24:[function(require,module,exports){
  (function (global){
  "undefined"!=typeof window?module.exports=window:"undefined"!=typeof global?module.exports=global:"undefined"!=typeof self?module.exports=self:module.exports={};
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
  
  },{}],25:[function(require,module,exports){
  function quot(T){return T===ATTR_VALUE_SQ||T===ATTR_VALUE_DQ}function has(T,e){return hasOwn.call(T,e)}function selfClosing(T){return closeRE.test(T)}var attrToProp=require("hyperscript-attribute-to-property"),VAR=0,TEXT=1,OPEN=2,CLOSE=3,ATTR=4,ATTR_KEY=5,ATTR_KEY_W=6,ATTR_VALUE_W=7,ATTR_VALUE=8,ATTR_VALUE_SQ=9,ATTR_VALUE_DQ=10,ATTR_EQ=11,ATTR_BREAK=12;module.exports=function(T,e){function A(T){return"function"==typeof T?T:"string"==typeof T?T:T&&"object"==typeof T?T:t("",T)}T=attrToProp(T),e||(e={});var t=e.concat||function(T,e){return String(T)+String(e)};return function(e){function r(T){var e=[];R===ATTR_VALUE_W&&(R=ATTR);for(var A=0;A<T.length;A++){var t=T.charAt(A);R===TEXT&&"<"===t?(n.length&&e.push([TEXT,n]),n="",R=OPEN):">"!==t||quot(R)?R===TEXT?n+=t:R===OPEN&&/\s/.test(t)?(e.push([OPEN,n]),n="",R=ATTR):R===OPEN?n+=t:R===ATTR&&/[\w-]/.test(t)?(R=ATTR_KEY,n=t):R===ATTR&&/\s/.test(t)?(n.length&&e.push([ATTR_KEY,n]),e.push([ATTR_BREAK])):R===ATTR_KEY&&/\s/.test(t)?(e.push([ATTR_KEY,n]),n="",R=ATTR_KEY_W):R===ATTR_KEY&&"="===t?(e.push([ATTR_KEY,n],[ATTR_EQ]),n="",R=ATTR_VALUE_W):R===ATTR_KEY?n+=t:R!==ATTR_KEY_W&&R!==ATTR||"="!==t?R!==ATTR_KEY_W&&R!==ATTR||/\s/.test(t)?R===ATTR_VALUE_W&&'"'===t?R=ATTR_VALUE_DQ:R===ATTR_VALUE_W&&"'"===t?R=ATTR_VALUE_SQ:R===ATTR_VALUE_DQ&&'"'===t?(e.push([ATTR_VALUE,n],[ATTR_BREAK]),n="",R=ATTR):R===ATTR_VALUE_SQ&&"'"===t?(e.push([ATTR_VALUE,n],[ATTR_BREAK]),n="",R=ATTR):R!==ATTR_VALUE_W||/\s/.test(t)?R===ATTR_VALUE&&/\s/.test(t)?(e.push([ATTR_VALUE,n],[ATTR_BREAK]),n="",R=ATTR):R!==ATTR_VALUE&&R!==ATTR_VALUE_SQ&&R!==ATTR_VALUE_DQ||(n+=t):(R=ATTR_VALUE,A--):(e.push([ATTR_BREAK]),/[\w-]/.test(t)?(n+=t,R=ATTR_KEY):R=ATTR):(e.push([ATTR_EQ]),R=ATTR_VALUE_W):(R===OPEN?e.push([OPEN,n]):R===ATTR_KEY?e.push([ATTR_KEY,n]):R===ATTR_VALUE&&n.length&&e.push([ATTR_VALUE,n]),e.push([CLOSE]),n="",R=TEXT)}return R===TEXT&&n.length?(e.push([TEXT,n]),n=""):R===ATTR_VALUE&&n.length?(e.push([ATTR_VALUE,n]),n=""):R===ATTR_VALUE_DQ&&n.length?(e.push([ATTR_VALUE,n]),n=""):R===ATTR_VALUE_SQ&&n.length?(e.push([ATTR_VALUE,n]),n=""):R===ATTR_KEY&&(e.push([ATTR_KEY,n]),n=""),e}for(var R=TEXT,n="",E=arguments.length,_=[],s=0;s<e.length;s++)if(s<E-1){var o=arguments[s+1],l=r(e[s]),h=R;h===ATTR_VALUE_DQ&&(h=ATTR_VALUE),h===ATTR_VALUE_SQ&&(h=ATTR_VALUE),h===ATTR_VALUE_W&&(h=ATTR_VALUE),h===ATTR&&(h=ATTR_KEY),l.push([VAR,h,o]),_.push.apply(_,l)}else _.push.apply(_,r(e[s]));for(var i=[null,{},[]],f=[[i,-1]],s=0;s<_.length;s++){var a=f[f.length-1][0],l=_[s],p=l[0];if(p===OPEN&&/^\//.test(l[1])){var u=f[f.length-1][1];f.length>1&&(f.pop(),f[f.length-1][0][2][u]=T(a[0],a[1],a[2].length?a[2]:void 0))}else if(p===OPEN){var g=[l[1],{},[]];a[2].push(g),f.push([g,a[2].length-1])}else if(p===ATTR_KEY||p===VAR&&l[1]===ATTR_KEY){for(var L,V="";s<_.length;s++)if(_[s][0]===ATTR_KEY)V=t(V,_[s][1]);else{if(_[s][0]!==VAR||_[s][1]!==ATTR_KEY)break;if("object"!=typeof _[s][2]||V)V=t(V,_[s][2]);else for(L in _[s][2])_[s][2].hasOwnProperty(L)&&!a[1][L]&&(a[1][L]=_[s][2][L])}_[s][0]===ATTR_EQ&&s++;for(var U=s;s<_.length;s++)if(_[s][0]===ATTR_VALUE||_[s][0]===ATTR_KEY)a[1][V]?a[1][V]=t(a[1][V],_[s][1]):a[1][V]=A(_[s][1]);else{if(_[s][0]!==VAR||_[s][1]!==ATTR_VALUE&&_[s][1]!==ATTR_KEY){!V.length||a[1][V]||s!==U||_[s][0]!==CLOSE&&_[s][0]!==ATTR_BREAK||(a[1][V]=V.toLowerCase());break}a[1][V]?a[1][V]=t(a[1][V],_[s][2]):a[1][V]=A(_[s][2])}}else if(p===ATTR_KEY)a[1][l[1]]=!0;else if(p===VAR&&l[1]===ATTR_KEY)a[1][l[2]]=!0;else if(p===CLOSE){if(selfClosing(a[0])&&f.length){var u=f[f.length-1][1];f.pop(),f[f.length-1][0][2][u]=T(a[0],a[1],a[2].length?a[2]:void 0)}}else if(p===VAR&&l[1]===TEXT)void 0===l[2]||null===l[2]?l[2]="":l[2]||(l[2]=t("",l[2])),Array.isArray(l[2][0])?a[2].push.apply(a[2],l[2]):a[2].push(l[2]);else if(p===TEXT)a[2].push(l[1]);else if(p!==ATTR_EQ&&p!==ATTR_BREAK)throw new Error("unhandled: "+p)}if(i[2].length>1&&/^\s*$/.test(i[2][0])&&i[2].shift(),i[2].length>2||2===i[2].length&&/\S/.test(i[2][1]))throw new Error("multiple root elements must be wrapped in an enclosing tag");return Array.isArray(i[2][0])&&"string"==typeof i[2][0][0]&&Array.isArray(i[2][0][2])&&(i[2][0]=T(i[2][0][0],i[2][0][1],i[2][0][2])),i[2][0]}};var hasOwn=Object.prototype.hasOwnProperty,closeRE=RegExp("^("+["area","base","basefont","bgsound","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr","animate","animateTransform","circle","cursor","desc","ellipse","feBlend","feColorMatrix","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","font-face-format","font-face-name","font-face-uri","glyph","glyphRef","hkern","image","line","missing-glyph","mpath","path","polygon","polyline","rect","set","stop","tref","use","view","vkern"].join("|")+")(?:[.#][a-zA-Z0-9-_:-]+)*$");
  },{"hyperscript-attribute-to-property":26}],26:[function(require,module,exports){
  function attributeToProperty(r){return function(t,o,e){for(var n in o)n in transform&&(o[transform[n]]=o[n],delete o[n]);return r(t,o,e)}}module.exports=attributeToProperty;var transform={class:"className",for:"htmlFor","http-equiv":"httpEquiv"};
  },{}],27:[function(require,module,exports){
  function turnon(t,e){watch[t][0]&&0===watch[t][2]&&(watch[t][0](e),watch[t][2]=1)}function turnoff(t,e){watch[t][1]&&1===watch[t][2]&&(watch[t][1](e),watch[t][2]=0)}function eachAttr(t,e,a){var r=t.target.getAttribute(KEY_ATTR);return sameOrigin(t.oldValue,r)?void(watch[r]=watch[t.oldValue]):(watch[t.oldValue]&&a(t.oldValue,t.target),void(watch[r]&&e(r,t.target)))}function sameOrigin(t,e){return!(!t||!e)&&watch[t][3]===watch[e][3]}function eachMutation(t,e){for(var a=Object.keys(watch),r=0;r<t.length;r++){if(t[r]&&t[r].getAttribute&&t[r].getAttribute(KEY_ATTR)){var n=t[r].getAttribute(KEY_ATTR);a.forEach(function(a){n===a&&e(a,t[r])})}t[r].childNodes.length>0&&eachMutation(t[r].childNodes,e)}}var document=require("global/document"),window=require("global/window"),watch=Object.create(null),KEY_ID="onloadid"+(new Date%9e6).toString(36),KEY_ATTR="data-"+KEY_ID,INDEX=0;if(window&&window.MutationObserver){var observer=new MutationObserver(function(t){if(!(Object.keys(watch).length<1))for(var e=0;e<t.length;e++)t[e].attributeName!==KEY_ATTR?(eachMutation(t[e].removedNodes,turnoff),eachMutation(t[e].addedNodes,turnon)):eachAttr(t[e],turnon,turnoff)});observer.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0,attributeFilter:[KEY_ATTR]})}module.exports=function t(e,a,r,n){return a=a||function(){},r=r||function(){},e.setAttribute(KEY_ATTR,"o"+INDEX),watch["o"+INDEX]=[a,r,0,n||t.caller],INDEX+=1,e};
  },{"global/document":23,"global/window":24}],28:[function(require,module,exports){
  "use strict";function toElement(e){!range&&doc.createRange&&(range=doc.createRange(),range.selectNode(doc.body));var t;return range&&range.createContextualFragment?t=range.createContextualFragment(e):(t=doc.createElement("body"),t.innerHTML=e),t.childNodes[0]}function syncBooleanAttrProp(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n,""))}function noop(){}function compareNodeNames(e,t){var n=e.nodeName,o=t.nodeName;return n===o||!!(t.actualize&&n.charCodeAt(0)<91&&o.charCodeAt(0)>90)&&n===o.toUpperCase()}function createElementNS(e,t){return t&&t!==NS_XHTML?doc.createElementNS(t,e):doc.createElement(e)}function morphAttrs(e,t){var n,o,r,a,i,d,l=t.attributes;if(t.assignAttributes)t.assignAttributes(e);else for(n=l.length-1;n>=0;--n)o=l[n],r=o.name,a=o.namespaceURI,i=o.value,a?(r=o.localName||r,d=e.getAttributeNS(a,r),d!==i&&e.setAttributeNS(a,r,i)):(d=e.getAttribute(r),d!==i&&e.setAttribute(r,i));for(l=e.attributes,n=l.length-1;n>=0;--n)o=l[n],o.specified!==!1&&(r=o.name,a=o.namespaceURI,a?(r=o.localName||r,hasAttributeNS(t,a,r)||e.removeAttributeNS(a,r)):hasAttributeNS(t,null,r)||e.removeAttribute(r))}function moveChildren(e,t){for(var n=e.firstChild;n;){var o=n.nextSibling;t.appendChild(n),n=o}return t}function defaultGetNodeKey(e){return e.id}function morphdom(e,t,n){function o(e){c?c.push(e):c=[e]}function r(e,t){if(e.nodeType===ELEMENT_NODE)for(var n=e.firstChild;n;){var a=void 0;t&&(a=N(n))?o(a):(v(n),n.firstChild&&r(n,t)),n=n.nextSibling}}function a(e,t,n){p(e)!==!1&&(t&&t.removeChild(e),v(e),r(e,n))}function i(e){if(e.nodeType===ELEMENT_NODE)for(var t=e.firstChild;t;){var n=N(t);n&&(A[n]=t),i(t),t=t.nextSibling}}function d(e){f(e);for(var t=e.firstChild;t;){var n=t.nextSibling,o=N(t);if(o){var r=A[o];r&&compareNodeNames(t,r)&&(t.parentNode.replaceChild(r,t),l(r,t))}d(t),t=n}}function l(n,r,i){var u,c=N(r);if(c&&delete A[c],!t.isSameNode||!t.isSameNode(e)){if(!i){if(m(n,r)===!1)return;if(morphAttrs(n,r),E(n),h(n,r)===!1)return}if("TEXTAREA"!==n.nodeName){var f,p,v,b,T=r.firstChild,g=n.firstChild;e:for(;T;){for(v=T.nextSibling,f=N(T);g;){if(p=g.nextSibling,T.isSameNode&&T.isSameNode(g)){T=v,g=p;continue e}u=N(g);var S=g.nodeType,C=void 0;if(S===T.nodeType&&(S===ELEMENT_NODE?(f?f!==u&&((b=A[f])?g.nextSibling===b?C=!1:(n.insertBefore(b,g),u?o(u):a(g,n,!0),p=g.nextSibling,g=b):C=!1):u&&(C=!1),C=C!==!1&&compareNodeNames(g,T),C&&l(g,T)):S!==TEXT_NODE&&S!=COMMENT_NODE||(C=!0,g.nodeValue=T.nodeValue)),C){T=v,g=p;continue e}u?o(u):a(g,n,!0),g=p}if(f&&(b=A[f])&&compareNodeNames(b,T))n.appendChild(b),l(b,T);else{var y=s(T);y!==!1&&(y&&(T=y),T.actualize&&(T=T.actualize(n.ownerDocument||doc)),n.appendChild(T),d(T))}T=v,g=p}for(;g;)p=g.nextSibling,(u=N(g))?o(u):a(g,n,!0),g=p}var O=specialElHandlers[n.nodeName];O&&O(n,r)}}if(n||(n={}),"string"==typeof t)if("#document"===e.nodeName||"HTML"===e.nodeName){var u=t;t=doc.createElement("html"),t.innerHTML=u}else t=toElement(t);var c,N=n.getNodeKey||defaultGetNodeKey,s=n.onBeforeNodeAdded||noop,f=n.onNodeAdded||noop,m=n.onBeforeElUpdated||noop,E=n.onElUpdated||noop,p=n.onBeforeNodeDiscarded||noop,v=n.onNodeDiscarded||noop,h=n.onBeforeElChildrenUpdated||noop,b=n.childrenOnly===!0,A={};i(e);var T=e,g=T.nodeType,S=t.nodeType;if(!b)if(g===ELEMENT_NODE)S===ELEMENT_NODE?compareNodeNames(e,t)||(v(e),T=moveChildren(e,createElementNS(t.nodeName,t.namespaceURI))):T=t;else if(g===TEXT_NODE||g===COMMENT_NODE){if(S===g)return T.nodeValue=t.nodeValue,T;T=t}if(T===t)v(e);else if(l(T,t,b),c)for(var C=0,y=c.length;C<y;C++){var O=A[c[C]];O&&a(O,O.parentNode,!1)}return!b&&T!==e&&e.parentNode&&(T.actualize&&(T=T.actualize(e.ownerDocument||doc)),e.parentNode.replaceChild(T,e)),T}var range,doc="undefined"!=typeof document&&document,testEl=doc?doc.body||doc.createElement("div"):{},NS_XHTML="http://www.w3.org/1999/xhtml",ELEMENT_NODE=1,TEXT_NODE=3,COMMENT_NODE=8,hasAttributeNS;hasAttributeNS=testEl.hasAttributeNS?function(e,t,n){return e.hasAttributeNS(t,n)}:testEl.hasAttribute?function(e,t,n){return e.hasAttribute(n)}:function(e,t,n){return!!e.getAttributeNode(n)};var specialElHandlers={OPTION:function(e,t){syncBooleanAttrProp(e,t,"selected")},INPUT:function(e,t){syncBooleanAttrProp(e,t,"checked"),syncBooleanAttrProp(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),hasAttributeNS(t,null,"value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n),e.firstChild&&(e.firstChild.nodeValue=n)}};module.exports=morphdom;
  },{}],29:[function(require,module,exports){
  module.exports=["onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmousemove","onmouseout","ondragstart","ondrag","ondragenter","ondragleave","ondragover","ondrop","ondragend","onkeydown","onkeypress","onkeyup","onunload","onabort","onerror","onresize","onscroll","onselect","onchange","onsubmit","onreset","onfocus","onblur","oninput","oncontextmenu","onfocusin","onfocusout"];
  },{}],30:[function(require,module,exports){
  module.exports=function e(t,n){for(var o=0;o<n.length;o++){var a=n[o];if(Array.isArray(a))e(t,a);else{if(("number"==typeof a||"boolean"==typeof a||a instanceof Date||a instanceof RegExp)&&(a=a.toString()),"string"==typeof a){if(t.lastChild&&"#text"===t.lastChild.nodeName){t.lastChild.nodeValue+=a;continue}a=document.createTextNode(a)}a&&a.nodeType&&t.appendChild(a)}}};
  },{}],31:[function(require,module,exports){
  arguments[4][27][0].apply(exports,arguments)
  },{"dup":27,"global/document":32,"global/window":33}],32:[function(require,module,exports){
  (function (global){
  var topLevel="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},minDoc=require("min-document");if("undefined"!=typeof document)module.exports=document;else{var doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"];doccy||(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"]=minDoc),module.exports=doccy}
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
  
  },{"min-document":1}],33:[function(require,module,exports){
  (function (global){
  "undefined"!=typeof window?module.exports=window:"undefined"!=typeof global?module.exports=global:"undefined"!=typeof self?module.exports=self:module.exports={};
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
  
  },{}],34:[function(require,module,exports){
  (function (global){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},Utils=require("../core/Utils"),Translator=require("../core/Translator"),ee=require("namespace-emitter"),UppySocket=require("./UppySocket"),Uppy=function(){function t(e){_classCallCheck(this,t);var i={autoProceed:!0,debug:!1};this.opts=_extends({},i,e),this.plugins={},this.translator=new Translator({locale:this.opts.locale}),this.i18n=this.translator.translate.bind(this.translator),this.getState=this.getState.bind(this),this.updateMeta=this.updateMeta.bind(this),this.initSocket=this.initSocket.bind(this),this.log=this.log.bind(this),this.addFile=this.addFile.bind(this),this.bus=this.emitter=ee(),this.on=this.bus.on.bind(this.bus),this.emit=this.bus.emit.bind(this.bus),this.state={files:{},capabilities:{resumableUploads:!1},totalProgress:0},this.opts.debug&&(global.UppyState=this.state,global.uppyLog="",global.UppyAddFile=this.addFile.bind(this),global._Uppy=this)}return t.prototype.updateAll=function(t){var e=this;Object.keys(this.plugins).forEach(function(i){e.plugins[i].forEach(function(e){e.update(t)})})},t.prototype.setState=function(t){var e=_extends({},this.state,t);this.emit("core:state-update",this.state,e,t),this.state=e,this.updateAll(this.state)},t.prototype.getState=function(){return this.state},t.prototype.updateMeta=function(t,e){var i=_extends({},this.getState().files),s=_extends({},i[e].meta,t);i[e]=_extends({},i[e],{meta:s}),this.setState({files:i})},t.prototype.addFile=function(t){var e=_extends({},this.state.files),i=t.name||"noname",s=Utils.getFileType(t)?Utils.getFileType(t).split("/"):["",""],n=s[0],o=s[1],r=Utils.getFileNameAndExtension(i)[1],a=t.isRemote||!1,l=Utils.generateFileID(i),u={source:t.source||"",id:l,name:i,extension:r||"",meta:{name:i},type:{general:n,specific:o},data:t.data,progress:{percentage:0,uploadComplete:!1,uploadStarted:!1},size:t.data.size||"N/A",isRemote:a,remote:t.remote||""};e[l]=u,this.setState({files:e}),this.bus.emit("file-added",l),this.log("Added file: "+i+", "+l+", mime type: "+s),"image"!==n||a||this.addThumbnail(u.id),this.opts.autoProceed&&this.bus.emit("core:upload")},t.prototype.removeFile=function(t){var e=_extends({},this.getState().files);delete e[t],this.setState({files:e}),this.log("Removed file: "+t)},t.prototype.addThumbnail=function(t){var e=this,i=this.getState().files[t];Utils.readFile(i.data).then(function(t){return Utils.createImageThumbnail(t,200)}).then(function(i){var s=_extends({},e.getState().files),n=_extends({},s[t],{preview:i});s[t]=n,e.setState({files:s})})},t.prototype.startUpload=function(){this.emit("core:upload")},t.prototype.calculateProgress=function(t){var e=t.id,i=_extends({},this.getState().files);if(!i[e])return void console.error("Trying to set progress for a file that’s not with us anymore: ",e);var s=_extends({},i[e],_extends({},{progress:_extends({},i[e].progress,{bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:Math.round((t.bytesUploaded/t.bytesTotal*100).toFixed(2))})}));i[t.id]=s;var n=Object.keys(i).filter(function(t){return i[t].progress.uploadStarted}),o=100*n.length,r=0;n.forEach(function(t){r+=i[t].progress.percentage});var a=Math.round((100*r/o).toFixed(2));this.setState({totalProgress:a,files:i})},t.prototype.actions=function(){var t=this;this.on("core:file-add",function(e){t.addFile(e)}),this.on("core:file-remove",function(e){t.removeFile(e)}),this.on("core:cancel-all",function(){var e=t.getState().files;Object.keys(e).forEach(function(i){t.removeFile(e[i].id)})}),this.on("core:upload-started",function(e,i){var s=_extends({},t.getState().files),n=_extends({},s[e],_extends({},{progress:_extends({},s[e].progress,{uploadStarted:Date.now()})}));s[e]=n,t.setState({files:s})}),this.on("core:upload-progress",function(e){t.calculateProgress(e)}),this.on("core:upload-success",function(e,i){var s=_extends({},t.getState().files),n=_extends({},s[e],{progress:_extends({},s[e].progress,{uploadComplete:!0}),uploadURL:i});if(s[e]=n,100===t.getState().totalProgress){var o=Object.keys(s).filter(function(t){return s[t].progress.uploadComplete});t.emit("core:success",o.length)}t.setState({files:s})}),this.on("core:update-meta",function(e,i){t.updateMeta(e,i)}),"undefined"!=typeof window&&(window.addEventListener("online",function(){return t.isOnline(!0)}),window.addEventListener("offline",function(){return t.isOnline(!1)}),setTimeout(function(){return t.isOnline()},3e3))},t.prototype.isOnline=function(t){var e=t||window.navigator.onLine;e?(this.emit("is-online"),this.wasOffline&&(this.emit("informer","Connected!","success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.emit("informer","No internet connection","error",0),this.wasOffline=!0)},t.prototype.use=function(t,e){var i=new t(this,e),s=i.id;if(this.plugins[i.type]=this.plugins[i.type]||[],!s)throw new Error("Your plugin must have a name");if(!i.type)throw new Error("Your plugin must have a type");var n=this.getPlugin(s);if(n){var o="Already found a plugin named '"+n.name+"'.\n        Tried to use: '"+s+"'.\n        Uppy is currently limited to running one of every plugin.\n        Share your use case with us over at\n        https://github.com/transloadit/uppy/issues/\n        if you want us to reconsider.";throw new Error(o)}return this.plugins[i.type].push(i),i.install(),this},t.prototype.getPlugin=function(t){var e=!1;return this.iteratePlugins(function(i){var s=i.id;if(s===t)return e=i,!1}),e},t.prototype.iteratePlugins=function(t){var e=this;Object.keys(this.plugins).forEach(function(i){e.plugins[i].forEach(t)})},t.prototype.log=function(t,e){this.opts.debug&&(t===""+t?console.log("LOG: "+t):console.dir(t),"error"===e&&console.error("LOG: "+t),global.uppyLog=global.uppyLog+"\nDEBUG LOG: "+t)},t.prototype.initSocket=function(t){return this.socket||(this.socket=new UppySocket(t)),this.socket},t.prototype.run=function(){this.log("Core is run, initializing actions..."),this.actions()},t}();module.exports=function(t){if(!(this instanceof Uppy))return new Uppy(t)};
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
  
  },{"../core/Translator":35,"../core/Utils":37,"./UppySocket":36,"namespace-emitter":7}],35:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};module.exports=function(){function t(e){_classCallCheck(this,t);var r={locale:{strings:{},pluralize:function(t){return 1===t?0:1}}};this.opts=_extends({},r,e),this.locale=_extends({},r.locale,e.locale),console.log(this.opts.locale)}return t.prototype.interpolate=function(t,e){var r=String.prototype.replace,n=/\$/g,o="$$$$";for(var a in e)if("_"!==a&&e.hasOwnProperty(a)){var l=e[a];"string"==typeof l&&(l=r.call(e[a],n,o)),t=r.call(t,new RegExp("%\\{"+a+"\\}","g"),l)}return t},t.prototype.translate=function(t,e){if(e&&e.smart_count){var r=this.locale.pluralize(e.smart_count);return this.interpolate(this.opts.locale.strings[t][r],e)}return this.interpolate(this.opts.locale.strings[t],e)},t}();
  },{}],36:[function(require,module,exports){
  "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ee=require("namespace-emitter");module.exports=function(){function e(t){var s=this;_classCallCheck(this,e),this.queued=[],this.isOpen=!1,this.socket=new WebSocket(t.target),this.emitter=ee(),this.socket.onopen=function(e){for(s.isOpen=!0;s.queued.length>0&&s.isOpen;){var t=s.queued[0];s.send(t.action,t.payload),s.queued=s.queued.slice(1)}},this.socket.onclose=function(e){s.isOpen=!1},this._handleMessage=this._handleMessage.bind(this),this.socket.onmessage=this._handleMessage,this.close=this.close.bind(this),this.emit=this.emit.bind(this),this.on=this.on.bind(this),this.once=this.once.bind(this),this.send=this.send.bind(this)}return e.prototype.close=function(){return this.socket.close()},e.prototype.send=function(e,t){return this.isOpen?void this.socket.send(JSON.stringify({action:e,payload:t})):void this.queued.push({action:e,payload:t})},e.prototype.on=function(e,t){console.log(e),this.emitter.on(e,t)},e.prototype.emit=function(e,t){console.log(e),this.emitter.emit(e,t)},e.prototype.once=function(e,t){this.emitter.once(e,t)},e.prototype._handleMessage=function(e){try{var t=JSON.parse(e.data);console.log(t),this.emit(t.action,t.payload)}catch(e){console.log(e)}},e}();
  },{"namespace-emitter":7}],37:[function(require,module,exports){
  "use strict";function flatten(e){return[].concat.apply([],e)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}function $(e,t){return(t||document).querySelector(e)}function $$(e,t){var n;return"string"!=typeof e?(n=e,Array.prototype.slice.call(n)):void(n=(t||document).querySelectorAll(e))}function truncateString(e,t){return e.length>t?e.substr(0,t/2)+"..."+e.substr(e.length-t/4,e.length):e}function secondsToTime(e){var t=Math.floor(e/3600)%24,n=Math.floor(e/60)%60,r=Math.floor(e%60);return{hours:t,minutes:n,seconds:r}}function groupBy(e,t){return e.reduce(function(e,n){var r=t(n),o=e.get(r)||[];return o.push(n),e.set(r,o),e},new Map)}function every(e,t){return e.reduce(function(e,n){return!!e&&t(n)},!0)}function toArray(e){return Array.prototype.slice.call(e||[],0)}function generateFileID(e){var t=e.toLowerCase();return t=t.replace(/[^A-Z0-9]/gi,""),t+=Date.now()}function extend(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object.assign.apply(this,[{}].concat(t))}function getProportionalImageHeight(e,t){var n=e.width/e.height,r=Math.round(t/n);return r}function getFileType(e){return e.type?e.type:""}function getFileNameAndExtension(e){var t=/(?:\.([^.]+))?$/,n=t.exec(e)[1],r=e.replace("."+n,"");return[r,n]}function readFile(e){return new _Promise(function(t,n){var r=new FileReader;r.addEventListener("load",function(e){return t(e.target.result)}),r.readAsDataURL(e)})}function createImageThumbnail(e,t){return new _Promise(function(n,r){var o=new Image;o.addEventListener("load",function(){var e=t,r=getProportionalImageHeight(o,e),a=document.createElement("canvas"),i=a.getContext("2d");a.width=e,a.height=r,i.drawImage(o,0,0,e,r);var u=a.toDataURL("image/png");return n(u)}),o.src=e})}function dataURItoBlob(e,t,n){var r=e.split(",")[1],o=t.mimeType||e.split(",")[0].split(":")[1].split(";")[0];null==o&&(o="plain/text");for(var a=atob(r),i=[],u=0;u<a.length;u++)i.push(a.charCodeAt(u));return n?new File([new Uint8Array(i)],t.name||"",{type:o}):new Blob([new Uint8Array(i)],{type:o})}function dataURItoFile(e,t){return dataURItoBlob(e,t,!0)}function copyToClipboard(e,t){return t=t||"Copy the URL below",new _Promise(function(n,r){var o=document.createElement("textarea");o.setAttribute("style",{position:"fixed",top:0,left:0,width:"2em",height:"2em",padding:0,border:"none",outline:"none",boxShadow:"none",background:"transparent"}),o.value=e,document.body.appendChild(o),o.select();var a=function(n){return document.body.removeChild(o),window.prompt(t,e),r("Oops, unable to copy displayed fallback prompt: "+n)};try{var i=document.execCommand("copy");return i?(document.body.removeChild(o),n()):a("copy command unavailable")}catch(e){return document.body.removeChild(o),a(e)}})}function getSpeed(e){if(!e.bytesUploaded)return 0;var t=new Date-e.uploadStarted,n=e.bytesUploaded/(t/1e3);return n}function getETA(e){if(!e.bytesUploaded)return 0;var t=getSpeed(e),n=e.bytesTotal-e.bytesUploaded,r=Math.round(n/t*10)/10;return r}function prettyETA(e){var t=secondsToTime(e),n=t.hours?t.hours+"h ":"",r=t.hours?("0"+t.minutes).substr(-2):t.minutes,o=r?r+"m ":"",a=r?("0"+t.seconds).substr(-2):t.seconds,i=a+"s";return""+n+o+i}var _Promise="undefined"==typeof Promise?require("es6-promise").Promise:Promise;module.exports={generateFileID:generateFileID,toArray:toArray,every:every,flatten:flatten,groupBy:groupBy,$:$,$$:$$,extend:extend,readFile:readFile,createImageThumbnail:createImageThumbnail,getProportionalImageHeight:getProportionalImageHeight,isTouchDevice:isTouchDevice,getFileNameAndExtension:getFileNameAndExtension,truncateString:truncateString,getFileType:getFileType,secondsToTime:secondsToTime,dataURItoBlob:dataURItoBlob,dataURItoFile:dataURItoFile,getSpeed:getSpeed,getETA:getETA,copyToClipboard:copyToClipboard,prettyETA:prettyETA};
  },{"es6-promise":6}],38:[function(require,module,exports){
  "use strict";var Core=require("./Core");module.exports=Core;
  },{"./Core":34}],39:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(e){var t=e.demo?function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("button");return t.onclick=arguments[0],t.setAttribute("class","UppyProvider-authBtnDemo"),e(t,["Proceed with Demo Account"]),t}(e.handleDemoAuth):null;return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");t.setAttribute("class","UppyProvider-auth");var r=document.createElement("h1");r.setAttribute("class","UppyProvider-authTitle");var n=document.createElement("span");n.setAttribute("class","UppyProvider-authTitleName"),e(n,[arguments[0]]);var u=document.createElement("br");e(r,["\n        Please authenticate with ",n,u," to select files\n      "]);var a=document.createElement("button");return a.onclick=arguments[1],a.setAttribute("class","UppyProvider-authBtn"),e(a,["Authenticate"]),e(t,["\n      ",r,"\n      ",a,"\n      ",arguments[2],"\n    "]),t}(e.pluginName,e.handleAuth,t)};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],40:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(e){return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),r=document.createElement("div"),n=document.createElement("span");return e(n,["\n        Something went wrong.  Probably our fault. ",arguments[0],"\n      "]),e(r,["\n      ",n,"\n    "]),r}(e.error)};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],41:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},AuthView=require("./AuthView"),Browser=require("./new/Browser"),ErrorView=require("./Error");module.exports=function(){function t(e){_classCallCheck(this,t),this.plugin=e,this.Provider=e[e.id],this.addFile=this.addFile.bind(this),this.filterItems=this.filterItems.bind(this),this.filterQuery=this.filterQuery.bind(this),this.getFolder=this.getFolder.bind(this),this.getNextFolder=this.getNextFolder.bind(this),this.handleRowClick=this.handleRowClick.bind(this),this.logout=this.logout.bind(this),this.handleAuth=this.handleAuth.bind(this),this.handleDemoAuth=this.handleDemoAuth.bind(this),this.sortByTitle=this.sortByTitle.bind(this),this.sortByDate=this.sortByDate.bind(this),this.isActiveRow=this.isActiveRow.bind(this),this.render=this.render.bind(this)}return t.prototype.updateState=function(t){var e,i=this.plugin.stateId,n=this.plugin.core.state;this.plugin.core.setState((e={},e[i]=_extends({},n[i],t),e))},t.prototype.getFolder=function(t,e){var i=this;return this.Provider.list(t).then(function(n){var o=[],s=[],r=void 0,l=i.plugin.core.getState()[i.plugin.stateId],a=l.directories.findIndex(function(e){return t===e.id});r=a!==-1?l.directories.slice(0,a+1):l.directories.concat([{id:t,title:e||i.plugin.getItemName(n)}]),i.plugin.getItemSubList(n).forEach(function(t){i.plugin.isFolder(t)?o.push(t):s.push(t)});var h={folders:o,files:s,directories:r};return i.updateState(h),h}).catch(function(t){return t})},t.prototype.getNextFolder=function(t){var e=this.plugin.getItemRequestPath(t);this.getFolder(e,this.plugin.getItemName(t))},t.prototype.addFile=function(t){var e={source:this.plugin.id,data:this.plugin.getItemData(t),name:this.plugin.getItemName(t),type:this.plugin.getMimeType(t),isRemote:!0,body:{fileId:this.plugin.getItemId(t)},remote:{host:this.plugin.opts.host,url:this.plugin.opts.host+"/"+this.Provider.id+"/get/"+this.plugin.getItemRequestPath(t),body:{fileId:this.plugin.getItemId(t)}}};console.log("adding file"),this.plugin.core.emitter.emit("core:file-add",e)},t.prototype.logout=function(){var t=this;this.Provider.logout(location.href).then(function(t){return t.json()}).then(function(e){if(e.ok){var i={authenticated:!1,files:[],folders:[],directories:[]};t.updateState(i)}})},t.prototype.handleRowClick=function(t){var e=this.plugin.core.getState()[this.plugin.stateId],i=_extends({},e,{activeRow:this.plugin.getItemId(t)});this.updateState(i)},t.prototype.filterQuery=function(t){var e=this.plugin.core.getState()[this.plugin.stateId];this.updateState(_extends({},e,{filterInput:t.target.value}))},t.prototype.filterItems=function(t){var e=this,i=this.plugin.core.getState()[this.plugin.stateId];return t.filter(function(t){return e.plugin.getItemName(t).toLowerCase().indexOf(i.filterInput.toLowerCase())!==-1})},t.prototype.sortByTitle=function(){var t=this,e=_extends({},this.plugin.core.getState()[this.plugin.stateId]),i=e.files,n=e.folders,o=e.sorting,s=i.sort(function(e,i){return"titleDescending"===o?t.plugin.getItemName(i).localeCompare(t.plugin.getItemName(e)):t.plugin.getItemName(e).localeCompare(t.plugin.getItemName(i))}),r=n.sort(function(e,i){return"titleDescending"===o?t.plugin.getItemName(i).localeCompare(t.plugin.getItemName(e)):t.plugin.getItemName(e).localeCompare(t.plugin.getItemName(i))});this.updateState(_extends({},e,{files:s,folders:r,sorting:"titleDescending"===o?"titleAscending":"titleDescending"}))},t.prototype.sortByDate=function(){var t=this,e=_extends({},this.plugin.core.getState()[this.plugin.stateId]),i=e.files,n=e.folders,o=e.sorting,s=i.sort(function(e,i){var n=new Date(t.plugin.getItemModifiedDate(e)),s=new Date(t.plugin.getItemModifiedDate(i));return"dateDescending"===o?n>s?-1:n<s?1:0:n>s?1:n<s?-1:0}),r=n.sort(function(e,i){var n=new Date(t.plugin.getItemModifiedDate(e)),s=new Date(t.plugin.getItemModifiedDate(i));return"dateDescending"===o?n>s?-1:n<s?1:0:n>s?1:n<s?-1:0});this.updateState(_extends({},e,{files:s,folders:r,sorting:"dateDescending"===o?"dateAscending":"dateDescending"}))},t.prototype.isActiveRow=function(t){return this.plugin.core.getState()[this.plugin.stateId].activeRow===this.plugin.getItemId(t)},t.prototype.handleDemoAuth=function(){var t=this.plugin.core.getState()[this.plugin.stateId];this.updateState({},t,{authenticated:!0})},t.prototype.handleAuth=function(){var t=this,e=Math.floor(999999*Math.random())+1,i=""+location.href+(location.search?"&":"?")+"id="+e,n=btoa(JSON.stringify({redirect:i})),o=this.plugin.opts.host+"/connect/"+this.Provider.authProvider+"?state="+n,s=window.open(o,"_blank"),r=function e(){var n=void 0;try{n=s.location.href}catch(t){if(t instanceof DOMException||t instanceof TypeError)return setTimeout(e,100);throw t}n.split("#")[0]===i?(s.close(),t.Provider.auth().then(t.plugin.onAuth)):setTimeout(e,100)};r()},t.prototype.render=function(t){var e=t[this.plugin.stateId],i=e.authenticated,n=e.error;if(n)return ErrorView({error:n});if(!i)return AuthView({pluginName:this.plugin.title,demo:this.plugin.opts.demo,handleAuth:this.handleAuth,handleDemoAuth:this.handleDemoAuth});var o=_extends({},t[this.plugin.stateId],{getNextFolder:this.getNextFolder,getFolder:this.getFolder,addFile:this.addFile,filterItems:this.filterItems,filterQuery:this.filterQuery,handleRowClick:this.handleRowClick,sortByTitle:this.sortByTitle,sortByDate:this.sortByDate,logout:this.logout,demo:this.plugin.opts.demo,isActiveRow:this.isActiveRow,getItemName:this.plugin.getItemName,getItemIcon:this.plugin.getItemIcon});return Browser(o)},t}();
  },{"./AuthView":39,"./Error":40,"./new/Browser":44}],42:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(e){return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("li"),n=document.createElement("button");return n.onclick=arguments[0],e(n,[arguments[1]]),e(t,["\n      ",n,"\n    "]),t}(e.getFolder,e.title)};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],43:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),Breadcrumb=require("./Breadcrumb");module.exports=function(e){return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),r=document.createElement("ul");return r.setAttribute("class","UppyProvider-breadcrumbs"),e(r,["\n      ",arguments[0],"\n    "]),r}(e.directories.map(function(r){return Breadcrumb({getFolder:function(){return e.getFolder(r.id)},title:r.title})}))};
  },{"./Breadcrumb":42,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],44:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),Breadcrumbs=require("./Breadcrumbs"),Table=require("./Table");module.exports=function(e){var t=e.folders,r=e.files;return""!==e.filterInput&&(t=e.filterItems(e.folders),r=e.filterItems(e.files)),function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");t.setAttribute("class","Browser");var r=document.createElement("header"),l=document.createElement("input");l.setAttribute("type","text"),l.setAttribute("placeholder","Search Drive"),l.onkeyup=arguments[0],l.setAttribute("value",arguments[1]),l.setAttribute("class","Browser-search"),e(r,["\n        ",l,"\n      "]);var i=document.createElement("div");i.setAttribute("class","Browser-subHeader"),e(i,["\n        ",arguments[2],"\n      "]);var s=document.createElement("div");s.setAttribute("class","Browser-body");var o=document.createElement("main");return o.setAttribute("class","Browser-content"),e(o,["\n          ",arguments[3],"\n        "]),e(s,["\n        ",o,"\n      "]),e(t,["\n      ",r,"\n      ",i,"\n      ",s,"\n    "]),t}(e.filterQuery,e.filterInput,Breadcrumbs({getFolder:e.getFolder,directories:e.directories}),Table({columns:[{name:"Name",key:"title"}],folders:t,files:r,activeRow:e.isActiveRow,sortByTitle:e.sortByTitle,sortByDate:e.sortByDate,handleRowClick:e.handleRowClick,handleFileDoubleClick:e.addFile,handleFolderDoubleClick:e.getNextFolder,getItemName:e.getItemName,getItemIcon:e.getItemIcon}))};
  },{"./Breadcrumbs":43,"./Table":45,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],45:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),Row=require("./TableRow");module.exports=function(e){var t=e.columns.map(function(t){return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("th");return t.onclick=arguments[0],t.setAttribute("class","BrowserTable-headerColumn BrowserTable-column"),e(t,["\n        ",arguments[1],"\n      "]),t}(e.sortByTitle,t.name)});return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("table");t.setAttribute("class","BrowserTable");var n=document.createElement("thead");n.setAttribute("class","BrowserTable-header");var r=document.createElement("tr");e(r,["\n          ",arguments[0],"\n        "]),e(n,["\n        ",r,"\n      "]);var o=document.createElement("tbody");return e(o,["\n        ",arguments[1],"\n        ",arguments[2],"\n      "]),e(t,["\n      ",n,"\n      ",o,"\n    "]),t}(t,e.folders.map(function(t){return Row({title:e.getItemName(t),active:e.activeRow(t),getItemIcon:function(){return e.getItemIcon(t)},handleClick:function(){return e.handleRowClick(t)},handleDoubleClick:function(){return e.handleFolderDoubleClick(t)},columns:e.columns})}),e.files.map(function(t){return Row({title:e.getItemName(t),active:e.activeRow(t),getItemIcon:function(){return e.getItemIcon(t)},handleClick:function(){return e.handleRowClick(t)},handleDoubleClick:function(){return e.handleFileDoubleClick(t)},columns:e.columns})}))};
  },{"./TableRow":47,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],46:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(e){return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),r=document.createElement("td");return r.setAttribute("class","BrowserTable-rowColumn BrowserTable-column"),e(r,["\n      ",arguments[0]," ",arguments[1],"\n    "]),r}(e.getItemIcon(),e.value)};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],47:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),Column=require("./TableColumn");module.exports=function(e){var t=e.active?"BrowserTable-row is-active":"BrowserTable-row";return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("tr");return t.onclick=arguments[0],t.ondblclick=arguments[1],t.setAttribute("class",arguments[2]),e(t,["\n      ",arguments[3],"\n    "]),t}(e.handleClick,e.handleDoubleClick,t,Column({getItemIcon:e.getItemIcon,value:e.title}))};
  },{"./TableColumn":46,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],48:[function(require,module,exports){
  "use strict";var Core=require("./core/index.js"),Plugin=require("./plugins/Plugin"),Dashboard=require("./plugins/Dashboard/index.js"),Dummy=require("./plugins/Dummy"),DragDrop=require("./plugins/DragDrop/index.js"),FileInput=require("./plugins/FileInput.js"),GoogleDrive=require("./plugins/GoogleDrive/index.js"),Dropbox=require("./plugins/Dropbox/index.js"),Webcam=require("./plugins/Webcam/index.js"),ProgressBar=require("./plugins/ProgressBar.js"),Informer=require("./plugins/Informer.js"),MetaData=require("./plugins/MetaData.js"),Tus10=require("./plugins/Tus10"),Multipart=require("./plugins/Multipart");module.exports={Core:Core,Plugin:Plugin,Dummy:Dummy,ProgressBar:ProgressBar,Informer:Informer,DragDrop:DragDrop,GoogleDrive:GoogleDrive,Dropbox:Dropbox,FileInput:FileInput,Tus10:Tus10,Multipart:Multipart,Dashboard:Dashboard,MetaData:MetaData,Webcam:Webcam};
  },{"./core/index.js":38,"./plugins/Dashboard/index.js":60,"./plugins/DragDrop/index.js":61,"./plugins/Dropbox/index.js":63,"./plugins/Dummy":64,"./plugins/FileInput.js":65,"./plugins/GoogleDrive/index.js":66,"./plugins/Informer.js":67,"./plugins/MetaData.js":68,"./plugins/Multipart":69,"./plugins/Plugin":70,"./plugins/ProgressBar.js":71,"./plugins/Tus10":72,"./plugins/Webcam/index.js":77}],49:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(t){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("span"),n=document.createElement("button");n.setAttribute("type","button"),n.onclick=arguments[0],n.setAttribute("class","UppyDashboard-browse"),t(n,[arguments[1]]);var r=document.createElement("input");return r.setAttribute("type","file"),r.setAttribute("name","files[]"),r.setAttribute("multiple","true"),r.onchange=arguments[2],r.setAttribute("class","UppyDashboard-input"),t(e,["\n      ",arguments[3],"\n      ",n,"\n      ",r,"\n    "]),e}(function(e){var n=document.querySelector(t.container+" .UppyDashboard-input");n.click()},t.i18n("browse"),t.handleInputChange,0===t.acquirers.length?t.i18n("dropPaste"):t.i18n("dropPasteImport"))};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],50:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),FileList=require("./FileList"),Tabs=require("./Tabs"),FileCard=require("./FileCard"),UploadBtn=require("./UploadBtn"),StatusBar=require("./StatusBar"),_require=require("../../core/Utils"),isTouchDevice=_require.isTouchDevice,toArray=_require.toArray,_require2=require("./icons"),closeIcon=_require2.closeIcon;module.exports=function(e){function t(t){t.preventDefault();var a=toArray(t.target.files);a.forEach(function(t){e.addFile({source:e.id,name:t.name,type:t.type,data:t})})}function a(t){t.preventDefault();var a=toArray(t.clipboardData.items);a.forEach(function(t){if("file"===t.kind){var a=t.getAsFile();e.log("File pasted"),e.addFile({source:e.id,name:t.name,type:t.type,data:a})}})}return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/node_modules/on-load/index.js"),t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),a=document.createElement("div"),n=arguments;e(a,function(){n[19](a)},function(){},"o4"),a.setAttribute("aria-hidden",arguments[20]),a.setAttribute("aria-label",arguments[21]),a.setAttribute("role","dialog"),a.onpaste=arguments[22],a.setAttribute("class","Uppy UppyTheme--default UppyDashboard\n                          "+arguments[23]+"\n                          "+arguments[24]+"\n                          "+arguments[25]+"\n                          "+arguments[26]);var i=document.createElement("button");i.setAttribute("aria-label",arguments[0]),i.setAttribute("title",arguments[1]),i.onclick=arguments[2],i.setAttribute("class","UppyDashboard-close"),t(i,[arguments[3]]);var l=document.createElement("div");l.onclick=arguments[4],l.setAttribute("class","UppyDashboard-overlay");var r=document.createElement("div");r.setAttribute("tabindex","0"),r.setAttribute("style","\n          "+arguments[17]+"\n          "+arguments[18]+"\n         "),r.setAttribute("class","UppyDashboard-inner");var o=document.createElement("div");o.setAttribute("class","UppyDashboard-innerWrap");var s=document.createElement("div");s.setAttribute("class","UppyDashboard-filesContainer");var d=document.createElement("div");d.setAttribute("class","UppyDashboard-actions"),t(d,["\n            ",arguments[5],"\n          "]),t(s,["\n\n          ",arguments[6],"\n\n          ",d,"\n\n        "]);var u=document.createElement("div");u.setAttribute("role","tabpanel"),u.setAttribute("aria-hidden",arguments[11]),u.setAttribute("class","UppyDashboardContent-panel");var c=document.createElement("div");c.setAttribute("class","UppyDashboardContent-bar");var p=document.createElement("h2");p.setAttribute("class","UppyDashboardContent-title"),t(p,["\n              ",arguments[7]," ",arguments[8],"\n            "]);var m=document.createElement("button");m.onclick=arguments[9],m.setAttribute("class","UppyDashboardContent-back"),t(m,[arguments[10]]),t(c,["\n            ",p,"\n            ",m,"\n          "]),t(u,["\n          ",c,"\n          ",arguments[12],"\n        "]);var b=document.createElement("div");return b.setAttribute("class","UppyDashboard-progressindicators"),t(b,["\n          ",arguments[13],"\n\n          ",arguments[14],"\n        "]),t(o,["\n\n        ",arguments[15],"\n\n        ",arguments[16],"\n\n        ",s,"\n\n        ",u,"\n\n        ",b,"\n\n      "]),t(r,["\n      ",o,"\n    "]),t(a,["\n\n    ",i,"\n\n    ",l,"\n\n    ",r,"\n  "]),a}(e.i18n("closeModal"),e.i18n("closeModal"),e.hideModal,closeIcon(),e.hideModal,!e.autoProceed&&e.newFiles.length>0?UploadBtn({i18n:e.i18n,startUpload:e.startUpload,newFileCount:e.newFiles.length}):null,FileList({acquirers:e.acquirers,files:e.files,handleInputChange:t,container:e.container,showFileCard:e.showFileCard,showProgressDetails:e.showProgressDetails,totalProgress:e.totalProgress,totalFileCount:e.totalFileCount,info:e.info,i18n:e.i18n,log:e.log,removeFile:e.removeFile,pauseAll:e.pauseAll,resumeAll:e.resumeAll,pauseUpload:e.pauseUpload,startUpload:e.startUpload,cancelUpload:e.cancelUpload,resumableUploads:e.resumableUploads,isWide:e.isWide}),e.i18n("importFrom"),e.activePanel?e.activePanel.name:null,e.hideAllPanels,e.i18n("done"),e.activePanel?"false":"true",e.activePanel?e.activePanel.render(e.state):"",StatusBar({totalProgress:e.totalProgress,totalFileCount:e.totalFileCount,totalSize:e.totalSize,totalUploadedSize:e.totalUploadedSize,uploadStartedFiles:e.uploadStartedFiles,isAllComplete:e.isAllComplete,isAllPaused:e.isAllPaused,isUploadStarted:e.isUploadStarted,pauseAll:e.pauseAll,resumeAll:e.resumeAll,cancelAll:e.cancelAll,complete:e.completeFiles.length,inProgress:e.inProgress,totalSpeed:e.totalSpeed,totalETA:e.totalETA,startUpload:e.startUpload,newFileCount:e.newFiles.length,i18n:e.i18n,resumableUploads:e.resumableUploads}),e.progressindicators.map(function(t){return t.render(e.state)}),Tabs({files:e.files,handleInputChange:t,acquirers:e.acquirers,container:e.container,panelSelectorPrefix:e.panelSelectorPrefix,showPanel:e.showPanel,i18n:e.i18n}),FileCard({files:e.files,fileCardFor:e.fileCardFor,done:e.fileCardDone,metaFields:e.metaFields,log:e.log,i18n:e.i18n}),e.inline&&e.maxWidth?"max-width: "+e.maxWidth+"px;":"",e.inline&&e.maxHeight?"max-height: "+e.maxHeight+"px;":"",function(){return e.updateDashboardElWidth()},e.inline?"false":e.modal.isHidden,e.inline?e.i18n("dashboardTitle"):e.i18n("dashboardWindowTitle"),a,isTouchDevice()?"Uppy--isTouchDevice":"",e.semiTransparent?"UppyDashboard--semiTransparent":"",e.inline?"":"UppyDashboard--modal",e.isWide?"UppyDashboard--wide":"")};
  },{"../../core/Utils":37,"./FileCard":51,"./FileList":54,"./StatusBar":55,"./Tabs":56,"./UploadBtn":57,"./icons":59,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/node_modules/on-load/index.js":31,"yo-yo":21}],51:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),getFileTypeIcon=require("./getFileTypeIcon"),_require=require("./icons"),checkIcon=_require.checkIcon;module.exports=function(e){function t(e){var t=e.target.value,r=e.target.attributes.name.value;n[r]=t}function r(r){var a=e.metaFields||[];return a.map(function(e){return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("fieldset");t.setAttribute("class","UppyDashboardFileCard-fieldset");var r=document.createElement("label");r.setAttribute("class","UppyDashboardFileCard-label"),e(r,[arguments[0]]);var a=document.createElement("input");return a.setAttribute("name",arguments[1]),a.setAttribute("type","text"),a.setAttribute("value",arguments[2]),a.setAttribute("placeholder",arguments[3]),a.onkeyup=arguments[4],a.setAttribute("class","UppyDashboardFileCard-input"),e(t,["\n        ",r,"\n        ",a]),t}(e.name,e.id,r.meta[e.id],e.placeholder||"",t)})}var a=!!e.fileCardFor&&e.files[e.fileCardFor],n={};return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");t.setAttribute("aria-hidden",arguments[4]),t.setAttribute("class","UppyDashboardFileCard");var r=document.createElement("div");r.setAttribute("class","UppyDashboardContent-bar");var a=document.createElement("h2");a.setAttribute("class","UppyDashboardContent-title");var n=document.createElement("span");n.setAttribute("class","UppyDashboardContent-titleFile"),e(n,[arguments[0]]),e(a,["Editing ",n]);var i=document.createElement("button");i.setAttribute("title","Finish editing file"),i.onclick=arguments[1],i.setAttribute("class","UppyDashboardContent-back"),e(i,["Done"]),e(r,["\n      ",a,"\n      ",i,"\n    "]);var l=document.createElement("div");l.setAttribute("class","UppyDashboard-actions");var s=document.createElement("button");return s.setAttribute("type","button"),s.setAttribute("title","Finish editing file"),s.onclick=arguments[2],s.setAttribute("class","UppyButton--circular UppyButton--blue UppyDashboardFileCard-done"),e(s,[arguments[3]]),e(l,["\n      ",s,"\n    "]),e(t,["\n    ",r,"\n    ",arguments[5],"\n    ",l,"\n    "]),t}(a.meta?a.meta.name:a.name,function(){return e.done(n,a.id)},function(){return e.done(n,a.id)},checkIcon(),!e.fileCardFor,e.fileCardFor?function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");t.setAttribute("class","UppyDashboardFileCard-inner");var r=document.createElement("div");r.setAttribute("class","UppyDashboardFileCard-preview"),e(r,["\n            ",arguments[0],"\n          "]);var a=document.createElement("div");a.setAttribute("class","UppyDashboardFileCard-info");var n=document.createElement("fieldset");n.setAttribute("class","UppyDashboardFileCard-fieldset");var i=document.createElement("label");i.setAttribute("class","UppyDashboardFileCard-label"),e(i,["Name"]);var l=document.createElement("input");return l.setAttribute("name","name"),l.setAttribute("type","text"),l.setAttribute("value",arguments[1]),l.onkeyup=arguments[2],l.setAttribute("class","UppyDashboardFileCard-input"),e(n,["\n              ",i,"\n              ",l,"\n            "]),e(a,["\n            ",n,"\n            ",arguments[3],"\n          "]),e(t,["\n          ",r,"\n          ",a,"\n        "]),t}(a.preview?function(){var e=(require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),document.createElement("img"));return e.setAttribute("alt",arguments[0]),e.setAttribute("src",arguments[1]),e}(a.name,a.preview):function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");return t.setAttribute("style","color: "+arguments[0]),t.setAttribute("class","UppyDashboardItem-previewIcon"),e(t,["\n                  ",arguments[1],"\n                "]),t}(getFileTypeIcon(a.type.general,a.type.specific).color,getFileTypeIcon(a.type.general,a.type.specific).icon),a.meta.name,t,r(a)):null)};
  },{"./getFileTypeIcon":58,"./icons":59,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],52:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),_require=require("../../core/Utils"),getETA=_require.getETA,getSpeed=_require.getSpeed,prettyETA=_require.prettyETA,getFileNameAndExtension=_require.getFileNameAndExtension,truncateString=_require.truncateString,copyToClipboard=_require.copyToClipboard,prettyBytes=require("pretty-bytes"),FileItemProgress=require("./FileItemProgress"),getFileTypeIcon=require("./getFileTypeIcon"),_require2=require("./icons"),iconEdit=_require2.iconEdit,iconCopy=_require2.iconCopy;module.exports=function(e){var t=e.file,r=t.progress.uploadComplete,i=t.progress.uploadStarted,n=t.progress.uploadStarted&&!t.progress.uploadComplete,o=t.isPaused||!1,s=getFileNameAndExtension(t.meta.name)[0],l=e.isWide?truncateString(s,15):s;return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("li");t.setAttribute("id","uppy_"+arguments[11]),t.setAttribute("title",arguments[12]),t.setAttribute("class","UppyDashboardItem\n                        "+arguments[13]+"\n                        "+arguments[14]+"\n                        "+arguments[15]+"\n                        "+arguments[16]);var r=document.createElement("div");r.setAttribute("class","UppyDashboardItem-preview");var i=document.createElement("div");i.setAttribute("class","UppyDashboardItem-progress");var n=document.createElement("button");n.setAttribute("title",arguments[0]),n.onclick=arguments[1],n.setAttribute("class","UppyDashboardItem-progressBtn"),e(n,["\n            ",arguments[2],"\n          "]),e(i,["\n          ",n,"\n          ",arguments[3],"\n        "]),e(r,["\n        ",arguments[4],"\n        ",i,"\n      "]);var o=document.createElement("div");o.setAttribute("class","UppyDashboardItem-info");var s=document.createElement("h4");s.setAttribute("title",arguments[5]),s.setAttribute("class","UppyDashboardItem-name"),e(s,["\n        ",arguments[6],"\n      "]);var l=document.createElement("div");l.setAttribute("class","UppyDashboardItem-status");var a=document.createElement("span");a.setAttribute("class","UppyDashboardItem-statusSize"),e(a,[arguments[7]]),e(l,["\n        ",a,"\n      "]),e(o,["\n      ",s,"\n      ",l,"\n      ",arguments[8],"\n      ",arguments[9],"\n    "]);var u=document.createElement("div");return u.setAttribute("class","UppyDashboardItem-action"),e(u,["\n      ",arguments[10],"\n    "]),e(t,["\n      ",r,"\n    ",o,"\n    ",u,"\n  "]),t}(r?"upload complete":e.resumableUploads?t.isPaused?"resume upload":"pause upload":"cancel upload",function(i){r||(e.resumableUploads?e.pauseUpload(t.id):e.cancelUpload(t.id))},FileItemProgress({progress:t.progress.percentage,fileID:t.id}),e.showProgressDetails?function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");return t.setAttribute("title",arguments[0]),t.setAttribute("aria-label",arguments[1]),t.setAttribute("class","UppyDashboardItem-progressInfo"),e(t,["\n                ",arguments[2],"\n              "]),t}(e.i18n("fileProgress"),e.i18n("fileProgress"),t.isPaused||r?null:function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("span");return e(t,[arguments[0]," ・ ↑ ",arguments[1],"/s"]),t}(prettyETA(getETA(t.progress)),prettyBytes(getSpeed(t.progress)))):null,t.preview?function(){var e=(require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),document.createElement("img"));return e.setAttribute("alt",arguments[0]),e.setAttribute("src",arguments[1]),e}(t.name,t.preview):function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");return t.setAttribute("style","color: "+arguments[0]),t.setAttribute("class","UppyDashboardItem-previewIcon"),e(t,["\n              ",arguments[1],"\n            "]),t}(getFileTypeIcon(t.type.general,t.type.specific).color,getFileTypeIcon(t.type.general,t.type.specific).icon),s,t.uploadURL?function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("a");return t.setAttribute("href",arguments[0]),t.setAttribute("target","_blank"),e(t,["\n              ",arguments[1],"\n            "]),t}(t.uploadURL,t.extension?l+"."+t.extension:l):t.extension?l+"."+t.extension:l,t.data.size?prettyBytes(t.data.size):"?",i?null:function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("button");return t.setAttribute("aria-label","Edit file"),t.setAttribute("title","Edit file"),t.onclick=arguments[0],t.setAttribute("class","UppyDashboardItem-edit"),e(t,["\n                        ",arguments[1]]),t}(function(r){return e.showFileCard(t.id)},iconEdit()),t.uploadURL?function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("button");return t.setAttribute("aria-label","Copy link"),t.setAttribute("title","Copy link"),t.onclick=arguments[0],t.setAttribute("class","UppyDashboardItem-copyLink"),e(t,[arguments[1]]),t}(function(){copyToClipboard(t.uploadURL,e.i18n("copyLinkToClipboardFallback")).then(function(){e.log("Link copied to clipboard."),e.info(e.i18n("copyLinkToClipboardSuccess"),"info",3e3)}).catch(e.log)},iconCopy()):null,r?null:function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("button");t.setAttribute("aria-label","Remove file"),t.setAttribute("title","Remove file"),t.onclick=arguments[0],t.setAttribute("class","UppyDashboardItem-remove");var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttributeNS(null,"width","22"),r.setAttributeNS(null,"height","21"),r.setAttributeNS(null,"viewBox","0 0 18 17"),r.setAttributeNS(null,"class","UppyIcon");var i=document.createElementNS("http://www.w3.org/2000/svg","ellipse");i.setAttributeNS(null,"cx","8.62"),i.setAttributeNS(null,"cy","8.383"),i.setAttributeNS(null,"rx","8.62"),i.setAttributeNS(null,"ry","8.383");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"stroke","#FFF"),n.setAttributeNS(null,"fill","#FFF"),n.setAttributeNS(null,"d","M11 6.147L10.85 6 8.5 8.284 6.15 6 6 6.147 8.35 8.43 6 10.717l.15.146L8.5 8.578l2.35 2.284.15-.146L8.65 8.43z"),e(r,["\n                   ",i,"\n                   ",n,"\n                 "]),e(t,["\n                 ",r,"\n               "]),t}(function(){return e.removeFile(t.id)}),t.id,t.meta.name,n?"is-inprogress":"",r?"is-complete":"",o?"is-paused":"",e.resumableUploads?"is-resumable":"")};
  },{"../../core/Utils":37,"./FileItemProgress":53,"./getFileTypeIcon":58,"./icons":59,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"pretty-bytes":8,"yo-yo":21}],53:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(t){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","70"),e.setAttributeNS(null,"height","70"),e.setAttributeNS(null,"viewBox","0 0 36 36"),e.setAttributeNS(null,"class","UppyIcon UppyIcon-progressCircle");var l=document.createElementNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"class","progress-group");var r=document.createElementNS("http://www.w3.org/2000/svg","circle");r.setAttributeNS(null,"r","15"),r.setAttributeNS(null,"cx","18"),r.setAttributeNS(null,"cy","18"),r.setAttributeNS(null,"stroke-width","2"),r.setAttributeNS(null,"fill","none"),r.setAttributeNS(null,"class","bg");var u=document.createElementNS("http://www.w3.org/2000/svg","circle");u.setAttributeNS(null,"r","15"),u.setAttributeNS(null,"cx","18"),u.setAttributeNS(null,"cy","18"),u.setAttributeNS(null,"transform","rotate(-90, 18, 18)"),u.setAttributeNS(null,"stroke-width","2"),u.setAttributeNS(null,"fill","none"),u.setAttributeNS(null,"stroke-dasharray","100"),u.setAttributeNS(null,"stroke-dashoffset",arguments[0]),u.setAttributeNS(null,"class","progress"),t(l,["\n        ",r,"\n        ",u,"\n      "]);var n=document.createElementNS("http://www.w3.org/2000/svg","polygon");n.setAttributeNS(null,"transform","translate(3, 3)"),n.setAttributeNS(null,"points","12 20 12 10 20 15"),n.setAttributeNS(null,"class","play");var s=document.createElementNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"transform","translate(14.5, 13)"),s.setAttributeNS(null,"class","pause");var i=document.createElementNS("http://www.w3.org/2000/svg","rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width","2"),i.setAttributeNS(null,"height","10"),i.setAttributeNS(null,"rx","0");var o=document.createElementNS("http://www.w3.org/2000/svg","rect");o.setAttributeNS(null,"x","5"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width","2"),o.setAttributeNS(null,"height","10"),o.setAttributeNS(null,"rx","0"),t(s,["\n        ",i,"\n        ",o,"\n      "]);var a=document.createElementNS("http://www.w3.org/2000/svg","polygon");a.setAttributeNS(null,"transform","translate(2, 3)"),a.setAttributeNS(null,"points","14 22.5 7 15.2457065 8.99985857 13.1732815 14 18.3547104 22.9729883 9 25 11.1005634"),a.setAttributeNS(null,"class","check");var N=document.createElementNS("http://www.w3.org/2000/svg","polygon");return N.setAttributeNS(null,"transform","translate(2, 2)"),N.setAttributeNS(null,"points","19.8856516 11.0625 16 14.9481516 12.1019737 11.0625 11.0625 12.1143484 14.9481516 16 11.0625 19.8980263 12.1019737 20.9375 16 17.0518484 19.8856516 20.9375 20.9375 19.8980263 17.0518484 16 20.9375 12"),N.setAttributeNS(null,"class","cancel"),t(e,["\n      ",l,"\n      ",n,"\n      ",s,"\n      ",a,"\n      ",N]),e}(100-t.progress)};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],54:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),FileItem=require("./FileItem"),ActionBrowseTagline=require("./ActionBrowseTagline"),_require=require("./icons"),dashboardBgIcon=_require.dashboardBgIcon;module.exports=function(e){return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("ul");return t.setAttribute("class","UppyDashboard-files\n                         "+arguments[0]),e(t,["\n      ",arguments[1],"\n      ",arguments[2],"\n    "]),t}(0===e.totalFileCount?"UppyDashboard-files--noFiles":"",0===e.totalFileCount?function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");t.setAttribute("class","UppyDashboard-bgIcon");var i=document.createElement("h3");i.setAttribute("class","UppyDashboard-dropFilesTitle"),e(i,["\n            ",arguments[0],"\n          "]);var n=document.createElement("input");return n.setAttribute("type","file"),n.setAttribute("name","files[]"),n.setAttribute("multiple","true"),n.onchange=arguments[1],n.setAttribute("class","UppyDashboard-input"),e(t,["\n          ",arguments[2],"\n          ",i,"\n          ",n,"\n         "]),t}(ActionBrowseTagline({acquirers:e.acquirers,container:e.container,handleInputChange:e.handleInputChange,i18n:e.i18n}),e.handleInputChange,dashboardBgIcon()):null,Object.keys(e.files).map(function(t){return FileItem({file:e.files[t],showFileCard:e.showFileCard,showProgressDetails:e.showProgressDetails,info:e.info,log:e.log,i18n:e.i18n,removeFile:e.removeFile,pauseUpload:e.pauseUpload,cancelUpload:e.cancelUpload,resumableUploads:e.resumableUploads,isWide:e.isWide})}))};
  },{"./ActionBrowseTagline":49,"./FileItem":52,"./icons":59,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],55:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(t){t=t||{};var e=0===t.totalFileCount||!t.isUploadStarted;return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("div");e.setAttribute("aria-hidden",arguments[4]),e.setAttribute("class","UppyDashboard-statusBar\n                "+arguments[5]);var l=document.createElement("progress");l.setAttribute("style","display: none;"),l.setAttribute("min","0"),l.setAttribute("max","100"),l.setAttribute("value",arguments[0]);var r=document.createElement("div");r.setAttribute("style","width: "+arguments[1]+"%"),r.setAttribute("class","UppyDashboard-statusBarProgress");var s=document.createElement("div");return s.setAttribute("class","UppyDashboard-statusBarContent"),t(s,["\n        ",arguments[2],"\n        ",arguments[3],"\n      "]),t(e,["\n      ",l,"\n      ",r,"\n      ",s,"\n    "]),e}(t.totalProgress,t.totalProgress,t.isUploadStarted&&!t.isAllComplete?t.isAllPaused?function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("span");return t(e,[arguments[0]," Paused・",arguments[1],"%"]),e}(pauseResumeButtons(t),t.totalProgress):function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("span");return t(e,[arguments[0]," Uploading... ",arguments[1],"%・",arguments[2]," / ",arguments[3],"・",arguments[4]," / ",arguments[5],"・↑ ",arguments[6],"/s・",arguments[7]]),e}(pauseResumeButtons(t),t.totalProgress||0,t.complete,t.inProgress,t.totalUploadedSize,t.totalSize,t.totalSpeed,t.totalETA):null,t.isAllComplete?function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("span"),l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttributeNS(null,"width","18"),l.setAttributeNS(null,"height","17"),l.setAttributeNS(null,"viewBox","0 0 23 17"),l.setAttributeNS(null,"class","UppyDashboard-statusBarAction UppyIcon");var r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttributeNS(null,"d","M8.944 17L0 7.865l2.555-2.61 6.39 6.525L20.41 0 23 2.645z"),t(l,["\n              ",r,"\n            "]),t(e,[l,"Upload complete・",arguments[0],"%"]),e}(t.totalProgress):null,e,t.isAllComplete?"is-complete":"")};var pauseResumeButtons=function(t){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("button");return e.setAttribute("type","button"),e.onclick=arguments[0],e.setAttribute("class","UppyDashboard-statusBarAction"),t(e,["\n    ",arguments[1],"\n  "]),e}(function(){return togglePauseResume(t)},t.resumableUploads?t.isAllPaused?function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","15"),e.setAttributeNS(null,"height","17"),e.setAttributeNS(null,"viewBox","0 0 11 13"),e.setAttributeNS(null,"class","UppyIcon");var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttributeNS(null,"d","M1.26 12.534a.67.67 0 0 1-.674.012.67.67 0 0 1-.336-.583v-11C.25.724.38.5.586.382a.658.658 0 0 1 .673.012l9.165 5.5a.66.66 0 0 1 .325.57.66.66 0 0 1-.325.573l-9.166 5.5z"),t(e,["\n          ",l,"\n        "]),e}():function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","16"),e.setAttributeNS(null,"height","17"),e.setAttributeNS(null,"viewBox","0 0 12 13"),e.setAttributeNS(null,"class","UppyIcon");var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttributeNS(null,"d","M4.888.81v11.38c0 .446-.324.81-.722.81H2.722C2.324 13 2 12.636 2 12.19V.81c0-.446.324-.81.722-.81h1.444c.398 0 .722.364.722.81zM9.888.81v11.38c0 .446-.324.81-.722.81H7.722C7.324 13 7 12.636 7 12.19V.81c0-.446.324-.81.722-.81h1.444c.398 0 .722.364.722.81z"),t(e,["\n          ",l,"\n        "]),e}():function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","16px"),e.setAttributeNS(null,"height","16px"),e.setAttributeNS(null,"viewBox","0 0 19 19"),e.setAttributeNS(null,"class","UppyIcon");var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttributeNS(null,"d","M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"),t(e,["\n        ",l,"\n      "]),e}())},togglePauseResume=function(t){if(!t.isAllComplete)return t.resumableUploads?t.isAllPaused?t.resumeAll():t.pauseAll():t.cancelAll()};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],56:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),ActionBrowseTagline=require("./ActionBrowseTagline"),_require=require("./icons"),localIcon=_require.localIcon;module.exports=function(e){var t=0===Object.keys(e.files).length;return 0===e.acquirers.length?function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");t.setAttribute("aria-hidden",arguments[1]),t.setAttribute("class","UppyDashboardTabs");var n=document.createElement("h3");return n.setAttribute("class","UppyDashboardTabs-title"),e(n,["\n        ",arguments[0],"\n        "]),e(t,["\n        ",n,"\n      "]),t}(ActionBrowseTagline({acquirers:e.acquirers,container:e.container,handleInputChange:e.handleInputChange,i18n:e.i18n}),t):function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div");t.setAttribute("class","UppyDashboardTabs");var n=document.createElement("nav"),a=document.createElement("ul");a.setAttribute("role","tablist"),a.setAttribute("class","UppyDashboardTabs-list");var r=document.createElement("li");r.setAttribute("class","UppyDashboardTab");var i=document.createElement("button");i.setAttribute("type","button"),i.setAttribute("role","tab"),i.setAttribute("tabindex","0"),i.onclick=arguments[1],i.setAttribute("class","UppyDashboardTab-btn UppyDashboard-focus");var s=document.createElement("h5");s.setAttribute("class","UppyDashboardTab-name"),e(s,[arguments[0]]),e(i,["\n            ",arguments[2],"\n            ",s,"\n          "]);var o=document.createElement("input");return o.setAttribute("type","file"),o.setAttribute("name","files[]"),o.setAttribute("multiple","true"),o.onchange=arguments[3],o.setAttribute("class","UppyDashboard-input"),e(r,["\n          ",i,"\n          ",o,"\n        "]),e(a,["\n        ",r,"\n        ",arguments[4],"\n      "]),e(n,["\n      ",a,"\n    "]),e(t,["\n    ",n,"\n  "]),t}(e.i18n("localDisk"),function(t){var n=document.querySelector(e.container+" .UppyDashboard-input");n.click()},localIcon(),e.handleInputChange,e.acquirers.map(function(t){return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("li");t.setAttribute("class","UppyDashboardTab");var n=document.createElement("button");n.setAttribute("role","tab"),n.setAttribute("tabindex","0"),n.setAttribute("aria-controls","UppyDashboardContent-panel--"+arguments[1]),n.setAttribute("aria-selected",arguments[2]),n.onclick=arguments[3],n.setAttribute("class","UppyDashboardTab-btn");var a=document.createElement("h5");return a.setAttribute("class","UppyDashboardTab-name"),e(a,[arguments[0]]),e(n,["\n              ",arguments[4],"\n              ",a,"\n            "]),e(t,["\n            ",n,"\n          "]),t}(t.name,t.id,t.isHidden?"false":"true",function(){return e.showPanel(t.id)},t.icon)}))};
  },{"./ActionBrowseTagline":49,"./icons":59,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],57:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),_require=require("./icons"),uploadIcon=_require.uploadIcon;module.exports=function(e){return e=e||{},function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("title",arguments[3]),t.setAttribute("aria-label",arguments[4]),t.onclick=arguments[5],t.setAttribute("class","UppyButton--circular\n                   UppyButton--blue\n                   UppyDashboard-upload");var u=document.createElement("sup");return u.setAttribute("title",arguments[0]),u.setAttribute("aria-label",arguments[1]),u.setAttribute("class","UppyDashboard-uploadCount"),e(u,["\n                  ",arguments[2]]),e(t,["\n            ",arguments[6],"\n            ",u,"\n    "]),t}(e.i18n("numberOfSelectedFiles"),e.i18n("numberOfSelectedFiles"),e.newFileCount,e.i18n("uploadAllNewFiles"),e.i18n("uploadAllNewFiles"),e.startUpload,uploadIcon())};
  },{"./icons":59,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],58:[function(require,module,exports){
  "use strict";var _require=require("./icons"),iconText=_require.iconText,iconFile=_require.iconFile,iconAudio=_require.iconAudio,iconVideo=_require.iconVideo,iconPDF=_require.iconPDF;module.exports=function(i,o){return"text"===i?{color:"#000",icon:iconText()}:"audio"===i?{color:"#1abc9c",icon:iconAudio()}:"video"===i?{color:"#2980b9",icon:iconVideo()}:"application"===i&&"pdf"===o?{color:"#e74c3c",icon:iconPDF()}:{color:"#000",icon:iconFile()}};
  },{"./icons":59}],59:[function(require,module,exports){
  "use strict";function defaultTabIcon(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","30"),e.setAttributeNS(null,"height","30"),e.setAttributeNS(null,"viewBox","0 0 30 30"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d","M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"),t(e,["\n    ",n,"\n  "]),e}()}function iconCopy(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","51"),e.setAttributeNS(null,"height","51"),e.setAttributeNS(null,"viewBox","0 0 51 51"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M17.21 45.765a5.394 5.394 0 0 1-7.62 0l-4.12-4.122a5.393 5.393 0 0 1 0-7.618l6.774-6.775-2.404-2.404-6.775 6.776c-3.424 3.427-3.424 9 0 12.426l4.12 4.123a8.766 8.766 0 0 0 6.216 2.57c2.25 0 4.5-.858 6.214-2.57l13.55-13.552a8.72 8.72 0 0 0 2.575-6.213 8.73 8.73 0 0 0-2.575-6.213l-4.123-4.12-2.404 2.404 4.123 4.12a5.352 5.352 0 0 1 1.58 3.81c0 1.438-.562 2.79-1.58 3.808l-13.55 13.55z");var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttributeNS(null,"d","M44.256 2.858A8.728 8.728 0 0 0 38.043.283h-.002a8.73 8.73 0 0 0-6.212 2.574l-13.55 13.55a8.725 8.725 0 0 0-2.575 6.214 8.73 8.73 0 0 0 2.574 6.216l4.12 4.12 2.405-2.403-4.12-4.12a5.357 5.357 0 0 1-1.58-3.812c0-1.437.562-2.79 1.58-3.808l13.55-13.55a5.348 5.348 0 0 1 3.81-1.58c1.44 0 2.792.562 3.81 1.58l4.12 4.12c2.1 2.1 2.1 5.518 0 7.617L39.2 23.775l2.404 2.404 6.775-6.777c3.426-3.427 3.426-9 0-12.426l-4.12-4.12z"),t(e,["\n    ",n,"\n    ",l,"\n  "]),e}()}function iconResume(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","25"),e.setAttributeNS(null,"height","25"),e.setAttributeNS(null,"viewBox","0 0 44 44"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","polygon");return n.setAttributeNS(null,"transform","translate(6, 5.5)"),n.setAttributeNS(null,"points","13 21.6666667 13 11 21 16.3333333"),n.setAttributeNS(null,"class","play"),t(e,["\n    ",n,"\n  "]),e}()}function iconPause(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","25px"),e.setAttributeNS(null,"height","25px"),e.setAttributeNS(null,"viewBox","0 0 44 44"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","g");n.setAttributeNS(null,"transform","translate(18, 17)"),n.setAttributeNS(null,"class","pause");var l=document.createElementNS("http://www.w3.org/2000/svg","rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width","2"),l.setAttributeNS(null,"height","10"),l.setAttributeNS(null,"rx","0");var u=document.createElementNS("http://www.w3.org/2000/svg","rect");return u.setAttributeNS(null,"x","6"),u.setAttributeNS(null,"y","0"),u.setAttributeNS(null,"width","2"),u.setAttributeNS(null,"height","10"),u.setAttributeNS(null,"rx","0"),t(n,["\n      ",l,"\n      ",u,"\n    "]),t(e,["\n    ",n,"\n  "]),e}()}function iconEdit(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","28"),e.setAttributeNS(null,"height","28"),e.setAttributeNS(null,"viewBox","0 0 28 28"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d","M25.436 2.566a7.98 7.98 0 0 0-2.078-1.51C22.638.703 21.906.5 21.198.5a3 3 0 0 0-1.023.17 2.436 2.436 0 0 0-.893.562L2.292 18.217.5 27.5l9.28-1.796 16.99-16.99c.255-.254.444-.56.562-.888a3 3 0 0 0 .17-1.023c0-.708-.205-1.44-.555-2.16a8 8 0 0 0-1.51-2.077zM9.01 24.252l-4.313.834c0-.03.008-.06.012-.09.007-.944-.74-1.715-1.67-1.723-.04 0-.078.007-.118.01l.83-4.29L17.72 5.024l5.264 5.264L9.01 24.252zm16.84-16.96a.818.818 0 0 1-.194.31l-1.57 1.57-5.26-5.26 1.57-1.57a.82.82 0 0 1 .31-.194 1.45 1.45 0 0 1 .492-.074c.397 0 .917.126 1.468.397.55.27 1.13.678 1.656 1.21.53.53.94 1.11 1.208 1.655.272.55.397 1.07.393 1.468.004.193-.027.358-.074.488z"),t(e,["\n    ",n,"\n  "]),e}()}function localIcon(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","27"),e.setAttributeNS(null,"height","25"),e.setAttributeNS(null,"viewBox","0 0 27 25"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M5.586 9.288a.313.313 0 0 0 .282.176h4.84v3.922c0 1.514 1.25 2.24 2.792 2.24 1.54 0 2.79-.726 2.79-2.24V9.464h4.84c.122 0 .23-.068.284-.176a.304.304 0 0 0-.046-.324L13.735.106a.316.316 0 0 0-.472 0l-7.63 8.857a.302.302 0 0 0-.047.325z");var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttributeNS(null,"d","M24.3 5.093c-.218-.76-.54-1.187-1.208-1.187h-4.856l1.018 1.18h3.948l2.043 11.038h-7.193v2.728H9.114v-2.725h-7.36l2.66-11.04h3.33l1.018-1.18H3.907c-.668 0-1.06.46-1.21 1.186L0 16.456v7.062C0 24.338.676 25 1.51 25h23.98c.833 0 1.51-.663 1.51-1.482v-7.062L24.3 5.093z"),t(e,["\n    ",n,"\n    ",l,"\n  "]),e}()}function closeIcon(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","14px"),e.setAttributeNS(null,"height","14px"),e.setAttributeNS(null,"viewBox","0 0 19 19"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d","M17.318 17.232L9.94 9.854 9.586 9.5l-.354.354-7.378 7.378h.707l-.62-.62v.706L9.318 9.94l.354-.354-.354-.354L1.94 1.854v.707l.62-.62h-.706l7.378 7.378.354.354.354-.354 7.378-7.378h-.707l.622.62v-.706L9.854 9.232l-.354.354.354.354 7.378 7.378.708-.707-7.38-7.378v.708l7.38-7.38.353-.353-.353-.353-.622-.622-.353-.353-.354.352-7.378 7.38h.708L2.56 1.23 2.208.88l-.353.353-.622.62-.353.355.352.353 7.38 7.38v-.708l-7.38 7.38-.353.353.352.353.622.622.353.353.354-.353 7.38-7.38h-.708l7.38 7.38z"),t(e,["\n    ",n,"\n  "]),e}()}function pluginIcon(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","16px"),e.setAttributeNS(null,"height","16px"),e.setAttributeNS(null,"viewBox","0 0 32 30"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M6.6209894,11.1451162 C6.6823051,11.2751669 6.81374248,11.3572188 6.95463813,11.3572188 L12.6925482,11.3572188 L12.6925482,16.0630427 C12.6925482,17.880509 14.1726048,18.75 16.0000083,18.75 C17.8261072,18.75 19.3074684,17.8801847 19.3074684,16.0630427 L19.3074684,11.3572188 L25.0437478,11.3572188 C25.1875787,11.3572188 25.3164069,11.2751669 25.3790272,11.1451162 C25.4370814,11.0173358 25.4171865,10.8642587 25.3252129,10.7562615 L16.278212,0.127131837 C16.2093949,0.0463771751 16.1069846,0 15.9996822,0 C15.8910751,0 15.7886648,0.0463771751 15.718217,0.127131837 L6.6761083,10.7559371 C6.58250402,10.8642587 6.56293518,11.0173358 6.6209894,11.1451162 L6.6209894,11.1451162 Z");var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttributeNS(null,"d","M28.8008722,6.11142645 C28.5417891,5.19831555 28.1583331,4.6875 27.3684848,4.6875 L21.6124454,4.6875 L22.8190234,6.10307874 L27.4986725,6.10307874 L29.9195817,19.3486449 L21.3943891,19.3502502 L21.3943891,22.622552 L10.8023461,22.622552 L10.8023461,19.3524977 L2.07815702,19.3534609 L5.22979699,6.10307874 L9.17871529,6.10307874 L10.3840011,4.6875 L4.6308691,4.6875 C3.83940559,4.6875 3.37421888,5.2390909 3.19815864,6.11142645 L0,19.7470874 L0,28.2212959 C0,29.2043992 0.801477937,30 1.78870751,30 L30.2096773,30 C31.198199,30 32,29.2043992 32,28.2212959 L32,19.7470874 L28.8008722,6.11142645 L28.8008722,6.11142645 Z"),t(e,["\n      ",n,"\n      ",l,"\n    "]),e}()}function checkIcon(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","13px"),e.setAttributeNS(null,"height","9px"),e.setAttributeNS(null,"viewBox","0 0 13 9"),e.setAttributeNS(null,"class","UppyIcon UppyIcon-check");var n=document.createElementNS("http://www.w3.org/2000/svg","polygon");return n.setAttributeNS(null,"points","5 7.293 1.354 3.647 0.646 4.354 5 8.707 12.354 1.354 11.646 0.647"),t(e,["\n    ",n]),e}()}function iconAudio(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"viewBox","0 0 55 55"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d","M52.66.25c-.216-.19-.5-.276-.79-.242l-31 4.01a1 1 0 0 0-.87.992V40.622C18.174 38.428 15.273 37 12 37c-5.514 0-10 4.037-10 9s4.486 9 10 9 10-4.037 10-9c0-.232-.02-.46-.04-.687.014-.065.04-.124.04-.192V16.12l29-3.753v18.257C49.174 28.428 46.273 27 43 27c-5.514 0-10 4.037-10 9s4.486 9 10 9c5.464 0 9.913-3.966 9.993-8.867 0-.013.007-.024.007-.037V1a.998.998 0 0 0-.34-.75zM12 53c-4.41 0-8-3.14-8-7s3.59-7 8-7 8 3.14 8 7-3.59 7-8 7zm31-10c-4.41 0-8-3.14-8-7s3.59-7 8-7 8 3.14 8 7-3.59 7-8 7zM22 14.1V5.89l29-3.753v8.21l-29 3.754z"),t(e,["\n    ",n,"\n  "]),e}()}function iconVideo(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"viewBox","0 0 58 58"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M36.537 28.156l-11-7a1.005 1.005 0 0 0-1.02-.033C24.2 21.3 24 21.635 24 22v14a1 1 0 0 0 1.537.844l11-7a1.002 1.002 0 0 0 0-1.688zM26 34.18V23.82L34.137 29 26 34.18z");var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttributeNS(null,"d","M57 6H1a1 1 0 0 0-1 1v44a1 1 0 0 0 1 1h56a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1zM10 28H2v-9h8v9zm-8 2h8v9H2v-9zm10 10V8h34v42H12V40zm44-12h-8v-9h8v9zm-8 2h8v9h-8v-9zm8-22v9h-8V8h8zM2 8h8v9H2V8zm0 42v-9h8v9H2zm54 0h-8v-9h8v9z"),t(e,["\n    ",n,l,"\n  "]),e}()}function iconPDF(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"viewBox","0 0 342 335"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d","M329.337 227.84c-2.1 1.3-8.1 2.1-11.9 2.1-12.4 0-27.6-5.7-49.1-14.9 8.3-.6 15.8-.9 22.6-.9 12.4 0 16 0 28.2 3.1 12.1 3 12.2 9.3 10.2 10.6zm-215.1 1.9c4.8-8.4 9.7-17.3 14.7-26.8 12.2-23.1 20-41.3 25.7-56.2 11.5 20.9 25.8 38.6 42.5 52.8 2.1 1.8 4.3 3.5 6.7 5.3-34.1 6.8-63.6 15-89.6 24.9zm39.8-218.9c6.8 0 10.7 17.06 11 33.16.3 16-3.4 27.2-8.1 35.6-3.9-12.4-5.7-31.8-5.7-44.5 0 0-.3-24.26 2.8-24.26zm-133.4 307.2c3.9-10.5 19.1-31.3 41.6-49.8 1.4-1.1 4.9-4.4 8.1-7.4-23.5 37.6-39.3 52.5-49.7 57.2zm315.2-112.3c-6.8-6.7-22-10.2-45-10.5-15.6-.2-34.3 1.2-54.1 3.9-8.8-5.1-17.9-10.6-25.1-17.3-19.2-18-35.2-42.9-45.2-70.3.6-2.6 1.2-4.8 1.7-7.1 0 0 10.8-61.5 7.9-82.3-.4-2.9-.6-3.7-1.4-5.9l-.9-2.5c-2.9-6.76-8.7-13.96-17.8-13.57l-5.3-.17h-.1c-10.1 0-18.4 5.17-20.5 12.84-6.6 24.3.2 60.5 12.5 107.4l-3.2 7.7c-8.8 21.4-19.8 43-29.5 62l-1.3 2.5c-10.2 20-19.5 37-27.9 51.4l-8.7 4.6c-.6.4-15.5 8.2-19 10.3-29.6 17.7-49.28 37.8-52.54 53.8-1.04 5-.26 11.5 5.01 14.6l8.4 4.2c3.63 1.8 7.53 2.7 11.43 2.7 21.1 0 45.6-26.2 79.3-85.1 39-12.7 83.4-23.3 122.3-29.1 29.6 16.7 66 28.3 89 28.3 4.1 0 7.6-.4 10.5-1.2 4.4-1.1 8.1-3.6 10.4-7.1 4.4-6.7 5.4-15.9 4.1-25.4-.3-2.8-2.6-6.3-5-8.7z"),t(e,["\n    ",n,"\n  "]),e}()}function iconFile(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","44"),e.setAttributeNS(null,"height","58"),e.setAttributeNS(null,"viewBox","0 0 44 58"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d","M27.437.517a1 1 0 0 0-.094.03H4.25C2.037.548.217 2.368.217 4.58v48.405c0 2.212 1.82 4.03 4.03 4.03H39.03c2.21 0 4.03-1.818 4.03-4.03V15.61a1 1 0 0 0-.03-.28 1 1 0 0 0 0-.093 1 1 0 0 0-.03-.032 1 1 0 0 0 0-.03 1 1 0 0 0-.032-.063 1 1 0 0 0-.03-.063 1 1 0 0 0-.032 0 1 1 0 0 0-.03-.063 1 1 0 0 0-.032-.03 1 1 0 0 0-.03-.063 1 1 0 0 0-.063-.062l-14.593-14a1 1 0 0 0-.062-.062A1 1 0 0 0 28 .708a1 1 0 0 0-.374-.157 1 1 0 0 0-.156 0 1 1 0 0 0-.03-.03l-.003-.003zM4.25 2.547h22.218v9.97c0 2.21 1.82 4.03 4.03 4.03h10.564v36.438a2.02 2.02 0 0 1-2.032 2.032H4.25c-1.13 0-2.032-.9-2.032-2.032V4.58c0-1.13.902-2.032 2.03-2.032zm24.218 1.345l10.375 9.937.75.718H30.5c-1.13 0-2.032-.9-2.032-2.03V3.89z"),t(e,["\n    ",n,"\n  "]),e}()}function iconText(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"viewBox","0 0 64 64"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M8 64h48V0H22.586L8 14.586V64zm46-2H10V16h14V2h30v60zM11.414 14L22 3.414V14H11.414z");var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttributeNS(null,"d","M32 13h14v2H32zM18 23h28v2H18zM18 33h28v2H18zM18 43h28v2H18zM18 53h28v2H18z"),t(e,["\n    ",n,"\n    ",l,"\n  "]),e}()}function uploadIcon(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","37"),e.setAttributeNS(null,"height","33"),e.setAttributeNS(null,"viewBox","0 0 37 33"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M29.107 24.5c4.07 0 7.393-3.355 7.393-7.442 0-3.994-3.105-7.307-7.012-7.502l.468.415C29.02 4.52 24.34.5 18.886.5c-4.348 0-8.27 2.522-10.138 6.506l.446-.288C4.394 6.782.5 10.758.5 15.608c0 4.924 3.906 8.892 8.76 8.892h4.872c.635 0 1.095-.467 1.095-1.104 0-.636-.46-1.103-1.095-1.103H9.26c-3.644 0-6.63-3.035-6.63-6.744 0-3.71 2.926-6.685 6.57-6.685h.964l.14-.28.177-.362c1.477-3.4 4.744-5.576 8.347-5.576 4.58 0 8.45 3.452 9.01 8.072l.06.536.05.446h1.101c2.87 0 5.204 2.37 5.204 5.295s-2.333 5.296-5.204 5.296h-6.062c-.634 0-1.094.467-1.094 1.103 0 .637.46 1.104 1.094 1.104h6.12z");var l=document.createElementNS("http://www.w3.org/2000/svg","path");return l.setAttributeNS(null,"d","M23.196 18.92l-4.828-5.258-.366-.4-.368.398-4.828 5.196a1.13 1.13 0 0 0 0 1.546c.428.46 1.11.46 1.537 0l3.45-3.71-.868-.34v15.03c0 .64.445 1.118 1.075 1.118.63 0 1.075-.48 1.075-1.12V16.35l-.867.34 3.45 3.712a1 1 0 0 0 .767.345 1 1 0 0 0 .77-.345c.416-.33.416-1.036 0-1.485v.003z"),t(e,["\n    ",n,"\n    ",l,"\n  "]),e}()}function dashboardBgIcon(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","48"),e.setAttributeNS(null,"height","69"),e.setAttributeNS(null,"viewBox","0 0 48 69"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d","M.5 1.5h5zM10.5 1.5h5zM20.5 1.5h5zM30.504 1.5h5zM45.5 11.5v5zM45.5 21.5v5zM45.5 31.5v5zM45.5 41.502v5zM45.5 51.502v5zM45.5 61.5v5zM45.5 66.502h-4.998zM35.503 66.502h-5zM25.5 66.502h-5zM15.5 66.502h-5zM5.5 66.502h-5zM.5 66.502v-5zM.5 56.502v-5zM.5 46.503V41.5zM.5 36.5v-5zM.5 26.5v-5zM.5 16.5v-5zM.5 6.5V1.498zM44.807 11H36V2.195z"),t(e,["\n    ",n,"\n  "]),e}()}var html=require("yo-yo");module.exports={defaultTabIcon:defaultTabIcon,iconCopy:iconCopy,iconResume:iconResume,iconPause:iconPause,iconEdit:iconEdit,localIcon:localIcon,closeIcon:closeIcon,pluginIcon:pluginIcon,checkIcon:checkIcon,iconAudio:iconAudio,iconVideo:iconVideo,iconPDF:iconPDF,iconFile:iconFile,iconText:iconText,uploadIcon:uploadIcon,dashboardBgIcon:dashboardBgIcon};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],60:[function(require,module,exports){
  "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Plugin=require("../Plugin"),Translator=require("../../core/Translator"),dragDrop=require("drag-drop"),Dashboard=require("./Dashboard"),_require=require("../../core/Utils"),getSpeed=_require.getSpeed,_require2=require("../../core/Utils"),getETA=_require2.getETA,_require3=require("../../core/Utils"),prettyETA=_require3.prettyETA,prettyBytes=require("pretty-bytes"),_require4=require("./icons"),defaultTabIcon=_require4.defaultTabIcon;module.exports=function(e){function t(o,r){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,e.call(this,o,r));i.id="DashboardUI",i.title="Dashboard UI",i.type="orchestrator";var a={strings:{selectToUpload:"Select files to upload",closeModal:"Close Modal",upload:"Upload",importFrom:"Import files from",dashboardWindowTitle:"Uppy Dashboard Window (Press escape to close)",dashboardTitle:"Uppy Dashboard",copyLinkToClipboardSuccess:"Link copied to clipboard.",copyLinkToClipboardFallback:"Copy the URL below",done:"Done",localDisk:"Local Disk",dropPasteImport:"Drop files here, paste, import from one of the locations above or",dropPaste:"Drop files here, paste or",browse:"browse",fileProgress:"File progress: upload speed and ETA",numberOfSelectedFiles:"Number of selected files",uploadAllNewFiles:"Upload all new files"}},s={target:"body",inline:!1,width:750,height:550,semiTransparent:!1,defaultTabIcon:defaultTabIcon(),showProgressDetails:!0,locale:a};return i.opts=_extends({},s,r),i.locale=_extends({},a,i.opts.locale),i.locale.strings=_extends({},a.strings,i.opts.locale.strings),i.translator=new Translator({locale:i.locale}),i.containerWidth=i.translator.translate.bind(i.translator),i.hideModal=i.hideModal.bind(i),i.showModal=i.showModal.bind(i),i.addTarget=i.addTarget.bind(i),i.actions=i.actions.bind(i),i.hideAllPanels=i.hideAllPanels.bind(i),i.showPanel=i.showPanel.bind(i),i.initEvents=i.initEvents.bind(i),i.handleDrop=i.handleDrop.bind(i),i.pauseAll=i.pauseAll.bind(i),i.resumeAll=i.resumeAll.bind(i),i.cancelAll=i.cancelAll.bind(i),i.updateDashboardElWidth=i.updateDashboardElWidth.bind(i),i.render=i.render.bind(i),i.install=i.install.bind(i),i}return _inherits(t,e),t.prototype.addTarget=function(e){var t=e.constructor.name,o=e.title||t,r=e.icon||this.opts.defaultTabIcon,i=e.type;if("acquirer"!==i&&"progressindicator"!==i&&"presenter"!==i){var a="Error: Modal can only be used by plugins of types: acquirer, progressindicator, presenter";return void this.core.log(a)}var s={id:t,name:o,icon:r,type:i,focus:e.focus,render:e.render,isHidden:!0},n=this.core.getState().modal,l=n.targets.slice();return l.push(s),this.core.setState({modal:_extends({},n,{targets:l})}),this.opts.target},t.prototype.hideAllPanels=function(){var e=this.core.getState().modal;this.core.setState({modal:_extends({},e,{activePanel:!1})})},t.prototype.showPanel=function(e){var t=this.core.getState().modal,o=t.targets.filter(function(t){return"acquirer"===t.type&&t.id===e})[0];this.core.setState({modal:_extends({},t,{activePanel:o})})},t.prototype.hideModal=function(){var e=this.core.getState().modal;this.core.setState({modal:_extends({},e,{isHidden:!0})}),document.body.classList.remove("is-UppyDashboard-open")},t.prototype.showModal=function(){var e=this.core.getState().modal;this.core.setState({modal:_extends({},e,{isHidden:!1})}),document.body.classList.add("is-UppyDashboard-open"),document.querySelector(".UppyDashboard-inner").focus(),this.updateDashboardElWidth()},t.prototype.initEvents=function(){var e=this,t=document.querySelector(this.opts.trigger);!this.opts.inline&&t?t.addEventListener("click",this.showModal):this.core.log("Modal trigger wasn’t found"),document.body.addEventListener("keyup",function(t){27===t.keyCode&&e.hideModal()}),dragDrop(this.el,function(t){e.handleDrop(t)})},t.prototype.actions=function(){var e=this,t=this.core.bus;t.on("core:file-add",function(){e.hideAllPanels()}),t.on("dashboard:file-card",function(t){var o=e.core.getState().modal;e.core.setState({modal:_extends({},o,{fileCardFor:t||!1})})}),window.addEventListener("resize",function(t){return e.updateDashboardElWidth()})},t.prototype.updateDashboardElWidth=function(){var e=document.querySelector(".UppyDashboard-inner"),t=this.core.getState().modal;this.core.setState({modal:_extends({},t,{containerWidth:e.offsetWidth})})},t.prototype.handleDrop=function(e){var t=this;this.core.log("All right, someone dropped something..."),e.forEach(function(e){t.core.bus.emit("core:file-add",{source:t.id,name:e.name,type:e.type,data:e})})},t.prototype.cancelAll=function(){this.core.bus.emit("core:cancel-all")},t.prototype.pauseAll=function(){this.core.bus.emit("core:pause-all")},t.prototype.resumeAll=function(){this.core.bus.emit("core:resume-all")},t.prototype.getTotalSpeed=function(e){var t=0;return e.forEach(function(e){t+=getSpeed(e.progress)}),t},t.prototype.getTotalETA=function(e){var t=0;return e.forEach(function(e){t+=getETA(e.progress)}),t},t.prototype.render=function(e){var t=this,o=e.files,r=Object.keys(o).filter(function(e){return!o[e].progress.uploadStarted}),i=Object.keys(o).filter(function(e){return o[e].progress.uploadStarted}),a=Object.keys(o).filter(function(e){return o[e].progress.uploadComplete}),s=Object.keys(o).filter(function(e){return!o[e].progress.uploadComplete&&o[e].progress.uploadStarted&&!o[e].isPaused}),n=[];s.forEach(function(e){n.push(o[e])});var l=prettyBytes(this.getTotalSpeed(n)),d=prettyETA(this.getTotalETA(n)),c=0,p=0;n.forEach(function(e){c+=e.progress.bytesTotal||0,p+=e.progress.bytesUploaded||0}),c=prettyBytes(c),p=prettyBytes(p);var u=100===e.totalProgress,h=0===s.length&&!u&&i.length>0,f=i.length>0,m=e.modal.targets.filter(function(e){return"acquirer"===e.type}),b=e.modal.targets.filter(function(e){return"progressindicator"===e.type}),g=function(e){t.core.emitter.emit("core:file-add",e)},y=function(e){t.core.emitter.emit("core:file-remove",e)},v=function(e){t.core.emitter.emit("core:upload")},P=function(e){t.core.emitter.emit("core:upload-pause",e)},T=function(e){t.core.emitter.emit("core:upload-cancel",e),t.core.emitter.emit("core:file-remove",e)},w=function(e){t.core.emitter.emit("dashboard:file-card",e)},A=function(e,o){t.core.emitter.emit("core:update-meta",e,o),t.core.emitter.emit("dashboard:file-card")},S=function(e,o,r){t.core.emitter.emit("informer",e,o,r)},D=this.core.getState().capabilities.resumableUploads||!1;return Dashboard({state:e,modal:e.modal,newFiles:r,files:o,totalFileCount:Object.keys(o).length,isUploadStarted:f,inProgress:i.length,completeFiles:a,inProgressFiles:s,totalSpeed:l,totalETA:d,totalProgress:e.totalProgress,totalSize:c,totalUploadedSize:p,isAllComplete:u,isAllPaused:h,acquirers:m,activePanel:e.modal.activePanel,progressindicators:b,autoProceed:this.core.opts.autoProceed,id:this.id,container:this.opts.target,hideModal:this.hideModal,showProgressDetails:this.opts.showProgressDetails,inline:this.opts.inline,semiTransparent:this.opts.semiTransparent,onPaste:this.handlePaste,showPanel:this.showPanel,hideAllPanels:this.hideAllPanels,log:this.core.log,bus:this.core.emitter,i18n:this.containerWidth,pauseAll:this.pauseAll,resumeAll:this.resumeAll,cancelAll:this.cancelAll,addFile:g,removeFile:y,info:S,metaFields:e.metaFields,resumableUploads:D,startUpload:v,pauseUpload:P,cancelUpload:T,fileCardFor:e.modal.fileCardFor,showFileCard:w,fileCardDone:A,updateDashboardElWidth:this.updateDashboardElWidth,maxWidth:this.opts.maxWidth,maxHeight:this.opts.maxHeight,currentWidth:e.modal.containerWidth,isWide:e.modal.containerWidth>400})},t.prototype.install=function(){this.core.setState({modal:{isHidden:!0,showFileCard:!1,activePanel:!1,targets:[]}});var e=this.opts.target,t=this;this.target=this.mount(e,t),this.initEvents(),this.actions()},t}(Plugin);
  },{"../../core/Translator":35,"../../core/Utils":37,"../Plugin":70,"./Dashboard":50,"./icons":59,"drag-drop":3,"pretty-bytes":8}],61:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Plugin=require("./../Plugin"),Translator=require("../../core/Translator"),_require=require("../../core/Utils"),toArray=_require.toArray,dragDrop=require("drag-drop"),html=require("yo-yo");module.exports=function(t){function e(r,n){_classCallCheck(this,e);var o=_possibleConstructorReturn(this,t.call(this,r,n));o.type="acquirer",o.id="DragDrop",o.title="Drag & Drop",o.icon=function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","28"),e.setAttributeNS(null,"height","28"),e.setAttributeNS(null,"viewBox","0 0 16 16"),e.setAttributeNS(null,"class","UppyIcon");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttributeNS(null,"d","M15.982 2.97c0-.02 0-.02-.018-.037 0-.017-.017-.035-.035-.053 0 0 0-.018-.02-.018-.017-.018-.034-.053-.052-.07L13.19.123c-.017-.017-.034-.035-.07-.053h-.018c-.018-.017-.035-.017-.053-.034h-.02c-.017 0-.034-.018-.052-.018h-6.31a.415.415 0 0 0-.446.426V11.11c0 .25.196.446.445.446h8.89A.44.44 0 0 0 16 11.11V3.023c-.018-.018-.018-.035-.018-.053zm-2.65-1.46l1.157 1.157h-1.157V1.51zm1.78 9.157h-8V.89h5.332v2.22c0 .25.196.446.445.446h2.22v7.11z");var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M9.778 12.89H4V2.666a.44.44 0 0 0-.444-.445.44.44 0 0 0-.445.445v10.666c0 .25.197.445.446.445h6.222a.44.44 0 0 0 .444-.445.44.44 0 0 0-.444-.444z");var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttributeNS(null,"d","M.444 16h6.223a.44.44 0 0 0 .444-.444.44.44 0 0 0-.443-.445H.89V4.89a.44.44 0 0 0-.446-.446A.44.44 0 0 0 0 4.89v10.666c0 .248.196.444.444.444z"),t(e,["\n        ",r,"\n        ",n,"\n        ",o,"\n      "]),e}();var a={strings:{chooseFile:"Choose a file",orDragDrop:"or drop it here",upload:"Upload",selectedFiles:{0:"%{smart_count} file selected",1:"%{smart_count} files selected"}}},i={target:".UppyDragDrop",locale:a};return o.opts=_extends({},i,n),o.locale=_extends({},a,o.opts.locale),o.locale.strings=_extends({},a.strings,o.opts.locale.strings),o.isDragDropSupported=o.checkDragDropSupport(),o.translator=new Translator({locale:o.locale}),o.i18n=o.translator.translate.bind(o.translator),o.handleDrop=o.handleDrop.bind(o),o.checkDragDropSupport=o.checkDragDropSupport.bind(o),o.handleInputChange=o.handleInputChange.bind(o),o.render=o.render.bind(o),o}return _inherits(e,t),e.prototype.checkDragDropSupport=function(){var t=document.createElement("div");return"draggable"in t&&"ondragstart"in t&&"ondrop"in t&&("FormData"in window&&"FileReader"in window)},e.prototype.handleDrop=function(t){var e=this;this.core.log("All right, someone dropped something..."),t.forEach(function(t){e.core.addFile({source:e.id,name:t.name,type:t.type,data:t})})},e.prototype.handleInputChange=function(t){var e=this;this.core.log("All right, something selected through input...");var r=toArray(t.target.files);r.forEach(function(t){e.core.emitter.emit("core:file-add",{source:e.id,name:t.name,type:t.type,data:t})})},e.prototype.render=function(t){var e=this,r=function(t){var r=document.querySelector(e.target+" .UppyDragDrop-input");r.click()},n=Object.keys(t.files).length;return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("div");e.setAttribute("class","Uppy UppyTheme--default UppyDragDrop-container "+arguments[6]);var r=document.createElement("form");r.onsubmit=arguments[4],r.setAttribute("class","UppyDragDrop-inner");var n=document.createElement("input");n.setAttribute("type","file"),n.setAttribute("name","files[]"),n.setAttribute("multiple","true"),n.setAttribute("value",""),n.onchange=arguments[0],n.setAttribute("class","UppyDragDrop-input UppyDragDrop-focus");var o=document.createElement("label");o.onclick=arguments[3],o.setAttribute("class","UppyDragDrop-label");var a=document.createElement("strong");t(a,[arguments[1]]);var i=document.createElement("span");return i.setAttribute("class","UppyDragDrop-dragText"),t(i,[arguments[2]]),t(o,["\n            ",a,"\n            ",i,"\n          "]),t(r,["\n          ",n,"\n          ",o,"\n          ",arguments[5],"\n        "]),t(e,["\n        ",r,"\n      "]),e}(this.handleInputChange.bind(this),this.i18n("chooseFile"),this.i18n("orDragDrop"),r,function(t){return t.preventDefault()},n>0?function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("div");return e.setAttribute("class","UppyDragDrop-selectedCount"),t(e,["\n                ",arguments[0],"\n              "]),e}(this.i18n("selectedFiles",{smart_count:n})):"",this.isDragDropSupported?"is-dragdrop-supported":"")},e.prototype.install=function(){var t=this,e=this.opts.target,r=this;this.target=this.mount(e,r),dragDrop(this.target+" .UppyDragDrop-container",function(e){t.handleDrop(e),t.core.log(e)})},e}(Plugin);
  },{"../../core/Translator":35,"../../core/Utils":37,"./../Plugin":70,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"drag-drop":3,"yo-yo":21}],62:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports={folder:function(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"style","width:16px;margin-right:3px"),e.setAttributeNS(null,"viewBox","0 0 276.157 276.157"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d","M273.08 101.378c-3.3-4.65-8.86-7.32-15.254-7.32h-24.34V67.59c0-10.2-8.3-18.5-18.5-18.5h-85.322c-3.63 0-9.295-2.875-11.436-5.805l-6.386-8.735c-4.982-6.814-15.104-11.954-23.546-11.954H58.73c-9.292 0-18.638 6.608-21.737 15.372l-2.033 5.752c-.958 2.71-4.72 5.37-7.596 5.37H18.5C8.3 49.09 0 57.39 0 67.59v167.07c0 .886.16 1.73.443 2.52.152 3.306 1.18 6.424 3.053 9.064 3.3 4.652 8.86 7.32 15.255 7.32h188.487c11.395 0 23.27-8.425 27.035-19.18l40.677-116.188c2.11-6.035 1.43-12.164-1.87-16.816zM18.5 64.088h8.864c9.295 0 18.64-6.607 21.738-15.37l2.032-5.75c.96-2.712 4.722-5.373 7.597-5.373h29.565c3.63 0 9.295 2.876 11.437 5.806l6.386 8.735c4.982 6.815 15.104 11.954 23.546 11.954h85.322c1.898 0 3.5 1.602 3.5 3.5v26.47H69.34c-11.395 0-23.27 8.423-27.035 19.178L15 191.23V67.59c0-1.898 1.603-3.5 3.5-3.5zm242.29 49.15l-40.676 116.188c-1.674 4.78-7.812 9.135-12.877 9.135H18.75c-1.447 0-2.576-.372-3.02-.997-.442-.625-.422-1.814.057-3.18l40.677-116.19c1.674-4.78 7.812-9.134 12.877-9.134h188.487c1.448 0 2.577.372 3.02.997.443.625.423 1.814-.056 3.18z"),t(e,["\n      ",n,"\n  "]),e}()},music:function(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","16.000000pt"),e.setAttributeNS(null,"height","16.000000pt"),e.setAttributeNS(null,"viewBox","0 0 48.000000 48.000000"),e.setAttributeNS(null,"preserveAspectRatio","xMidYMid meet"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","g");n.setAttributeNS(null,"transform","translate(0.000000,48.000000) scale(0.100000,-0.100000)"),n.setAttributeNS(null,"fill","#525050"),n.setAttributeNS(null,"stroke","none");var l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttributeNS(null,"d","M209 473 c0 -5 0 -52 1 -106 1 -54 -2 -118 -6 -143 l-7 -46 -44 5\n    c-73 8 -133 -46 -133 -120 0 -17 -5 -35 -10 -38 -18 -11 0 -25 33 -24 30 1 30\n    1 7 8 -15 4 -20 10 -13 14 6 4 9 16 6 27 -9 34 7 70 40 90 17 11 39 20 47 20\n    8 0 -3 -9 -26 -19 -42 -19 -54 -36 -54 -75 0 -36 30 -56 84 -56 41 0 53 5 82\n    34 19 19 34 31 34 27 0 -4 -5 -12 -12 -19 -9 -9 -1 -12 39 -12 106 0 183 -21\n    121 -33 -17 -3 -14 -5 10 -6 25 -1 32 3 32 17 0 26 -20 42 -51 42 -39 0 -43\n    13 -10 38 56 41 76 124 45 185 -25 48 -72 105 -103 123 -15 9 -36 29 -47 45\n    -17 26 -63 41 -65 22z m56 -48 c16 -24 31 -42 34 -39 9 9 79 -69 74 -83 -3 -7\n    -2 -13 3 -12 18 3 25 -1 19 -12 -5 -7 -16 -2 -33 13 l-26 23 16 -25 c17 -27\n    29 -92 16 -84 -4 3 -8 -8 -8 -25 0 -16 4 -33 10 -36 5 -3 7 0 4 9 -3 9 3 20\n    15 28 13 8 21 24 22 43 1 18 3 23 6 12 3 -10 2 -29 -1 -43 -7 -26 -62 -94 -77\n    -94 -13 0 -11 17 4 32 21 19 4 88 -28 115 -14 13 -22 23 -16 23 5 0 21 -14 35\n    -31 14 -17 26 -25 26 -19 0 21 -60 72 -79 67 -16 -4 -17 -1 -8 34 6 24 14 36\n    21 32 6 -3 1 5 -11 18 -12 13 -22 29 -23 34 -1 6 -6 17 -12 25 -6 10 -7 -39\n    -4 -142 l6 -158 -26 10 c-33 13 -44 12 -21 -1 17 -10 24 -44 10 -52 -5 -3 -39\n    -8 -76 -12 -68 -7 -69 -7 -65 17 4 28 64 60 117 62 l36 1 0 157 c0 87 2 158 5\n    158 3 0 18 -20 35 -45z m15 -159 c0 -2 -7 -7 -16 -10 -8 -3 -12 -2 -9 4 6 10\n    25 14 25 6z m50 -92 c0 -13 -4 -26 -10 -29 -14 -9 -13 -48 2 -63 9 -9 6 -12\n    -15 -12 -22 0 -27 5 -27 24 0 14 -4 28 -10 31 -15 9 -13 102 3 108 18 7 57\n    -33 57 -59z m-139 -135 c-32 -26 -121 -25 -121 2 0 6 8 5 19 -1 26 -14 64 -13\n    55 1 -4 8 1 9 16 4 13 -4 20 -3 17 2 -3 5 4 10 16 10 22 2 22 2 -2 -18z");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttributeNS(null,"d","M330 345 c19 -19 36 -35 39 -35 3 0 -10 16 -29 35 -19 19 -36 35 -39\n    35 -3 0 10 -16 29 -35z");var u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttributeNS(null,"d","M349 123 c-13 -16 -12 -17 4 -4 16 13 21 21 13 21 -2 0 -10 -8 -17\n    -17z");var c=document.createElementNS("http://www.w3.org/2000/svg","path");return c.setAttributeNS(null,"d","M243 13 c15 -2 39 -2 55 0 15 2 2 4 -28 4 -30 0 -43 -2 -27 -4z"),t(n,["\n    ",l,"\n    ",r,"\n    ",u,"\n    ",c,"\n    "]),t(e,["\n    ",n,"\n    "]),e}()},page_white_picture:function(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","16.000000pt"),e.setAttributeNS(null,"height","16.000000pt"),e.setAttributeNS(null,"viewBox","0 0 48.000000 36.000000"),e.setAttributeNS(null,"preserveAspectRatio","xMidYMid meet"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","g");n.setAttributeNS(null,"transform","translate(0.000000,36.000000) scale(0.100000,-0.100000)"),n.setAttributeNS(null,"fill","#565555"),n.setAttributeNS(null,"stroke","none");var l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttributeNS(null,"d","M0 180 l0 -180 240 0 240 0 0 180 0 180 -240 0 -240 0 0 -180z m470\n    0 l0 -170 -230 0 -230 0 0 170 0 170 230 0 230 0 0 -170z");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttributeNS(null,"d","M40 185 l0 -135 200 0 200 0 0 135 0 135 -200 0 -200 0 0 -135z m390\n    59 l0 -65 -29 20 c-37 27 -45 26 -65 -4 -9 -14 -22 -25 -28 -25 -7 0 -24 -12\n    -39 -26 -26 -25 -28 -25 -53 -9 -17 11 -26 13 -26 6 0 -7 -4 -9 -10 -6 -5 3\n    -22 -2 -37 -12 l-28 -18 20 27 c11 15 26 25 33 23 6 -2 12 -1 12 4 0 10 -37\n    21 -65 20 -14 -1 -12 -3 7 -8 l28 -6 -50 -55 -49 -55 0 126 1 126 189 1 189 2\n    0 -66z m-16 -73 c11 -12 14 -21 8 -21 -6 0 -13 4 -17 10 -3 5 -12 7 -19 4 -8\n    -3 -16 2 -19 13 -3 11 -4 7 -4 -9 1 -19 6 -25 18 -23 19 4 46 -21 35 -32 -4\n    -4 -11 -1 -16 7 -6 8 -10 10 -10 4 0 -6 7 -17 15 -24 24 -20 11 -24 -76 -27\n    -69 -1 -83 1 -97 18 -9 10 -20 19 -25 19 -5 0 -4 -6 2 -14 14 -17 -5 -26 -55\n    -26 -36 0 -46 16 -17 27 10 4 22 13 27 22 8 13 10 12 17 -4 7 -17 8 -18 8 -2\n    1 23 11 22 55 -8 33 -22 35 -23 26 -5 -9 16 -8 20 5 20 8 0 15 5 15 11 0 5 -4\n    7 -10 4 -5 -3 -10 -4 -10 -1 0 4 59 36 67 36 2 0 1 -10 -2 -21 -5 -15 -4 -19\n    5 -14 6 4 9 17 6 28 -12 49 27 53 68 8z");var u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttributeNS(null,"d","M100 296 c0 -2 7 -7 16 -10 8 -3 12 -2 9 4 -6 10 -25 14 -25 6z");var c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttributeNS(null,"d","M243 293 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z");var w=document.createElementNS("http://www.w3.org/2000/svg","path");w.setAttributeNS(null,"d","M65 280 c-3 -5 -2 -10 4 -10 5 0 13 5 16 10 3 6 2 10 -4 10 -5 0 -13\n    -4 -16 -10z");var s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttributeNS(null,"d","M155 270 c-3 -6 1 -7 9 -4 18 7 21 14 7 14 -6 0 -13 -4 -16 -10z");var a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttributeNS(null,"d","M233 252 c-13 -2 -23 -8 -23 -13 0 -7 -12 -8 -30 -4 -22 5 -30 3 -30\n    -7 0 -10 -2 -10 -9 1 -5 8 -19 12 -35 9 -14 -3 -27 -1 -30 4 -2 5 -4 4 -3 -3\n    2 -6 6 -10 10 -10 3 0 20 -4 37 -9 18 -5 32 -5 36 1 3 6 13 8 21 5 13 -5 113\n    21 113 30 0 3 -19 2 -57 -4z");var o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttributeNS(null,"d","M275 220 c-13 -6 -15 -9 -5 -9 8 0 22 4 30 9 18 12 2 12 -25 0z");var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttributeNS(null,"d","M132 23 c59 -2 158 -2 220 0 62 1 14 3 -107 3 -121 0 -172 -2 -113\n    -3z"),t(n,["\n    ",l,"\n    ",r,"\n    ",u,"\n    ",c,"\n    ",w,"\n    ",s,"\n    ",a,"\n    ",o,"\n    ",i,"\n    "]),t(e,["\n    ",n,"\n    "]),e}()},word:function(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","16.000000pt"),e.setAttributeNS(null,"height","16.000000pt"),e.setAttributeNS(null,"viewBox","0 0 48.000000 48.000000"),e.setAttributeNS(null,"preserveAspectRatio","xMidYMid meet"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","g");n.setAttributeNS(null,"transform","translate(0.000000,48.000000) scale(0.100000,-0.100000)"),n.setAttributeNS(null,"fill","#423d3d"),n.setAttributeNS(null,"stroke","none");var l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttributeNS(null,"d","M0 466 c0 -15 87 -26 213 -26 l77 0 0 -140 0 -140 -77 0 c-105 0\n    -213 -11 -213 -21 0 -5 15 -9 34 -9 25 0 33 -4 33 -17 0 -74 4 -113 13 -113 6\n    0 10 32 10 75 l0 75 105 0 105 0 0 150 0 150 -105 0 c-87 0 -105 3 -105 15 0\n    11 -12 15 -45 15 -31 0 -45 -4 -45 -14z");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttributeNS(null,"d","M123 468 c-2 -5 50 -8 116 -8 l121 0 0 -50 c0 -46 -2 -50 -23 -50\n    -14 0 -24 -6 -24 -15 0 -8 4 -15 9 -15 4 0 8 -20 8 -45 0 -25 -4 -45 -8 -45\n    -5 0 -9 -7 -9 -15 0 -9 10 -15 24 -15 22 0 23 3 23 75 l0 75 50 0 50 0 0 -170\n    0 -170 -175 0 -175 0 -2 63 c-2 59 -2 60 -5 13 -3 -27 -2 -60 2 -73 l5 -23\n    183 2 182 3 2 216 c3 275 19 254 -194 254 -85 0 -157 -3 -160 -7z m337 -85 c0\n    -2 -18 -3 -39 -3 -39 0 -39 0 -43 45 l-3 44 42 -41 c24 -23 43 -43 43 -45z\n    m-19 50 c19 -22 23 -29 9 -18 -36 30 -50 43 -50 49 0 11 6 6 41 -31z");var u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttributeNS(null,"d","M4 300 c0 -74 1 -105 3 -67 2 37 2 97 0 135 -2 37 -3 6 -3 -68z");var c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttributeNS(null,"d","M20 300 l0 -131 128 3 127 3 3 128 3 127 -131 0 -130 0 0 -130z m250\n    100 c0 -16 -7 -20 -33 -20 -31 0 -34 -2 -34 -31 0 -28 2 -30 13 -14 8 10 11\n    22 8 26 -3 5 1 9 9 9 11 0 9 -12 -12 -50 -14 -27 -32 -50 -39 -50 -15 0 -31\n    38 -26 63 2 10 -1 15 -8 11 -6 -4 -9 -1 -6 6 2 8 10 16 16 18 8 2 12 -10 12\n    -38 0 -38 2 -41 16 -29 9 7 12 15 7 16 -5 2 -7 17 -5 33 4 26 1 30 -20 30 -17\n    0 -29 -9 -39 -27 -20 -41 -22 -50 -6 -30 14 17 15 16 20 -5 4 -13 2 -40 -2\n    -60 -9 -37 -8 -38 20 -38 26 0 33 8 64 70 19 39 37 70 40 70 3 0 5 -40 5 -90\n    l0 -90 -120 0 -120 0 0 120 0 120 120 0 c113 0 120 -1 120 -20z");var w=document.createElementNS("http://www.w3.org/2000/svg","path");w.setAttributeNS(null,"d","M40 371 c0 -6 5 -13 10 -16 6 -3 10 -35 10 -71 0 -57 2 -64 20 -64\n    13 0 27 14 40 40 25 49 25 63 0 30 -19 -25 -39 -23 -24 2 5 7 7 23 6 35 -2 11\n    2 24 7 28 23 13 9 25 -29 25 -22 0 -40 -4 -40 -9z m53 -9 c-6 -4 -13 -28 -15\n    -52 l-3 -45 -5 53 c-5 47 -3 52 15 52 13 0 16 -3 8 -8z");var s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttributeNS(null,"d","M313 165 c0 -9 10 -15 24 -15 14 0 23 6 23 15 0 9 -9 15 -23 15 -14\n    0 -24 -6 -24 -15z");var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttributeNS(null,"d","M180 105 c0 -12 17 -15 90 -15 73 0 90 3 90 15 0 12 -17 15 -90 15\n    -73 0 -90 -3 -90 -15z"),t(n,["\n    ",l,"\n    ",r,"\n    ",u,"\n    ",c,"\n    ",w,"\n    ",s,"\n    ",a,"\n    "]),t(e,["\n    ",n,"\n    "]),e}()},powerpoint:function(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","16.000000pt"),e.setAttributeNS(null,"height","16.000000pt"),e.setAttributeNS(null,"viewBox","0 0 16.000000 16.000000"),e.setAttributeNS(null,"preserveAspectRatio","xMidYMid meet"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","g");n.setAttributeNS(null,"transform","translate(0.000000,144.000000) scale(0.100000,-0.100000)"),n.setAttributeNS(null,"fill","#494747"),n.setAttributeNS(null,"stroke","none");var l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttributeNS(null,"d","M0 1390 l0 -50 93 0 c50 0 109 -3 130 -6 l37 -7 0 57 0 56 -130 0\n    -130 0 0 -50z");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttributeNS(null,"d","M870 1425 c0 -8 -12 -18 -27 -22 l-28 -6 30 -9 c17 -5 75 -10 130\n    -12 86 -2 100 -5 99 -19 0 -10 -1 -80 -2 -157 l-2 -140 -65 0 c-60 0 -80 -9\n    -55 -25 8 -5 7 -11 -1 -21 -17 -20 2 -25 112 -27 l94 -2 0 40 0 40 100 5 c55\n    3 104 3 108 -1 8 -6 11 -1008 4 -1016 -2 -2 -236 -4 -520 -6 -283 -1 -519 -5\n    -523 -9 -4 -4 -1 -14 6 -23 11 -13 82 -15 561 -15 l549 0 0 570 c0 543 -1 570\n    -18 570 -10 0 -56 39 -103 86 -46 47 -93 90 -104 95 -11 6 22 -31 73 -82 50\n    -50 92 -95 92 -99 0 -14 -23 -16 -136 -12 l-111 4 -6 124 c-6 119 -7 126 -32\n    145 -14 12 -23 25 -20 30 4 5 -38 9 -99 9 -87 0 -106 -3 -106 -15z");var u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttributeNS(null,"d","M1190 1429 c0 -14 225 -239 239 -239 7 0 11 30 11 85 0 77 -2 85 -19\n    85 -21 0 -61 44 -61 66 0 11 -20 14 -85 14 -55 0 -85 -4 -85 -11z");var c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttributeNS(null,"d","M281 1331 c-24 -16 7 -23 127 -31 100 -6 107 -7 47 -9 -38 -1 -142\n    -8 -229 -14 l-160 -12 -7 -28 c-10 -37 -16 -683 -6 -693 4 -4 10 -4 15 0 4 4\n    8 166 9 359 l2 352 358 -3 358 -2 5 -353 c3 -193 2 -356 -2 -361 -3 -4 -136\n    -8 -295 -7 -290 2 -423 -4 -423 -20 0 -5 33 -9 73 -9 39 0 90 -3 111 -7 l39\n    -6 -45 -18 c-26 -10 -90 -20 -151 -25 l-107 -7 0 -38 c0 -35 3 -39 24 -39 36\n    0 126 -48 128 -68 1 -9 2 -40 3 -69 2 -29 6 -91 10 -138 l7 -85 44 0 44 0 0\n    219 0 220 311 1 c172 0 314 2 318 4 5 4 6 301 2 759 l-1 137 -297 0 c-164 0\n    -304 -4 -312 -9z");var w=document.createElementNS("http://www.w3.org/2000/svg","path");w.setAttributeNS(null,"d","M2 880 c-1 -276 2 -378 10 -360 12 30 11 657 -2 710 -5 21 -8 -121\n    -8 -350z");var s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttributeNS(null,"d","M145 1178 c-3 -8 -4 -141 -3 -298 l3 -285 295 0 295 0 0 295 0 295\n    -293 3 c-230 2 -294 0 -297 -10z m553 -27 c11 -6 13 -60 11 -260 -1 -139 -6\n    -254 -9 -256 -4 -3 -124 -6 -266 -7 l-259 -3 -3 255 c-1 140 0 260 3 267 3 10\n    62 13 257 13 139 0 259 -4 266 -9z");var a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttributeNS(null,"d","M445 1090 l-210 -5 -3 -37 -3 -38 225 0 226 0 0 34 c0 18 -6 37 -12\n    42 -7 5 -107 7 -223 4z");var o=document.createElementNS("http://www.w3.org/2000/svg","path");o.setAttributeNS(null,"d","M295 940 c-3 -6 1 -12 9 -15 9 -3 23 -7 31 -10 10 -3 15 -18 15 -49\n    0 -25 3 -47 8 -49 15 -9 47 11 52 33 9 38 28 34 41 -8 10 -35 9 -43 -7 -66\n    -23 -31 -51 -34 -56 -4 -4 31 -26 34 -38 4 -5 -14 -12 -26 -16 -26 -4 0 -22\n    16 -41 36 -33 35 -34 40 -28 86 7 48 6 50 -16 46 -18 -2 -23 -9 -21 -23 2 -11\n    3 -49 3 -85 0 -72 6 -83 60 -111 57 -29 95 -25 144 15 37 31 46 34 83 29 40\n    -5 42 -5 42 21 0 24 -3 27 -27 24 -24 -3 -28 1 -31 25 -3 24 0 28 20 25 13 -2\n    23 2 23 7 0 6 -9 9 -20 8 -13 -2 -28 9 -44 32 -13 19 -31 35 -41 35 -10 0 -23\n    7 -30 15 -14 17 -105 21 -115 5z");var i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttributeNS(null,"d","M522 919 c-28 -11 -20 -29 14 -29 14 0 24 6 24 14 0 21 -11 25 -38\n    15z");var p=document.createElementNS("http://www.w3.org/2000/svg","path");p.setAttributeNS(null,"d","M623 922 c-53 -5 -43 -32 12 -32 32 0 45 4 45 14 0 17 -16 22 -57 18z");var d=document.createElementNS("http://www.w3.org/2000/svg","path");d.setAttributeNS(null,"d","M597 854 c-13 -14 6 -24 44 -24 28 0 39 4 39 15 0 11 -11 15 -38 15\n    -21 0 -42 -3 -45 -6z");var m=document.createElementNS("http://www.w3.org/2000/svg","path");m.setAttributeNS(null,"d","M597 794 c-4 -4 -7 -18 -7 -31 0 -21 4 -23 46 -23 44 0 45 1 42 28\n    -3 23 -8 27 -38 30 -20 2 -39 0 -43 -4z");var N=document.createElementNS("http://www.w3.org/2000/svg","path");N.setAttributeNS(null,"d","M989 883 c-34 -4 -37 -6 -37 -37 0 -32 2 -34 45 -40 25 -3 72 -6 104\n    -6 l59 0 0 45 0 45 -67 -2 c-38 -1 -84 -3 -104 -5z");var S=document.createElementNS("http://www.w3.org/2000/svg","path");S.setAttributeNS(null,"d","M993 703 c-42 -4 -54 -15 -33 -28 8 -5 8 -11 0 -20 -16 -20 -3 -24\n    104 -31 l96 -7 0 47 0 46 -62 -2 c-35 -1 -82 -3 -105 -5z");var h=document.createElementNS("http://www.w3.org/2000/svg","path");h.setAttributeNS(null,"d","M1005 523 c-50 -6 -59 -12 -46 -26 8 -10 7 -17 -1 -25 -6 -6 -9 -14\n    -6 -17 3 -3 51 -8 107 -12 l101 -6 0 46 0 47 -62 -1 c-35 -1 -76 -4 -93 -6z");var v=document.createElementNS("http://www.w3.org/2000/svg","path");v.setAttributeNS(null,"d","M537 344 c-4 -4 -7 -25 -7 -46 l0 -38 46 0 45 0 -3 43 c-3 40 -4 42\n    -38 45 -20 2 -39 0 -43 -4z");var g=document.createElementNS("http://www.w3.org/2000/svg","path");g.setAttributeNS(null,"d","M714 341 c-2 -2 -4 -22 -4 -43 l0 -38 225 0 225 0 0 45 0 46 -221 -3\n    c-121 -2 -222 -5 -225 -7z");var b=document.createElementNS("http://www.w3.org/2000/svg","path");return b.setAttributeNS(null,"d","M304 205 c0 -66 1 -92 3 -57 2 34 2 88 0 120 -2 31 -3 3 -3 -63z"),t(n,["\n    ",l,"\n    ",r,"\n    ",u,"\n    ",c,"\n    ",w,"\n    ",s,"\n    ",a,"\n    ",o,"\n    ",i,"\n    ",p,"\n    ",d,"\n    ",m,"\n    ",N,"\n    ",S,"\n    ",h,"\n    ",v,"\n    ",g,"\n    ",b,"\n    "]),t(e,["\n    ",n,"\n    "]),e}()},page_white:function(){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","16.000000pt"),e.setAttributeNS(null,"height","16.000000pt"),e.setAttributeNS(null,"viewBox","0 0 48.000000 48.000000"),e.setAttributeNS(null,"preserveAspectRatio","xMidYMid meet"),e.setAttributeNS(null,"class","UppyIcon");var n=document.createElementNS("http://www.w3.org/2000/svg","g");n.setAttributeNS(null,"transform","translate(0.000000,48.000000) scale(0.100000,-0.100000)"),n.setAttributeNS(null,"fill","#000000"),n.setAttributeNS(null,"stroke","none");var l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttributeNS(null,"d","M20 240 c1 -202 3 -240 16 -240 12 0 14 38 14 240 0 208 -2 240 -15\n    240 -13 0 -15 -31 -15 -240z");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttributeNS(null,"d","M75 471 c-4 -8 32 -11 119 -11 l126 0 0 -50 0 -50 50 0 c28 0 50 5\n    50 10 0 6 -18 10 -40 10 l-40 0 0 42 0 42 43 -39 42 -40 -43 45 -42 45 -129 3\n    c-85 2 -131 0 -136 -7z");var u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttributeNS(null,"d","M398 437 l42 -43 0 -197 c0 -168 2 -197 15 -197 13 0 15 29 15 198\n    l0 198 -36 42 c-21 25 -44 42 -57 42 -18 0 -16 -6 21 -43z");var c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttributeNS(null,"d","M92 353 l2 -88 3 78 4 77 89 0 89 0 8 -42 c8 -43 9 -43 55 -46 44 -3\n    47 -5 51 -35 4 -31 4 -31 5 6 l2 37 -50 0 -50 0 0 50 0 50 -105 0 -105 0 2\n    -87z");var w=document.createElementNS("http://www.w3.org/2000/svg","path");return w.setAttributeNS(null,"d","M75 10 c8 -13 332 -13 340 0 4 7 -55 10 -170 10 -115 0 -174 -3 -170\n    -10z"),t(n,["\n    ",l,"\n    ",r,"\n    ",u,"\n    ",c,"\n    ",w,"\n    "]),t(e,["\n    ",n,"\n    "]),e}()}};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],63:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},html=require("yo-yo"),Plugin=require("../Plugin"),Provider=require("../../uppy-base/src/plugins/Provider"),View=require("../../generic-provider-views/index"),icons=require("./icons");module.exports=function(t){function e(r,n){_classCallCheck(this,e);var o=_possibleConstructorReturn(this,t.call(this,r,n));o.type="acquirer",o.id="Dropbox",o.title="Dropbox",o.stateId="dropbox",o.icon=function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","128"),e.setAttributeNS(null,"height","118"),e.setAttributeNS(null,"viewBox","0 0 128 118"),e.setAttributeNS(null,"class","UppyIcon");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttributeNS(null,"d","M38.145.777L1.108 24.96l25.608 20.507 37.344-23.06z");var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttributeNS(null,"d","M1.108 65.975l37.037 24.183L64.06 68.525l-37.343-23.06zM64.06 68.525l25.917 21.633 37.036-24.183-25.61-20.51z");var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttributeNS(null,"d","M127.014 24.96L89.977.776 64.06 22.407l37.345 23.06zM64.136 73.18l-25.99 21.567-11.122-7.262v8.142l37.112 22.256 37.114-22.256v-8.142l-11.12 7.262z"),t(e,["\n        ",r,"\n        ",n,"\n        ",o,"\n      "]),e}(),o.Dropbox=new Provider({host:o.opts.host,provider:"dropbox"}),o.files=[],o.onAuth=o.onAuth.bind(o),o.render=o.render.bind(o);var i={};return o.opts=_extends({},i,n),o}return _inherits(e,t),e.prototype.install=function(){this.view=new View(this),this.core.setState({dropbox:{authenticated:!1,files:[],folders:[],directories:[],activeRow:-1,filterInput:""}});var t=this.opts.target,e=this;this.target=this.mount(t,e),this[this.id].auth().then(this.onAuth)},e.prototype.onAuth=function(t){this.view.updateState({authenticated:t}),t&&this.view.getFolder()},e.prototype.isFolder=function(t){return t.is_dir},e.prototype.getItemData=function(t){return _extends({},t,{size:t.bytes})},e.prototype.getItemIcon=function(t){var e=icons[t.icon];return e||(e=t.icon.startsWith("folder")?icons.folder:icons.page_white),e()},e.prototype.getItemSubList=function(t){return t.contents},e.prototype.getItemName=function(t){return t.path.length>1?t.path.substring(1):t.path},e.prototype.getMimeType=function(t){return t.mime_type},e.prototype.getItemId=function(t){return t.rev},e.prototype.getItemRequestPath=function(t){return encodeURIComponent(this.getItemName(t))},e.prototype.getItemModifiedDate=function(t){return t.modified},e.prototype.render=function(t){return this.view.render(t)},e}(Plugin);
  },{"../../generic-provider-views/index":41,"../../uppy-base/src/plugins/Provider":78,"../Plugin":70,"./icons":62,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],64:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Plugin=require("./Plugin"),html=require("yo-yo");module.exports=function(t){function e(n,r){_classCallCheck(this,e);var i=_possibleConstructorReturn(this,t.call(this,n,r));i.type="acquirer",i.id="Dummy",i.title="Mr. Plugin";var o={};return i.opts=_extends({},o,r),i.strange=function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("h1");return t(e,["this is strange 1"]),e}(),i.render=i.render.bind(i),i.install=i.install.bind(i),i}return _inherits(e,t),e.prototype.addFakeFileJustToTest=function(){var t=new Blob(["data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTIwIDEyMCI+CiAgPGNpcmNsZSBjeD0iNjAiIGN5PSI2MCIgcj0iNTAiLz4KPC9zdmc+Cg=="],{type:"image/svg+xml"}),e={source:"acceptance-test",name:"test-file",type:"image/svg+xml",data:t};this.props.log("Adding fake file blob"),this.props.addFile(e)},e.prototype.render=function(t){var e=function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("h2");return t(e,["this is strange 2"]),e}();return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/node_modules/on-load/index.js"),e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),n=document.createElement("div");n.setAttribute("class","wow-this-works");var r=document.createElement("input"),i=arguments;return t(r,function(){i[0](r)},function(){},"o1"),r.setAttribute("type","text"),r.setAttribute("value","hello"),r.setAttribute("class","UppyDummy-firstInput"),e(n,["\n        ",r,"\n        ",arguments[1],"\n        ",arguments[2],"\n        ",arguments[3],"\n      "]),n}(function(t){t.focus()},this.strange,e,t.dummy.text)},e.prototype.install=function(){var t=this;this.core.setState({dummy:{text:"123"}});var e=this.opts.target,n=this;this.target=this.mount(e,n),setTimeout(function(){t.core.setState({dummy:{text:"!!!"}})},2e3)},e}(Plugin);
  },{"./Plugin":70,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/node_modules/on-load/index.js":31,"yo-yo":21}],65:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Plugin=require("./Plugin"),Utils=require("../core/Utils"),Translator=require("../core/Translator"),html=require("yo-yo");module.exports=function(t){function e(r,n){_classCallCheck(this,e);var o=_possibleConstructorReturn(this,t.call(this,r,n));o.id="FileInput",o.title="FileInput",o.type="acquirer";var i={strings:{selectToUpload:"Select to upload"}},l={target:".UppyForm",replaceTargetContent:!0,multipleFiles:!0,pretty:!0,locale:i};return o.opts=_extends({},l,n),o.locale=_extends({},i,o.opts.locale),o.locale.strings=_extends({},i.strings,o.opts.locale.strings),o.translator=new Translator({locale:o.locale}),o.i18n=o.translator.translate.bind(o.translator),o.render=o.render.bind(o),o}return _inherits(e,t),e.prototype.handleInputChange=function(t){var e=this;this.core.log("All right, something selected through input...");var r=Utils.toArray(t.target.files);r.forEach(function(t){e.core.emitter.emit("core:file-add",{source:e.id,name:t.name,type:t.type,data:t})})},e.prototype.render=function(t){var e="width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; position: absolute; z-index: -1;",r=function(){var t=(require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),document.createElement("input"));return t.setAttribute("style",arguments[0]),t.setAttribute("type","file"),t.setAttribute("name","files[]"),t.onchange=arguments[1],t.setAttribute("multiple",arguments[2]),t.setAttribute("value",""),t.setAttribute("class","uppy-FileInput-input"),t}(this.opts.pretty?e:"",this.handleInputChange.bind(this),this.opts.multipleFiles?"true":"false");return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("form");return e.setAttribute("class","Uppy uppy-FileInput-form"),t(e,["\n      ",arguments[0],"\n      ",arguments[1],"\n    "]),e}(r,this.opts.pretty?function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("button");return e.setAttribute("type","button"),e.onclick=arguments[0],e.setAttribute("class","uppy-FileInput-btn"),t(e,["\n          ",arguments[1],"\n        "]),e}(function(){return r.click()},this.i18n("selectToUpload")):null)},e.prototype.install=function(){var t=this.opts.target,e=this;this.target=this.mount(t,e)},e}(Plugin);
  },{"../core/Translator":35,"../core/Utils":37,"./Plugin":70,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],66:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},html=require("yo-yo"),Plugin=require("../Plugin"),Provider=require("../../uppy-base/src/plugins/Provider"),View=require("../../generic-provider-views/index");module.exports=function(t){function e(r,o){_classCallCheck(this,e);var i=_possibleConstructorReturn(this,t.call(this,r,o));i.type="acquirer",i.id="GoogleDrive",i.title="Google Drive",i.stateId="googleDrive",i.icon=function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","28"),e.setAttributeNS(null,"height","28"),e.setAttributeNS(null,"viewBox","0 0 16 16"),e.setAttributeNS(null,"class","UppyIcon UppyModalTab-icon");var r=document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttributeNS(null,"d","M2.955 14.93l2.667-4.62H16l-2.667 4.62H2.955zm2.378-4.62l-2.666 4.62L0 10.31l5.19-8.99 2.666 4.62-2.523 4.37zm10.523-.25h-5.333l-5.19-8.99h5.334l5.19 8.99z"),t(e,["\n        ",r,"\n      "]),e}(),i.GoogleDrive=new Provider({host:i.opts.host,provider:"drive",authProvider:"google"}),i.files=[],i.onAuth=i.onAuth.bind(i),i.render=i.render.bind(i);var n={};return i.opts=_extends({},n,o),i}return _inherits(e,t),e.prototype.install=function(){this.view=new View(this),this.core.setState({googleDrive:{authenticated:!1,files:[],folders:[],directories:[],activeRow:-1,filterInput:""}});var t=this.opts.target,e=this;this.target=this.mount(t,e),this[this.id].auth().then(this.onAuth)},e.prototype.onAuth=function(t){this.view.updateState({authenticated:t}),t&&this.view.getFolder("root")},e.prototype.isFolder=function(t){return"application/vnd.google-apps.folder"===t.mimeType},e.prototype.getItemData=function(t){return _extends({},t,{size:parseFloat(t.fileSize)})},e.prototype.getItemIcon=function(t){return function(){var t=(require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),document.createElement("img"));return t.setAttribute("src",arguments[0]),t}(t.iconLink)},e.prototype.getItemSubList=function(t){return t.items},e.prototype.getItemName=function(t){return t.title?t.title:"/"},e.prototype.getMimeType=function(t){return t.mimeType},e.prototype.getItemId=function(t){return t.id},e.prototype.getItemRequestPath=function(t){return this.getItemId(t)},e.prototype.getItemModifiedDate=function(t){return t.modifiedByMeDate},e.prototype.render=function(t){return this.view.render(t)},e}(Plugin);
  },{"../../generic-provider-views/index":41,"../../uppy-base/src/plugins/Provider":78,"../Plugin":70,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],67:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Plugin=require("./Plugin"),html=require("yo-yo");module.exports=function(t){function e(r,o){_classCallCheck(this,e);var n=_possibleConstructorReturn(this,t.call(this,r,o));n.type="progressindicator",n.id="Informer",n.title="Informer",n.timeoutID=void 0;var i={};return n.opts=_extends({},i,o),n}return _inherits(e,t),e.prototype.showInformer=function(t,e,r){var o=this;return this.core.setState({informer:{isHidden:!1,msg:t}}),window.clearTimeout(this.timeoutID),0===r?void(this.timeoutID=void 0):void(this.timeoutID=setTimeout(function(){var t=_extends({},o.core.getState().informer,{isHidden:!0});o.core.setState({informer:t})},r))},e.prototype.hideInformer=function(){var t=_extends({},this.core.getState().informer,{isHidden:!0});this.core.setState({informer:t})},e.prototype.render=function(t){var e=t.informer.msg,r=t.informer.isHidden;return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("div");e.setAttribute("aria-hidden",arguments[1]),e.setAttribute("class","UppyInformer");var r=document.createElement("p");return t(r,[arguments[0]]),t(e,["\n      ",r,"\n    "]),e}(e,r)},e.prototype.install=function(){var t=this;this.core.setState({informer:{isHidden:!0,msg:""}});var e=this.core.bus;e.on("informer",function(e,r,o){t.showInformer(e,r,o)}),e.on("informer:hide",function(){t.hideInformer()});var r=this.opts.target,o=this;this.target=this.mount(r,o)},e}(Plugin);
  },{"./Plugin":70,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],68:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Plugin=require("./Plugin");module.exports=function(t){function e(n,r){_classCallCheck(this,e);var o=_possibleConstructorReturn(this,t.call(this,n,r));o.type="modifier",o.id="MetaData",o.title="Meta Data";var i={};return o.opts=_extends({},i,r),o}return _inherits(e,t),e.prototype.addInitialMeta=function(){var t=this,e=this.opts.fields;this.core.setState({metaFields:e}),this.core.emitter.on("file-added",function(n){e.forEach(function(e){var r={};r[e.id]=e.value,t.core.updateMeta(r,n)})})},e.prototype.install=function(){this.addInitialMeta()},e}(Plugin);
  },{"./Plugin":70}],69:[function(require,module,exports){
  "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_Promise="undefined"==typeof Promise?require("es6-promise").Promise:Promise,Plugin=require("./Plugin");module.exports=function(e){function t(o,r){_classCallCheck(this,t);var n=_possibleConstructorReturn(this,e.call(this,o,r));n.type="uploader",n.id="Multipart",n.title="Multipart";var i={fieldName:"files[]",responseUrlFieldName:"url",bundle:!0};return n.opts=_extends({},i,r),n}return _inherits(t,e),t.prototype.upload=function(e,t,o){var r=this;return this.core.log("uploading "+t+" of "+o),new _Promise(function(t,o){var n=new FormData;n.append(r.opts.fieldName,e.data),Object.keys(e.meta).forEach(function(t){console.log(e.meta,e.meta[t]),n.append(t,e.meta[t])});var i=new XMLHttpRequest;i.upload.addEventListener("progress",function(t){t.lengthComputable&&r.core.emitter.emit("core:upload-progress",{uploader:r,id:e.id,bytesUploaded:t.loaded,bytesTotal:t.total})}),i.addEventListener("load",function(n){if(200===n.target.status){var a=JSON.parse(i.response),s=a[r.opts.responseUrlFieldName];return r.core.emitter.emit("core:upload-success",e.id,s),r.core.log("Download "+e.name+" from "+e.uploadURL),t(e)}return r.core.emitter.emit("core:upload-error",e.id,i),o("Upload error")}),i.addEventListener("error",function(t){return r.core.emitter.emit("core:upload-error",e.id),o("Upload error")}),i.open("POST",r.opts.endpoint,!0),i.send(n),r.core.emitter.on("core:upload-cancel",function(t){t===e.id&&i.abort()}),r.core.emitter.on("core:cancel-all",function(){i.abort()}),r.core.emitter.emit("core:upload-started",e.id)})},t.prototype.selectForUpload=function(e){var t=this;if(0===Object.keys(e).length)return void this.core.log("no files to upload!");var o=[];Object.keys(e).forEach(function(t){e[t].progress.uploadStarted&&!e[t].isRemote||o.push(e[t])});var r=[];return o.forEach(function(e,n){var i=parseInt(n,10)+1,a=o.length;r.push(t.upload(e,i,a))}),Promise.all(r).then(function(e){t.core.log("Multipart has finished uploading!")})},t.prototype.install=function(){var e=this,t=this.core.emitter;t.on("core:upload",function(){e.core.log("Multipart is uploading...");var t=e.core.getState().files;e.selectForUpload(t)})},t}(Plugin);
  },{"./Plugin":70,"es6-promise":6}],70:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var yo=require("yo-yo");module.exports=function(){function t(e,i){_classCallCheck(this,t),this.core=e,this.opts=i||{},this.type="none",this.opts.replaceTargetContent===this.opts.replaceTargetContent||!0,this.update=this.update.bind(this),this.mount=this.mount.bind(this),this.focus=this.focus.bind(this),this.install=this.install.bind(this)}return t.prototype.update=function(t){if("undefined"!=typeof this.el){var e=this.render(t);yo.update(this.el,e)}},t.prototype.mount=function(t,e){var i=e.id;if("string"==typeof t)return this.core.log("Installing "+i+" to "+t),this.opts.replaceTargetContent&&(document.querySelector(t).innerHTML=""),this.el=e.render(this.core.state),document.querySelector(t).appendChild(this.el),t;var n=t,o=(new n).id;this.core.log("Installing "+i+" to "+o);var s=this.core.getPlugin(o),r=s.addTarget(e);return r},t.prototype.focus=function(){},t.prototype.install=function(){},t}();
  },{"yo-yo":21}],71:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Plugin=require("./Plugin"),html=require("yo-yo");module.exports=function(t){function e(r,n){_classCallCheck(this,e);var o=_possibleConstructorReturn(this,t.call(this,r,n));o.id="ProgressBar",o.title="Progress Bar",o.type="progressindicator";var s={replaceTargetContent:!1,fixed:!1};return o.opts=_extends({},s,n),o.render=o.render.bind(o),o}return _inherits(e,t),e.prototype.render=function(t){var e=t.totalProgress||0;return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElement("div");e.setAttribute("style",arguments[2]),e.setAttribute("class","UppyProgressBar");var r=document.createElement("div");r.setAttribute("style","width: "+arguments[0]+"%"),r.setAttribute("class","UppyProgressBar-inner");var n=document.createElement("div");return n.setAttribute("class","UppyProgressBar-percentage"),t(n,[arguments[1]]),t(e,["\n      ",r,"\n      ",n,"\n    "]),e}(e,e,this.opts.fixed?"position: fixed":"null")},e.prototype.install=function(){var t=this.opts.target,e=this;this.target=this.mount(t,e)},e}(Plugin);
  },{"./Plugin":70,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],72:[function(require,module,exports){
  "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},_Promise="undefined"==typeof Promise?require("es6-promise").Promise:Promise,Plugin=require("./Plugin"),tus=require("tus-js-client"),UppySocket=require("../core/UppySocket");module.exports=function(e){function t(o,r){_classCallCheck(this,t);var s=_possibleConstructorReturn(this,e.call(this,o,r));s.type="uploader",s.id="Tus",s.title="Tus";var n={resume:!0,allowPause:!0};return s.opts=_extends({},n,r),s}return _inherits(t,e),t.prototype.pauseResume=function(e,t){var o=_extends({},this.core.getState().files),r=Object.keys(o).filter(function(e){return!o[e].progress.uploadComplete&&o[e].progress.uploadStarted});switch(e){case"toggle":if(o[t].uploadComplete)return;var s=o[t].isPaused||!1,n=!s,i=void 0;return i=s?_extends({},o[t],{isPaused:!1}):_extends({},o[t],{isPaused:!0}),o[t]=i,this.core.setState({files:o}),n;case"pauseAll":return r.forEach(function(e){var t=_extends({},o[e],{isPaused:!0});o[e]=t}),void this.core.setState({files:o});case"resumeAll":return r.forEach(function(e){var t=_extends({},o[e],{isPaused:!1});o[e]=t}),void this.core.setState({files:o})}},t.prototype.upload=function(e,t,o){var r=this;return this.core.log("uploading "+t+" of "+o),new _Promise(function(t,o){var s=new tus.Upload(e.data,{metadata:e.meta,resume:r.opts.resume,endpoint:r.opts.endpoint,onError:function(t){r.core.log(t),r.core.emitter.emit("core:upload-error",e.id),o("Failed because: "+t)},onProgress:function(t,o){r.core.emitter.emit("core:upload-progress",{uploader:r,id:e.id,bytesUploaded:t,bytesTotal:o})},onSuccess:function(){r.core.emitter.emit("core:upload-success",e.id,s.url),r.core.log("Download "+s.file.name+" from "+s.url),t(s)}});r.core.emitter.on("core:file-remove",function(o){o===e.id&&(console.log("removing file: ",o),s.abort(),t("upload "+o+" was removed"))}),r.core.emitter.on("core:upload-pause",function(t){if(t===e.id){var o=r.pauseResume("toggle",t);o?s.abort():s.start()}}),r.core.emitter.on("core:pause-all",function(){var t=r.core.getState().files;t[e.id]&&s.abort()}),r.core.emitter.on("core:resume-all",function(){var t=r.core.getState().files;t[e.id]&&s.start()}),s.start(),r.core.emitter.emit("core:upload-started",e.id,s)})},t.prototype.uploadRemote=function(e,t,o){var r=this;return new _Promise(function(t,o){r.core.log(e.remote.url),fetch(e.remote.url,{method:"post",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(_extends({},e.remote.body,{endpoint:r.opts.endpoint,protocol:"tus"}))}).then(function(s){return s.status<200&&s.status>300?o(s.statusText):(r.core.emitter.emit("core:upload-started",e.id),void s.json().then(function(o){var s=/^(?:https?:\/\/|\/\/)?(?:[^@\/\n]+@)?(?:www\.)?([^\/\n]+)/,n=s.exec(e.remote.host)[1],i="https:"===location.protocol?"wss":"ws",a=o.token,u=new UppySocket({target:i+("://"+n+"/api/"+a)});u.on("progress",function(t){var o=t.progress,s=t.bytesUploaded,n=t.bytesTotal;o&&(r.core.log("Upload progress: "+o),console.log(e.id),r.core.emitter.emit("core:upload-progress",{uploader:r,id:e.id,bytesUploaded:s,bytesTotal:n}))}),u.on("success",function(o){return r.core.emitter.emit("core:upload-success",e.id,o.url),u.close(),t()})}))})})},t.prototype.uploadFiles=function(e){var t=this;if(0===Object.keys(e).length)return void this.core.log("no files to upload!");var o=[];return e.forEach(function(r,s){var n=parseInt(s,10)+1,i=e.length;r.isRemote?o.push(t.uploadRemote(r,n,i)):o.push(t.upload(r,n,i))}),Promise.all(o).then(function(){return t.core.log("All files uploaded"),{uploadedCount:e.length}}).catch(function(e){t.core.log("Upload error: "+e)})},t.prototype.selectForUpload=function(e){var t=Object.keys(e).filter(function(t){return!(e[t].progress.uploadStarted&&!e[t].isRemote)}).map(function(t){return e[t]});this.uploadFiles(t)},t.prototype.actions=function(){var e=this;this.core.emitter.on("core:pause-all",function(){e.pauseResume("pauseAll")}),this.core.emitter.on("core:resume-all",function(){e.pauseResume("resumeAll")}),this.core.emitter.on("core:upload",function(){e.core.log("Tus is uploading...");var t=e.core.getState().files;e.selectForUpload(t)})},t.prototype.addResumableUploadsCapabilityFlag=function(){var e=_extends({},this.core.getState().capabilities);e.resumableUploads=!0,this.core.setState({capabilities:e})},t.prototype.install=function(){this.addResumableUploadsCapabilityFlag(),this.actions()},t}(Plugin);
  },{"../core/UppySocket":36,"./Plugin":70,"es6-promise":6,"tus-js-client":16}],73:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(t){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","100"),e.setAttributeNS(null,"height","77"),e.setAttributeNS(null,"viewBox","0 0 100 77"),e.setAttributeNS(null,"class","UppyIcon");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttributeNS(null,"d","M50 32c-7.168 0-13 5.832-13 13s5.832 13 13 13 13-5.832 13-13-5.832-13-13-13z");var u=document.createElementNS("http://www.w3.org/2000/svg","path");return u.setAttributeNS(null,"d","M87 13H72c0-7.18-5.82-13-13-13H41c-7.18 0-13 5.82-13 13H13C5.82 13 0 18.82 0 26v38c0 7.18 5.82 13 13 13h74c7.18 0 13-5.82 13-13V26c0-7.18-5.82-13-13-13zM50 68c-12.683 0-23-10.318-23-23s10.317-23 23-23 23 10.318 23 23-10.317 23-23 23z"),t(e,["\n    ",r,"\n    ",u,"\n  "]),e}()};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],74:[function(require,module,exports){
  "use strict";var html=require("yo-yo"),CameraIcon=require("./CameraIcon");module.exports=function(t){var e=t.src||"",n=void 0;return n=t.useTheFlash?t.getSWFHTML():function(){var t=(require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),document.createElement("video"));return t.setAttribute("autoplay","autoplay"),t.setAttribute("src",arguments[0]),t.setAttribute("class","UppyWebcam-video"),t}(e),function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/node_modules/on-load/index.js"),e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),n=document.createElement("div"),o=arguments;t(n,function(){o[3](n)},function(){o[4](n)},"o5"),n.setAttribute("class","UppyWebcam-container");var a=document.createElement("div");a.setAttribute("class","UppyWebcam-videoContainer"),e(a,["\n        ",arguments[0],"\n      "]);var r=document.createElement("div");r.setAttribute("class","UppyWebcam-buttonContainer");var u=document.createElement("button");u.setAttribute("type","button"),u.setAttribute("title","Take a snapshot"),u.setAttribute("aria-label","Take a snapshot"),u.onclick=arguments[1],u.setAttribute("class","UppyButton--circular UppyButton--red UppyButton--sizeM UppyWebcam-stopRecordBtn"),e(u,["\n          ",arguments[2],"\n        "]),e(r,["\n        ",u,"\n      "]);var i=document.createElement("canvas");return i.setAttribute("style","display: none;"),i.setAttribute("class","UppyWebcam-canvas"),e(n,["\n      ",a,"\n      ",r,"\n      ",i,"\n    "]),n}(n,t.onSnapshot,CameraIcon(),function(e){t.onFocus(),document.querySelector(".UppyWebcam-stopRecordBtn").focus()},function(e){t.onStop()})};
  },{"./CameraIcon":73,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/node_modules/on-load/index.js":31,"yo-yo":21}],75:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(e){return function(){var e=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),t=document.createElement("div"),r=document.createElement("h1");e(r,["Please allow access to your camera"]);var o=document.createElement("span");return e(o,["You have been prompted to allow camera access from this site. In order to take pictures with your camera you must approve this request."]),e(t,["\n      ",r,"\n      ",o,"\n    "]),t}()};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],76:[function(require,module,exports){
  "use strict";var html=require("yo-yo");module.exports=function(t){return function(){var t=require("/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttributeNS(null,"width","18"),e.setAttributeNS(null,"height","21"),e.setAttributeNS(null,"viewBox","0 0 18 21"),e.setAttributeNS(null,"class","UppyIcon UppyModalTab-icon");var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttributeNS(null,"d","M14.8 16.9c1.9-1.7 3.2-4.1 3.2-6.9 0-5-4-9-9-9s-9 4-9 9c0 2.8 1.2 5.2 3.2 6.9C1.9 17.9.5 19.4 0 21h3c1-1.9 11-1.9 12 0h3c-.5-1.6-1.9-3.1-3.2-4.1zM9 4c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6 2.7-6 6-6z");var n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttributeNS(null,"d","M9 14c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zM8 8c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1c0-.5.4-1 1-1z"),t(e,["\n      ",r,"\n      ",n,"\n    "]),e}()};
  },{"/home/travis/build/transloadit/uppy/node_modules/yo-yoify/lib/appendChild.js":30,"yo-yo":21}],77:[function(require,module,exports){
  "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Plugin=require("../Plugin"),WebcamProvider=require("../../uppy-base/src/plugins/Webcam"),_require=require("../../core/Utils"),extend=_require.extend,WebcamIcon=require("./WebcamIcon"),CameraScreen=require("./CameraScreen"),PermissionsScreen=require("./PermissionsScreen");module.exports=function(e){function t(r,a){_classCallCheck(this,t);var o=_possibleConstructorReturn(this,e.call(this,r,a));o.userMedia=!0,o.protocol=location.protocol.match(/https/i)?"https":"http",o.type="acquirer",o.id="Webcam",o.title="Webcam",o.icon=WebcamIcon();var s={enableFlash:!0};return o.params={swfURL:"webcam.swf",width:400,height:300,dest_width:800,dest_height:600,image_format:"jpeg",jpeg_quality:90,enable_flash:!0,force_flash:!1,flip_horiz:!1,fps:30,upload_name:"webcam",constraints:null,flashNotDetectedText:"ERROR: No Adobe Flash Player detected.  Webcam.js relies on Flash for browsers that do not support getUserMedia (like yours).",noInterfaceFoundText:"No supported webcam interface found.",unfreeze_snap:!0},o.opts=_extends({},s,a),o.install=o.install.bind(o),o.updateState=o.updateState.bind(o),o.render=o.render.bind(o),o.start=o.start.bind(o),o.stop=o.stop.bind(o),o.takeSnapshot=o.takeSnapshot.bind(o),o.webcam=new WebcamProvider(o.opts,o.params),o.webcamActive=!1,o}return _inherits(t,e),t.prototype.start=function(){var e=this;this.webcamActive=!0,this.webcam.start().then(function(t){e.stream=t,e.updateState({cameraReady:!0})}).catch(function(t){e.updateState({cameraError:t})})},t.prototype.stop=function(){this.stream.getVideoTracks()[0].stop(),this.webcamActive=!1,this.stream=null,this.streamSrc=null},t.prototype.takeSnapshot=function(){var e={name:"webcam-"+Date.now()+".jpg",mimeType:"image/jpeg"},t=document.querySelector(".UppyWebcam-video"),r=this.webcam.getImage(t,e),a={source:this.id,name:e.name,data:r.data,type:e.mimeType};this.core.emitter.emit("core:file-add",a)},t.prototype.render=function(e){return this.webcamActive||this.start(),e.webcam.cameraReady||e.webcam.useTheFlash?(this.streamSrc||(this.streamSrc=this.stream?URL.createObjectURL(this.stream):null),CameraScreen(extend(e.webcam,{onSnapshot:this.takeSnapshot,onFocus:this.focus,onStop:this.stop,getSWFHTML:this.webcam.getSWFHTML,src:this.streamSrc}))):PermissionsScreen(e.webcam)},t.prototype.focus=function(){var e=this;setTimeout(function(){e.core.emitter.emit("informer","Smile!","info",2e3)},1e3)},t.prototype.install=function(){this.webcam.init(),this.core.setState({webcam:{cameraReady:!1}});var e=this.opts.target,t=this;this.target=this.mount(e,t)},t.prototype.updateState=function(e){var t=this.core.state,r=_extends({},t.webcam,e);this.core.setState({webcam:r})},t}(Plugin);
  },{"../../core/Utils":37,"../../uppy-base/src/plugins/Webcam":79,"../Plugin":70,"./CameraScreen":74,"./PermissionsScreen":75,"./WebcamIcon":76}],78:[function(require,module,exports){
  "use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();require("whatwg-fetch");var _getName=function(t){return t.split("-").map(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}).join(" ")};module.exports=function(){function t(e){_classCallCheck(this,t),this.opts=e,this.provider=e.provider,this.id=this.provider,this.authProvider=e.authProvider||this.provider,this.name=this.opts.name||_getName(this.id)}return _createClass(t,[{key:"auth",value:function(){return fetch(this.opts.host+"/"+this.id+"/auth",{method:"get",credentials:"include",headers:{Accept:"application/json","Content-Type":"application.json"}}).then(function(t){return t.json().then(function(t){return t.authenticated})})}},{key:"list",value:function(t){return fetch(this.opts.host+"/"+this.id+"/list/"+(t||""),{method:"get",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"}}).then(function(t){return t.json()})}},{key:"logout",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.href;return fetch(this.opts.host+"/"+this.id+"/logout?redirect="+t,{method:"get",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"}})}}]),t}();
  },{"whatwg-fetch":20}],79:[function(require,module,exports){
  "use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_createClass=function(){function e(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,a,i){return a&&e(t.prototype,a),i&&e(t,i),t}}(),dataURItoFile=require("../utils/dataURItoFile");module.exports=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,e),this._userMedia,this.userMedia=!0,this.protocol=location.protocol.match(/https/i)?"https":"http";var i={enableFlash:!0},s={swfURL:"webcam.swf",width:400,height:300,dest_width:800,dest_height:600,image_format:"jpeg",jpeg_quality:90,enable_flash:!0,force_flash:!1,flip_horiz:!1,fps:30,upload_name:"webcam",constraints:null,flashNotDetectedText:"ERROR: No Adobe Flash Player detected.  Webcam.js relies on Flash for browsers that do not support getUserMedia (like yours).",noInterfaceFoundText:"No supported webcam interface found.",unfreeze_snap:!0};this.params=Object.assign({},s,a),this.opts=Object.assign({},i,t),this.start=this.start.bind(this),this.init=this.init.bind(this),this.stop=this.stop.bind(this),this.takeSnapshot=this.takeSnapshot.bind(this),this.getImage=this.getImage.bind(this),this.getSWFHTML=this.getSWFHTML.bind(this),this.detectFlash=this.detectFlash.bind(this),this.getUserMedia=this.getUserMedia.bind(this),this.getMediaDevices=this.getMediaDevices.bind(this)}return _createClass(e,[{key:"init",value:function(){var e=this;return this.mediaDevices=this.getMediaDevices(),this.userMedia=this.getUserMedia(this.mediaDevices),this.userMedia&&window.addEventListener("beforeunload",function(t){e.reset()}),{mediaDevices:this.mediaDevices,userMedia:this.userMedia}}},{key:"getMediaDevices",value:function(){return navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?navigator.mediaDevices:navigator.mozGetUserMedia||navigator.webkitGetUserMedia?{getUserMedia:function(e){return new Promise(function(t,a){(navigator.mozGetUserMedia||navigator.webkitGetUserMedia).call(navigator,e,t,a)})}}:null}},{key:"getUserMedia",value:function(e){var t=!0;return navigator.userAgent.match(/Firefox\D+(\d+)/)&&parseInt(RegExp.$1,10)<21?null:(window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,t&&!!e&&!!window.URL)}},{key:"start",value:function(){var e=this;return this.userMedia=void 0===this._userMedia?this.userMedia:this._userMedia,new Promise(function(t,a){e.userMedia&&e.mediaDevices.getUserMedia({audio:!1,video:!0}).then(function(e){return t(e)}).catch(function(e){return a(e)})})}},{key:"detectFlash",value:function(){var e="Shockwave Flash",t="ShockwaveFlash.ShockwaveFlash",a="application/x-shockwave-flash",i=window,s=navigator,o=!1;if("undefined"!=typeof s.plugins&&"object"===_typeof(s.plugins[e])){var r=s.plugins[e].description;r&&"undefined"!=typeof s.mimeTypes&&s.mimeTypes[a]&&s.mimeTypes[a].enabledPlugin&&(o=!0)}else if("undefined"!=typeof i.ActiveXObject)try{var n=new i.ActiveXObject(t);if(n){var l=n.GetVariable("$version");l&&(o=!0)}}catch(e){}return o}},{key:"reset",value:function(){if(this.preview_active&&this.unfreeze(),this.userMedia){if(this.stream)if(this.stream.getVideoTracks){var e=this.stream.getVideoTracks();e&&e[0]&&e[0].stop&&e[0].stop()}else this.stream.stop&&this.stream.stop();delete this.stream,delete this.video}this.userMedia!==!0&&this.getMovie()._releaseCamera()}},{key:"getSWFHTML",value:function(){var e=this.params.swfURL;if(location.protocol.match(/file/))return'<h3 style="color:red">ERROR: the Webcam.js Flash fallback does not work from local disk.  Please run it from a web server.</h3>';if(!this.detectFlash())return'<h3 style="color:red">No flash</h3>';if(!e){for(var t="",a=document.getElementsByTagName("script"),i=0,s=a.length;i<s;i++){var o=a[i].getAttribute("src");o&&o.match(/\/webcam(\.min)?\.js/)&&(t=o.replace(/\/webcam(\.min)?\.js.*$/,""),i=s)}e=t?t+"/webcam.swf":"webcam.swf"}var r="";for(var n in this.params)r&&(r+="&"),r+=n+"="+escape(this.params[n]);return'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" type="application/x-shockwave-flash" codebase="'+this.protocol+'://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+this.params.width+'" height="'+this.params.height+'" id="webcam_movie_obj" align="middle"><param name="wmode" value="opaque" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+e+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+r+'"/><embed id="webcam_movie_embed" src="'+e+'" wmode="opaque" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+this.params.width+'" height="'+this.params.height+'" name="webcam_movie_embed" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+r+'"></embed></object>'}},{key:"getMovie",value:function(){var e=document.getElementById("webcam_movie_obj");return e&&e._snap||(e=document.getElementById("webcam_movie_embed")),e||console.log("getMovie error"),e}},{key:"stop",value:function(){var e=this.video,t=this.videoStream;this.updateState({cameraReady:!1}),t&&(t.stop?t.stop():t.msStop&&t.msStop(),t.onended=null,t=null),e&&(e.onerror=null,e.pause(),e.mozSrcObject&&(e.mozSrcObject=null),e.src=""),this.video=document.querySelector(".UppyWebcam-video"),this.canvas=document.querySelector(".UppyWebcam-canvas")}},{key:"flashNotify",value:function(e,t){switch(e){case"flashLoadComplete":break;case"cameraLive":this.live=!0;break;case"error":console.log("There was a flash error",t);break;default:console.log("webcam flash_notify: "+e+": "+t)}}},{key:"configure",value:function(e){e||(e="camera"),this.getMovie()._configure(e)}},{key:"getImage",value:function(e,t){var a=document.createElement("canvas");a.width=e.videoWidth,a.height=e.videoHeight,a.getContext("2d").drawImage(e,0,0);var i=a.toDataURL(t.mimeType),s=dataURItoFile(i,{name:t.name});return{dataUrl:i,data:s,type:t.mimeType}}},{key:"takeSnapshot",value:function(e,t){var a={name:"webcam-"+Date.now()+".jpg",mimeType:"image/jpeg"},i=this.getImage(e,t,a),s={source:this.id,name:a.name,data:i.data,type:a.type};return s}}]),e}();
  },{"../utils/dataURItoFile":80}],80:[function(require,module,exports){
  "use strict";function dataURItoBlob(t,e,n){var r=t.split(",")[1],l=e.mimeType||t.split(",")[0].split(":")[1].split(";")[0];null==l&&(l="plain/text");for(var a=atob(r),i=[],o=0;o<a.length;o++)i.push(a.charCodeAt(o));return n?new File([new Uint8Array(i)],e.name||"",{type:l}):new Blob([new Uint8Array(i)],{type:l})}module.exports=function(t,e){return dataURItoBlob(t,e,!0)};
  },{}]},{},[48])(48)
  });