(function(){function S(a){return a.reduce(function(u,s){return u+(s?1:0)},0)}function m(a,u){return a.indexOf(u)!==-1}function P(a){return Object.getOwnPropertyNames(a)}function E(a,...u){for(const s of u)if(typeof s=="string"){if(m(a,s))return!0}else if(a.find(C=>s.test(C))!=null)return!0;return!1}const o={Awesomium:"awesomium",Cef:"cef",CefSharp:"cefsharp",CoachJS:"coachjs",Electron:"electron",FMiner:"fminer",Geb:"geb",NightmareJS:"nightmarejs",Phantomas:"phantomas",PhantomJS:"phantomjs",Rhino:"rhino",Selenium:"selenium",Sequentum:"sequentum",SlimerJS:"slimerjs",WebDriverIO:"webdriverio",WebDriver:"webdriver",HeadlessChrome:"headless_chrome",Unknown:"unknown"},g={Unknown:"unknown",Chrome:"chrome",Firefox:"firefox",Opera:"opera",Safari:"safari",WeChat:"wechat",Edge:"edge"},w={Chromium:"chromium",Gecko:"gecko",Webkit:"webkit",Unknown:"unknown"};class c extends Error{constructor(u,s){super(s),this.state=u,this.name="BotdError",Object.setPrototypeOf(this,c.prototype)}}function A(){var s;const a=window,u=navigator;return S(["webkitPersistentStorage"in u,"webkitTemporaryStorage"in u,u.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in a,"BatteryManager"in a,"webkitMediaStream"in a,"webkitSpeechGrammar"in a])>=5?w.Chromium:S(["ApplePayError"in a,"CSSPrimitiveValue"in a,"Counter"in a,u.vendor.indexOf("Apple")===0,"getStorageUpdates"in u,"WebKitMediaKeys"in a])>=4?w.Webkit:S(["buildID"in navigator,"MozAppearance"in(((s=document.documentElement)==null?void 0:s.style)??{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4?w.Gecko:w.Unknown}async function D(){var a;try{class u{constructor(){this.components=void 0,this.detections=void 0}getComponents(){return this.components}getDetections(){return this.detections}initSource(){return{browserEngineKind:A,android:function(){const e=A(),n=e===w.Chromium,t=e===w.Gecko,i=window,r=navigator;return n?S([!("SharedWorker"in i),r.connection&&"ontypechange"in r.connection,!("sinkId"in new Audio)])>=2:t?S(["onorientationchange"in i,"orientation"in i,/android/i.test(r.appVersion)])>=2:!1},browserKind:function(){var n;const e=(n=navigator.userAgent)==null?void 0:n.toLowerCase();return m(e,"edg/")?g.Edge:m(e,"firefox")?g.Firefox:m(e,"opera")||m(e,"opr")?g.Opera:m(e,"chrome")?g.Chrome:/iphone|ipad|ipod/.test(e)||m(e,"safari")?g.Safari:g.Unknown},webview:function(){return"web"},userAgent:function(){return navigator.userAgent},appVersion:function(){var e=navigator.appVersion;if(e==null)throw new c(-1,"navigator.appVersion is undefined");return e},connection:function(){if(navigator.connection){const{downlink:e,effectiveType:n,rtt:t}=navigator.connection||{};return{downlink:e,effectiveType:n,rtt:t}}return null},screen:function(){return{availHeight:window.screen.availHeight,availWidth:window.screen.availWidth,availLeft:window.screen.availLeft,availTop:window.screen.availTop,height:window.screen.height,width:window.screen.width,colorDepth:window.screen.colorDepth}},windowSize:function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},userAgentData:async function(){try{return"userAgentData"in navigator?await navigator.userAgentData.getHighEntropyValues(["architecture","model","platformVersion","fullVersionList"]):!1}catch{throw new c(-1,"userAgentData is undefined")}},hardwareConcurrency:async function(){return navigator.hardwareConcurrency||0},deviceMemory:async function(){return navigator.deviceMemory||0},maxTouchPoints:async function(){return navigator.maxTouchPoints||0},devicePixelRatio:async function(){return window.devicePixelRatio||null},errorTrace:function(){try{null[0]()}catch(e){if(e instanceof Error&&e.stack!=null)return e.stack.toString()}throw new c(-3,"errorTrace signal unexpected behaviour")},windowExternal:function(){if(window.external===void 0)throw new c(-1,"window.external is undefined");var e=window.external;if(typeof e.toString!="function")throw new c(-2,"window.external.toString is not a function");return e.toString()},evalLength:function(){return eval.toString().length},webGL:function(){var e=document.createElement("canvas");if(typeof e.getContext!="function")throw new c(-2,"HTMLCanvasElement.getContext is not a function");var n=e.getContext("webgl");if(n===null)throw new c(-4,"WebGLRenderingContext is null");if(typeof n.getParameter!="function")throw new c(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:n.getParameter(n.VENDOR),renderer:n.getParameter(n.RENDERER)}},webDriver:function(){return navigator.webdriver===!0||[!0,void 0,null].includes(navigator.hasOwnProperty("webdriver"))},notificationPermissions:async function(){if(window.Notification===void 0)throw new c(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new c(-1,"navigator.permissions is undefined");const{permissions:e}=navigator;if(typeof e.query!="function")throw new c(-2,"navigator.permissions.query is not a function");try{const n=await e.query({name:"notifications"});return window.Notification.permission==="denied"&&n.state==="prompt"}catch{throw new c(-3,"notificationPermissions signal unexpected behaviour")}},documentElementKeys:function(){if(document.documentElement===void 0)throw new c(-1,"document.documentElement is undefined");var e=document.documentElement;if(typeof e.getAttributeNames!="function")throw new c(-2,"document.documentElement.getAttributeNames is not a function");return e.getAttributeNames()},process:function(){var e=window.process,n="window.process is";if(e===void 0)throw new c(-1,"".concat(n," undefined"));if(e&&typeof e!="object")throw new c(-3,"".concat(n," not an object"));return e},distinctiveProps:function(){const e={[o.Awesomium]:{window:["awesomium"]},[o.Cef]:{window:["RunPerfTest"]},[o.CefSharp]:{window:["CefSharp"]},[o.CoachJS]:{window:["emit"]},[o.FMiner]:{window:["fmget_targets"]},[o.Geb]:{window:["geb"]},[o.NightmareJS]:{window:["__nightmare","nightmare"]},[o.Phantomas]:{window:["__phantomas"]},[o.PhantomJS]:{window:["callPhantom","_phantom"]},[o.Rhino]:{window:["spawn"]},[o.Selenium]:{window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},[o.WebDriverIO]:{window:["wdioElectron"]},[o.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"]},[o.HeadlessChrome]:{window:["domAutomation","domAutomationController"]}};let n;const t={},i=P(window);let r=[];window.document!==void 0&&(r=P(window.document));for(n in e){const l=e[n];if(l!==void 0){const f=l.window===void 0?!1:E(i,...l.window),b=l.document===void 0||!r.length?!1:E(r,...l.document);t[n]=f||b}}return t},browserAPI:function(){const e={};return["chrome","webkitResolveLocalFileSystemURL","BatteryManager","webkitMediaStream","webkitSpeechGrammar","RTCEncodedAudioFrame","safari","ApplePayError","CSSPrimitiveValue","Counter","WebKitMediaKeys","MediaSource"].forEach(i=>{e[i]=i in window}),["usb","connection","bluetooth","webkitPersistentStorage","webkitTemporaryStorage"].forEach(i=>{e[i]=i in navigator}),e},isIframe:function(){return window.self!==window.top}}}initDetectors(){return{detectBotReptile({userAgent:e}){return/bot|googlebot|bingbot|slurp|duckduckbot|baiduspider|yandexbot|facebot|ia_archiver|crawler|spider|robot|crawling/i.test(e)},detectAppVersion:function({appVersion:e}){if(e.state!==0)return!1;if(/headless/i.test(e.value))return o.HeadlessChrome;if(/electron/i.test(e.value))return o.Electron;if(/slimerjs/i.test(e.value))return o.SlimerJS},detectUserAgent:function({userAgent:e}){if(e.state!==0)return!1;if(/PhantomJS/i.test(e.value))return o.PhantomJS;if(/Headless/i.test(e.value))return o.HeadlessChrome;if(/Electron/i.test(e.value))return o.Electron;if(/slimerjs/i.test(e.value))return o.SlimerJS},detectDocumentAttributes:function({documentElementKeys:e}){if(e.state!==0)return!1;if(E(e.value,"selenium","webdriver","driver"))return o.Selenium},detectErrorTrace:function({errorTrace:e}){return e.state===0&&(/PhantomJS/i.test(e.value)?o.PhantomJS:void 0)},detectEvalLengthInconsistency:function({evalLength:e,browserKind:n,browserEngineKind:t}){if(e.state!==0||n.state!==0||t.state!==0)return;const i=e.value;return t.value===w.Unknown?!1:i===37&&!m([w.Webkit,w.Gecko],t.value)||i===33&&!m([w.Chromium],t.value)},detectNotificationPermissions:function({notificationPermissions:e,browserKind:n}){return n.state===0&&n.value==="chrome"&&(e.state===0&&e.value?o.HeadlessChrome:void 0)},detectProcess:function({process:e}){var n;if(e.state!==0)return!1;if(e.value.type==="renderer"||((n=e.value.versions)==null?void 0:n.electron)!=null)return o.Electron},detectWebDriver:function({webDriver:e}){if(e.state!==0)return!1;if(e.value)return o.HeadlessChrome},detectWebGL:function({webGL:e}){if(e.state===0){const{vendor:n,renderer:t}=e.value;if(n=="Brian Paul"&&t=="Mesa OffScreen")return o.HeadlessChrome}},detectWindowExternal:function({windowExternal:e}){if(e.state!==0)return!1;if(/Sequentum/i.test(e.value))return o.Sequentum},detectWindowSize:function({windowSize:e,screen:n}){if(e.state!==0||n.state!==0)return!1;const{outerWidth:t,outerHeight:i,innerWidth:r,innerHeight:l}=e.value,{availHeight:f,availWidth:b,height:k,width:y}=n.value;if([t,i,r,l,f,b,k,y].some(W=>W<100))return"sizes are too small";if(i>l*1.2)return"Height are too small";if(t>r*1.2)return"Widt are too small"},detectDevice:function({hardwareConcurrency:e,userAgent:n}){if(e.state!==0||n.state!==0)return!1;if(n.value.includes("iPhone")&&e.value>16||e.value>64)return o.HeadlessChrome},detectDistinctiveProperties:function({distinctiveProps:e}){if(e.state!==0)return!1;var n,t=e.value;for(n in t)if(t[n])return n},detectSafari({browserKind:e,browserEngineKind:n,browserAPI:t,userAgentData:i}){if(e.value!==g.Safari)return;const r=[];n.value===w.Chromium&&r.push(w.Chromium);const l=t.value;return l.chrome&&r.push("chrome"),l.connection&&r.push("connection"),i.value&&r.push("userAgentData"),l.usb&&r.push("usb"),l.bluetooth&&r.push("bluetooth"),"virtualKeyboard"in navigator&&r.push("virtualKeyboard"),!window.ApplePaySession&&r.push("No-ApplePaySession"),r.length>1?r:void 0}}}async HandleCollect(){const d=this.initSource(),e={},n=Object.keys(d);return await Promise.all(n.map(async t=>{const i=d[t];try{e[t]={value:await i(),state:0}}catch(r){r instanceof c?e[t]={state:r.state,error:r.name+": "+r.message}:e[t]={state:-3,error:r instanceof Error?r.name+": "+r.message:String(r)}}})),this.components=e,this.components}HandleDetect(){if(this.components===void 0)throw new Error("BotDetector.detect can't be called before BotDetector.collect");function d(i,r){const l={};let f={bot:!1,botKinds:[]};for(const b in r){const k=r[b],y=k(i);let p={bot:!1};typeof y=="string"?p={bot:!0,botKind:y}:Array.isArray(y)?p={bot:!0,botKind:y.join("_")}:y&&(p={bot:!0,botKind:o.Unknown}),l[b]=p,p.bot&&(f.bot=p.bot,f.botKinds.push({fn:b,botKind:p.botKind}))}return[l,f]}const e=this.initDetectors(),[n,t]=d(this.components,e);return this.detections=n,t}browserParser(d){const e=["browserEngineKind","browserKind","isIframe","windowSize","screen","hardwareConcurrency","deviceMemory","maxTouchPoints","devicePixelRatio","userAgentData"],n=this.components||{},t=e.reduce((i,r)=>{var f;const l=n[r]||{};return((f=n[r])==null?void 0:f.state)===0?i[r]=l.value:i[r]=null,i},{});return t.detector=d,JSON.stringify(t)}}const s=new u;await s.HandleCollect();const x=s.HandleDetect(),C=x.bot?1:2,_=s.browserParser(x.botKinds),h=(a=navigator==null?void 0:navigator.connection)==null?void 0:a.rtt;return{eventClick:C,browserBrand:_,sp:[null,void 0].includes(h)?null:h.toString()}}catch(u){return{eventClick:2,browserBrand:u.name+": "+u.message,sp:null}}}(function(){const a=navigator.userAgent;if(/bot|googlebot|bingbot|slurp|duckduckbot|baiduspider|yandexbot|facebot|ia_archiver|crawler|spider|robot|crawling/i.test(a))return;const s=window,x=s.bxtag;if(!x)return console.log("Error No pixel found for bxtag");Object.defineProperty(s,"bxtag",{value:s.bxtag,writable:!1,configurable:!1});const C=async(v,d={})=>{const{method:e}=d,n={"Content-Type":"application/x-www-form-urlencoded"},t={method:e,headers:n,keepalive:!0,credentials:"include"},i=await fetch(v,t);return!i.ok&&new Error("服务器错误: "+i.status),i.text()};function _(v){const d=s.document.createElement("script");d.async=!0,d.src="https://pixel.bxtag.com/tag/"+v+".js?",d.onerror=function(n){!["brainx","X-HOSHFA6OXNIO_v1"].includes(v)&&_("brainx")};const e=s.document.getElementsByTagName("script")[0];e.parentNode.insertBefore(d,e)}let h="";(async()=>{try{const v=new Date().getTime(),d=x.qu.slice().find(t=>t[0]==="init");h=d?d[1]:null,x.pixelId=h;async function e(){const{eventClick:t,sp:i,browserBrand:r}=await D();x.base_data={eventClick:t,sp:i,browserBrand:r}}e(),window.addEventListener("resize",async()=>{e()});const n=await C("https://event.bxtag.com/v?t="+v+"&pixelId="+h,{method:"GET"});if(n==="1"&&h){const t=""+h;if(/^X-[A-Za-z0-9]{10,}$/.test(t)||/^[0-9]{14}$/.test(t)){const i=t+"_v"+n;_(i)}else _("brainx")}else return}catch{_("brainx")}})()})()})();