UNPKG

skynet-mobile-plugin-greeting

Version:
1 lines 21.3 kB
!function(e){if("object"==typeof exports)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.skynetPlugins||(t.skynetPlugins={})).skynetMobilePluginGreeting=e()}}(function(){return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var f=n[s]={exports:{}};t[s][0].call(f.exports,function(e){var n=t[s][1][e];return i(n?n:e)},f,f.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t){(function(){function e(e,t,n,r){return this.name=r.name,this.uuid=r.uuid,this.messenger=e,this.options=t,this.api=n,this.api.logActivity({type:r.name,html:"Greetings Initialized"}),this}var n={type:"object",properties:{greetingPrefix:{type:"string",required:!0}}},r={type:"object",properties:{text:{type:"string",required:!0}}};e.prototype.onMessage=function(e,t){var n=e.message||e.payload;console.log(this.options.greetingPrefix+", "+e.fromUuid);var r={greeting:this.options.greetingPrefix+" back atcha: "+n.text};e.fromUuid&&t?(r.withCallback=!0,t(r)):e.fromUuid&&this.messenger.send({devices:e.fromUuid,payload:r})},e.prototype.onEnable=function(){this.api.logActivity({type:this.name,html:"Greetings plugin enabled"})},e.prototype.onDisable=function(){this.api.logActivity({type:this.name,html:"Greetings plugin disabled"})},e.prototype.onInstall=function(){this.api.logActivity({type:this.name,html:"Greetings plugin installed"})},e.prototype.destroy=function(){this.api.logActivity({type:this.name,html:"Destroying Greeting plugin"})},t.exports={Plugin:e,optionsSchema:n,messageSchema:r}}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_5622e43f.js","/")},{IrXUsu:5,buffer:2}],2:[function(e,t,n){(function(t,r,i){function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r=typeof e;if("base64"===t&&"string"===r)for(e=S(e);e.length%4!==0;)e+="=";var o;if("number"===r)o=x(e);else if("string"===r)o=i.byteLength(e,t);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");o=x(e.length)}var s;i._useTypedArrays?s=i._augment(new Uint8Array(o)):(s=this,s.length=o,s._isBuffer=!0);var a;if(i._useTypedArrays&&"number"==typeof e.byteLength)s._set(e);else if(T(e))for(a=0;o>a;a++)s[a]=i.isBuffer(e)?e.readUInt8(a):e[a];else if("string"===r)s.write(e,0,t);else if("number"===r&&!i._useTypedArrays&&!n)for(a=0;o>a;a++)s[a]=0;return s}function o(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var s=t.length;J(s%2===0,"Invalid hex string"),r>s/2&&(r=s/2);for(var a=0;r>a;a++){var u=parseInt(t.substr(2*a,2),16);J(!isNaN(u),"Invalid hex string"),e[n+a]=u}return i._charsWritten=2*a,a}function s(e,t,n,r){var o=i._charsWritten=P(j(t),e,n,r);return o}function a(e,t,n,r){var o=i._charsWritten=P(F(t),e,n,r);return o}function u(e,t,n,r){return a(e,t,n,r)}function f(e,t,n,r){var o=i._charsWritten=P(X(t),e,n,r);return o}function l(e,t,n,r){var o=i._charsWritten=P(D(t),e,n,r);return o}function d(e,t,n){return z.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function c(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;n>o;o++)e[o]<=127?(r+=q(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+q(i)}function h(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;i++)r+=String.fromCharCode(e[i]);return r}function g(e,t,n){return h(e,t,n)}function p(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;n>o;o++)i+=N(e[o]);return i}function y(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function b(e,t,n,r){r||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==t&&null!==t,"missing offset"),J(t+1<e.length,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o;return n?(o=e[t],i>t+1&&(o|=e[t+1]<<8)):(o=e[t]<<8,i>t+1&&(o|=e[t+1])),o}}function w(e,t,n,r){r||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==t&&null!==t,"missing offset"),J(t+3<e.length,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o;return n?(i>t+2&&(o=e[t+2]<<16),i>t+1&&(o|=e[t+1]<<8),o|=e[t],i>t+3&&(o+=e[t+3]<<24>>>0)):(i>t+1&&(o=e[t+1]<<16),i>t+2&&(o|=e[t+2]<<8),i>t+3&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}}function m(e,t,n,r){r||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==t&&null!==t,"missing offset"),J(t+1<e.length,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o=b(e,t,n,!0),s=32768&o;return s?-1*(65535-o+1):o}}function v(e,t,n,r){r||(J("boolean"==typeof n,"missing or invalid endian"),J(void 0!==t&&null!==t,"missing offset"),J(t+3<e.length,"Trying to read beyond buffer length"));var i=e.length;if(!(t>=i)){var o=w(e,t,n,!0),s=2147483648&o;return s?-1*(4294967295-o+1):o}}function E(e,t,n,r){return r||(J("boolean"==typeof n,"missing or invalid endian"),J(t+3<e.length,"Trying to read beyond buffer length")),R.read(e,t,n,23,4)}function I(e,t,n,r){return r||(J("boolean"==typeof n,"missing or invalid endian"),J(t+7<e.length,"Trying to read beyond buffer length")),R.read(e,t,n,52,8)}function B(e,t,n,r,i){i||(J(void 0!==t&&null!==t,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+1<e.length,"trying to write beyond buffer length"),G(t,65535));var o=e.length;if(!(n>=o))for(var s=0,a=Math.min(o-n,2);a>s;s++)e[n+s]=(t&255<<8*(r?s:1-s))>>>8*(r?s:1-s)}function A(e,t,n,r,i){i||(J(void 0!==t&&null!==t,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3<e.length,"trying to write beyond buffer length"),G(t,4294967295));var o=e.length;if(!(n>=o))for(var s=0,a=Math.min(o-n,4);a>s;s++)e[n+s]=t>>>8*(r?s:3-s)&255}function U(e,t,n,r,i){i||(J(void 0!==t&&null!==t,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+1<e.length,"Trying to write beyond buffer length"),W(t,32767,-32768));var o=e.length;n>=o||(t>=0?B(e,t,n,r,i):B(e,65535+t+1,n,r,i))}function _(e,t,n,r,i){i||(J(void 0!==t&&null!==t,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3<e.length,"Trying to write beyond buffer length"),W(t,2147483647,-2147483648));var o=e.length;n>=o||(t>=0?A(e,t,n,r,i):A(e,4294967295+t+1,n,r,i))}function L(e,t,n,r,i){i||(J(void 0!==t&&null!==t,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+3<e.length,"Trying to write beyond buffer length"),O(t,3.4028234663852886e38,-3.4028234663852886e38));var o=e.length;n>=o||R.write(e,t,n,r,23,4)}function k(e,t,n,r,i){i||(J(void 0!==t&&null!==t,"missing value"),J("boolean"==typeof r,"missing or invalid endian"),J(void 0!==n&&null!==n,"missing offset"),J(n+7<e.length,"Trying to write beyond buffer length"),O(t,1.7976931348623157e308,-1.7976931348623157e308));var o=e.length;n>=o||R.write(e,t,n,r,52,8)}function S(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(e,t,n){return"number"!=typeof e?n:(e=~~e,e>=t?t:e>=0?e:(e+=t,e>=0?e:0))}function x(e){return e=~~Math.ceil(+e),0>e?0:e}function M(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function T(e){return M(e)||i.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function N(e){return 16>e?"0"+e.toString(16):e.toString(16)}function j(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(127>=r)t.push(e.charCodeAt(n));else{var i=n;r>=55296&&57343>=r&&n++;for(var o=encodeURIComponent(e.slice(i,n+1)).substr(1).split("%"),s=0;s<o.length;s++)t.push(parseInt(o[s],16))}}return t}function F(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}function D(e){for(var t,n,r,i=[],o=0;o<e.length;o++)t=e.charCodeAt(o),n=t>>8,r=t%256,i.push(r),i.push(n);return i}function X(e){return z.toByteArray(e)}function P(e,t,n,r){for(var i=0;r>i&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function q(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}function G(e,t){J("number"==typeof e,"cannot write a non-number as a number"),J(e>=0,"specified a negative value for writing an unsigned value"),J(t>=e,"value is larger than maximum value for type"),J(Math.floor(e)===e,"value has a fractional component")}function W(e,t,n){J("number"==typeof e,"cannot write a non-number as a number"),J(t>=e,"value larger than maximum allowed value"),J(e>=n,"value smaller than minimum allowed value"),J(Math.floor(e)===e,"value has a fractional component")}function O(e,t,n){J("number"==typeof e,"cannot write a non-number as a number"),J(t>=e,"value larger than maximum allowed value"),J(e>=n,"value smaller than minimum allowed value")}function J(e,t){if(!e)throw new Error(t||"Failed assertion")}var z=e("base64-js"),R=e("ieee754");n.Buffer=i,n.SlowBuffer=i,n.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(n){return!1}}(),i.isEncoding=function(e){switch(String(e).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.isBuffer=function(e){return!(null===e||void 0===e||!e._isBuffer)},i.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=j(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=X(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},i.concat=function(e,t){if(J(M(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];var n;if("number"!=typeof t)for(t=0,n=0;n<e.length;n++)t+=e[n].length;var r=new i(t),o=0;for(n=0;n<e.length;n++){var s=e[n];s.copy(r,o),o+=s.length}return r},i.prototype.write=function(e,t,n,r){if(isFinite(t))isFinite(n)||(r=n,n=void 0);else{var i=r;r=t,t=n,n=i}t=Number(t)||0;var d=this.length-t;n?(n=Number(n),n>d&&(n=d)):n=d,r=String(r||"utf8").toLowerCase();var c;switch(r){case"hex":c=o(this,e,t,n);break;case"utf8":case"utf-8":c=s(this,e,t,n);break;case"ascii":c=a(this,e,t,n);break;case"binary":c=u(this,e,t,n);break;case"base64":c=f(this,e,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":c=l(this,e,t,n);break;default:throw new Error("Unknown encoding")}return c},i.prototype.toString=function(e,t,n){var r=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,n=void 0!==n?Number(n):n=r.length,n===t)return"";var i;switch(e){case"hex":i=p(r,t,n);break;case"utf8":case"utf-8":i=c(r,t,n);break;case"ascii":i=h(r,t,n);break;case"binary":i=g(r,t,n);break;case"base64":i=d(r,t,n);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=y(r,t,n);break;default:throw new Error("Unknown encoding")}return i},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,n,r){var o=this;if(n||(n=0),r||0===r||(r=this.length),t||(t=0),r!==n&&0!==e.length&&0!==o.length){J(r>=n,"sourceEnd < sourceStart"),J(t>=0&&t<e.length,"targetStart out of bounds"),J(n>=0&&n<o.length,"sourceStart out of bounds"),J(r>=0&&r<=o.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var s=r-n;if(100>s||!i._useTypedArrays)for(var a=0;s>a;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+s),t)}},i.prototype.slice=function(e,t){var n=this.length;if(e=C(e,n,0),t=C(t,n,n),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var r=t-e,o=new i(r,void 0,!0),s=0;r>s;s++)o[s]=this[s+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){return t||(J(void 0!==e&&null!==e,"missing offset"),J(e<this.length,"Trying to read beyond buffer length")),e>=this.length?void 0:this[e]},i.prototype.readUInt16LE=function(e,t){return b(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return b(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return w(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return w(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(J(void 0!==e&&null!==e,"missing offset"),J(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length)){var n=128&this[e];return n?-1*(255-this[e]+1):this[e]}},i.prototype.readInt16LE=function(e,t){return m(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return m(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return v(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return v(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return E(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return E(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return I(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return I(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(J(void 0!==e&&null!==e,"missing value"),J(void 0!==t&&null!==t,"missing offset"),J(t<this.length,"trying to write beyond buffer length"),G(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){B(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){B(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){A(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){A(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(J(void 0!==e&&null!==e,"missing value"),J(void 0!==t&&null!==t,"missing offset"),J(t<this.length,"Trying to write beyond buffer length"),W(e,127,-128)),t>=this.length||(e>=0?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){U(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){U(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){_(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){_(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){L(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){L(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){k(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){k(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(e||(e=0),t||(t=0),n||(n=this.length),"string"==typeof e&&(e=e.charCodeAt(0)),J("number"==typeof e&&!isNaN(e),"value is not a number"),J(n>=t,"end < start"),n!==t&&0!==this.length){J(t>=0&&t<this.length,"start out of bounds"),J(n>=0&&n<=this.length,"end out of bounds");for(var r=t;n>r;r++)this[r]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,r=0;t>r;r++)if(e[r]=N(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;n>t;t+=1)e[t]=this[t];return e.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var Y=i.prototype;i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=Y.get,e.set=Y.set,e.write=Y.write,e.toString=Y.toString,e.toLocaleString=Y.toString,e.toJSON=Y.toJSON,e.copy=Y.copy,e.slice=Y.slice,e.readUInt8=Y.readUInt8,e.readUInt16LE=Y.readUInt16LE,e.readUInt16BE=Y.readUInt16BE,e.readUInt32LE=Y.readUInt32LE,e.readUInt32BE=Y.readUInt32BE,e.readInt8=Y.readInt8,e.readInt16LE=Y.readInt16LE,e.readInt16BE=Y.readInt16BE,e.readInt32LE=Y.readInt32LE,e.readInt32BE=Y.readInt32BE,e.readFloatLE=Y.readFloatLE,e.readFloatBE=Y.readFloatBE,e.readDoubleLE=Y.readDoubleLE,e.readDoubleBE=Y.readDoubleBE,e.writeUInt8=Y.writeUInt8,e.writeUInt16LE=Y.writeUInt16LE,e.writeUInt16BE=Y.writeUInt16BE,e.writeUInt32LE=Y.writeUInt32LE,e.writeUInt32BE=Y.writeUInt32BE,e.writeInt8=Y.writeInt8,e.writeInt16LE=Y.writeInt16LE,e.writeInt16BE=Y.writeInt16BE,e.writeInt32LE=Y.writeInt32LE,e.writeInt32BE=Y.writeInt32BE,e.writeFloatLE=Y.writeFloatLE,e.writeFloatBE=Y.writeFloatBE,e.writeDoubleLE=Y.writeDoubleLE,e.writeDoubleBE=Y.writeDoubleBE,e.fill=Y.fill,e.inspect=Y.inspect,e.toArrayBuffer=Y.toArrayBuffer,e}}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")},{IrXUsu:5,"base64-js":3,buffer:2,ieee754:4}],3:[function(e,t,n){(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function n(e){var t=e.charCodeAt(0);return t===s?62:t===a?63:u>t?-1:u+10>t?t-u+26+26:l+26>t?t-l:f+26>t?t-f+26:void 0}function r(e){function t(e){f[d++]=e}var r,i,s,a,u,f;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=e.length;u="="===e.charAt(l-2)?2:"="===e.charAt(l-1)?1:0,f=new o(3*e.length/4-u),s=u>0?e.length-4:e.length;var d=0;for(r=0,i=0;s>r;r+=4,i+=3)a=n(e.charAt(r))<<18|n(e.charAt(r+1))<<12|n(e.charAt(r+2))<<6|n(e.charAt(r+3)),t((16711680&a)>>16),t((65280&a)>>8),t(255&a);return 2===u?(a=n(e.charAt(r))<<2|n(e.charAt(r+1))>>4,t(255&a)):1===u&&(a=n(e.charAt(r))<<10|n(e.charAt(r+1))<<4|n(e.charAt(r+2))>>2,t(a>>8&255),t(255&a)),f}function i(t){function n(t){return e.charAt(t)}function r(e){return n(e>>18&63)+n(e>>12&63)+n(e>>6&63)+n(63&e)}var i,o,s,a=t.length%3,u="";for(i=0,s=t.length-a;s>i;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],u+=r(o);switch(a){case 1:o=t[t.length-1],u+=n(o>>2),u+=n(o<<4&63),u+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],u+=n(o>>10),u+=n(o>>4&63),u+=n(o<<2&63),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="+".charCodeAt(0),a="/".charCodeAt(0),u="0".charCodeAt(0),f="a".charCodeAt(0),l="A".charCodeAt(0);t.toByteArray=r,t.fromByteArray=i}("undefined"==typeof n?this.base64js={}:n)}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{IrXUsu:5,buffer:2}],4:[function(e,t,n){(function(){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,f=u>>1,l=-7,d=n?i-1:0,c=n?-1:1,h=e[t+d];for(d+=c,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+d],d+=c,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+d],d+=c,l-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(h?-1:1);s+=Math.pow(2,r),o-=f}return(h?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,u,f=8*o-i-1,l=(1<<f)-1,d=l>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,g=r?1:-1,p=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+d>=1?c/u:c*Math.pow(2,1-d),t*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=g,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;e[n+h]=255&s,h+=g,s/=256,f-=8);e[n+h-g]|=128*p}}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{IrXUsu:5,buffer:2}],5:[function(e,t){(function(e){function n(){}var e=t.exports={};e.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=n,e.addListener=n,e.once=n,e.off=n,e.removeListener=n,e.removeAllListeners=n,e.emit=n,e.binding=function(){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(){throw new Error("process.chdir is not supported")}}).call(this,e("IrXUsu"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/browserify/node_modules/process")},{IrXUsu:5,buffer:2}]},{},[1])(1)});