PageSourceSearch

https://sgnewres.wechat.com/t/wx_fed/base/mmspamwechatsafetycenter/res/_nuxt/CHZcrTbg.js

js wechat.com collected 2026-09-24 06:43:28 UTC 40,571 bytes, 1 lines download raw bytes

1var Qe=Object.defineProperty,Xe=Object.defineProperties;var et=Object.getOwnPropertyDescriptors;var re=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var ke=(n,e,s)=>e in n?Qe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[e]=s,K=(n,e)=>{for(var s in e||(e={}))Se.call(e,s)&&ke(n,s,e[s]);if(re)for(var s of re(e))Le.call(e,s)&&ke(n,s,e[s]);return n},Q=(n,e)=>Xe(n,et(e));var fe=(n,e)=>{var s={};for(var o in n)Se.call(n,o)&&e.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&re)for(var o of re(n))e.indexOf(o)<0&&Le.call(n,o)&&(s[o]=n[o]);return s};var le=(n,e,s)=>new Promise((o,t)=>{var l=V=>{try{u(s.next(V))}catch(f){t(f)}},i=V=>{try{u(s.throw(V))}catch(f){t(f)}},u=V=>V.done?o(V.value):Promise.resolve(V.value).then(l,i);u((s=s.apply(n,e)).next())});import{d as ee,h as d,l as w,j as _,N as de,x as I,c as C,F as q,m as X,t as j,g as a,y as B,O as me,z as Me,L as tt,J as nt,P as st,w as z,r as S,o as J,Q as lt,R as ot,K as Ae,B as He,I as at,u as te,k as N,S as $e,T as it,i as rt,U as De,V as ct,b as Pe,W as ve,D as he,X as ut,Y as Vt,Z as ft,_ as Te,$ as Ie,a0 as dt,a1 as vt,a2 as ze,a3 as Ee,a4 as ht,s as pt,a5 as mt,a6 as gt,a7 as wt,a8 as yt,e as G,f as Y,v as ue,a as xt,a9 as bt,q as _t,aa as Ct,ab as Ne,ac as Be,ad as ce,M as kt,ae as St}from"./CtTNhdIR.js";const Lt={key:0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$t={key:1,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pt={key:2,width:"28",height:"14",viewBox:"0 0 28 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tt={key:3,class:"weui-icon-outlined-search !h-full !w-full"},je=ee({__name:"MyIcon",props:{type:{},disableTheme:{type:Boolean},hoverable:{type:Boolean}},setup(n){return(e,s)=>(d(),w("div",{class:I({"hover-able":e.type!=="down"&&e.hoverable!==!1,"text-black":!e.disableTheme,"dark:text-white":!e.disableTheme,flex:!0})},[e.type==="fold"?(d(),w("svg",Lt,s[0]||(s[0]=[_("g",{opacity:"0.9"},[_("path",{d:"M3.5 5.48366C3.5 5.03263 3.86563 4.66699 4.31667 4.66699H23.6833C24.1344 4.66699 24.5 5.03263 24.5 5.48366V6.41699C24.5 6.48143 24.4478 6.53366 24.3833 6.53366H3.61667C3.55223 6.53366 3.5 6.48143 3.5 6.41699V5.48366Z",fill:"currentColor","fill-opacity":"0.9"}),_("rect",{x:"4.0835",y:"13.0674",width:"19.8333",height:"1.86667",fill:"currentColor","fill-opacity":"0.9"}),_("path",{d:"M3.5 21.5835C3.5 21.519 3.55223 21.4668 3.61667 21.4668H24.3833C24.4478 21.4668 24.5 21.519 24.5 21.5835V22.5168C24.5 22.9678 24.1344 23.3335 23.6833 23.3335H4.31667C3.86564 23.3335 3.5 22.9678 3.5 22.5168V21.5835Z",fill:"currentColor","fill-opacity":"0.9"})],-1)]))):e.type==="close"?(d(),w("svg",$t,s[1]||(s[1]=[_("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9985 15.2369L6.48499 22.7489L5.24768 21.5114L12.7609 13.9996L5.24658 6.4866L6.48391 5.24905L13.9985 12.7622L21.516 5.24609L22.7533 6.48365L15.236 13.9996L22.7534 21.5156L21.5161 22.7532L13.9985 15.2369Z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]))):e.type==="down"?(d(),w("svg",Pt,s[2]||(s[2]=[_("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20.3221 2.86328L21.5596 4.10072L14.8175 10.8428C14.3624 11.2979 13.6285 11.3019 13.1693 10.8428L6.42725 4.10072L7.66468 2.86328L13.9934 9.19201L20.3221 2.86328Z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]))):e.type==="search"?(d(),w("span",Tt)):de(e.$slots,"default",{key:4})],2))}}),It={key:0},Et=ee({__name:"HighlightText",props:{text:{},highlightText:{},autoOffset:{type:Boolean,default:!1}},setup(n){const e=n,s=C(()=>{if(!e.text||!e.highlightText)return[];let o;const t=e.text.toLowerCase().indexOf(e.highlightText.toLowerCase());return t!==-1?(o=[{content:e.text.substring(0,t),isHighlight:!1},{content:e.highlightText,isHighlight:!0},{content:e.text.substring(t+e.highlightText.length),isHighlight:!1}],e.autoOffset&&t>20&&(o[0].content="...")):o=[{content:e.text,isHighlight:!1}],o});return(o,t)=>o.text&&o.highlightText?(d(),w("span",It,[(d(!0),w(q,null,X(a(s),l=>(d(),w("span",{key:"".concat(l.content).concat(l.isHighlight),class:I(l.isHighlight?"font-medium text-[var(--weui-BRAND)]":void 0)},j(l.content),3))),128))])):B("",!0)}}),qe=()=>{const n=()=>{document.documentElement.style.overflow="hidden",document.documentElement.style.height="100%",document.documentElement.style.width="100%",document.documentElement.style.position="fixed"},e=()=>{document.documentElement.style.overflow="",document.documentElement.style.height="",document.documentElement.style.width="",document.documentElement.style.position=""};return me(()=>{e()}),Me(()=>{e()}),{enableDocumentOverflow:e,disableDocumentOverflow:n}};function ge(n){return tt()?(nt(n),!0):!1}function Nt(n){let e=0,s,o;const t=()=>{e-=1,o&&e<=0&&(o.stop(),s=void 0,o=void 0)};return(...l)=>(e+=1,s||(o=st(!0),s=o.run(()=>n(...l))),ge(t),s)}function oe(n){return typeof n=="function"?n():a(n)}const Bt=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Ft=n=>typeof n!="undefined",Rt=Object.prototype.toString,Ot=n=>Rt.call(n)==="[object Object]",pe=()=>{};function Wt(n,e){function s(...o){return new Promise((t,l)=>{Promise.resolve(n(()=>e.apply(this,o),{fn:e,thisArg:this,args:o}
1)).then(t).catch(l)})}return s}const Mt=n=>n();function At(n,e={}){let s,o,t=pe;const l=u=>{clearTimeout(u),t(),t=pe};return u=>{const V=oe(n),f=oe(e.maxWait);return s&&l(s),V<=0||f!==void 0&&f<=0?(o&&(l(o),o=null),Promise.resolve(u())):new Promise((r,p)=>{t=e.rejectOnCancel?p:r,f&&!o&&(o=setTimeout(()=>{s&&l(s),o=null,r(u())},f)),s=setTimeout(()=>{o&&l(o),o=null,r(u())},V)})}}function Ht(n,e,s={}){const l=s,{eventFilter:o=Mt}=l,t=fe(l,["eventFilter"]);return z(n,Wt(o,e),t)}function Dt(n,e,s={}){const i=s,{debounce:o=0,maxWait:t=void 0}=i,l=fe(i,["debounce","maxWait"]);return Ht(n,e,Q(K({},l),{eventFilter:At(o,{maxWait:t})}))}function Hn(n,e,s){return z(n,e,Q(K({},s),{immediate:!0}))}function Fe(n,e,s){return z(n,(t,l,i)=>{t&&e(t,l,i)},Q(K({},s),{once:!1}))}function Ue(n){var e;const s=oe(n);return(e=s==null?void 0:s.$el)!=null?e:s}const we=Bt?window:void 0;function ne(...n){let e,s,o,t;if(typeof n[0]=="string"||Array.isArray(n[0])?([s,o,t]=n,e=we):[e,s,o,t]=n,!e)return pe;Array.isArray(s)||(s=[s]),Array.isArray(o)||(o=[o]);const l=[],i=()=>{l.forEach(r=>r()),l.length=0},u=(r,p,b,y)=>(r.addEventListener(p,b,y),()=>r.removeEventListener(p,b,y)),V=z(()=>[Ue(e),oe(t)],([r,p])=>{if(i(),!r)return;const b=Ot(p)?K({},p):p;l.push(...s.flatMap(y=>o.map(L=>u(r,y,L,b))))},{immediate:!0,flush:"post"}),f=()=>{V(),i()};return ge(f),f}function Ge(){const n=S(!1),e=Ae();return e&&J(()=>{n.value=!0},e),n}function zt(n){const e=Ge();return C(()=>(e.value,!!n()))}function Re(n,e={}){const{window:s=we}=e,o=zt(()=>s&&"matchMedia"in s&&typeof s.matchMedia=="function");let t;const l=S(!1),i=f=>{l.value=f.matches},u=()=>{t&&("removeEventListener"in t?t.removeEventListener("change",i):t.removeListener(i))},V=lt(()=>{o.value&&(u(),t=s.matchMedia(oe(n)),"addEventListener"in t?t.addEventListener("change",i):t.addListener(i),l.value=t.matches)});return ge(()=>{V(),u(),t=void 0}),l}function jt(n){return JSON.parse(JSON.stringify(n))}function qt(n,e={}){const{initialValue:s=!1,focusVisible:o=!1,preventScroll:t=!1}=e,l=S(!1),i=C(()=>Ue(n));ne(i,"focus",V=>{var f,r;(!o||(r=(f=V.target).matches)!=null&&r.call(f,":focus-visible"))&&(l.value=!0)}),ne(i,"blur",()=>l.value=!1);const u=C({get:()=>l.value,set(V){var f,r;!V&&l.value?(f=i.value)==null||f.blur():V&&!l.value&&((r=i.value)==null||r.focus({preventScroll:t}))}});return z(i,()=>{u.value=s},{immediate:!0,flush:"post"}),{focused:u}}function Ut(n,e,s,o={}){var t,l,i;const{clone:u=!1,passive:V=!1,eventName:f,deep:r=!1,defaultValue:p,shouldEmit:b}=o,y=Ae(),L=s||(y==null?void 0:y.emit)||((t=y==null?void 0:y.$emit)==null?void 0:t.bind(y))||((i=(l=y==null?void 0:y.proxy)==null?void 0:l.$emit)==null?void 0:i.bind(y==null?void 0:y.proxy));let E=f;E=E||"update:".concat(e.toString());const W=v=>u?typeof u=="function"?u(v):jt(v):v,P=()=>Ft(n[e])?W(n[e]):p,$=v=>{b?b(v)&&L(E,v):L(E,v)};if(V){const v=P(),g=S(v);let c=!1;return z(()=>n[e],m=>{c||(c=!0,g.value=W(m),ot(()=>c=!1))}),z(g,m=>{!c&&(m!==n[e]||r)&&$(m)},{deep:r}),g}else return C({get(){return P()},set(v){$(v)}})}function Gt(n={}){const{window:e=we,behavior:s="auto"}=n;if(!e)return{x:S(0),y:S(0)};const o=S(e.scrollX),t=S(e.scrollY),l=C({get(){return o.value},set(u){scrollTo({left:u,behavior:s})}}),i=C({get(){return t.value},set(u){scrollTo({top:u,behavior:s})}});return ne(e,"scroll",()=>{o.value=e.scrollX,t.value=e.scrollY},{capture:!1,passive:!0}),{x:l,y:i}}const Ve=()=>({isInClient:He(()=>{const e=void 0||"",s=()=>/android/gi.test(e),o=()=>/iPhone/gi.test(e),t=()=>s()||o();return/MicroMessenger/gi.test(e)&&t()},"$WDEbzGHqi5")}),ye=Nt(()=>{const{isInClient:n}=Ve(),e={};let s=(V,f)=>{e[V]=f};const o=()=>{const V=window,f=r=>{const{WeixinJSBridge:p}=V;typeof p=="undefined"||!p.invoke?document.addEventListener&&document.addEventListener("WeixinJSBridgeReady",r,!1):r()};s=(r,p,b)=>{f(()=>{V.WeixinJSBridge.invoke(r,p,b)})},Object.keys(e).forEach(r=>{s(r,e[r]),delete e[r]})};n.value&&o();const t=({dark:V,light:f,fallback:r})=>
1{s("setNavigationBarColor",{color:r||V,wxcolor:{light:f,dark:V}})};return{switchClientNaviToGreen:()=>{t({dark:"#2aae67",light:"#2aae67",fallback:"#2aae67"})},switchClientNaviToNormal:()=>{t({dark:"#191919",light:"#ffffff",fallback:"#ffffff"})},setClientPageTitle:V=>{s("setPageTitle",{title:V})}}}),Yt=["data-weui-theme"],Kt=["readonly","placeholder","autofocus"],Jt={key:0,class:"tablet:pt-2"},Zt=["tabindex","href","aria-selected","onMouseover"],Qt={key:0,class:"mt-1 block overflow-hidden text-ellipsis whitespace-nowrap text-14 text-fg-2 laptop:mt-2"},Xt=ee({__name:"SearchComponent",props:{isFullScreen:{type:Boolean,default:!1},autoFocus:{type:Boolean},isIntroPage:{type:Boolean,default:!1},isFake:{type:Boolean,default:!1},isNaviStyle:{type:Boolean,default:!1},isClientNaviGreen:{type:Boolean,default:!1}},emits:["cancel","blur","clickOutside"],setup(n,{emit:e}){const s=n,o=e;if(s.isFullScreen){const{disableDocumentOverflow:c}=qe();J(()=>{c()})}if(s.isClientNaviGreen){const{switchClientNaviToNormal:c,switchClientNaviToGreen:m}=ye();J(()=>{c()}),at(()=>{m()})}const t=S("");{let c="";z(()=>s.isFake,m=>{m?(c=t.value,t.value=""):(t.value=c,c="")})}const l=C(()=>t.value.trim()),i=te().t,u=S(),{focused:V}=qt(u),f=S(!1);Fe(V,()=>{f.value=!0}),Fe(()=>s.isFake,()=>{f.value=!1,V.value=!1}),s.autoFocus&&J(()=>{setTimeout(()=>{var c;(c=u.value)==null||c.focus()},100)});const r=S();ne(u.value,"blur",()=>o("blur")),ne(document.body,"click",c=>{const m=r.value;m&&!m.contains(c.target)&&(f.value=!1,o("clickOutside"))});const p=S([]),b=S(),y=S(!1),L=S(""),{locale:E}=te(),W=[{name:"".concat(i("block_community_guidelines_title"),"/").concat(i("community_guidelines_cover")),id:"DSNK94Qut11OMai1"},{name:i("block_community_guidelines_title"),id:"HeEKweQxIfZBQIlH"},{name:i("block_enforcement_title"),id:"zGYAE02twhngPTXI"},{name:"".concat(i("block_enforcement_title"),"/").concat(i("enforcement_reporting")),id:"BexIU5iK6extsujD"},{name:"".concat(i("block_enforcement_title"),"/").concat(i("transparency_report")),id:"f9xClWHyLMtEv1vv"},{name:"".concat(i("block_resources_title"),"/").concat(i("resources_rich_scam")),id:"0qcYMfUrjnORE2dg"},{name:"".concat(i("block_resources_title"),"/").concat(i("resources_romance_scam")),id:"WQJKBuTrT3Mc5gkV"},{name:"".concat(i("block_resources_title"),"/").concat(i("resources_impersonation_scam")),id:"sqiANI65LYKybdI8"},{name:"".concat(i("block_resources_title"),"/").concat(i("resources_recent_scam_info")),id:"lh9BhjqMpZbhFPCK"},{name:"".concat(i("block_resources_title"),"/").concat(i("resources_anti_scam")),id:"p6z46xbcY4UGhYir"},{name:i("block_safety_tools_title"),id:"MTR6ZSoilgPEfTCH"}];Dt(l,c=>{if(!c||L.value===c)return;y.value=!0,L.value=c,p.value=[];const m=Date.now();$fetch("/api/search",{params:{q:c,lang:E.value}}).then(T=>{const M=Date.now()-m;Pe({action:"searchSuccess",msg:"".concat(M,"ms")}),L.value===c&&(P.value=-1,p.value=T.map(x=>{let H="";for(const U of W)if(x.dataSetId===U.id){H=U.name;break}return{href:x.link,desc:x.text,hint:H,id:x.articleId,title:x.title}}))}).catch(T=>{const M=Date.now()-m;throw Pe({action:"searchFailed",msg:"".concat(M,"ms. ").concat(T==null?void 0:T.message)}),T}).finally(()=>{y.value=!1})},{debounce:1e3});const P=S(-1),$=c=>{var M;if(c.isComposing)return;let m=!0;const T=c.code;switch(T){case"Enter":v();break;case"ArrowDown":case"ArrowUp":case"Tab":{const x=p.value.length;if(x===0)break;const H=T==="ArrowUp"||T==="Tab"&&c.shiftKey,U=P.value;let D;U<0?H?D=x-1:D=0:(D=U+(H?-1:1),D<0&&(D+=x),D%=x),P.value=D;const O=(M=b.value)==null?void 0:M[D];O&&O.scrollIntoView({behavior:"smooth",block:"nearest"})}break;case"Escape":f.value=!1;break;default:m=!1;break}m&&c.preventDefault()},v=c=>{var T;const m=(T=p.value[P.value])==null?void 0:T.href;m&&window.open(m)},g=C(()=>s.isFake?!0:s.isIntroPage&&!f.value);return(c,m)=>{const T=je,M=Et;return d(),w("div",{ref_key:"myRootElement",ref:r,class:I(["relative flex max-h-[100vh] flex-col",{"wx-root":c.isIntroPage}]),"data-weui-theme":c.isIntroPage?"light":void 0,onClick:m[4]||(m[4]=x=>f.value=!0)},[_("div",{class:"flex cursor-text items-center",onClick:m[3]||(m[3]=()=>{a(V)||(V.value=!0)})},[_("div",{class:I(["flex max-w-full flex-1 flex-row items-center p-3 transition-all",Object.assign(c.isFullScreen?{"bg-bg-0":!0,"py-1.5":!0,"pl-2":!0,"pr-3":!0,rounded:!0}:{"bg-bg-2":a(f),"text-fg-0":a(f),"border-[1px]":!0,"rounded-lg":!0},c.isNaviStyle?{"p-[10px]":!0,"border-[--weui-BRAND]":!0}:{"border-[--weui-GLYPH-WHITE-0]":!0},a(g)?{"bg-transparent":!0}:null)])}
1,[N(T,{type:"search","disable-theme":"",hoverable:!1,class:I(["flex h-6 w-6",{"text-fg-2":!a(g),"text-[--weui-GLYPH-WHITE-0]":a(g)}])},null,8,["class"]),$e(_("input",{ref_key:"inputElement",ref:u,"onUpdate:modelValue":m[0]||(m[0]=x=>rt(t)?t.value=x:null),readonly:c.isFake,"aria-readonly":!1,type:"search",class:I(["weui-input mx-2 flex-1 text-17",Object.assign(c.isNaviStyle?{"text-14":!0}:{},a(g)?{"placeholder:text-[--weui-GLYPH-WHITE-0]":!0,"text-[--weui-GLYPH-WHITE-0]":!0}:{"placeholder:text-[--weui-GLYPH-2]":!0,"text-[--weui-GLYPH-0]":!0})]),placeholder:a(i)("search_placeholder"),autofocus:c.autoFocus,onKeydown:$},null,42,Kt),[[it,a(t)]]),a(t).length>0&&!c.isFake&&(c.isFullScreen||!c.isFullScreen&&a(f))?(d(),w("span",{key:0,class:I(["weui-icon-filled-close2 !h-[20px] !w-[20px] cursor-pointer",{"text-fg-2":!a(g),"text-[--weui-GLYPH-WHITE-0]":a(g)}]),onClick:m[1]||(m[1]=()=>{t.value="",p.value=[]})},null,2)):B("",!0)],2),c.isFullScreen?(d(),w("span",{key:0,class:"ml-3 mr-1 cursor-pointer text-17 text-[var(--weui-LINK)]",onClick:m[2]||(m[2]=De(x=>o("cancel"),["stop"]))},j(a(i)("cancel")),1)):B("",!0)]),c.isFake?B("",!0):$e((d(),w("div",{key:0,role:"tablist",class:I(c.isFullScreen?"overflow-y-auto flex-1":"overflow-y-auto absolute ".concat(c.isNaviStyle?"w-[500px]":"w-full"," ").concat(c.isIntroPage?"max-h-[50vh]":"max-h-[67vh]"," right-0 top-[50px] z-10 mt-0.5 rounded-lg bg-bg-5 text-fg-0 shadow-[0px_2px_8px] shadow-[rgba(0,0,0,.15)]"))},[a(L)&&a(L)===a(l)?(d(),w(q,{key:0},[a(p).length===0||a(y)?(d(),w("div",{key:0,class:I(["my-8 select-none text-center text-fg-2",{"mb-10 mt-12":c.isFullScreen}])},j(a(y)?a(i)("search_loading"):a(i)("search_no_relevant_content")),3)):(d(),w(q,{key:1},[c.isFullScreen&&a(p).length>0?(d(),w("div",Jt)):B("",!0),(d(!0),w(q,null,X(a(p),(x,H)=>(d(),w("a",{ref_for:!0,ref_key:"resultListRef",ref:b,key:x.href,role:"tab",tabindex:H,href:x.href,"aria-selected":a(P)===H,class:I(["my-3 block cursor-pointer rounded px-2 py-2 tablet:active:bg-fg-6 laptop:my-4 laptop:px-6 laptop:py-2",{"tablet:bg-fg-6":a(P)===H}]),onMouseover:U=>P.value=H},[N(M,{text:x.title,"highlight-text":a(L),class:"block overflow-hidden text-ellipsis whitespace-nowrap text-20"},null,8,["text","highlight-text"]),N(M,{text:x.desc,"highlight-text":a(L),"auto-offset":"",class:"mt-1 block overflow-hidden text-ellipsis whitespace-nowrap text-17 text-fg-1 laptop:mt-2"},null,8,["text","highlight-text"]),x.hint?(d(),w("span",Qt,j(x.hint),1)):B("",!0)],42,Zt))),128))],64))],64)):B("",!0)],2)),[[ct,a(f)||c.isFullScreen]])],10,Yt)}}});function Ye(s){return le(this,arguments,function*(n,e=ve()){const{path:o,matched:t}=e.resolve(n);if(!t.length||(e._routePreloaded||(e._routePreloaded=new Set),e._routePreloaded.has(o)))return;const l=e._preloadPromises=e._preloadPromises||[];if(l.length>4)return Promise.all(l).then(()=>Ye(n,e));e._routePreloaded.add(o);const i=t.map(u=>{var V;return(V=u.components)==null?void 0:V.default}).filter(u=>typeof u=="function");for(const u of i){const V=Promise.resolve(u()).catch(()=>{}).finally(()=>l.splice(l.indexOf(V)));l.push(V)}yield Promise.all(l)})}const en=(...n)=>n.find(e=>e!==void 0);function tn(n){const e=n.componentName||"NuxtLink";function s(t,l){if(!t||n.trailingSlash!=="append"&&n.trailingSlash!=="remove")return t;if(typeof t=="string")return Oe(t,n.trailingSlash);const i="path"in t&&t.path!==void 0?t.path:l(t).path;return Q(K({},t),{name:void 0,path:Oe(i,n.trailingSlash)})}function o(t){var E,W,P;const l=ve(),i=mt(),u=C(()=>!!t.target&&t.target!=="_self"),V=C(()=>{const v=t.to||t.href||"";return typeof v=="string"&&ze(v,{acceptRelative:!0})}),f=Ie("RouterLink"),r=f&&typeof f!="string"?f.useLink:void 0,p=C(()=>{if(t.external)return!0;const v=t.to||t.href||"";return typeof v=="object"?!1:v===""||V.value}),b=C(()=>{const v=t.to||t.href||"";return p.value?v:s(v,l.resolve)}),y=p.value||r==null?void 0:r(Q(K({},t),{to:b})),L=C(()=>{var v,g;if(!b.value||V.value)return b.value;if(p.value){const c=typeof b.value=="object"&&"path"in b.value?Ee(b.value):b.value,m=typeof c=="object"?l.resolve(c).href:c;return s(m,l.resolve)}return typeof b.value=="object"?(g=(v=l.resolve(b.value))==null?void 0:v.href)!=null?g:null:s(ht(i.app.baseURL,b.value),l.resolve)});return{to:b,hasTarget:u,isAbsoluteUrl:V,isExternal:p,href:L,isActive:(E=y==null?void 0:y.isActive)!=null?E:C(()=>b.value===l.currentRoute.value.path),isExactActive:(W=y==null?void 0:y.isExactActive)!=null?W:C(()=>b.value===l.currentRoute.value.path),route:(P=y==null?void 0:y.route)!=null?P:C(()=>l.resolve(b.value)),navigate(){return le(this,null,function*(){yield pt(L.value,{replace:t.replace,external:p.value||u.value})})}}}return ee({name:e,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:o,setup(t,{slots:l}){const i=ve(),{to:u,href:V,navigate:f,isExternal:r,hasTarget:p,isAbsoluteUrl:b}=o(t),y=S(!1),L=S(null),E=$=>{var v;L.value=t.custom?(v=$==null?void 0:$.$el)==null?void 0:v.nextElementSibling:$==null?void 0:$.$el};function W($){var v,g,c,m;return!y.value&&(typeof t.prefetchOn=="string"?t.prefetchOn===$:(c=(v=t.prefetchOn)==null?void 0:v[$])!=null?c:(g=n.prefetchOn)==null?void 0:g[$])&&((m=t.prefetch)!=null?m:n.prefetch)!==!1&&t.noPrefetch!==!0&&t.target!=="_blank"&&!ln()}function P(){return le(this,arguments,function*($=he()){if(y.value)return;y.value=!0;const v=typeof u.value=="string"?u.value:r.value?Ee(u.value):i.resolve(u.value).fullPath,g=r.value?new URL(v,window.location.href).href:v;yield Promise.all([$.hooks.callHook("link:prefetch",g).catch(()=>{}),!r.value&&!p.value&&Ye(u.value,i).catch(()=>{})])})}if(W("visibility")){const $=he();let v,g=null;J(()=>{const c=nn();ut(()=>{v=Vt(()=>{var m;(m=L==null?void 0:L.value)!=null&&m.tagName&&(g=c.observe(L.value,()=>le(this,null,function*(){g==null||g(),g=null,yield P($)})))})})}),me(()=>{v&&ft(v),g==null||g(),g=null})}return()=>{var g;if(!r.value&&!p.value){const c={ref:E,to:u.value,activeClass:t.activeClass||n.activeClass,exactActiveClass:t.exactActiveClass||n.exactActiveClass,replace:t.replace,ariaCurrentValue:t.ariaCurrentValue,custom:t.custom};
1return t.custom||(W("interaction")&&(c.onPointerenter=P.bind(null,void 0),c.onFocus=P.bind(null,void 0)),y.value&&(c.class=t.prefetchedClass||n.prefetchedClass),c.rel=t.rel||void 0),Te(Ie("RouterLink"),c,l.default)}const $=t.target||null,v=en(t.noRel?"":t.rel,n.externalRelAttribute,b.value||p.value?"noopener noreferrer":"")||null;return t.custom?l.default?l.default({href:V.value,navigate:f,prefetch:P,get route(){if(!V.value)return;const c=new URL(V.value,window.location.href);return{path:c.pathname,fullPath:c.pathname,get query(){return dt(c.search)},hash:c.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:V.value}},rel:v,target:$,isExternal:r.value||p.value,isActive:!1,isExactActive:!1}):null:Te("a",{ref:L,href:V.value||null,rel:v,target:$},(g=l.default)==null?void 0:g.call(l))}}})}const Ke=tn(vt);function Oe(n,e){const s=e==="append"?gt:wt;return ze(n)&&!n.startsWith("http")?n:s(n,!0)}function nn(){const n=he();if(n._observer)return n._observer;let e=null;const s=new Map,o=(l,i)=>(e||(e=new IntersectionObserver(u=>{for(const V of u){const f=s.get(V.target);(V.isIntersecting||V.intersectionRatio>0)&&f&&f()}})),s.set(l,i),e.observe(l),()=>{s.delete(l),e.unobserve(l),s.size===0&&(e.disconnect(),e=null)});return n._observer={observe:o}}const sn=/2g/;function ln(){const n=navigator.connection;return!!(n&&(n.saveData||sn.test(n.effectiveType)))}const on=["data-weui-theme"],We=ee({__name:"LanguageSwitch",props:{enforceWhite:{type:Boolean,default:!1}},emits:["switch"],setup(n,{emit:e}){const{locale:s}=te(),o=e,t=u=>{s.value!==u&&(s.value=u,o("switch"))},l=yt(),i=C(()=>[{lang:"zh_CN",name:"简"},{lang:"zh_HK",name:"繁"},{lang:"en_US",name:"EN"}].map(u=>Q(K({},u),{isEnable:s.value===u.lang,to:l(u.lang)})));return(u,V)=>{const f=Ke;return d(),w("div",{class:I(["split-list text-card-title split-list-language-switcher mr-0 inline",{"wx-root":u.enforceWhite}]),"data-weui-theme":u.enforceWhite&&"dark"},[(d(!0),w(q,null,X(a(i),r=>(d(),G(f,{key:r.name,class:I(["px-3 first-of-type:ml-0 first-of-type:pl-0 last-of-type:mr-0 last-of-type:pr-0 hover:font-medium laptop:px-1",{"text-fg-1":!r.isEnable,"text-fg-0":r.isEnable,"font-medium":r.isEnable}]),to:r.to,onClick:p=>t(r.lang)},{default:Y(()=>[ue(j(r.name),1)]),_:2},1032,["class","to","onClick"]))),128))],10,on)}}}),an={class:"safe-padding mx-6 flex flex-col items-center justify-center"},rn={class:"split-list text-center"},cn=["href"],un={key:0,class:"mt-2 text-center text-fg-2"},Vn=ee({__name:"PageFooter",setup(n){const e=te(),s=e.t,{locale:o}=e,{isInClient:t}=Ve(),l=C(()=>{let V,f,r,p,b;switch(o.value){case"zh_CN":V="https://www.wechat.com/zh_CN/service_terms.html",f="https://help.wechat.com/oshelpcenter?lang=zh_TW",r="https://www.wechat.com/zh_CN/privacy_policy.html",p="https://newsroom.wechat.com/?lang=zh",b="https://wechat.com/zh_CN";break;case"zh_HK":V="https://www.wechat.com/zh_TW/service_terms.html",f="https://help.wechat.com/oshelpcenter?lang=zh_TW",r="https://www.wechat.com/zh_TW/privacy_policy.html",p="https://newsroom.wechat.com/?lang=zh-TW",b="https://wechat.com/zh_HK";break;default:V="https://www.wechat.com/en/service_terms.html",f="https://help.wechat.com/oshelpcenter?lang=en",r="https://www.wechat.com/en/privacy_policy.html",p="https://newsroom.wechat.com/?lang=en",b="https://wechat.com/en"}return t.value?[{text:s("footer_link_help_center"),url:f}]:[{text:s("footer_link_wechat_home"),url:b},{text:s("footer_link_terms_of_service"),url:V},{text:s("footer_link_privacy_policy"),url:r},{text:s("footer_link_help_center"),url:f},{text:s("footer_link_newsroom"),url:p}]}),i=new Date().getUTCFullYear(),u="Copyright © 2012-".concat(i," WeChat. All Rights Reserved.");return(V,f)=>(d(),w("footer",an,[_("div",rn,[(d(!0),w(q,null,X(a(l),r=>(d(),w("a",{key:r.text,href:r.url,target:"_blank",rel:"noopener noreferrer",class:"text-[#576B95] [&::after]:!border-fg-4"},j(r.text),9,cn))),128))]),a(t)?B("",!0):(d(),w("span",un,j(u)))]))}}),xe="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.0006%202C16.065%202%2018.0171%202.39792%2019.7507%203.10608V3.10631V3.1296V3.15295V3.17636V3.19983V3.22336V3.24695V3.2706V3.29431V3.31807V3.3419V3.36578V3.38973V3.41373V3.43779V3.46191V3.48609V3.51033V3.53463V3.55898V3.5834V3.60787V3.6324V3.65699V3.68164V3.70634V3.73111V3.75593V3.78081V3.80575V3.83075V3.8558V3.88091V3.90608V3.93131V3.9566V3.98194V4.00735V4.0328V4.05832V4.0839V4.10953V4.13522V4.16096V4.18677V4.21263V4.23855V4.26452V4.29055V4.31664V4.34279V4.36899V4.39525V4.42157V4.44794V4.47438V4.50086V4.52741V4.55401V4.58066V4.60738V4.63415V4.66097V4.68785V4.71479V4.74178V4.76884V4.79594V4.8231V4.85032V4.8776V4.90493V4.93231V4.95975V4.98725V5.0148V5.04241V5.07008V5.09779V5.12557V5.1534V5.18128V5.20922V5.23722V5.26527V5.29338V5.32154V5.34975V5.37802V5.40635V5.43473V5.46316V5.49165V5.5202V5.5488V5.57745V5.60616V5.63492V5.66373V5.69261V5.72153V5.75051V5.7
17954V5.80863V5.83777V5.86697V5.89622V5.92552V5.95488V5.98429V6.01375V6.04327V6.07284V6.10247V6.13214V6.16188V6.19166V6.2215V6.25139V6.28134V6.31133V6.34139V6.37149V6.40165V6.43186V6.46212V6.49244V6.52281V6.55323V6.5837V6.61423V6.64481V6.67544V6.70612V6.73686V6.76765V6.79849V6.82938V6.86033V6.89133V6.92238V6.95348V6.98463V7.01584V7.0471V7.0784V7.10977V7.14118V7.17264V7.20416V7.23573V7.26734V7.29902V7.33074V7.36251V7.39433V7.42621V7.45813V7.49011V7.52214V7.55422V7.58635V7.61853V7.65076V7.68305V7.71538V7.74777V7.7802V7.81269V7.84522V7.87781V7.91044V7.94313V7.97587V8.00866C19.7507%208.05357%2019.7505%208.09843%2019.7502%208.14323C19.7504%208.09571%2019.7505%208.04795%2019.7505%207.99996V7.39996C18.0512%206.54696%2015.9306%205.99996%2013.8997%205.99996C11.9487%205.99996%209.89939%206.6089%208.25053%207.39996V8.02625C8.25053%2012.8716%209.76534%2015.7066%2011.1324%2017.342C11.8864%2018.2441%2012.6652%2018.794%2013.2501%2019.1171C13.4997%2019.2549%2013.7563%2019.3749%2014.0634%2019.4999C12.4469%2020.5738%2010.7221%2021.7133%209.13579%2022.7588L9.13562%2022.7587L4.77812%2025.62L5.93855%2021.1837C2.9305%2019.2147%201.00061%2016.1687%201.00061%2012.75C1.00061%206.81294%206.82091%202%2014.0006%202ZM14.0006%2023.5C12.6771%2023.5%2011.4494%2023.3742%2010.2705%2023.0887C11.7882%2022.0876%2013.3991%2021.0224%2014.8998%2020.0247C18.5444%2017.6017%2020.6507%2013.1169%2020.6507%208.00866V7.97587V7.94313V7.91044V7.87781V7.84522V7.81269V7.7802V7.74777V7.71538V7.68305V7.65076V7.61853V7.58635V7.55422V7.52214V7.49011V7.45813V7.42621V7.39433V7.36251V7.33074V7.29902V7.26734V7.23573V7.20416V7.17264V7.14118V7.10977V7.0784V7.0471V7.01584V6.98463V6.95348V6.92238V6.89133V6.86033V6.82938V6.79849V6.76765V6.73686V6.70612V6.67544V6.64481V6.61423V6.5837V6.55323V6.52281V6.49244V6.46212V6.43186V6.40165V6.37149V6.34139V6.31133V6.28134V6.25139V6.2215V6.19166V6.16188V6.13214V6.10247V6.07284V6.04327V6.01375V5.98429V5.95488V5.92552V5.89622V5.86697V5.83777V5.80863V5.77954V5.75051V5.72153V5.69261V5.66373V5.63492V5.60616V5.57745V5.5488V5.5202V5.49165V5.46316V5.43473V5.40635V5.37802V5.34975V5.32154V5.29338V5.26527V5.23722V5.20922V5.18128V5.1534V5.12557V5.09779V5.07008V5.04241V5.0148V4.98725V4.95975V4.93231V4.90493V4.8776V4.85032V4.8231V4.79594V4.76884V4.74178V4.71479V4.68785V4.66097V4.63415V4.60738V4.58066V4.55401V4.52741V4.50086V4.47438V4.44794V4.42157V4.39525V4.36899V4.34279V4.31664V4.29055V4.26452V4.23855V4.21263V4.18677V4.16096V4.13522V4.10953V4.0839V4.05832V4.0328V4.00735V3.98194V3.9566V3.93131V3.90608V3.88091V3.8558V3.83075V3.80575V3.78081V3.75593V3.73111V3.70634V3.68164V3.65699V3.6324V3.60787V3.5834V3.55898V3.53463V3.51106C24.4535%205.38681%2027.0006%208.82243%2027.0006%2012.75C27.0006%2018.6871%2021.1803%2023.5%2014.0006%2023.5Z'%20fill='%2307C160'/%3e%3c/svg%3e",Je="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.0008%203.42847C27.5398%203.42847%2030.8861%204.1106%2033.8579%205.32455V5.32506V5.36499V5.40502V5.44515V5.48539V5.52572V5.56616V5.6067V5.64734V5.68809V5.72893V5.76987V5.81092V5.85207V5.89332V5.93467V5.97612V6.01767V6.05932V6.10107V6.14292V6.18488V6.22693V6.26908V6.31134V6.35369V6.39614V6.4387V6.48135V6.5241V6.56695V6.60991V6.65296V6.69611V6.73936V6.7827V6.82615V6.8697V6.91334V6.95708V7.00093V7.04487V7.0889V7.13304V7.17728V7.22161V7.26604V7.31057V7.3552V7.39992V7.44475V7.48967V7.53468V7.5798V7.62501V7.67032V7.71572V7.76123V7.80683V7.85253V7.89832V7.94421V7.9902V8.03628V8.08246V8.12874V8.17511V8.22157V8.26814V8.3148V8.36156V8.40841V8.45535V8.5024V8.54953V8.59677V8.6441V8.69152V8.73904V8.78665V8.83436V8.88216V8.93006V8.97805V9.02614V9.07432V9.1226V9.17097V9.21943V9.26799V9.31664V9.36538V9.41422V9.46316V9.51218V9.5613V9.61051V9.65982V9.70922V9.75871V9.8083V9.85798V9.90775V9.95761V10.0076V10.0576V10.1078V10.158V10.2083V10.2587V10.3092V10.3598V10.4105V10.4613V10.5122V10.5632V10.6142V10.6654V10.7166V10.768V10.8194V10.8709V10.9225V10.9742V11.026V11.0779V11.1299V11.1819V11.2341V11.2863V11.3386V11.3911V11.4436V11.4962V11.5489V11.6016V11.6545V11.7075V11.7605V11.8137V11.8669V11.9202V11.9736V12.0271V12.0807V12.1344V12.1881V12.242V12.2959V12.3499V12.4041V12.4583V12.5126V12.5669V12.6214V12.676V12.7306V12.7853V12.8402V12.8951V12.9501V13.0051V13.0603V13.1156V13.1709V13.2263V13.2818V13.3374V13.3931V13.4489V13.5048V13.5607V13.6168V13.6729V13.7291C33.8579%2013.8211%2033.85
175%2013.9129%2033.8567%2014.0046C33.8573%2013.9084%2033.8575%2013.8116%2033.8575%2013.7142V12.6856C30.9444%2011.2233%2027.3092%2010.2856%2023.8275%2010.2856C20.483%2010.2856%2016.9699%2011.3295%2014.1433%2012.6856V13.7593C14.1433%2022.0656%2016.7401%2026.9255%2019.0836%2029.7291C20.3763%2031.2756%2021.7112%2032.2182%2022.714%2032.7721C23.1418%2033.0084%2023.5818%2033.2142%2024.1083%2033.4284C21.3371%2035.2693%2018.3804%2037.2228%2015.6611%2039.015L15.6608%2039.0149L8.19081%2043.9199L10.1801%2036.3148C5.02347%2032.9394%201.71509%2027.7177%201.71509%2021.857C1.71509%2011.6792%2011.6927%203.42847%2024.0008%203.42847ZM24.0008%2040.2856C21.7319%2040.2856%2019.6272%2040.0699%2017.6063%2039.5805C20.2081%2037.8644%2022.9695%2036.0384%2025.5422%2034.328C31.7901%2030.1743%2035.4008%2022.486%2035.4008%2013.7291V13.6729V13.6168V13.5607V13.5048V13.4489V13.3931V13.3374V13.2818V13.2263V13.1709V13.1156V13.0603V13.0051V12.9501V12.8951V12.8402V12.7853V12.7306V12.676V12.6214V12.5669V12.5126V12.4583V12.4041V12.3499V12.2959V12.242V12.1881V12.1344V12.0807V12.0271V11.9736V11.9202V11.8669V11.8137V11.7605V11.7075V11.6545V11.6016V11.5489V11.4962V11.4436V11.3911V11.3386V11.2863V11.2341V11.1819V11.1299V11.0779V11.026V10.9742V10.9225V10.8709V10.8194V10.768V10.7166V10.6654V10.6142V10.5632V10.5122V10.4613V10.4105V10.3598V10.3092V10.2587V10.2083V10.158V10.1078V10.0576V10.0076V9.95761V9.90775V9.85798V9.8083V9.75871V9.70922V9.65982V9.61051V9.5613V9.51218V9.46316V9.41422V9.36538V9.31664V9.26799V9.21943V9.17097V9.1226V9.07432V9.02614V8.97805V8.93006V8.88216V8.83436V8.78665V8.73904V8.69152V8.6441V8.59677V8.54953V8.5024V8.45535V8.40841V8.36156V8.3148V8.26814V8.22157V8.17511V8.12874V8.08246V8.03628V7.9902V7.94421V7.89832V7.85253V7.80683V7.76123V7.71572V7.67032V7.62501V7.5798V7.53468V7.48967V7.44475V7.39992V7.3552V7.31057V7.26604V7.22161V7.17728V7.13304V7.0889V7.04487V7.00093V6.95708V6.91334V6.8697V6.82615V6.7827V6.73936V6.69611V6.65296V6.60991V6.56695V6.5241V6.48135V6.4387V6.39614V6.35369V6.31134V6.26908V6.22693V6.18488V6.14292V6.10107V6.05932V6.0188C41.92%209.23434%2046.2865%2015.124%2046.2865%2021.857C46.2865%2032.0349%2036.3089%2040.2856%2024.0008%2040.2856Z'%20fill='white'%20fill-opacity='0.8'/%3e%3c/svg%3e",fn=()=>{const n=Re("(min-width: 1352px)"),e=Re("(min-width: 1160px)");return{isDesktop:n,isLaptop:e}},dn=()=>{const{y:n}=Gt();return{showSeparator:C(()=>n.value>0)}},vn={class:"relative flex w-screen flex-1 flex-col"},hn={key:0,class:"absolute top-0 h-24 w-screen bg-[#2aae67]"},pn={class:"mx-auto flex min-h-10 max-w-[1352px] flex-1 justify-center px-16"},mn={class:"mx-auto hidden flex-1 items-center justify-center overflow-hidden text-ellipsis laptop:flex"},gn={key:0,class:"icon",src:xe,alt:"logo"},wn={key:1,src:Je,class:"icon",alt:"logo"},yn=["data-weui-theme"],xn=["data-weui-theme"],bn={class:"flex-0 mx-4 my-3 flex tablet:mx-16"},_n={key:0,class:"icon",src:xe,alt:"logo"},Cn={key:1,class:"icon",src:Je,alt:"logo"},kn={key:0,class:"flex flex-1 flex-col px-8 pt-2"},Sn={class:"mb-8 flex items-center justify-center"},Ln={class:"page-slot flex flex-1 flex-col items-center justify-center"},$n={class:"w-full max-w-[1352px]"},Pn={class:"mx-8 tablet:mx-16"},Tn={key:1,class:"mt-10 pb-6 text-14 tablet:text-[12px] laptop:mt-36 laptop:pb-12"},In={key:2,class:"mb-6"},En={class:"fixed left-0 top-0 z-50 flex h-screen w-screen flex-col bg-bg-2 px-4 tablet:px-16"},Nn={class:"my-3 flex"},Bn={class:"split-line-after relative flex flex-1 flex-col"},Fn={class:"my-6"},Rn={class:"mb-8 flex items-center justify-center"},On={key:0,class:"fixed left-0 top-0 z-[60] min-h-full w-full overflow-hidden bg-bg-0"},Wn={class:"bg-bg-2 p-2 tablet:px-16"},Dn=ee({__name:"PageContainer",props:{isIntroPage:{type:Boolean,default:!1},fullScreenSearchVisible:{type:Boolean}},emits:["update:fullScreenSearchVisible"],setup(n,{emit:e}){const{disableDocumentOverflow:s,enableDocumentOverflow:o}=qe();J(()=>{o()});const t=n,i=Ut(t,"fullScreenSearchVisible",e,{passive:!0}),u=S(!1),V=S(!0),{isInClient:f}=Ve(),r=He(()=>S(t.isIntroPage),"$SyoJuKWVt1"),p=Ge(),{isDesktop:b,isLaptop:y}=fn();t.isIntroPage?J(()=>{z(b,k=>{r.value=k},{immediate:!0})}):r.value=!1;const L=C(()=>r.value?32:0),E=S(0),W=S(!1);z(L,k=>{(k===0||!W.value&&t.isIntroPage)&&(E.value=k)},{immediate:!0}),ne("scroll",()=>{if(W.value=!0,!r.value)return;const k=window.scrollY;let h=L.value-k;h<0&&(h=0),E.value=h});const P=C(()=>p.value?r.value?"top:".concat(E.value,"px"):"top: 0":""),v=te().t,g=xt(),c=bt(),m=_t(),T=C(()=>c(m)),M=C(()=>{var h,F,Z,A;const{fromArticleBlock:k}=m.query;return[{text:v("block_safety_tools_title"),url:g(f.value?"/safety-tools":"/safety-tools/articles"),isCurrent:((h=T.value)==null?void 0:h.startsWith("safety-tools"))||k===ce.safetyToolsArticles},{text:v("block_resources_title"),url:g("/resources"),isCurrent:((F=T.value)==null?void 0:F.startsWith("resources"))||k===ce.resources},{text:v("block_community_guidelines_title"),url:g("/community-guidelines"),isCurrent:((Z=T.value)==null?void 0:Z.startsWith("community-guidelines"))||k===ce.communityGuidelines},{text:v("block_enforcement_title"),url:g("/enforcement"),isCurrent:((A=T.value)==null?void 0:A.startsWith("enforcement"))||k===ce.enforcement}]}),x=S(!1);{const{switchClientNaviToNormal:k,switchClientNaviToGreen:h}=ye();t.isIntroPage?h():k(),z(x,F=>{F?(s(),t.isIntroPage&&k()):(o(),t.isIntroPage&&h())})}Me(()=>{x.value=!1});const H=()=>{x.value=!x.value},U=S(!0),D=S();J(()=>{if(!t.isIntroPage)return;const k=document.querySelector(".banner");if(!k)return;const h=document.querySelector(".navigation-bar"),F=document.querySelector(".navigation-bar-laptop"),Z=()=>{let A;if(y.value?A=F==null?void 0:F.getBoundingClientRect():A=h==null?void 0:h.getBoundingClientRect(),!A)return;const ae=k.getBoundingClientRect();U.value=A.bottom<ae.bottom};window.addEventListener("scroll",Z),D.value=Z}),me(()=>{D.value&&window.removeEventListener("scroll",D.value)});const O=C(()=>t.isIntroPage?U.value:!1),be=C(()=>!O.value&&!x.value),{showSeparator:_e}=dn();return(k,h)=>{const F=Ke,Z=We,A=je,ae=Xt,Ce=We,Ze=Vn;return d(),w(q,null,[_("div",vn,[k.isIntroPage?(d(),w("div",hn)):B("",!0),_("div",{class:I(["navigation-bar-laptop sticky z-40 hidden w-screen items-center whitespace-nowrap bg-bg-2 py-[18px] backdrop-blur-md transition-colors laptop:flex",{"desktop:top-[32px]":a(r),"desktop:fixed":a(r),"!bg
1-[#2aae67]":a(O),"navigation-separator":a(_e),"!border-transparent":a(O)}]),style:Ct(a(P))},[_("div",pn,[_("div",mn,[N(F,{to:a(g)("/"),class:"flex flex-1 cursor-pointer overflow-hidden"},{default:Y(()=>[a(be)?(d(),w("img",gn)):(d(),w("img",wn)),_("span",{class:I(["ml-2.5 mr-10 overflow-hidden text-ellipsis text-nowrap text-[20px] text-fg-0 transition-all",{"laptop:opacity-0":a(r)&&a(E)!==0,"wx-root":a(O)}]),"data-weui-theme":a(O)&&"dark"},j(a(v)("title")),11,yn)]),_:1},8,["to"]),_("nav",{class:I(["pb-[2px]",{"wx-root":a(O)}]),"data-weui-theme":a(O)&&"dark"},[(d(!0),w(q,null,X(a(M),({text:R,url:se,isCurrent:ie})=>(d(),G(F,{key:R,to:se,class:I(["mr-10 pb-2 pt-1.5 text-[20px] text-fg-0",{"current-navi":ie}])},{default:Y(()=>[ue(j(R),1)]),_:2},1032,["to","class"]))),128))],10,xn),N(Z,{"enforce-white":a(O)},null,8,["enforce-white"])]),k.isIntroPage?B("",!0):(d(),w("div",{key:0,class:"ml-10 flex h-[40px] items-center",onClick:h[3]||(h[3]=De(()=>{},["stop"]))},[!a(u)&&a(V)?(d(),G(A,{key:0,class:I(["icon cursor-pointer",{transparent:a(u)}]),type:"search",onClick:h[0]||(h[0]=R=>{u.value=!0,V.value=!1})},null,8,["class"])):B("",!0),N(Ne,{name:"navi-search",onAfterLeave:h[2]||(h[2]=R=>V.value=!0)},{default:Y(()=>[a(u)?(d(),G(ae,{key:0,"auto-focus":"",class:"w-[280px] transition-all","is-navi-style":"",onClickOutside:h[1]||(h[1]=R=>u.value=!1)})):B("",!0)]),_:1})]))])],6),_("div",{class:I(["navigation-bar sticky bottom-0 left-0 right-0 top-0 z-40 flex flex-col bg-bg-2 transition-colors laptop:hidden",{hidden:a(x),"!bg-[#2aae67]":a(O),"navigation-separator":a(_e),"!border-transparent":a(O)}])},[_("div",bn,[N(F,{to:a(g)("/"),class:"flex cursor-pointer"},{default:Y(()=>[a(be)?(d(),w("img",_n)):(d(),w("img",Cn))]),_:1},8,["to"]),h[9]||(h[9]=_("div",{class:"flex-1"},null,-1)),k.isIntroPage?B("",!0):(d(),G(A,{key:0,class:"icon mr-4 cursor-pointer",type:"search",onClick:h[4]||(h[4]=R=>i.value=!0)})),_("div",{class:"flex h-7 w-7 cursor-pointer items-center justify-center",onClick:H},[N(A,{type:a(x)?"close":"fold",class:I({"!text-white":a(O)})},null,8,["type","class"])])]),a(x)&&!a(x)?(d(),w("div",kn,[_("div",null,[(d(!0),w(q,null,X(a(M),({text:R,url:se})=>(d(),G(F,{key:R,to:se,class:"mt-4 block text-fg-0",onClick:h[5]||(h[5]=ie=>x.value=!1)},{default:Y(()=>[ue(j(R),1)]),_:2},1032,["to"]))),128))]),h[10]||(h[10]=_("div",{class:"flex-1"},null,-1)),_("div",Sn,[N(Ce,{class:"mb-8"})])])):B("",!0)],2),_("div",Ln,[de(k.$slots,"unlimited-width"),_("div",$n,[_("div",Pn,[de(k.$slots,"default")])]),h[11]||(h[11]=_("div",{class:"flex-1"},null,-1))]),!a(f)||a(f)&&k.isIntroPage?(d(),w("div",Tn,[N(Ze)])):(d(),w("div",In))]),a(x)?(d(),G(Be,{key:0,to:"body"},[_("div",En,[_("div",Nn,[N(F,{to:a(g)("/"),class:"cursor-pointer"},{default:Y(()=>h[12]||(h[12]=[_("img",{class:"icon",src:xe,alt:"logo"},null,-1)])),_:1},8,["to"]),h[13]||(h[13]=_("div",{class:"ml-auto"},null,-1)),N(A,{class:"icon mr-4 cursor-pointer",type:"search",onClick:h[6]||(h[6]=R=>i.value=!0)}),N(A,{class:"icon cursor-pointer",type:"close",onClick:h[7]||(h[7]=R=>x.value=!1)})]),_("div",Bn,[_("div",Fn,[(d(!0),w(q,null,X(a(M),({text:R,url:se,isCurrent:ie})=>(d(),G(F,{key:R,to:se,class:I(["hover-able block py-2 pl-2 text-[20px] text-fg-0",{"current-navi-mobile":ie}])},{default:Y(()=>[ue(j(R),1)]),_:2},1032,["to","class"]))),128))]),h[14]||(h[14]=_("div",{class:"flex-1"},null,-1)),_("div",Rn,[N(Ce,{class:"mb-8"})])])])])):B("",!0),(d(),G(Be,{to:"body"},[N(Ne,{name:a(x)||!a(y)&&!k.isIntroPage?"noop":"expand",duration:a(x)||!a(y)&&!k.isIntroPage?0:{enter:1e3,leave:500}},{default:Y(()=>[a(i)?(d(),w("div",On,[_("div",Wn,[N(ae,{"auto-focus":"","is-client-navi-green":k.isIntroPage&&!a(x),"is-full-screen":"",onCancel:h[8]||(h[8]=R=>i.value=!1)},null,8,["is-client-navi-green"])])])):B("",!0)]),_:1},8,["name","duration"])]))],64)}}}),zn=n=>{const e=te().t,s=C(()=>e("title")),{isInClient:o}=Ve(),t=C(()=>{if(n){const l=St(n);if(l)return o.value?l:"".concat(l," - ").concat(s.value)}return s.value});kt({title:t,ogTitle:t});{const{setClientPageTitle:l}=ye();z(t,i=>{l(i)},{immediate:!0})}};export{Dn as _,zn as a,fn as b,Xt as c,Ke as d,je as e,qe as f,Ve as u,Hn as w};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.