PageSourceSearch

https://thefarrierguide.com/assets/index-BzvQpSzx.js

js thefarrierguide.com collected 2026-10-08 12:37:22 UTC 43,987 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-DLfdGMhJ.js","assets/PageMeta-C14JY7li.js","assets/vendor-vue-HZX_Y7vL.js","assets/vendor--b_nJ6LL.js","assets/BlockCatEight-B_MAUM2Q.js","assets/vendor-pinia-Br4AKAFj.js","assets/SingleView-CX6GHymp.js","assets/BlockError-CnEbI2n8.js","assets/SingleView-BmrX46AD.css","assets/SearchView-BmBd2bFr.js","assets/CategoryView-DGVLa_ng.js","assets/LatestView-DhfG5LbN.js"])))=>i.map(i=>d[i]);
2import{u as e,j as t,k as a,r as l,t as n,d as s,n as o,w as r,l as i,p as u,q as c,s as d,v as g,x as v,y as h,z as p,A as m,B as y,C as f,D as w,F as b,E as k,G as E,H as q,I as x,J as S,K as D,L as M,M as A,R as L,N as _,O as z,P as O,Q as T,S as I}from"./vendor-vue-HZX_Y7vL.js";import{d as C,c as N}from"./vendor-pinia-Br4AKAFj.js";import{d as j,r as R,P as X,a as P}from"./vendor--b_nJ6LL.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const a of e)if("childList"===a.type)for(const e of a.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const Y=7,H={id:"",type:"",title:"",slug:"",content:[],html:"",summary:"",image:"",category:"",user:"",status:"draft",created:"",updated:"",featured:0,quiz:!0,format:"narrative",editor:0,class:"",related:[]};j.extend(R);const U=C("public",()=>{window.slideCount=0;const i=e(),u=t(),{cookies:c}=a(),d=l(c.get("XD_auth")),g=l(!1),v=l(""),h=l([]),p=l(!1),m=l("production"),y=l(0),f=l(""),w=l(!1),b=l([]),k=l([]),E=l([]),q=new X({concurrency:1}),x=l(H),S=l(structuredClone(n(x.value))),D=l([]),M=l({slide:0,status:!1}),A=l({loaded:!1,errorpage:!1,type:"longform",layout:"default",nolayout:!1,extra:!1,extraUnits:{desktop:[],mobile:[]},nextloading:!1,extraAds:!1,stickytop:!1,slide:0,counter:1,single:!1,current:-1,slice:0,next:[],search:!1,limit:16,offset:0,searchMore:!1,loadMore:!0,start:!0,end:!1,gonext:!1,hidden:[],answer:"",bg:0,winner:{length:0,answer:0,score:0,percentage:0},form:!1,mailerlite:"",subscriber:"",subscriberStatus:"active",subscriberGroups:[],subscriberError:"",aicalled:!1}),L=l(structuredClone(n(A.value))),_=l([]),z=l({heading:[],after:[],image:[],question:[],rest:[]}),O=l(structuredClone(n(z.value))),T=l(""),I=l(0),C=l([]),N=l([]),R=l([]),U=l([]),B=l({status:{published:0,draft:1,trash:2},type:{post:0,page:1,quiz:2}}),J={post:"category/posts",page:"category/pages",quiz:"category/quizzes"},G=l(0),$={status:!1,error:!1,loading:!1,start:!1},F=l(structuredClone(n($))),V=null,W=()=>"20250101"==S.value.id,Q=s(()=>({button:"0"!=i.query.button,form:"1"==i.query.form,mailerlite:i.query.ml?i.query.ml:"",result:"0"!=i.query.result,answerInfo:"0"!=i.query.info,percentage:"1"==i.query.percentage?"percentage":""})),K=()=>{0==h.value.settings.theme.themedark?v.value="light":"dark"===localStorage.theme||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?(v.value="dark",document.documentElement.classList.add("dark")):(v.value="light",document.documentElement.classList.remove("dark"))},Z=e=>{void 0!==e&&(e=""==e?1:e,window.currentSlide=parseInt(e),L.value.type="gallery",L.value.slide=parseInt(e)-1,M.value.slide=L.value.slide,M.value.status=!1),window.type=L.value.type},ee=async e=>await fetch("https://cdn.auctusdigital.co.uk\n/"+e).then(e=>{if(e.ok)return e.json()}).then(e=>e),te=e=>{if(!e)return"";try{const t=/^https?:\/\//i.test(e);return new URL(t?e:`https://${e}`).hostname.toLowerCase().replace(/^www\./,"")}catch{return""}},ae=e=>e?e.replaceAll(".","-").replace(/[^a-z0-9-]/gi,"-").replace(/-+/g,"-").replace(/^-|-$/g,""):"",le=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t)||0==t.length)return e;const a=new Map;return t.forEach((e,t)=>{a.set(String(e),t)}),e.slice().sort((e,t)=>
2{const l=String(e.slug||e.id),n=String(t.slug||t.id);return(a.has(l)?a.get(l):Number.MAX_SAFE_INTEGER)-(a.has(n)?a.get(n):Number.MAX_SAFE_INTEGER)})},ne=async()=>{const e=await ee("settings/sitelist"),t=Array.isArray(e)?e:Array.isArray(e?.sites)?e.sites:[];if(0===t.length)return;const a=te(window.location.href);if(!a)return;const l=t.find(e=>te(e.link)==a);if(l&&h.value.settings){if(p.value=!0,f.value=ae(a),l.name&&h.value.settings.info&&(h.value.settings.info.infoname=l.name),h.value.settings.logo&&(l.light&&(h.value.settings.logo.logosite.src=l.light,h.value.settings.logo.logofavicon.src=l.light),l.dark?h.value.settings.logo.logositedark.src=l.dark:l.light&&(h.value.settings.logo.logositedark.src=l.light),(e=>{if(!e)return;["icon","shortcut icon","apple-touch-icon"].forEach(t=>{let a=document.head.querySelector(`link[rel="${t}"]`);a||(a=document.createElement("link"),a.setAttribute("rel",t),document.head.appendChild(a)),a.setAttribute("href",e)})})(h.value.settings.logo.logofavicon.src)),Array.isArray(l.categories)&&l.categories.length>0&&h.value.settings?.menu){const e=l.categories.map(e=>({type:"category",link:e,id:oe(e,!0)||e}));h.value.settings.menu.menuheader=e,h.value.settings.menu.menufooter=e,U.value=l.categories}}else p.value=!1},se=(e,t,a)=>e+" { font-size: "+t[a+"size"]+"; font-weight: "+t[a+"weight"]+"; line-height: "+t[a+"line"]+"; letter-spacing: "+t[a+"space"]+"; }";(async()=>{let e={};try{"undefined"!=typeof window&&window.XD&&window.XD.site&&(e=window.XD.site)}catch(t){e={}}if(h.value=e||{},h.value&&0!==Object.keys(h.value).length||(h.value=await ee("settings/site")),h.value&&h.value.ads){const e=h.value.ads,t=(e,t)=>`window.${e} = () => { ${t||""} };`,a=[t("XDlongformcall",e.longform?.call),t("XDlongformreload",e.longform?.reload),t("XDlongformtracking",e.longform?.tracking),t("XDlongforminfiniteScroll",e.longform?.infiniteScroll),t("XDgallerycall",e.gallery?.call),t("XDgalleryreload",e.gallery?.reload),t("XDgallerytracking",e.gallery?.tracking),t("XDgalleryquizresult",e.gallery?.quizresult),t("XDgallerysubscribesuccess",e.gallery?.subscribesuccess)].join("\n"),l=document.createElement("script");l.textContent=a,document.head.appendChild(l)}if(""==f.value){const e=te(window.location.href);f.value=ae(e)}await ne(),g.value=!0})();const oe=(e,t=!1)=>{const a=h.value.categories.filter(t=>t.id==e);if(a.length>0)return 1==t?a[0].name:a[0]},re=e=>{const t=h.value.users.filter(t=>t.id==e);if(t.length>0)return t[0].name},ie=async(e,t)=>{const a=new FormData;a.append("data",e),a.append("type",t);let l={method:"POST",headers:{Authorization:"Bearer rXY3CK90THfe01UxO73-FyiloRUkFdHGMIrg7opW"},body:a,credentials:"include"};return await fetch(window.location.origin+"/model/d1/call",l).then(e=>e.json()).catch(e=>e)},ue=e=>{const t=[];return(e=pe(JSON.stringify(e))).forEach(e=>{const a=(l=e.created,isFinite(l)?j.unix(l).format("MMM D, YYYY hh:mm A"):j(l).format("MMM D, YYYY hh:mm A"));var l;if(e.date=j().diff(a,"day")<=Y?j(a).fromNow():j(a).format("D MMMM YYYY"),e.slug=e.type==B.value.type.quiz?"quiz-"+e.slug+"/?slide=1":e.slug+"/",""===e.image&&e.extra)try{const t=JSON.parse(e.extra);e.image=t.image||""}catch{}t.push({title:e.title,slug:e.slug,summary:e.summary,image:ce(e.image),category:oe(e.category,!0),user:re(e.user),date:e.date})}),t},ce=e=>{let t="";return""!=e&&(t=-1==e.search("://")?"https://cdn.auctusdigital.co.uk\n"+e:e),t},de=P(250,()=>{""!=T.value?(q.clear(),q.add(()=>ge())):L.value.search=!0}),ge=async()=>{L.value.search=!1,L.value.offset=0,I.value=0,E.value=[];const e={search:T.value,status:[B.value.status.published],type:[B.value.type.post,B.value.type.page,B.value.type.quiz],sections:[]};e.sections.push({id:"column-full",limit:L.value.limit,offset:L.value.offset,uncategorized:h.value.settings.theme.showuncategorized});const t=await ie(JSON.stringify(e),"multi");E.value=ue(t[0].data),I.value=E.value.length,L.value.search=!0,L.value.loadMore=t[0].data.length==L.value.limit,(()=>{const e=window.location.href,t=e.split("?"),a=t.length>1?"?"+t[1]:"",l=e.split("/");l[4]=T.value+a,window.history.pushState({},"",l.join("/"))})()},ve=P(250,()=>{q.clear(),q.add(()=>he())}),he=async()=>{L.value.offset=0,I.value=0,E.value=[];const e={status:[B.value.status.published],type:[B.value.type.post,B.value.type.quiz],limit:L.value.limit,offset:L.value.offset,uncategorized:h.value.settings.theme.showuncategorized},t=await ie(JSON.stringify(e),"list");E.value=ue(t),I.value=E.value.length,L.value.loadMore=t.length==L.value.limit},pe=e=>(h.value.settings.replace.textReplace.length>0&&h.value.settings.replace.textReplace.forEach(t=>{e=e.replaceAll(t.f,t.r)}),JSON.parse(e)),me=async()=>
2{if(S.value.related.length>0)S.value.related.forEach(e=>{L.value.next.push({show:!1,slug:e,data:structuredClone(n(x.value))})});else{const e=await ee(J[S.value.type]);e[S.value.category].forEach(e=>{e!=S.value.slug&&L.value.next.push({show:!1,slug:e,data:structuredClone(n(x.value))})});let t=5-L.value.next.length;if(t>0){Object.entries(e).map(e=>({value:e,sort:Math.random()})).sort((e,t)=>e.sort-t.sort).map(({value:e})=>e).forEach(e=>{e.forEach(e=>{e!=S.value.slug&&0!=t&&(L.value.next.push({show:!1,slug:e,data:structuredClone(n(x.value))}),t--)})})}}L.value.next[0].show=!0},ye=e=>e.replace(/<[^>]*>/g,"").trim(),fe=e=>e.trim().replace(/^<div>([\s\S]*?)<\/div>$/,"$1").replace(/^(<br>|<p><br><\/p>|\s)+|(<br>|<p><br><\/p>|\s)+$/g,""),we=e=>{const t=Array.from({length:e},(e,t)=>t+1);if(!Me())for(let a=t.length-1;a>0;a--){const e=Math.floor(Math.random()*(a+1));[t[a],t[e]]=[t[e],t[a]]}return t},be=(e,t,a)=>{if(e&&e.content){for(const t of e.content){let e=0;for(const a of t)"heading"===a.type?a.text=ye(a.text):"paragraph"===a.type?a.text=a.text?fe(a.text):"":"question"===a.type&&(a.class="",a.order=e,e++);t.at(-1).order=we(e),t.at(-1).selected=!1,t.at(-1).choice=null,t.at(-1).mark=!1}const l=e.content.filter(e=>!e.at(-1).answer);if("quiz"===e.type&&(e.answers=structuredClone(n(D.value)),e.results={show:!1,trivia:0,personality:{}},e.winner={length:0,answer:0,score:0,percentage:0}),t){let t=0;for(const e of l){const a={header:e[0],beforeImage:[],image:null,afterImage:[],questions:[],options:e.at(-1)};let n=0,s=!1;for(const t of e.slice(0,-1))0!==n&&("image"!==t.type||s?"image"===t.type&&s?a.afterImage.push(t):"question"===t.type?a.questions.push(t):s?a.afterImage.push(t):a.beforeImage.push(t):(a.image=t,s=!0)),n++;l[t]=a,t++}e.style=e.type}else e.style="longform";if(a){let t=parseInt(a);t=t<L.value.slide?L.value.slide:t,e.content=e.content.slice(0,t),e.items=l.slice(0,t)}else e.items=l}return e},ke=()=>{const e=window.isDevice?"mobile":"desktop",t=h.value.units[L.value.type][L.value.layout].options;if("order"in t&&""!=t.order[e]){const a=(e=>{let t=1,a=1;const l=[];return e.forEach(e=>{"c"==e?(l.push("paragraph"+t),t++):"i"==e&&(l.push("image"+a),a++)}),l})(t.order[e].split(""));S.value.content.forEach(e=>{let t=1,l=1;e.forEach(e=>{"type"in e&&("paragraph"==e.type?(e.type=e.type+t,t++):"image"==e.type&&(e.type=e.type+l,l++))}),e.sort((e,t)=>"type"in e&&"type"in t&&a.includes(e.type)?e.type===t.type?0:a.indexOf(e.type)-a.indexOf(t.type):0);for(let n=e.length-2;n>=1;n--)"type"in e[n]&&!a.includes(e[n].type)&&e.splice(n,1);e.forEach(e=>{"type"in e&&(e.type.includes("paragraph")?e.type="paragraph":e.type.includes("image")&&(e.type="image"))})})}},Ee=()=>{S.value.content.forEach(e=>{let t=1,a=1,l=!1;e.forEach((e,n)=>{"type"in e&&(e.key=n,"paragraph"==e.type?(e.position=t,a=1,t++):"image"==e.type&&(e.position=a,t=1,""!=e.src&&(l=!0),a++))}),e.at(0).class=0==l&&De()?"heading-bg bg-"+(0==L.value.bg&&(L.value.bg=Math.floor(10*Math.random())+1),L.value.bg++,L.value.bg%10+1):""}
2),S.value.content[0]&&S.value.content[0].forEach(e=>{"image"!=e.type&&"question"!=e.type||""==e.src||qe(e.src)})},qe=e=>{const t=new Image;window.isDevice?t.src=Ie(e,"s",-1):t.src=Ie(Te(e),"b",-1),t.onload=()=>{}},xe=()=>{if(O.value=structuredClone(n(z.value)),S.value.content[L.value.slide]){let e=1,t=1,a=1,l="";S.value.content[L.value.slide].forEach(n=>{n.slide=L.value.slide,"heading"==n.type?(l="heading",O.value.heading.push(n)):"image"==n.type?(l="image",n.position=t,O.value.image.push(n),t++):"question"==n.type?(l="question",O.value.question.push(n)):"heading"==l?(n.position=e,O.value.after.push(n),e++):(n.position=a,O.value.rest.push(n),l="rest",a++)}),L.value.random=[],O.value.question.length>0&&(L.value.random=(e=>{const t=Array.from({length:e},(e,t)=>t);return t.sort(()=>Math.random()-.5)})(O.value.question.length)),O.value.question=(e=>{let t=100,a=[];for(let n=0;n<e.length-1;n++){let l=Math.floor(Math.random()*(t-(e.length-n-1)))+1;a.push(l),t-=l}a.push(t),a.sort(()=>Math.random()-.5);let l=Math.floor(4701*Math.random())+300;return e.map((e,t)=>({...e,percentage:a[t],votes:Math.round(a[t]/100*l)}))})(O.value.question),(async()=>{const e=L.value.slide+1;S.value.content[e]&&S.value.content[e].forEach(e=>{"image"!=e.type&&"question"!=e.type||""==e.src||qe(e.src)})})()}},Se=(e=!1,t=!1)=>{let a="desktop";window.isDevice&&(a="mobile"),o();const l=document.getElementById("next-slide");let s=0;"0"!=i.query.button&&(s=parseInt(h.value.units[L.value.type][L.value.layout].options.delay[a])),(L.value.slide+1)%h.value.units[L.value.type][L.value.layout].options.reload[a]==0?0==t&&setTimeout(()=>{(e=>{const t=new URL(window.location);t.searchParams.set("slide",e),window.location.href=t.origin+t.pathname+t.search})(L.value.slide+2)},s):(M.value.slide=n(L.value.slide),M.value.status=!1,setTimeout(()=>{let t=1==e?L.value.slide:L.value.slide+1;if(S.value.content[t]){0==e&&(L.value.slide++,L.value.counter++);const t=new URL(window.location);t.searchParams.set("slide",L.value.slide+1),window.history.pushState(null,"",t.toString()),ze(!0),He(),Ue(),Be(),l&&l.classList.remove("processing")}},s))},De=()=>"quiz"==S.value.type,Me=()=>S.value.quiz,Ae=()=>{L.value.start=!0,Se(!0,!0)},Le=(e=!0)=>{if(Ge(),Qe(),e){if("1"==i.query.form){L.value.form=!0;const e=i.query.ml?i.query.ml:h.value.settings.subscriber.subscriberform;D.value[L.value.winner.answer].forEach(e=>{"form"==e.type&&(L.value.mailerlite=e.text)}),""==L.value.mailerlite&&(L.value.mailerlite=e),ze()}}else{"0"!=i.query.result&&(window.dispatchEvent(new Event("quiz_result_call")),L.value.mailerlite="",L.value.form=!1)}},_e=async()=>{const e={types:{nemesis:"https://mentaltype.com/what-the-nemesis-personality-type-means/",dreamer:"https://mentaltype.com/what-the-dreamer-personality-type-means/",fighter:"https://mentaltype.com/what-the-fighter-personality-type-means/",charmer:"https://mentaltype.com/what-the-charmer-personality-type-means/"},answers:[]};S.value.content.forEach(t=>{null!==t.result&&void 0!==t.result&&e.answers.push({question:t[0].text,answer:t.filter(e=>"question"==e.type)[t.result].text})});let t="";const a=i.query.type?e.types[i.query.type]:e.types.nemesis;e.answers.forEach(e=>{t+=`"${e.question}" - I answered: '${e.answer}.'\n`});let l=S.value.content.length>0?h.value.settings.insight.insightcommand:h.value.settings.insight.insightcommanddirect;const n=l.match(/[.,;:!?]?\s*[^.,;:!?]*\[\s*theme\s*\][^.,;:!?]*/i),s=n?n[0].trim():"",o=!!i.query.theme&&s.replaceAll("[theme]",i.query.theme.replaceAll("_"," "));l=o?l.replaceAll(s,o):l.replaceAll(s,""),l=l.replaceAll("[type]",a),S.value.content.length>0&&(l=l.replaceAll("[questions]",t)),l+="\n\nReturn the response as a JSON with a heading and description (can have multiple paragraphs) by following this format: { heading: '', description: '' }";const r=JSON.parse(await(async e=>{const t=[{role:"system",content:"You are a helpful assistant designed to output JSON."},{role:"user",content:e}];return(await V.chat.completions.create({messages:t,model:"gpt-4.1",response_format:{type:"json_object"}})).choices[0].message.content})(l));D.value=[],0===S.value.content.length&&(S.value.content[0]=[{type:"heading",text:"Daily Insight",desc:"",count:56,key:0},{new:!1,change:!1,answer:!0,hide:!1,key:0}]),S.value.content[0][0].text=r.heading,S.value.content[0][0].desc=r.description,D.value.push(S.value.content[0]),L.value.aicalled=!0},ze=(e=!1)=>{try{o(()=>{const t=window.isDevice&&e&&document.querySelector("section.header")?.offsetHeight||0;window.scrollTo({top:t,behavior:"instant"})})}catch{window.scrollTo(0,0)}},Oe=(e,t,a=1e3)=>{const l=window.scrollY,n=t-l,s=performance.now();requestAnimationFrame(function t(o){const r=o-s,i=Math.min(r/a,1);window.scrollTo(e,l+n*i),i<1&&requestAnimationFrame(t)})},Te=e=>-1==e.search("_small.")?e:e.replace("_small.","."),Ie=(e,t="s",a=-2)=>{let l=600;if("s"!=t&&(l="c"==t?1400:1e3),-2==a||(e+=-1==a?"?"+S.value.updated:"?"+L.value.next[a
2].data.updated),""!=e)return"https://wsrv.nl/?url="+e+"&w="+l+"&output=webp"},Ce=()=>{window.currentSlide++,"function"==typeof window.XDlongformtracking&&window.XDlongformtracking();let e=0;e=window.isDevice?h.value.units[L.value.type][L.value.layout].options.scrollReload.mobile:h.value.units[L.value.type][L.value.layout].options.scrollReload.desktop,window.currentSlide>=e&&window.currentSlide%e==0&&"function"==typeof window.XDlongformreload&&window.XDlongformreload()},Ne=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting&&e.isIntersecting){"H2"==e.target.tagName?(Ce(),L.value.slide++,L.value.slice-L.value.slide==5&&je()):(L.value.slide=0,L.value.current++,L.value.current>0&&L.value.next[L.value.current-1]&&""!=L.value.next[L.value.current-1].data.slug&&(document.title=L.value.next[L.value.current-1].data.title+" - "+h.value.settings.info.infoname,(e=>{const t=window.location.href.split("?"),a=t.length>1?"?"+t[1]:"",l=t[0].trim("/").split("/");""!=l[l.length-1]?l[l.length-1]=e:l[l.length-2]=e,window.history.pushState({},"",l.join("/")+a)})(L.value.next[L.value.current-1].data.slug))),Ne.unobserve(e.target)}})},{rootMargin:"0px"}),je=async()=>{await(async()=>{if(L.value.current<L.value.next.length){let e=await ee("data/"+L.value.next[L.value.current].slug);L.value.next[L.value.current].data=pe(JSON.stringify(e)),L.value.next[L.value.current].data.date=j(L.value.next[L.value.current].data.id).format("D MMMM YYYY"),L.value.next[L.value.current].data.user=re(L.value.next[L.value.current].data.user),L.value.next[L.value.current].show=!0,L.value.slice=L.value.next[L.value.current].data.content.length}})(),await o(),Ye()},Re=e=>{try{return e.forEach(e=>{Ne.observe(e)}),Ne}catch(t){console.log(t.message)}},Xe=()=>{0==L.value.extraAds&&(document.querySelectorAll(".extra-box > div").forEach(e=>{if(""!==e.innerHTML.trim()){let l=document.createElement("div");l.innerHTML=e.innerHTML,e.querySelectorAll("script").forEach(function(e){e.innerHTML=""});const n=l.getElementsByTagName("script");for(let e=0;e<n.length;e++){const l=document.createElement("script");for(let s=0;s<n[e].attributes.length;s++){var t=n[e].attributes[s].name,a=n[e].attributes[s].value;l.setAttribute(t,a)}l.innerHTML=n[e].innerHTML,document.body.appendChild(l)}l=null}}),L.value.extraAds=!0)},Pe=async()=>{if(await o(),void 0!==i.query.stickyads&&document.querySelectorAll(".slide").forEach(e=>{null!==e.querySelector(".mobile-unit.ad-300x250")&&e.querySelector(".mobile-unit.ad-300x250").classList.add("gosticky")}),S.value.content.length>0){const e=document.querySelectorAll(".box h1, .slides h2");window.addEventListener("scroll",Re(e)),"function"==typeof window.XDlongformcall&&window.XDlongformcall()}Xe()},Ye=async()=>{if(L.value.slice>0){window.removeEventListener("scroll",()=>{});const e=document.querySelectorAll(".box h1, .slides h2");window.addEventListener("scroll",Re(e)),"function"==typeof window.XDlongforminfiniteScroll&&window.XDlongforminfiniteScroll(),L.value.slide=L.value.slice}},He=()=>{"function"==typeof window.XDgallerytracking&&window.XDgallerytracking()};let Ue=async()=>{await o(),window.currentSlide++,"function"==typeof window.XDgalleryreload&&window.XDgalleryreload()};const Be=()=>{"function"==typeof window.XDgallerycall&&window.XDgallerycall()},Je=e=>{e.selected&&(Me()?S.value.results.personality[e.choice]?S.value.results.personality[e.choice]+=1:S.value.results.personality[e.choice]=1:e.mark&&S.value.results.trivia++)},Ge=()=>{if(L.value.slide>0){const e=new URLSearchParams(window.location.search).get("marks");if(e){const t=e.split("#");if(Me()){t[0].split("_").forEach((e,t)=>{S.value.results.personality[t]=parseInt(e)})}else S.value.results.trivia=parseInt(t[0])}}},$e=(e=!0,t=!1)=>{Ge();const a=t?L.value.slide+1:L.value.slide;S.value.items.forEach((t,l)=>{l>=a&&Je(e?t.options:t.at(-1))})},Fe=(e,t,a)=>{t.selected=!0,t.choice=e.order,t.mark=e.correct,Me()?e.class="selected":e.class=e.correct?"success":"error",$e(a),((e=!0)=>{if(e){if(Me()){const e=[];Object.keys(S.value.answers).forEach(t=>{e[t]=S.value.results.personality[t]??0}),G.value=e.join("_")}else G.value=S.value.results.trivia,G.value>S.value.items.length&&(G.value=S.value.items.length);const e=new URL(window.location.href);e.searchParams.set("marks",G.value.toString()),window.history.pushState({},"",e)}})(a)},Ve=()=>{S.value.content.length>0&&0==L.value.aicalled&&($e(O,!0),(()=>{if(Me()){const e=Object.keys(S.value.results.personality).reduce((e,t)=>
2S.value.results.personality[e>S.value.results.personality[t]?e:t]);S.value.winner.answer=e?parseInt(e):1}else{S.value.winner.length=S.value.items.length,S.value.winner.score=S.value.results.trivia;const e=S.value.results.trivia/S.value.winner.length*100,t=S.value.answers.length,a=100/t;let l=0,n=0;for(let s=0;s<t;s++){if(n=l+a,e>=Math.round(l)&&e<=Math.round(n)){S.value.winner.answer=s,S.value.winner.percentage=Math.ceil(e);break}l=n}}S.value.winner.score>S.value.winner.length&&(S.value.winner.score=S.value.winner.length),W()&&(S.value.winner.answer=0)})(),L.value.winner=S.value.winner,window.quizWinner=S.value.winner.answer),S.value.results.show=!0,L.value.end=!0,L.value.gonext=!0,ze(!0),"function"==typeof window.XDgalleryquizresult&&window.XDgalleryquizresult()},We=()=>{const e=window.isDevice?"mobile":"desktop";h.value.units[L.value.type][L.value.layout].options.rewardAdStart[e]?(F.value.status=!0,F.value.start=!0):Ae()},Qe=()=>{const e=window.isDevice?"mobile":"desktop";h.value.units[L.value.type][L.value.layout].options.rewardAd[e]?F.value.status=!0:Ve()},Ke=()=>{0==F.value.start&&(Q.value.button=!0),F.value=structuredClone(n($)),F.value.error=!0};window.addEventListener("reward_granted",()=>{1==F.value.start?(F.value=structuredClone(n($)),Ae()):(F.value=structuredClone(n($)),Ve())}),window.addEventListener("reward_failed",()=>{Ke()});return r(S,()=>{1==L.value.single&&0==L.value.loaded&&("gallery"==L.value.type||"quiz"==L.value.type?(xe(),(async()=>{await o(),S.value.content.length>0&&Be(),Xe()})()):Pe(),L.value.loaded=!0)},{deep:!0}),r(L,()=>{1!=L.value.single||"gallery"!=L.value.type&&"quiz"!=L.value.type||M.value.slide==L.value.slide||0!=M.value.status||(xe(),M.value.status=!0)},{deep:!0}),r(T,()=>{void 0===T.value&&(T.value="")}),{auth:d,ready:g,theme:v,site:h,brandingLocked:p,env:m,click:y,name:f,menu:w,tracking:L,trackingStatic:_,gallery:O,homeData:b,categoryData:k,postData:E,single:S,search:T,postCount:I,category:C,categories:N,users:R,answers:D,queryParams:Q,postAdmin:()=>{if(null!=d.value){const e="quiz"==S.value.type?"quizzes":S.value.type+"s";return d.value+"/"+e+"/edit/"+S.value.id}},prepareCSS:e=>{let t="";return"sans-serif"==e.font&&(t+="html { font-family: sans-serif; }"),t+=se(".longform h1",e.longform.title,"m"),t+=se(".longform h2",e.longform.slide,"m"),t+=se(".longform .intro p, .longform .slide p",e.longform.body,"m"),t+=se(".gallery h1",e.gallery.title,"m"),t+=se(".gallery h2",e.gallery.slide,"m"),t+=se(".gallery .intro p, .gallery .slide p",e.gallery.body,"m"),t+=se(".next-slide",e.gallery.button,"m"),t+=se(".block-cat-three h1",e.block.heading,"m"),t+=se(".block-latest .holder .box h1, .block-cat-one .holder .box h1",e.block.big,"m"),t+=se(".block-cat-three h3, .block-cat-four h3",e.block.small,"m"),t+=se(".block-cat-one .holder .box p, .block-latest .holder .box .description",e.block.body,"m"),t+="@media (min-width: 768px) {",t+=se(".longform h1",e.longform.title,"d"),t+=se(".longform h2",e.longform.slide,"d"),t+=se(".longform .intro p, .longform .slide p",e.longform.body,"d"),t+=se(".gallery h1",e.gallery.title,"d"),t+=se(".gallery h2",e.gallery.slide,"d"),t+=se(".gallery .intro p, .gallery .slide p",e.gallery.body,"d"),t+=se(".next-slide",e.gallery.button,"d"),t+=se(".block-cat-three h1",e.block.heading,"d"),t+=se(".block-latest .holder .box h1, .block-cat-one .holder .box h1",e.block.big,"d"),t+=se(".block-cat-three h3, .block-cat-four h3",e.block.small,"d"),t+=se(".block-cat-one .holder .box p, .block-latest .holder .box .description",e.block.body,"d"),t+="}",t},nextButtonCSS:e=>{let t="",a=h.value.units[L.value.type][L.value.layout].options.buttonTopGap[e],l=h.value.units[L.value.type][L.value.layout].options.buttonBottomGap[e];return 0!=a&&(t+="margin-top: "+a+"px;"),0!=a&&(t+="margin-bottom: "+l+"px;"),t+="--gallerybutton: "+h.value.settings.theme.gallerybutton+";",t+="--gallerybuttonhover: "+h.value.settings.theme.gallerybuttonhover+";",t},updateTheme:K,setTheme:e=>{""==e?localStorage.removeItem("theme"):localStorage.setItem("theme",e),K()},getTheme:()=>{if(0!=h.value.settings.theme.themedark)return"theme"in localStorage?(v.value=localStorage.theme,localStorage.theme):!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?(v.value="dark","dark"):(v.value="light","light");v.value="light"},logoLink:()=>{let e={link:"/",custom:!1};return h.value.settings.logo.logoLink&&""!=h.value.settings.logo.logoLink&&(e.link=h.value.settings.logo.logoLink,e.custom=!0),e},setType:Z,getHome:async()=>
2{if(!("home"in _.value)){const e=await ee("settings/siteArticles");console.log("[DEBUG] siteArticles raw:",e);const t=(e=>{if(!e||"object"!=typeof e)return null;const t=te(window.location.href);if(!t)return null;const a=Object.keys(e).find(e=>te(e)==t);return a?e[a]:null})(e);console.log("[DEBUG] matched articles for this domain:",t);const a=(e=>{if(!Array.isArray(e)||0==e.length)return[];const t=[];let a=0;return h.value.settings.home.homedesign.forEach(l=>{const n=e.slice(a,a+l.count);if(a+=l.count,n.length>0){const e=n.map(e=>e.id).filter(e=>e),a=n.map(e=>e.slug).filter(e=>e);t.push({id:l.id,ids:e.length>0?e:void 0,slugs:0===e.length&&a.length>0?a:void 0,order:n.map(e=>e.slug||e.id)})}}),t})(t);console.log("[DEBUG] built article sections:",a);const l={status:[B.value.status.published],type:[B.value.type.post,B.value.type.quiz],sections:[]};a.length>0?(a.forEach((e,t)=>{l.sections.push({id:e.id,ids:e.ids,slugs:e.slugs,limit:h.value.settings.home.homedesign[t].count,uncategorized:h.value.settings.theme.showuncategorized})}),console.log("[DEBUG] D1 params with siteArticles:",JSON.stringify(l,null,2)),b.value=await ie(JSON.stringify(l),"multi"),console.log("[DEBUG] D1 response:",b.value),console.log("[DEBUG] D1 response stringified:",JSON.stringify(b.value,null,2)),Array.isArray(b.value)?b.value=b.value.map(e=>{const t=a.find(t=>t.id==e.id);return{...e,data:le(e.data,t?.order||[])}}):(console.error("[DEBUG] D1 returned non-array response:",b.value),b.value=[])):(console.log("[DEBUG] No siteArticles match, using default homedesign"),h.value.settings.home.homedesign.forEach(e=>{l.sections.push({id:e.id,category:U.value.length>0?U.value:[e.category],featured:e.featured,limit:e.count,uncategorized:h.value.settings.theme.showuncategorized})}),console.log("[DEBUG] D1 params (default):",JSON.stringify(l,null,2)),b.value=await ie(JSON.stringify(l),"multi"),console.log("[DEBUG] D1 response (default):",b.value)),_.value.home=!0}},getHomeData:e=>b.value[e]?{title:h.value.settings.home.homedesign[e].text,data:ue(b.value[e].data)}:{title:"",data:[]},getCategory:async e=>{const t="category_"+e.replaceAll("-","_");if(void 0!==oe(e)){if(!(t in _.value)){const a={status:[B.value.status.published],type:[B.value.type.post,B.value.type.quiz],sections:[]};let l=0;h.value.settings.category.categorydesign.forEach(t=>{a.sections.push({id:t.id,category:[e],limit:t.count,offset:l,uncategorized:h.value.settings.theme.showuncategorized}),l+=parseInt(t.count)}),k.value[t]=await ie(JSON.stringify(a),"multi"),_.value[t]=!0}(e=>{let t=0;h.value.settings.category.categorydesign.forEach(e=>{t+=e.count});let a=0;k.value[e].forEach(e=>{a+=e.data.length}),t==a?(L.value.loadMore=!0,L.value.offset=t):L.value.loadMore=!1})(t)}else L.value.errorpage=!0},getCategoryData:(e,t)=>{const a=k.value[e].findIndex(e=>e.id==t);return a>=0?{title:h.value.settings.category.categorydesign[a].text,data:ue(k.value[e][a].data)}:{title:"",data:[]}},findCategoryData:(e,t)=>{const a=h.value.categories.filter(t=>t.id==e);return a.length>0?a[0][t]:""},getSearch:ge,getMoreSearch:async()=>{L.value.searchMore=!0,L.value.offset+=L.value.limit;const e={search:T.value,status:[B.value.status.published],type:[B.value.type.post,B.value.type.page],sections:[]};e.sections.push({id:"column-full",limit:L.value.limit,offset:L.value.offset,uncategorized:h.value.settings.theme.showuncategorized});const t=await ie(JSON.stringify(e),"multi");ue(t[0].data).forEach(e=>{E.value.push(e)}),I.value=E.value.length,L.value.searchMore=!1,L.value.loadMore=t[0].data.length==L.value.limit},getCategoryInfo:e=>{C.value=oe(e)},getSingle:async e=>{if(!F.value.status){Z(i.query.slide),window.layout||(window.layout=void 0===i.query.layout||""==i.query.layout?"default":i.query.layout),L.value.layout=window.layout;let l={};try{"undefined"!=typeof window&&window.XD&&window.XD.content&&(l=structuredClone(n(window.XD.content)),window.XD.content={})}catch(a){l={}}if(l&&0!==Object.keys(l).length||(l=await ee("data/"+e),l&&(l=pe(JSON.stringify(l)))),void 0!==l&&Object.keys(l).length>0){const e=structuredClone(n(x.value));if(Object.keys(e).forEach(t=>{"content"==t?l[t].forEach((a,n)=>{const s=!(!a[a.length-1].hide||1!=a[a.length-1].hide),o=!(!a[a.length-1].answer||1!=a[a.length-1].answer);if(0==s)if(1==o)D.value.push(a);else{let n=0;const s=[];
2a.forEach(e=>{e.type&&"question"==e.type?(L.value.hidden.includes(n)||s.push(e),n++):s.push(e)}),s.at(-1).button="quiz"!=l.type,e[t].push(s)}else L.value.hidden.push(n)}):e[t]=l[t]}),window.slideCount=e.content.length,e.content=e.content.map(e=>e.filter(e=>!("paragraph"===e.type&&e.text&&""===e.text.replace(/<[^>]*>/g,"")))),S.value=be(e,i.query.slide,i.query.length),W()&&!i.query.type)L.value.errorpage=!0;else if(S.value.title=(e=>{let t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""})(S.value.title),S.value.summary=(t=S.value.summary,0==h.value.settings.admin.posteditor?t.replace(/<\/?[^>]+(>|$)/g,""):t),S.value.date=j(S.value.id).format("D MMMM YYYY"),S.value.user=re(S.value.user),C.value=oe(S.value.category),L.value.single=!0,(()=>{if("quiz"==S.value.type){L.value.type="quiz",window.type=L.value.type;const e=window.isDevice?"mobile":"desktop";1==h.value.units[L.value.type][L.value.layout].options.showIntro[e]?L.value.start=!0:0==L.value.slide&&(L.value.start=!1)}})(),L.value.slice=S.value.content.length,(()=>{const e=L.value.type;let t=L.value.layout;void 0===h.value.units[e][t]&&(t="default",L.value.layout="default",L.value.nolayout=!0),Object.keys(h.value.units[e][t]).forEach(a=>{Object.keys(h.value.units[e][t][a]).forEach(l=>{Object.keys(h.value.units[e][t][a][l]).forEach(n=>{0==h.value.units[e][t][a][l][n].type&&L.value.extraUnits[l].push(h.value.units[e][t][a][l][n])})})}),L.value.extra=!0})(),"page"!=S.value.type&&"longform"==L.value.type&&h.value.settings.theme.infiniteLongform?me():"page"==S.value.type||"gallery"!=L.value.type&&"quiz"!=L.value.type||!h.value.settings.theme.infiniteGallery||W()||me(),(()=>{if(S.value.editor){const e=document.createElement("div");e.innerHTML=S.value.html;const t=[];let a="";const l=()=>{a.trim()&&(t.push({type:"text",text:a}),a="")},n=e=>e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):"";for(const s of Array.from(e.childNodes))if(s.nodeType===Node.ELEMENT_NODE)if(s.classList.contains("embed-container")){l();const e=s.getAttribute("data-service"),a=s.getAttribute("data-source"),n=s.querySelector(".embed-caption"),o=n?.textContent?.trim()||null;t.push({type:"embed",embed:e,link:a,caption:o})}else if("pre"===s.tagName.toLowerCase()){l();const e=s.querySelector("code");t.push({type:"code",text:n(e?e.innerHTML:s.innerHTML)})}else a+=s.outerHTML;else a+=s.textContent;l(),S.value.html=t}})(),ke(),Ee(),0===S.value.content.length&&W()){window.dispatchEvent(new Event("quiz_end_call")),_e();"0"!=i.query.button||(L.value.nextloading=!0,Le(),L.value.nextloading=!1)}}else L.value.errorpage=!0}var t},menuToggle:()=>{w.value=!w.value},scrollTop:ze,cleanTracking:()=>{F.value.status||(window.slideCount=0,L.value=structuredClone(n(A.value)),S.value=l(structuredClone(n(x.value))),E.value=[],I.value=0)},nextSlide:Se,nextGallery:()=>{let e=h.value.settings.insight.insightslug;W()||(e=De()?"quiz-"+L.value.next[0].slug:L.value.next[0].slug);const t=new URL(window.location.href);t.hash="",t.searchParams.set("slide","1"),t.searchParams.delete("marks"),W()?window.location.href=t.origin+t.pathname+t.search:u.push("/"+e+"/"+t.search)},startQuiz:()=>{We()},endQuiz:Le,markAnswer:e=>{S.value.content[L.value.slide].at(-1).button=!0;const t=document.querySelector(".q-"+e);L.value.answer=S.value.content[L.value.slide][0].desc,Me()?(t.classList.add("active"),S.value.content[L.value.slide].result=e):(S.value.content[L.value.slide].result=O.value.question[e].correct,O.value.question.forEach((e,t)=>{1==e.correct&&document.querySelector(".q-"+t).classList.add("correct")}),0==O.value.question[e].correct?(t.classList.add("wrong"),setTimeout(()=>{document.querySelector(".answer").classList.add("wrong")},10)):(t.classList.add("correct"),setTimeout(()=>{document.querySelector(".answer").classList.add("correct")},10))),Fe(S.value.items[L.value.slide].questions[e],S.value.items[L.value.slide].options,!0);const a=void 0!==i.query.length?parseInt(i.query.length):S.value.content.length,l=window.isDevice?"mobile":"desktop",n=parseInt(h.value.units[L.value.type][L.value.layout].options.delay[l]),s="0"!=i.query.button;L.value.slide==S.value.content.length-1||L.value.slide==a-1?(window.dispatchEvent(new Event("quiz_end_call")),W()&&_e(),s||(L.value.nextloading=!0,setTimeout(()=>{Le(),L.value.nextloading=!1},n))):s||(L.value.nextloading=!0,setTimeout(()=>{Se(),L.value.nextloading=!1},n)),De()&&h.value.settings.quiz.quizstyle&&o(()=>{const e=document.querySelector(".questions")?.offsetHeight||0,t=document.querySelector(".next-slide");if(t){const a=t.getBoundingClientRect(),l=window.pageYOffset||document.documentElement.scrollTop,n=a.top+l-window.innerHeight/2+a.height/2;Oe(e,n,1e3)}})},longfromScroll:Re,bigImage:Te,wsrvImage:Ie,metaDesc:()=>{let e=[];return""==S.value.summary.trim()?S.value.content.length>
20?S.value.content.slice(-10).forEach(t=>{t.forEach(t=>{"heading"==t.type&&e.push(t.text)})}):e.push(S.value.title):e.push(S.value.summary),e.join(", ")+"."},metaImage:()=>{let e="";return""==S.value.image?S.value.content.length>=0&&S.value.content.slice(-1).forEach(t=>{t.forEach(t=>{"image"==t.type&&(e=Te(t.src))})}):e=Te(S.value.image),e},getExceprt:e=>e.split(/\s+/).slice(0,50).join(" ")+" ...",isQuiz:De,isPersonality:Me,findSearchResult:de,findPostResult:ve,getMorePost:async()=>{L.value.searchMore=!0,L.value.offset+=L.value.limit;const e={status:[B.value.status.published],type:[B.value.type.post,B.value.type.quiz],limit:L.value.limit,offset:L.value.offset,uncategorized:h.value.settings.theme.showuncategorized},t=await ie(JSON.stringify(e),"list");ue(t).forEach(e=>{E.value.push(e)}),I.value=E.value.length,L.value.searchMore=!1,L.value.loadMore=t.length==L.value.limit},getMoreCategoryPost:async()=>{L.value.searchMore=!0;const e={status:[B.value.status.published],type:[B.value.type.post,B.value.type.quiz],category:[i.params.category],limit:L.value.limit,offset:L.value.offset,uncategorized:h.value.settings.theme.showuncategorized},t=await ie(JSON.stringify(e),"list");ue(t).forEach(e=>{E.value.push(e)}),I.value=E.value.length,L.value.searchMore=!1,L.value.loadMore=t.length==L.value.limit,L.value.offset+=L.value.limit},getContentDirection:()=>{let e=!1;const t=window.location.pathname.match(/-(\w{2})(?:\/|\?|$)/),a=t?t[1]:null;return null!==a&&h.value.settings.openai.language&&h.value.settings.openai.language.forEach(t=>{a.toUpperCase()==t.r&&"rtl"==t.a&&(e=!0)}),e},prepareHTML:e=>(e=e||"",1==h.value.settings.admin.posteditor&&(e=(e=e.replace(/<p>\s*(<br\s*\/?>|\n)*\s*<\/p>/g,"")).replace(/^<p>/,"").replace(/<\/p>$/,"")),e=e.replace(/\n+/g,"</p>")),isHTML:e=>/<\/?[a-z][\s\S]*>/i.test(e),getCaption:e=>e.link&&""!=e.link?`<a href="${e.link}" target="_blank">${e.text}</a>`:e.text,isAuthorShow:e=>h.value.settings.theme.showauthor&&void 0!==h.value.units[L.value.type][L.value.layout].options.showAuthor[e]&&0==h.value.units[L.value.type][L.value.layout].options.showAuthor[e],getAuthorName:e=>e&&""!=e.trim()?"By&nbsp; "+e:"",reward:F,cancelReward:Ke,viewReward:()=>{F.value.loading=!0,window.dispatchEvent(new Event("reward_ad_call"))},submitSubscriber:()=>{L.value.mailerlite,0},isDailyInsight:W}}),B=["src","alt","width","height"],J=["src","alt","width","height"],G={__name:"BlockLogo",props:{status:Boolean,header:Boolean},setup(t){const a=e(),l=U(),n=s(()=>a.query.logo?"!max-h-fit !-my-1.5":""),o=s(()=>{const e=parseInt(l.site.settings.logo.mobileWidth)||40,t=parseInt(l.site.settings.logo.mobileHeight)||40;return Math.max(e,t)});i(()=>{a.query.logo&&!l.brandingLocked&&(l.site.settings.logo.logosite.src=a.query.logo,l.site.settings.logo.logositedark.src=a.query.logo,l.site.settings.logo.mobileWidth=a.query.logow?parseInt(a.query.logow):40,l.site.settings.logo.mobileHeight=a.query.logoh?parseInt(a.query.logoh):40),a.query.site&&!l.brandingLocked&&(l.site.settings.info.infoname=a.query.site)});const r=e=>e?l.site.settings.info.infoname+" Logo":l.site.settings.info.infoname+" Logo Footer";return(e,a)=>t.status&&""!=d(l).site.settings.logo.logosite.src&&"light"==d(l).theme?(g(),u("img",{key:0,class:h(["logo",[d(l).name,n.value]]),src:d(l).site.settings.logo.logosite.src,alt:r(t.header),width:t.header?o.value:d(l).site.settings.logo.mobileWidth,height:t.header?o.value:d(l).site.settings.logo.mobileHeight,style:v(t.header?{objectFit:"contain"}:void 0)},null,14,B)):t.status&&""!=d(l).site.settings.logo.logositedark.src&&"dark"==d(l).theme?(g(),u("img",{key:1,class:h(["logo",[d(l).name,n.value]]),src:d(l).site.settings.logo.logositedark.src,alt:r(t.header),width:t.header?o.value:d(l).site.settings.logo.mobileWidth,height:t.header?o.value:d(l).site.settings.logo.mobileHeight,style:v(t.header?{objectFit:"contain"}:void 0)},null,14,J)):c("",!0)}},$={class:"container"},F=["href"],V={class:"features"},W=["href"],Q={__name:"SiteHeader",setup(e){const t=U();t.updateTheme();const a=e=>{t.setTheme(e)},l=window.isDevice,n=()=>{window.__uspapi?.("displayUspUi")};
2return(e,s)=>{const o=p("router-link"),r=p("RouterLink");return g(),u("section",{class:h(["header",{nostickyheader:!d(t).site.settings.theme.stickyheader,stickytop:!0===d(t).tracking.stickyTop}])},[m("nav",$,[0==d(t).logoLink().custom?(g(),y(o,{key:0,to:d(t).logoLink().link,class:"sitelogo"},{default:f(()=>[w(G,{status:d(l),header:!0},null,8,["status"]),w(G,{status:!d(l),header:!0},null,8,["status"])]),_:1},8,["to"])):(g(),u("a",{key:1,href:d(t).logoLink().link,class:"sitelogo"},[w(G,{status:d(l),header:!0},null,8,["status"]),w(G,{status:!d(l),header:!0},null,8,["status"])],8,F)),m("div",{class:h(["menu",{show:d(t).menu}])},[(g(!0),u(b,null,k(d(l)?d(t).site.settings.menu.menufooter:d(t).site.settings.menu.menuheader,e=>(g(),y(o,{key:e,to:{path:"category"==e.type?"/category/"+e.link:"/"+e.link}},{default:f(()=>[E(q(e.id),1)]),_:2},1032,["to"]))),128)),d(l)?(g(),u("button",{key:0,onClick:n},[...s[3]||(s[3]=[E(" DO NOT SELL",-1),m("br",null,null,-1),E(" MY PERSONAL INFORMATION ",-1)])])):c("",!0)],2),m("div",V,["single"==e.$route.name&&null!==d(t).auth?(g(),u("a",{key:0,href:d(t).postAdmin()},[w(d(x))],8,W)):c("",!0),1==d(t).site.settings.theme.themedark?(g(),u(b,{key:1},["dark"==d(t).theme?(g(),y(d(S),{key:0,onClick:s[0]||(s[0]=e=>a("light"))})):(g(),y(d(D),{key:1,onClick:s[1]||(s[1]=e=>a("dark"))}))],64)):c("",!0),w(r,{to:"/search/","aria-label":"Search ..."},{default:f(()=>[w(d(M))]),_:1}),w(d(A),{class:h(["mobile-menu",{active:d(t).menu}]),onClick:s[2]||(s[2]=e=>d(t).menuToggle())},null,8,["class"])])])],2)}}},K={class:"footer"},Z={class:"container"},ee={class:"copyright"},te={key:0},ae={__name:"SiteFooter",setup(e){const t=U(),a=window.isDevice,l=()=>{window.__uspapi?.("displayUspUi")};return(e,n)=>{const s=p("router-link");return g(),u("section",K,[m("div",Z,[m("span",ee," All Rights Reserved. "+q(d(t).site.settings.info.infoname)+" © "+q(d(j)().format("YYYY")),1),d(a)?c("",!0):(g(),u("nav",te,[(g(!0),u(b,null,k(d(t).site.settings.menu.menufooter,e=>(g(),y(s,{key:e,to:{path:"category"==e.type?"/category/"+e.link:"/"+e.link}},{default:f(()=>[E(q(e.id),1)]),_:2},1032,["to"]))),128)),m("button",{onClick:l}," DO NOT SELL MY PERSONAL INFORMATION ")]))])])}}},le={__name:"App",setup(e){const t=U();return(e,a)=>(g(),u(b,null,[m("header",null,[1==d(t).ready?(g(),y(Q,{key:0})):c("",!0)]),m("main",{class:h(["min-h-screen",{nostickyheader:d(t).site.settings&&!d(t).site.settings.theme.stickyheader}])},[w(d(L),null,{default:f(({Component:e,route:a})=>[(g(),u("div",{key:a.fullPath},[1==d(t).ready?(g(),y(_(e),{key:0})):c("",!0)]))]),_:1})],2),m("footer",null,[1==d(t).ready?(g(),y(ae,{key:0})):c("",!0)])],64))}},ne={},se=function(e,t,a){let l=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),a=e?.nonce||e?.getAttribute("nonce");n=t.map(e=>{if((e=function(e){return"/"+e}(e))in ne)return;ne[e]=!0;const t=e.endsWith(".css"),l=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${l}`))return;const n=document.createElement("link");return n.rel=t?"stylesheet":"modulepreload",t||(n.as="script"),n.crossOrigin="",n.href=e,a&&n.setAttribute("nonce",a),document.head.appendChild(n),t?new Promise((t,a)=>{n.addEventListener("load",t),n.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${e}`)))}):void 0}),l=Promise.all(n.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}var n;function s(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return l.then(t=>{for(const e of t||[])"rejected"===e.status&&s(e.reason);return e().catch(s)})};var oe={};const re=[{path:"/",name:"home",component:()=>se(()=>import("./HomeView-DLfdGMhJ.js"),__vite__mapDeps([0,1,2,3,4,5]))},{path:"/:slug/",name:"single",component:()=>se(()=>import("./SingleView-CX6GHymp.js"),__vite__mapDeps([6,2,3,1,7,5,8]))},{path:"/:lang?/:slug/",name:"single",component:()=>se(()=>import("./SingleView-CX6GHymp.js"),__vite__mapDeps([6,2,3,1,7,5,8]))},{path:"/search/:search?",name:"search",component:()=>se(()=>import("./SearchView-BmBd2bFr.js"),__vite__mapDeps([9,2,3,1,5]))},{path:"/category/:category",name:"category",component:()=>se(()=>import("./CategoryView-DGVLa_ng.js"),__vite__mapDeps([10,2,3,1,4,7,5]))},{path:"/articles/",name:"articles",component:()=>se(()=>import("./LatestView-DhfG5LbN.js"),__vite__mapDeps([11,1,2,3,7,5]))}],ie=z({history:O(void 0!==oe.VITE_FOLDER&&""!=oe.VITE_FOLDER?"/"+oe.VITE_FOLDER+"/":"/"),routes:re});ie.beforeEach(async(e,t,a)=>{if(e.path.includes("/quiz-")){if(!e.query.slide)return void a({path:e.path,query:{...e.query,slide:1}})}const l=U();l.menu=!1,l.scrollTop(),l.cleanTracking(),l.click++,a()});const ue=T(le);ue.use(N()),ue.use(I,{preLoad:4}),ue.use(ie),ue.mount("#app");export{U as u};

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.