!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.WhichBrowser=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&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}for(var i="function"==typeof require&&require,o=0;o0){var operator="=",compare=null;if(1==arguments.length&&(compare=new Version({value:arguments[0]})),arguments.length>=2&&(operator=arguments[0],compare=new Version({value:arguments[1]})),compare){var v1="",v2="";switch(compare.major&&this.major&&(v1+=this.major,v2+=compare.major,compare.minor&&this.minor&&(v1+="."+("0000"+this.minor).slice(-4),v2+="."+("0000"+compare.minor).slice(-4),compare.revision&&this.revision&&(v1+=("0000"+this.revision).slice(-4),v2+=("0000"+compare.revision).slice(-4)))),v1=parseFloat(v1),v2=parseFloat(v2),operator){case"<":valid=v2>v1;break;case"<=":valid=v2>=v1;break;case"=":valid=v1==v2;break;case">":valid=v1>v2;break;case">=":valid=v1>=v2}}return valid}return!1},valueOf:function(){return parseFloat(""+this.major+"."+("0000"+this.minor).slice(-4)+("0000"+this.revision).slice(-4))},toJSON:function(){var o={value:this.toString(),details:this.details,hidden:this.hidden,original:this.original,major:this.major,minor:this.minor,build:this.build,revision:this.revision};return this.type&&(o.type=this.type),this.alias&&(o.alias=this.alias),this.nickname&&(o.nickname=this.nickname),o},toString:function(){if(this.alias)return this.alias;var version="";if(this.nickname&&(version+=this.nickname+" "),this.major||this.minor){var v=[];if(v.push(this.major),""!==this.minor&&null!==this.minor&&v.push(this.minor),""!==this.revision&&null!==this.revision&&v.push(this.revision),""===this.type&&this.build&&v.push(this.build),this.details<0&&v.splice(this.details,0-this.details),this.details>0&&v.splice(this.details,v.length-this.details),!this.builds)for(var i=0;i999&&(v.splice(i,1),i--);version+=v.join("."),""!==this.type&&(version+=this.type[0]+(this.build?this.build:""))}return version}},module.exports=Version},{}],9:[function(require,module,exports){require("./Polyfills");var Browser=require("./Browser"),Engine=require("./Engine"),Os=require("./Os"),Device=require("./Device"),Family=require("./Family"),Using=require("./Using"),Version=require("./Version"),WhichBrowser=function(){this.initialize.apply(this,arguments)};WhichBrowser.prototype={initialize:function(options){this.options={},this.browser = new Browser({ channel: "Dev", stock: false, hidden: false, mode: "", type: "browser", name: "Chrome", version: new Version({ value: "70.0.3538.102", hidden: false }) }); this.engine = new Engine({ name: "Blink" }); this.os = new Os({ hidden: false, name: "Windows", version: new Version({ value: "10.0", hidden: false, alias: "10" }) }); this.device = new Device({ type: "desktop", subtype: "", identified: 0, generic: true, hidden: false }); this.camouflage = false; this.features = ["webkit","chrome"]; },a:function(s){return(/^[aeiou]/i.test(s)?"an ":"a ")+s},isX:function(){var valid=!0,x=arguments[0];return arguments.length>=2&&(valid=valid&&this[x].name==arguments[1]),arguments.length>=4&&this[x].version&&valid&&(valid=valid&&this[x].version.is(arguments[2],arguments[3])),valid},isBrowser:function(){var a=Array.prototype.slice.call(arguments);return a.unshift("browser"),this.isX.apply(this,a)},isEngine:function(){var a=Array.prototype.slice.call(arguments);return a.unshift("engine"),this.isX.apply(this,a)},isOs:function(){var a=Array.prototype.slice.call(arguments);return a.unshift("os"),this.isX.apply(this,a)},isDevice:function(d){return this.device.series==d||this.device.model==d},isType:function(){for(var valid=!1,a=0;a