(function(){function glIsEmpty(t){return t==null||t==null||t.length==0}function glDeepcopy(t){try{return typeof t=="object"&&t!==null?JSON.parse(JSON.stringify(t)):t}catch{return t}}const fetchWrapper=async(t,n={})=>{const{method:o}=n,r={"Content-Type":"application/x-www-form-urlencoded"},i={method:o,headers:r,keepalive:!0,credentials:"include"},u=await fetch(t,i);return!u.ok&&new Error("服务器错误: "+u.status),u.text()};function glGetMasterDomain(){const t=document.location.hostname;return["localhost","127.0.0.1"].includes(t)?t:"."+t.split(".").slice(-2).join(".")}function glGetCookie(t){if(glIsEmpty(t))return"";const n=document.cookie.split(";").map(o=>o.trim());for(let o=0;oo.expiration?(localStorage.removeItem(t),null):o.value}catch{return null}}function glGetUTCTime(){var t=new Date().getTimezoneOffset(),n=t<0?"+":"-";return t=Math.abs(t),"UTC"+n+(t/60|0)}function glGetCurTime(){var t=new Date,n=t.getFullYear(),o=t.getMonth()+1,r=t.getDate(),i=t.getHours(),u=t.getMinutes(),l=t.getSeconds();return n+"-"+o+"-"+r+" "+i+":"+u+":"+l}function glLoad(t){document.readyState=="complete"||document.readyState!="loading"&&!document.documentElement.doScroll?t():document.addEventListener("DOMContentLoaded",t)}function glGuid(){var t=new Date().getTime(),n=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){var r=Math.random()*16;return t>0?(r=(t+r)%16|0,t=Math.floor(t/16)):(r=(n+r)%16|0,n=Math.floor(n/16)),(o==="x"?r:r&3|8).toString(16)})}function setEncodeURIComponent(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(n){return"%"+n.charCodeAt(0).toString(16)})}function objectToUrlParams(t){return Object.entries(t).map(([n,o])=>{let r=o?setEncodeURIComponent(o):"";return setEncodeURIComponent(n)+"="+r}).join("&")}function glGetReferrer(t=window){return t.document.referrer}function glGetUrl(t=window){return t.location.href}function glGetDomain(t=window){return t.location.host}function glGetWindowScreen(t=window){return t.screen.width+"x"+t.screen.height}function isNotIframe(){return window.self===window.top}function a$2(t){const n="https://track.bxtag.com/tecdo/cm/adx";{const o=glGetCookie("_bx_coo_map");if(!glIsEmpty(o))if(new Date().getTime()>o*1)glDelCookie("_bx_coo_map");else return;glLoad(function(){setTimeout(function(){const r=new Image;r.src=n;const i=new Date;i.setDate(i.getDate()+90);const u=i.getTime();glSetCookie("_bx_coo_map",u,u)},0)})}}const a$1={VERSION:"3.0.0",dataLayer:{pixelId:"",mode:"production",eventList:[],sparkDuration:365,trackDuration:2592e6,trackFlatReset:!0,trackUseCookie:!0},bxFnList:[]};Object.defineProperty(window,"bxGlobal",{writable:!1,value:a$1});function b$3(){function t(){const r=localStorage.getItem("_bx_unique")+"";return!glIsEmpty(r)&&typeof r=="string"&&r.includes("bx")?r:"bx"+glGuid()}let n=t();function o(){localStorage.setItem("_bx_unique",n)}return o(),function(){return isNotIframe()?(o(),n):(n!==t()&&(n=t(),o()),n)}}const glGetBxUnique=b$3();function c$3(t){const{sparkDuration:n}=t.dataLayer,o="bx_unid";function r(){let l=glGetCookie(o);return!glIsEmpty(l)&&typeof l=="string"&&l.includes("bx")?l:"bx"+glGuid()}let i=r();function u(){const l=new Date().getTime()+n*24*60*60*1e3;glSetCookie(o,i,l)}return u(),function(){return isNotIframe()?(u(),i):(i!==r()&&(i=r(),u()),i)}}const glGetBxUuid=c$3(a$1);function b$2(t){const n=new URLSearchParams(t),o=n.get("utm_source");if(!glIsEmpty(o)){const l=n.get("utm_medium"),m=n.get("utm_campaign"),s=n.get("utm_term"),x=n.get("utm_content"),p=n.get("bid_id"),y=n.get("ad_id");return{utmSource:o,utmMedium:l,utmCampaign:m,utmTerm:s,utmContent:x,bidId:p,adId:y}}if(!glIsEmpty(n.get("f"))){const l=n.get("f"),[m,s,x]=l.split("|");return{utmSource:s,utmMedium:x}}const r=n.get("gclid");if(!glIsEmpty(r))return{utmSource:"google"};const i=n.get("fbclid");if(!glIsEmpty(i))return{utmSource:"facebook"};const u=n.get("msclkid");return glIsEmpty(u)?null:{utmSource:"bing"}}function c$2(t){try{const n=t.document.referrer;if(glIsEmpty(n))return null;const o=new URL(n),{hostname:r,search:i}=o;return r.includes("google")?{utmSource:"google"}:r.includes("youtube")?{utmSource:"youtube"}:r.includes("facebook")?{utmSource:"facebook"}:r.includes("tiktok")?{utmSource:"tiktok"}:r.includes("bing")?{utmSource:"bing"}:r.includes("pinterest")?{utmSource:"pinterest"}:r.includes("twitter")?{utmSource:"twitter"}:r.includes("criteo")?{utmSource:"criteo"}:r.includes("yandex")?{utmSource:"yandex"}:r.includes("instagram")?{utmSource:"instagram"}:glIsEmpty(i)?null:b$2(i)}catch{return null}}function d(t){try{const n=b$2(t.location.search);if(!glIsEmpty(n))return n;const o=c$2(t);return glIsEmpty(o)?null:o}catch{return null}}function e(t){try{let n;{const o=glGetCookie(t);o&&(n=JSON.parse(o))}return n}catch{return null}}function f(t,n){const{trackDuration:o}=a$1.dataLayer,r=new Date().getTime()+o;glSetCookie(t,JSON.stringify(n),r)}function g(t){const n=window,o="bx_track",r=d(n);if(glIsEmpty(r)){const i=e(o);if(glIsEmpty(i))return null;const{trackFlatReset:u}=a$1.dataLayer;return u&&t==="init"&&f(o,i),i}else return f(o,r),r}function a(){try{let m=function(s){var x,p,y="",S;for(s+="",x=0,p=s.length;x{if(!glIsEmpty(h))try{eval(h)}catch(t){}}).catch(t=>{})}};c$1.bxFnList.push(d)}glGetBxUnique(),glGetBxUuid(),isNotIframe()&&(window.addEventListener("unload",function(){glGetBxUnique(),glGetBxUuid()}),document.addEventListener("click",function(){glGetBxUnique(),glGetBxUuid()}),document.addEventListener("visibilitychange",function(){glGetBxUnique(),glGetBxUuid()})),g("init"),b(a$1),function(){try{a$2(a$1);const t=window.bxtag;t.invokeFunc=function(o,r,i){if(a$1.dataLayer.eventList.push(arguments),!!o){if(o=o.toLowerCase(),o=="init"){for(const u of a$1.bxFnList)if(u.init){const l=glDeepcopy(i);u.init(r,l)}}else if(o=="event"){for(const u of a$1.bxFnList)if(u.track){const l=glDeepcopy(i);u.track(r,l)}}}};const n=t.qu.slice();for(const o of n)t.invokeFunc.apply(t,o)}catch(t){""+t}}()})();