-
Notifications
You must be signed in to change notification settings - Fork 2
/
fuzzy-dropdown.min.js
12 lines (12 loc) · 32.1 KB
/
fuzzy-dropdown.min.js
1
2
3
4
5
6
7
8
9
10
11
12
!function t(r,e,n){function i(a,s){if(!e[a]){if(!r[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var h=e[a]={exports:{}};r[a][0].call(h.exports,function(t){var e=r[a][1][t];return i(e?e:t)},h,h.exports,t,r,e,n)}return e[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,r,e){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t){return this instanceof i?(this.length=0,this.parent=void 0,"number"==typeof t?o(this,t):"string"==typeof t?a(this,t,arguments.length>1?arguments[1]:"utf8"):s(this,t)):arguments.length>1?new i(t,arguments[1]):new i(t)}function o(t,r){if(t=p(t,0>r?0:0|g(r)),!i.TYPED_ARRAY_SUPPORT)for(var e=0;r>e;e++)t[e]=0;return t}function a(t,r,e){("string"!=typeof e||""===e)&&(e="utf8");var n=0|y(r,e);return t=p(t,n),t.write(r,e),t}function s(t,r){if(i.isBuffer(r))return u(t,r);if(X(r))return f(t,r);if(null==r)throw new TypeError("must start with number, buffer, array or string");return"undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer?h(t,r):r.length?c(t,r):l(t,r)}function u(t,r){var e=0|g(r.length);return t=p(t,e),r.copy(t,0,0,e),t}function f(t,r){var e=0|g(r.length);t=p(t,e);for(var n=0;e>n;n+=1)t[n]=255&r[n];return t}function h(t,r){var e=0|g(r.length);t=p(t,e);for(var n=0;e>n;n+=1)t[n]=255&r[n];return t}function c(t,r){var e=0|g(r.length);t=p(t,e);for(var n=0;e>n;n+=1)t[n]=255&r[n];return t}function l(t,r){var e,n=0;"Buffer"===r.type&&X(r.data)&&(e=r.data,n=0|g(e.length)),t=p(t,n);for(var i=0;n>i;i+=1)t[i]=255&e[i];return t}function p(t,r){i.TYPED_ARRAY_SUPPORT?t=i._augment(new Uint8Array(r)):(t.length=r,t._isBuffer=!0);var e=0!==r&&r<=i.poolSize>>>1;return e&&(t.parent=$),t}function g(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function d(t,r){if(!(this instanceof d))return new d(t,r);var e=new i(t,r);return delete e.parent,e}function y(t,r){"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"binary":case"raw":case"raws":return e;case"utf8":case"utf-8":return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return z(t).length;default:if(n)return N(t).length;r=(""+r).toLowerCase(),n=!0}}function w(t,r,e){var n=!1;if(r=0|r,e=void 0===e||e===1/0?this.length:0|e,t||(t="utf8"),0>r&&(r=0),e>this.length&&(e=this.length),r>=e)return"";for(;;)switch(t){case"hex":return U(this,r,e);case"utf8":case"utf-8":return R(this,r,e);case"ascii":return x(this,r,e);case"binary":return S(this,r,e);case"base64":return B(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var o=r.length;if(o%2!==0)throw new Error("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;n>a;a++){var s=parseInt(r.substr(2*a,2),16);if(isNaN(s))throw new Error("Invalid hex string");t[e+a]=s}return a}function E(t,r,e,n){return H(N(r,t.length-e),t,e,n)}function m(t,r,e,n){return H(F(r),t,e,n)}function b(t,r,e,n){return m(t,r,e,n)}function A(t,r,e,n){return H(z(r),t,e,n)}function I(t,r,e,n){return H(q(r,t.length-e),t,e,n)}function B(t,r,e){return 0===r&&e===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(r,e))}function R(t,r,e){var n="",i="";e=Math.min(t.length,e);for(var o=r;e>o;o++)t[o]<=127?(n+=J(i)+String.fromCharCode(t[o]),i=""):i+="%"+t[o].toString(16);return n+J(i)}function x(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;e>i;i++)n+=String.fromCharCode(127&t[i]);return n}function S(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;e>i;i++)n+=String.fromCharCode(t[i]);return n}function U(t,r,e){var n=t.length;(!r||0>r)&&(r=0),(!e||0>e||e>n)&&(e=n);for(var i="",o=r;e>o;o++)i+=Y(t[o]);return i}function P(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function O(t,r,e){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function C(t,r,e,n,o,a){if(!i.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(r>o||a>r)throw new RangeError("value is out of bounds");if(e+n>t.length)throw new RangeError("index out of range")}function L(t,r,e,n){0>r&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);o>i;i++)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function T(t,r,e,n){0>r&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);o>i;i++)t[e+i]=r>>>8*(n?i:3-i)&255}function D(t,r,e,n,i,o){if(r>i||o>r)throw new RangeError("value is out of bounds");if(e+n>t.length)throw new RangeError("index out of range");if(0>e)throw new RangeError("index out of range")}function _(t,r,e,n,i){return i||D(t,r,e,4,3.4028234663852886e38,-3.4028234663852886e38),W.write(t,r,e,n,23,4),e+4}function j(t,r,e,n,i){return i||D(t,r,e,8,1.7976931348623157e308,-1.7976931348623157e308),W.write(t,r,e,n,52,8),e+8}function M(t){if(t=k(t).replace(K,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function k(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Y(t){return 16>t?"0"+t.toString(16):t.toString(16)}function N(t,r){r=r||1/0;for(var e,n=t.length,i=null,o=[],a=0;n>a;a++){if(e=t.charCodeAt(a),e>55295&&57344>e){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(56320>e){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=i-55296<<10|e-56320|65536,i=null}else i&&((r-=3)>-1&&o.push(239,191,189),i=null);if(128>e){if((r-=1)<0)break;o.push(e)}else if(2048>e){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(65536>e){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(2097152>e))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function F(t){for(var r=[],e=0;e<t.length;e++)r.push(255&t.charCodeAt(e));return r}function q(t,r){for(var e,n,i,o=[],a=0;a<t.length&&!((r-=2)<0);a++)e=t.charCodeAt(a),n=e>>8,i=e%256,o.push(i),o.push(n);return o}function z(t){return Q.toByteArray(M(t))}function H(t,r,e,n){for(var i=0;n>i&&!(i+e>=r.length||i>=t.length);i++)r[i+e]=t[i];return i}function J(t){try{return decodeURIComponent(t)}catch(r){return String.fromCharCode(65533)}}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org>
* @license MIT
*/
var Q=t("base64-js"),W=t("ieee754"),X=t("is-array");e.Buffer=i,e.SlowBuffer=d,e.INSPECT_MAX_BYTES=50,i.poolSize=8192;var $={};i.TYPED_ARRAY_SUPPORT=function(){function t(){}try{var r=new ArrayBuffer(0),e=new Uint8Array(r);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}(),i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,r){if(!i.isBuffer(t)||!i.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,o=0,a=Math.min(e,n);a>o&&t[o]===r[o];)++o;return o!==a&&(e=t[o],n=r[o]),n>e?-1:e>n?1:0},i.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}},i.concat=function(t,r){if(!X(t))throw new TypeError("list argument must be an Array of Buffers.");if(0===t.length)return new i(0);if(1===t.length)return t[0];var e;if(void 0===r)for(r=0,e=0;e<t.length;e++)r+=t[e].length;var n=new i(r),o=0;for(e=0;e<t.length;e++){var a=t[e];a.copy(n,o),o+=a.length}return n},i.byteLength=y,i.prototype.length=void 0,i.prototype.parent=void 0,i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?R(this,0,t):w.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:0===i.compare(this,t)},i.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?0:i.compare(this,t)},i.prototype.indexOf=function(t,r){function e(t,r,e){for(var n=-1,i=0;e+i<t.length;i++)if(t[e+i]===r[-1===n?0:i-n]){if(-1===n&&(n=i),i-n+1===r.length)return e+n}else n=-1;return-1}if(r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(0>r&&(r=Math.max(this.length+r,0)),"string"==typeof t)return 0===t.length?-1:String.prototype.indexOf.call(this,t,r);if(i.isBuffer(t))return e(this,t,r);if("number"==typeof t)return i.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,t,r):e(this,[t],r);throw new TypeError("val must be string, number or Buffer")},i.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},i.prototype.set=function(t,r){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,r)},i.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r=0|r,isFinite(e)?(e=0|e,void 0===n&&(n="utf8")):(n=e,e=void 0);else{var i=n;n=r,r=0|e,e=i}var o=this.length-r;if((void 0===e||e>o)&&(e=o),t.length>0&&(0>e||0>r)||r>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return v(this,t,r,e);case"utf8":case"utf-8":return E(this,t,r,e);case"ascii":return m(this,t,r,e);case"binary":return b(this,t,r,e);case"base64":return A(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r,e);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,0>t?(t+=e,0>t&&(t=0)):t>e&&(t=e),0>r?(r+=e,0>r&&(r=0)):r>e&&(r=e),t>r&&(r=t);var n;if(i.TYPED_ARRAY_SUPPORT)n=i._augment(this.subarray(t,r));else{var o=r-t;n=new i(o,void 0);for(var a=0;o>a;a++)n[a]=this[a+t]}return n.length&&(n.parent=this.parent||this),n},i.prototype.readUIntLE=function(t,r,e){t=0|t,r=0|r,e||O(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},i.prototype.readUIntBE=function(t,r,e){t=0|t,r=0|r,e||O(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},i.prototype.readUInt8=function(t,r){return r||O(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,r){return r||O(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,r){return r||O(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,r){return r||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,r){return r||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,r,e){t=0|t,r=0|r,e||O(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*r)),n},i.prototype.readIntBE=function(t,r,e){t=0|t,r=0|r,e||O(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o},i.prototype.readInt8=function(t,r){return r||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,r){r||O(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt16BE=function(t,r){r||O(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt32LE=function(t,r){return r||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,r){return r||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,r){return r||O(t,4,this.length),W.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,r){return r||O(t,4,this.length),W.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,r){return r||O(t,8,this.length),W.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,r){return r||O(t,8,this.length),W.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,r,e,n){t=+t,r=0|r,e=0|e,n||C(this,t,r,e,Math.pow(2,8*e),0);var i=1,o=0;for(this[r]=255&t;++o<e&&(i*=256);)this[r+o]=t/i&255;return r+e},i.prototype.writeUIntBE=function(t,r,e,n){t=+t,r=0|r,e=0|e,n||C(this,t,r,e,Math.pow(2,8*e),0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},i.prototype.writeUInt8=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=t,r+1},i.prototype.writeUInt16LE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[r]=t,this[r+1]=t>>>8):L(this,t,r,!0),r+2},i.prototype.writeUInt16BE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t):L(this,t,r,!1),r+2},i.prototype.writeUInt32LE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t):T(this,t,r,!0),r+4},i.prototype.writeUInt32BE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t):T(this,t,r,!1),r+4},i.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r=0|r,!n){var i=Math.pow(2,8*e-1);C(this,t,r,e,i-1,-i)}var o=0,a=1,s=0>t?1:0;for(this[r]=255&t;++o<e&&(a*=256);)this[r+o]=(t/a>>0)-s&255;return r+e},i.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r=0|r,!n){var i=Math.pow(2,8*e-1);C(this,t,r,e,i-1,-i)}var o=e-1,a=1,s=0>t?1:0;for(this[r+o]=255&t;--o>=0&&(a*=256);)this[r+o]=(t/a>>0)-s&255;return r+e},i.prototype.writeInt8=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[r]=t,r+1},i.prototype.writeInt16LE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[r]=t,this[r+1]=t>>>8):L(this,t,r,!0),r+2},i.prototype.writeInt16BE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=t):L(this,t,r,!1),r+2},i.prototype.writeInt32LE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[r]=t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):T(this,t,r,!0),r+4},i.prototype.writeInt32BE=function(t,r,e){return t=+t,r=0|r,e||C(this,t,r,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t):T(this,t,r,!1),r+4},i.prototype.writeFloatLE=function(t,r,e){return _(this,t,r,!0,e)},i.prototype.writeFloatBE=function(t,r,e){return _(this,t,r,!1,e)},i.prototype.writeDoubleLE=function(t,r,e){return j(this,t,r,!0,e)},i.prototype.writeDoubleBE=function(t,r,e){return j(this,t,r,!1,e)},i.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&e>n&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(0>r)throw new RangeError("targetStart out of bounds");if(0>e||e>=this.length)throw new RangeError("sourceStart out of bounds");if(0>n)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o=n-e;if(1e3>o||!i.TYPED_ARRAY_SUPPORT)for(var a=0;o>a;a++)t[a+r]=this[a+e];else t._set(this.subarray(e,e+o),r);return o},i.prototype.fill=function(t,r,e){if(t||(t=0),r||(r=0),e||(e=this.length),r>e)throw new RangeError("end < start");if(e!==r&&0!==this.length){if(0>r||r>=this.length)throw new RangeError("start out of bounds");if(0>e||e>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof t)for(n=r;e>n;n++)this[n]=t;else{var i=N(t.toString()),o=i.length;for(n=r;e>n;n++)this[n]=i[n%o]}return this}},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i.TYPED_ARRAY_SUPPORT)return new i(this).buffer;for(var t=new Uint8Array(this.length),r=0,e=t.length;e>r;r+=1)t[r]=this[r];return t.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var G=i.prototype;i._augment=function(t){return t.constructor=i,t._isBuffer=!0,t._set=t.set,t.get=G.get,t.set=G.set,t.write=G.write,t.toString=G.toString,t.toLocaleString=G.toString,t.toJSON=G.toJSON,t.equals=G.equals,t.compare=G.compare,t.indexOf=G.indexOf,t.copy=G.copy,t.slice=G.slice,t.readUIntLE=G.readUIntLE,t.readUIntBE=G.readUIntBE,t.readUInt8=G.readUInt8,t.readUInt16LE=G.readUInt16LE,t.readUInt16BE=G.readUInt16BE,t.readUInt32LE=G.readUInt32LE,t.readUInt32BE=G.readUInt32BE,t.readIntLE=G.readIntLE,t.readIntBE=G.readIntBE,t.readInt8=G.readInt8,t.readInt16LE=G.readInt16LE,t.readInt16BE=G.readInt16BE,t.readInt32LE=G.readInt32LE,t.readInt32BE=G.readInt32BE,t.readFloatLE=G.readFloatLE,t.readFloatBE=G.readFloatBE,t.readDoubleLE=G.readDoubleLE,t.readDoubleBE=G.readDoubleBE,t.writeUInt8=G.writeUInt8,t.writeUIntLE=G.writeUIntLE,t.writeUIntBE=G.writeUIntBE,t.writeUInt16LE=G.writeUInt16LE,t.writeUInt16BE=G.writeUInt16BE,t.writeUInt32LE=G.writeUInt32LE,t.writeUInt32BE=G.writeUInt32BE,t.writeIntLE=G.writeIntLE,t.writeIntBE=G.writeIntBE,t.writeInt8=G.writeInt8,t.writeInt16LE=G.writeInt16LE,t.writeInt16BE=G.writeInt16BE,t.writeInt32LE=G.writeInt32LE,t.writeInt32BE=G.writeInt32BE,t.writeFloatLE=G.writeFloatLE,t.writeFloatBE=G.writeFloatBE,t.writeDoubleLE=G.writeDoubleLE,t.writeDoubleBE=G.writeDoubleBE,t.fill=G.fill,t.inspect=G.inspect,t.toArrayBuffer=G.toArrayBuffer,t};var K=/[^+\/0-9A-z\-]/g},{"base64-js":2,ieee754:3,"is-array":4}],2:[function(t,r,e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function r(t){var r=t.charCodeAt(0);return r===a||r===c?62:r===s||r===l?63:u>r?-1:u+10>r?r-u+26+26:h+26>r?r-h:f+26>r?r-f+26:void 0}function e(t){function e(t){f[c++]=t}var n,i,a,s,u,f;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var h=t.length;u="="===t.charAt(h-2)?2:"="===t.charAt(h-1)?1:0,f=new o(3*t.length/4-u),a=u>0?t.length-4:t.length;var c=0;for(n=0,i=0;a>n;n+=4,i+=3)s=r(t.charAt(n))<<18|r(t.charAt(n+1))<<12|r(t.charAt(n+2))<<6|r(t.charAt(n+3)),e((16711680&s)>>16),e((65280&s)>>8),e(255&s);return 2===u?(s=r(t.charAt(n))<<2|r(t.charAt(n+1))>>4,e(255&s)):1===u&&(s=r(t.charAt(n))<<10|r(t.charAt(n+1))<<4|r(t.charAt(n+2))>>2,e(s>>8&255),e(255&s)),f}function i(t){function r(t){return n.charAt(t)}function e(t){return r(t>>18&63)+r(t>>12&63)+r(t>>6&63)+r(63&t)}var i,o,a,s=t.length%3,u="";for(i=0,a=t.length-s;a>i;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],u+=e(o);switch(s){case 1:o=t[t.length-1],u+=r(o>>2),u+=r(o<<4&63),u+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],u+=r(o>>10),u+=r(o>>4&63),u+=r(o<<2&63),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),s="/".charCodeAt(0),u="0".charCodeAt(0),f="a".charCodeAt(0),h="A".charCodeAt(0),c="-".charCodeAt(0),l="_".charCodeAt(0);t.toByteArray=e,t.fromByteArray=i}("undefined"==typeof e?this.base64js={}:e)},{}],3:[function(t,r,e){e.read=function(t,r,e,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,f=u>>1,h=-7,c=e?i-1:0,l=e?-1:1,p=t[r+c];for(c+=l,o=p&(1<<-h)-1,p>>=-h,h+=s;h>0;o=256*o+t[r+c],c+=l,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+t[r+c],c+=l,h-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,n),o-=f}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,r,e,n,i,o){var a,s,u,f=8*o-i-1,h=(1<<f)-1,c=h>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,g=n?1:-1,d=0>r||0===r&&0>1/r?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-a))<1&&(a--,u*=2),r+=a+c>=1?l/u:l*Math.pow(2,1-c),r*u>=2&&(a++,u/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(r*u-1)*Math.pow(2,i),a+=c):(s=r*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[e+p]=255&s,p+=g,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[e+p]=255&a,p+=g,a/=256,f-=8);t[e+p-g]|=128*d}},{}],4:[function(t,r,e){var n=Array.isArray,i=Object.prototype.toString;r.exports=n||function(t){return!!t&&"[object Array]"==i.call(t)}},{}],5:[function(t,r,e){function n(){h=!1,s.length?f=s.concat(f):c=-1,f.length&&i()}function i(){if(!h){var t=setTimeout(n);h=!0;for(var r=f.length;r;){for(s=f,f=[];++c<r;)s[c].run();c=-1,r=f.length}s=null,h=!1,clearTimeout(t)}}function o(t,r){this.fun=t,this.array=r}function a(){}var s,u=r.exports={},f=[],h=!1,c=-1;u.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];f.push(new o(t,r)),1!==f.length||h||setTimeout(i,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=a,u.addListener=a,u.once=a,u.off=a,u.removeListener=a,u.removeAllListeners=a,u.emit=a,u.binding=function(t){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(t){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],6:[function(t,r,e){r.exports=function n(t){"use strict";var r=[].slice.call(arguments);if("function"!=typeof t)throw new Error("auto-curry: Invalid parameter. First parameter should be a function.");return"function"!=typeof t||t.length?r.length-1>=t.length?t.apply(this,r.slice(1)):function(){var t=r.concat([].slice.call(arguments));return n.apply(this,t)}:t}},{}],7:[function(t,r,e){(function(t){"use strict";function e(t){return Object.prototype.toString.call(t)}function n(r,e,n,o){function a(r,n){if(null===r)return null;if(0==n)return r;var h,c;if("object"!=typeof r)return r;if(i.isArray(r))h=[];else if(i.isRegExp(r))h=new RegExp(r.source,i.getRegExpFlags(r)),r.lastIndex&&(h.lastIndex=r.lastIndex);else if(i.isDate(r))h=new Date(r.getTime());else{if(f&&t.isBuffer(r))return h=new t(r.length),r.copy(h),h;"undefined"==typeof o?(c=Object.getPrototypeOf(r),h=Object.create(c)):(h=Object.create(o),c=o)}if(e){var l=s.indexOf(r);if(-1!=l)return u[l];s.push(r),u.push(h)}for(var p in r){var g;c&&(g=Object.getOwnPropertyDescriptor(c,p)),g&&null==g.set||(h[p]=a(r[p],n-1))}return h}var s=[],u=[],f="undefined"!=typeof t;return"undefined"==typeof e&&(e=!0),"undefined"==typeof n&&(n=1/0),a(r,n)}var i={isArray:function(t){return Array.isArray(t)||"object"==typeof t&&"[object Array]"===e(t)},isDate:function(t){return"object"==typeof t&&"[object Date]"===e(t)},isRegExp:function(t){return"object"==typeof t&&"[object RegExp]"===e(t)},getRegExpFlags:function(t){var r="";return t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),r}};"object"==typeof r&&(r.exports=n),n.clonePrototype=function(t){if(null===t)return null;var r=function(){};return r.prototype=t,new r}}).call(this,t("buffer").Buffer)},{buffer:1}],8:[function(t,r,e){function n(t,r,e){var n;if(!r||!d(r))throw new SyntaxError(s.DataMustBeArrayOrObject);if(i(r))throw new SyntaxError(s.DataMustBeStringArray);if("string"!=typeof e)throw new SyntaxError(s.SearchStringMustBeString);return t&&Object.keys(t).length||(console.warn(s.NoTransformsWarning),t={}),r.length<=0||r.data&&r.data.length<=0||r.searchInProps&&r.searchInProps.length<=0||Object.keys(r).length<=0?r:(n=o.getMatchedList(r,o.getRegex(e)),p(n)?n=n.filter(function(t){return!!t}):n.data=n.data.filter(function(t){return!!t}),Object.keys(t).forEach(function(r){if("function"!=typeof t[r])throw new SyntaxError(s.TransformMustBeSingleArgFunction);n=t[r](n)}),n)}var i,o=t("./util"),a=t("auto-curry"),s=t("./messages"),u=t("./transforms/rank"),f=t("./transforms/noResults"),h=t("./transforms/highlight"),c=t("./transforms/noHighlight"),l=o.or,p=o.isArray,g=o.isObject,d=l(g,p);i=o.and(p,function(t){return!!t.filter(function(t){return"string"!=typeof t}).length}),r.exports={search:a(n),transforms:{rank:u,highlight:h,noResults:f,noHighlight:c}}},{"./messages":9,"./transforms/highlight":10,"./transforms/noHighlight":11,"./transforms/noResults":12,"./transforms/rank":13,"./util":14,"auto-curry":6}],9:[function(t,r,e){r.exports={DataMustBeArrayOrObject:"Data given to search function must be an array or object",InputMustBeArray:"Input must be array",DataMustBeStringArray:"Data given to search function must be an array of strings",SearchStringMustBeString:"Search string provided to search function must be a string",TransformMustBeSingleArgFunction:"Transforms must be a valid function taking one parameter and returing an array",NoTransformsWarning:"You haven't passed any transforms. You might want to atleast pass highlight or noHighlight to get a usable output (array of strings).",OnlyObjectCanBeCloned:"Argument to clone must be a valid javascript object",OnlyStringsAreSearchable:"A search can be performed only on properties that are defined and text i.e., properties that are defined and contain a text value "}},{}],10:[function(t,r,e){function n(t,r){return t&&t.length>0?t.map(function(e,n){return n%2!==0&&n!==t.length-1&&""!==e?'<span class="'+r+'">'+e+"</span>":e}).join(""):void 0}function i(t,r){if(h(r)){if(f(r))return r.map(function(r){return n(r.slice(1),t)});var e=u(r);return e.data=e.data.map(function(r){return e.searchInProps.forEach(function(e){r[e]&&(r[e]=n(r[e].slice(1),t))}),r}),e}throw new SyntaxError(s.DataMustBeArrayOrObject)}var o=t("../util"),a=t("auto-curry"),s=t("../messages"),u=o.clone,f=o.isArray,h=o.isObject;r.exports=a(i)},{"../messages":9,"../util":14,"auto-curry":6}],11:[function(t,r,e){function n(t){if(u(t)){if(s(t))return t.map(function(t){return t[0]});var r=a(t);return r.data=r.data.map(function(t){return r.searchInProps.forEach(function(r){t[r]&&(t[r]=t[r][0])}),t}),r}throw new SyntaxError(o.DataMustBeArrayOrObject)}var i=t("../util"),o=t("../messages"),a=i.clone,s=i.isArray,u=i.isObject;r.exports=n},{"../messages":9,"../util":14}],12:[function(t,r,e){function n(t){return function(r){if(s(r))return a(r)?r.length||r.push(t||"No Results found."):a(r.data)&&!r.data.length&&r.data.push({noResult:t||"No results found."}),r;throw new SyntaxError(o.DataMustBeArrayOrObject)}}var i=t("../util"),o=t("../messages"),a=i.isArray,s=i.isObject;r.exports=n},{"../messages":9,"../util":14}],13:[function(t,r,e){function n(t){var r,e,n;return t?(r=t[1],n=t.filter(function(t,r){return r%2!==0}).slice(0,-1),e=s.zip(n,n.slice(1)).reduce(function(t,r){return t+(r[1]-r[0])},0),-1*e):-9999999}function i(t,r){var e;return r?(e=r.index,r[0]===t&&(r=r.slice(1)),r.map(function(r){var n=t.indexOf(r,e);return e+=r.length,n})):void 0}function o(t,r){return function(e,o){(r||0===r)&&(e[t]||(e[t]=""),o[t]||(o[t]=""));var a=r||0===r?i(e[t][r],e[t]):i(e[t],e),s=r||0===r?i(o[t][r],o[t]):i(o[t],o),u=n(a),f=n(s);if(u>f)return-1;if(f>u)return 1;if(a[1]<s[1])return-1;if(a[1]>s[1])return 1;var h=r||0===r?e[t][r].length:e[t].length,c=r||0===r?o[t][r].length:o[t].length;return 0===u&&0===f?0:c>h?-1:h>c?1:0}}function a(t,r){var e;if(t=t||0,l(r))return c(r)?(e=r.slice(0),0===e.reduce(function(r,e){return r+n(i(e[t],e))},0)?e:e.sort(o(t))):(e=h(r),e.data.reduce(function(r,e){return e[t]?r+n(i(e[t][0],e[t])):r},0)<0&&e.data.sort(o(t,0)),e);throw new SyntaxError(f.DataMustBeArrayOrObject)}var s=t("../util"),u=t("auto-curry"),f=t("../messages"),h=s.clone,c=s.isArray,l=s.isObject;r.exports=u(a)},{"../messages":9,"../util":14,"auto-curry":6}],14:[function(t,r,e){function n(t,r){return function(e){return t(e)&&r(e)}}function i(t,r){return function(e){return t(e)||r(e)}}function o(t,r){var e=[];if(!s(t)||!s(r))throw new Error(p.InputMustBeArray);for(t=t.slice(),r=r.slice();t.length&&r.length;)e.push([t.shift(),r.shift()]);return e}function a(t){return"object"==typeof t&&null!==t}function s(t){return Array.isArray(t)}function u(t){return"string"==typeof t}function f(t){var r=t.split("").map(function(t){return("*"===t||"."===t||"+"===t||"("===t||")"===t||"\\"===t||"?"===t||"'"===t||"$"===t||"^"===t||"/"===t||"["===t||"]"===t)&&(t="\\"+t),"("+t+")"});return r="^(.*?)"+r.join("(.*?)")+"(.*?)(.*)$",new RegExp(r,"i")}function h(t,r){if(a(t)){if(s(t))return t.map(function(t){return t.match(r)});var e=c(t);return e.data=e.data.map(function(e){var n=c(e),i=0;return i=t.searchInProps.filter(function(t){if(!u(e[t]))throw new SyntaxError(p.OnlyStringsAreSearchable);return n[t]=e[t].match(r),!!n[t]}).length,i>0?n:null}),e}throw new SyntaxError(p.DataMustBeArrayOrObject)}var c=t("clone"),l=t("auto-curry"),p=t("./messages");r.exports={or:l(i),and:l(n),zip:l(o),clone:c,isArray:s,isObject:a,getRegex:f,getMatchedList:l(h)}},{"./messages":9,"auto-curry":6,clone:7}],15:[function(t,r,e){(function(r){/**
* @license subsequence-search - https://github.com/zeusdeux/subsequence-search/master/LICENSE
* @license fuzzyDropdown - https:// github.com/zeusdeux/fuzzyDropdown/blob/master/LICENSE
**/
function e(t,r){function e(r){var e,n=[];return t.each(r,function(){e=t(this),n.push({value:e.val(),text:e.text().trim()})}),n}t.fn=t.fn||{},t.fn.fuzzyDropdown=function(n){function i(){y.children("."+u.selectedClass).removeClass(u.selectedClass)}var o,a,s,u=t.extend({enableBrowserDefaultScroll:!1,transforms:{rank:r.transforms.rank("text")}},n),f=t(this),h=t(u.mainContainer),c=t(h.children("div")[0]),l=c.children("span:first"),p=t(c.children("span")[1]),g=t(h.children("div")[1]),d=g.children("input:first"),y=g.children("ul:first"),w=f.children("option"),v=e(w),E=+new Date+"-no-results-found",m=r.search(t.extend(u.transforms,{pluckData:function(t){return t.data.map(function(t){return t.value})}}),{data:v,searchInProps:["text"]});if(f.children("option").length){f.hide(),t(u.mainContainer+":hidden").length&&h.show(),o=f.children("option[selected]"),o=o.length?o:f.children("option:first"),l.attr("data-val",o.val()),l.text(o.text());for(var b=0;b<w.length;b++)s='<li data-val="'+w[b].value+'">'+w[b].text+"</li>",y.append(s);y.append('<li id="'+E+'" style="display:none;">No results found.</li>'),a=y.children("li"),d.keyup(function(){var r,e=t(this),n=e.val();""===n?(a.css("display","list-item"),t("#"+E).css("display","none")):(r=m(n),r.length?(a.css("display","none"),a.each(function(){for(var e=t(this),n=0;n<r.length;n++)e.attr("data-val")===r[n]&&e.css("display","list-item")})):(a.css("display","none"),t("#"+E).css("display","list-item")))}),c.click(function(t){t.preventDefault(),t.stopPropagation(),p.toggleClass(u.arrowUpClass),g.slideToggle(100),g.is(":visible")&&d.focus().select(),i()}),g.on("click","li",function(){var r=t(this);l.attr("data-val",r.attr("data-val")),l.text(r.text()),f.find("option:selected").prop("selected",!1),f.children("option[value="+r.attr("data-val")+"]").prop("selected",!0).change()}),t("body").click(function(){g.is(":visible")&&!d.is(":focus")&&c.click()}),d.keydown(function(r){return r.stopPropagation(),i(),y.children(":visible:first").get(0)===t("#"+E).get(0)?void i():void(40===r.keyCode&&(y.children(":visible:first").addClass(u.selectedClass),d.blur()))}),y.on("keydown","li",function(r){var e=t(this),n=y.children(":visible:first").get(0)===e.get(0),i=y.children(":visible:last").get(0)===e.get(0),o=e.next(),a=e.prev();if(r.preventDefault(),r.stopPropagation(),n&&38===r.keyCode)return e.removeClass(u.selectedClass),void d.focus().select();if(!i||40!==r.keyCode){if(40===r.keyCode){for(e.removeClass(u.selectedClass);!o.is(":visible");)o=o.next();return void o.addClass(u.selectedClass)}if(38===r.keyCode){for(e.removeClass(u.selectedClass);!a.is(":visible");)a=a.prev();return void a.addClass(u.selectedClass)}13===r.keyCode&&e.click()}}),t("body").on("keydown",function(r){var e;!g.is(":visible")||38!==r.keyCode&&40!==r.keyCode&&13!==r.keyCode||(u.enableBrowserDefaultScroll||r.preventDefault(),r.stopPropagation(),e=t.Event("keydown"),e.keyCode=r.keyCode,y.children("."+u.selectedClass).trigger(e))})}}}try{var n=t("jquery")}catch(i){if(!r.browser)throw new Error("fuzzyDropdown: No jquery module found. Please make sure you have jquery as a dependency in your package.json if you're importing this as a commonjs module (using require or import). If you want to use fuzzyDropdown as a standalone plugin, then include dist/fuzzyDropdown.min.js in you html file after you include jQuery");n=window.jQuery}e(n,t("subsequence-search"))}).call(this,t("_process"))},{_process:5,jquery:void 0,"subsequence-search":8}]},{},[15]);
//# sourceMappingURL=dist/fuzzy-dropdown.min.map