(window.wpRapidSearchWidget=window.wpRapidSearchWidget||[]).push([[24],{690:function(e,n,t){"use strict";t.r(n),t.d(n,"BotKind",(function(){return s})),t.d(n,"BotdError",(function(){return c})),t.d(n,"collect",(function(){return l})),t.d(n,"default",(function(){return E})),t.d(n,"detect",(function(){return d})),t.d(n,"detectors",(function(){return g})),t.d(n,"load",(function(){return S})),t.d(n,"sources",(function(){return y}));var r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])})(e,n)};function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function o(e,n,t,r){return new(t||(t=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}s((r=r.apply(e,n||[])).next())}))}function a(e,n){var t,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(s){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(t=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]=5?"chromium":h(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===r.vendor.indexOf("Apple"),"getStorageUpdates"in r,"WebKitMediaKeys"in t])>=4?"webkit":h(["buildID"in navigator,"MozAppearance"in(null!==(n=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==n?n:{}),"onmozfullscreenchange"in t,"mozInnerScreenX"in t,"CSSMozDocumentRule"in t,"CanvasCaptureMediaStream"in t])>=4?"gecko":"unknown"}var y={android:function(){var e=b(),n="chromium"===e,t="gecko"===e;if(!n&&!t)return!1;var r=window;return h(["onorientationchange"in r,"orientation"in r,n&&!("SharedWorker"in r),t&&/android/i.test(navigator.appVersion)])>=2},browserKind:function(){var e,n=null===(e=navigator.userAgent)||void 0===e?void 0:e.toLowerCase();return v(n,"edg/")?"edge":v(n,"trident")||v(n,"msie")?"internet_explorer":v(n,"wechat")?"wechat":v(n,"firefox")?"firefox":v(n,"opera")||v(n,"opr")?"opera":v(n,"chrome")?"chrome":v(n,"safari")?"safari":"unknown"},browserEngineKind:b,documentFocus:function(){return void 0!==document.hasFocus&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){var e=navigator.appVersion;if(null==e)throw new c(-1,"navigator.appVersion is undefined");return e},rtt:function(){if(void 0===navigator.connection)throw new c(-1,"navigator.connection is undefined");if(void 0===navigator.connection.rtt)throw new c(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},windowSize:function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},pluginsLength:function(){if(void 0===navigator.plugins)throw new c(-1,"navigator.plugins is undefined");if(void 0===navigator.plugins.length)throw new c(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(void 0===navigator.plugins)throw new c(-1,"navigator.plugins is undefined");if(void 0===window.PluginArray)throw new c(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(e){if(e instanceof Error&&null!=e.stack)return e.stack.toString()}throw new c(-3,"errorTrace signal unexpected behaviour")},productSub:function(){var e=navigator.productSub;if(void 0===e)throw new c(-1,"navigator.productSub is undefined");return e},windowExternal:function(){if(void 0===window.external)throw new c(-1,"window.external is undefined");var e=window.external;if("function"!=typeof e.toString)throw new c(-2,"window.external.toString is not a function");return e.toString()},mimeTypesConsistent:function(){if(void 0===navigator.mimeTypes)throw new c(-1,"navigator.mimeTypes is undefined");for(var e=navigator.mimeTypes,n=Object.getPrototypeOf(e)===MimeTypeArray.prototype,t=0;t=3||t.push(n.languages);else if("string"==typeof n.languages){var i=n.languages;i&&t.push(i.split(","))}return t},notificationPermissions:function(){return o(this,void 0,void 0,(function(){var e,n;return a(this,(function(t){switch(t.label){case 0:if(void 0===window.Notification)throw new c(-1,"window.Notification is undefined");if(void 0===navigator.permissions)throw new c(-1,"navigator.permissions is undefined");if("function"!=typeof(e=navigator.permissions).query)throw new c(-2,"navigator.permissions.query is not a function");t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.query({name:"notifications"})];case 2:return n=t.sent(),[2,"denied"===window.Notification.permission&&"prompt"===n.state];case 3:throw t.sent(),new c(-3,"notificationPermissions signal unexpected behaviour");case 4:return[2]}}))}))},documentElementKeys:function(){if(void 0===document.documentElement)throw new c(-1,"document.documentElement is undefined");var e=document.documentElement;if("function"!=typeof e.getAttributeNames)throw new c(-2,"document.documentElement.getAttributeNames is not a function");return e.getAttributeNames()},functionBind:function(){if(void 0===Function.prototype.bind)throw new c(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){var e=window.process;if(void 0===e)throw new c(-1,"".concat("window.process is"," undefined"));if(e&&"object"!=typeof e)throw new c(-3,"".concat("window.process is"," not an object"));return e},distinctiveProps:function(){var e,n,t=((e={})[s.Awesomium]={window:["awesomium"]},e[s.Cef]={window:["RunPerfTest"]},e[s.CefSharp]={window:["CefSharp"]},e[s.CoachJS]={window:["emit"]},e[s.FMiner]={window:["fmget_targets"]},e[s.Geb]={window:["geb"]},e[s.NightmareJS]={window:["__nightmare","nightmare"]},e[s.Phantomas]={window:["__phantomas"]},e[s.PhantomJS]={window:["callPhantom","_phantom"]},e[s.Rhino]={window:["spawn"]},e[s.Selenium]={window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},e[s.WebDriverIO]={window:["wdioElectron"]},e[s.WebDriver]={window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},e[s.HeadlessChrome]={window:["domAutomation","domAutomationController"]},e),r={},i=p(window),o=[];for(n in void 0!==window.document&&(o=p(window.document)),t){var a=t[n];if(void 0!==a){var c=void 0!==a.window&&m.apply(void 0,u([i],a.window,!1)),d=!(void 0===a.document||!o.length)&&m.apply(void 0,u([o],a.document,!1));r[n]=c||d}}return r}},_=function(){function e(){this.components=void 0,this.detections=void 0}return e.prototype.getComponents=function(){return this.components},e.prototype.getDetections=function(){return this.detections},e.prototype.detect=function(){if(void 0===this.components)throw new Error("BotDetector.detect can't be called before BotDetector.collect");var e=d(this.components,g),n=e[0],t=e[1];return this.detections=n,t},e.prototype.collect=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return e=this,[4,l(y)];case 1:return e.components=n.sent(),[2,this.components]}}))}))},e}();function S(e){var n=(void 0===e?{}:e).monitoring,t=void 0===n||n;return o(this,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return t&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/botd/v".concat("1.9.1","/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),[4,(e=new _).collect()];case 1:return n.sent(),[2,e]}}))}))}var E={load:S}}}]);