Comparing version 1.1.0 to 1.1.1
@@ -1,1 +0,1 @@ | ||
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.DragDrop=t()}}(function(){return function t(e,n,r){function i(a,u){if(!n[a]){if(!e[a]){var f="function"==typeof require&&require;if(!u&&f)return f(a,!0);if(o)return o(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return i(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({"./buffer":[function(t,e){function n(t,e){i(t,function(t){var n=t.map(function(t){return function(e){var n=new FileReader;n.addEventListener("load",function(n){e(null,{name:t.name,size:t.size,type:t.type,lastModifiedDate:t.lastModifiedDate,buffer:r(new Uint8Array(n.target.result))})}),n.addEventListener("error",e),n.readAsArrayBuffer(t)}});o(n,function(t,n){if(t)throw t;e(n)})})}e.exports=n;var r=t("typedarray-to-buffer"),i=t("./"),o=t("run-parallel")},{"./":1,"run-parallel":12,"typedarray-to-buffer":13}],1:[function(t,e){function n(t,e){"string"==typeof t&&(t=document.querySelector(t)),t.addEventListener("dragenter",r,!1),t.addEventListener("dragover",i(t),!1),t.addEventListener("drop",o.bind(void 0,t,e),!1)}function r(t){return t.stopPropagation(),t.preventDefault(),!1}function i(t){var e=a(function(){t.classList.add("drag"),t.timeout&&clearTimeout(t.timeout),t.timeout=setTimeout(function(){t.classList.remove("drag")},150)},100,{trailing:!1});return function(t){t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy",e()}}function o(t,e,n){return n.stopPropagation(),n.preventDefault(),t.classList.remove("drag"),e(Array.prototype.slice.call(n.dataTransfer.files)),!1}e.exports=n;var a=t("lodash.throttle")},{"lodash.throttle":5}],2:[function(t,e,n){function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);var i,o=typeof t;if("number"===o)i=t>0?t>>>0:0;else if("string"===o)"base64"===e&&(t=S(t)),i=r.byteLength(t,e);else{if("object"!==o||null===t)throw new Error("First argument needs to be a number, array or string.");"Buffer"===t.type&&M(t.data)&&(t=t.data),i=+t.length>0?Math.floor(+t.length):0}var a;$?a=r._augment(new Uint8Array(i)):(a=this,a.length=i,a._isBuffer=!0);var u;if($&&"number"==typeof t.byteLength)a._set(t);else if(C(t))if(r.isBuffer(t))for(u=0;i>u;u++)a[u]=t.readUInt8(u);else for(u=0;i>u;u++)a[u]=(t[u]%256+256)%256;else if("string"===o)a.write(t,0,e);else if("number"===o&&!$&&!n)for(u=0;i>u;u++)a[u]=0;return a}function i(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;R(o%2===0,"Invalid hex string"),r>o/2&&(r=o/2);for(var a=0;r>a;a++){var u=parseInt(e.substr(2*a,2),16);R(!isNaN(u),"Invalid hex string"),t[n+a]=u}return a}function o(t,e,n,r){var i=F(D(e),t,n,r);return i}function a(t,e,n,r){var i=F(_(e),t,n,r);return i}function u(t,e,n,r){return a(t,e,n,r)}function f(t,e,n,r){var i=F(j(e),t,n,r);return i}function s(t,e,n,r){var i=F(N(e),t,n,r);return i}function l(t,e,n){return W.fromByteArray(0===e&&n===t.length?t:t.slice(e,n))}function c(t,e,n){var r="",i="";n=Math.min(t.length,n);for(var o=e;n>o;o++)t[o]<=127?(r+=O(i)+String.fromCharCode(t[o]),i=""):i+="%"+t[o].toString(16);return r+O(i)}function h(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;i++)r+=String.fromCharCode(t[i]);return r}function d(t,e,n){return h(t,e,n)}function g(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=e;n>o;o++)i+=k(t[o]);return i}function p(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function v(t,e,n,r){r||(R("boolean"==typeof n,"missing or invalid endian"),R(void 0!==e&&null!==e,"missing offset"),R(e+1<t.length,"Trying to read beyond buffer length"));var i=t.length;if(!(e>=i)){var o;return n?(o=t[e],i>e+1&&(o|=t[e+1]<<8)):(o=t[e]<<8,i>e+1&&(o|=t[e+1])),o}}function y(t,e,n,r){r||(R("boolean"==typeof n,"missing or invalid endian"),R(void 0!==e&&null!==e,"missing offset"),R(e+3<t.length,"Trying to read beyond buffer length"));var i=t.length;if(!(e>=i)){var o;return n?(i>e+2&&(o=t[e+2]<<16),i>e+1&&(o|=t[e+1]<<8),o|=t[e],i>e+3&&(o+=t[e+3]<<24>>>0)):(i>e+1&&(o=t[e+1]<<16),i>e+2&&(o|=t[e+2]<<8),i>e+3&&(o|=t[e+3]),o+=t[e]<<24>>>0),o}}function b(t,e,n,r){r||(R("boolean"==typeof n,"missing or invalid endian"),R(void 0!==e&&null!==e,"missing offset"),R(e+1<t.length,"Trying to read beyond buffer length"));var i=t.length;if(!(e>=i)){var o=v(t,e,n,!0),a=32768&o;return a?-1*(65535-o+1):o}}function m(t,e,n,r){r||(R("boolean"==typeof n,"missing or invalid endian"),R(void 0!==e&&null!==e,"missing offset"),R(e+3<t.length,"Trying to read beyond buffer length"));var i=t.length;if(!(e>=i)){var o=y(t,e,n,!0),a=2147483648&o;return a?-1*(4294967295-o+1):o}}function w(t,e,n,r){return r||(R("boolean"==typeof n,"missing or invalid endian"),R(e+3<t.length,"Trying to read beyond buffer length")),J.read(t,e,n,23,4)}function E(t,e,n,r){return r||(R("boolean"==typeof n,"missing or invalid endian"),R(e+7<t.length,"Trying to read beyond buffer length")),J.read(t,e,n,52,8)}function I(t,e,n,r,i){i||(R(void 0!==e&&null!==e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(void 0!==n&&null!==n,"missing offset"),R(n+1<t.length,"trying to write beyond buffer length"),q(e,65535));var o=t.length;if(!(n>=o)){for(var a=0,u=Math.min(o-n,2);u>a;a++)t[n+a]=(e&255<<8*(r?a:1-a))>>>8*(r?a:1-a);return n+2}}function B(t,e,n,r,i){i||(R(void 0!==e&&null!==e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(void 0!==n&&null!==n,"missing offset"),R(n+3<t.length,"trying to write beyond buffer length"),q(e,4294967295));var o=t.length;if(!(n>=o)){for(var a=0,u=Math.min(o-n,4);u>a;a++)t[n+a]=e>>>8*(r?a:3-a)&255;return n+4}}function A(t,e,n,r,i){i||(R(void 0!==e&&null!==e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(void 0!==n&&null!==n,"missing offset"),R(n+1<t.length,"Trying to write beyond buffer length"),P(e,32767,-32768));var o=t.length;if(!(n>=o))return e>=0?I(t,e,n,r,i):I(t,65535+e+1,n,r,i),n+2}function L(t,e,n,r,i){i||(R(void 0!==e&&null!==e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(void 0!==n&&null!==n,"missing offset"),R(n+3<t.length,"Trying to write beyond buffer length"),P(e,2147483647,-2147483648));var o=t.length;if(!(n>=o))return e>=0?B(t,e,n,r,i):B(t,4294967295+e+1,n,r,i),n+4}function U(t,e,n,r,i){i||(R(void 0!==e&&null!==e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(void 0!==n&&null!==n,"missing offset"),R(n+3<t.length,"Trying to write beyond buffer length"),z(e,3.4028234663852886e38,-3.4028234663852886e38));var o=t.length;if(!(n>=o))return J.write(t,e,n,r,23,4),n+4}function x(t,e,n,r,i){i||(R(void 0!==e&&null!==e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(void 0!==n&&null!==n,"missing offset"),R(n+7<t.length,"Trying to write beyond buffer length"),z(e,1.7976931348623157e308,-1.7976931348623157e308));var o=t.length;if(!(n>=o))return J.write(t,e,n,r,52,8),n+8}function S(t){for(t=T(t).replace(Y,"");t.length%4!==0;)t+="=";return t}function T(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function M(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function C(t){return M(t)||r.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function k(t){return 16>t?"0"+t.toString(16):t.toString(16)}function D(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(127>=r)e.push(r);else{var i=n;r>=55296&&57343>=r&&n++;for(var o=encodeURIComponent(t.slice(i,n+1)).substr(1).split("%"),a=0;a<o.length;a++)e.push(parseInt(o[a],16))}}return e}function _(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function N(t){for(var e,n,r,i=[],o=0;o<t.length;o++)e=t.charCodeAt(o),n=e>>8,r=e%256,i.push(r),i.push(n);return i}function j(t){return W.toByteArray(t)}function F(t,e,n,r){for(var i=0;r>i&&!(i+n>=e.length||i>=t.length);i++)e[i+n]=t[i];return i}function O(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function q(t,e){R("number"==typeof t,"cannot write a non-number as a number"),R(t>=0,"specified a negative value for writing an unsigned value"),R(e>=t,"value is larger than maximum value for type"),R(Math.floor(t)===t,"value has a fractional component")}function P(t,e,n){R("number"==typeof t,"cannot write a non-number as a number"),R(e>=t,"value larger than maximum allowed value"),R(t>=n,"value smaller than minimum allowed value"),R(Math.floor(t)===t,"value has a fractional component")}function z(t,e,n){R("number"==typeof t,"cannot write a non-number as a number"),R(e>=t,"value larger than maximum allowed value"),R(t>=n,"value smaller than minimum allowed value")}function R(t,e){if(!t)throw new Error(e||"Failed assertion")}var W=t("base64-js"),J=t("ieee754");n.Buffer=r,n.SlowBuffer=r,n.INSPECT_MAX_BYTES=50,r.poolSize=8192;var $=function(){try{var t=new ArrayBuffer(0),e=new Uint8Array(t);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}();r.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.isBuffer=function(t){return!(null==t||!t._isBuffer)},r.byteLength=function(t,e){var n;switch(t=t.toString(),e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=D(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=j(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},r.concat=function(t,e){if(R(M(t),"Usage: Buffer.concat(list[, length])"),0===t.length)return new r(0);if(1===t.length)return t[0];var n;if(void 0===e)for(e=0,n=0;n<t.length;n++)e+=t[n].length;var i=new r(e),o=0;for(n=0;n<t.length;n++){var a=t[n];a.copy(i,o),o+=a.length}return i},r.compare=function(t,e){R(r.isBuffer(t)&&r.isBuffer(e),"Arguments must be Buffers");for(var n=t.length,i=e.length,o=0,a=Math.min(n,i);a>o&&t[o]===e[o];o++);return o!==a&&(n=t[o],i=e[o]),i>n?-1:n>i?1:0},r.prototype.write=function(t,e,n,r){if(isFinite(e))isFinite(n)||(r=n,n=void 0);else{var l=r;r=e,e=n,n=l}e=Number(e)||0;var c=this.length-e;n?(n=Number(n),n>c&&(n=c)):n=c,r=String(r||"utf8").toLowerCase();var h;switch(r){case"hex":h=i(this,t,e,n);break;case"utf8":case"utf-8":h=o(this,t,e,n);break;case"ascii":h=a(this,t,e,n);break;case"binary":h=u(this,t,e,n);break;case"base64":h=f(this,t,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":h=s(this,t,e,n);break;default:throw new Error("Unknown encoding")}return h},r.prototype.toString=function(t,e,n){var r=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,n=void 0===n?r.length:Number(n),n===e)return"";var i;switch(t){case"hex":i=g(r,e,n);break;case"utf8":case"utf-8":i=c(r,e,n);break;case"ascii":i=h(r,e,n);break;case"binary":i=d(r,e,n);break;case"base64":i=l(r,e,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=p(r,e,n);break;default:throw new Error("Unknown encoding")}return i},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},r.prototype.equals=function(t){return R(r.isBuffer(t),"Argument must be a Buffer"),0===r.compare(this,t)},r.prototype.compare=function(t){return R(r.isBuffer(t),"Argument must be a Buffer"),r.compare(this,t)},r.prototype.copy=function(t,e,n,r){var i=this;if(n||(n=0),r||0===r||(r=this.length),e||(e=0),r!==n&&0!==t.length&&0!==i.length){R(r>=n,"sourceEnd < sourceStart"),R(e>=0&&e<t.length,"targetStart out of bounds"),R(n>=0&&n<i.length,"sourceStart out of bounds"),R(r>=0&&r<=i.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o=r-n;if(100>o||!$)for(var a=0;o>a;a++)t[a+e]=this[a+n];else t._set(this.subarray(n,n+o),e)}},r.prototype.slice=function(t,e){var n=this.length;if(t=~~t,e=void 0===e?n:~~e,0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),t>e&&(e=t),$)return r._augment(this.subarray(t,e));for(var i=e-t,o=new r(i,void 0,!0),a=0;i>a;a++)o[a]=this[a+t];return o},r.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},r.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},r.prototype.readUInt8=function(t,e){return e||(R(void 0!==t&&null!==t,"missing offset"),R(t<this.length,"Trying to read beyond buffer length")),t>=this.length?void 0:this[t]},r.prototype.readUInt16LE=function(t,e){return v(this,t,!0,e)},r.prototype.readUInt16BE=function(t,e){return v(this,t,!1,e)},r.prototype.readUInt32LE=function(t,e){return y(this,t,!0,e)},r.prototype.readUInt32BE=function(t,e){return y(this,t,!1,e)},r.prototype.readInt8=function(t,e){if(e||(R(void 0!==t&&null!==t,"missing offset"),R(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length)){var n=128&this[t];return n?-1*(255-this[t]+1):this[t]}},r.prototype.readInt16LE=function(t,e){return b(this,t,!0,e)},r.prototype.readInt16BE=function(t,e){return b(this,t,!1,e)},r.prototype.readInt32LE=function(t,e){return m(this,t,!0,e)},r.prototype.readInt32BE=function(t,e){return m(this,t,!1,e)},r.prototype.readFloatLE=function(t,e){return w(this,t,!0,e)},r.prototype.readFloatBE=function(t,e){return w(this,t,!1,e)},r.prototype.readDoubleLE=function(t,e){return E(this,t,!0,e)},r.prototype.readDoubleBE=function(t,e){return E(this,t,!1,e)},r.prototype.writeUInt8=function(t,e,n){return n||(R(void 0!==t&&null!==t,"missing value"),R(void 0!==e&&null!==e,"missing offset"),R(e<this.length,"trying to write beyond buffer length"),q(t,255)),e>=this.length?void 0:(this[e]=t,e+1)},r.prototype.writeUInt16LE=function(t,e,n){return I(this,t,e,!0,n)},r.prototype.writeUInt16BE=function(t,e,n){return I(this,t,e,!1,n)},r.prototype.writeUInt32LE=function(t,e,n){return B(this,t,e,!0,n)},r.prototype.writeUInt32BE=function(t,e,n){return B(this,t,e,!1,n)},r.prototype.writeInt8=function(t,e,n){return n||(R(void 0!==t&&null!==t,"missing value"),R(void 0!==e&&null!==e,"missing offset"),R(e<this.length,"Trying to write beyond buffer length"),P(t,127,-128)),e>=this.length?void 0:(t>=0?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n),e+1)},r.prototype.writeInt16LE=function(t,e,n){return A(this,t,e,!0,n)},r.prototype.writeInt16BE=function(t,e,n){return A(this,t,e,!1,n)},r.prototype.writeInt32LE=function(t,e,n){return L(this,t,e,!0,n)},r.prototype.writeInt32BE=function(t,e,n){return L(this,t,e,!1,n)},r.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},r.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},r.prototype.writeDoubleLE=function(t,e,n){return x(this,t,e,!0,n)},r.prototype.writeDoubleBE=function(t,e,n){return x(this,t,e,!1,n)},r.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),R(n>=e,"end < start"),n!==e&&0!==this.length){R(e>=0&&e<this.length,"start out of bounds"),R(n>=0&&n<=this.length,"end out of bounds");var r;if("number"==typeof t)for(r=e;n>r;r++)this[r]=t;else{var i=D(t.toString()),o=i.length;for(r=e;n>r;r++)this[r]=i[r%o]}return this}},r.prototype.inspect=function(){for(var t=[],e=this.length,r=0;e>r;r++)if(t[r]=k(this[r]),r===n.INSPECT_MAX_BYTES){t[r+1]="...";break}return"<Buffer "+t.join(" ")+">"},r.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if($)return new r(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;n>e;e+=1)t[e]=this[e];return t.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var X=r.prototype;r._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=X.get,t.set=X.set,t.write=X.write,t.toString=X.toString,t.toLocaleString=X.toString,t.toJSON=X.toJSON,t.equals=X.equals,t.compare=X.compare,t.copy=X.copy,t.slice=X.slice,t.readUInt8=X.readUInt8,t.readUInt16LE=X.readUInt16LE,t.readUInt16BE=X.readUInt16BE,t.readUInt32LE=X.readUInt32LE,t.readUInt32BE=X.readUInt32BE,t.readInt8=X.readInt8,t.readInt16LE=X.readInt16LE,t.readInt16BE=X.readInt16BE,t.readInt32LE=X.readInt32LE,t.readInt32BE=X.readInt32BE,t.readFloatLE=X.readFloatLE,t.readFloatBE=X.readFloatBE,t.readDoubleLE=X.readDoubleLE,t.readDoubleBE=X.readDoubleBE,t.writeUInt8=X.writeUInt8,t.writeUInt16LE=X.writeUInt16LE,t.writeUInt16BE=X.writeUInt16BE,t.writeUInt32LE=X.writeUInt32LE,t.writeUInt32BE=X.writeUInt32BE,t.writeInt8=X.writeInt8,t.writeInt16LE=X.writeInt16LE,t.writeInt16BE=X.writeInt16BE,t.writeInt32LE=X.writeInt32LE,t.writeInt32BE=X.writeInt32BE,t.writeFloatLE=X.writeFloatLE,t.writeFloatBE=X.writeFloatBE,t.writeDoubleLE=X.writeDoubleLE,t.writeDoubleBE=X.writeDoubleBE,t.fill=X.fill,t.inspect=X.inspect,t.toArrayBuffer=X.toArrayBuffer,t};var Y=/[^+\/0-9A-z]/g},{"base64-js":3,ieee754:4}],3:[function(t,e,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===a?62:e===u?63:f>e?-1:f+10>e?e-f+26+26:l+26>e?e-l:s+26>e?e-s+26:void 0}function n(t){function n(t){s[c++]=t}var r,i,a,u,f,s;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=t.length;f="="===t.charAt(l-2)?2:"="===t.charAt(l-1)?1:0,s=new o(3*t.length/4-f),a=f>0?t.length-4:t.length;var c=0;for(r=0,i=0;a>r;r+=4,i+=3)u=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&u)>>16),n((65280&u)>>8),n(255&u);return 2===f?(u=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&u)):1===f&&(u=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(u>>8&255),n(255&u)),s}function i(t){function e(t){return r.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var i,o,a,u=t.length%3,f="";for(i=0,a=t.length-u;a>i;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],f+=n(o);switch(u){case 1:o=t[t.length-1],f+=e(o>>2),f+=e(o<<4&63),f+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],f+=e(o>>10),f+=e(o>>4&63),f+=e(o<<2&63),f+="="}return f}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),u="/".charCodeAt(0),f="0".charCodeAt(0),s="a".charCodeAt(0),l="A".charCodeAt(0);t.toByteArray=n,t.fromByteArray=i}("undefined"==typeof n?this.base64js={}:n)},{}],4:[function(t,e,n){n.read=function(t,e,n,r,i){var o,a,u=8*i-r-1,f=(1<<u)-1,s=f>>1,l=-7,c=n?i-1:0,h=n?-1:1,d=t[e+c];for(c+=h,o=d&(1<<-l)-1,d>>=-l,l+=u;l>0;o=256*o+t[e+c],c+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+c],c+=h,l-=8);if(0===o)o=1-s;else{if(o===f)return a?0/0:1/0*(d?-1:1);a+=Math.pow(2,r),o-=s}return(d?-1:1)*a*Math.pow(2,o-r)},n.write=function(t,e,n,r,i,o){var a,u,f,s=8*o-i-1,l=(1<<s)-1,c=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,g=r?1:-1,p=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(u=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-a))<1&&(a--,f*=2),e+=a+c>=1?h/f:h*Math.pow(2,1-c),e*f>=2&&(a++,f/=2),a+c>=l?(u=0,a=l):a+c>=1?(u=(e*f-1)*Math.pow(2,i),a+=c):(u=e*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&u,d+=g,u/=256,i-=8);for(a=a<<i|u,s+=i;s>0;t[n+d]=255&a,d+=g,a/=256,s-=8);t[n+d-g]|=128*p}},{}],5:[function(t,e){function n(t,e,n){var u=!0,f=!0;if(!i(t))throw new TypeError;return n===!1?u=!1:o(n)&&(u="leading"in n?n.leading:u,f="trailing"in n?n.trailing:f),a.leading=u,a.maxWait=e,a.trailing=f,r(t,e,a)}var r=t("lodash.debounce"),i=t("lodash.isfunction"),o=t("lodash.isobject"),a={leading:!1,maxWait:0,trailing:!1};e.exports=n},{"lodash.debounce":6,"lodash.isfunction":9,"lodash.isobject":10}],6:[function(t,e){function n(t,e,n){var u,f,s,l,c,h,d,g=0,p=!1,v=!0;if(!r(t))throw new TypeError;if(e=a(0,e)||0,n===!0){var y=!0;v=!1}else i(n)&&(y=n.leading,p="maxWait"in n&&(a(e,n.maxWait)||0),v="trailing"in n?n.trailing:v);var b=function(){var n=e-(o()-l);if(0>=n){f&&clearTimeout(f);var r=d;f=h=d=void 0,r&&(g=o(),s=t.apply(c,u),h||f||(u=c=null))}else h=setTimeout(b,n)},m=function(){h&&clearTimeout(h),f=h=d=void 0,(v||p!==e)&&(g=o(),s=t.apply(c,u),h||f||(u=c=null))};return function(){if(u=arguments,l=o(),c=this,d=v&&(h||!y),p===!1)var n=y&&!h;else{f||y||(g=l);var r=p-(l-g),i=0>=r;i?(f&&(f=clearTimeout(f)),g=l,s=t.apply(c,u)):f||(f=setTimeout(m,r))}return i&&h?h=clearTimeout(h):h||e===p||(h=setTimeout(b,e)),n&&(i=!0,s=t.apply(c,u)),!i||h||f||(u=c=null),s}}var r=t("lodash.isfunction"),i=t("lodash.isobject"),o=t("lodash.now"),a=Math.max;e.exports=n},{"lodash.isfunction":9,"lodash.isobject":10,"lodash.now":7}],7:[function(t,e){var n=t("lodash._isnative"),r=n(r=Date.now)&&r||function(){return(new Date).getTime()};e.exports=r},{"lodash._isnative":8}],8:[function(t,e){function n(t){return"function"==typeof t&&o.test(t)}var r=Object.prototype,i=r.toString,o=RegExp("^"+String(i).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");e.exports=n},{}],9:[function(t,e){function n(t){return"function"==typeof t}e.exports=n},{}],10:[function(t,e){function n(t){return!(!t||!r[typeof t])}var r=t("lodash._objecttypes");e.exports=n},{"lodash._objecttypes":11}],11:[function(t,e){var n={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1};e.exports=n},{}],12:[function(t,e){e.exports=function(t,e){function n(t,n,o){r[t]=o,(0===--i||n)&&(e&&e(n,r),e=null)}var r,i,o;Array.isArray(t)?(r=[],i=t.length):(o=Object.keys(t),r={},i=o.length),i?o?o.forEach(function(e){t[e](n.bind(void 0,e))}):t.forEach(function(t,e){t(n.bind(void 0,e))}):(e&&e(null,r),e=null)}},{}],13:[function(t,e){(function(t){e.exports=function(e){return"function"==typeof t._augment&&t._useTypedArrays?t._augment(e):new t(e)}}).call(this,t("buffer").Buffer)},{buffer:2}]},{},[])("./buffer")}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.DragDrop=e()}}(function(){return function e(t,n,o){function r(a,u){if(!n[a]){if(!t[a]){var f="function"==typeof require&&require;if(!u&&f)return f(a,!0);if(i)return i(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return r(n?n:e)},l,l.exports,e,t,n,o)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<o.length;a++)r(o[a]);return r}({"./":[function(e,t){function n(e,t){"string"==typeof e&&(e=document.querySelector(e)),e.addEventListener("dragenter",o,!1),e.addEventListener("dragover",r(e),!1),e.addEventListener("drop",i.bind(void 0,e,t),!1)}function o(e){return e.stopPropagation(),e.preventDefault(),!1}function r(e){var t=a(function(){e.classList.add("drag"),e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(function(){e.classList.remove("drag")},150)},100,{trailing:!1});return function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy",t()}}function i(e,t,n){return n.stopPropagation(),n.preventDefault(),e.classList.remove("drag"),t(Array.prototype.slice.call(n.dataTransfer.files)),!1}t.exports=n;var a=e("lodash.throttle")},{"lodash.throttle":1}],1:[function(e,t){function n(e,t,n){var u=!0,f=!0;if(!r(e))throw new TypeError;return n===!1?u=!1:i(n)&&(u="leading"in n?n.leading:u,f="trailing"in n?n.trailing:f),a.leading=u,a.maxWait=t,a.trailing=f,o(e,t,a)}var o=e("lodash.debounce"),r=e("lodash.isfunction"),i=e("lodash.isobject"),a={leading:!1,maxWait:0,trailing:!1};t.exports=n},{"lodash.debounce":2,"lodash.isfunction":5,"lodash.isobject":6}],2:[function(e,t){function n(e,t,n){var u,f,s,l,c,d,p,v=0,g=!1,m=!0;if(!o(e))throw new TypeError;if(t=a(0,t)||0,n===!0){var h=!0;m=!1}else r(n)&&(h=n.leading,g="maxWait"in n&&(a(t,n.maxWait)||0),m="trailing"in n?n.trailing:m);var y=function(){var n=t-(i()-l);if(0>=n){f&&clearTimeout(f);var o=p;f=d=p=void 0,o&&(v=i(),s=e.apply(c,u),d||f||(u=c=null))}else d=setTimeout(y,n)},x=function(){d&&clearTimeout(d),f=d=p=void 0,(m||g!==t)&&(v=i(),s=e.apply(c,u),d||f||(u=c=null))};return function(){if(u=arguments,l=i(),c=this,p=m&&(d||!h),g===!1)var n=h&&!d;else{f||h||(v=l);var o=g-(l-v),r=0>=o;r?(f&&(f=clearTimeout(f)),v=l,s=e.apply(c,u)):f||(f=setTimeout(x,o))}return r&&d?d=clearTimeout(d):d||t===g||(d=setTimeout(y,t)),n&&(r=!0,s=e.apply(c,u)),!r||d||f||(u=c=null),s}}var o=e("lodash.isfunction"),r=e("lodash.isobject"),i=e("lodash.now"),a=Math.max;t.exports=n},{"lodash.isfunction":5,"lodash.isobject":6,"lodash.now":3}],3:[function(e,t){var n=e("lodash._isnative"),o=n(o=Date.now)&&o||function(){return(new Date).getTime()};t.exports=o},{"lodash._isnative":4}],4:[function(e,t){function n(e){return"function"==typeof e&&i.test(e)}var o=Object.prototype,r=o.toString,i=RegExp("^"+String(r).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");t.exports=n},{}],5:[function(e,t){function n(e){return"function"==typeof e}t.exports=n},{}],6:[function(e,t){function n(e){return!(!e||!o[typeof e])}var o=e("lodash._objecttypes");t.exports=n},{"lodash._objecttypes":7}],7:[function(e,t){var n={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1};t.exports=n},{}]},{},[])("./")}); |
{ | ||
"name": "drag-drop", | ||
"description": "HTML5 drag & drop for humans", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)", | ||
@@ -40,3 +40,3 @@ "bugs": { | ||
"prepublish": "npm run build", | ||
"build": "browserify -s DragDrop -r ./buffer | uglifyjs -c warnings=false -m > dragdrop.bundle.js" | ||
"build": "browserify -s DragDrop -r ./ | uglifyjs -c warnings=false -m > dragdrop.bundle.js" | ||
}, | ||
@@ -43,0 +43,0 @@ "testling": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11206