var crypt=require("crypto");module.exports.linebrk=function(r,n){for(var t="",e=0;e+n<r.length;)t+=r.substring(e,e+n)+"\n",e+=n;return t+r.substring(e,r.length)},module.exports.detectEnvironment=function(){return"undefined"==typeof window||!window||process&&"node"===process.title?"node":"browser"},module.exports.get32IntFromBuffer=function(r,n){n=n||0;var t;if((t=r.length-n)>0){if(t>=4)return r.readUInt32BE(n);for(var e=0,o=n+t,i=0;o>n;o--,i+=2)e+=r[o-1]*Math.pow(16,i);return e}return NaN},module.exports._={isObject:function(r){var n=typeof r;return!!r&&("object"==n||"function"==n)},isString:function(r){return"string"==typeof r||r instanceof String},isNumber:function(r){return"number"==typeof r||!isNaN(parseFloat(r))&&isFinite(r)},omit:function(r,n){var t={};for(var e in r)r.hasOwnProperty(e)&&e!==n&&(t[e]=r[e]);return t}},module.exports.trimSurroundingText=function(r,n,t){var e=0,o=r.length,i=r.indexOf(n);i>=0&&(e=i+n.length);var u=r.indexOf(t,i);return u>=0&&(o=u),r.substring(e,o)};