vendor: 4,448 bytes, lines 1-8
1var bu=Object.defineProperty;var wu=(e,t,n)=>t in e?bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ms=(e,t,n)=>wu(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** 2* @vue/shared v3.5.35 3* (c) 2018-present Yuxi (Evan) You and Vue contributors 4* @license MIT 5**/function vr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Fe={},jn=[],Ft=()=>{},Sl=()=>!1,ro=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),io=e=>e.startsWith("onUpdate:"),Ze=Object.assign,xr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_u=Object.prototype.hasOwnProperty,Le=(e,t)=>_u.call(e,t),ve=Array.isArray,Fn=e=>_s(e)==="[object Map]",lo=e=>_s(e)==="[object Set]",ei=e=>_s(e)==="[object Date]",we=e=>typeof e=="function",ze=e=>typeof e=="string",gt=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",$l=e=>(je(e)||we(e))&&we(e.then)&&we(e.catch),Cl=Object.prototype.toString,_s=e=>Cl.call(e),ku=e=>_s(e).slice(8,-1),El=e=>_s(e)==="[object Object]",ao=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rs=vr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),uo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Su=/-\w/g,ft=uo(e=>e.replace(Su,t=>t.slice(1).toUpperCase())),$u=/\B([A-Z])/g,mn=uo(e=>e.replace($u,"-$1").toLowerCase()),co=uo(e=>e.charAt(0).toUpperCase()+e.slice(1)),To=uo(e=>e?`on${co(e)}`:""),jt=(e,t)=>!Object.is(e,t),Ds=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Al=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},fo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Cu=e=>{const t=ze(e)?Number(e):NaN;return isNaN(t)?e:t};let ti;const po=()=>ti||(ti=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lt(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=ze(s)?Ru(s):lt(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(ze(e)||je(e))return e}const Eu=/;(?![^(]*\))/g,Au=/:([^]+)/,Iu=/\/\*[^]*?\*\//g;function Ru(e){const t={};return e.replace(Iu,"").split(Eu).forEach(n=>{if(n){const s=n.split(Au);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ie(e){let t="";if(ze(e))t=e;else if(ve(e))for(let n=0;n<e.length;n++){const s=Ie(e[n]);s&&(t+=s+" ")}else if(je(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Tu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Pu=vr(Tu);function Il(e){return!!e||e===""}function Ou(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=ks(e[s],t[s]);return n}function ks(e,t){if(e===t)return!0;let n=ei(e),s=ei(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=gt(e),s=gt(t),n||s)return e===t;if(n=ve(e),s=ve(t),n||s)return n&&s?Ou(e,t):!1;if(n=je(e),s=je(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!ks(e[i],t[i]))return!1}}return String(e)===String(t)}function Mu(e,t){return e.findIndex(n=>ks(n,t))}const Rl=e=>!!(e&&e.__v_isRef===!0),k=e=>ze(e)?e:e==null?"":ve(e)||je(e)&&(e.toString===Cl||!we(e.toString))?Rl(e)?k(e.value):JSON.stringify(e,Tl,2):String(e),Tl=(e,t)=>Rl(t)?Tl(e,t.value):Fn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[Po(s,r)+" =>"]=o,n),{})}:lo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Po(n))}:gt(t)?Po(t):je(t)&&!ve(t)&&!El(t)?String(t):t,Po=(e,t="")=>{var n;return gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** 6* @vue/reactivity v3.5.35 7* (c) 2018-present Yuxi (Evan) You and Vue contributors 8* @license MIT
vendor: 16,309 bytes, line 9
9**/let Qe;class Pl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Qe&&(Qe.active?(this.parent=Qe,this.index=(Qe.scopes||(Qe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Qe;try{return Qe=this,t()}finally{Qe=n}}}on(){++this._on===1&&(this.prevScope=Qe,Qe=this)}off(){if(this._on>0&&--this._on===0){if(Qe===this)Qe=this.prevScope;else{let t=Qe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Ol(e){return new Pl(e)}function Ml(){return Qe}function Nu(e,t=!1){Qe&&Qe.cleanups.push(e)}let De;const Oo=new WeakSet;class Nl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Qe&&(Qe.active?Qe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Oo.has(this)&&(Oo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||jl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ni(this),Fl(this);const t=De,n=Et;De=this,Et=!0;try{return this.fn()}finally{Dl(this),De=t,Et=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)br(t);this.deps=this.depsTail=void 0,ni(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Oo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Jo(this)&&this.run()}get dirty(){return Jo(this)}}let Ll=0,is,ls;function jl(e,t=!1){if(e.flags|=8,t){e.next=ls,ls=e;return}e.next=is,is=e}function gr(){Ll++}function yr(){if(--Ll>0)return;if(ls){let t=ls;for(ls=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;is;){let t=is;for(is=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Fl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Dl(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),br(s),Lu(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Jo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Bl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Bl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ps)||(e.globalVersion=ps,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Jo(e))))return;e.flags|=2;const t=e.dep,n=De,s=Et;De=e,Et=!0;try{Fl(e);const o=e.fn(e._value);(t.version===0||jt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{De=n,Et=s,Dl(e),e.flags&=-3}}function br(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)br(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Lu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Et=!0;const Ul=[];function Zt(){Ul.push(Et),Et=!1}function Xt(){const e=Ul.pop();Et=e===void 0?!0:e}function ni(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=De;De=void 0;try{t()}finally{De=n}}}let ps=0;class ju{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!De||!Et||De===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==De)n=this.activeLink=new ju(De,this),De.deps?(n.prevDep=De.depsTail,De.depsTail.nextDep=n,De.depsTail=n):De.deps=De.depsTail=n,Vl(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=De.depsTail,n.nextDep=void 0,De.depsTail.nextDep=n,De.depsTail=n,De.deps===n&&(De.deps=s)}return n}trigger(t){this.version++,ps++,this.notify(t)}notify(t){gr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{yr()}}}function Vl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Vl(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const qs=new WeakMap,Cn=Symbol(""),Qo=Symbol(""),ms=Symbol("");function ot(e,t,n){if(Et&&De){let s=qs.get(e);s||qs.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new wr),o.map=s,o.key=n),o.track()}}function Yt(e,t,n,s,o,r){const i=qs.get(e);if(!i){ps++;return}const l=a=>{a&&a.trigger()};if(gr(),t==="clear")i.forEach(l);else{const a=ve(e),f=a&&ao(n);if(a&&n==="length"){const c=Number(s);i.forEach((m,v)=>{(v==="length"||v===ms||!gt(v)&&v>=c)&&l(m)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),f&&l(i.get(ms)),t){case"add":a?f&&l(i.get("length")):(l(i.get(Cn)),Fn(e)&&l(i.get(Qo)));break;case"delete":a||(l(i.get(Cn)),Fn(e)&&l(i.get(Qo)));break;case"set":Fn(e)&&l(i.get(Cn));break}}yr()}function Fu(e,t){const n=qs.get(e);return n&&n.get(t)}function Tn(e){const t=Te(e);return t===e?t:(ot(t,"iterate",ms),xt(e)?t:t.map(At))}function mo(e){return ot(e=Te(e),"iterate",ms),e}function Nt(e,t){return en(e)?Hn(Qt(e)?At(t):t):At(t)}const Du={__proto__:null,[Symbol.iterator](){return Mo(this,Symbol.iterator,e=>Nt(this,e))},concat(...e){return Tn(this).concat(...e.map(t=>ve(t)?Tn(t):t))},entries(){return Mo(this,"entries",e=>(e[1]=Nt(this,e[1]),e))},every(e,t){return Ht(this,"every",e,t,void 0,arguments)},filter(e,t){return Ht(this,"filter",e,t,n=>n.map(s=>Nt(this,s)),arguments)},find(e,t){return Ht(this,"find",e,t,n=>Nt(this,n),arguments)},findIndex(e,t){return Ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ht(this,"findLast",e,t,n=>Nt(this,n),arguments)},findLastIndex(e,t){return Ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return No(this,"includes",e)},indexOf(...e){return No(this,"indexOf",e)},join(e){return Tn(this).join(e)},lastIndexOf(...e){return No(this,"lastIndexOf",e)},map(e,t){return Ht(this,"map",e,t,void 0,arguments)},pop(){return Zn(this,"pop")},push(...e){return Zn(this,"push",e)},reduce(e,...t){return si(this,"reduce",e,t)},reduceRight(e,...t){return si(this,"reduceRight",e,t)},shift(){return Zn(this,"shift")},some(e,t){return Ht(this,"some",e,t,void 0,arguments)},splice(...e){return Zn(this,"splice",e)},toReversed(){return Tn(this).toReversed()},toSorted(e){return Tn(this).toSorted(e)},toSpliced(...e){return Tn(this).toSpliced(...e)},unshift(...e){return Zn(this,"unshift",e)},values(){return Mo(this,"values",e=>Nt(this,e))}};function Mo(e,t,n){const s=mo(e),o=s[t]();return s!==e&&!xt(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const Bu=Array.prototype;function Ht(e,t,n,s,o,r){const i=mo(e),l=i!==e&&!xt(e),a=i[t];if(a!==Bu[t]){const m=a.apply(e,r);return l?At(m):m}let f=n;i!==e&&(l?f=function(m,v){return n.call(this,Nt(e,m),v,e)}:n.length>2&&(f=function(m,v){return n.call(this,m,v,e)}));const c=a.call(i,f,s);return l&&o?o(c):c}function si(e,t,n,s){const o=mo(e),r=o!==e&&!xt(e);let i=n,l=!1;o!==e&&(r?(l=s.length===0,i=function(f,c,m){return l&&(l=!1,f=Nt(e,f)),n.call(this,f,Nt(e,c),m,e)}):n.length>3&&(i=function(f,c,m){return n.call(this,f,c,m,e)}));const a=o[t](i,...s);return l?Nt(e,a):a}function No(e,t,n){const s=Te(e);ot(s,"iterate",ms);const o=s[t](...n);return(o===-1||o===!1)&&ho(n[0])?(n[0]=Te(n[0]),s[t](...n)):o}function Zn(e,t,n=[]){Zt(),gr();const s=Te(e)[t].apply(e,n);return yr(),Xt(),s}const Uu=vr("__proto__,__v_isRef,__isVue"),Hl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt));function Vu(e){gt(e)||(e=String(e));const t=Te(this);return ot(t,"has",e),t.hasOwnProperty(e)}class zl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Zu:Kl:r?Gl:Wl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=ve(t);if(!o){let a;if(i&&(a=Du[n]))return a;if(n==="hasOwnProperty")return Vu}const l=Reflect.get(t,n,We(t)?t:s);if((gt(n)?Hl.has(n):Uu(n))||(o||ot(t,"get",n),r))return l;if(We(l)){const a=i&&ao(n)?l:l.value;return o&&je(a)?Xo(a):a}return je(l)?o?Xo(l):Ss(l):l}}class ql extends zl{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const i=ve(t)&&ao(n);if(!this._isShallow){const f=en(r);if(!xt(s)&&!en(s)&&(r=Te(r),s=Te(s)),!i&&We(r)&&!We(s))return f||(r.value=s),!0}const l=i?Number(n)<t.length:Le(t,n),a=Reflect.set(t,n,s,We(t)?t:o);return t===Te(o)&&(l?jt(s,r)&&Yt(t,"set",n,s):Yt(t,"add",n,s)),a}deleteProperty(t,n){const s=Le(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Yt(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!gt(n)||!Hl.has(n))&&ot(t,"has",n),s}ownKeys(t){return ot(t,"iterate",ve(t)?"length":Cn),Reflect.ownKeys(t)}}class Hu extends zl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zu=new ql,qu=new Hu,Wu=new ql(!0);const Zo=e=>e,Ns=e=>Reflect.getPrototypeOf(e);function Gu(e,t,n){return function(...s){const o=this.__v_raw,r=Te(o),i=Fn(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,f=o[e](...s),c=n?Zo:t?Hn:At;return!t&&ot(r,"iterate",a?Qo:Cn),Ze(Object.create(f),{next(){const{value:m,done:v}=f.next();return v?{value:m,done:v}:{value:l?[c(m[0]),c(m[1])]:c(m),done:v}}})}}function Ls(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ku(e,t){const n={get(o){const r=this.__v_raw,i=Te(r),l=Te(o);e||(jt(o,l)&&ot(i,"get",o),ot(i,"get",l));const{has:a}=Ns(i),f=t?Zo:e?Hn:At;if(a.call(i,o))return f(r.get(o));if(a.call(i,l))return f(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&ot(Te(o),"iterate",Cn),o.size},has(o){const r=this.__v_raw,i=Te(r),l=Te(o);return e||(jt(o,l)&&ot(i,"has",o),ot(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,a=Te(l),f=t?Zo:e?Hn:At;return!e&&ot(a,"iterate",Cn),l.forEach((c,m)=>o.call(r,f(c),f(m),i))}};return Ze(n,e?{add:Ls("add"),set:Ls("set"),delete:Ls("delete"),clear:Ls("clear")}:{add(o){const r=Te(this),i=Ns(r),l=Te(o),a=!t&&!xt(o)&&!en(o)?l:o;return i.has.call(r,a)||jt(o,a)&&i.has.call(r,o)||jt(l,a)&&i.has.call(r,l)||(r.add(a),Yt(r,"add",a,a)),this},set(o,r){!t&&!xt(r)&&!en(r)&&(r=Te(r));const i=Te(this),{has:l,get:a}=Ns(i);let f=l.call(i,o);f||(o=Te(o),f=l.call(i,o));const c=a.call(i,o);return i.set(o,r),f?jt(r,c)&&Yt(i,"set",o,r):Yt(i,"add",o,r),this},delete(o){const r=Te(this),{has:i,get:l}=Ns(r);let a=i.call(r,o);a||(o=Te(o),a=i.call(r,o)),l&&l.call(r,o);const f=r.delete(o);return a&&Yt(r,"delete",o,void 0),f},clear(){const o=Te(this),r=o.size!==0,i=o.clear();return r&&Yt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Gu(o,e,t)}),n}function _r(e,t){const n=Ku(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Le(n,o)&&o in s?n:s,o,r)}const Yu={get:_r(!1,!1)},Ju={get:_r(!1,!0)},Qu={get:_r(!0,!1)};const Wl=new WeakMap,Gl=new WeakMap,Kl=new WeakMap,Zu=new WeakMap;function Xu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ss(e){return en(e)?e:kr(e,!1,zu,Yu,Wl)}function Yl(e){return kr(e,!1,Wu,Ju,Gl)}function Xo(e){return kr(e,!0,qu,Qu,Kl)}function kr(e,t,n,s,o){if(!je(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const i=Xu(ku(e));if(i===0)return e;const l=new Proxy(e,i===2?s:n);return o.set(e,l),l}function Qt(e){return en(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function xt(e){return!!(e&&e.__v_isShallow)}function ho(e){return e?!!e.__v_raw:!1}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function Sr(e){return!Le(e,"__v_skip")&&Object.isExtensible(e)&&Al(e,"__v_skip",!0),e}const At=e=>je(e)?Ss(e):e,Hn=e=>je(e)?Xo(e):e;function We(e){return e?e.__v_isRef===!0:!1}function L(e){return Jl(e,!1)}function ec(e){return Jl(e,!0)}function Jl(e,t){return We(e)?e:new tc(e,t)}class tc{constructor(t,n){this.dep=new wr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Te(t),this._value=n?t:At(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||xt(t)||en(t);t=s?t:Te(t),jt(t,n)&&(this._rawValue=t,this._value=s?t:At(t),this.dep.trigger())}}function H(e){return We(e)?e.value:e}const nc={get:(e,t,n)=>t==="__v_raw"?e:H(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return We(o)&&!We(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Ql(e){return Qt(e)?e:new Proxy(e,nc)}function sc(e){const t=ve(e)?new Array(e.length):{};for(const n in e)t[n]=rc(e,n);return t}class oc{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=gt(n)?n:String(n),this._raw=Te(t);let o=!0,r=t;if(!ve(t)||gt(this._key)||!ao(this._key))do o=!ho(r)||xt(r);while(o&&(r=r.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=H(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&We(this._raw[this._key])){const n=this._object[this._key];if(We(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Fu(this._raw,this._key)}}function rc(e,t,n){return new oc(e,t,n)}class ic{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new wr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ps-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&De!==this)return jl(this,!0),!0}get value(){const t=this.dep.track();return Bl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function lc(e,t,n=!1){let s,o;return we(e)?s=e:(s=e.get,o=e.set),new ic(s,o,n)}const js={},Ws=new WeakMap;let wn;function ac(e,t=!1,n=wn){if(n){let s=Ws.get(n);s||Ws.set(n,s=[]),s.push(e)}}function uc(e,t,n=Fe){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:l,call:a}=n,f=y=>o?y:xt(y)||o===!1||o===0?Jt(y,1):Jt(y);let c,m,v,h,I=!1,$=!1;if(We(e)?(m=()=>e.value,I=xt(e)):Qt(e)?(m=()=>f(e),I=!0):ve(e)?($=!0,I=e.some(y=>Qt(y)||xt(y)),m=()=>e.map(y=>{if(We(y))return y.value;if(Qt(y))return f(y);if(we(y))return a?a(y,2):y()})):we(e)?t?m=a?()=>a(e,2):e:m=()=>{if(v){Zt();try{v()}finally{Xt()}}const y=wn;wn=c;try{return a?a(e,3,[h]):e(h)}finally{wn=y}}:m=Ft,t&&o){const y=m,O=o===!0?1/0:o;m=()=>Jt(y(),O)}const b=Ml(),x=()=>{c.stop(),b&&b.active&&xr(b.effects,c)};if(r&&t){const y=t;t=(...O)=>{y(...O),x()}}let g=$?new Array(e.length).fill(js):js;const S=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(t){const O=c.run();if(o||I||($?O.some((W,M)=>jt(W,g[M])):jt(O,g))){v&&v();const W=wn;wn=c;try{const M=[O,g===js?void 0:$&&g[0]===js?[]:g,h];g=O,a?a(t,3,M):t(...M)}finally{wn=W}}}else c.run()};
vendor: 8,557 bytes, lines 9-13
9return l&&l(S),c=new Nl(m),c.scheduler=i?()=>i(S,!1):S,h=y=>ac(y,!1,c),v=c.onStop=()=>{const y=Ws.get(c);if(y){if(a)a(y,4);else for(const O of y)O();Ws.delete(c)}},t?s?S(!0):g=c.run():i?i(S.bind(null,!0),!0):c.run(),x.pause=c.pause.bind(c),x.resume=c.resume.bind(c),x.stop=x,x}function Jt(e,t=1/0,n){if(t<=0||!je(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,We(e))Jt(e.value,t,n);else if(ve(e))for(let s=0;s<e.length;s++)Jt(e[s],t,n);else if(lo(e)||Fn(e))e.forEach(s=>{Jt(s,t,n)});else if(El(e)){for(const s in e)Jt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Jt(e[s],t,n)}return e}/** 10* @vue/runtime-core v3.5.35 11* (c) 2018-present Yuxi (Evan) You and Vue contributors 12* @license MIT 13**/function $s(e,t,n,s){try{return s?e(...s):e()}catch(o){vo(o,t,n)}}function $t(e,t,n,s){if(we(e)){const o=$s(e,t,n,s);return o&&$l(o)&&o.catch(r=>{vo(r,t,n)}),o}if(ve(e)){const o=[];for(let r=0;r<e.length;r++)o.push($t(e[r],t,n,s));return o}}function vo(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Fe;if(t){let l=t.parent;const a=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let m=0;m<c.length;m++)if(c[m](e,a,f)===!1)return}l=l.parent}if(r){Zt(),$s(r,null,10,[e,a,f]),Xt();return}}cc(e,n,o,s,i)}function cc(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const dt=[];let Mt=-1;const Dn=[];let cn=null,Nn=0;const Zl=Promise.resolve();let Gs=null;function Ye(e){const t=Gs||Zl;return e?t.then(this?e.bind(this):e):t}function dc(e){let t=Mt+1,n=dt.length;for(;t<n;){const s=t+n>>>1,o=dt[s],r=hs(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function $r(e){if(!(e.flags&1)){const t=hs(e),n=dt[dt.length-1];!n||!(e.flags&2)&&t>=hs(n)?dt.push(e):dt.splice(dc(t),0,e),e.flags|=1,Xl()}}function Xl(){Gs||(Gs=Zl.then(ta))}function fc(e){ve(e)?Dn.push(...e):cn&&e.id===-1?cn.splice(Nn+1,0,e):e.flags&1||(Dn.push(e),e.flags|=1),Xl()}function oi(e,t,n=Mt+1){for(;n<dt.length;n++){const s=dt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;dt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function ea(e){if(Dn.length){const t=[...new Set(Dn)].sort((n,s)=>hs(n)-hs(s));if(Dn.length=0,cn){cn.push(...t);return}for(cn=t,Nn=0;Nn<cn.length;Nn++){const n=cn[Nn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}cn=null,Nn=0}}const hs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ta(e){try{for(Mt=0;Mt<dt.length;Mt++){const t=dt[Mt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),$s(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Mt<dt.length;Mt++){const t=dt[Mt];t&&(t.flags&=-2)}Mt=-1,dt.length=0,ea(),Gs=null,(dt.length||Dn.length)&&ta()}}let tt=null,na=null;function Ks(e){const t=tt;return tt=e,na=e&&e.type.__scopeId||null,t}function ie(e,t=tt,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Qs(-1);const r=Ks(t);let i;try{i=e(...o)}finally{Ks(r),s._d&&Qs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function It(e,t){if(tt===null)return e;const n=wo(tt),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,a=Fe]=t[o];r&&(we(r)&&(r={mounted:r,updated:r}),r.deep&&Jt(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function xn(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let a=l.dir[s];a&&(Zt(),$t(a,n,8,[e.el,l,e,t]),Xt())}}function Bs(e,t){if(it){let n=it.provides;const s=it.parent&&it.parent.provides;s===n&&(n=it.provides=Object.create(s)),n[e]=t}}function kt(e,t,n=!1){const s=Rr();if(s||En){let o=En?En._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&we(t)?t.call(s&&s.proxy):t}}function pc(){return!!(Rr()||En)}const mc=Symbol.for("v-scx"),hc=()=>kt(mc);function vc(e,t){return Cr(e,null,t)}function Ce(e,t,n){return Cr(e,t,n)}function Cr(e,t,n=Fe){const{immediate:s,deep:o,flush:r,once:i}=n,l=Ze({},n),a=t&&s||!t&&r!=="post";let f;if(ys){if(r==="sync"){const h=hc();f=h.__watcherHandles||(h.__watcherHandles=[])}else if(!a){const h=()=>{};return h.stop=Ft,h.resume=Ft,h.pause=Ft,h}}const c=it;l.call=(h,I,$)=>$t(h,c,I,$);let m=!1;r==="post"?l.scheduler=h=>{mt(h,c&&c.suspense)}:r!=="sync"&&(m=!0,l.scheduler=(h,I)=>{I?h():$r(h)}),l.augmentJob=h=>{t&&(h.flags|=4),m&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const v=uc(e,t,l);return ys&&(f?f.push(v):a&&v()),v}function xc(e,t,n){const s=this.proxy,o=ze(e)?e.includes(".")?sa(s,e):()=>s[e]:e.bind(s,s);let r;we(t)?r=t:(r=t.handler,n=t);const i=Cs(this),l=Cr(o,r.bind(s),n);return i(),l}function sa(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const gc=Symbol("_vte"),oa=e=>e.__isTeleport,_t=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function yc(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return He(()=>{e.isMounted=!0}),Gn(()=>{e.isUnmounting=!0}),e}const wt=[Function,Array],ra={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wt,onEnter:wt,onAfterEnter:wt,onEnterCancelled:wt,onBeforeLeave:wt,onLeave:wt,onAfterLeave:wt,onLeaveCancelled:wt,onBeforeAppear:wt,onAppear:wt,onAfterAppear:wt,onAppearCancelled:wt},ia=e=>{const t=e.subTree;return t.component?ia(t.component):t},bc={name:"BaseTransition",props:ra,setup(e,{slots:t}){const n=Rr(),s=yc();return()=>{const o=t.default&&ua(t.default(),!0),r=o&&o.length?la(o):n.subTree?A():void 0;if(!r)return;const i=Te(e),{mode:l}=i;if(s.isLeaving)return Lo(r);const a=ri(r);if(!a)return Lo(r);let f=er(a,i,s,n,m=>f=m);a.type!==rt&&vs(a,f);let c=n.subTree&&ri(n.subTree);if(c&&c.type!==rt&&!_n(c,a)&&ia(n).type!==rt){let m=er(c,i,s,n);if(vs(c,m),l==="out-in"&&a.type!==rt)return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete m.afterLeave,c=void 0},Lo(r);l==="in-out"&&a.type!==rt?m.delayLeave=(v,h,I)=>{const $=aa(s,c);$[String(c.key)]=c,v[_t]=()=>{h(),v[_t]=void 0,delete f.delayedLeave,c=void 0},f.delayedLeave=()=>{I(),delete f.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function la(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==rt){t=n;break}}return t}const wc=bc;function aa(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function er(e,t,n,s,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:a,onEnter:f,onAfterEnter:c,onEnterCancelled:m,onBeforeLeave:v,onLeave:h,onAfterLeave:I,onLeaveCancelled:$,onBeforeAppear:b,onAppear:x,onAfterAppear:g,onAppearCancelled:S}=t,y=String(e.key),O=aa(n,e),W=(Q,F)=>{Q&&$t(Q,s,9,F)},M=(Q,F)=>{const Z=F[1];W(Q,F),ve(Q)?Q.every(U=>U.length<=1)&&Z():Q.length<=1&&Z()},D={mode:i,persisted:l,beforeEnter(Q){let F=a;if(!n.isMounted)if(r)F=b||a;else return;Q[_t]&&Q[_t](!0);const Z=O[y];Z&&_n(e,Z)&&Z.el[_t]&&Z.el[_t](),W(F,[Q])},enter(Q){if(O[y]===e)return;let F=f,Z=c,U=m;if(!n.isMounted)if(r)F=x||f,Z=g||c,U=S||m;else return;let Y=!1;Q[Xn]=Se=>{Y||(Y=!0,Se?W(U,[Q]):W(Z,[Q]),D.delayedLeave&&D.delayedLeave(),Q[Xn]=void 0)};const ge=Q[Xn].bind(null,!1);F?M(F,[Q,ge]):ge()},leave(Q,F){const Z=String(e.key);if(Q[Xn]&&Q[Xn](!0),n.isUnmounting)return F();W(v,[Q]);let U=!1;Q[_t]=ge=>{U||(U=!0,F(),ge?W($,[Q]):W(I,[Q]),Q[_t]=void 0,O[Z]===e&&delete O[Z])};const Y=Q[_t].bind(null,!1);O[Z]=e,h?M(h,[Q,Y]):Y()},clone(Q){const F=er(Q,t,n,s,o);return o&&o(F),F}};return D}function Lo(e){if(xo(e))return e=pn(e),e.children=null,e}function ri(e){if(!xo(e))return oa(e.type)&&e.children?la(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&we(n.default))return n.default()}}function vs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,vs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ua(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let i=e[r];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:r);i.type===B?(i.patchFlag&128&&o++,s=s.concat(ua(i.children,t,l))):(t||i.type!==rt)&&s.push(l!=null?pn(i,{key:l}):i)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function Ae(e,t){return we(e)?Ze({name:e.name},t,{setup:e}):e}function ca(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ii(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ys=new WeakMap;function as(e,t,n,s,o=!1){if(ve(e)){e.forEach(($,b)=>as($,t&&(ve(t)?t[b]:t),n,s,o));return}
vendor: 4,148 bytes, line 13
13if(Bn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&as(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?wo(s.component):s.el,i=o?null:r,{i:l,r:a}=e,f=t&&t.r,c=l.refs===Fe?l.refs={}:l.refs,m=l.setupState,v=Te(m),h=m===Fe?Sl:$=>ii(c,$)?!1:Le(v,$),I=($,b)=>!(b&&ii(c,b));if(f!=null&&f!==a){if(li(t),ze(f))c[f]=null,h(f)&&(m[f]=null);else if(We(f)){const $=t;I(f,$.k)&&(f.value=null),$.k&&(c[$.k]=null)}}if(we(a))$s(a,l,12,[i,c]);else{const $=ze(a),b=We(a);if($||b){const x=()=>{if(e.f){const g=$?h(a)?m[a]:c[a]:I()||!e.k?a.value:c[e.k];if(o)ve(g)&&xr(g,r);else if(ve(g))g.includes(r)||g.push(r);else if($)c[a]=[r],h(a)&&(m[a]=c[a]);else{const S=[r];I(a,e.k)&&(a.value=S),e.k&&(c[e.k]=S)}}else $?(c[a]=i,h(a)&&(m[a]=i)):b&&(I(a,e.k)&&(a.value=i),e.k&&(c[e.k]=i))};if(i){const g=()=>{x(),Ys.delete(e)};g.id=-1,Ys.set(e,g),mt(g,n)}else li(e),x()}}}function li(e){const t=Ys.get(e);t&&(t.flags|=8,Ys.delete(e))}po().requestIdleCallback;po().cancelIdleCallback;const Bn=e=>!!e.type.__asyncLoader,xo=e=>e.type.__isKeepAlive;function _c(e,t){da(e,"a",t)}function kc(e,t){da(e,"da",t)}function da(e,t,n=it){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(go(t,s,n),n){let o=n.parent;for(;o&&o.parent;)xo(o.parent.vnode)&&Sc(s,t,n,o),o=o.parent}}function Sc(e,t,n,s){const o=go(t,e,s,!0);Sn(()=>{xr(s[t],o)},n)}function go(e,t,n=it,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Zt();const l=Cs(n),a=$t(t,n,e,i);return l(),Xt(),a});return s?o.unshift(r):o.push(r),r}}const tn=e=>(t,n=it)=>{(!ys||e==="sp")&&go(e,(...s)=>t(...s),n)},$c=tn("bm"),He=tn("m"),Cc=tn("bu"),Ec=tn("u"),Gn=tn("bum"),Sn=tn("um"),Ac=tn("sp"),Ic=tn("rtg"),Rc=tn("rtc");function Tc(e,t=it){go("ec",e,t)}const Pc="components";function nn(e,t){return Mc(Pc,e,!0,t)||e}const Oc=Symbol.for("v-ndc");function Mc(e,t,n=!0,s=!1){const o=tt||it;if(o){const r=o.type;{const l=yd(r,!1);if(l&&(l===t||l===ft(t)||l===co(ft(t))))return r}const i=ai(o[e]||r[e],t)||ai(o.appContext[e],t);return!i&&s?r:i}}function ai(e,t){return e&&(e[t]||e[ft(t)]||e[co(ft(t))])}function ke(e,t,n,s){let o;const r=n,i=ve(e);if(i||ze(e)){const l=i&&Qt(e);let a=!1,f=!1;l&&(a=!xt(e),f=en(e),e=mo(e)),o=new Array(e.length);for(let c=0,m=e.length;c<m;c++)o[c]=t(a?f?Hn(At(e[c])):At(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(je(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,f=l.length;a<f;a++){const c=l[a];o[a]=t(e[c],c,a,r)}}else o=[];return o}function Nc(e,t,n={},s,o){if(tt.ce||tt.parent&&Bn(tt.parent)&&tt.parent.ce){const f=Object.keys(n).length>0;return d(),pe(B,null,[G("slot",n,s)],f?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),d();const i=r&&fa(r(n)),l=n.key||i&&i.key,a=pe(B,{key:(l&&!gt(l)?l:`_${t}`)+(!i&&s?"_fb":"")},i||[],i&&e._===1?64:-2);return r&&r._c&&(r._d=!0),a}function fa(e){return e.some(t=>gs(t)?!(t.type===rt||t.type===B&&!fa(t.children)):!0)?e:null}const tr=e=>e?Pa(e)?wo(e):tr(e.parent):null,us=Ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>tr(e.parent),$root:e=>tr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ma(e),$forceUpdate:e=>e.f||(e.f=()=>{$r(e.update)}),$nextTick:e=>e.n||(e.n=Ye.bind(e.proxy)),$watch:e=>xc.bind(e)}),jo=(e,t)=>e!==Fe&&!e.__isScriptSetup&&Le(e,t),Lc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const v=i[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(jo(s,t))return i[t]=1,s[t];if(o!==Fe&&Le(o,t))return i[t]=2,o[t];if(Le(r,t))return i[t]=3,r[t];if(n!==Fe&&Le(n,t))return i[t]=4,n[t];nr&&(i[t]=0)}}const f=us[t];let c,m;if(f)return t==="$attrs"&&ot(e.attrs,"get",""),f(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==Fe&&Le(n,t))return i[t]=4,n[t];if(m=a.config.globalProperties,Le(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;
vendor: 7,235 bytes, line 13
13return jo(o,t)?(o[t]=n,!0):s!==Fe&&Le(s,t)?(s[t]=n,!0):Le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:r,type:i}},l){let a;return!!(n[l]||e!==Fe&&l[0]!=="$"&&Le(e,l)||jo(t,l)||Le(r,l)||Le(s,l)||Le(us,l)||Le(o.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ui(e){return ve(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let nr=!0;function jc(e){const t=ma(e),n=e.proxy,s=e.ctx;nr=!1,t.beforeCreate&&ci(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:f,created:c,beforeMount:m,mounted:v,beforeUpdate:h,updated:I,activated:$,deactivated:b,beforeDestroy:x,beforeUnmount:g,destroyed:S,unmounted:y,render:O,renderTracked:W,renderTriggered:M,errorCaptured:D,serverPrefetch:Q,expose:F,inheritAttrs:Z,components:U,directives:Y,filters:ge}=t;if(f&&Fc(f,s,null),i)for(const fe in i){const ae=i[fe];we(ae)&&(s[fe]=ae.bind(n))}if(o){const fe=o.call(n,n);je(fe)&&(e.data=Ss(fe))}if(nr=!0,r)for(const fe in r){const ae=r[fe],me=we(ae)?ae.bind(n,n):we(ae.get)?ae.get.bind(n,n):Ft,ue=!we(ae)&&we(ae.set)?ae.set.bind(n):Ft,Ge=R({get:me,set:ue});Object.defineProperty(s,fe,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:Ke=>Ge.value=Ke})}if(l)for(const fe in l)pa(l[fe],s,n,fe);if(a){const fe=we(a)?a.call(n):a;Reflect.ownKeys(fe).forEach(ae=>{Bs(ae,fe[ae])})}c&&ci(c,e,"c");function ye(fe,ae){ve(ae)?ae.forEach(me=>fe(me.bind(n))):ae&&fe(ae.bind(n))}if(ye($c,m),ye(He,v),ye(Cc,h),ye(Ec,I),ye(_c,$),ye(kc,b),ye(Tc,D),ye(Rc,W),ye(Ic,M),ye(Gn,g),ye(Sn,y),ye(Ac,Q),ve(F))if(F.length){const fe=e.exposed||(e.exposed={});F.forEach(ae=>{Object.defineProperty(fe,ae,{get:()=>n[ae],set:me=>n[ae]=me,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===Ft&&(e.render=O),Z!=null&&(e.inheritAttrs=Z),U&&(e.components=U),Y&&(e.directives=Y),Q&&ca(e)}function Fc(e,t,n=Ft){ve(e)&&(e=sr(e));for(const s in e){const o=e[s];let r;je(o)?"default"in o?r=kt(o.from||s,o.default,!0):r=kt(o.from||s):r=kt(o),We(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function ci(e,t,n){$t(ve(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function pa(e,t,n,s){let o=s.includes(".")?sa(n,s):()=>n[s];if(ze(e)){const r=t[e];we(r)&&Ce(o,r)}else if(we(e))Ce(o,e.bind(n));else if(je(e))if(ve(e))e.forEach(r=>pa(r,t,n,s));else{const r=we(e.handler)?e.handler.bind(n):t[e.handler];we(r)&&Ce(o,r,e)}}function ma(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(f=>Js(a,f,i,!0)),Js(a,t,i)),je(t)&&r.set(t,a),a}function Js(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Js(e,r,n,!0),o&&o.forEach(i=>Js(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Dc[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Dc={data:di,props:fi,emits:fi,methods:ss,computed:ss,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:ss,directives:ss,watch:Uc,provide:di,inject:Bc};function di(e,t){return t?e?function(){return Ze(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function Bc(e,t){return ss(sr(e),sr(t))}function sr(e){if(ve(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ut(e,t){return e?[...new Set([].concat(e,t))]:t}function ss(e,t){return e?Ze(Object.create(null),e,t):t}function fi(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Ze(Object.create(null),ui(e),ui(t??{})):t}function Uc(e,t){if(!e)return t;if(!t)return e;const n=Ze(Object.create(null),e);for(const s in t)n[s]=ut(e[s],t[s]);return n}function ha(){return{app:null,config:{isNativeTag:Sl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Vc=0;function Hc(e,t){return function(s,o=null){we(s)||(s=Ze({},s)),o!=null&&!je(o)&&(o=null);const r=ha(),i=new WeakSet,l=[];let a=!1;const f=r.app={_uid:Vc++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:wd,get config(){return r.config},set config(c){},use(c,...m){return i.has(c)||(c&&we(c.install)?(i.add(c),c.install(f,...m)):we(c)&&(i.add(c),c(f,...m))),f},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),f},component(c,m){return m?(r.components[c]=m,f):r.components[c]},directive(c,m){return m?(r.directives[c]=m,f):r.directives[c]},mount(c,m,v){if(!a){const h=f._ceVNode||G(s,o);return h.appContext=r,v===!0?v="svg":v===!1&&(v=void 0),e(h,c,v),a=!0,f._container=c,c.__vue_app__=f,wo(h.component)}},onUnmount(c){l.push(c)},unmount(){a&&($t(l,f._instance,16),e(null,f._container),delete f._container.__vue_app__)},provide(c,m){return r.provides[c]=m,f},runWithContext(c){const m=En;En=f;try{return c()}finally{En=m}}};return f}}let En=null;const zc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ft(t)}Modifiers`]||e[`${mn(t)}Modifiers`];function qc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Fe;let o=n;const r=t.startsWith("update:"),i=r&&zc(s,t.slice(7));i&&(i.trim&&(o=n.map(c=>ze(c)?c.trim():c)),i.number&&(o=n.map(fo)));let l,a=s[l=To(t)]||s[l=To(ft(t))];!a&&r&&(a=s[l=To(mn(t))]),a&&$t(a,e,6,o);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,$t(f,e,6,o)}}const Wc=new WeakMap;function va(e,t,n=!1){const s=n?Wc:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!we(e)){const a=f=>{const c=va(f,t,!0);c&&(l=!0,Ze(i,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(je(e)&&s.set(e,null),null):(ve(r)?r.forEach(a=>i[a]=null):Ze(i,r),je(e)&&s.set(e,i),i)}function yo(e,t){return!e||!ro(t)?!1:(t=t.slice(2).replace(/Once$/,""),Le(e,t[0].toLowerCase()+t.slice(1))||Le(e,mn(t))||Le(e,t))}function pi(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:a,render:f,renderCache:c,props:m,data:v,setupState:h,ctx:I,inheritAttrs:$}=e,b=Ks(e);let x,g;try{if(n.shapeFlag&4){const y=o||s,O=y;x=Lt(f.call(O,y,c,m,h,v,I)),g=l}else{const y=t;x=Lt(y.length>1?y(m,{attrs:l,slots:i,emit:a}):y(m,null)),g=t.props?l:Gc(l)}}catch(y){cs.length=0,vo(y,e,1),x=G(rt)}let S=x;if(g&&$!==!1){const y=Object.keys(g),{shapeFlag:O}=S;y.length&&O&7&&(r&&y.some(io)&&(g=Kc(g,r)),S=pn(S,g,!1,!0))}return n.dirs&&(S=pn(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&vs(S,n.transition),x=S,Ks(b),x}const Gc=e=>{let t;for(const n in e)(n==="class"||n==="style"||ro(n))&&((t||(t={}))[n]=e[n]);return t},Kc=(e,t)=>{const n={};for(const s in e)(!io(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Yc(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;
vendor: 5,476 bytes, line 13
13if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?mi(s,i,f):!!i;if(a&8){const c=t.dynamicProps;for(let m=0;m<c.length;m++){const v=c[m];if(xa(i,s,v)&&!yo(f,v))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?mi(s,i,f):!0:!!i;return!1}function mi(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(xa(t,e,r)&&!yo(n,r))return!0}return!1}function xa(e,t,n){const s=e[n],o=t[n];return n==="style"&&je(s)&&je(o)?!ks(s,o):s!==o}function Jc({vnode:e,parent:t,suspense:n},s){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=s,e=o),o===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const ga={},ya=()=>Object.create(ga),ba=e=>Object.getPrototypeOf(e)===ga;function Qc(e,t,n,s=!1){const o={},r=ya();e.propsDefaults=Object.create(null),wa(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Yl(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Zc(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=Te(o),[a]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let m=0;m<c.length;m++){let v=c[m];if(yo(e.emitsOptions,v))continue;const h=t[v];if(a)if(Le(r,v))h!==r[v]&&(r[v]=h,f=!0);else{const I=ft(v);o[I]=or(a,l,I,h,e,!1)}else h!==r[v]&&(r[v]=h,f=!0)}}}else{wa(e,t,o,r)&&(f=!0);let c;for(const m in l)(!t||!Le(t,m)&&((c=mn(m))===m||!Le(t,c)))&&(a?n&&(n[m]!==void 0||n[c]!==void 0)&&(o[m]=or(a,l,m,void 0,e,!0)):delete o[m]);if(r!==l)for(const m in r)(!t||!Le(t,m))&&(delete r[m],f=!0)}f&&Yt(e.attrs,"set","")}function wa(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(rs(a))continue;const f=t[a];let c;o&&Le(o,c=ft(a))?!r||!r.includes(c)?n[c]=f:(l||(l={}))[c]=f:yo(e.emitsOptions,a)||(!(a in s)||f!==s[a])&&(s[a]=f,i=!0)}if(r){const a=Te(n),f=l||Fe;for(let c=0;c<r.length;c++){const m=r[c];n[m]=or(o,a,m,f[m],e,!Le(f,m))}}return i}function or(e,t,n,s,o,r){const i=e[n];if(i!=null){const l=Le(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&we(a)){const{propsDefaults:f}=o;if(n in f)s=f[n];else{const c=Cs(o);s=f[n]=a.call(null,t),c()}}else s=a;o.ce&&o.ce._setProp(n,s)}i[0]&&(r&&!l?s=!1:i[1]&&(s===""||s===mn(n))&&(s=!0))}return s}const Xc=new WeakMap;function _a(e,t,n=!1){const s=n?Xc:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},l=[];let a=!1;if(!we(e)){const c=m=>{a=!0;const[v,h]=_a(m,t,!0);Ze(i,v),h&&l.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return je(e)&&s.set(e,jn),jn;if(ve(r))for(let c=0;c<r.length;c++){const m=ft(r[c]);hi(m)&&(i[m]=Fe)}else if(r)for(const c in r){const m=ft(c);if(hi(m)){const v=r[c],h=i[m]=ve(v)||we(v)?{type:v}:Ze({},v),I=h.type;let $=!1,b=!0;if(ve(I))for(let x=0;x<I.length;++x){const g=I[x],S=we(g)&&g.name;if(S==="Boolean"){$=!0;break}else S==="String"&&(b=!1)}else $=we(I)&&I.name==="Boolean";h[0]=$,h[1]=b,($||Le(h,"default"))&&l.push(m)}}const f=[i,l];return je(e)&&s.set(e,f),f}function hi(e){return e[0]!=="$"&&!rs(e)}const Er=e=>e==="_"||e==="_ctx"||e==="$stable",Ar=e=>ve(e)?e.map(Lt):[Lt(e)],ed=(e,t,n)=>{if(t._n)return t;const s=ie((...o)=>Ar(t(...o)),n);return s._c=!1,s},ka=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Er(o))continue;const r=e[o];if(we(r))t[o]=ed(o,r,s);else if(r!=null){const i=Ar(r);t[o]=()=>i}}},Sa=(e,t)=>{const n=Ar(t);e.slots.default=()=>n},$a=(e,t,n)=>{for(const s in t)(n||!Er(s))&&(e[s]=t[s])},td=(e,t,n)=>{const s=e.slots=ya();if(e.vnode.shapeFlag&32){const o=t._;o?($a(s,t,n),n&&Al(s,"_",o,!0)):ka(t,s)}else t&&Sa(e,t)},nd=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=Fe;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:$a(o,t,n):(r=!t.$stable,ka(t,o)),i=t}else t&&(Sa(e,t),i={default:1});if(r)for(const l in o)!Er(l)&&i[l]==null&&delete o[l]},mt=ld;function sd(e){return od(e)}function od(e,t){const n=po();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:f,setElementText:c,parentNode:m,nextSibling:v,setScopeId:h=Ft,insertStaticContent:I}=e,$=(w,_,T,z=null,q=null,V=null,ne=void 0,ee=null,X=!!_.dynamicChildren)=>{if(w===_)return;w&&!_n(w,_)&&(z=j(w),Ke(w,q,V,!0),w=null),_.patchFlag===-2&&(X=!1,_.dynamicChildren=null);const{type:E,ref:P,shapeFlag:J}=_;switch(E){case bo:b(w,_,T,z);break;case rt:x(w,_,T,z);break;case Us:w==null&&g(_,T,z,ne);break;case B:U(w,_,T,z,q,V,ne,ee,X);break;default:J&1?O(w,_,T,z,q,V,ne,ee,X):J&6?Y(w,_,T,z,q,V,ne,ee,X):(J&64||J&128)&&E.process(w,_,T,z,q,V,ne,ee,X,re)}P!=null&&q?as(P,w&&w.ref,V,_||w,!_):P==null&&w&&w.ref!=null&&as(w.ref,null,V,w,!0)},b=(w,_,T,z)=>{if(w==null)s(_.el=l(_.children),T,z);else{const q=_.el=w.el;_.children!==w.children&&f(q,_.children)}},x=(w,_,T,z)=>{w==null?s(_.el=a(_.children||""),T,z):_.el=w.el},g=(w,_,T,z)=>{[w.el,w.anchor]=I(w.children,_,T,z,w.el,w.anchor)},S=({el:w,anchor:_},T,z)=>{let q;for(;w&&w!==_;)q=v(w),s(w,T,z),w=q;s(_,T,z)},y=({el:w,anchor:_})=>{let T;for(;w&&w!==_;)T=v(w),o(w),w=T;o(_)},O=(w,_,T,z,q,V,ne,ee,X)=>{if(_.type==="svg"?ne="svg":_.type==="math"&&(ne="mathml"),w==null)W(_,T,z,q,V,ne,ee,X);else{const E=w.el&&w.el._isVueCE?w.el:null;try{E&&E._beginPatch(),Q(w,_,q,V,ne,ee,X)}finally{E&&E._endPatch()}}},W=(w,_,T,z,q,V,ne,ee)=>{let X,E;const{props:P,shapeFlag:J,transition:se,dirs:ce}=w;if(X=w.el=i(w.type,V,P&&P.is,P),J&8?c(X,w.children):J&16&&D(w.children,X,null,z,q,Fo(w,V),ne,ee),
vendor: 3,998 bytes, line 13
13ce&&xn(w,null,z,"created"),M(X,w,w.scopeId,ne,z),P){for(const Pe in P)Pe!=="value"&&!rs(Pe)&&r(X,Pe,null,P[Pe],V,z);"value"in P&&r(X,"value",null,P.value,V),(E=P.onVnodeBeforeMount)&&Ot(E,z,w)}ce&&xn(w,null,z,"beforeMount");const $e=rd(q,se);$e&&se.beforeEnter(X),s(X,_,T),((E=P&&P.onVnodeMounted)||$e||ce)&&mt(()=>{try{E&&Ot(E,z,w),$e&&se.enter(X),ce&&xn(w,null,z,"mounted")}finally{}},q)},M=(w,_,T,z,q)=>{if(T&&h(w,T),z)for(let V=0;V<z.length;V++)h(w,z[V]);if(q){let V=q.subTree;if(_===V||Ia(V.type)&&(V.ssContent===_||V.ssFallback===_)){const ne=q.vnode;M(w,ne,ne.scopeId,ne.slotScopeIds,q.parent)}}},D=(w,_,T,z,q,V,ne,ee,X=0)=>{for(let E=X;E<w.length;E++){const P=w[E]=ee?Kt(w[E]):Lt(w[E]);$(null,P,_,T,z,q,V,ne,ee)}},Q=(w,_,T,z,q,V,ne)=>{const ee=_.el=w.el;let{patchFlag:X,dynamicChildren:E,dirs:P}=_;X|=w.patchFlag&16;const J=w.props||Fe,se=_.props||Fe;let ce;if(T&&gn(T,!1),(ce=se.onVnodeBeforeUpdate)&&Ot(ce,T,_,w),P&&xn(_,w,T,"beforeUpdate"),T&&gn(T,!0),(J.innerHTML&&se.innerHTML==null||J.textContent&&se.textContent==null)&&c(ee,""),E?F(w.dynamicChildren,E,ee,T,z,Fo(_,q),V):ne||ae(w,_,ee,null,T,z,Fo(_,q),V,!1),X>0){if(X&16)Z(ee,J,se,T,q);else if(X&2&&J.class!==se.class&&r(ee,"class",null,se.class,q),X&4&&r(ee,"style",J.style,se.style,q),X&8){const $e=_.dynamicProps;for(let Pe=0;Pe<$e.length;Pe++){const Ee=$e[Pe],Ue=J[Ee],le=se[Ee];(le!==Ue||Ee==="value")&&r(ee,Ee,Ue,le,q,T)}}X&1&&w.children!==_.children&&c(ee,_.children)}else!ne&&E==null&&Z(ee,J,se,T,q);((ce=se.onVnodeUpdated)||P)&&mt(()=>{ce&&Ot(ce,T,_,w),P&&xn(_,w,T,"updated")},z)},F=(w,_,T,z,q,V,ne)=>{for(let ee=0;ee<_.length;ee++){const X=w[ee],E=_[ee],P=X.el&&(X.type===B||!_n(X,E)||X.shapeFlag&198)?m(X.el):T;$(X,E,P,null,z,q,V,ne,!0)}},Z=(w,_,T,z,q)=>{if(_!==T){if(_!==Fe)for(const V in _)!rs(V)&&!(V in T)&&r(w,V,_[V],null,q,z);for(const V in T){if(rs(V))continue;const ne=T[V],ee=_[V];ne!==ee&&V!=="value"&&r(w,V,ee,ne,q,z)}"value"in T&&r(w,"value",_.value,T.value,q)}},U=(w,_,T,z,q,V,ne,ee,X)=>{const E=_.el=w?w.el:l(""),P=_.anchor=w?w.anchor:l("");let{patchFlag:J,dynamicChildren:se,slotScopeIds:ce}=_;ce&&(ee=ee?ee.concat(ce):ce),w==null?(s(E,T,z),s(P,T,z),D(_.children||[],T,P,q,V,ne,ee,X)):J>0&&J&64&&se&&w.dynamicChildren&&w.dynamicChildren.length===se.length?(F(w.dynamicChildren,se,T,q,V,ne,ee),(_.key!=null||q&&_===q.subTree)&&Ca(w,_,!0)):ae(w,_,T,P,q,V,ne,ee,X)},Y=(w,_,T,z,q,V,ne,ee,X)=>{_.slotScopeIds=ee,w==null?_.shapeFlag&512?q.ctx.activate(_,T,z,ne,X):ge(_,T,z,q,V,ne,X):Se(w,_,X)},ge=(w,_,T,z,q,V,ne)=>{const ee=w.component=md(w,z,q);if(xo(w)&&(ee.ctx.renderer=re),hd(ee,!1,ne),ee.asyncDep){if(q&&q.registerDep(ee,ye,ne),!w.el){const X=ee.subTree=G(rt);x(null,X,_,T),w.placeholder=X.el}}else ye(ee,w,_,T,q,V,ne)},Se=(w,_,T)=>{const z=_.component=w.component;if(Yc(w,_,T))if(z.asyncDep&&!z.asyncResolved){fe(z,_,T);return}else z.next=_,z.update();else _.el=w.el,z.vnode=_},ye=(w,_,T,z,q,V,ne)=>{const ee=()=>{if(w.isMounted){let{next:J,bu:se,u:ce,parent:$e,vnode:Pe}=w;{const Ve=Ea(w);if(Ve){J&&(J.el=Pe.el,fe(w,J,ne)),Ve.asyncDep.then(()=>{mt(()=>{w.isUnmounted||E()},q)});return}}let Ee=J,Ue;gn(w,!1),J?(J.el=Pe.el,fe(w,J,ne)):J=Pe,se&&Ds(se),(Ue=J.props&&J.props.onVnodeBeforeUpdate)&&Ot(Ue,$e,J,Pe),gn(w,!0);const le=pi(w),Oe=w.subTree;w.subTree=le,$(Oe,le,m(Oe.el),j(Oe),w,q,V),J.el=le.el,Ee===null&&Jc(w,le.el),ce&&mt(ce,q),(Ue=J.props&&J.props.onVnodeUpdated)&&mt(()=>Ot(Ue,$e,J,Pe),q)}else{let J;const{el:se,props:ce}=_,{bm:$e,m:Pe,parent:Ee,root:Ue,type:le}=w,Oe=Bn(_);gn(w,!1),$e&&Ds($e),!Oe&&(J=ce&&ce.onVnodeBeforeMount)&&Ot(J,Ee,_),gn(w,!0);{Ue.ce&&Ue.ce._hasShadowRoot()&&Ue.ce._injectChildStyle(le,w.parent?w.parent.type:void 0);const Ve=w.subTree=pi(w);$(null,Ve,T,z,w,q,V),_.el=Ve.el}if(Pe&&mt(Pe,q),!Oe&&(J=ce&&ce.onVnodeMounted)){const Ve=_;mt(()=>Ot(J,Ee,Ve),q)}(_.shapeFlag&256||Ee&&Bn(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&w.a&&mt(w.a,q),w.isMounted=!0,_=T=z=null}};w.scope.on();const X=w.effect=new Nl(ee);w.scope.off();const E=w.update=X.run.bind(X),P=w.job=X.runIfDirty.bind(X);
vendor: 3,968 bytes, line 13
13P.i=w,P.id=w.uid,X.scheduler=()=>$r(P),gn(w,!0),E()},fe=(w,_,T)=>{_.component=w;const z=w.vnode.props;w.vnode=_,w.next=null,Zc(w,_.props,z,T),nd(w,_.children,T),Zt(),oi(w),Xt()},ae=(w,_,T,z,q,V,ne,ee,X=!1)=>{const E=w&&w.children,P=w?w.shapeFlag:0,J=_.children,{patchFlag:se,shapeFlag:ce}=_;if(se>0){if(se&128){ue(E,J,T,z,q,V,ne,ee,X);return}else if(se&256){me(E,J,T,z,q,V,ne,ee,X);return}}ce&8?(P&16&&et(E,q,V),J!==E&&c(T,J)):P&16?ce&16?ue(E,J,T,z,q,V,ne,ee,X):et(E,q,V,!0):(P&8&&c(T,""),ce&16&&D(J,T,z,q,V,ne,ee,X))},me=(w,_,T,z,q,V,ne,ee,X)=>{w=w||jn,_=_||jn;const E=w.length,P=_.length,J=Math.min(E,P);let se;for(se=0;se<J;se++){const ce=_[se]=X?Kt(_[se]):Lt(_[se]);$(w[se],ce,T,null,q,V,ne,ee,X)}E>P?et(w,q,V,!0,!1,J):D(_,T,z,q,V,ne,ee,X,J)},ue=(w,_,T,z,q,V,ne,ee,X)=>{let E=0;const P=_.length;let J=w.length-1,se=P-1;for(;E<=J&&E<=se;){const ce=w[E],$e=_[E]=X?Kt(_[E]):Lt(_[E]);if(_n(ce,$e))$(ce,$e,T,null,q,V,ne,ee,X);else break;E++}for(;E<=J&&E<=se;){const ce=w[J],$e=_[se]=X?Kt(_[se]):Lt(_[se]);if(_n(ce,$e))$(ce,$e,T,null,q,V,ne,ee,X);else break;J--,se--}if(E>J){if(E<=se){const ce=se+1,$e=ce<P?_[ce].el:z;for(;E<=se;)$(null,_[E]=X?Kt(_[E]):Lt(_[E]),T,$e,q,V,ne,ee,X),E++}}else if(E>se)for(;E<=J;)Ke(w[E],q,V,!0),E++;else{const ce=E,$e=E,Pe=new Map;for(E=$e;E<=se;E++){const nt=_[E]=X?Kt(_[E]):Lt(_[E]);nt.key!=null&&Pe.set(nt.key,E)}let Ee,Ue=0;const le=se-$e+1;let Oe=!1,Ve=0;const Ct=new Array(le);for(E=0;E<le;E++)Ct[E]=0;for(E=ce;E<=J;E++){const nt=w[E];if(Ue>=le){Ke(nt,q,V,!0);continue}let ht;if(nt.key!=null)ht=Pe.get(nt.key);else for(Ee=$e;Ee<=se;Ee++)if(Ct[Ee-$e]===0&&_n(nt,_[Ee])){ht=Ee;break}ht===void 0?Ke(nt,q,V,!0):(Ct[ht-$e]=E+1,ht>=Ve?Ve=ht:Oe=!0,$(nt,_[ht],T,null,q,V,ne,ee,X),Ue++)}const Vt=Oe?id(Ct):jn;for(Ee=Vt.length-1,E=le-1;E>=0;E--){const nt=$e+E,ht=_[nt],bt=_[nt+1],rn=nt+1<P?bt.el||Aa(bt):z;Ct[E]===0?$(null,ht,T,rn,q,V,ne,ee,X):Oe&&(Ee<0||E!==Vt[Ee]?Ge(ht,T,rn,2):Ee--)}}},Ge=(w,_,T,z,q=null)=>{const{el:V,type:ne,transition:ee,children:X,shapeFlag:E}=w;if(E&6){Ge(w.component.subTree,_,T,z);return}if(E&128){w.suspense.move(_,T,z);return}if(E&64){ne.move(w,_,T,re);return}if(ne===B){s(V,_,T);for(let J=0;J<X.length;J++)Ge(X[J],_,T,z);s(w.anchor,_,T);return}if(ne===Us){S(w,_,T);return}if(z!==2&&E&1&&ee)if(z===0)ee.persisted&&!V[_t]?s(V,_,T):(ee.beforeEnter(V),s(V,_,T),mt(()=>ee.enter(V),q));else{const{leave:J,delayLeave:se,afterLeave:ce}=ee,$e=()=>{w.ctx.isUnmounted?o(V):s(V,_,T)},Pe=()=>{const Ee=V._isLeaving||!!V[_t];V._isLeaving&&V[_t](!0),ee.persisted&&!Ee?$e():J(V,()=>{$e(),ce&&ce()})};se?se(V,$e,Pe):Pe()}else s(V,_,T)},Ke=(w,_,T,z=!1,q=!1)=>{const{type:V,props:ne,ref:ee,children:X,dynamicChildren:E,shapeFlag:P,patchFlag:J,dirs:se,cacheIndex:ce,memo:$e}=w;if(J===-2&&(q=!1),ee!=null&&(Zt(),as(ee,null,T,w,!0),Xt()),ce!=null&&(_.renderCache[ce]=void 0),P&256){_.ctx.deactivate(w);return}const Pe=P&1&&se,Ee=!Bn(w);let Ue;if(Ee&&(Ue=ne&&ne.onVnodeBeforeUnmount)&&Ot(Ue,_,w),P&6)yt(w.component,T,z);else{if(P&128){w.suspense.unmount(T,z);return}Pe&&xn(w,null,_,"beforeUnmount"),P&64?w.type.remove(w,_,T,re,z):E&&!E.hasOnce&&(V!==B||J>0&&J&64)?et(E,_,T,!1,!0):(V===B&&J&384||!q&&P&16)&&et(X,_,T),z&&at(w)}const le=$e!=null&&ce==null;(Ee&&(Ue=ne&&ne.onVnodeUnmounted)||Pe||le)&&mt(()=>{Ue&&Ot(Ue,_,w),Pe&&xn(w,null,_,"unmounted"),le&&(w.el=null)},T)},at=w=>{const{type:_,el:T,anchor:z,transition:q}=w;if(_===B){pt(T,z);return}if(_===Us){y(w);return}const V=()=>{o(T),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(w.shapeFlag&1&&q&&!q.persisted){const{leave:ne,delayLeave:ee}=q,X=()=>ne(T,V);ee?ee(w.el,V,X):X()}else V()},pt=(w,_)=>{let T;for(;w!==_;)T=v(w),o(w),w=T;o(_)},yt=(w,_,T)=>{const{bum:z,scope:q,job:V,subTree:ne,um:ee,m:X,a:E}=w;vi(X),vi(E),z&&Ds(z),q.stop(),V&&(V.flags|=8,Ke(ne,w,_,T)),ee&&mt(ee,_),mt(()=>{w.isUnmounted=!0},_)},et=(w,_,T,z=!1,q=!1,V=0)=>{for(let ne=V;ne<w.length;ne++)Ke(w[ne],_,T,z,q)},j=w=>{if(w.shapeFlag&6)return j(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();
vendor: 6,194 bytes, line 13
13const _=v(w.anchor||w.el),T=_&&_[gc];return T?v(T):_};let oe=!1;const te=(w,_,T)=>{let z;w==null?_._vnode&&(Ke(_._vnode,null,null,!0),z=_._vnode.component):$(_._vnode||null,w,_,null,null,null,T),_._vnode=w,oe||(oe=!0,oi(z),ea(),oe=!1)},re={p:$,um:Ke,m:Ge,r:at,mt:ge,mc:D,pc:ae,pbc:F,n:j,o:e};return{render:te,hydrate:void 0,createApp:Hc(te)}}function Fo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function gn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function rd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ca(e,t,n=!1){const s=e.children,o=t.children;if(ve(s)&&ve(o))for(let r=0;r<s.length;r++){const i=s[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=Kt(o[r]),l.el=i.el),!n&&l.patchFlag!==-2&&Ca(i,l)),l.type===bo&&(l.patchFlag===-1&&(l=o[r]=Kt(l)),l.el=i.el),l.type===rt&&!l.el&&(l.el=i.el)}}function id(e){const t=e.slice(),n=[0];let s,o,r,i,l;const a=e.length;for(s=0;s<a;s++){const f=e[s];if(f!==0){if(o=n[n.length-1],e[o]<f){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<f?r=l+1:i=l;f<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Ea(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ea(t)}function vi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Aa(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Aa(t.subTree):null}const Ia=e=>e.__isSuspense;function ld(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):fc(e)}const B=Symbol.for("v-fgt"),bo=Symbol.for("v-txt"),rt=Symbol.for("v-cmt"),Us=Symbol.for("v-stc"),cs=[];let vt=null;function d(e=!1){cs.push(vt=e?null:[])}function ad(){cs.pop(),vt=cs[cs.length-1]||null}let xs=1;function Qs(e,t=!1){xs+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function Ra(e){return e.dynamicChildren=xs>0?vt||jn:null,ad(),xs>0&&vt&&vt.push(e),e}function p(e,t,n,s,o,r){return Ra(u(e,t,n,s,o,r,!0))}function pe(e,t,n,s,o){return Ra(G(e,t,n,s,o,!0))}function gs(e){return e?e.__v_isVNode===!0:!1}function _n(e,t){return e.type===t.type&&e.key===t.key}const Ta=({key:e})=>e??null,Vs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ze(e)||We(e)||we(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function u(e,t=null,n=null,s=0,o=null,r=e===B?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ta(t),ref:t&&Vs(t),scopeId:na,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:tt};return l?(Ir(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ze(n)?8:16),xs>0&&!i&&vt&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&vt.push(a),a}const G=ud;function ud(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Oc)&&(e=rt),gs(e)){const l=pn(e,t,!0);return n&&Ir(l,n),xs>0&&!r&&vt&&(l.shapeFlag&6?vt[vt.indexOf(e)]=l:vt.push(l)),l.patchFlag=-2,l}if(bd(e)&&(e=e.__vccOpts),t){t=cd(t);let{class:l,style:a}=t;l&&!ze(l)&&(t.class=Ie(l)),je(a)&&(ho(a)&&!ve(a)&&(a=Ze({},a)),t.style=lt(a))}const i=ze(e)?1:Ia(e)?128:oa(e)?64:je(e)?4:we(e)?2:0;return u(e,t,n,s,o,i,r,!0)}function cd(e){return e?ho(e)||ba(e)?Ze({},e):e:null}function pn(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:a}=e,f=t?dd(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Ta(f),ref:t&&t.ref?n&&r?ve(r)?r.concat(Vs(t)):[r,Vs(t)]:Vs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==B?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&vs(c,a.clone(c)),c}function K(e=" ",t=0){return G(bo,null,e,t)}function zn(e,t){const n=G(Us,null,e);return n.staticCount=t,n}function A(e="",t=!1){return t?(d(),pe(rt,null,e)):G(rt,null,e)}function Lt(e){return e==null||typeof e=="boolean"?G(rt):ve(e)?G(B,null,e.slice()):gs(e)?Kt(e):G(bo,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Ir(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ve(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Ir(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!ba(t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else we(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),s&64?(n=16,t=[K(t)]):n=8);e.children=t,e.shapeFlag|=n}function dd(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Ie([t.class,s.class]));else if(o==="style")t.style=lt([t.style,s.style]);else if(ro(o)){const r=t[o],i=s[o];i&&r!==i&&!(ve(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!io(o)&&(t[o]=i)}else o!==""&&(t[o]=s[o])}return t}function Ot(e,t,n,s=null){$t(e,t,7,[n,s])}const fd=ha();let pd=0;function md(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||fd,r={uid:pd++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_a(s,o),emitsOptions:va(s,o),emit:null,emitted:null,propsDefaults:Fe,inheritAttrs:s.inheritAttrs,ctx:Fe,data:Fe,props:Fe,attrs:Fe,slots:Fe,refs:Fe,setupState:Fe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
vendor: 2,044 bytes, lines 13-16
13sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=qc.bind(null,r),e.ce&&e.ce(r),r}let it=null;const Rr=()=>it||tt;let Zs,rr;{const e=po(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Zs=t("__VUE_INSTANCE_SETTERS__",n=>it=n),rr=t("__VUE_SSR_SETTERS__",n=>ys=n)}const Cs=e=>{const t=it;return Zs(e),e.scope.on(),()=>{e.scope.off(),Zs(t)}},xi=()=>{it&&it.scope.off(),Zs(null)};function Pa(e){return e.vnode.shapeFlag&4}let ys=!1;function hd(e,t=!1,n=!1){t&&rr(t);const{props:s,children:o}=e.vnode,r=Pa(e);Qc(e,s,r,t),td(e,o,n||t);const i=r?vd(e,t):void 0;return t&&rr(!1),i}function vd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Lc);const{setup:s}=n;if(s){Zt();const o=e.setupContext=s.length>1?gd(e):null,r=Cs(e),i=$s(s,e,0,[e.props,o]),l=$l(i);if(Xt(),r(),(l||e.sp)&&!Bn(e)&&ca(e),l){if(i.then(xi,xi),t)return i.then(a=>{gi(e,a)}).catch(a=>{vo(a,e,0)});e.asyncDep=i}else gi(e,i)}else Oa(e)}function gi(e,t,n){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:je(t)&&(e.setupState=Ql(t)),Oa(e)}function Oa(e,t,n){const s=e.type;e.render||(e.render=s.render||Ft);{const o=Cs(e);Zt();try{jc(e)}finally{Xt(),o()}}}const xd={get(e,t){return ot(e,"get",""),e[t]}};function gd(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xd),slots:e.slots,emit:e.emit,expose:t}}function wo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ql(Sr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in us)return us[n](e)},has(t,n){return n in t||n in us}})):e.proxy}function yd(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}function bd(e){return we(e)&&"__vccOpts"in e}const R=(e,t)=>lc(e,t,ys);function Tr(e,t,n){try{Qs(-1);const s=arguments.length;return s===2?je(t)&&!ve(t)?gs(t)?G(e,null,[t]):G(e,t):G(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&gs(n)&&(n=[n]),G(e,t,n))}finally{Qs(1)}}const wd="3.5.35";/** 14* @vue/runtime-dom v3.5.35 15* (c) 2018-present Yuxi (Evan) You and Vue contributors 16* @license MIT
17**/let ir;const yi=typeof window<"u"&&window.trustedTypes;if(yi)try{ir=yi.createPolicy("vue",{createHTML:e=>e})}catch{}const Ma=ir?e=>ir.createHTML(e):e=>e,_d="http://www.w3.org/2000/svg",kd="http://www.w3.org/1998/Math/MathML",Gt=typeof document<"u"?document:null,bi=Gt&&Gt.createElement("template"),Sd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?Gt.createElementNS(_d,e):t==="mathml"?Gt.createElementNS(kd,e):n?Gt.createElement(e,{is:n}):Gt.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Gt.createTextNode(e),createComment:e=>Gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{bi.innerHTML=Ma(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=bi.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ln="transition",es="animation",bs=Symbol("_vtc"),Na={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$d=Ze({},ra,Na),Cd=e=>(e.displayName="Transition",e.props=$d,e),La=Cd((e,{slots:t})=>Tr(wc,Ed(e),t)),yn=(e,t=[])=>{ve(e)?e.forEach(n=>n(...t)):e&&e(...t)},wi=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Ed(e){const t={};for(const U in e)U in Na||(t[U]=e[U]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:f=i,appearToClass:c=l,leaveFromClass:m=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,I=Ad(o),$=I&&I[0],b=I&&I[1],{onBeforeEnter:x,onEnter:g,onEnterCancelled:S,onLeave:y,onLeaveCancelled:O,onBeforeAppear:W=x,onAppear:M=g,onAppearCancelled:D=S}=t,Q=(U,Y,ge,Se)=>{U._enterCancelled=Se,bn(U,Y?c:l),bn(U,Y?f:i),ge&&ge()},F=(U,Y)=>{U._isLeaving=!1,bn(U,m),bn(U,h),bn(U,v),Y&&Y()},Z=U=>(Y,ge)=>{const Se=U?M:g,ye=()=>Q(Y,U,ge);yn(Se,[Y,ye]),_i(()=>{bn(Y,U?a:r),zt(Y,U?c:l),wi(Se)||ki(Y,s,$,ye)})};return Ze(t,{onBeforeEnter(U){yn(x,[U]),zt(U,r),zt(U,i)},onBeforeAppear(U){yn(W,[U]),zt(U,a),zt(U,f)},onEnter:Z(!1),onAppear:Z(!0),onLeave(U,Y){U._isLeaving=!0;const ge=()=>F(U,Y);zt(U,m),U._enterCancelled?(zt(U,v),Ci(U)):(Ci(U),zt(U,v)),_i(()=>{U._isLeaving&&(bn(U,m),zt(U,h),wi(y)||ki(U,s,b,ge))}),yn(y,[U,ge])},onEnterCancelled(U){Q(U,!1,void 0,!0),yn(S,[U])},onAppearCancelled(U){Q(U,!0,void 0,!0),yn(D,[U])},onLeaveCancelled(U){F(U),yn(O,[U])}})}function Ad(e){if(e==null)return null;if(je(e))return[Do(e.enter),Do(e.leave)];{const t=Do(e);return[t,t]}}function Do(e){return Cu(e)}function zt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[bs]||(e[bs]=new Set)).add(t)}function bn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[bs];n&&(n.delete(t),n.size||(e[bs]=void 0))}function _i(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Id=0;function ki(e,t,n,s){const o=e._endId=++Id,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=Rd(e,t);if(!i)return s();const f=i+"end";let c=0;const m=()=>{e.removeEventListener(f,v),r()},v=h=>{h.target===e&&++c>=a&&m()};setTimeout(()=>{c<a&&m()},l+1),e.addEventListener(f,v)}function Rd(e,t){const n=window.getComputedStyle(e),s=I=>(n[I]||"").split(", "),o=s(`${ln}Delay`),r=s(`${ln}Duration`),i=Si(o,r),l=s(`${es}Delay`),a=s(`${es}Duration`),f=Si(l,a);let c=null,m=0,v=0;t===ln?i>0&&(c=ln,m=i,v=r.length):t===es?f>0&&(c=es,m=f,v=a.length):(m=Math.max(i,f),c=m>0?i>f?ln:es:null,v=c?c===ln?r.length:a.length:0);
17const h=c===ln&&/\b(?:transform|all)(?:,|$)/.test(s(`${ln}Property`).toString());return{type:c,timeout:m,propCount:v,hasTransform:h}}function Si(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>$i(n)+$i(e[s])))}function $i(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ci(e){return(e?e.ownerDocument:document).body.offsetHeight}function Td(e,t,n){const s=e[bs];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ei=Symbol("_vod"),Pd=Symbol("_vsh"),Od=Symbol(""),Md=/(?:^|;)\s*display\s*:/;function Nd(e,t,n){const s=e.style,o=ze(n);let r=!1;if(n&&!o){if(t)if(ze(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&os(s,l,"")}else for(const i in t)n[i]==null&&os(s,i,"");for(const i in n){i==="display"&&(r=!0);const l=n[i];l!=null?jd(e,i,!ze(t)&&t?t[i]:void 0,l)||os(s,i,l):os(s,i,"")}}else if(o){if(t!==n){const i=s[Od];i&&(n+=";"+i),s.cssText=n,r=Md.test(n)}}else t&&e.removeAttribute("style");Ei in e&&(e[Ei]=r?s.display:"",e[Pd]&&(s.display="none"))}const Ai=/\s*!important$/;function os(e,t,n){if(ve(n))n.forEach(s=>os(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ld(e,t);Ai.test(n)?e.setProperty(mn(s),n.replace(Ai,""),"important"):e[s]=n}}const Ii=["Webkit","Moz","ms"],Bo={};function Ld(e,t){const n=Bo[t];if(n)return n;let s=ft(t);if(s!=="filter"&&s in e)return Bo[t]=s;s=co(s);for(let o=0;o<Ii.length;o++){const r=Ii[o]+s;if(r in e)return Bo[t]=r}return t}function jd(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ze(s)&&n===s}const Ri="http://www.w3.org/1999/xlink";function Ti(e,t,n,s,o,r=Pu(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ri,t.slice(6,t.length)):e.setAttributeNS(Ri,t,n):n==null||r&&!Il(n)?e.removeAttribute(t):e.setAttribute(t,r?"":gt(n)?String(n):n)}function Pi(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ma(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Il(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function kn(e,t,n,s){e.addEventListener(t,n,s)}function Fd(e,t,n,s){e.removeEventListener(t,n,s)}const Oi=Symbol("_vei");function Dd(e,t,n,s,o=null){const r=e[Oi]||(e[Oi]={}),i=r[t];if(s&&i)i.value=s;else{const[l,a]=Bd(t);if(s){const f=r[t]=Hd(s,o);kn(e,l,f,a)}else i&&(Fd(e,l,i,a),r[t]=void 0)}}const Mi=/(?:Once|Passive|Capture)$/;function Bd(e){let t;if(Mi.test(e)){t={};let s;for(;s=e.match(Mi);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):mn(e.slice(2)),t]}let Uo=0;const Ud=Promise.resolve(),Vd=()=>Uo||(Ud.then(()=>Uo=0),Uo=Date.now());function Hd(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(ve(o)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const i=o.slice(),l=[s];for(let a=0;a<i.length&&!s._stopped;a++){const f=i[a];f&&$t(f,t,5,l)}}else $t(o,t,5,[s])};return n.value=e,n.attached=Vd(),n}const Ni=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,zd=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?Td(e,s,i):t==="style"?Nd(e,n,s):ro(t)?io(t)||Dd(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qd(e,t,s,i))?(Pi(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ti(e,t,s,i,r,t!=="value")):e._isVueCE&&(Wd(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ze(s)))?Pi(e,ft(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ti(e,t,s,i))};function qd(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ni(t)&&we(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Ni(t)&&ze(n)?!1:t in e}function Wd(e,t){const n=e._def.props;if(!n)return!1;const s=ft(t);return Array.isArray(n)?n.some(o=>ft(o)===s):Object.keys(n).some(o=>ft(o)===s)}const Xs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?n=>Ds(t,n):t};function Gd(e){e.target.composing=!0}function Li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Un=Symbol("_assign");function ji(e,t,n){return t&&(e=e.trim()),n&&(e=fo(e)),e}const Dt={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[Un]=Xs(o);const r=s||o.props&&o.props.type==="number";kn(e,t?"change":"input",i=>{i.target.composing||e[Un](ji(e.value,n,r))}),(n||r)&&kn(e,"change",()=>{e.value=ji(e.value,n,r)}),t||(kn(e,"compositionstart",Gd),kn(e,"compositionend",Li),kn(e,"change",Li))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},i){if(e[Un]=Xs(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?fo(e.value):e.value,a=t??"";if(l===a)return;const f=e.getRootNode();(f instanceof Document||f instanceof ShadowRoot)&&f.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===a)||(e.value=a)}},Kd={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const o=lo(t);kn(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?fo(eo(i)):eo(i));e[Un](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Ye(()=>{e._assigning=!1})}),e[Un]=Xs(s)},mounted(e,{value:t}){Fi(e,t)},beforeUpdate(e,t,n){e[Un]=Xs(n)},updated(e,{value:t}){e._assigning||Fi(e,t)}};function Fi(e,t){const n=e.multiple,s=ve(t);if(!(n&&!s&&!lo(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=eo(i);if(n)if(s){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(f=>String(f)===String(l)):i.selected=Mu(t,l)>-1}else i.selected=t.has(l);else if(ks(eo(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function eo(e){return"_value"in e?e._value:e.value}const Yd=["ctrl","shift","alt","meta"],Jd={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>
vendor: 28,080 bytes, lines 17-29
17Yd.some(n=>e[`${n}Key`]&&!t.includes(n))},St=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...r)=>{for(let i=0;i<t.length;i++){const l=Jd[t[i]];if(l&&l(o,t))return}return e(o,...r)})},Qd={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Di=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const r=mn(o.key);if(t.some(i=>i===r||Qd[i]===r))return e(o)})},Zd=Ze({patchProp:zd},Sd);let Bi;function Xd(){return Bi||(Bi=sd(Zd))}const ef=(...e)=>{const t=Xd().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=nf(s);if(!o)return;const r=t._component;!we(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,tf(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function tf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function nf(e){return ze(e)?document.querySelector(e):e}/*! 18 * pinia v2.3.1 19 * (c) 2025 Eduardo San Martin Morote 20 * @license MIT 21 */let ja;const _o=e=>ja=e,Fa=Symbol();function lr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ds;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ds||(ds={}));function sf(){const e=Ol(!0),t=e.run(()=>L({}));let n=[],s=[];const o=Sr({install(r){_o(o),o._a=r,r.provide(Fa,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return this._a?n.push(r):s.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Da=()=>{};function Ui(e,t,n,s=Da){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Ml()&&Nu(o),o}function Pn(e,...t){e.slice().forEach(n=>{n(...t)})}const of=e=>e(),Vi=Symbol(),Vo=Symbol();function ar(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];lr(o)&&lr(s)&&e.hasOwnProperty(n)&&!We(s)&&!Qt(s)?e[n]=ar(o,s):e[n]=s}return e}const rf=Symbol();function lf(e){return!lr(e)||!e.hasOwnProperty(rf)}const{assign:un}=Object;function af(e){return!!(We(e)&&e.effect)}function uf(e,t,n,s){const{state:o,actions:r,getters:i}=t,l=n.state.value[e];let a;function f(){l||(n.state.value[e]=o?o():{});const c=sc(n.state.value[e]);return un(c,r,Object.keys(i||{}).reduce((m,v)=>(m[v]=Sr(R(()=>{_o(n);const h=n._s.get(e);return i[v].call(h,h)})),m),{}))}return a=Ba(e,f,t,n,s,!0),a}function Ba(e,t,n={},s,o,r){let i;const l=un({actions:{}},n),a={deep:!0};let f,c,m=[],v=[],h;const I=s.state.value[e];!r&&!I&&(s.state.value[e]={});let $;function b(D){let Q;f=c=!1,typeof D=="function"?(D(s.state.value[e]),Q={type:ds.patchFunction,storeId:e,events:h}):(ar(s.state.value[e],D),Q={type:ds.patchObject,payload:D,storeId:e,events:h});const F=$=Symbol();Ye().then(()=>{$===F&&(f=!0)}),c=!0,Pn(m,Q,s.state.value[e])}const x=r?function(){const{state:Q}=n,F=Q?Q():{};this.$patch(Z=>{un(Z,F)})}:Da;function g(){i.stop(),m=[],v=[],s._s.delete(e)}const S=(D,Q="")=>{if(Vi in D)return D[Vo]=Q,D;const F=function(){_o(s);const Z=Array.from(arguments),U=[],Y=[];function ge(fe){U.push(fe)}function Se(fe){Y.push(fe)}Pn(v,{args:Z,name:F[Vo],store:O,after:ge,onError:Se});let ye;try{ye=D.apply(this&&this.$id===e?this:O,Z)}catch(fe){throw Pn(Y,fe),fe}return ye instanceof Promise?ye.then(fe=>(Pn(U,fe),fe)).catch(fe=>(Pn(Y,fe),Promise.reject(fe))):(Pn(U,ye),ye)};return F[Vi]=!0,F[Vo]=Q,F},y={_p:s,$id:e,$onAction:Ui.bind(null,v),$patch:b,$reset:x,$subscribe(D,Q={}){const F=Ui(m,D,Q.detached,()=>Z()),Z=i.run(()=>Ce(()=>s.state.value[e],U=>{(Q.flush==="sync"?c:f)&&D({storeId:e,type:ds.direct,events:h},U)},un({},a,Q)));return F},$dispose:g},O=Ss(y);s._s.set(e,O);const M=(s._a&&s._a.runWithContext||of)(()=>s._e.run(()=>(i=Ol()).run(()=>t({action:S}))));for(const D in M){const Q=M[D];if(We(Q)&&!af(Q)||Qt(Q))r||(I&&lf(Q)&&(We(Q)?Q.value=I[D]:ar(Q,I[D])),s.state.value[e][D]=Q);else if(typeof Q=="function"){const F=S(Q,D);M[D]=F,l.actions[D]=Q}}return un(O,M),un(Te(O),M),Object.defineProperty(O,"$state",{get:()=>s.state.value[e],set:D=>{b(Q=>{un(Q,D)})}}),s._p.forEach(D=>{un(O,i.run(()=>D({store:O,app:s._a,pinia:s,options:l})))}),I&&r&&n.hydrate&&n.hydrate(O.$state,I),f=!0,c=!0,O}/*! #__NO_SIDE_EFFECTS__ */function Pr(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(l,a){const f=pc();return l=l||(f?kt(Fa,null):null),l&&_o(l),l=ja,l._s.has(s)||(r?Ba(s,t,o,l):uf(s,o,l)),l._s.get(s)}return i.$id=s,i}/*! 22 * vue-router v4.6.4 23 * (c) 2025 Eduardo San Martin Morote 24 * @license MIT 25 */const Ln=typeof document<"u";function Ua(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ua(e.default)}const Ne=Object.assign;function Ho(e,t){const n={};for(const s in t){const o=t[s];n[s]=Rt(o)?o.map(e):e(o)}return n}const fs=()=>{},Rt=Array.isArray;function Hi(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Va=/#/g,df=/&/g,ff=/\//g,pf=/=/g,mf=/\?/g,Ha=/\+/g,hf=/%5B/g,vf=/%5D/g,za=/%5E/g,xf=/%60/g,qa=/%7B/g,gf=/%7C/g,Wa=/%7D/g,yf=/%20/g;function Or(e){return e==null?"":encodeURI(""+e).replace(gf,"|").replace(hf,"[").replace(vf,"]")}function bf(e){return Or(e).replace(qa,"{").replace(Wa,"}").replace(za,"^")}function ur(e){return Or(e).replace(Ha,"%2B").replace(yf,"+").replace(Va,"%23").replace(df,"%26").replace(xf,"`").replace(qa,"{").replace(Wa,"}").replace(za,"^")}function wf(e){return ur(e).replace(pf,"%3D")}function _f(e){return Or(e).replace(Va,"%23").replace(mf,"%3F")}function kf(e){return _f(e).replace(ff,"%2F")}function ws(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Sf=/\/$/,$f=e=>e.replace(Sf,"");function zo(e,t,n="/"){let s,o={},r="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),r=t.slice(a,l>0?l:t.length),o=e(r.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=If(s??t,n),{fullPath:s+r+i,path:s,query:o,hash:ws(i)}}function Cf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ef(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&qn(t.matched[s],n.matched[o])&&Ga(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ga(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Af(e[n],t[n]))return!1;return!0}function Af(e,t){return Rt(e)?qi(e,t):Rt(t)?qi(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function qi(e,t){return Rt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function If(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let r=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i).join("/")}const an={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let cr=function(e){return e.pop="pop",e.push="push",e}({}),qo=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Rf(e){if(!e)if(Ln){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),$f(e)}const Tf=/^[^#]+#/;function Pf(e,t){return e.replace(Tf,"#")+t}function Of(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const ko=()=>({left:window.scrollX,top:window.scrollY});function Mf(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Of(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Wi(e,t){return(history.state?history.state.position-t:-1)+e}const dr=new Map;function Nf(e,t){dr.set(e,t)}function Lf(e){const t=dr.get(e);return dr.delete(e),t}function jf(e){return typeof e=="string"||e&&typeof e=="object"}function Ka(e){return typeof e=="string"||typeof e=="symbol"}let qe=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Ya=Symbol("");qe.MATCHER_NOT_FOUND+"",qe.NAVIGATION_GUARD_REDIRECT+"",qe.NAVIGATION_ABORTED+"",qe.NAVIGATION_CANCELLED+"",qe.NAVIGATION_DUPLICATED+"";function Wn(e,t){return Ne(new Error,{type:e,[Ya]:!0},t)}function qt(e,t){return e instanceof Error&&Ya in e&&(t==null||!!(e.type&t))}const Ff=["params","query","hash"];function Df(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ff)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Bf(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const o=n[s].replace(Ha," "),r=o.indexOf("="),i=ws(r<0?o:o.slice(0,r)),l=r<0?null:ws(o.slice(r+1));if(i in t){let a=t[i];Rt(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function Gi(e){let t="";for(let n in e){const s=e[n];if(n=wf(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Rt(s)?s.map(o=>o&&ur(o)):[s&&ur(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Uf(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Rt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const Vf=Symbol(""),Ki=Symbol(""),So=Symbol(""),Mr=Symbol(""),fr=Symbol("");function ts(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function dn(e,t,n,s,o,r=i=>i()){const i=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((l,a)=>{const f=v=>{v===!1?a(Wn(qe.NAVIGATION_ABORTED,{from:n,to:t})):v instanceof Error?a(v):jf(v)?a(Wn(qe.NAVIGATION_GUARD_REDIRECT,{from:t,to:v})):(i&&s.enterCallbacks[o]===i&&typeof v=="function"&&i.push(v),l())},c=r(()=>e.call(s&&s.instances[o],t,n,f));let m=Promise.resolve(c);e.length<3&&(m=m.then(f)),m.catch(v=>a(v))})}function Wo(e,t,n,s,o=r=>r()){const r=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Ua(a)){const f=(a.__vccOpts||a)[t];f&&r.push(dn(f,n,s,i,l,o))}else{let f=a();r.push(()=>f.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const m=cf(c)?c.default:c;i.mods[l]=c,i.components[l]=m;const v=(m.__vccOpts||m)[t];return v&&dn(v,n,s,i,l,o)()}))}}return r}function Hf(e,t){const n=[],s=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;i<r;i++){const l=t.matched[i];l&&(e.matched.find(f=>qn(f,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(f=>qn(f,a))||o.push(a))}return[n,s,o]}/*! 26 * vue-router v4.6.4 27 * (c) 2025 Eduardo San Martin Morote 28 * @license MIT 29 */let zf=()=>location.protocol+"//"+location.host;function Ja(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){let i=o.includes(e.slice(r))?e.slice(r).length:1,l=o.slice(i);return l[0]!=="/"&&(l="/"+l),zi(l,"")}return zi(n,e)+s+o}function qf(e,t,n,s){let o=[],r=[],i=null;const l=({state:v})=>{const h=Ja(e,location),I=n.value,$=t.value;let b=0;if(v){if(n.value=h,t.value=v,i&&i===I){i=null;return}b=$?v.position-$.position:0}else s(h);o.forEach(x=>{x(n.value,I,{delta:b,type:cr.pop,direction:b?b>0?qo.forward:qo.back:qo.unknown})})};function a(){i=n.value}function f(v){o.push(v);const h=()=>{const I=o.indexOf(v);I>-1&&o.splice(I,1)};return r.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:v}=window;if(!v.state)return;v.replaceState(Ne({},v.state,{scroll:ko()}),"")}}function m(){for(const v of r)v();r=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:f,destroy:m}}function Yi(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?ko():null}}function Wf(e){const{history:t,location:n}=window,s={value:Ja(e,n)},o={value:t.state};o.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(a,f,c){const m=e.indexOf("#"),v=m>-1?(n.host&&document.querySelector("base")?e:e.slice(m))+a:zf()+e+a;try{t[c?"replaceState":"pushState"](f,"",v),o.value=f}catch(h){console.error(h),n[c?"replace":"assign"](v)}}function i(a,f){r(a,Ne({},t.state,Yi(o.value.back,a,o.value.forward,!0),f,{position:o.value.position}),!0),s.value=a}function l(a,f){const c=Ne({},o.value,t.state,{forward:a,scroll:ko()});r(c.current,c,!0),r(a,Ne({},Yi(s.value,a,null),{position:c.position+1},f),!1),s.value=a}return{location:s,state:o,push:l,replace:i}}function Gf(e){e=Rf(e);const t=Wf(e),n=qf(e,t.state,t.location,t.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=Ne({location:"",base:e,go:s,createHref:Pf.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let $n=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Je=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Je||{});const Kf={type:$n.Static,value:""},Yf=/[a-zA-Z0-9_]/;function Jf(e){if(!e)return[[]];if(e==="/")return[[Kf]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${f}": ${h}`)}let n=Je.Static,s=n;const o=[];let r;function i(){r&&o.push(r),r=[]}let l=0,a,f="",c="";function m(){f&&(n===Je.Static?r.push({type:$n.Static,value:f}):n===Je.Param||n===Je.ParamRegExp||n===Je.ParamRegExpEnd?(r.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),r.push({type:$n.Param,value:f,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),f="")}function v(){f+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==Je.ParamRegExp){s=n,n=Je.EscapeNext;continue}switch(n){case Je.Static:a==="/"?(f&&m(),i()):a===":"?(m(),n=Je.Param):v();break;case Je.EscapeNext:v(),n=s;break;case Je.Param:a==="("?n=Je.ParamRegExp:Yf.test(a)?v():(m(),n=Je.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case Je.ParamRegExp:a===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+a:n=Je.ParamRegExpEnd:c+=a;break;case Je.ParamRegExpEnd:m(),n=Je.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,c="";break;default:t("Unknown state");break}}return n===Je.ParamRegExp&&t(`Unfinished custom RegExp for param "${f}"`),m(),i(),o}const Ji="[^/]+?",Qf={sensitive:!1,strict:!1,start:!0,end:!0};var ct=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(ct||{});const Zf=/[.+*?^${}()[\]/\\]/g;function Xf(e,t){const n=Ne({},Qf,t),s=[];let o=n.start?"^":"";const r=[];for(const f of e){const c=f.length?[]:[ct.Root];n.strict&&!f.length&&(o+="/");for(let m=0;m<f.length;m++){const v=f[m];let h=ct.Segment+(n.sensitive?ct.BonusCaseSensitive:0);if(v.type===$n.Static)m||(o+="/"),o+=v.value.replace(Zf,"\\$&"),h+=ct.Static;else if(v.type===$n.Param){const{value:I,repeatable:$,optional:b,regexp:x}=v;r.push({name:I,repeatable:$,optional:b});const g=x||Ji;if(g!==Ji){h+=ct.BonusCustomRegExp;try{`${g}`}catch(y){throw new Error(`Invalid custom RegExp for param "${I}" (${g}): `+y.message)}}let S=$?`((?:${g})(?:/(?:${g}))*)`:`(${g})`;m||(S=b&&f.length<2?`(?:/${S})`:"/"+S),b&&(S+="?"),o+=S,h+=ct.Dynamic,b&&(h+=ct.BonusOptional),$&&(h+=ct.BonusRepeatable),g===".*"&&(h+=ct.BonusWildcard)}c.push(h)}s.push(c)}if(n.strict&&n.end){const f=s.length-1;s[f][s[f].length-1]+=ct.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function l(f){const c=f.match(i),m={};if(!c)return null;for(let v=1;v<c.length;v++){const h=c[v]||"",I=r[v-1];m[I.name]=h&&I.repeatable?h.split("/"):h}return m}function a(f){let c="",m=!1;for(const v of e){(!m||!c.endsWith("/"))&&(c+="/"),m=!1;for(const h of v)if(h.type===$n.Static)c+=h.value;else if(h.type===$n.Param){const{value:I,repeatable:$,optional:b}=h,x=I in f?f[I]:"";if(Rt(x)&&!$)throw new Error(`Provided param "${I}" is an array but it is not repeatable (* or + modifiers)`);const g=Rt(x)?x.join("/"):x;if(!g)if(b)v.length<2&&(c.endsWith("/")?c=c.slice(0,-1):m=!0);else throw new Error(`Missing required param "${I}"`);c+=g}}return c||"/"}return{re:i,score:s,keys:r,parse:l,stringify:a}}function ep(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===ct.Static+ct.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===ct.Static+ct.Segment?1:-1:0}function Qa(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const r=ep(s[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-s.length)===1){if(Qi(s))return 1;if(Qi(o))return-1}return o.length-s.length}function Qi(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const tp={strict:!1,end:!0,sensitive:!1};function np(e,t,n){const s=Xf(Jf(e.path),n),o=Ne(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function sp(e,t){const n=[],s=new Map;t=Hi(tp,t);function o(m){return s.get(m)}function r(m,v,h){const I=!h,$=Xi(m);$.aliasOf=h&&h.record;const b=Hi(t,m),x=[$];if("alias"in m){const y=typeof m.alias=="string"?[m.alias]:m.alias;for(const O of y)x.push(Xi(Ne({},$,{components:h?h.record.components:$.components,path:O,aliasOf:h?h.record:$})))}let g,S;for(const y of x){const{path:O}=y;if(v&&O[0]!=="/"){const W=v.record.path,M=W[W.length-1]==="/"?"":"/";y.path=v.record.path+(O&&M+O)}if(g=np(y,v,b),h?h.alias.push(g):(S=S||g,S!==g&&S.alias.push(g),I&&m.name&&!el(g)&&i(m.name)),Za(g)&&a(g),$.children){const W=$.children;for(let M=0;M<W.length;M++)r(W[M],g,h&&h.children[M])}h=h||g}return S?()=>{i(S)}:fs}function i(m){if(Ka(m)){const v=s.get(m);v&&(s.delete(m),n.splice(n.indexOf(v),1),v.children.forEach(i),v.alias.forEach(i))}else{const v=n.indexOf(m);v>-1&&(n.splice(v,1),m.record.name&&s.delete(m.record.name),m.children.forEach(i),m.alias.forEach(i))}}function l(){return n}function a(m){const v=ip(m,n);n.splice(v,0,m),m.record.name&&!el(m)&&s.set(m.record.name,m)}function f(m,v){let h,I={},$,b;if("name"in m&&m.name){if(h=s.get(m.name),!h)throw Wn(qe.MATCHER_NOT_FOUND,{location:m});b=h.record.name,I=Ne(Zi(v.params,h.keys.filter(S=>!S.optional).concat(h.parent?h.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),m.params&&Zi(m.params,h.keys.map(S=>S.name))),$=h.stringify(I)}else if(m.path!=null)$=m.path,h=n.find(S=>S.re.test($)),h&&(I=h.parse($),b=h.record.name);else{if(h=v.name?s.get(v.name):n.find(S=>S.re.test(v.path)),!h)throw Wn(qe.MATCHER_NOT_FOUND,{location:m,currentLocation:v});b=h.record.name,I=Ne({},v.params,m.params),$=h.stringify(I)}const x=[];let g=h;for(;g;)x.unshift(g.record),g=g.parent;return{name:b,path:$,params:I,matched:x,meta:rp(x)}}e.forEach(m=>r(m));function c(){n.length=0,s.clear()}return{addRoute:r,resolve:f,removeRoute:i,clearRoutes:c,getRoutes:l,getRecordMatcher:o}}function Zi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Xi(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:op(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function op(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function el(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rp(e){return e.reduce((t,n)=>Ne(t,n.meta),{})}function ip(e,t){let n=0,s=t.length;for(;n!==s;){const r=n+s>>1;Qa(e,t[r])<0?s=r:n=r+1}const o=lp(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function lp(e){let t=e;for(;t=t.parent;)if(Za(t)&&Qa(e,t)===0)return t}function Za({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tl(e){const t=kt(So),n=kt(Mr),s=R(()=>{const a=H(e.to);return t.resolve(a)}),o=R(()=>{const{matched:a}=s.value,{length:f}=a,c=a[f-1],m=n.matched;if(!c||!m.length)return-1;const v=m.findIndex(qn.bind(null,c));if(v>-1)return v;const h=nl(a[f-2]);return f>1&&nl(c)===h&&m[m.length-1].path!==h?m.findIndex(qn.bind(null,a[f-2])):v}),r=R(()=>o.value>-1&&dp(n.params,s.value.params)),i=R(()=>o.value>-1&&o.value===n.matched.length-1&&Ga(n.params,s.value.params));function l(a={}){if(cp(a)){const f=t[H(e.replace)?"replace":"push"](H(e.to)).catch(fs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:s,href:R(()=>s.value.href),isActive:r,isExactActive:i,navigate:l}}function ap(e){return e.length===1?e[0]:e}const up=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:tl,setup(e,{slots:t}){const n=Ss(tl(e)),{options:s}=kt(So),o=R(()=>({[sl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[sl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&ap(t.default(n));return e.custom?r:Tr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),xe=up;function cp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function dp(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!Rt(o)||o.length!==s.length||s.some((r,i)=>r.valueOf()!==o[i].valueOf()))return!1}return!0}function nl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const sl=(e,t,n)=>e??t??n,fp=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=kt(fr),o=R(()=>e.route||s.value),r=kt(Ki,0),i=R(()=>{let f=H(r);const{matched:c}=o.value;let m;for(;(m=c[f])&&!m.components;)f++;return f}),l=R(()=>o.value.matched[i.value]);Bs(Ki,R(()=>i.value+1)),Bs(Vf,l),Bs(fr,o);const a=L();return Ce(()=>[a.value,l.value,e.name],([f,c,m],[v,h,I])=>{c&&(c.instances[m]=f,h&&h!==c&&f&&f===v&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),f&&c&&(!h||!qn(c,h)||!v)&&(c.enterCallbacks[m]||[]).forEach($=>$(f))},{flush:"post"}),()=>{const f=o.value,c=e.name,m=l.value,v=m&&m.components[c];if(!v)return ol(n.default,{Component:v,route:f});const h=m.props[c],I=h?h===!0?f.params:typeof h=="function"?h(f):h:null,b=Tr(v,Ne({},I,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(m.instances[c]=null)},ref:a}));return ol(n.default,{Component:b,route:f})||b}}});function ol(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Xa=fp;function pp(e){const t=sp(e.routes,e),n=e.parseQuery||Bf,s=e.stringifyQuery||Gi,o=e.history,r=ts(),i=ts(),l=ts(),a=ec(an);let f=an;Ln&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ho.bind(null,j=>""+j),m=Ho.bind(null,kf),v=Ho.bind(null,ws);function h(j,oe){let te,re;return Ka(j)?(te=t.getRecordMatcher(j),re=oe):re=j,t.addRoute(re,te)}function I(j){const oe=t.getRecordMatcher(j);oe&&t.removeRoute(oe)}function $(){return t.getRoutes().map(j=>j.record)}function b(j){return!!t.getRecordMatcher(j)}function x(j,oe){if(oe=Ne({},oe||a.value),typeof j=="string"){const T=zo(n,j,oe.path),z=t.resolve({path:T.path},oe),q=o.createHref(T.fullPath);return Ne(T,z,{params:v(z.params),hash:ws(T.hash),redirectedFrom:void 0,href:q})}let te;if(j.path!=null)te=Ne({},j,{path:zo(n,j.path,oe.path).path});else{const T=Ne({},j.params);for(const z in T)T[z]==null&&delete T[z];te=Ne({},j,{params:m(T)}),oe.params=m(oe.params)}const re=t.resolve(te,oe),_e=j.hash||"";re.params=c(v(re.params));const w=Cf(s,Ne({},j,{hash:bf(_e),path:re.path})),_=o.createHref(w);return Ne({fullPath:w,hash:_e,query:s===Gi?Uf(j.query):j.query||{}},re,{redirectedFrom:void 0,href:_})}function g(j){return typeof j=="string"?zo(n,j,a.value.path):Ne({},j)}function S(j,oe){if(f!==j)return Wn(qe.NAVIGATION_CANCELLED,{from:oe,to:j})}function y(j){return M(j)}function O(j){return y(Ne(g(j),{replace:!0}))}function W(j,oe){const te=j.matched[j.matched.length-1];if(te&&te.redirect){const{redirect:re}=te;let _e=typeof re=="function"?re(j,oe):re;return typeof _e=="string"&&(_e=_e.includes("?")||_e.includes("#")?_e=g(_e):{path:_e},_e.params={}),Ne({query:j.query,hash:j.hash,params:_e.path!=null?{}:j.params},_e)}}function M(j,oe){const te=f=x(j),re=a.value,_e=j.state,w=j.force,_=j.replace===!0,T=W(te,re);if(T)return M(Ne(g(T),{state:typeof T=="object"?Ne({},_e,T.state):_e,force:w,replace:_}),oe||te);const z=te;z.redirectedFrom=oe;let q;return!w&&Ef(s,re,te)&&(q=Wn(qe.NAVIGATION_DUPLICATED,{to:z,from:re}),Ge(re,re,!0,!1)),(q?Promise.resolve(q):F(z,re)).catch(V=>qt(V)?qt(V,qe.NAVIGATION_GUARD_REDIRECT)?V:ue(V):ae(V,z,re)).then(V=>{if(V){if(qt(V,qe.NAVIGATION_GUARD_REDIRECT))return M(Ne({replace:_},g(V.to),{state:typeof V.to=="object"?Ne({},_e,V.to.state):_e,force:w}),oe||z)}else V=U(z,re,!0,_,_e);return Z(z,re,V),V})}function D(j,oe){const te=S(j,oe);return te?Promise.reject(te):Promise.resolve()}function Q(j){const oe=pt.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(j):j()}function F(j,oe){let te;const[re,_e,w]=Hf(j,oe);te=Wo(re.reverse(),"beforeRouteLeave",j,oe);for(const T of re)T.leaveGuards.forEach(z=>{te.push(dn(z,j,oe))});const _=D.bind(null,j,oe);return te.push(_),et(te).then(()=>{te=[];for(const T of r.list())te.push(dn(T,j,oe));return te.push(_),et(te)}).then(()=>{te=Wo(_e,"beforeRouteUpdate",j,oe);for(const T of _e)T.updateGuards.forEach(z=>{te.push(dn(z,j,oe))});return te.push(_),et(te)}).then(()=>{te=[];for(const T of w)if(T.beforeEnter)if(Rt(T.beforeEnter))for(const z of T.beforeEnter)te.push(dn(z,j,oe));else te.push(dn(T.beforeEnter,j,oe));return te.push(_),et(te)}).then(()=>(j.matched.forEach(T=>T.enterCallbacks={}),te=Wo(w,"beforeRouteEnter",j,oe,Q),te.push(_),et(te))).then(()=>{te=[];for(const T of i.list())te.push(dn(T,j,oe));return te.push(_),et(te)}
29).catch(T=>qt(T,qe.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function Z(j,oe,te){l.list().forEach(re=>Q(()=>re(j,oe,te)))}function U(j,oe,te,re,_e){const w=S(j,oe);if(w)return w;const _=oe===an,T=Ln?history.state:{};te&&(re||_?o.replace(j.fullPath,Ne({scroll:_&&T&&T.scroll},_e)):o.push(j.fullPath,_e)),a.value=j,Ge(j,oe,te,_),ue()}let Y;function ge(){Y||(Y=o.listen((j,oe,te)=>{if(!yt.listening)return;const re=x(j),_e=W(re,yt.currentRoute.value);if(_e){M(Ne(_e,{replace:!0,force:!0}),re).catch(fs);return}f=re;const w=a.value;Ln&&Nf(Wi(w.fullPath,te.delta),ko()),F(re,w).catch(_=>qt(_,qe.NAVIGATION_ABORTED|qe.NAVIGATION_CANCELLED)?_:qt(_,qe.NAVIGATION_GUARD_REDIRECT)?(M(Ne(g(_.to),{force:!0}),re).then(T=>{qt(T,qe.NAVIGATION_ABORTED|qe.NAVIGATION_DUPLICATED)&&!te.delta&&te.type===cr.pop&&o.go(-1,!1)}).catch(fs),Promise.reject()):(te.delta&&o.go(-te.delta,!1),ae(_,re,w))).then(_=>{_=_||U(re,w,!1),_&&(te.delta&&!qt(_,qe.NAVIGATION_CANCELLED)?o.go(-te.delta,!1):te.type===cr.pop&&qt(_,qe.NAVIGATION_ABORTED|qe.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Z(re,w,_)}).catch(fs)}))}let Se=ts(),ye=ts(),fe;function ae(j,oe,te){ue(j);const re=ye.list();return re.length?re.forEach(_e=>_e(j,oe,te)):console.error(j),Promise.reject(j)}function me(){return fe&&a.value!==an?Promise.resolve():new Promise((j,oe)=>{Se.add([j,oe])})}function ue(j){return fe||(fe=!j,ge(),Se.list().forEach(([oe,te])=>j?te(j):oe()),Se.reset()),j}function Ge(j,oe,te,re){const{scrollBehavior:_e}=e;if(!Ln||!_e)return Promise.resolve();const w=!te&&Lf(Wi(j.fullPath,0))||(re||!te)&&history.state&&history.state.scroll||null;return Ye().then(()=>_e(j,oe,w)).then(_=>_&&Mf(_)).catch(_=>ae(_,j,oe))}const Ke=j=>o.go(j);let at;const pt=new Set,yt={currentRoute:a,listening:!0,addRoute:h,removeRoute:I,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:$,resolve:x,options:e,push:y,replace:O,go:Ke,back:()=>Ke(-1),forward:()=>Ke(1),beforeEach:r.add,beforeResolve:i.add,afterEach:l.add,onError:ye.add,isReady:me,install(j){j.component("RouterLink",xe),j.component("RouterView",Xa),j.config.globalProperties.$router=yt,Object.defineProperty(j.config.globalProperties,"$route",{enumerable:!0,get:()=>H(a)}),Ln&&!at&&a.value===an&&(at=!0,y(o.location).catch(re=>{}));const oe={};for(const re in an)Object.defineProperty(oe,re,{get:()=>a.value[re],enumerable:!0});j.provide(So,yt),j.provide(Mr,Yl(oe)),j.provide(fr,a);const te=j.unmount;pt.add(j),j.unmount=function(){pt.delete(j),pt.size<1&&(f=an,Y&&Y(),Y=null,a.value=an,at=!1,fe=!1),te()}}};function et(j){return j.reduce((oe,te)=>oe.then(()=>Q(te)),Promise.resolve())}return yt}function Es(){return kt(So)}function sn(e){return kt(Mr)}class Nr{constructor(t){Ms(this,"cfg");Ms(this,"f");Ms(this,"modelPrefix");this.cfg=t,this.f=t.fetch??fetch.bind(globalThis),this.modelPrefix=t.modelPrefix??"/model"}withSite(t){return new Nr({...this.cfg,site:t})}d1(t,n){return this.postForm(`${this.modelPrefix}/d1/call`,t,n)}r2(t,n){return this.postForm(`${this.modelPrefix}/r2/call`,t,n)}ai(t,n){return this.postJson(`${this.modelPrefix}/ai/call`,{provider:t,payload:n,site:this.cfg.site})}async postForm(t,n,s){const o=new FormData;o.set("type",n),o.set("site",this.cfg.site),o.set("data",JSON.stringify(s));const r=await this.f((this.cfg.baseUrl??"")+t,{method:"POST",body:o,headers:this.authHeaders()});return this.parse(r)}async postJson(t,n){const s=await this.f((this.cfg.baseUrl??"")+t,{method:"POST",body:JSON.stringify(n),headers:{"content-type":"application/json",...this.authHeaders()}});return this.parse(s)}authHeaders(){return this.cfg.publicToken?{Authorization:`Bearer ${this.cfg.publicToken}`}:{}}async parse(t){let n;try{n=await t.json()}catch{return{ok:!1,error:`Non-JSON response (${t.status})`}}return n&&typeof n=="object"&&"ok"in n?n:t.ok?{ok:!0,data:n}:{ok:!1,error:`HTTP ${t.status}`}}}const Kn=new Nr({site:"demo",publicToken:void 0,modelPrefix:"/xf-model"});async function mp(e={}){const t=new URLSearchParams;e.layoutKey&&t.set("layout",e.layoutKey);const n="/xf-model/meta/call"+(t.size?`?${t.toString()}`:""),s=await fetch(n,{method:"POST"});if(!s.ok)throw new Error(`meta/call ${s.status}`);const o=await s.json();if(!o.ok||!o.data)throw new Error(o.error??"meta/call failed");return o.data}async function hp(e,t={}){if(!t.pick){const n=Hs.get(e);if(n&&Date.now()-n.ts<$o)return n.p.then(()=>vp(e)).catch(()=>{}),n.p}return tu(e,t)}function eu(){const e=window.__xfRid;return typeof e=="string"&&/^[0-9a-f-]{36}$/.test(e)?e:null}function vp(e){try{const t={"content-type":"application/json"},n=void 0,s=eu();s&&(t["x-xf-rid"]=s),fetch("/xf-model/view/call",{method:"POST",headers:t,body:JSON.stringify({slug:e}),keepalive:!0}
29).catch(()=>{})}catch{}}async function tu(e,t={}){const n=new URLSearchParams({slug:e});t.pick&&n.set("pick","1"),t.prefetch&&n.set("prefetch","1");const s={accept:"application/json"},o=eu();o&&(s["x-xf-rid"]=o);const r=await fetch(`/xf-model/page/call?${n.toString()}`,{headers:s});if(!r.ok)throw new Error(`page/call ${r.status}`);const i=await r.json();if(!i.ok||!i.data)throw new Error(i.error??"page/call failed");return i.data}const $o=6e4,Hs=new Map;function Lr(e){if(!e||typeof window>"u")return;const t=Hs.get(e);if(t&&Date.now()-t.ts<$o)return;const n=tu(e,{prefetch:!0});Hs.set(e,{ts:Date.now(),p:n}),n.catch(()=>Hs.delete(e))}const rl=new Map,xp=6,On=new Map;async function zs(e){const t=JSON.stringify(Object.keys(e).sort().map(o=>[o,e[o]])),n=rl.get(t);if(n&&Date.now()-n.ts<$o)return{ok:!0,data:n.data};const s=await Kn.d1("list",e);return s.ok&&Array.isArray(s.data)?(rl.set(t,{ts:Date.now(),data:s.data}),{ok:!0,data:s.data}):s.ok?{ok:!0,data:[]}:{ok:!1,error:s.error}}async function jr(e,t,n,s){var a;const o={"content-type":"application/json",accept:"application/json"},r=typeof window<"u"?window.location.href:void 0,i=await fetch("/xf-model/leads/subscribe",{method:"POST",headers:o,body:JSON.stringify({email:e,contentId:t??void 0,pageUrl:r,audience:n??void 0,sign:s??void 0})}),l=await i.json().catch(()=>({}));if(!i.ok||!l.ok)throw new Error(l.error??`subscribe failed (${i.status})`);return{already:!!((a=l.data)!=null&&a.already)}}async function nu(e,t,n=6,s=0){const o=Math.max(xp,n),r=JSON.stringify([e??"",t,s,o]),i=On.get(r);if(i&&Date.now()-i.ts<$o)return(await i.p).rows.slice(0,n);const l=gp(e,t,o,s),a={ts:Date.now(),p:l};On.set(r,a),l.then(f=>{var c;!f.cacheable&&((c=On.get(r))==null?void 0:c.p)===l&&On.delete(r)}
29).catch(()=>{var f;((f=On.get(r))==null?void 0:f.p)===l&&On.delete(r)});try{return(await l).rows.slice(0,n)}catch{return[]}}async function gp(e,t,n,s){const o={"content-type":"application/json",accept:"application/json"};async function r(f){try{const c=await fetch("/xf-model/d1/call",{method:"POST",headers:o,body:JSON.stringify({op:"list",data:{...f,projection:"card"}})});if(!c.ok)return{ok:!1,rows:[]};const m=await c.json().catch(()=>({}));return m.ok&&Array.isArray(m.data)?{ok:!0,rows:m.data}:{ok:!1,rows:[]}}catch{return{ok:!1,rows:[]}}}const i=[],l=new Set([t]);let a=!0;if(e){const f=await r({category:e,type:s,pageSize:n+1});a=a&&f.ok;for(const c of f.rows)if(!l.has(c.id)&&(l.add(c.id),i.push(c),i.length>=n))return{rows:i,cacheable:a}}if(i.length<n){const f=await r({type:s,orderBy:"traffic",pageSize:n+i.length+1});a=a&&f.ok;for(const c of f.rows)if(!l.has(c.id)&&(l.add(c.id),i.push(c),i.length>=n))break}return{rows:i,cacheable:a}}async function yp(e,t="today"){const n=new URLSearchParams({zodiac:e,preset:t}),s=await fetch(`/xf-model/horoscope/call?${n.toString()}`,{headers:{accept:"application/json"}}),o=await s.json().catch(()=>({}));if(!s.ok||!o.ok||!o.data)throw new Error(o.error??`horoscope/call failed (${s.status})`);return o.data}let il=!1;function bp(e){if(il||typeof window>"u")return null;const t=window.XF;return!t||typeof t!="object"||t.slug!==e||!t.content?null:(il=!0,{site:t.site,nav:t.nav,ads:t.ads,content:t.content,variant:t.variant??null})}function wp(){if(typeof window>"u")return null;const e=window.XF;if(!e||typeof e!="object")return null;const t=e.site;if(!t||typeof t!="object"||Object.keys(t).length===0)return null;const n=e.nav&&typeof e.nav=="object"?e.nav:{categories:[],newsCategories:[],pages:[]};return{site:t,nav:n}}function Fs(e){if(!e)return{};try{const t=JSON.parse(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{return{}}}const Go={slides:3,seconds:30,percent:100};function _p(e,t){if(!e||e.emailWall!==1)return null;const n=(t==null?void 0:t.emailWall)??{},s=(o,r,i)=>{const l=typeof o=="number"&&Number.isFinite(o)?o:null,a=typeof r=="number"&&Number.isFinite(r)?r:null;return l??a??i};return{slides:Math.max(1,Math.round(s(e.emailWallSlides,n.slides,Go.slides))),seconds:Math.max(1,Math.round(s(e.emailWallSeconds,n.seconds,Go.seconds))),percent:Math.min(100,Math.max(0,Math.round(s(e.emailWallPercent,n.percent,Go.percent))))}}const Fr="default",Dr="standard",pr=[{key:Fr,name:"Default",description:"Neutral dark theme with system fonts â the original look.",colors:{primary:"#0ea5e9",accent:"#f97316",background:"#0b1220",text:"#e2e8f0"},headingFamily:'Georgia, "Times New Roman", serif',bodyFamily:'system-ui, -apple-system, "Segoe UI", Roboto, sans-serif',tokens:{headingWeight:"700",headingTracking:"0",radius:"0px"}},{key:"classic-editorial",name:"Classic Editorial",description:"Cream paper, high-contrast serif â inspired by The New Yorker / The Atlantic.",colors:{primary:"#14110d",accent:"#b8232f",background:"#faf8f3",text:"#14110d"},fontUrl:"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Source+Serif+4:opsz,[email protected],400;8..60,600&display=swap",headingFamily:'"Playfair Display", Georgia, serif',bodyFamily:'"Source Serif 4", Georgia, serif',tokens:{headingWeight:"800",headingTracking:"-0.01em",radius:"0px"}},{key:"glossy-magazine",name:"Glossy Magazine",description:"White, elegant Didone headlines + clean sans â inspired by Vanity Fair / GQ.",colors:{primary:"#111111",accent:"#9a7b34",background:"#ffffff",text:"#141414"},fontUrl:"https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,[email protected],500;6..96,700&family=Inter:wght@400;600;700&display=swap",headingFamily:'"Bodoni Moda", "Didot", Georgia, serif',bodyFamily:'"Inter", system-ui, sans-serif',tokens:{headingWeight:"700",headingTracking:"0",radius:"2px"}},{key:"trade-news",name:"Trade & News",description:"Dense, condensed headlines + utilitarian sans â inspired by Variety / Deadline.",colors:{primary:"#14181f",accent:"#c8102e",background:"#ffffff",text:"#14181f"},fontUrl:"https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap",headingFamily:'"Oswald", "Arial Narrow", system-ui, sans-serif',bodyFamily:'"Source Sans 3", system-ui, sans-serif',tokens:{headingWeight:"600",headingTracking:"0.01em",radius:"4px"}},{key:"human-interest",name:"Human Interest",description:"Warm paper, friendly serif + rounded sans â inspired by People / The Cut.",colors:{primary:"#2b2b2b",accent:"#e0245e",background:"#fffaf7",text:"#2b2b2b"},fontUrl:"https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],600;
299..144,800&family=Mulish:wght@400;600;700&display=swap",headingFamily:'"Fraunces", Georgia, serif',bodyFamily:'"Mulish", system-ui, sans-serif',tokens:{headingWeight:"700",headingTracking:"0",radius:"12px"}},{key:"bold-digital",name:"Bold Digital",description:"Punchy modern grotesk on white â inspired by BuzzFeed / Vulture / Rolling Stone.",colors:{primary:"#0a0a0a",accent:"#ff2e2e",background:"#ffffff",text:"#0a0a0a"},fontUrl:"https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;600;700&display=swap",headingFamily:'"Space Grotesk", system-ui, sans-serif',bodyFamily:'"Inter", system-ui, sans-serif',tokens:{headingWeight:"700",headingTracking:"-0.01em",radius:"8px"}},{key:Dr,name:"Standard (arbitrage)",description:"Fixed, highly-readable light theme used for all content-arbitrage (?layout=) pages.",colors:{primary:"#1d1d1f",accent:"#1a73e8",background:"#ffffff",text:"#1d1d1f"},headingFamily:'Georgia, "Times New Roman", serif',bodyFamily:'system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',tokens:{headingWeight:"700",headingTracking:"0",radius:"6px"}}];pr.filter(e=>e.key!==Dr);function ll(e){return pr.find(t=>t.key===e)??pr.find(t=>t.key===Fr)}const su={hero:"split",heroAspect:"16 / 9",curatedCardAspect:"4 / 3",feedCardAspect:"16 / 9",feedCols:3,card:"minimal",density:"comfortable"},kp={[Fr]:su,"classic-editorial":{hero:"stacked",heroAspect:"3 / 2",curatedCardAspect:"4 / 3",feedCardAspect:"4 / 3",feedCols:2,card:"minimal",density:"comfortable"},"glossy-magazine":{hero:"overlay",heroAspect:"4 / 3",curatedCardAspect:"3 / 4",feedCardAspect:"3 / 4",feedCols:3,card:"minimal",density:"comfortable"},"trade-news":{hero:"split",heroAspect:"16 / 9",curatedCardAspect:"16 / 9",feedCardAspect:"16 / 9",feedCols:4,card:"boxed",density:"compact"},"human-interest":{hero:"stacked",heroAspect:"16 / 9",curatedCardAspect:"1 / 1",feedCardAspect:"1 / 1",feedCols:3,card:"boxed",density:"comfortable"},"bold-digital":{hero:"overlay",heroAspect:"16 / 9",curatedCardAspect:"16 / 9",feedCardAspect:"16 / 9",feedCols:2,card:"boxed",density:"comfortable"}};function As(e){return kp[e??""]??su}const Sp=["--xf-primary","--xf-accent","--xf-bg","--xf-text","--xf-font-family","--xf-font-heading","--xf-heading-weight","--xf-heading-tracking","--xf-radius"];function ns(...e){for(const t of e)if(typeof t=="string"&&t.trim())return t}function $p(e,t){var a,f,c;const n=e==null?void 0:e.theme,s=ll(t?Dr:n==null?void 0:n.preset),o=t?void 0:n,r=ns(o==null?void 0:o.fontFamily,o==null?void 0:o.font,s.bodyFamily),i={},l=(m,v)=>{typeof v=="string"&&v.trim()&&(i[m]=v)};return l("--xf-primary",ns(o==null?void 0:o.primary,s.colors.primary)),l("--xf-accent",ns(o==null?void 0:o.accent,s.colors.accent)),l("--xf-bg",ns(o==null?void 0:o.background,s.colors.background)),l("--xf-text",ns(o==null?void 0:o.text,s.colors.text)),l("--xf-font-family",r),l("--xf-font-heading",s.headingFamily),l("--xf-heading-weight",(a=s.tokens)==null?void 0:a.headingWeight),l("--xf-heading-tracking",(f=s.tokens)==null?void 0:f.headingTracking),l("--xf-radius",(c=s.tokens)==null?void 0:c.radius),{vars:i,bodyFamily:r,presetFontUrl:s.fontUrl??void 0,manualFontUrl:(o==null?void 0:o.fontUrl)??void 0,customCss:t?void 0:(e==null?void 0:e.customCss)??void 0}}const Cp=["aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","aquarius","pisces"],Ep="xf-preset-font",Ap="xf-font",Ip="xf-custom-css";function Rp(){return typeof window>"u"?!1:new URLSearchParams(window.location.search).has("layout")}function al(e){if(typeof document>"u")return;const t=document.documentElement,n=$p(e,Rp());for(const s of Sp)Tp(t,s,n.vars[s]);document.body&&(document.body.style.fontFamily=n.bodyFamily??""),ul(Ep,n.presetFontUrl),ul(Ap,n.manualFontUrl),Pp(Ip,n.customCss)}function Tp(e,t,n){n&&typeof n=="string"?e.style.setProperty(t,n):e.style.removeProperty(t)}function ul(e,t){const n=document.getElementById(e);if(!t){n==null||n.remove();return}if(n){n.href!==t&&(n.href=t);return}const s=document.createElement("link");s.id=e,s.rel="stylesheet",s.href=t,document.head.appendChild(s)}function Pp(e,t){const n=document.getElementById(e);if(!t||!t.trim()){n==null||n.remove();return}if(n){n.textContent!==t&&(n.textContent=t);return}const s=document.createElement("style");s.id=e,s.textContent=t,document.head.appendChild(s)}const Xe=Pr("site",()=>{const e=L(null),t=L({categories:[],newsCategories:[],pages:[]}),n=L(!1),s=L(null),o=L(!1),r=L(!1);let i=!1;async function l(){if(!i){i=!0;try{const v=await fetch("/geo",{headers:{accept:"application/json"}});if(!v.ok)return;const h=await v.json();r.value=h.isUS===!0}catch{r.value=!1}}}function a(){var h;const v=window;(h=v.__uspapi)==null||h.call(v,"displayUspUi")}let f=null;async function c(){if(!e.value)return f||(f=(async()=>{n.value=!0,s.value=null;try{const v=await mp();e.value=v.site,v.nav&&(t.value=v.nav),al(v.site)}catch(v){s.value=v instanceof Error?v.message:String(v)}finally{n.value=!1,f=null}})(),f)}function m(v,h){e.value||(e.value=v,h&&(t.value=h),al(v))}return{settings:e,nav:t,loading:n,error:s,hideFooter:o,isUSUser:r,loadGeo:l,showOptOut:a,load:c,hydrate:m}});async function Wt(e,t={}){try{const n=await fetch("/xf-model/auth/call",{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({op:e,...t})}),s=await n.json().catch(()=>null);return s||{ok:!1,error:`sign-in service unavailable (${n.status})`}}catch{return{ok:!1,error:"network error â please try again"}}}const Bt=Pr("auth",()=>{const e=Xe(),t=L(null),n=L(!1),s=R(()=>{var $,b;return((b=($=e.settings)==null?void 0:$.community)==null?void 0:b.enabled)===!0}),o=R(()=>t.value!==null);let r=null;async function i(){if(!n.value){if(!s.value){n.value=!0;return}return r||(r=(async()=>{var b;const $=await Wt("me");$.ok&&(t.value=((b=$.data)==null?void 0:b.user)??null),n.value=!0,r=null})(),r)}}async function l($,b){const x=await Wt("request",b?{email:$,next:b}:{email:$});return x.ok?{ok:!0}:{ok:!1,error:x.error??"could not send the sign-in email"}}async function a($){var x;const b=await Wt("verify",{token:$});return b.ok&&((x=b.data)!=null&&x.user)?(t.value=b.data.user,n.value=!0,{ok:!0,newUser:b.data.newUser===!0,regEventId:b.data.regEventId??null}
29):{ok:!1,error:b.error??"this sign-in link is invalid or has expired"}}async function f($){var x;const b=await Wt("name",{name:$});return b.ok&&((x=b.data)!=null&&x.user)?(t.value=b.data.user,{ok:!0}):{ok:!1,error:b.error??"could not save your name"}}async function c(){await Wt("logout"),t.value=null}async function m(){var b;const $=await Wt("prefs");return $.ok?((b=$.data)==null?void 0:b.replyEmails)!==!1:!0}async function v($){const b=await Wt("prefs",{replyEmails:$});return b.ok?{ok:!0}:{ok:!1,error:b.error??"could not save your preference"}}async function h(){var b,x;const $=await Wt("prefs");return{replyEmails:$.ok?((b=$.data)==null?void 0:b.replyEmails)!==!1:!0,interests:$.ok&&Array.isArray((x=$.data)==null?void 0:x.interests)?$.data.interests:[]}}async function I($){const b=await Wt("prefs",{interests:$});return b.ok?{ok:!0}:{ok:!1,error:b.error??"could not save your interests"}}return{user:t,ready:n,enabled:s,signedIn:o,init:i,requestLink:l,verify:a,setName:f,logout:c,getReplyEmails:m,setReplyEmails:v,getPrefs:h,setInterests:I}}),Op={key:0,class:"flex items-center gap-2.5"},Mp=["href","aria-label","title"],Np={viewBox:"0 0 24 24",class:"h-4 w-4",fill:"currentColor","aria-hidden":"true"},Lp=["d"],jp=Ae({__name:"FollowUs",setup(e){const t=Xe(),n=[{key:"facebookUrl",label:"Follow us on Facebook",color:"#1877F2",path:"M14 8.5h2.2V5.6c-.38-.05-1.3-.16-2.36-.16-2.34 0-3.94 1.43-3.94 4.05V11.8H7.3v3.18h2.6V23h3.2v-8.02h2.6l.4-3.18h-3V9.83c0-.92.25-1.33 1.3-1.33Z"},{key:"youtubeUrl",label:"Subscribe on YouTube",color:"#FF0000",path:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814ZM9.545 15.568V8.432L15.818 12l-6.273 3.568Z"},{key:"pinterestUrl",label:"Follow us on Pinterest",color:"#E60023",path:"M12.04 2.5C6.9 2.5 4 5.86 4 9.36c0 1.63.92 3.66 2.4 4.3.22.1.34.06.39-.16.04-.16.24-.95.33-1.32a.35.35 0 0 0-.08-.34c-.5-.6-.9-1.7-.9-2.73 0-2.64 2-5.2 5.4-5.2 2.94 0 5 2 5 4.87 0 3.24-1.64 5.48-3.77 5.48-1.18 0-2.06-.97-1.78-2.17.34-1.42 1-2.96 1-3.99 0-.92-.5-1.69-1.52-1.69-1.2 0-2.17 1.25-2.17 2.92 0 1.07.36 1.79.36 1.79l-1.45 6.16c-.43 1.83-.06 4.07-.03 4.3.02.13.19.16.27.06.11-.15 1.57-1.95 2.07-3.74.14-.51.8-3.14.8-3.14.4.76 1.56 1.42 2.79 1.42 3.67 0 6.17-3.35 6.17-7.83 0-3.39-2.87-6.57-7.96-6.57Z"},{key:"whatsappUrl",label:"Follow us on WhatsApp",color:"#25D366",path:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z"},{key:"instagramUrl",label:"Follow us on Instagram",color:"#E4405F",path:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405a1.441 1.441 0 0 1-2.88 0 1.44 1.44 0 0 1 2.88 0z"}],s=R(()=>{var r;const o=(r=t.settings)==null?void 0:r.social;return!o||o.enabled!==!0?[]:n.flatMap(i=>{const l=(o[i.key]??"").trim();return/^https?:\/\//i.test(l)?[{...i,url:l}]:[]})});return(o,r)=>s.value.length?(d(),p("div",Op,[r[0]||(r[0]=u("span",{class:"text-[11px] uppercase tracking-[0.18em] xf-text-faint"},"Follow us",-1)),(d(!0),p(B,null,ke(s.value,i=>(d(),p("a",{key:i.key,href:i.url,target:"_blank",rel:"noopener","aria-label":i.label,title:i.label,class:"follow-icon flex h-8 w-8 items-center justify-center rounded-full border transition",style:lt({borderColor:i.color,color:i.color})},[(d(),p("svg",Np,[u("path",{d:i.path},null,8,Lp)]))],12,Mp))),128))])):A("",!0)}}),Tt=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},cl=Tt(jp,[["__scopeId","data-v-ef936438"]]),Fp={class:"border-b xf-border",style:{background:"var(--xf-bg)"}},Dp={class:"border-b xf-border-soft hidden md:block"},Bp={class:"mx-auto max-w-6xl px-6 py-2 flex items-center justify-between gap-4 text-[11px] uppercase tracking-[0.18em] xf-text-faint"},Up={class:"flex items-center gap-5"},Vp={key:0},Hp={key:1,class:"relative group"},zp={class:"invisible absolute right-0 top-full z-30 pt-2 opacity-0 transition group-hover:visible group-hover:opacity-100"},qp={class:"block min-w-[10rem] border xf-border py-2 shadow-lg",style:{background:"var(--xf-bg)"}},Wp={key:0,class:"mx-auto max-w-6xl px-6 py-6 grid grid-cols-3 items-center gap-4"},Gp={class:"flex items-center gap-3"},Kp={key:0},Yp=["srcset"],Jp=["src","alt"],Qp={key:1,class:"font-serif text-3xl md:text-4xl font-bold tracking-tight xf-text"},Zp={class:"flex items-center justify-end gap-3 md:gap-4"},Xp={class:"flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-full text-xs font-bold text-white",style:{backgroundColor:"var(--xf-accent, var(--xf-primary, #0ea5e9))"}},em={class:"truncate text-xs font-semibold"},tm={key:1,class:"mx-auto max-w-6xl px-6 py-6 flex items-center justify-between gap-4"},nm={key:0},sm=["srcset"],om=["src","alt"],rm={key:1,class:"font-serif text-3xl md:text-4xl font-bold tracking-tight xf-text"},im={class:"flex items-center gap-3 md:gap-4"},lm={class:"flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-full text-xs font-bold text-white",style:{backgroundColor:"var(--xf-accent, var(--xf-primary, #0ea5e9))"}},am={class:"truncate text-xs font-semibold"},um={class:"border-t xf-border-soft hidden md:block"},cm={class:"mx-auto max-w-6xl px-6"},dm={class:"relative group"},fm={class:"invisible absolute left-0 top-full z-30 pt-2 opacity-0 transition group-hover:visible group-hover:opacity-100"},pm={class:"min-w-[12rem] border xf-border py-2 shadow-lg",style:{background:"var(--xf-bg)"}},mm={key:0,class:"px-4 py-1.5 normal-case tracking-normal xf-text-faint"},hm={class:"relative group"},vm={key:0,class:"text-[0.7em] leading-none"},xm={key:0,class:"invisible absolute left-0 top-full z-30 pt-2 opacity-0 transition group-hover:visible group-hover:opacity-100"},gm={class:"min-w-[12rem] border xf-border py-2 shadow-lg",style:{background:"var(--xf-bg)"}},ym={key:0},bm={key:2,class:"md:hidden border-t xf-border-soft"},wm={class:"px-6 py-3 space-y-2 text-sm xf-text-muted"},_m={class:"pt-1"},km={class:"space-y-1 pl-3"},Sm={key:0,class:"py-1 xf-text-faint"},$m={class:"pt-1"},Cm={key:0,class:"space-y-1 pl-3"},Em={key:0},Am={key:1,class:"pt-1"},Im={class:"font-semibold"},Rm={class:"pt-3"},Tm=Ae({__name:"SiteHeader",setup(e){const t=Xe(),n=Bt(),s=R(()=>{var b,x;return((b=n.user)==null?void 0:b.name)||((x=n.user)==null?void 0:x.email)||""}),o=R(()=>{var b;return((b=t.settings)==null?void 0:b.name)??"Xenforge"}),r=R(()=>{var b;return((b=t.settings)==null?void 0:b.tagline)??""}),i=R(()=>{var b;return(b=t.settings)==null?void 0:b.logo}),l=R(()=>{var b,x;return((x=(b=t.settings)==null?void 0:b.favicon)==null?void 0:x.trim())||""}),a=new Set(["dtc","ps","verywellmindset","fem"]),f=R(()=>{var x,g,S,y;const b=(g=(x=t.settings)==null?void 0:x.mobileBrandMark)==null?void 0:g.trim();return b||(((S=t.settings)==null?void 0:S.code)==="bb"?"/r2/media/brand/booksandbao-mobile-mark-128.png":a.has(((y=t.settings)==null?void 0:y.code)??"")?"/r2/media/brand/mobile-mark-128.png":l.value)}),c=R(()=>{var x,g,S,y,O;const b=(g=(x=i.value)==null?void 0:x.src)==null?void 0:g.trim();return b?((S=t.settings)==null?void 0:S.code)==="bb"?
29"/r2/media/brand/booksandbao-logo-800-lossless.webp":((y=t.settings)==null?void 0:y.code)
29==="dtc"||((O=t.settings)==null?void 0:O.code)==="ps"?"/r2/media/brand/logo-800-lossless.webp":b:""}),m=R(()=>{var b;return((b=t.nav)==null?void 0:b.categories)??[]}),v=R(()=>{var b;return((b=t.nav)==null?void 0:b.newsCategories)??[]}),h=L(!1),I=R(()=>{var b,x;return(((x=(b=t.settings)==null?void 0:b.theme)==null?void 0:x.preset)??"")==="human-interest"}),$=R(()=>new Date().toLocaleDateString(void 0,{weekday:"long",month:"long",day:"numeric",year:"numeric"}));return(b,x)=>{var g,S;return d(),p("header",Fp,[u("div",Dp,[u("div",Bp,[u("span",null,k($.value),1),u("div",Up,[r.value?(d(),p("span",Vp,k(r.value),1)):A("",!0),G(cl),H(n).enabled?(d(),p(B,{key:1},[H(n).signedIn?(d(),p("span",Hp,[G(H(xe),{to:"/signin",class:"hover:xf-text normal-case tracking-normal font-semibold"},{default:ie(()=>[K(k(s.value),1)]),_:1}),u("span",zp,[u("span",qp,[G(H(xe),{to:"/signin",class:"block px-4 py-1.5 normal-case tracking-normal xf-text-muted hover:xf-text"},{default:ie(()=>[...x[17]||(x[17]=[K("My account",-1)])]),_:1}),u("button",{type:"button",class:"block w-full text-left px-4 py-1.5 normal-case tracking-normal xf-text-muted hover:xf-text",onClick:x[0]||(x[0]=y=>H(n).logout())},"Sign out")])])])):(d(),pe(H(xe),{key:0,to:"/signin",class:"hover:xf-text"},{default:ie(()=>[...x[16]||(x[16]=[K("Sign in",-1)])]),_:1}))],64)):A("",!0)])])]),I.value?(d(),p("div",Wp,[u("div",Gp,[u("button",{class:"md:hidden text-2xl xf-text leading-none",onClick:x[1]||(x[1]=y=>h.value=!h.value),"aria-label":"Menu"},"â°"),G(H(xe),{to:"/search",class:"hidden md:inline-flex xf-text-muted hover:xf-text","aria-label":"Search"},{default:ie(()=>[...x[18]||(x[18]=[u("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21-4.3-4.3"})],-1)])]),_:1})]),G(H(xe),{to:((g=i.value)==null?void 0:g.link)||"/",class:"justify-self-center text-center"},{default:ie(()=>{var y;return[(y=i.value)!=null&&y.src?(d(),p("picture",Kp,[f.value?(d(),p("source",{key:0,media:"(max-width: 767px)",srcset:f.value},null,8,Yp)):A("",!0),u("img",{src:c.value,alt:o.value,class:"h-10 md:h-12 w-auto mx-auto"},null,8,Jp)])):(d(),p("span",Qp,k(o.value),1))]}),_:1},8,["to"]),u("div",Zp,[G(H(xe),{to:"/search",class:"md:hidden xf-text-muted hover:xf-text","aria-label":"Search"},{default:ie(()=>[...x[19]||(x[19]=[u("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21-4.3-4.3"})],-1)])]),_:1}),H(n).enabled&&H(n).signedIn?(d(),pe(H(xe),{key:0,to:"/members",class:"md:hidden flex max-w-[8.5rem] items-center gap-1.5 xf-text","aria-label":"Member area"},{default:ie(()=>[u("span",Xp,k((s.value||"M").charAt(0).toUpperCase()),1),u("span",em,k(s.value),1)]),_:1})):A("",!0),G(H(xe),{to:"/subscribe",class:"hidden md:inline-block xf-rounded border xf-border-accent px-4 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)]"},{default:ie(()=>[...x[20]||(x[20]=[K("Subscribe",-1)])]),_:1})])])):(d(),p("div",tm,[u("button",{class:"md:hidden text-2xl xf-text leading-none",onClick:x[2]||(x[2]=y=>h.value=!h.value),"aria-label":"Menu"},"â°"),G(H(xe),{to:((S=i.value)==null?void 0:S.link)||"/",class:"flex-1 md:flex-none text-center md:text-left"},{default:ie(()=>{var y;return[(y=i.value)!=null&&y.src?(d(),p("picture",nm,[f.value?(d(),p("source",{key:0,media:"(max-width: 767px)",srcset:f.value},null,8,sm)):A("",!0),u("img",{src:c.value,alt:o.value,class:"h-10 md:h-12 w-auto mx-auto md:mx-0"},null,8,om)])):(d(),p("span",rm,k(o.value),1))]}),_:1},8,["to"]),u("div",im,[G(H(xe),{to:"/search",class:"xf-text-muted hover:xf-text","aria-label":"Search"},{default:ie(()=>[...x[21]||(x[21]=[u("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[u("circle",{cx:"11",cy:"11",r:"8"}),u("path",{d:"m21 21-4.3-4.3"})],-1)])]),_:1}),H(n).enabled&&H(n).signedIn?(d(),pe(H(xe),{key:0,to:"/members",class:"md:hidden flex max-w-[8.5rem] items-center gap-1.5 xf-text","aria-label":"Member area"},{default:ie(()=>[u("span",lm,k((s.value||"M").charAt(0).toUpperCase()),1),u("span",am,k(s.value),1)]),_:1})):A("",!0),G(H(xe),{to:"/subscribe",class:"hidden md:inline-block xf-rounded border xf-border-accent px-4 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)]"},{default:ie(()=>[...x[22]||(x[22]=[K("Subscribe",-1)])]),_:1})])])),u("nav",um,[u("div",cm,[u("ul",{class:Ie(["flex flex-wrap items-center gap-y-1 py-3 text-xs uppercase tracking-[0.18em]",I.value?"justify-between font-bold xf-text":"gap-x-6 font-semibold xf-text-muted"])},[u("li",null,[G(H(xe),{to:"/","exact-active-class":"xf-text",class:"hover:xf-text"},{default:ie(()=>[...x[23]||(x[23]=[K("Home",-1)])]),_:1})]),u("li",dm,[x[24]||(x[24]=u("button",{type:"button",class:"inline-flex items-center gap-1 uppercase tracking-[0.18em] hover:xf-text"},[K(" Stories "),u("span",{class:"text-[0.7em] leading-none"},"â¾")],-1)),u("div",fm,[u("ul",pm,[(d(!0),p(B,null,ke(m.value,y=>(d(),p("li",{key:y},[G(H(xe),{to:`/category/${encodeURIComponent(y)}`,"active-class":"xf-text",class:"block px-4 py-1.5 normal-case tracking-normal xf-text-muted hover:xf-text"},{default:ie(()=>[K(k(y),1)]),_:2},1032,["to"])]))),128)),m.value.length?A("",!0):(d(),p("li",mm," No categories yet "))])])]),u("li",null,[G(H(xe),{to:"/trending","active-class":"xf-text",class:"hover:xf-text"},{default:ie(()=>[...x[25]||(x[25]=[K("Trending",-1)])]),_:1})]),u("li",hm,[G(H(xe),{to:"/news","active-class":"xf-text",class:"inline-flex items-center gap-1 uppercase tracking-[0.18em] hover:xf-text"},{default:ie(()=>[x[26]||(x[26]=K(" News + Culture ",-1)),v.value.length?(d(),p("span",vm,"â¾")):A("",!0)]),_:1}),v.value.length?(d(),p("div",xm,[u("ul",gm,[u("li",null,[G(H(xe),{to:"/news","active-class":"xf-text",class:"block px-4 py-1.5 normal-case tracking-normal xf-text-muted hover:xf-text"},{default:ie(()=>[...x[27]||(x[27]=[K("All News",-1)])]),_:1})]),(d(!0),p(B,null,ke(v.value,y=>(d(),p("li",{key:y},[G(H(xe),{to:`/news/${encodeURIComponent(y)}`,"active-class":"xf-text",class:"block px-4 py-1.5 normal-case tracking-normal xf-text-muted hover:xf-text"},{default:ie(()=>[K(k(y),1)]),_:2},1032,["to"])]))),128))])])):A("",!0)]),u("li",null,[G(H(xe),{to:"/games","active-class":"xf-text",class:"hover:xf-text"},{default:ie(()=>[...x[28]||(x[28]=[K("Puzzles & Games",-1)])]),_:1})]),u("li",null,[G(H(xe),{to:"/astrology","active-class":"xf-text",class:"hover:xf-text"},{default:ie(()=>[...x[29]||(x[29]=[K("Horoscopes",-1)])]),_:1})]),H(n).signedIn?(d(),p("li",ym,[G(H(xe),{to:"/members","active-class":"xf-text",class:"hover:xf-text"},{default:ie(()=>[...x[30]||(x[30]=[K("Members",-1)])]),_:1})])):A("",!0)],2)])]),h.value?(d(),p("nav",bm,[u("ul",wm,[u("li",null,[G(H(xe),{to:"/",onClick:x[3]||(x[3]=y=>h.value=!1),class:"block py-1"},{default:ie(()=>[...x[31]||(x[31]=[K("Home",-1)])]),_:1})]),u("li",_m,[x[32]||(x[32]=u("p",{class:"py-1 text-xs uppercase tracking-[0.18em] xf-text-faint"},"Stories",-1)),u("ul",km,[(d(!0),p(B,null,ke(m.value,y=>(d(),p("li",{key:y},[G(H(xe),{to:`/category/${encodeURIComponent(y)}`,onClick:x[4]||(x[4]=O=>h.value=!1),class:"block py-1"},{default:ie(()=>[K(k(y),1)]),_:2},1032,["to"])]))),128)),m.value.length?A("",!0):(d(),p("li",Sm,"No categories yet"))])]),u("li",null,[G(H(xe),{to:"/trending",onClick:x[5]||(x[5]=y=>h.value=!1),class:"block py-1"},{default:ie(()=>[...x[33]||(x[33]=[K("Trending",-1)])]),_:1})]),u("li",$m,[G(H(xe),{to:"/news",onClick:x[6]||(x[6]=y=>h.value=!1),class:"block py-1 text-xs uppercase tracking-[0.18em] xf-text-faint"},{default:ie(()=>[...x[34]||(x[34]=[K("News + Culture",-1)])]),_:1}),v.value.length?(d(),p("ul",Cm,[(d(!0),p(B,null,ke(v.value,y=>(d(),p("li",{key:y},[G(H(xe),{to:`/news/${encodeURIComponent(y)}`,onClick:x[7]||(x[7]=O=>h.value=!1),class:"block py-1"},{default:ie(()=>[K(k(y),1)]),_:2},1032,["to"])]))),128))])):A("",!0)]),u("li",null,[G(H(xe),{to:"/games",onClick:x[8]||(x[8]=y=>h.value=!1),class:"block py-1"},{default:ie(()=>[...x[35]||(x[35]=[K("Puzzles & Games",-1)])]),_:1})]),u("li",null,[G(H(xe),{to:"/astrology",onClick:x[9]||(x[9]=y=>h.value=!1),class:"block py-1"},{default:ie(()=>[...x[36]||(x[36]=[K("Horoscopes",-1)])]),_:1})]),u("li",null,[G(H(xe),{to:"/search",onClick:x[10]||(x[10]=y=>h.value=!1),class:"block py-1"},{default:ie(()=>[...x[37]||(x[37]=[K("Search",-1)])]),_:1})]),u("li",null,[G(H(xe),{to:"/subscribe",onClick:x[11]||(x[11]=y=>h.value=!1),class:"mt-2 inline-block xf-rounded border xf-border-accent px-4 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text"},{default:ie(()=>[...x[38]||(x[38]=[K("Subscribe",-1)])]),_:1})]),H(n).signedIn?(d(),p("li",Em,[G(H(xe),{to:"/members",onClick:x[12]||(x[
2912]=y=>h.value=!1),class:"block py-1"},{default:ie(()=>[...x[39]||(x[39]=[K("Members",-1)])]),_:1})])):A("",!0),H(n).enabled?(d(),p("li",Am,[H(n).signedIn?(d(),p(B,{key:1},[G(H(xe),{to:"/signin",onClick:x[14]||(x[14]=y=>h.value=!1),class:"block py-1"},{default:ie(()=>[x[41]||(x[41]=K(" Account â ",-1)),u("span",Im,k(s.value),1)]),_:1}),u("button",{type:"button",class:"block py-1",onClick:x[15]||(x[15]=y=>{H(n).logout(),h.value=!1})},"Sign out")],64)):(d(),pe(H(xe),{key:0,to:"/signin",onClick:x[13]||(x[13]=y=>h.value=!1),class:"block py-1"},{default:ie(()=>[...x[40]||(x[40]=[K("Sign in",-1)])]),_:1}))])):A("",!0),u("li",Rm,[G(cl)])])])):A("",!0)])}}}),Pm={class:"mt-16 border-t xf-border",style:{background:"var(--xf-bg)"}},Om={class:"mx-auto max-w-6xl px-6 py-12 grid gap-10 sm:grid-cols-2 lg:grid-cols-6"},Mm={class:"sm:col-span-2"},Nm={class:"font-serif text-2xl font-bold xf-text"},Lm={key:0,class:"mt-2 text-sm xf-text-muted max-w-md"},jm={key:0},Fm={class:"space-y-2 text-sm"},Dm={class:"space-y-2 text-sm"},Bm={class:"space-y-2 text-sm"},Um={key:1},Vm={class:"space-y-2 text-sm"},Hm={class:"border-t xf-border-soft"},zm={class:"mx-auto max-w-6xl px-6 py-5 flex flex-col md:flex-row md:items-center md:justify-between gap-2 text-xs xf-text-faint"},qm=Ae({__name:"SiteFooter",setup(e){const t=Xe(),n=R(()=>{var l;return((l=t.settings)==null?void 0:l.name)??"Xenforge"}),s=R(()=>{var l;return((l=t.settings)==null?void 0:l.tagline)??""}),o=R(()=>{var l;return((l=t.nav)==null?void 0:l.pages)??[]}),r=R(()=>{var l;return((l=t.nav)==null?void 0:l.categories)??[]}),i=new Date().getFullYear();return(l,a)=>(d(),p("footer",Pm,[u("div",Om,[u("div",Mm,[u("p",Nm,k(n.value),1),s.value?(d(),p("p",Lm,k(s.value),1)):A("",!0)]),r.value.length?(d(),p("div",jm,[a[1]||(a[1]=u("p",{class:"text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint mb-3"},"Stories",-1)),u("ul",Fm,[(d(!0),p(B,null,ke(r.value.slice(0,6),f=>(d(),p("li",{key:f},[G(H(xe),{to:`/category/${encodeURIComponent(f)}`,class:"xf-text-muted hover:xf-text"},{default:ie(()=>[K(k(f),1)]),_:2},1032,["to"])]))),128))])])):A("",!0),u("div",null,[a[4]||(a[4]=u("p",{class:"text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint mb-3"},"Puzzles & Games",-1)),u("ul",Dm,[u("li",null,[G(H(xe),{to:"/games",class:"xf-text-muted hover:xf-text"},{default:ie(()=>[...a[2]||(a[2]=[K("Crossword",-1)])]),_:1})]),u("li",null,[G(H(xe),{to:"/games",class:"xf-text-muted hover:xf-text"},{default:ie(()=>[...a[3]||(a[3]=[K("Sudoku",-1)])]),_:1})])])]),u("div",null,[a[7]||(a[7]=u("p",{class:"text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint mb-3"},"Horoscopes",-1)),u("ul",Bm,[u("li",null,[G(H(xe),{to:"/astrology",class:"xf-text-muted hover:xf-text"},{default:ie(()=>[...a[5]||(a[5]=[K("Zodiac",-1)])]),_:1})]),u("li",null,[G(H(xe),{to:"/astrology",class:"xf-text-muted hover:xf-text"},{default:ie(()=>[...a[6]||(a[6]=[K("Daily Horoscopes",-1)])]),_:1})])])]),o.value.length?(d(),p("div",Um,[a[8]||(a[8]=u("p",{class:"text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint mb-3"},"About",-1)),u("ul",Vm,[(d(!0),p(B,null,ke(o.value,f=>(d(),p("li",{key:f.slug},[G(H(xe),{to:`/${f.slug}`,class:"xf-text-muted hover:xf-text"},{default:ie(()=>[K(k(f.title),1)]),_:2},1032,["to"])]))),128))])])):A("",!0)]),u("div",Hm,[u("div",zm,[u("span",null,"© "+k(H(i))+" "+k(n.value)+". All rights reserved.",1),H(t).isUSUser?(d(),p("button",{key:0,type:"button",class:"text-left xf-text-muted hover:xf-text underline-offset-2 hover:underline",onClick:a[0]||(a[0]=f=>H(t).showOptOut())}," Do Not Sell or Share My Personal Information ")):A("",!0)])])]))}}),Wm={key:0,class:"xf-push-card",role:"dialog","aria-label":"Enable notifications"},Gm={key:0,class:"xf-push-done"},Km={class:"xf-push-head"},Ym={class:"xf-push-body"},Jm={key:0,class:"xf-push-err"},Qm={class:"xf-push-actions"},Zm=["disabled"],Xm=["disabled"],dl="xf.push.dismissed",eh=Ae({__name:"PushOptIn",setup(e){const t=Xe(),n=L(!1),s=L(!1),o=L(null),r=L(!1);let i=null,l=!1;function a(){return typeof window<"u"&&"serviceWorker"in navigator&&"PushManager"in window&&"
29Notification"in window}function f(){var M,D;if(typeof window>"u")return!1;const S=navigator.userAgent||"",y=/Android|iPhone|iPad|iPod|Mobile|Silk|Kindle|BlackBerry|Opera Mini|IEMobile|webOS/i.test(S),O=((D=(M=window.matchMedia)==null?void 0:M.call(window,"(pointer: coarse)"))==null?void 0:D.matches)??!1,W=window.innerWidth<1024;return!y&&!O&&!W}function c(){if(Notification.permission!=="default")return!0;try{return localStorage.getItem(dl)==="1"}catch{return!1}}function m(){n.value||r.value||l&&(n.value=!0,h())}function v(){window.scrollY>400&&(l=!0,m())}function h(){window.removeEventListener("scroll",v),i!==null&&(window.clearTimeout(i),i=null)}He(()=>{!a()||!f()||c()||(window.addEventListener("scroll",v,{passive:!0}),i=window.setTimeout(()=>{l=!0,m()},3e4))}),Gn(h);function I(S){const y="=".repeat((4-S.length%4)%4),O=(S+y).replace(/-/g,"+").replace(/_/g,"/"),W=atob(O),M=new Uint8Array(W.length);for(let D=0;D<W.length;D++)M[D]=W.charCodeAt(D);return M}async function $(){var S,y,O;s.value=!0,o.value=null;try{const W=await fetch("/xf-model/push/key");if(!W.ok)throw new Error("notifications are not available right now");const M=await W.json(),D=(S=M.data)==null?void 0:S.publicKey;if(!M.ok||!D)throw new Error("notifications are not available right now");if(await Notification.requestPermission()!=="granted"){x();return}const F=await navigator.serviceWorker.register("/sw.js");await navigator.serviceWorker.ready;const U=(await F.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:I(D)})).toJSON();if(!U.endpoint||!((y=U.keys)!=null&&y.p256dh)||!((O=U.keys)!=null&&O.auth))throw new Error("could not create a subscription");const Y=await Kn.d1("push_subscribe",{endpoint:U.endpoint,keys:{p256dh:U.keys.p256dh,auth:U.keys.auth}});if(!Y.ok)throw new Error(Y.error);r.value=!0,b(),window.setTimeout(()=>n.value=!1,2600)}catch(W){o.value=W instanceof Error?W.message:"could not enable notifications"}finally{s.value=!1}}function b(){try{localStorage.setItem(dl,"1")}catch{}}function x(){b(),n.value=!1}const g=()=>{var S;return((S=t.settings)==null?void 0:S.name)??"this site"};return(S,y)=>(d(),pe(La,{name:"xf-push"},{default:ie(()=>[n.value?(d(),p("div",Wm,[u("button",{class:"xf-push-close","aria-label":"Dismiss",onClick:x},"Ã"),r.value?(d(),p("div",Gm,[...y[0]||(y[0]=[u("span",{class:"xf-push-bell","aria-hidden":"true"},"â",-1),u("p",{class:"xf-push-title"},"You're subscribed",-1),u("p",{class:"xf-push-body"}
29,"We'll let you know when there's something new.",-1)])])):(d(),p(B,{key:1},[u("div",Km,[y[2]||(y[2]=u("span",{class:"xf-push-icon","aria-hidden":"true"},"ð",-1)),u("div",null,[y[1]||(y[1]=u("p",{class:"xf-push-title"},"Never miss a story",-1)),u("p",Ym,"Get the latest from "+k(g())+" the moment it's published â right on your desktop.",1)])]),o.value?(d(),p("p",Jm,k(o.value),1)):A("",!0),u("div",Qm,[u("button",{class:"xf-push-btn-ghost",disabled:s.value,onClick:x},"Not now",8,Zm),u("button",{class:"xf-push-btn",disabled:s.value,onClick:$},k(s.value?"Enablingâ¦":"Enable"),9,Xm)])],64))])):A("",!0)]),_:1}))}}),th=Tt(eh,[["__scopeId","data-v-a71aa85e"]]),to="custom_14";function Br(){if(typeof window>"u")return;const e=window;e.assertiveQueue=e.assertiveQueue??[]}function nh(e){if(!e||typeof window>"u")return;const t=window,n=t.__xfCustom14===e;if(!n)try{const o=new URL(window.location.href);o.searchParams.set(to,e),o.searchParams.set("done","1"),window.history.replaceState(window.history.state,"",o.toString())}catch{}const s=()=>{t.assertive=t.assertive??{},t.assertive.analytics=t.assertive.analytics??{},t.assertive.analytics.custom=t.assertive.analytics.custom??{},t.assertive.analytics.custom[to]=e};s(),Br(),n||t.assertiveQueue.push(s),t.__xfCustom14=e}function sh(){if(typeof window>"u")return;const e=window;let t;try{t=new URL(window.location.href).searchParams.get(to)}catch{t=null}if(!t)return;const n=e.__xfCustom14===t,s=()=>{e.assertive=e.assertive??{},e.assertive.analytics=e.assertive.analytics??{},e.assertive.analytics.custom=e.assertive.analytics.custom??{},e.assertive.analytics.custom[to]=t};s(),Br(),n||e.assertiveQueue.push(s),e.__xfCustom14=t}function Vn(...e){const t=e.map(n=>(n??"").trim()).filter(Boolean).join(" â ");t&&(document.title=t)}const oh={class:"min-h-screen flex flex-col dark",style:{background:"var(--xf-bg, #0b1220)",color:"var(--xf-text, #e2e8f0)"}},rh={class:"flex-1"},ih={key:0,class:"mx-auto max-w-6xl px-6 py-3 text-xs text-amber-400"},lh=Ae({__name:"App",setup(e){const t=Xe(),n=Bt(),s=sn();Ce(()=>t.settings,r=>{r&&n.init()},{immediate:!0});const o=wp();return o&&t.hydrate(o.site,o.nav),Ce(()=>{var r;return[s.name,s.params.category,(r=t.settings)==null?void 0:r.name]},()=>{var i;const r=(i=t.settings)==null?void 0:i.name;!r||s.name==="article"||(s.name==="category"?Vn(String(s.params.category??""),r):s.name==="search"?Vn("Search",r):Vn(r))},{immediate:!0}),Br(),He(()=>{s.name!=="article"&&t.load(),t.loadGeo()}),(r,i)=>(d(),p("div",oh,[G(Tm),u("main",rh,[H(t).error?(d(),p("p",ih," Site bootstrap failed: "+k(H(t).error)+" â using defaults. ",1)):A("",!0),G(H(Xa))]),H(t).hideFooter?A("",!0):(d(),pe(qm,{key:0})),G(th)]))}});let Is=!1,ou=!0,Rs=!1;function ah(e){Rs=e}function Ur(e){const t=window.ayManagerEnv;if(!t)return;const n=()=>{try{e(t)}catch(s){console.warn("[xf-ads] AY call failed",s)}};Array.isArray(t.cmd)?t.cmd.push(n):n()}function uh(e){const t=window,n=()=>{try{const o=t.assertive;o&&e(o)}catch(o){console.warn("[xf-ads] AY measurement call failed",o)}};(t.assertiveQueue=t.assertiveQueue||[]).push(n)}function ch(){!Is||Rs||!ou||uh(e=>{var t;return(t=e.nextPage)==null?void 0:t.call(e)})}function dh(){!Is||Rs||Ur(e=>{var t;return(t=e.refresh)==null?void 0:t.call(e)})}function fh(){!Is||Rs||Ur(e=>{var t;return e.changePage?e.changePage():(t=e.refresh)==null?void 0:t.call(e)})}function ph(){!Is||Rs||Ur(e=>{var t;return e.changePage?e.changePage():(t=e.refresh)==null?void 0:t.call(e)})}function mh(e){!e||!e.enabled||(Is=!0,ou=e.trackPageViews!==!1,!window.__xfAdsBooted&&(window.__xfAdsBooted=!0,window.addEventListener("xf:slide-reached",ch),window.addEventListener("xf:slide-changed",dh),window.addEventListener("xf:article-spa-entered",fh),window.addEventListener("xf:organic-ads-mounted",ph)))}const mr="xf_ad_choice",fl="xf_ad_session";function hh(){if(typeof document<"u"){const e=document.cookie.match(/(?:^|;\s*)xf_ad_choice=(ads|adfree)\b/);if(e)return e[1]}try{const e=sessionStorage.getItem(mr);if(e==="ads"||e==="adfree")return e}catch{}return null}function vh(e){typeof document<"u"&&(document.cookie=`${mr}=${e}; path=/; SameSite=Lax`);try{sessionStorage.setItem(mr,e)}catch{}}let xh=null;function gh(){try{let e=sessionStorage.getItem(fl);return e||(e=crypto.randomUUID(),sessionStorage.setItem(fl,e)),e}catch{return xh??(xh=crypto.randomUUID())}}async function yh(e,t){try{await fetch("/xf-model/adoptin/call",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({op:"record",session:gh(),layout:e,choice:t})})}catch{}}function bh(e){if(!e)return{enabled:!1};if(typeof e=="string")return{enabled:e!=="none"};if(typeof e=="object"){const t=e,n=typeof t.trackPageViews=="boolean"?t.trackPageViews:void 0,s=t.source==="manual"?"manual":void 0;if(typeof t.enabled=="boolean")return{enabled:t.enabled,trackPageViews:n,source:s};if(typeof t.type=="string")return{enabled:t.type!=="none",trackPageViews:n,source:s}}return{enabled:!1}}const Ut=Pr("ads",()=>{const e=L(null),t=L(!1),n=L(null),s=R(()=>{var g,S;return((S=(g=e.value)==null?void 0:g.provider)==null?void 0:S.enabled)===!0}),o=R(()=>{var g,S;return((S=(g=e.value)==null?void 0:g.provider)==null?void 0:S.source)==="manual"}),r=L(hh()),i=L(!1),l=R(()=>r.value==="adfree"||i.value&&r.value===null);Ce(l,g=>ah(g),{immediate:!0});const a=R(()=>i.value&&r.value===null);function f(g){i.value=g}
29function c(g,S){if(r.value===g)return;const y=r.value===null;r.value=g,vh(g),y&&yh(S,g)}function m(g){var S;if(g&&typeof g=="object"&&"layouts"in g){const y=g;y.provider=bh(y.provider),e.value=y}t.value=!0,(S=e.value)!=null&&S.provider&&mh(e.value.provider)}function v(g){t.value||h||m(g)}let h=null;async function I(){if(!t.value)return h||(h=(async()=>{try{const g=await fetch("/settings/ads.json",{headers:{accept:"application/json"}});g.ok?m(await g.json()):(n.value=`ads.json ${g.status}`,m(null))}catch(g){n.value=g.message,m(null)}})(),h)}function $(g,S){return!s.value||l.value?null:b(g,S)}function b(g,S){var O,W;const y=(W=(O=e.value)==null?void 0:O.layouts)==null?void 0:W[g];return y?S&&y[S]?y[S]:y.default??null:null}function x(g){var S,y;return!s.value||r.value==="adfree"?null:((y=(S=e.value)==null?void 0:S.organic)==null?void 0:y[g])??null}return{config:e,loaded:t,error:n,enabled:s,manualAds:o,load:I,hydrate:v,pickLayout:$,rawLayout:b,organicLayout:x,adChoice:r,optInRequired:i,adsHeld:l,showOptInPopup:a,setOptInRequired:f,setAdChoice:c}});function on(){const e=L(typeof window<"u"&&window.innerWidth<768?"mobile":"desktop");function t(){typeof window>"u"||(e.value=window.innerWidth<768?"mobile":"desktop")}return He(()=>{t(),window.addEventListener("resize",t,{passive:!0})}),Sn(()=>{typeof window<"u"&&window.removeEventListener("resize",t)}),{device:e}}function Be(e,t){return!e||!e.enabled?!1:e.device==="both"||e.device===t}function Ts(e){const t=e.density==="compact"?"gap-6":"gap-8";switch(e.feedCols){case 2:return`grid ${t} sm:grid-cols-2`;case 4:return`grid ${t} sm:grid-cols-2 lg:grid-cols-4`;default:return`grid ${t} sm:grid-cols-2 lg:grid-cols-3`}}function wh(e){return`grid ${e.density==="compact"?"gap-6":"gap-8"} sm:grid-cols-2 lg:grid-cols-4`}function _h(e){return e.density==="compact"?"py-7":"py-10"}function hn(e){let t=!1;Ce(e,async n=>{!n||t||(t=!0,await Ye(),window.dispatchEvent(new CustomEvent("xf:organic-ads-mounted")))},{immediate:!0})}function ru(e){if(!e.length)return[];const t=[];let n=[];for(const s of e)s.type==="heading"&&s.level===2&&n.length&&(t.push(n),n=[]),n.push(s);return n.length&&t.push(n),t}function kh(e){if(!Array.isArray(e))return[];const t=[];for(const n of e){const s=typeof n=="number"?n:parseInt(String(n??""),10);Number.isFinite(s)&&s>=1&&t.push(Math.floor(s))}return t}function iu(e,t,n=!1){const s=kh(t??[]);if(!s.length)return e.map(l=>[l]);const o=[];let r=0,i=0;for(;r<e.length;){const l=n?s[Math.min(i,s.length-1)]:s[i%s.length];o.push(e.slice(r,r+l)),r+=l,i++}return o}function Sh(e){const t=/(\d+)\s*[xÃ]\s*(\d+)/i.exec(e||"");return t?[Number(t[1]),Number(t[2])]:null}const $h={headingBefore:"before-heading",headingAfter:"after-heading",paragraphBefore:"before-paragraph",paragraphAfter:"after-paragraph",imageBefore:"before-image",imageAfter:"after-image",buttonBefore:"before-button",buttonAfter:"after-button",slideAfter:"slide-end",stickytop:"adhesiontop",sticky:"adhesion",left:"left-sidebar",right:"right-sidebar",footer:"footer-end",afterHero:"after-hero",betweenSections:"between-sections",inFeed:"in-feed"};function Ch(e){var n;const t=(n=e.customId)==null?void 0:n.trim();return t||($h[e.placement]??"after-paragraph")}const lu=new Set;function Eh(e){if(lu.has(e))return!0;try{for(const t of Array.from(document.scripts))if(t.src===e)return!0}catch{}return!1}function Ah(e,t){try{const n=document.createElement("template");n.innerHTML=t;const s=Array.from(n.content.querySelectorAll("script"));for(const o of s)o.remove();e.appendChild(n.content);for(const o of s){const r=o.getAttribute("src");if(r){let l=r;try{l=new URL(r,window.location.href).href}catch{}if(Eh(l))continue;lu.add(l)}const i=document.createElement("script");for(const l of Array.from(o.attributes))i.setAttribute(l.name,l.value);i.text=o.text||"",r?document.head.appendChild(i):e.appendChild(i)}}catch(n){console.warn("[xf-ads] manual ad code injection failed",n)}}const Ih=["data-ay-placement","data-ay-sizes","data-ay-device","data-slot-id","data-display-type"],Rh=["data-slot-id"],Th="800px 0px 800px 0px",pl=15,Ph=Ae({__name:"AdSlot",props:{slot:{},placement:{},device:{}},setup(e){const t=e,n=R(()=>Ch({customId:t.slot.customId,placement:t.placement})),s=Ut(),o=R(()=>
29{if(!s.manualAds)return null;const h=t.slot.code;return typeof h=="string"&&h.trim()?h:null}),r=L(null);let i=!1,l=null;function a(){i||(i=!0,l==null||l.disconnect(),l=null,o.value&&r.value&&Ah(r.value,o.value))}He(()=>{if(!(!o.value||!r.value)){if(typeof IntersectionObserver>"u"){a();return}l=new IntersectionObserver(h=>{for(const I of h)if(I.isIntersecting){a();break}},{rootMargin:Th,threshold:0}),l.observe(r.value)}}),Gn(()=>{l==null||l.disconnect(),l=null});const f=R(()=>Sh(t.slot.id)),c=R(()=>{const h=f.value;return h?`${h[0]}x${h[1]}`:t.slot.id}),m=R(()=>{const h=t.slot.css||{},I={width:h.width||"100%"};return h.height?I.minHeight=`calc(${h.height} + ${pl}px)`:f.value&&(I.minHeight=`${f.value[1]+pl}px`),h.mt&&(I.marginTop=h.mt),h.mr&&(I.marginRight=h.mr),h.mb&&(I.marginBottom=h.mb),h.ml&&(I.marginLeft=h.ml),h.pt&&(I.paddingTop=h.pt),h.pr&&(I.paddingRight=h.pr),h.pb&&(I.paddingBottom=h.pb),h.pl&&(I.paddingLeft=h.pl),!h.ml&&!h.mr&&(I.marginLeft="auto",I.marginRight="auto"),I}),v=R(()=>{const h=t.slot.css||{},I={width:"100%"};return h.height?I.height=h.height:f.value&&(I.height=`${f.value[1]}px`),I});
29return(h,I)=>H(s).manualAds?o.value?(d(),p("div",{key:1,class:"xf-ad-wrapper",style:lt(m.value)},[I[1]||(I[1]=u("div",{class:"xf-ad-label"},"Advertisement",-1)),u("div",{ref_key:"manualHost",ref:r,"data-slot-id":e.slot.id,class:"xf-ad-slot",style:lt(v.value)},null,12,Rh)],4)):A("",!0):(d(),p("div",{key:0,class:"xf-ad-wrapper",style:lt(m.value)},[I[0]||(I[0]=u("div",{class:"xf-ad-label"},"Advertisement",-1)),u("div",{"data-ay-placement":n.value,"data-ay-sizes":c.value,"data-ay-device":e.device||void 0,"data-slot-id":e.slot.id,"data-display-type":e.slot.displayType,class:"xf-ad-slot",style:lt(v.value)},null,12,Ih)],4))}}),Re=Tt(Ph,[["__scopeId","data-v-b772cdfa"]]),Oh={key:0,class:"pointer-events-none fixed left-4 top-1/2 z-10 hidden -translate-y-1/2 xl:block"},Mh={class:"pointer-events-auto"},Nh={key:1,class:"pointer-events-none fixed right-4 top-1/2 z-10 hidden -translate-y-1/2 xl:block"},Lh={class:"pointer-events-auto"},An=Ae({__name:"OrganicRails",props:{layout:{},device:{}},setup(e){const t=e,n=R(()=>Be(t.layout.railLeft,t.device)),s=R(()=>Be(t.layout.railRight,t.device));return(o,r)=>(d(),p(B,null,[n.value?(d(),p("aside",Oh,[u("div",Mh,[G(Re,{slot:e.layout.railLeft.slot,placement:"left",device:e.device},null,8,["slot","device"])])])):A("",!0),s.value?(d(),p("aside",Nh,[u("div",Lh,[G(Re,{slot:e.layout.railRight.slot,placement:"right",device:e.device},null,8,["slot","device"])])])):A("",!0)],64))}}),jh=["src","alt"],Fh={key:1,class:"mt-3 text-[10px] uppercase tracking-[0.2em] xf-accent font-semibold"},Dh={key:2,class:"mt-1 text-sm xf-text-muted line-clamp-2"},fn=Ae({__name:"StoryCard",props:{post:{},aspect:{default:"16 / 9"},boxed:{type:Boolean,default:!1},heading:{default:"text-base"},showCategory:{type:Boolean,default:!0},showSummary:{type:Boolean,default:!1},showDate:{type:Boolean,default:!0}},setup(e){function t(s){return new Date(s).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function n(s){Lr(s)}return(s,o)=>(d(),pe(H(xe),{to:`/${e.post.slug}`,class:Ie(["group block",e.boxed?"xf-surface xf-rounded border xf-border-soft p-3 transition-shadow hover:shadow-lg":""]),onMouseenter:o[
290]||(o[0]=r=>n(e.post.slug)),onFocus:o[1]||(o[1]=r=>n(e.post.slug)),onTouchstartPassive:o[2]||(o[2]=r=>n(e.post.slug))},{default:ie(()=>[e.post.image?(d(),p("div",{key:0,class:"w-full overflow-hidden xf-surface xf-rounded",style:lt({aspectRatio:e.aspect})},[u("img",{src:e.post.image,alt:e.post.title,class:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-[1.02]"},null,8,jh)],4)):A("",!0),e.showCategory&&e.post.category?(d(),p("p",Fh,k(e.post.category),1)):A("",!0),u("h3",{class:Ie(["xf-heading leading-snug xf-text group-hover:underline",[e.showCategory&&e.post.category?"mt-1":"mt-3",e.heading]])},k(e.post.title),3),e.showSummary&&e.post.summary?(d(),p("p",Dh,k(e.post.summary),1)):A("",!0),e.showDate?(d(),p("p",{key:3,class:Ie(["text-xs xf-text-faint",e.showSummary?"mt-2":"mt-1"])},k(t(e.post.created)),3)):A("",!0)]),_:1},8,["to","class"]))}});function Vr(){const e=Bt(),t=R(()=>e.enabled);async function n(s,o,r,i){const l=jr(s,o,r,i),a=(async()=>{if(!e.enabled)return!1;if(!e.ready)try{await e.init()}catch{}if(e.signedIn)return!1;try{return(await e.requestLink(s)).ok}catch{return!1}})(),[f,c]=await Promise.allSettled([l,a]);if(f.status==="rejected")throw f.reason;const m=c.status==="fulfilled"?c.value:!1;return{already:f.value.already,linkSent:m}}return{memberPerks:t,combinedSubscribe:n}}const Bh={class:"xf-subscribe-banner border-y xf-border-soft"},Uh={class:"mx-auto max-w-3xl px-6 py-12 text-center sm:py-16"},Vh={class:"mx-auto mt-3 max-w-md text-base leading-relaxed xf-text-muted sm:text-lg"},Hh={class:"mt-3 xf-heading text-3xl leading-tight xf-text sm:text-4xl"},zh={class:"mx-auto mt-3 max-w-xl text-base leading-relaxed xf-text-muted sm:text-lg"},qh=["disabled"],Wh=["disabled"],Gh={key:0,"aria-live":"polite",class:"mt-4 text-sm font-medium text-red-500"},Kh=Ae({__name:"SubscribeBanner",props:{title:{},subtitle:{}},setup(e){const t=e,n=Xe(),{memberPerks:s,combinedSubscribe:o}=Vr(),r=R(()=>{var b;return((b=n.settings)==null?void 0:b.name)??"our newsletter"}),i=R(()=>t.title??`Subscribe to ${r.value}`),l=R(()=>t.subtitle??(s.value?"Get our best stories delivered straight to your inbox â plus free membership: exclusive video series, members-only stories, discussions and your own member area. Free, and you can unsubscribe anytime.":"Get our best stories delivered straight to your inbox. Free, and you can unsubscribe anytime.")),a=L(""),f=L("idle"),c=L(""),m=L(!1),v=L(!1),h=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,I={background:"linear-gradient(120deg, color-mix(in oklab, var(--xf-accent, var(--xf-primary, #0ea5e9)) 20%, var(--xf-bg, #0b1220)), color-mix(in oklab, var(--xf-accent, var(--xf-primary, #0ea5e9)) 7%, var(--xf-bg, #0b1220)))"};async function $(){if(f.value==="submitting")return;const b=a.value.trim();if(!h.test(b)){f.value="error",c.value="Please enter a valid email address.";return}f.value="submitting",c.value="";try{const x=await o(b,null);m.value=x.already,v.value=x.linkSent,f.value="done"}catch(x){f.value="error",c.value=x instanceof Error?x.message:"Something went wrong. Please try again."}}return(b,x)=>(d(),p("section",Bh,[u("div",{style:I},[u("div",Uh,[f.value==="done"?(d(),p(B,{key:0},[x[1]||(x[1]=u("h2",{class:"xf-heading text-3xl leading-tight xf-text sm:text-4xl"},"You're in!",-1)),u("p",Vh,[K(k(m.value?"You're already on the list â no need to sign up again.":"Thanks for subscribing. Keep an eye on your inbox for what's next.")+" ",1),v.value?(d(),p(B,{key:0},[K(" We've also sent you a sign-in link â check your inbox to unlock your free membership.")],64)):A("",!0)])],64)):(d(),p(B,{key:1},[x[2]||(x[2]=u("p",{class:"text-xs uppercase tracking-[0.22em] xf-accent font-semibold"},"Newsletter",-1)),u("h2",Hh,k(i.value),1),u("p",zh,k(l.value),1),u("form",{class:"mx-auto mt-7 flex max-w-lg flex-col gap-3 sm:flex-row",onSubmit:St($,["prevent"]),novalidate:""},[It(u("input",{"onUpdate:modelValue":x[0]||(x[0]=g=>a.value=g),type:"email",inputmode:"email",autocomplete:"email",disabled:f.value==="submitting",placeholder:"Enter your email","aria-label":"Enter your email",class:"xf-input xf-rounded w-full flex-1 border px-4 py-3 text-base transition disabled:opacity-60"},null,8,qh),[[Dt,a.value]]),u("button",{type:"submit",disabled:f.value==="submitting",class:"xf-rounded shrink-0 border xf-border-accent px-7 py-3 text-base font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)] disabled:cursor-not-allowed disabled:opacity-60"},k(f.value==="submitting"?"Subscribingâ¦":"Subscribe"),9,Wh)],32),f.value==="error"?(d(),p("p",Gh,k(c.value),1)):A("",!0),x[3]||(x[3]=u("p",{class:"mt-5 text-xs xf-text-faint"},"We respect your inbox. Unsubscribe at any time.",-1))],64))])])]))}}),Yh={key:0,class:"mx-auto max-w-6xl px-6 py-16 xf-text-muted"},Jh={key:1,class:"mx-auto max-w-6xl px-6 py-16 text-red-400"},Qh={key:2,class:"mx-auto max-w-6xl px-6 py-24 text-center"},Zh={class:"sr-only"},Xh={class:"border-b xf-border-soft"},ev=["src","alt"],tv={key:1,class:"mt-5 text-xs uppercase tracking-[0.2em] xf-accent font-semibold"},nv={class:"mt-3 xf-heading text-3xl md:text-4xl leading-tight xf-text group-hover:underline decoration-1 underline-offset-4"},sv={key:2,class:"mt-3 text-base xf-text-muted line-clamp-3"},ov={class:"mt-3 text-xs xf-text-faint"},rv={key:0},iv={class:"space-y-6"},lv={key:0,class:"text-[10px] uppercase tracking-[0.2em] xf-accent font-semibold"},av={class:"mt-1 xf-heading text-lg leading-snug xf-text group-hover:underline"},uv={class:"mt-1 text-xs xf-text-faint"},cv=["src","alt"],dv={key:1,class:"mt-6 text-xs uppercase tracking-[0.2em] xf-accent font-semibold"},fv={class:"mt-3 xf-heading text-4xl md:text-5xl leading-tight xf-text group-hover:underline decoration-1 underline-offset-4"},pv={key:2,class:"mt-4 text-lg xf-text-muted max-w-2xl mx-auto line-clamp-3"},mv={class:"mt-3 text-xs xf-text-faint"},hv={key:0},vv=["src","alt"],xv={class:"absolute inset-x-0 bottom-0 p-6 md:p-10 max-w-3xl"},gv={key:0,class:"text-xs uppercase tracking-[0.2em] font-semibold text-white/80"},yv={class:"mt-2 xf-heading text-3xl md:text-5xl leading-tight text-white group-hover:underline decoration-1 underline-offset-4"},bv={key:1,class:"mt-3 text-base md:text-lg text-white/85 line-clamp-2"},wv={key:0,class:"text-xs uppercase tracking-[0.2em] xf-accent font-semibold"},_v={class:"mt-2 xf-heading text-3xl md:text-5xl leading-tight xf-text group-hover:underline decoration-1 underline-offset-4"},kv={key:1,class:"mt-3 text-base md:text-lg xf-text-muted line-clamp-2"},Sv={key:1,class:"border-b xf-border-soft"},$v={class:"grid gap-8 sm:grid-cols-2 lg:grid-cols-4"},Cv={key:2,class:"mx-auto max-w-6xl px-6 py-4"},Ev={key:3,class:"border-b xf-border-soft"},Av={key:4,class:"mx-auto max-w-6xl px-6 py-4"},Iv={class:"flex items-baseline justify-between mb-6"},Rv={class:"xf-heading text-2xl xf-text"},Tv={key:5},Pv={key:0,class:"col-span-full"},Ov=Ae({__name:"Home",setup(e){const t=Xe(),n=Ut(),{device:s}=on(),o=L([]),r=L([]),i=L([]),l=L(!0),a=L(null);He(async()=>{n.load();const M=t.load(),[D,Q,F]=await Promise.all([zs({status:0,type:0,featured:1,pageSize:40}),zs({status:0,type:0,featured:1,pageSize:24}),zs({status:0,type:0,pageSize:12})]);if(await M,l.value=!1,!D.ok){a.value=D.error;return}o.value=D.data,Q.ok&&(r.value=Q.data),F.ok&&(i.value=F.data)});function f(M){return new Date(M).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}const c=R(()=>{var M,D;return As((D=(M=t.settings)==null?void 0:M.theme)==null?void 0:D.preset)}),m=R(()=>c.value.hero),v=R(()=>c.value.card==="boxed"),h=R(()=>c.value.curatedCardAspect),I=R(()=>c.value.feedCardAspect),$=R(()=>Ts(c.value)),b=R(()=>wh(c.value)),x=R(()=>_h(c.value)),g=R(()=>{const M=new Set,D=(Se,ye)=>{const fe=[];for(const ae of Se){if(fe.length>=ye)break;M.has(ae.id)||(M.add(ae.id),fe.push(ae))}return fe},Q=D(i.value,1)[0]??D(o.value,1)[0]??null,F=D(o.value,4),Z=D(r.value,4),U=new Map;for(const Se of o.value){if(M.has(Se.id))continue;const ye=Se.category||"Trending",fe=U.get(ye)??[];fe.length<4&&fe.push(Se),U.set(ye,fe)}
29const Y=[...U.entries()].filter(([,Se])=>Se.length>=2).slice(0,3).map(([Se,ye])=>({category:Se,items:ye}));for(const Se of Y)for(const ye of Se.items)M.add(ye.id);const ge=D(o.value,12);return{hero:Q,subFeatures:F,editorsPicks:Z,rails:Y,latest:ge}}),S=R(()=>n.organicLayout("home")),y=R(()=>{var M;return Be((M=S.value)==null?void 0:M.afterHero,s.value)}),O=R(()=>{var M;return Be((M=S.value)==null?void 0:M.betweenSections,s.value)}),W=R(()=>{var M;return s.value==="mobile"&&Be((M=S.value)==null?void 0:M.inFeedMobile,s.value)});return hn(()=>!l.value&&!!S.value),(M,D)=>{var Q;return l.value?(d(),p("section",Yh,"Loadingâ¦")):a.value?(d(),p("section",Jh,k(a.value),1)):!o.value.length&&!i.value.length?(d(),p("section",Qh,[...D[0]||(D[0]=[u("p",{class:"xf-text-muted"},"No featured stories yet â mark posts as âfeaturedâ in the admin to show them here.",-1)])])):(d(),p(B,{key:3},[S.value?(d(),pe(An,{key:0,layout:S.value,device:H(s)},null,8,["layout","device"])):A("",!0),u("h1",Zh,k(((Q=H(t).settings)==null?void 0:Q.name)??"Home"),1),u("section",Xh,[m.value==="split"?(d(),p("div",{key:0,class:Ie(["mx-auto max-w-6xl px-6 grid gap-10 lg:grid-cols-3",x.value])},[g.value.hero?(d(),pe(H(xe),{key:0,to:`/${g.value.hero.slug}`,class:"lg:col-span-2 block group"},{default:ie(()=>[g.value.hero.image?(d(),p("div",{key:0,class:"w-full overflow-hidden xf-surface xf-rounded",style:lt({aspectRatio:c.value.heroAspect})},[u("img",{src:g.value.hero.image,alt:g.value.hero.title,class:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-[1.02]"},null,8,ev)],4)):A("",!0),g.value.hero.category?(d(),p("p",tv,k(g.value.hero.category),1)):A("",!0),u("h2",nv,k(g.value.hero.title),1),g.value.hero.summary?(d(),p("p",sv,k(g.value.hero.summary),1)):A("",!0),u("p",ov,[K(k(f(g.value.hero.created)),1),g.value.hero.user?(d(),p("span",rv," · "+k(g.value.hero.user),1)):A("",!0)])]),_:1},8,["to"])):A("",!0),u("div",iv,[(d(!0),p(B,null,ke(g.value.subFeatures,F=>(d(),pe(H(xe),{key:F.id,to:`/${F.slug}`,class:"group block border-b xf-border-soft pb-6 last:border-0 last:pb-0"},{default:ie(()=>[F.category?(d(),p("p",lv,k(F.category),1)):A("",!0),u("h3",av,k(F.title),1),u("p",uv,k(f(F.created)),1)]),_:2},1032,["to"]))),128))])],2)):m.value==="stacked"?(d(),p("div",{key:1,class:Ie(["mx-auto max-w-6xl px-6",x.value])},[g.value.hero?(d(),pe(H(xe),{key:0,to:`/${g.value.hero.slug}`,class:"block group mx-auto max-w-4xl text-center"},{default:ie(()=>[g.value.hero.image?(d(),p("div",{key:0,class:"w-full overflow-hidden xf-surface xf-rounded",style:lt({aspectRatio:c.value.heroAspect})},[u("img",{src:g.value.hero.image,alt:g.value.hero.title,class:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-[1.02]"},null,8,cv)],4)):A("",!0),g.value.hero.category?(d(),p("p",dv,k(g.value.hero.category),1)):A("",!0),u("h2",fv,k(g.value.hero.title),1),g.value.hero.summary?(d(),p("p",pv,k(g.value.hero.summary),1)):A("",!0),u("p",mv,[K(k(f(g.value.hero.created)),1),g.value.hero.user?(d(),p("span",hv," · "+k(g.value.hero.user),1)):A("",!0)])]),_:1},8,["to"])):A("",!0)],2)):(d(),p("div",{key:2,class:Ie(["mx-auto max-w-6xl px-6",x.value])},[g.value.hero?(d(),pe(H(xe),{key:0,to:`/${g.value.hero.slug}`,class:Ie(["block group",g.value.hero.image?"relative overflow-hidden xf-rounded":""])},{default:ie(()=>[g.value.hero.image?(d(),p(B,{key:0},[u("div",{class:"w-full",style:lt({aspectRatio:c.value.heroAspect})},[u("img",{src:g.value.hero.image,alt:g.value.hero.title,class:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"},null,8,vv)],4),D[1]||(D[1]=u("div",{class:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/35 to-transparent"},null,-1)),u("div",xv,[g.value.hero.category?(d(),p("p",gv,k(g.value.hero.category),1)):A("",!0),u("h2",yv,k(g.value.hero.title),1),g.value.hero.summary?(d(),p("p",bv,k(g.value.hero.summary),1)):A("",!0)])],64)):(d(),p(B,{key:1},[g.value.hero.category?(d(),p("p",wv,k(g.value.hero.category),1)):A("",!0),u("h2",_v,k(g.value.hero.title),1),g.value.hero.summary?(d(),p("p",kv,k(g.value.hero.summary),1)):A("",!0)],64))]),_:1},8,["to","class"])):A("",!0)],2))]),G(Kh),m.value!=="split"&&g.value.subFeatures.length?(d(),p("section",Sv,[u("div",{class:Ie(["mx-auto max-w-6xl px-6",x.value])},[u("div",$v,[(d(!0),p(B,null,ke(g.value.subFeatures,F=>(d(),pe(fn,{key:F.id,post:F,aspect:h.value,boxed:v.value}
29,null,8,["post","aspect","boxed"]))),128))])],2)])):A("",!0),y.value&&S.value?(d(),p("div",Cv,[G(Re,{slot:S.value.afterHero.slot,placement:"afterHero",device:H(s)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),g.value.editorsPicks.length?(d(),p("section",Ev,[u("div",{class:Ie(["mx-auto max-w-6xl px-6",x.value])},[D[2]||(D[2]=u("h2",{class:"xf-heading text-2xl xf-text mb-6"},"Editorâs Picks",-1)),u("div",{class:Ie(b.value)},[(d(!0),p(B,null,ke(g.value.editorsPicks,F=>(d(),pe(fn,{key:F.id,post:F,aspect:h.value,boxed:v.value},null,8,["post","aspect","boxed"]))),128))],2)],2)])):A("",!0),O.value&&S.value?(d(),p("div",Av,[G(Re,{slot:S.value.betweenSections.slot,placement:"betweenSections",device:H(s)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),(d(!0),p(B,null,ke(g.value.rails,F=>(d(),p("section",{key:F.category,class:"border-b xf-border-soft"},[u("div",{class:Ie(["mx-auto max-w-6xl px-6",x.value])},[u("div",Iv,[u("h2",Rv,k(F.category),1),G(H(xe),{to:`/category/${encodeURIComponent(F.category)}`,class:"text-xs uppercase tracking-[0.18em] xf-accent hover:underline font-semibold"},{default:ie(()=>[...D[3]||(D[3]=[K("View all â",-1)])]),_:1},8,["to"])]),u("div",{class:Ie(b.value)},[(d(!0),p(B,null,ke(F.items,Z=>(d(),pe(fn,{key:Z.id,post:Z,aspect:h.value,boxed:v.value,"show-category":!1},null,8,["post","aspect","boxed"]))),128))],2)],2)]))),128)),g.value.latest.length?(d(),p("section",Tv,[u("div",{class:Ie(["mx-auto max-w-6xl px-6",x.value])},[D[4]||(D[4]=u("h2",{class:"xf-heading text-2xl xf-text mb-6"},"Latest",-1)),u("div",{class:Ie($.value)},[(d(!0),p(B,null,ke(g.value.latest,(F,Z)=>(d(),p(B,{key:F.id},[G(fn,{post:F,aspect:I.value,boxed:v.value,heading:"text-lg","show-summary":!0},null,8,["post","aspect","boxed"]),W.value&&S.value&&(Z+1)%6===0?(d(),p("div",Pv,[G(Re,{slot:S.value.inFeedMobile.slot,placement:"inFeed",device:"mobile"},null,8,["slot"])])):A("",!0)],64))),128))],2)],2)])):A("",!0)],64))}}}),Mv={class:"mx-auto max-w-6xl px-6 py-10"},Nv={class:"mt-2 xf-heading text-4xl xf-text"},Lv={key:0,class:"mt-6"},jv={key:1,class:"mt-8 xf-text-muted"},Fv={key:2,class:"mt-8 text-red-400"},Dv={key:3,class:"mt-8 xf-text-muted"},Bv={key:0,class:"col-span-full"},Uv={key:1,class:"col-span-full"},Vv=Ae({__name:"Category",props:{category:{}},setup(e){const t=e,n=Xe(),s=Ut(),{device:o}=on(),r=L([]),i=L(!0),l=L(null);async function a(){i.value=!0,l.value=null;const x=await zs({status:0,type:0,category:t.category,featured:1,pageSize:60});i.value=!1,x.ok?r.value=x.data:l.value=x.error}He(async()=>{s.load(),await n.load(),a()}),Ce(()=>t.category,a);const f=R(()=>{var x,g;return As((g=(x=n.settings)==null?void 0:x.theme)==null?void 0:g.preset)}),c=R(()=>f.value.card==="boxed"),m=R(()=>f.value.feedCardAspect),v=R(()=>Ts(f.value)),h=R(()=>s.organicLayout("category")),I=R(()=>{var x;return Be((x=h.value)==null?void 0:x.afterHero,o.value)}),$=R(()=>{var x;return Be((x=h.value)==null?void 0:x.betweenSections,o.value)}),b=R(()=>{var x;return o.value==="mobile"&&Be((x=h.value)==null?void 0:x.inFeedMobile,o.value)});return hn(()=>!i.value&&!!h.value),(x,g)=>(d(),p(B,null,[h.value?(d(),pe(An,{key:0,layout:h.value,device:H(o)},null,8,["layout","device"])):A("",!0),u("section",Mv,[g[0]||(g[0]=u("p",{class:"text-xs uppercase tracking-[0.2em] xf-accent font-semibold"},"Section",-1)),u("h1",Nv,k(e.category),1),I.value&&h.value?(d(),p("div",Lv,[G(Re,{slot:h.value.afterHero.slot,placement:"afterHero",device:H(o)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),i.value?(d(),p("div",jv,"Loadingâ¦")):l.value?(d(),p("div",Fv,k(l.value),1)):r.value.length?(d(),p("div",{key:4,class:Ie(["mt-10",v.value])},[(d(!0),p(B,null,ke(r.value,(S,y)=>(d(),p(B,{key:S.id},[G(fn,{post:S,aspect:m.value,boxed:c.value,heading:"text-lg","show-summary":!0,"show-category":!1},null,8,["post","aspect","boxed"]),$.value&&h.value&&y===5?(d(),p("div",Bv,[G(Re,{slot:h.value.betweenSections.slot,placement:"betweenSections",device:H(o)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),b.value&&h.value&&(y+1)%6===0?(d(),p("div",Uv,[G(Re,{slot:h.value.inFeedMobile.slot,placement:"inFeed",device:"mobile"},null,8,["slot"])])):A("",!0)],64))),128))],2)):(d(),p("div",Dv,"Nothing in this section yet."))])],64))}}),Hv={class:"mx-auto max-w-6xl px-6 py-10"},zv={key:0,class:"mt-6"},qv={key:1,class:"mt-8 xf-text-muted"},Wv={key:2,class:"mt-8 text-red-400"},Gv={key:3,class:"mt-8 xf-text-muted"},Kv={key:0,class:"col-span-full"},Yv={key:1,class:"col-span-full"},Jv=Ae({__name:"Trending",setup(e){const t=Xe(),n=Ut(),{device:s}=on(),o=L([]),r=L(!0),i=L(null);async function l(){r.value=!0,i.value=null;const b=await Kn.d1("list",{status:0,type:0,featured:1,pageSize:60});r.value=!1,b.ok?o.value=b.data:i.value=b.error}He(async()=>{n.load(),await t.load(),l()});const a=R(()=>{var b,x;return As((x=(b=t.settings)==null?void 0:b.theme)==null?void 0:x.preset)}),f=R(()=>a.value.card==="boxed"),c=R(()=>a.value.feedCardAspect),m=R(()=>Ts(a.value)),v=R(()=>n.organicLayout("category")),h=R(()=>{var b;return Be((b=v.value)==null?void 0:b.afterHero,s.value)}),I=R(()=>{var b;return Be((b=v.value)==null?void 0:b.betweenSections,s.value)}),$=R(()=>{var b;return s.value==="mobile"&&Be((b=v.value)==null?void 0:b.inFeedMobile,s.value)});return hn(()=>!r.value&&!!v.value),(b,x)=>(d(),p(B,null,[v.value?(d(),pe(An,{key:0,layout:v.value,device:H(s)},null,8,["layout","device"])):A("",!0),u("section",Hv,[x[0]||(x[0]=u("p",{class:"text-xs uppercase tracking-[0.2em] xf-accent font-semibold"},"Right Now",-1)),x[1]||(x[1]=u("h1",{class:"mt-2 xf-heading text-4xl xf-text"},"Trending",-1)),h.value&&v.value?(d(),p("div",zv,[G(Re,{slot:v.value.afterHero.slot,placement:"afterHero",device:H(s)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),r.value?(d(),p("div",qv,"Loadingâ¦")):i.value?(d(),p("div",Wv,k(i.value),1)):o.value.length?(d(),p("div",{key:4,class:Ie(["mt-10",m.value])},[(d(!0),p(B,null,ke(o.value,(g,S)=>(d(),p(B,{key:g.id},[G(fn,{post:g,aspect:c.value,boxed:f.value,heading:"text-lg","show-summary":!0}
29,null,8,["post","aspect","boxed"]),I.value&&v.value&&S===5?(d(),p("div",Kv,[G(Re,{slot:v.value.betweenSections.slot,placement:"betweenSections",device:H(s)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),$.value&&v.value&&(S+1)%6===0?(d(),p("div",Yv,[G(Re,{slot:v.value.inFeedMobile.slot,placement:"inFeed",device:"mobile"},null,8,["slot"])])):A("",!0)],64))),128))],2)):(d(),p("div",Gv,"Nothing trending yet."))])],64))}}),Qv={class:"mx-auto max-w-6xl px-6 py-10"},Zv={class:"mt-2 xf-heading text-4xl xf-text"},Xv={key:0,class:"mt-6"},ex={key:1,class:"mt-8 xf-text-muted"},tx={key:2,class:"mt-8 text-red-400"},nx={key:3,class:"mt-8 xf-text-muted"},sx={key:0,class:"col-span-full"},ox={key:1,class:"col-span-full"},ml=Ae({__name:"News",props:{category:{}},setup(e){const t=e,n=Xe(),s=Ut(),{device:o}=on(),r=L([]),i=L(!0),l=L(null),a=R(()=>t.category||"News + Culture");async function f(){i.value=!0,l.value=null;const g={status:0,type:3,pageSize:60};t.category&&(g.category=t.category);const S=await Kn.d1("list",g);i.value=!1,S.ok?r.value=S.data:l.value=S.error}He(async()=>{s.load(),await n.load(),f()}),Ce(()=>t.category,f);const c=R(()=>{var g,S;return As((S=(g=n.settings)==null?void 0:g.theme)==null?void 0:S.preset)}),m=R(()=>c.value.card==="boxed"),v=R(()=>c.value.feedCardAspect),h=R(()=>Ts(c.value)),I=R(()=>s.organicLayout("category")),$=R(()=>{var g;return Be((g=I.value)==null?void 0:g.afterHero,o.value)}),b=R(()=>{var g;return Be((g=I.value)==null?void 0:g.betweenSections,o.value)}),x=R(()=>{var g;return o.value==="mobile"&&Be((g=I.value)==null?void 0:g.inFeedMobile,o.value)});return hn(()=>!i.value&&!!I.value),(g,S)=>(d(),p(B,null,[I.value?(d(),pe(An,{key:0,layout:I.value,device:H(o)},null,8,["layout","device"])):A("",!0),u("section",Qv,[S[0]||(S[0]=u("p",{class:"text-xs uppercase tracking-[0.2em] xf-accent font-semibold"},"Section",-1)),u("h1",Zv,k(a.value),1),$.value&&I.value?(d(),p("div",Xv,[G(Re,{slot:I.value.afterHero.slot,placement:"afterHero",device:H(o)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),i.value?(d(),p("div",ex,"Loadingâ¦")):l.value?(d(),p("div",tx,k(l.value),1)):r.value.length?(d(),p("div",{key:4,class:Ie(["mt-10",h.value])},[(d(!0),p(B,null,ke(r.value,(y,O)=>(d(),p(B,{key:y.id},[G(fn,{post:y,aspect:v.value,boxed:m.value,heading:"text-lg","show-summary":!0,"show-category":!1},null,8,["post","aspect","boxed"]),b.value&&I.value&&O===5?(d(),p("div",sx,[G(Re,{slot:I.value.betweenSections.slot,placement:"betweenSections",device:H(o)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),x.value&&I.value&&(O+1)%6===0?(d(),p("div",ox,[G(Re,{slot:I.value.inFeedMobile.slot,placement:"inFeed",device:"mobile"},null,8,["slot"])])):A("",!0)],64))),128))],2)):(d(),p("div",nx,"Nothing here yet."))])],64))}}),au="xf_email_unlocked",hl="xf_email_roll";function vl(){try{return localStorage.getItem(au)==="1"}catch{return!1}}function rx(){try{localStorage.setItem(au,"1")}catch{}}let Mn=null;function ix(){if(Mn!==null)return Mn;try{const e=localStorage.getItem(hl),t=e==null?NaN:Number(e);if(Number.isFinite(t)&&t>=0&&t<100)return Mn=t,t;const n=Math.floor(Math.random()*100);return localStorage.setItem(hl,String(n)),Mn=n,n}catch{return Mn=Math.floor(Math.random()*100),Mn}}function Ko(e){return e<=0?!1:e>=100?!0:ix()<e}const xl="xf_voter";let gl=null;function Ps(){if(typeof localStorage>"u")return gl??(gl=crypto.randomUUID());try{let e=localStorage.getItem(xl);return e||(e=crypto.randomUUID(),localStorage.setItem(xl,e)),e}catch{return gl??(gl=crypto.randomUUID())}}function lx(){return{"content-type":"application/json",accept:"application/json"}}async function Os(e){const t=await fetch("/xf-model/engage/call",{method:"POST",headers:lx(),body:JSON.stringify(e)}),n=await t.json().catch(()=>({}));if(!t.ok||!n.ok||n.data===void 0)throw new Error(n.error??`engage ${e.op} failed (${t.status})`);return n.data}async function ax(e){try{return await Os({op:"summary",id:e,voter:Ps()})}catch{return{score:0,comments:0,myVote:0}}}function ux(e,t){return Os({op:"vote",id:e,dir:t,voter:Ps()})}
29function uu(e,t=0,n=10){return Os({op:"comments",id:e,after:t,limit:n,voter:Ps()})}function cx(e){return Os({op:"comment",id:e.id,parentId:e.parentId??null,name:e.name,body:e.body,image:e.image??null,voter:Ps()})}function dx(e,t){return Os({op:"comment_vote",commentId:e,dir:t,voter:Ps()})}function fx(e){const t=Math.max(0,Math.floor((Date.now()-e)/1e3));if(t<60)return"just now";const n=Math.floor(t/60);if(n<60)return`${n} minute${n===1?"":"s"} ago`;const s=Math.floor(n/60);if(s<24)return`${s} hour${s===1?"":"s"} ago`;const o=Math.floor(s/24);if(o<30)return`${o} day${o===1?"":"s"} ago`;const r=Math.floor(o/30);if(r<12)return`${r} month${r===1?"":"s"} ago`;const i=Math.floor(r/12);return`${i} year${i===1?"":"s"} ago`}function px(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return`hsl(${Math.abs(t)%360} 65% 45%)`}const cu="xf_read_pos",yl=20;function du(){try{const e=sessionStorage.getItem(cu);if(!e)return{};const t=JSON.parse(e);return t&&typeof t=="object"?t:{}}catch{return{}}}function mx(e){try{sessionStorage.setItem(cu,JSON.stringify(e))}catch{}}function hx(e,t){if(!e)return;const n=du();delete n[e],n[e]=t;const s=Object.keys(n);if(s.length>yl)for(const o of s.slice(0,s.length-yl))delete n[o];mx(n)}function vx(e){return e?du()[e]??null:null}const xx={key:0,class:"mt-3 space-y-4"},gx={class:"aspect-[16/9] w-full overflow-hidden rounded-lg bg-stone-100"},yx=["src","alt"],bx={class:"mt-1.5 font-serif !text-sm !leading-snug font-semibold xf-text group-hover:underline"},wx={key:1,class:"mt-4 grid grid-cols-2 gap-3"},_x={class:"aspect-[16/9] w-full overflow-hidden bg-stone-100"},kx=["src","alt"],Sx={class:"px-2 py-1.5 font-serif !text-[11px] !leading-tight font-semibold xf-text group-hover:underline line-clamp-4 break-words"},hr=Ae({__name:"RecircWidget",props:{category:{},excludeId:{},type:{},variant:{},limit:{}},setup(e){const t=e,n=sn(),s=L([]),o=R(()=>t.variant??"inline"),r=R(()=>{const a={...n.query};return delete a.slide,a});async function i(){const a=t.limit??(o.value==="rail"?4:2);s.value=await nu(t.category,t.excludeId,a,t.type??0)}Ce(()=>[t.category,t.excludeId,t.type,t.variant],i,{immediate:!0});function l(a){Object.keys(r.value).length===0&&Lr(a)}return(a,f)=>{const c=nn("RouterLink");return s.value.length?(d(),p("section",{key:0,class:Ie(o.value==="rail"?"":"mt-10")},[f[0]||(f[0]=u("h2",{class:"text-xs font-semibold uppercase tracking-[0.2em] xf-accent"},"More to read",-1)),o.value==="rail"?(d(),p("div",xx,[(d(!0),p(B,null,ke(s.value,m=>(d(),pe(c,{key:m.id,to:{name:"article",params:{slug:m.slug},query:r.value},class:"group block",onMouseenter:v=>l(m.slug),onFocus:v=>l(m.slug),onTouchstartPassive:v=>l(m.slug)},{default:ie(()=>[u("div",gx,[m.image?(d(),p("img",{key:0,src:m.image,alt:m.title,loading:"lazy",class:"h-full w-full object-cover transition duration-300 group-hover:scale-105"},null,8,yx)):A("",!0)]),u("h3",bx,k(m.title),1)]),_:2},1032,["to","onMouseenter","onFocus","onTouchstartPassive"]))),128))])):(d(),p("div",wx,[(d(!0),p(B,null,ke(s.value,m=>(d(),pe(c,{key:m.id,to:{name:"article",params:{slug:m.slug},query:r.value},class:"group flex flex-col overflow-hidden rounded-lg border border-stone-200 bg-white transition hover:shadow-md",onMouseenter:v=>l(m.slug),onFocus:v=>l(m.slug),onTouchstartPassive:v=>l(m.slug)},{default:ie(()=>[u("div",_x,[m.image?(d(),p("img",{key:0,src:m.image,alt:m.title,loading:"lazy",class:"h-full w-full object-cover transition duration-300 group-hover:scale-105"},null,8,kx)):A("",!0)]),u("h3",Sx,k(m.title),1)]),_:2},1032,["to","onMouseenter","onFocus","onTouchstartPassive"]))),128))]))],2)):A("",!0)}}}),$x="//static.vidazoo.com/basev/vwpt.js",Cx=Ae({__name:"VideoBlock",props:{widgetId:{}},setup(e){const t=e,n=L(null);let s=!1;return He(()=>{var r;if(s||!n.value)return;const o=(r=t.widgetId)==null?void 0:r.trim();if(o){s=!0;try{const i=document.createElement("script");i.defer=!0,i.src=$x,i.setAttribute("data-widget-id",o),i.setAttribute("data-widget-position","$current"),n.value.appendChild(i)}catch(i){console.warn("[xf-video] Vidazoo injection failed",i)}}}),(o,r)=>(d(),p("div",{ref_key:"host",ref:n,class:"xf-video-block"},null,512))}}),Ex=Tt(Cx,[["__scopeId","data-v-a28db7a0"]]),Ax=Ae({__name:"HtmlBlock",props:{html:{}},setup(e){const t=e,n=L(null);let s=null;function o(){const r=n.value;if(!(!r||s===t.html)){s=t.html,r.innerHTML=t.html;
29for(const i of Array.from(r.querySelectorAll("script"))){const l=document.createElement("script");for(const a of Array.from(i.attributes))l.setAttribute(a.name,a.value);l.text=i.text,i.replaceWith(l)}}}return He(o),Ce(()=>t.html,o,{flush:"post"}),(r,i)=>(d(),p("div",{ref_key:"el",ref:n,class:"xf-text"},null,512))}});function Co(){if(typeof window>"u")return null;const e=window.location.hash.match(/^#comment-(.+)$/);if(!e||!e[1])return null;try{return decodeURIComponent(e[1])}catch{return null}}function no(e,t){for(const n of e)if(n.id===t||no(n.replies,t))return!0;return!1}let Hr=!1;function fu(){Hr=!0}const Ix=12e3;function so(e,t){let n=!1,s=null,o=null,r=0;const i={passive:!0},l=()=>{window.removeEventListener("wheel",a,i),window.removeEventListener("touchstart",a,i),window.removeEventListener("keydown",a,i),s==null||s.disconnect(),s=null,o&&(clearTimeout(o),o=null),r&&(cancelAnimationFrame(r),r=0)},a=()=>{n=!0,l()};window.addEventListener("wheel",a,i),window.addEventListener("touchstart",a,i),window.addEventListener("keydown",a,i),e.scrollIntoView({behavior:"auto",block:t});let f=e.getBoundingClientRect().top;const c=()=>{n||r||(r=requestAnimationFrame(()=>{r=0,!(n||!e.isConnected)&&Math.abs(e.getBoundingClientRect().top-f)>2&&(e.scrollIntoView({behavior:"auto",block:t}),f=e.getBoundingClientRect().top)}))};if(typeof ResizeObserver<"u")s=new ResizeObserver(c),s.observe(document.documentElement),document.body&&s.observe(document.body);else for(const m of[400,1200,2500])setTimeout(()=>{n||e.scrollIntoView({behavior:"auto",block:t})},m);o=setTimeout(l,Ix)}function zr(){const e=Co();if(!e)return;const t=document.getElementById(`comment-${e}`);if(t){Hr=!0;const{hash:s}=window.location;window.location.hash="",window.location.hash=s,so(t,"center");return}const n=document.getElementById("comments");n&&so(n,"start")}function Rx(e=1800){const t=Co();t&&setTimeout(()=>{if(Hr)return;if(document.getElementById(`comment-${t}`)){zr();return}const s=document.getElementById("comments");s&&so(s,"start")},e)}function pu(e,t="start"){const n=document.getElementById(e);n&&so(n,t)}const Tx=["rows","placeholder","onKeydown"],Px={key:1,class:"mt-2 text-sm text-rose-500"},Ox={class:"mt-3 flex items-center gap-2"},Mx={class:"ml-auto flex items-center gap-2"},Nx=["disabled"],bl="xf_comment_name",Lx=Ae({__name:"CommentReplyForm",props:{contentId:{},parentId:{default:null},placeholder:{default:"Add a commentâ¦"},compact:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1}},emits:["posted","cancel"],setup(e,{emit:t}){const n=e,s=t,o=Bt(),r=R(()=>o.enabled&&o.signedIn),i=L(""),l=L(""),a=L(null),f=L(!1),c=L(null);He(()=>{var v;try{i.value=localStorage.getItem(bl)??""}catch{}n.autofocus&&((v=a.value)==null||v.focus())});async function m(){var I,$;const v=l.value.trim();if(!v){c.value="Write something first.";return}if(f.value)return;f.value=!0,c.value=null;const h=r.value?(($=(I=o.user)==null?void 0:I.name)==null?void 0:$.trim())||"Member":i.value.trim()||"Guest";try{if(!r.value)try{localStorage.setItem(bl,h)}catch{}const{comment:b}=await cx({id:n.contentId,parentId:n.parentId,name:h,body:v});l.value="",s("posted",b)}catch(b){c.value=b instanceof Error?b.message:"could not post comment"}finally{f.value=!1}}return(v,h)=>(d(),p("form",{class:Ie(["rounded-2xl border xf-border p-3",e.compact?"mt-3":"mt-4"]),onSubmit:St(m,["prevent"])},[r.value?A("",!0):It((d(),p("input",{key:0,"onUpdate:modelValue":h[0]||(h[0]=I=>i.value=I),type:"text",maxlength:"80",placeholder:"Your name (optional)",class:"mb-2 w-full rounded-lg border xf-border bg-transparent px-3 py-2 text-sm xf-text placeholder:xf-text-faint focus:outline-none focus:ring-2 focus:ring-[var(--xf-accent,var(--xf-primary,#0ea5e9))]"},null,512)),[[Dt,i.value]]),It(u("textarea",{ref_key:"bodyInput",ref:a,"onUpdate:modelValue":h[1]||(h[1]=I=>l.value=I),rows:e.compact?2:3,maxlength:"5000",placeholder:e.placeholder,class:"w-full resize-y rounded-lg border xf-border bg-transparent px-3 py-2 text-sm xf-text placeholder:xf-text-faint focus:outline-none focus:ring-2 focus:ring-[var(--xf-accent,var(--xf-primary,#0ea5e9))]",onKeydown:[Di(St(m,["meta"]),["enter"]),Di(St(m,["ctrl"]),["enter"])]},null,40,Tx),[[Dt,l.value]]),c.value?(d(),p("p",Px,k(c.value),1)):A("",!0),u("div",Ox,[u("div",Mx,[e.compact?(d(),p("button",{key:0,t
29ype:"button",onClick:h[2]||(h[2]=I=>s("cancel")),class:"rounded-full px-3 py-1.5 text-sm font-medium xf-text-muted transition xf-hover-surface"},"Cancel")):A("",!0),u("button",{type:"submit",disabled:f.value,class:"rounded-full px-4 py-1.5 text-sm font-semibold text-white shadow-sm transition hover:brightness-110 disabled:opacity-50",style:{backgroundColor:"var(--xf-accent, var(--xf-primary, #0ea5e9))"}},k(f.value?"Postingâ¦":e.compact?"Reply":"Post comment"),9,Nx)])])],34))}}),qr=Tt(Lx,[["__scopeId","data-v-c61772d5"]]),jx=["id"],Fx={class:"min-w-0 flex-1"},Dx={class:"flex flex-wrap items-baseline gap-x-2"},Bx={class:"break-words text-sm font-semibold xf-text"},Ux={class:"text-xs xf-text-faint"},Vx={key:0,class:"mt-1 whitespace-pre-wrap text-sm leading-relaxed xf-text xf-comment-body"},Hx=["href"],zx=["src"],qx={class:"mt-1.5 flex items-center gap-1 text-xs"},Wx={class:"min-w-[1.25rem] text-center font-semibold tabular-nums xf-text-muted"},Gx=Ae({__name:"CommentItem",props:{comment:{},contentId:{},depth:{}},emits:["reply"],setup(e,{emit:t}){const n=e,s=t,o=L(!1),r=L(!1);async function i(a){if(r.value)return;r.value=!0;const f=n.comment.myVote;try{const c=await dx(n.comment.id,a);n.comment.score=c.score,n.comment.myVote=c.myVote}catch{n.comment.myVote=f}finally{r.value=!1}}function l(a){o.value=!1,s("reply",{parentId:n.comment.id,comment:a})}return(a,f)=>{const c=nn("CommentItem",!0);return d(),p("div",{id:`comment-${e.comment.id}`,class:"flex min-w-0 max-w-full gap-2 sm:gap-3 scroll-mt-24 xf-comment-anchor"},[u("div",{class:Ie(["mt-0.5 flex flex-shrink-0 items-center justify-center rounded-full font-bold text-white",e.depth>0?"h-7 w-7 text-xs":"h-9 w-9 text-sm"]),style:lt({backgroundColor:H(px)(e.comment.author)}),"aria-hidden":"true"},k((e.comment.author||"G").charAt(0).toUpperCase()),7),u("div",Fx,[u("div",Dx,[u("span",Bx,k(e.comment.author),1),u("span",Ux,k(H(fx)(e.comment.createdAt)),1)]),e.comment.body?(d(),p("p",Vx,k(e.comment.body),1)):A("",!0),e.comment.image?(d(),p("a",{key:1,href:e.comment.image,target:"_blank",rel:"noopener",class:"mt-2 block"},[u("img",{src:e.comment.image,alt:"Comment photo",class:"h-auto max-h-64 max-w-full rounded-lg border xf-border"},null,8,zx)],8,Hx)):A("",!0),u("div",qx,[u("button",{type:"button",onClick:f[0]||(f[0]=m=>i(1)),"aria-label":"Upvote comment",class:Ie(["flex h-7 w-7 items-center justify-center rounded-full text-sm leading-none transition xf-hover-surface",e.comment.myVote===1?"opacity-100":"opacity-50 hover:opacity-100"])},[...f[5]||(f[5]=[u("span",{"aria-hidden":"true"},"ð",-1)])],2),u("span",Wx,k(e.comment.score),1),u("button",{type:"button",onClick:f[1]||(f[1]=m=>i(-1)),"aria-label":"Downvote comment",class:Ie(["flex h-7 w-7 items-center justify-center rounded-full text-sm leading-none transition xf-hover-surface",e.comment.myVote===-1?"opacity-100":"opacity-50 hover:opacity-100"])},[...f[6]||(f[6]=[u("span",{"aria-hidden":"true"},"ð",-1)])],2),u("button",{type:"button",onClick:f[2]||(f[2]=m=>o.value=!o.value),class:"ml-2 rounded-full px-2.5 py-1 font-semibold xf-text-muted transition xf-hover-surface"},"Reply")]),o.value?(d(),pe(qr,{key:2,"content-id":e.contentId,"parent-id":e.comment.id,compact:"",autofocus:"",placeholder:"Write a replyâ¦",onCancel:f[3]||(f[3]=m=>o.value=!1),onPosted:l},null,8,["content-id","parent-id"])):A("",!0),e.comment.replies.length?(d(),p("div",{key:3,class:Ie(["mt-3 min-w-0 space-y-4 border-l xf-border",e.depth>=4?"pl-1.5":"pl-2 sm:pl-3"])},[(d(!0),p(B,null,ke(e.comment.replies,m=>(d(),pe(c,{key:m.id,comment:m,"content-id":e.contentId,depth:e.depth+1,onReply:f[4]||(f[4]=v=>s("reply",v))},null,8,["comment","content-id","depth"]))),128))],2)):A("",!0)])],8,jx)}}}),mu=Tt(Gx,[["__scopeId","data-v-9cd82e4a"]]),Kx=["id"],Yx={class:"mt-1 font-serif text-lg font-bold leading-snug xf-text"},Jx={key:1,class:"mt-3 min-w-0 overflow-x-clip"},Qx=["aria-expanded"],Zx={class:"text-[0.7em] leading-none","aria-hidden":"true"},Xx={key:0},eg={key:0,class:"mt-4 space-y-4"},tg=Ae({__name:"DiscussionBlock",props:{question:{},blockId:{},contentId:{}},setup(e){const t=e,n=Bt(),s=R(()=>t.contentId?`${t.contentId}#${t.blockId}`:null),o=R(()=>
29n.enabled&&n.signedIn&&s.value!==null),r=R(()=>n.enabled&&n.ready&&!n.signedIn&&s.value!==null),i=L([]),l=L(0),a=L(!1),f=L(!1),c=L(!1);async function m(){if(!(!o.value||!s.value||f.value)){f.value=!0;try{const x=await uu(s.value,0,50);i.value=x.items,l.value=x.allCount,a.value=!0;const g=Co();g&&no(i.value,g)&&(fu(),c.value=!0,await Ye(),zr())}catch{}finally{f.value=!1}}}const v=R(()=>`discussion-${t.blockId}`),h=R(()=>{if(typeof window>"u")return"/signin";const x=window.location.pathname+window.location.search;return`/signin?next=${encodeURIComponent(`${x}#${v.value}`)}`});He(async()=>{await m(),typeof window<"u"&&window.location.hash===`#${v.value}`&&(c.value=!0,await Ye(),pu(v.value,"center"))}),Ce(o,x=>{x&&!a.value&&m()});function I(x){i.value=[x,...i.value],l.value+=1}function $(x,g){for(const S of x){if(S.id===g)return S;const y=$(S.replies,g);if(y)return y}return null}function b(x){const g=$(i.value,x.parentId);g&&g.replies.push(x.comment),l.value+=1}return(x,g)=>{const S=nn("router-link");return d(),p("aside",{id:v.value,class:"my-6 scroll-mt-24 rounded-2xl border-l-4 xf-border-accent border xf-border p-4 sm:p-5"},[g[3]||(g[3]=u("p",{class:"text-xs font-semibold uppercase tracking-wide xf-text-faint"},"Discussion",-1)),u("p",Yx,k(e.question),1),r.value?(d(),pe(S,{key:0,to:h.value,class:"mt-3 inline-flex items-center gap-1.5 rounded-full border xf-border px-3.5 py-1.5 text-sm font-semibold xf-text-muted transition xf-hover-surface"},{default:ie(()=>[...g[1]||(g[1]=[u("svg",{viewBox:"0 0 24 24",class:"h-4 w-4",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},[u("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})],-1),K(" Sign in to join the discussion ",-1)])]),_:1},8,["to"])):o.value?(d(),p("div",Jx,[u("button",{type:"button",onClick:g[0]||(g[0]=y=>c.value=!c.value),class:"inline-flex items-center gap-1.5 rounded-full border xf-border px-3.5 py-1.5 text-sm font-semibold xf-text-muted transition xf-hover-surface","aria-expanded":c.value},[g[2]||(g[2]=u("svg",{viewBox:"0 0 24 24",class:"h-4 w-4",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},[u("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})],-1)),c.value?(d(),p(B,{key:0},[K("Hide discussion")],64)):l.value?(d(),p(B,{key:1},[K(k(l.value)+" repl"+k(l.value===1?"y":"ies")+" â join in",1)],64)):(d(),p(B,{key:2},[K("Be the first to reply")],64)),u("span",Zx,k(c.value?"â´":"â¾"),1)],8,Qx),c.value?(d(),p("div",Xx,[G(qr,{"content-id":s.value,placeholder:"Share your takeâ¦",compact:"",onPosted:I},null,8,["content-id"]),i.value.length?(d(),p("div",eg,[(d(!0),p(B,null,ke(i.value,y=>(d(),pe(mu,{key:y.id,comment:y,"content-id":s.value,depth:0,onReply:b},null,8,["comment","content-id"]))),128))])):A("",!0)])):A("",!0)])):A("",!0)],8,Kx)}}}),ng=Tt(tg,[["__scopeId","data-v-6ca41cb8"]]),sg={key:0,class:"xf-text-faint"},og=["data-section"],rg={key:1,class:"my-2"},ig={key:0,class:"text-3xl font-extrabold xf-text"},lg={key:1,class:"text-2xl font-bold xf-text"},ag={key:2,class:"text-xl font-bold xf-text"},ug={key:3,class:"text-base leading-relaxed xf-text"},cg={key:4,class:"space-y-1"},dg=["src","alt"],fg={key:0,class:"text-xs xf-text-faint"},pg={key:1,class:"text-[0.7rem] italic xf-text-faint"},mg={key:5,class:"border-l-4 xf-border-accent pl-4 italic xf-text"},hg={key:0,class:"mt-1 block text-xs not-italic xf-text-faint"},vg={key:0,class:"rounded border xf-border-soft xf-surface p-4"},xg={class:"text-xl font-bold xf-text"},gg={class:"mt-2 xf-text"},yg={key:1,class:"rounded border xf-border-soft p-4"},bg={class:"font-semibold xf-text"},wg={class:"mt-2 space-y-1 text-sm xf-text"},_g={class:"font-mono xf-text-faint"},kg={key:0,class:"text-xs"},Sg={key:0,class:"mt-2 text-xs italic xf-text-faint"},$g={key:2,class:"rounded border border-emerald-700/40 bg-emerald-900/10 p-4"},Cg={class:"text-xs uppercase tracking-wide text-emerald-400"},Eg={class:"mt-1 text-lg font-bold xf-text"},Ag={class:"mt-2 xf-text"},Ig={key:0,class:"my-8 border-t border-stone-800/60"},wl=Ae({__name:"BlockRender",props:{raw:{},quiz:{type:Boolean},layout:{},device:{},slideIndex:{},adsActive:{type:Boolean},recircCategory:{},recircExcludeId:{},recircType:{},contentId:{}},emits:["section-reached"],setup(e,{emit:t}){const n=e,s=R(()=>
29{if(!n.raw)return[];try{const y=JSON.parse(n.raw);return Array.isArray(y)?y:[]}catch{return[]}});function o(y){return["heading","paragraph","image","quote","html","discussion"].includes(y.type)}function r(y){return["intro","question","result"].includes(y.type)}const i=R(()=>{const y=s.value,O=ru(y);return O.length?O:[y]}),l=R(()=>{var y,O,W,M;return iu(i.value,(O=(y=n.layout)==null?void 0:y.options)==null?void 0:O.slidesPattern,(M=(W=n.layout)==null?void 0:W.options)==null?void 0:M.slidesPatternHold)});function a(y){return y.kind!=="ad"&&y.kind!=="sticky"?!0:y.device==="both"||y.device===(n.device??"desktop")}function f(y,O){if(!y||y.slide==="all")return!0;const W=y.slide,M=W.from??1,D=W.to??Number.MAX_SAFE_INTEGER;return O>=M&&O<=D}function c(y,O){var W;return y.kind!=="ad"&&y.kind!=="sticky"&&y.kind!=="rail"&&y.kind!=="footer"?!0:f((W=y.slot)==null?void 0:W.condition,O)}function m(y,O,W){var fe;const M=(W==null?void 0:W.sectionOffset)??0,D=(W==null?void 0:W.includeNextButton)??!0,Q=n.layout;if(!Q||!Q.blocks.length)return y.map(ae=>({kind:"post",block:ae}));const F=[],Z=[],U=[];for(const ae of y)o(ae)&&(ae.type==="heading"?F.push(ae):ae.type==="paragraph"?Z.push(ae):ae.type==="image"&&U.push(ae));const Y=new Set,ge=[];let Se=null,ye=!1;for(let ae=0;ae<Q.blocks.length;ae++){const me=Q.blocks[ae];if(me.kind==="heading"){const ue=F[me.n-1];ue&&!Y.has(ue)&&(ge.push({kind:"post",block:ue}),Y.add(ue),Se="heading")}else if(me.kind==="paragraph"){const ue=Z[me.n-1];ue&&!Y.has(ue)&&(ge.push({kind:"post",block:ue}),Y.add(ue),Se="paragraph")}else if(me.kind==="image"){const ue=U[me.n-1];ue&&!Y.has(ue)&&(ge.push({kind:"post",block:ue}),Y.add(ue),Se="image")}else if(me.kind==="rest")for(const ue of y)Y.has(ue)||(ge.push({kind:"post",block:ue}),Y.add(ue),ue.type==="heading"&&(Se="heading"),ue.type==="paragraph"&&(Se="paragraph"),ue.type==="image"&&(Se="image"));else if(me.kind==="ad"){if(n.slideIndex!==void 0&&ye||n.adsActive===!1)continue;if(a(me)&&c(me,O)){const ue=Se?`${Se}After`:"headingBefore";ge.push({kind:"ad",block:me,placement:ue,blockIndex:ae,sectionOffset:M})}}else if(me.kind==="next-button")D&&ge.push({kind:"next-button",block:me}),ye=!0;else if(me.kind==="recirc"){const ue=me.device==="both"||me.device===(n.device??"desktop");n.slideIndex===void 0&&ue&&n.recircExcludeId&&f(me.condition,O)&&ge.push({kind:"recirc",block:me})}else if(me.kind==="video"){const ue=me.device==="both"||me.device===(n.device??"desktop");n.slideIndex===void 0&&n.adsActive!==!1&&ue&&((fe=me.widgetId)!=null&&fe.trim())&&f(me.condition,O)&&ge.push({kind:"video",block:me})}}for(const ae of y){if(Y.has(ae)||!o(ae)||ae.type!=="image"&&ae.type!=="html"&&ae.type!=="quote"&&ae.type!=="discussion")continue;const me=y.indexOf(ae);let ue=0;for(let Ge=me-1;Ge>=0;Ge--){const Ke=y[Ge],at=ge.findIndex(pt=>pt.kind==="post"&&pt.block===Ke);if(at>=0){ue=at+1;break}}ge.splice(ue,0,{kind:"post",block:ae}),Y.add(ae)}return ge}const v=R(()=>{if(n.slideIndex!==void 0){const y=l.value;if(!y.length)return[];const O=Math.max(1,Math.min(n.slideIndex,y.length))-1,W=y[O]??[],M=[];return W.forEach((D,Q)=>{M.push(...m(D,O+1,{sectionOffset:Q,includeNextButton:Q===W.length-1}))}),[{pageIndex:O+1,queue:M}]}return i.value.map((y,O)=>({pageIndex:O+1,queue:m(y,O+1)}))});function h(y,O){return n.slideIndex!==void 0&&y.kind==="ad"?"ad:"+y.sectionOffset+":"+y.blockIndex:"i:"+O}const I=t,$=L(null);let b=null,x=0;function g(){b==null||b.disconnect(),b=null}function S(){if(!(typeof window>"u")&&(g(),x=0,!(n.slideIndex!==void 0||!$.value))){b=new IntersectionObserver(y=>{for(const O of y){if(!O.isIntersecting)continue;const W=Number(O.target.dataset.section);W&&W>x&&(x=W,I("section-reached",W))}},{rootMargin:"0px 0px -50% 0px",threshold:0});for(const y of $.value.querySelectorAll("[data-section]"))b.observe(y)}}return He(()=>{Ye(S)}),Gn(g),Ce(()=>[n.raw,n.slideIndex],()=>{Ye(S)}),(y,O)=>(d(),p("div",{ref_key:"rootEl",ref:$},[s.value.length?A("",!0):(d(),p("p",sg,"No content yet.")),(d(!0),p(B,null,ke(v.value,W=>(d(),p(B,{key:e.slideIndex!==void 0?"gallery":W.pageIndex},[u("div",{class:"space-y-5","data-section":e.slideIndex===void 0?W.pageIndex:void 0},[(d(!0),p(B,null,ke(W.queue,(M,D)=>(d(),p(B,{key:h(M,D)},[M.kind==="ad"?(d(),pe(Re,{key:0,slot:M.block.slot,placement:M.placement,device:e.device},null,8,["slot","placement","device"])):M.kind==="next-button"?(d(),p("div",rg)):M.kind==="recirc"?(d(),pe(hr,{key:2,variant:"inline",category:e.recircCategory??null,"exclude-id":e.recircExcludeId??"",type:e.recircType},null,8,["category","exclude-id","type"])):M.kind==="video"?(d(),pe(Ex,{key:3,"widget-id":M.block.widgetId},null,8,["widget-id"])):o(M.block)?(d(),p(B,{key:4},[M.block.type==="heading"&&M.block.level===1?(d(),p("h1",ig,k(M.block.text),1)):M.block.type==="heading"&&M.block.level===2?(d(),p("h2",lg,k(M.block.text),1)):M.block.type==="heading"&&M.block.level===3?(d(),p("h3",ag,k(M.block.text),1)):M.block.type==="paragraph"?(d(),p("p",ug,k(M.block.text),1)):M.block.type==="image"?(d(),p("figure",cg,[u("img",{src:M.block.url,alt:M.block.alt||"",class:"w-full rounded"},null,8,dg),M.block.caption?(d(),p("figcaption",fg,k(M.block.caption),1)):A("",!0),M.block.credit?(d(),p("figcaption",pg,"Image: "+k(M.block.credit),1)):A("",!0)])):M.block.type==="quote"?(d(),p("blockquote",mg,[u("p",null,k(M.block.text),1),M.block.cite?(d(),p("cite",hg,"â "+k(M.block.cite),1)):A("",!0)])):M.block.type==="html"?(d(),pe(Ax,{key:6,html:M.block.html},null,8,["html"])):M.block.type==="discussion"?(d(),pe(ng,{key:7,question:M.block.question,"block-id":M.block.id,"content-id":e.contentId},null,8,["question","block-id","content-id"])):A("",!0)],64)):r(M.block)?(d(),p(B,{key:5},[M.block.type==="intro"?(d(),p("section",vg,[u("h2",xg,k(M.block.title),1),u("p",gg,k(M.block.text),1)])):M.block.type==="question"?(d(),p("section",yg,[u("p",bg,k(M.block.prompt),1),u("ul",wg,[(d(!0),p(B,null,ke(M.block.options,
29(Q,F)=>(d(),p("li",{key:F,class:Ie(F===M.block.correct?"text-emerald-400":"")},[u("span",_g,k(String.fromCharCode(65+F))+".",1),K(" "+k(Q)+" ",1),F===M.block.correct?(d(),p("span",kg,"(correct)")):A("",!0)],2))),128))]),M.block.explanation?(d(),p("p",Sg,k(M.block.explanation),1)):A("",!0)])):M.block.type==="result"?(d(),p("section",$g,[u("p",Cg,"Result · min score "+k(M.block.minScore),1),u("h3",Eg,k(M.block.title),1),u("p",Ag,k(M.block.text),1)])):A("",!0)],64)):A("",!0)],64))),128))],8,og),e.slideIndex===void 0&&W.pageIndex<i.value.length?(d(),p("div",Ig)):A("",!0)],64))),128))],512))}});function hu(){const e=Xe(),{device:t}=on(),n=R(()=>t.value==="mobile"),s=R(()=>{var a,f;return((f=(a=e.settings)==null?void 0:a.youtubeChannelId)==null?void 0:f.trim())||""}),o=R(()=>s.value?`https://www.youtube.com/channel/${encodeURIComponent(s.value)}?sub_confirmation=1`:""),r=L(null);function i(){if(typeof document>"u"||document.querySelector("script[data-xf-yt]"))return;const a=document.createElement("script");a.src="https://apis.google.com/js/platform.js",a.async=!0,a.defer=!0,a.setAttribute("data-xf-yt",""),document.head.appendChild(a)}async function l(){var a,f;if(s.value&&(await Ye(),!!r.value)){i();for(let c=0;c<40;c++){const m=(f=(a=window.gapi)==null?void 0:a.ytsubscribe)==null?void 0:f.go;if(m&&r.value){m(r.value);return}await new Promise(v=>setTimeout(v,150))}}}return Ce([s,t],([a,f])=>{a&&f==="desktop"&&l()},{immediate:!0}),{isMobile:n,youtubeChannelId:s,youtubeUrl:o,ytContainer:r}}const Rg={class:"xf-subscribe mt-12"},Tg={class:"mx-auto max-w-xl rounded-2xl border border-stone-200 bg-stone-50 px-6 py-8 text-center shadow-sm sm:px-10 sm:py-10"},Pg={class:"mx-auto mt-3 max-w-md text-base leading-relaxed text-stone-600"},Og={class:"text-3xl font-extrabold tracking-tight text-stone-900 sm:text-4xl"},Mg={class:"mx-auto mt-3 max-w-md text-base leading-relaxed text-stone-600 sm:text-lg"},Ng={key:0,class:"relative"},Lg=["disabled"],jg=["value"],Fg={class:"relative"},Dg=["disabled"],Bg=["disabled"],Ug={key:0,class:"mt-3 text-sm font-medium text-red-600"},Vg={class:"mt-4 text-sm text-stone-400"},Hg={key:2,class:"mt-8 border-t border-stone-200 pt-6"},zg=["data-channelid"],qg=["href"],_l=Ae({__name:"SubscribeBox",props:{contentId:{},variant:{default:"default"}},setup(e){const t=e,{isMobile:n,youtubeChannelId:s,youtubeUrl:o,ytContainer:r}=hu(),{memberPerks:i,combinedSubscribe:l}=Vr(),a=L(""),f=L(""),c=L("idle"),m=L(""),v=L(!1),h=R(()=>t.variant==="astrology"),I=R(()=>Cp.map(x=>({value:x,label:x.charAt(0).toUpperCase()+x.slice(1)}))),$=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;async function b(){if(c.value==="submitting")return;const x=a.value.trim();if(!$.test(x)){c.value="error",m.value="Please enter a valid email address.";return}if(h.value&&!f.value){c.value="error",m.value="Please choose your star sign.";return}c.value="submitting",m.value="";try{const g=await l(x,t.contentId??null,h.value?"astrology":null,h.value?f.value:null);v.value=g.linkSent,c.value="done"}catch(g){c.value="error",m.value=g instanceof Error?g.message:"Something went wrong. Please try again."}}return(x,g)=>(d(),p("section",Rg,[u("div",Tg,[c.value==="done"?(d(),p(B,{key:0},[g[2]||(g[2]=u("h2",{class:"text-3xl font-extrabold tracking-tight text-stone-900"},"You're in!",-1)),u("p",Pg,[h.value?(d(),p(B,{key:0},[K("Your personalised daily horoscope is on its way.")],64)):(d(),p(B,{key:1},[K("Thanks for subscribing â keep an eye on your inbox.")],64)),v.value?(d(),p(B,{key:2},[K(" We've also sent you a sign-in link â check your inbox to unlock your free membership.")],64)):A("",!0)])],64)):(d(),p(B,{key:1},[u("h2",Og,[h.value?(d(),p(B,{key:0},[K("Your personalised daily horoscope")],64)):(d(),p(B,{key:1},[K("Loved this story?")],64))]),u("p",Mg,[h.value&&H(i)?(d(),p(B,{key:0},[K("Pick your star sign and we'll send a reading made just for you, every day â plus free membership: exclusive video series, members-only stories, discussions and your own member area. Free, no spam.")],64)):h.value?(d(),p(B,{key:1},[K("Pick your star sign and we'll send a reading made just for you, every day. Free, no spam.")],64)):H(i)?(d(),p(B,{key:2},[K("Get stories like this in your inbox daily â plus free membership: exclusive video series, members-only stories, discussions and your own member area. Free, no spam.")],64)):(d(),p(B,{key:3},[K("Get stories like this in your inbox daily. Free, no spam.")],64))]),u("form",{class:"mt-6 space-y-3",onSubmit:St(b,["prevent"]),novalidate:""},[h.value?(d(),p("div",Ng,[It(u("select",{"onUpdate:modelValue":g[0]||(g[0]=S=>f.value=S),disabled:c.value==="submitting","aria-label":"Choose your star sign",class:Ie(["w-full appearance-none rounded-xl border border-stone-300 bg-white px-4 py-3.5 pr-11 text-base text-stone-900 outline-none transition focus:border-stone-400 focus:ring-2 focus:ring-stone-200 disabled:opacity-60",f.value?"text-stone-900":"text-stone-400"])},[g[3]||(g[3]=u("option",{value:"",disabled:""},"Select your star sign",-1)),(d(!0),p(B,null,ke(I.value,S=>(d(),p("option",{key:S.value,value:S.value},k(S.label),9,jg))),128))],10,Lg),[[Kd,f.value]]),g[4]||(g[4]=u("svg",{class:"pointer-events-none absolute right-4 top-1/2 h-5 w-5 -translate-y-1/2 text-stone-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[u("path",{d:"m6 9 6 6 6-6"})],-1))])):A("",!0),u("div",Fg,[It(u("input",{"onUpdate:modelValue":g[1]||(g[1]=S=>a.value=S),type:"email",inputmode:"email",autocomplete:"email",disabled:c.value==="submitting",placeholder:"Enter your email","aria-label":"Enter your email",class:"w-full rounded-xl border border-stone-300 bg-white px-4 py-3.5 pr-11 text-base text-stone-900 placeholder-stone-400 outline-none transition focus:border-stone-400 focus:ring-2 focus:ring-stone-200 disabled:opacity-60"},null,8,Dg),[[Dt,a.value]]),g[5]||(g[5]=u("svg",{class:"pointer-events-none absolute right-4 top-1/2 h-5 w-5 -translate-y-1/2 text-stone-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[u("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),u("path",{d:"m3 7 9 6 9-6"})],-1))]),u("button",{type:"submit",disabled:c.value==="submitting",style:{"background-color":"#C9A24E"},class:"block w-full rounded-xl px-6 py-3.5 text-lg font-bold text-white shadow-sm transition hover:brightness-105 active:brightness-95 disabled:cursor-not-allowed disabled:opacity-60"},k(c.value==="submitting"?"Subscribingâ¦":h.value?"Send my horoscope":"Subscribe"),9,Bg)],32),c.value==="error"?(d(),p("p",Ug,k(m.value),1)):A("",!0),u("p",Vg,[h.value?(d(),p(B,{key:0},[K("Unsubscribe anytime.")],64)):(d(),p(B,{key:1},[K("Join our community of readers. Unsubscribe anytime.")],64))])],64)),H(s)?(d(),p("div",Hg,[g[7]||(g[7]=zn('<div class="mx-auto mb-3 flex h-11 w-11 items-center justify-center rounded-full" style="background:#ff0000;"><svg viewBox="0 0 24 24" class="h-6 w-6" fill="#fff" aria-hidden="true"><path d="M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"></path></svg></div><p class="text-base font-semibold text-stone-900">Prefer to listen and watch our stories?</p><p class="mx-auto mt-1 max-w-sm text-sm text-stone-600"> Subscribe to our YouTube channel for exclusive audio stories. </p>',3)),H(n)?(d(),p("a",{key:1,href:H(o),target:"_blank",rel:"noopener noreferrer",class:"mt-4 inline-flex items-center justify-center gap-2 rounded-xl px-6 py-3 text-base font-semibold text-white transition hover:opacity-90",style:{background:"#ff0000"}},[...g[6]||(g[6]=[u("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"currentColor","aria-hidden":"true"},[u("path",{d:"M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})],-1),K(" Subscribe on YouTube ",-1)])],8,qg)):(d(),p("div",{key:0,ref_key:"ytC
29ontainer",ref:r,class:"mt-4 flex justify-center"},[u("div",{class:"g-ytsubscribe","data-channelid":H(s),"data-layout":"default","data-count":"default"},null,8,zg)],512))])):A("",!0)])]))}}),Wg={key:0,class:"mt-12"},Gg={class:"mt-5 grid grid-cols-1 gap-6 sm:grid-cols-2"},Kg={class:"aspect-[16/9] w-full overflow-hidden bg-stone-100"},Yg=["src","alt"],Jg={class:"px-4 py-3 font-serif text-lg font-semibold leading-snug xf-text group-hover:underline"},kl=Ae({__name:"RelatedArticles",props:{category:{},excludeId:{},limit:{},type:{}},setup(e){const t=e,n=sn(),s=L([]),o=R(()=>{const l={...n.query};return delete l.slide,l});async function r(){s.value=await nu(t.category,t.excludeId,t.limit??6,t.type??0)}Ce(()=>[t.category,t.excludeId,t.type],r,{immediate:!0});function i(l){Object.keys(o.value).length===0&&Lr(l)}return(l,a)=>{const f=nn("RouterLink");return s.value.length?(d(),p("section",Wg,[a[0]||(a[0]=u("h2",{class:"text-sm font-semibold uppercase tracking-[0.2em] xf-accent"},"More like this",-1)),u("div",Gg,[(d(!0),p(B,null,ke(s.value,c=>(d(),pe(f,{key:c.id,to:{name:"article",params:{slug:c.slug},query:o.value},class:"group block overflow-hidden rounded-xl border border-stone-200 bg-white transition hover:shadow-md",onMouseenter:m=>i(c.slug),onFocus:m=>i(c.slug),onTouchstartPassive:m=>i(c.slug)},{default:ie(()=>[u("div",Kg,[c.image?(d(),p("img",{key:0,src:c.image,alt:c.title,loading:"lazy",class:"h-full w-full object-cover transition duration-300 group-hover:scale-105"},null,8,Yg)):A("",!0)]),u("h3",Jg,k(c.title),1)]),_:2},1032,["to","onMouseenter","onFocus","onTouchstartPassive"]))),128))])])):A("",!0)}}}),Qg={class:"mt-5 flex flex-wrap items-center gap-2.5"},Zg={class:"flex items-center rounded-full border xf-border"},Xg={class:"min-w-[1.75rem] text-center text-sm font-bold tabular-nums xf-text"},e1=["aria-label"],t1={class:"tabular-nums"},n1=["aria-label","title"],s1={key:0,viewBox:"0 0 24 24",class:"h-5 w-5",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},o1={key:1,viewBox:"0 0 24 24",class:"h-5 w-5 text-emerald-500",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},r1={class:"sr-only",role:"status","aria-live":"polite"},i1=Ae({__name:"ShareBar",props:{title:{},url:{},image:{},votes:{},commentCount:{}},emits:["vote","comments"],setup(e,{emit:t}){const n=e,s=t,o=L(!1),r=typeof navigator<"u"&&typeof navigator.share=="function";function i(){return n.url?n.url:typeof window>"u"?"":window.location.origin+window.location.pathname}function l(){if(!n.image)return"";try{return new URL(n.image,window.location.origin).href}catch{return n.image}}function a($){window.open($,"_blank","noopener,noreferrer,width=600,height=520")}function f(){a(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(i())}`)}function c(){const $=encodeURIComponent(i()),b=encodeURIComponent(l()),x=encodeURIComponent(n.title);a(`https://www.pinterest.com/pin/create/button/?url=${$}&media=${b}&description=${x}`)}function m(){a(`https://twitter.com/intent/tweet?url=${encodeURIComponent(i())}&text=${encodeURIComponent(n.title)}`)}function v(){const $=encodeURIComponent(n.title),b=encodeURIComponent(`${n.title} 30 31${i()}`);window.location.href=`mailto:?subject=${$}&body=${b}`}async function h(){var b;const $=i();try{if((b=navigator.clipboard)!=null&&b.writeText)await navigator.clipboard.writeText($);else{const x=document.createElement("textarea");x.value=$,x.style.position="fixed",x.style.opacity="0",document.body.appendChild(x),x.select(),document.execCommand("copy"),document.body.removeChild(x)}o.value=!0,setTimeout(()=>{o.value=!1},1800)}catch{}}async function I(){if(r)try{await navigator.share({title:n.title,url:i()})}catch{}else h()}return($,b)=>(d(),p("div",Qg,[e.votes?(d(),p(B,{key:0},[u("div",Zg,[u("button",{type:"button",onClick:b[0]||(b[0]=x=>s("vote",1)),"aria-label":"Upvote",title:"Upvote",class:Ie(["flex h-10 w-10 items-center justify-center rounded-l-full text-lg leading-none transition xf-hover-surface",e.votes.myVote===1?"opacity-100":"opacity-60 hover:opacity-100"])},[...b[3]||(b[3]=[u("span",{"aria-hidden":"true"},"ð",-1)])],2),u("span",Xg,k(e.votes.score),1),u("button",{type:"button",onClick:b[1]||(b[1]=x=>s("vote",-1)),"aria-label":"Downvote",title:"Downvote",class:Ie(["flex h-10 w-10 items-center justify-center rounded-r-full text-lg leading-none transition xf-hover-surface",e.votes.myVote===-1?"opacity-100":"opacity-60 hover:opacity-100"])},[...b[4]||(b[4]=[u("span",{"aria-hidden":"true"},"ð",-1)])],2)]),u("button",{type:"button",onClick:b[2]||(b[2]=x=>s("comments")),"aria-label":`${e.commentCount??0} comments`,title:"Comments",class:"flex h-10 items-center gap-2 rounded-full border xf-border px-3.5 text-sm font-semibold xf-text-muted transition xf-hover-surface"},[b[5]||(b[5]=u("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[u("path",{d:"M21 15a2 2 0 0 1-2 2H8l-4 4V5a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2z"})],-1)),u("span",t1,k(e.commentCount??0),1)],8,e1),b[6]||(b[6]=u("span",{class:"mx-0.5 hidden h-6
31w-px xf-border sm:block",style:{background:"var(--xf-border,currentColor)",opacity:".4"}},null,-1))],64)):A("",!0),u("button",{type:"button",onClick:f,"aria-label":"Share on Facebook",title:"Share on Facebook",class:"flex h-10 w-10 items-center justify-center rounded-full text-white transition hover:brightness-110",style:{"background-color":"#1877F2"}},[...b[7]||(b[7]=[u("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"currentColor","aria-hidden":"true"},[u("path",{d:"M14 8.5h2.2V5.6c-.38-.05-1.3-.16-2.36-.16-2.34 0-3.94 1.43-3.94 4.05V11.8H7.3v3.18h2.6V23h3.2v-8.02h2.6l.4-3.18h-3V9.83c0-.92.25-1.33 1.3-1.33Z"})],-1)])]),u("button",{type:"button",onClick:c,"aria-label":"Save to Pinterest",title:"Save to Pinterest",class:"flex h-10 w-10 items-center justify-center rounded-full text-white transition hover:brightness-110",style:{"background-color":"#E60023"}},[...b[8]||(b[8]=[u("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"currentColor","aria-hidden":"true"},[u("path",{d:"M12.04 2.5C6.9 2.5 4 5.86 4 9.36c0 1.63.92 3.66 2.4 4.3.22.1.34.06.39-.16.04-.16.24-.95.33-1.32a.35.35 0 0 0-.08-.34c-.5-.6-.9-1.7-.9-2.73 0-2.64 2-5.2 5.4-5.2 2.94 0 5 2 5 4.87 0 3.24-1.64 5.48-3.77 5.48-1.18 0-2.06-.97-1.78-2.17.34-1.42 1-2.96 1-3.99 0-.92-.5-1.69-1.52-1.69-1.2 0-2.17 1.25-2.17 2.92 0 1.07.36 1.79.36 1.79l-1.45 6.16c-.43 1.83-.06 4.07-.03 4.3.02.13.19.16.27.06.11-.15 1.57-1.95 2.07-3.74.14-.51.8-3.14.8-3.14.4.76 1.56 1.42 2.79 1.42 3.67 0 6.17-3.35 6.17-7.83 0-3.39-2.87-6.57-7.96-6.57Z"})],-1)])]),u("button",{type:"button",onClick:m,"aria-label":"Share on X",title:"Share on X",class:"flex h-10 w-10 items-center justify-center rounded-full text-white transition hover:brightness-125",style:{"background-color":"#0f1419"}},[...b[9]||(b[9]=[u("svg",{viewBox:"0 0 24 24",class:"h-[18px] w-[18px]",fill:"currentColor","aria-hidden":"true"},[u("path",{d:"M18.24 2.25h3.31l-7.23 8.26 8.5 11.24h-6.65l-5.21-6.82-5.96 6.82H1.69l7.73-8.84L1.25 2.25h6.82l4.71 6.23 5.46-6.23Zm-1.16 17.52h1.83L7.01 4.13H5.04l12.04 15.64Z"})],-1)])]),u("button",{type:"button",onClick:v,"aria-label":"Share by email",title:"Share by email",class:"flex h-10 w-10 items-center justify-center rounded-full border xf-border xf-text-muted transition xf-hover-surface"},[...b[10]||(b[10]=[u("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"none",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[u("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2.5"}),u("path",{d:"m3.5 7 8.5 6 8.5-6"})],-1)])]),u("button",{type:"button",onClick:h,"aria-label":o.value?"Link copied":"Copy link",title:o.value?"Link copied!":"Copy link",class:"relative flex h-10 w-10 items-center justify-center rounded-full border xf-border xf-text-muted transition xf-hover-surface"},[o.value?(d(),p("svg",o1,[...b[12]||(b[12]=[u("path",{d:"m5 13 4 4L19 7"},null,-1)])])):(d(),p("svg",s1,[...b[11]||(b[11]=[u("path",{d:"M9 13a4 4 0 0 0 5.66 0l2.83-2.83a4 4 0 0 0-5.66-5.66l-1.3 1.3"},null,-1),u("path",{d:"M15 11a4 4 0 0 0-5.66 0L6.5 13.83a4 4 0 0 0 5.66 5.66l1.3-1.3"},null,-1)])]))],8,n1),u("button",{type:"button",onClick:I,"aria-label":"Share",title:"Share",class:"ml-1 flex h-10 items-center gap-2 rounded-full border xf-border px-4 text-sm font-semibold xf-text transition xf-hover-surface"},[...b[13]||(b[13]=[u("svg",{viewBox:"0 0 24 24",class:"h-4 w-4",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[u("path",{d:"M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7"}),u("path",{d:"M12 3v13"}),u("path",{d:"m7 8 5-5 5 5"})],-1),K(" Share ",-1)])]),Nc($.$slots,"default",{},void 0),u("span",r1,k(o.value?"Link copied":""),1)]))}}),Yo=Tt(i1,[["__scopeId","data-v-7e705f37"]]),l1={id:"comments",class:"mt-12 scroll-mt-20 overflow-x-clip"},a1={key:0,class:"mt-4 rounded-2xl border xf-border p-5 text-center"},u1={class:"mt-1 text-sm xf-text-muted"},c1={key:0,class:"mt-8 space-y-6"},d1={key:1,class:"mt-8 text-sm xf-text-faint"},f1={key:2,class:"mt-6"},p1=["disabled"],m1=10,h1=Ae({__name:"CommentSection",props:{contentId:{}},emits:["update:count"],setup(e,{emit:t}){const n=e,s=t,o=Bt(),r=R(()=>o.enabled&&!o.signedIn),i=sn(),l=R(()=>{const S=i.fullPath.split("#")[0]??i.path;return`/signin?next=${encodeURIComponent(`${S}#comments`)}`}),a=L([]),f=L(0),c=L(0),m=L(!1),v=L(!1),h=L(!1);async function I(S=!1){if(!(v.value||r.value)){v.value=!0;try{const y=S?a.value.length:0,O=await uu(n.contentId,y,m1);a.value=S?[...a.value,...O.items]:O.items,f.value=O.total,m.value=O.hasMore,c.value=O.allCount,s("update:count",c.value),h.value=!0}catch{}finally{v.value=!1}}}He(async()=>{await I(!1),await $()}),Ce(r,async S=>
31{!S&&!h.value&&(await I(!1),await $())});async function $(){if(typeof window<"u"&&window.location.hash==="#comments"){await Ye(),pu("comments","start");return}const S=Co();if(!S)return;let y=0;for(;!no(a.value,S)&&m.value&&y<10;)await I(!0),y++;await Ye(),no(a.value,S)?(fu(),zr()):Rx()}function b(S){a.value=[S,...a.value],f.value+=1,c.value+=1,s("update:count",c.value)}function x(S,y){for(const O of S){if(O.id===y)return O;const W=x(O.replies,y);if(W)return W}return null}function g(S){const y=x(a.value,S.parentId);y&&y.replies.push(S.comment),c.value+=1,s("update:count",c.value)}return(S,y)=>{const O=nn("router-link");return d(),p("section",l1,[y[3]||(y[3]=u("h2",{class:"font-serif text-2xl font-bold xf-text"},"What do you think?",-1)),r.value?(d(),p("div",a1,[y[2]||(y[2]=u("p",{class:"text-sm xf-text-muted"},"Comments are for members. Sign in with just your email â it takes seconds.",-1)),G(O,{to:l.value,class:"mt-3 inline-block rounded-full px-5 py-2 text-sm font-semibold text-white shadow-sm transition hover:brightness-110",style:{backgroundColor:"var(--xf-accent, var(--xf-primary, #0ea5e9))"}},{default:ie(()=>[...y[1]||(y[1]=[K("Sign in to comment",-1)])]),_:1},8,["to"])])):(d(),p(B,{key:1},[u("p",u1,k(c.value===0?"Be the first to comment.":`${c.value} comment${c.value===1?"":"s"}`),1),G(qr,{"content-id":e.contentId,onPosted:b},null,8,["content-id"]),a.value.length?(d(),p("div",c1,[(d(!0),p(B,null,ke(a.value,W=>(d(),pe(mu,{key:W.id,comment:W,"content-id":e.contentId,depth:0,onReply:g},null,8,["comment","content-id"]))),128))])):h.value&&!v.value?(d(),p("p",d1,"No comments yet â start the conversation.")):A("",!0),m.value?(d(),p("div",f1,[u("button",{type:"button",disabled:v.value,onClick:y[0]||(y[0]=W=>I(!0)),class:"w-full rounded-full border xf-border px-4 py-2.5 text-sm font-semibold xf-text-muted transition xf-hover-surface disabled:opacity-50"},k(v.value?"Loadingâ¦":"Load more comments"),9,p1)])):A("",!0)],64))])}}}),oo=Tt(h1,[["__scopeId","data-v-d33e1115"]]),v1={class:"xf-optin-overlay fixed inset-0 z-[1000] flex items-center justify-center bg-black/50 p-4",role:"dialog","aria-modal":"true","aria-labelledby":"xf-optin-title"},x1={class:"relative w-full max-w-sm overflow-hidden rounded-2xl bg-white text-stone-800 shadow-2xl"},g1={class:"px-6 pb-6 pt-8"},y1={class:"mt-4 text-center text-sm text-stone-600"},b1={class:"mt-5 rounded-xl border-2 border-[#e3c98f] bg-[#fdf7ea] p-4"},w1={class:"flex items-start gap-3"},_1={class:"min-w-0 flex-1"},k1={class:"mt-2 space-y-1 text-sm text-stone-600"},S1={class:"flex items-center gap-2"},$1={class:"mt-3 rounded-xl border border-stone-200 bg-white p-4"},C1={class:"mt-4 flex items-center justify-center gap-1.5 text-center text-xs text-stone-400"},E1=Ae({__name:"AdOptInModal",props:{brand:{}},emits:["choose"],setup(e,{emit:t}){const n=t;return(s,o)=>(d(),p("div",v1,[u("div",x1,[u("button",{type:"button",class:"absolute right-3 top-3 text-stone-400 transition hover:text-stone-600","aria-label":"Close",onClick:o[0]||(o[0]=r=>n("choose","ads"))},[...o[3]||(o[3]=[u("svg",{viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[u("path",{d:"M6 6l12 12M18 6L6 18"})],-1)])]),u("div",g1,[o[13]||(o[13]=zn('<div class="mb-3 flex justify-center" aria-hidden="true"><svg viewBox="0 0 64 48" width="72" height="54"><g fill="none" stroke="#b8862f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 40h22v4H10z" fill="#fdf3e0"></path><path d="M11 34h21v6H11z" fill="#f6e3bf"></path><path d="M13 28h20v6H13z" fill="#fdf3e0"></path><path d="M40 30h10a4 4 0 0 1 0 8h-1" fill="#f6e3bf"></path><path d="M38 28h13v12a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3z" fill="#fdf3e0"></path><path d="M41 24v-3M46 24v-4" stroke="#7aa37a"></path></g><path d="M30 16c2-3 6-3 6 0" fill="none" stroke="#7aa37a" stroke-width="2" stroke-linecap="round"></path><path d="M30 16c-3 0-5-2-5-5 3 0 5 2 5 5z" fill="#cfe3cf" stroke="#7aa37a" stroke-width="1.5"></path><path d="M46 14c1.6 0 3-1.4 3-3-1.6 0-3 1.4-3 3z" fill="#f3c6cf" stroke="#d98aa0" stroke-width="1.2"></path></svg></div><h2 id="xf-optin-title" class="text-center font-serif text-2xl font-extrabold leading-tight text-stone-900"> Choose Your Reading Experience </h2><div class="mx-auto mt-2 h-1 w-12 rounded-full bg-[#c79a3a]"></div>',3)),u("p",y1,k(e.brand)+" is supported by both readers and advertisers. ",1),o[14]||(o[14]=u("p",{class:"mt-1 text-center text-sm text-stone-500"},"Choose how you'd like to continue.",-1)),u("div",b1,[u("div",w1,[o[8]||(o[8]=u("span",{class:"mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-white text-[#b8862f] shadow-sm","aria-hidden":"true"},[u("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[u("path",{d:"M3 11v2a1 1 0 0 0 1 1h2l4 4V6L6 10H4a1 1 0 0 0-1 1z"}),u("path",{d:"M15 8a4 4 0 0 1 0 8"})])],-1)),u("div",_1,[o[7]||(o[7]=u("h3",{class:"font-bold text-stone-900"},"Continue with Ads",-1)),u("ul",k1,[o[5]||(o[5]=u("li",{class:"flex items-center gap-2"},[u("span",{class:"text-[#b8862f]"},"â"),K(" Free access to all content")],-1)),o[6]||(o[6]=u("li",{class:"flex items-center gap-2"},[u("span",{class:"text-[#b8862f]"},"â"),K(" Supports our writers and editors")],-1)),u("li",S1,[o[4]||(o[4]=u("span",{class:"text-[#b8862f]"},"â",-1)),K(" Helps keep "+k(e.brand)+" free",1)])])])]),u("button",{type:"button",class:"mt-3 flex w-full items-center justify-center gap-2 rounded-lg bg-[#c79a3a] px-4 py-2.5 text-sm font-semibold text-white transition hover:bg-[#b8862f]",onClick:o[1]||(o[1]=r=>n("choose","ads"))},[...o[9]||(o[9]=[K(" Continue with Ads ",-1),u("span",{"aria-hidden":"true"},"â",-1)])])]),u("div",$1,[o[11]||(o[11]=zn('<div class="flex items-start gap-3"><span class="mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-[#eef2fb] text-[#3a55b4]" aria-hidden="true"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20s-7-4.5-7-9.5A3.5 3.5 0 0 1 12 7a3.5 3.5 0 0 1 7 3.5C19 15.5 12 20 12 20z"></path></svg></span><div class="min-w-0 flex-1"><h3 class="font-bold text-stone-900">Continue Ad-Free</h3></div></div>',1)),u("button",{type:"button",class:"mt-3 flex w-full items-center justify-center gap-2 rounded-lg bg-[#3a55b4] px-4 py-2.5 text-sm font-semibold text-white transition hover:bg-[#2f478f]",onClick:o[2]||(o[2]=r=>n("choose","adfree"))},[...o[10]||(o[10]=[K(" Continue Ad-Free ",-1),u("span",{"aria-hidden":"true"},"â",-1)])])]),u("p",C1,[o[12]||(o[12]=u("svg",{viewBox:"0 0 24 24",width:"13",height:"13",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[u("rect",{x:"5",y:"11",width:"14",height:"9",rx:"2"}),u("path",{d:"M8 11V8a4 4 0 0 1 8 0v3"})],-1)),K(" Your choice helps us improve "+k(e.brand)+". ",1)])])])]))}}),A1={class:"xf-emailwall-overlay fixed inset-0 z-[1100] flex items-center justify-center bg-black/60 p-4 backdrop-blur-sm",role:"dialog","aria-modal":"true","aria-labelledby":"xf-emailwall-title"},I1={class:"relative w-full max-w-md overflow-hidden rounded-2xl bg-white text-stone-800 shadow-2xl"},R1={class:"px-6 pb-6 pt-8 sm:px-8"},T1={class:"mx-auto mt-3 max-w-sm text-center text-sm leading-relaxed text-stone-600 sm:text-base"},P1=["disabled"],O1=["disabled"],M1={key:0,class:"mt-3 text-center text-sm font-medium text-red-600"},N1={class:"mt-5 text-center"}
31,L1=Ae({__name:"EmailWallModal",props:{brand:{},contentId:{}},emits:["success","dismiss"],setup(e,{emit:t}){const n=e,s=t,o=L(""),r=L(null),i=L("idle"),l=L(""),a=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;He(()=>{var c;return(c=r.value)==null?void 0:c.focus({preventScroll:!0})});async function f(){if(i.value==="submitting")return;const c=o.value.trim();if(!a.test(c)){i.value="error",l.value="Please enter a valid email address.";return}i.value="submitting",l.value="";try{await jr(c,n.contentId??null,"emailwall"),s("success")}catch(m){i.value="error",l.value=m instanceof Error?m.message:"Something went wrong. Please try again."}}return(c,m)=>(d(),p("div",A1,[u("div",I1,[u("div",R1,[m[2]||(m[2]=zn('<div class="mb-4 flex justify-center" aria-hidden="true"><span class="flex h-14 w-14 items-center justify-center rounded-full bg-[#fdf3e0] text-[#b8862f]"><svg viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="5" width="18" height="14" rx="2"></rect><path d="m3 7 9 6 9-6"></path></svg></span></div><h2 id="xf-emailwall-title" class="text-center font-serif text-2xl font-extrabold leading-tight text-stone-900 sm:text-3xl"> Keep reading â it's free </h2>',2)),u("p",T1," Enter your email to continue this story and get more like it from "+k(e.brand)+", straight to your inbox. No spam, unsubscribe anytime. ",1),u("form",{class:"mt-6 space-y-3",onSubmit:St(f,["prevent"]),novalidate:""},[It(u("input",{ref_key:"emailInput",ref:r,"onUpdate:modelValue":m[0]||(m[0]=v=>o.value=v),type:"email",inputmode:"email",autocomplete:"email",disabled:i.value==="submitting",placeholder:"Enter your email","aria-label":"Enter your email",class:"w-full rounded-xl border border-stone-300 bg-white px-4 py-3.5 text-base text-stone-900 placeholder-stone-400 outline-none transition focus:border-stone-400 focus:ring-2 focus:ring-stone-200 disabled:opacity-60"},null,8,P1),[[Dt,o.value]]),u("button",{type:"submit",disabled:i.value==="submitting",style:{"background-color":"#C9A24E"},class:"block w-full rounded-xl px-6 py-3.5 text-lg font-bold text-white shadow-sm transition hover:brightness-105 active:brightness-95 disabled:cursor-not-allowed disabled:opacity-60"},k(i.value==="submitting"?"Unlockingâ¦":"Continue reading â"),9,O1)],32),i.value==="error"?(d(),p("p",M1,k(l.value),1)):A("",!0),u("div",N1,[u("button",{type:"button",class:"text-xs text-stone-400 underline underline-offset-2 transition hover:text-stone-600",onClick:m[1]||(m[1]=v=>s("dismiss"))}," No thanks, continue reading ")])])])]))}}),j1={class:"font-serif font-bold xf-text xf-title"},F1={class:"mt-3 text-sm xf-text-faint"},D1={key:0,class:"mt-6 text-lg leading-relaxed xf-text-muted"},B1={class:"mt-8"},U1={key:1,class:"relative"},V1={key:0,class:"sticky top-0 z-30"},H1={class:"mx-auto max-w-6xl px-4 lg:px-6 py-8 flex gap-6"},z1={key:0,class:"hidden lg:block flex-shrink-0 w-40"},q1={class:"sticky top-20 space-y-6"},W1={key:1,class:"pointer-events-none fixed left-0 top-1/2 z-10 hidden -translate-y-1/2 justify-end overflow-hidden min-[1500px]:flex",style:{width:"calc(50% - 588px)"}},G1={class:"pointer-events-auto w-40 flex-shrink-0"},K1={key:0,class:"xf-text-muted"},Y1={key:1,class:"text-red-400"},J1={key:0,class:"text-xs uppercase tracking-[0.2em] xf-text-faint"},Q1={class:"mt-2 font-serif font-bold xf-text xf-title"},Z1={key:1,class:"mt-4 text-lg leading-relaxed xf-text-muted"},X1=["src","alt"],ey={class:"mt-8 rounded border xf-border p-6 text-center"},ty={key:0,class:"text-xs uppercase tracking-[0.2em] xf-accent font-semibold"},ny={class:"mt-2 font-serif font-bold xf-text xf-title"},sy={class:"mt-2 flex flex-wrap items-center justify-between gap-3"},oy={class:"text-sm xf-text-faint"},ry={key:0},iy={key:2,class:"mt-6 text-lg leading-relaxed xf-text"},ly=["src","alt"],ay={key:1,class:"mt-4 text-[10px] font-mono text-sky-500/70"},uy={key:0},cy={class:"mt-8"},dy=["href"],fy={key:7,class:"mt-8"},py=["disabled"],my={class:"mt-3 flex items-center justify-between text-xs xf-text-faint"},hy=["disabled"],vy={key:12,class:"mt-10"},xy={key:2,class:"hidden lg:block flex-shrink-0 w-40"},gy={class:"sticky top-20 space-y-6"},yy={key:1,class:"sticky bottom-0 z-30"},by=Ae({__name:"Article",props:{slug:{}},setup(e){const t=e,n=L(null),s=L(null),o=L(!0),r=L(null),i=Ut(),l=Xe(),a=Bt(),f=sn(),c=R(()=>!!n.value&&Fs(n.value.extra).gated===1),m=Es(),v=R(()=>
31{if(!n.value||c.value)return null;const C=Fs(n.value.extra).videoSeriesId;return typeof C=="string"&&C?C:null}),h=R(()=>{if(!n.value||c.value)return null;const C=Fs(n.value.extra).teaserRedirectUrl,N=typeof C=="string"&&/^https?:\/\//i.test(C.trim())?C.trim():null;if(!N)return null;const de=f.query.fbclid;if(typeof de!="string"||!de)return N;try{const he=new URL(N);return he.searchParams.has("fbclid")||he.searchParams.set("fbclid",de),he.toString()}catch{return N}});async function I(){const C=v.value;if(!C)return;const N=`/members/videos/${encodeURIComponent(C)}?ep=1`;await a.init(),m.push(a.signedIn?N:`/signin?next=${encodeURIComponent(N)}`)}function $(C){var N,de;l.hydrate(C.site,C.nav),i.hydrate(C.ads),n.value=C.content,s.value=C.content&&C.content.type!==1?C.variant??null:null,(N=C.content)!=null&&N.title&&Vn(C.content.title,(de=C.site)==null?void 0:de.name)}const b=bp(t.slug);b&&($(b),o.value=!1);const x=L(typeof window<"u"&&window.innerWidth<768?"mobile":"desktop");function g(){x.value=window.innerWidth<768?"mobile":"desktop"}He(()=>window.addEventListener("resize",g)),Sn(()=>window.removeEventListener("resize",g));function S(C){if(typeof C!="string"||!C.trim())return{mode:null,variant:null};const N=C.trim(),de=N.indexOf("/");if(de>0){const he=N.slice(0,de),be=N.slice(de+1)||null;return{mode:he==="gallery"||he==="longform"?he:null,variant:be}}return{mode:null,variant:N}}const y=R(()=>S(typeof f.query.layout=="string"?f.query.layout:null)),O=R(()=>{var C;return S((C=s.value)==null?void 0:C.layout)}),W=R(()=>S(typeof f.query.custom_14=="string"?f.query.custom_14:null));function M(C){var de,he,be;const N=(de=i.config)==null?void 0:de.layouts;if(!N)return!0;if(C.mode){const Me=N[C.mode];return Me?C.variant?!!Me[C.variant]:!!Me.default:!1}return C.variant?!!((he=N.gallery)!=null&&he[C.variant])||!!((be=N.longform)!=null&&be[C.variant]):!1}const D=R(()=>O.value.mode||O.value.variant?O.value:(W.value.mode||W.value.variant)&&M(W.value)?W.value:y.value),Q=R(()=>D.value.variant),F=R(()=>{var de,he,be;if(D.value.mode)return D.value.mode;const C=D.value.variant,N=(de=i.config)==null?void 0:de.layouts;if(C&&N){const Me=!!((he=N.gallery)!=null&&he[C]),st=!!((be=N.longform)!=null&&be[C]);if(Me&&!st)return"gallery";if(st&&!Me)return"longform"}return n.value&&n.value.type===1?"gallery":"longform"}),Z=R(()=>i.pickLayout(F.value,Q.value)),U=R(()=>i.rawLayout(F.value,Q.value)),Y=R(()=>{var C;return!!((C=s.value)!=null&&C.layout)||!!f.query.layout||!!f.query.custom_14}),ge=R(()=>{var C,N;return Y.value&&i.enabled&&!!((N=(C=i.rawLayout(F.value,Q.value))==null?void 0:C.options)!=null&&N.adOptIn)}),Se=R(()=>`${F.value}/${Q.value||"default"}`);Ce(ge,C=>i.setOptInRequired(C),{immediate:!0});function ye(C){i.setAdChoice(C,Se.value),C==="ads"&&Ye(()=>window.dispatchEvent(new CustomEvent("xf:article-spa-entered")))}Ce(()=>s.value,C=>{C&&nh(C.layout)},{immediate:!0}),Ce(()=>f.query.custom_14,()=>sh(),{immediate:!0});const fe=R(()=>{var C;if(!((C=n.value)!=null&&C.slides))return[];try{const N=JSON.parse(n.value.slides);return Array.isArray(N)?N:[]}catch{return[]}}),ae=R(()=>{var N,de,he,be;const C=ru(fe.value);return F.value!=="gallery"?C.map(Me=>[Me]):iu(C,(de=(N=U.value)==null?void 0:N.options)==null?void 0:de.slidesPattern,(be=(he=U.value)==null?void 0:he.options)==null?void 0:be.slidesPatternHold)}),me=R(()=>Math.max(1,ae.value.length)),ue=L(1),Ge=L(!1);Ce(()=>t.slug,()=>{ue.value=1});function Ke(){const C=f.query.slide,N=typeof C=="string"?parseInt(C,10):NaN;!Number.isNaN(N)&&N>0&&(ue.value=Math.max(1,Math.min(N,me.value)))}Ce(()=>[t.slug,f.query.slide,me.value],Ke,{immediate:!0});function at(){const C=new URLSearchParams(window.location.search),N=parseInt(C.get("slide")??"1",10);!Number.isNaN(N)&&N>0&&(ue.value=Math.max(1,Math.min(N,me.value))),decodeURIComponent(window.location.pathname.replace(/^\/+/,"").replace(/\/+$/,""))===t.slug&&ne(ue.value)}function pt(C){const N=ae.value[C-1];if(N)for(const de of N)for(const he of de){const be=he;if(be.type==="image"&&be.url){const Me=new Image;Me.src=be.url}}}function yt(){if(typeof window>"u")return;const C="instant";x.value==="mobile"?document.body.scrollIntoView({behavior:C,block:"start"}):window.scrollTo({top:0,behavior:C})}function et(C){var Yn,Jn,vn,Xr;const N=ue.value;if(C=Math.max(1,Math.min(C,me.value)),C===N)return;const de=(Yn=U.value)==null?void 0:Yn.options,he=x.value,be=((Jn=de==null?void 0:de.clickDelay)==null?void 0:Jn[he])??0,Me=((vn=de==null?void 0:de.hardReloadEvery)==null?void 0:vn[he])??0,st=((Xr=de==null?void 0:de.disableAdRefresh)==null?void 0:Xr[he])??0,Pt=(de==null?void 0:de.preloadNextImages)!==!1;if(be>0&&(Ge.value=!0),C>N&&Me>0&&N%Me===0){setTimeout(()=>{const Qn=new URL(window.location.href);Qn.searchParams.set("slide",String(C)),window.location.href=Qn.toString()},be);return}setTimeout(()=>{Ge.value=!1,ue.value=C,ne(C);const Qn=new URL(window.location.href);Qn.searchParams.set("slide",String(C)),window.history.pushState(null,"",Qn.toString()),yt(),Pt&&pt(C+1),st===1||st===2&&C%2===1||window.dispatchEvent(new CustomEvent("xf:slide-changed",{detail:{page:C}}))},be)}const j=R(()=>
31F.value==="gallery"),oe=R(()=>j.value?ue.value:void 0),te=R(()=>{var C,N,de;return((C=n.value)==null?void 0:C.type)===0||((N=n.value)==null?void 0:N.type)===3||((de=n.value)==null?void 0:de.type)===4}),re=L({score:0,comments:0,myVote:0}),_e=L(null);async function w(C){_e.value=C,re.value={score:0,comments:0,myVote:0};const N=await ax(C);_e.value===C&&(re.value=N)}Ce(()=>{var C;return(C=n.value)==null?void 0:C.id},C=>{var N,de,he;C&&(((N=n.value)==null?void 0:N.type)===0||((de=n.value)==null?void 0:de.type)===3||((he=n.value)==null?void 0:he.type)===4)&&w(C)},{immediate:!0});async function _(C){var he;const N=(he=n.value)==null?void 0:he.id;if(!N)return;const de={...re.value};try{const be=await ux(N,C);re.value={...re.value,score:be.score,myVote:be.myVote}}catch{re.value=de}}function T(C){re.value={...re.value,comments:C}}function z(){const C=document.getElementById("comments");C&&C.scrollIntoView({behavior:"smooth",block:"start"})}const q=R(()=>{var C;return j.value&&((C=n.value)==null?void 0:C.type)!==1&&ue.value<me.value});Ce(q,C=>{l.hideFooter=C},{immediate:!0}),Sn(()=>{l.hideFooter=!1});function V(C){typeof window>"u"||C<2||(C>X.value&&(X.value=C),window.dispatchEvent(new CustomEvent("xf:slide-reached",{detail:{page:C}})))}function ne(C){j.value&&V(C)}function ee(C){j.value||V(C)}const X=L(1),E=L(!1),P=L(!1),J=L(vl());let se=null;const ce=R(()=>!n.value||n.value.type!==0?null:_p(Fs(n.value.extra),l.settings)),$e=R(()=>{const C=ce.value;return!C||J.value?!1:Ko(C.percent)}
31),Pe=R(()=>$e.value&&E.value&&!P.value&&!i.showOptInPopup);function Ee(){se!==null&&(clearTimeout(se),se=null)}function Ue(){Ee(),E.value=!1,P.value=!1,X.value=ue.value,J.value=vl();const C=ce.value;if(!(!C||J.value||!Ko(C.percent))){if(X.value>=C.slides){E.value=!0;return}se=window.setTimeout(()=>{E.value=!0},C.seconds*1e3)}}Ce(X,C=>{const N=ce.value;!N||E.value||J.value||Ko(N.percent)&&C>=N.slides&&(E.value=!0)}),Ce(E,C=>{C&&Ee()}),Ce(ce,()=>Ue(),{immediate:!0}),Sn(Ee);function le(){J.value=!0,rx(),E.value=!1,Ee()}function Oe(){P.value=!0,E.value=!1,Ee()}let Ve=null,Ct=!1,Vt=[];function nt(){if(typeof window>"u"||!n.value||j.value||n.value.type===1)return;const C=window.scrollY;let N=0,de=0;for(const he of document.querySelectorAll("[data-section]")){const be=he.getBoundingClientRect().top;if(be<=0)N=Number(he.dataset.section)||0,de=-be;else break}hx(t.slug,{section:N,offset:de,y:C})}function ht(){Ve===null&&(Ve=window.setTimeout(()=>{Ve=null,nt()},250))}function bt(){Ct=!0}function rn(){for(const C of Vt)clearTimeout(C);Vt=[],window.removeEventListener("wheel",bt),window.removeEventListener("touchstart",bt),window.removeEventListener("keydown",bt)}function vu(){if(typeof window>"u"||!n.value||j.value||n.value.type===1||f.query.slide||f.query.section)return;const C=vx(t.slug);if(!C||C.section<=0&&C.y<=0)return;Ct=!1,rn();const N={passive:!0,once:!0};window.addEventListener("wheel",bt,N),window.addEventListener("touchstart",bt,N),window.addEventListener("keydown",bt,N);const de=()=>{if(C.section>0){const be=document.querySelector(`[data-section="${C.section}"]`);if(be)return Math.max(0,be.getBoundingClientRect().top+window.scrollY+C.offset)}return Math.max(0,C.y)},he=[0,150,400,800];for(const be of he)Vt.push(window.setTimeout(()=>{Ct||window.scrollTo({top:de(),behavior:"instant"})},be));Vt.push(window.setTimeout(rn,he[he.length-1]+100))}function Wr(){if(typeof window>"u"||!n.value||j.value||n.value.type===1)return;const C=f.query.section,N=typeof C=="string"?parseInt(C,10):NaN;if(Number.isNaN(N)||N<2)return;Ct=!1,rn();const de={passive:!0,once:!0};window.addEventListener("wheel",bt,de),window.addEventListener("touchstart",bt,de),window.addEventListener("keydown",bt,de);const he=()=>{const Me=document.querySelectorAll("[data-section]");if(!Me.length)return null;const st=Math.min(N-1,Me.length-1),Pt=Me[st];return Math.max(0,Pt.getBoundingClientRect().top+window.scrollY-8)},be=[0,150,400,800];for(const Me of be)Vt.push(window.setTimeout(()=>{if(Ct)return;const st=he();st!==null&&window.scrollTo({top:st,behavior:"instant"})},Me));Vt.push(window.setTimeout(rn,be[be.length-1]+100))}function In(C){if(!C||C.slide==="all"||!j.value)return!0;const N=C.slide,de=N.from??1,he=N.to??Number.MAX_SAFE_INTEGER;return ue.value>=de&&ue.value<=he}const Gr=R(()=>{var de,he;const C=(he=(de=U.value)==null?void 0:de.options)==null?void 0:he.typography;if(!C)return{};const N={};return C.titleSize&&(N["--xf-title-size"]=C.titleSize),C.h2Size&&(N["--xf-h2-size"]=C.h2Size),C.h3Size&&(N["--xf-h3-size"]=C.h3Size),C.bodySize&&(N["--xf-body-size"]=C.bodySize),C.lineHeight&&(N["--xf-line-height"]=C.lineHeight),C.titleSizeMobile&&(N["--xf-title-size-m"]=C.titleSizeMobile),C.h2SizeMobile&&(N["--xf-h2-size-m"]=C.h2SizeMobile),C.h3SizeMobile&&(N["--xf-h3-size-m"]=C.h3SizeMobile),C.bodySizeMobile&&(N["--xf-body-size-m"]=C.bodySizeMobile),C.lineHeightMobile&&(N["--xf-line-height-m"]=C.lineHeightMobile),N}),Kr=R(()=>{var C;return(C=Z.value)==null?void 0:C.blocks.find(N=>N.kind==="sticky"&&N.position==="top"&&(N.device==="both"||N.device===x.value)&&In(N.slot.condition))}),Yr=R(()=>{var C;return(C=Z.value)==null?void 0:C.blocks.find(N=>N.kind==="sticky"&&N.position==="bottom"&&(N.device==="both"||N.device===x.value)&&In(N.slot.condition))}),Rn=R(()=>{var C;return(C=Z.value)==null?void 0:C.blocks.find(N=>N.kind==="rail"&&N.side==="left"&&In(N.slot.condition))}),Eo=R(()=>{var C;return(C=Z.value)==null?void 0:C.blocks.find(N=>N.kind==="rail"&&N.side==="right"&&In(N.slot.condition))}),Ao=R(()=>{var C;return(C=U.value)==null?void 0:C.blocks.find(N=>N.kind==="recirc-rail"&&N.side==="left")}),Jr=R(()=>{var C;return(C=U.value)==null?void 0:C.blocks.find(N=>N.kind==="recirc-rail"&&N.side==="right")}),Qr=R(()=>{var C;return!!((C=Rn.value)!=null&&C.beside&&Ao.value)}),xu=R(()=>i.enabled&&!i.adsHeld),Zr=R(()=>{var C;return(C=Z.value)==null?void 0:C.blocks.find(N=>N.kind==="footer"&&In(N.slot.condition))}),gu=R(()=>{var he;if(!j.value)return[];const C=((he=Z.value)==null?void 0:he.blocks)??[],N=C.findIndex(be=>be.kind==="next-button");if(N===-1)return[];const de=[];for(let be=N+1;be<C.length;be++){const Me=C[be];Me.kind==="ad"&&(Me.device==="both"||Me.device===x.value)&&In(Me.slot.condition)&&de.push(Me)}return de});async function Io(){var Me,st;o.value=!0,r.value=null,n.value=null,s.value=null;const C=new URL(window.location.href),N=C.searchParams.get("done")==="1",de=C.searchParams.size>0&&!N;let he;try{he=await hp(t.slug,{pick:de})}catch(Pt){o.value=!1,r.value=Pt instanceof Error?Pt.message:String(Pt);return}$(he);const be=he.content;if(!be){o.value=!1,r.value="Not found";return}o.value=!1,be.type!==1&&((st=(Me=i.config)==null?void 0:Me.provider)!=null&&st.enabled)&&Ye(()=>{window.dispatchEvent(new CustomEvent("xf:article-spa-entered",{detail:{slug:t.slug}}))}),Ke(),ne(ue.value),Ye(Wr)}He(()=>{n.value?(ne(ue.value),Ye(()=>{Wr(),vu()})):Io(),window.addEventListener("popstate",at),window.addEventListener("scroll",ht,{passive:!0})}),Sn(()=>{window.removeEventListener("popstate",at),window.removeEventListener("scroll",ht),Ve!==null&&(clearTimeout(Ve),Ve=null),rn(),nt()}),Ce(()=>t.slug,Io),Ce(()=>a.signedIn,C=>{C&&c.value&&Io()});function yu(){const C=document.querySelector(".xf-subscribe");if(!(C instanceof HTMLElement))return;C.scrollIntoView({behavior:"smooth",block:"center"});const N=C.querySelector('input[type="email"]');N instanceof HTMLInputElement&&setTimeout(()=>N.focus({preventScroll:!0}),500)}return(C,N)=>{var he,be,Me,st,Pt,Ro,Yn,Jn;const de=nn("RouterLink");return d(),p(B,null,[n.value&&n.value.type===1?(d(),p("div",{key:0,class:"mx-auto max-w-3xl px-6 py-12 xf-article xf-page",style:lt(Gr.value)}
31,[u("article",null,[u("h1",j1,k(n.value.title),1),u("p",F1," Updated "+k(new Date(n.value.created).toLocaleDateString()),1),n.value.summary?(d(),p("p",D1,k(n.value.summary),1)):A("",!0),u("div",B1,[G(wl,{raw:n.value.slides,layout:null,device:x.value},null,8,["raw","device"])])])],4)):(d(),p("div",U1,[Kr.value?(d(),p("div",V1,[G(Re,{slot:Kr.value.slot,placement:"stickytop",device:x.value},null,8,["slot","device"])])):A("",!0),u("div",H1,[(Rn.value||Ao.value)&&x.value==="desktop"?(d(),p("aside",z1,[u("div",q1,[Rn.value&&!Qr.value?(d(),pe(Re,{key:0,slot:Rn.value.slot,placement:"left",device:x.value},null,8,["slot","device"])):A("",!0),Ao.value&&n.value?(d(),pe(hr,{key:1,variant:"rail",category:n.value.category,"exclude-id":n.value.id,type:n.value.type},null,8,["category","exclude-id","type"])):A("",!0)])])):A("",!0),Rn.value&&Qr.value&&x.value==="desktop"?(d(),p("aside",W1,[u("div",G1,[G(Re,{slot:Rn.value.slot,placement:"left",device:x.value},null,8,["slot","device"])])])):A("",!0),u("article",{class:"flex-1 max-w-3xl mx-auto min-w-0 xf-article",style:lt(Gr.value)},[o.value?(d(),p("p",K1,"Loadingâ¦")):r.value?(d(),p("p",Y1,k(r.value),1)):n.value&&c.value?(d(),p(B,{key:2},[n.value.category?(d(),p("p",J1,k(n.value.category),1)):A("",!0),u("h1",Q1,k(n.value.title),1),n.value.summary?(d(),p("p",Z1,k(n.value.summary),1)):A("",!0),n.value.image?(d(),p("img",{key:2,src:n.value.image,alt:n.value.title,class:"mt-6 w-full rounded object-cover"},null,8,X1)):A("",!0),u("div",ey,[N[2]||(N[2]=u("p",{class:"text-sm uppercase tracking-[0.18em] font-semibold xf-text"},"Members-only story",-1)),N[3]||(N[3]=u("p",{class:"mt-3 text-sm xf-text-muted"}," This story is exclusive to members. Sign in â or join free with just your email â to keep reading. ",-1)),G(de,{to:"/signin",class:"mt-5 inline-block xf-rounded border xf-border-accent px-6 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)]"},{default:ie(()=>[K(k(H(a).signedIn?"Continue":"Sign in to read"),1)]),_:1})])],64)):n.value?(d(),p(B,{key:3},[j.value&&ue.value>1&&((be=(he=U.value)==null?void 0:he.options)!=null&&be.hideTitleAfterFirstPage)?A("",!0):(d(),p(B,{key:0},[n.value.category?(d(),p("p",ty,k(n.value.category),1)):A("",!0),u("h1",ny,k(n.value.title),1),u("div",sy,[u("p",oy,[K(k(new Date(n.value.created).toLocaleDateString()),1),n.value.user?(d(),p("span",ry," · "+k(n.value.user),1)):A("",!0)]),te.value?(d(),p("button",{key:0,type:"button",onClick:yu,class:"inline-flex items-center gap-1.5 rounded-full px-4 py-1.5 text-sm font-semibold text-white shadow-sm transition hover:brightness-110",style:{backgroundColor:"var(--xf-accent, var(--xf-primary, #0ea5e9))"}},[...N[4]||(N[4]=[u("svg",{viewBox:"0 0 24 24",class:"h-4 w-4",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[u("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),u("path",{d:"m3 7 9 6 9-6"})],-1),K(" Subscribe ",-1)])])):A("",!0)]),te.value?(d(),pe(Yo,{key:1,title:n.value.title,image:n.value.image,votes:re.value,"comment-count":re.value.comments,onVote:_,onComments:z},{default:ie(()=>[v.value&&H(a).enabled?(d(),p("button",{key:0,type:"button",onClick:I,title:"Watch the video series adapted from this story",class:"inline-flex h-10 items-center gap-1.5 rounded-full border xf-border-accent px-4 text-sm font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)]"},[...N[5]||(N[5]=[u("svg",{viewBox:"0 0 24 24",class:"h-4 w-4",fill:"currentColor","aria-hidden":"true"},[u("path",{d:"M8 5.5v13l11-6.5-11-6.5Z"})],-1),K(" Watch ",-1)])])):A("",!0)]),_:1},8,["title","image","votes","comment-count"])):A("",!0),n.value.summary&&!((st=(Me=U.value)==null?void 0:Me.options)!=null&&st.hideSummary)?(d(),p("p",iy,k(n.value.summary),1)):A("",!0),n.value.image&&!((Ro=(Pt=U.value)==null?void 0:Pt.options)!=null&&Ro.hideFeaturedImage)?(d(),p("img",{key:3,src:n.value.image,alt:n.value.title,class:"mt-6 w-full rounded"},null,8,ly)):A("",!0)],64)),Z.value&&H(f).query.debug==="1"?(d(),p("p",ay,[K(" layout: "+k(F.value)+"/"+k(Q.value??"default")+" · "+k(Z.value.blocks.length)+" blocks · "+k(me.value)+" "+k(me.value===1?"page":"pages")+" ",1),j.value?(d(),p("span",uy," · viewing page "+k(ue.value),1)):A("",!0),K(" · device: "+k(x.value),1)])):A("",!0),u("div",cy,[G(wl,{raw:n.value.slides,quiz:n.value.type===2,layout:U.value,device:x.value,"slide-index":oe.value,"ads-active":xu.value,"recirc-category":n.value.category,"recirc-exclude-id":n.value.id,"recirc-type":n.value.type,"content-id":n.value.id,onSectionReached:ee},null,8,["raw","quiz","layout","device","slide-index","ads-active","recirc-category","re
31circ-exclude-id","recirc-type","content-id"])]),h.value&&(!j.value||ue.value>=me.value)?(d(),p("a",{key:2,href:h.value,rel:"noopener",style:{"background-color":"#EFA703"},class:"continue-reading mt-8 block w-full rounded-2xl px-6 py-5 text-center font-sans text-2xl font-black uppercase tracking-tight text-white shadow-lg shadow-black/10 transition hover:brightness-105 active:brightness-95"},[...N[6]||(N[6]=[K(" Continue Reading",-1),u("span",{"aria-hidden":"true",class:"ml-2"},"â",-1)])],8,dy)):A("",!0),!j.value&&n.value.type!==1?(d(),pe(_l,{key:3,"content-id":n.value.id,variant:n.value.type===4?"astrology":"default"},null,8,["content-id","variant"])):A("",!0),!j.value&&te.value?(d(),pe(Yo,{key:4,title:n.value.title,image:n.value.image,votes:re.value,"comment-count":re.value.comments,onVote:_,onComments:z},null,8,["title","image","votes","comment-count"])):A("",!0),!j.value&&te.value?(d(),pe(oo,{key:5,"content-id":n.value.id,"onUpdate:count":T},null,8,["content-id"])):A("",!0),!j.value&&n.value.type!==1?(d(),pe(kl,{key:6,category:n.value.category,"exclude-id":n.value.id,type:n.value.type},null,8,["category","exclude-id","type"])):A("",!0),j.value&&me.value>1?(d(),p("nav",fy,[ue.value<me.value?(d(),p("button",{key:0,type:"button",id:"next-slide",disabled:Ge.value,onClick:N[0]||(N[0]=vn=>et(ue.value+1)),class:Ie([Ge.value?"opacity-60":"","next-slide block w-full rounded-2xl px-6 py-5 text-center font-sans text-2xl font-black uppercase tracking-tight text-white shadow-lg shadow-black/10 transition hover:brightness-105 active:brightness-95 disabled:cursor-not-allowed disabled:opacity-40"]),style:{"background-color":"#EFA703"}},[...N[7]||(N[7]=[K(" Next Slide",-1),u("span",{"aria-hidden":"true",class:"ml-2"},"â",-1)])],10,py)):A("",!0),u("div",my,[u("button",{type:"button",disabled:ue.value<=1,onClick:N[1]||(N[1]=vn=>et(ue.value-1)),class:"font-semibold uppercase tracking-wide opacity-70 hover:opacity-100 disabled:opacity-30"}," â¹ Previous ",8,hy)])])):A("",!0),(d(!0),p(B,null,ke(gu.value,vn=>(d(),p("div",{key:vn.id,class:"mt-4"},[G(Re,{slot:vn.slot,placement:"buttonAfter",device:x.value},null,8,["slot","device"])]))),128)),j.value&&n.value.type!==1&&ue.value>=me.value?(d(),pe(_l,{key:8,"content-id":n.value.id,variant:n.value.type===4?"astrology":"default"},null,8,["content-id","variant"])):A("",!0),j.value&&te.value&&ue.value>=me.value?(d(),pe(Yo,{key:9,title:n.value.title,image:n.value.image,votes:re.value,"comment-count":re.value.comments,onVote:_,onComments:z},null,8,["title","image","votes","comment-count"])):A("",!0),j.value&&te.value&&ue.value>=me.value?(d(),pe(oo,{key:10,"content-id":n.value.id,"onUpdate:count":T},null,8,["content-id"])):A("",!0),j.value&&n.value.type!==1&&ue.value>=me.value?(d(),pe(kl,{key:11,category:n.value.category,"exclude-id":n.value.id,type:n.value.type},null,8,["category","exclude-id","type"])):A("",!0),Zr.value?(d(),p("div",vy,[G(Re,{slot:Zr.value.slot,placement:"footer"},null,8,["slot"])])):A("",!0)],64)):A("",!0)],4),(Eo.value||Jr.value)&&x.value==="desktop"?(d(),p("aside",xy,[u("div",gy,[Eo.value?(d(),pe(Re,{key:0,slot:Eo.value.slot,placement:"right",device:x.value},null,8,["slot","device"])):A("",!0),Jr.value&&n.value?(d(),pe(hr,{key:1,variant:"rail",category:n.value.category,"exclude-id":n.value.id,type:n.value.type},null,8,["category","exclude-id","type"])):A("",!0)])])):A("",!0)]),Yr.value?(d(),p("div",yy,[G(Re,{slot:Yr.value.slot,placement:"sticky",device:x.value},null,8,["slot","device"])])):A("",!0)])),H(i).showOptInPopup?(d(),pe(E1,{key:2,brand:((Yn=H(l).settings)==null?void 0:Yn.name)||"this site",onChoose:ye},null,8,["brand"])):A("",!0),Pe.value&&n.value?(d(),pe(L1,{key:3,brand:((Jn=H(l).settings)==null?void 0:Jn.name)||"this site","content-id":n.value.id,onSuccess:le,onDismiss:Oe},null,8,["brand","content-id"])):A("",!0)],64)}}}),wy={class:"mx-auto max-w-5xl px-6 py-10"},_y={key:0,class:"mt-4 xf-text-muted"},ky={key:1,class:"mt-6 divide-y xf-divide"},Sy={key:2,class:"mt-4 xf-text-muted"},$y=Ae({__name:"Search",setup(e){const t=sn(),n=Es(),s=L(t.query.q??""),o=L([]),r=L(!1);async function i(a){if(!a.trim()){o.value=[];return}r.value=!0;const f=await Kn.d1("list",{status:0,q:a.trim(),pageSize:30});r.value=!1,f.ok&&(o.value=f.data)}function l(a){a.preventDefault(),n.replace({query:{q:s.value}})}return vc(()=>i(t.query.q??"")),(a,f)=>(d(),p("section",wy,[f[1]||(f[1]=u("h1",{class:"text-3xl font-extrabold"},"Search",-1)),u("form",{class:"mt-4",onSubmit:l},[It(u("input",{"onUpdate:modelValue":f[0]||(f[0]=c=>s.value=c),type:"search",placeholder:"Search postsâ¦",class:"w-full rounded border xf-border xf-surface px-4 py-2 xf-text focus:xf-border-accent focus:outline-none"},null,512),[[Dt,s.value]])],32),r.value?(d(),p("p",_y,"Searchingâ¦")):o.value.length?(d(),p("ul",ky,[(d(!0),p(B,null,ke(o.value,c=>(d(),p("li",{key:c.id,class:"py-4"},[G(H(xe),{to:`/${c.slug}`,class:"xf-text hover:underline"},{default:ie(()=>[K(k(c.title),1)]),_:2},1032,["to"])]))),128))])):H(t).query.q?(d(),p("p",Sy,"No matches.")):A("",!0)]))}}),Cy={class:"mx-auto max-w-2xl px-6 py-8 sm:py-24"},Ey={class:"text-center"},Ay={class:"mx-auto mt-4 max-w-md text-base sm:text-lg leading-relaxed xf-text-muted"},Iy={class:"mt-4 xf-heading text-4xl sm:text-5xl leading-tight xf-text"},Ry={class:"mx-auto mt-4 max-w-md text-base sm:text-lg leading-relaxed xf-text-muted"},Ty=["disabled"],Py=["disabled"],Oy={key:0,"aria-live":"polite",class:"mt-4 text-sm font-medium text-red-500"},My={key:2,class:"mx-auto mt-8 max-w-md xf-rounded border xf-border-accent p-6 sm:p-8"},Ny=["data-channelid"],Ly=["href"],jy={key:3,class:"mx-auto mt-12 max-w-md border-t xf-border-soft pt-8"},Fy=["href"],Dy=Ae({__name:"Subscribe",setup(e){const t=Xe(),{isMobile:n,youtubeChannelId:s,youtubeUrl:o,ytC
31ontainer:r}=hu(),{memberPerks:i,combinedSubscribe:l}=Vr(),a=R(()=>{var x;return((x=t.settings)==null?void 0:x.name)??"our newsletter"}),f=R(()=>{var x,g;return((g=(x=t.settings)==null?void 0:x.whatsappChannelUrl)==null?void 0:g.trim())||""}),c=L(""),m=L("idle"),v=L(""),h=L(!1),I=L(!1),$=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;async function b(){if(m.value==="submitting")return;const x=c.value.trim();if(!$.test(x)){m.value="error",v.value="Please enter a valid email address.";return}m.value="submitting",v.value="";try{const g=await l(x,null,"subscribe");h.value=g.already,I.value=g.linkSent,m.value="done"}catch(g){m.value="error",v.value=g instanceof Error?g.message:"Something went wrong. Please try again."}}return(x,g)=>(d(),p("section",Cy,[u("div",Ey,[g[7]||(g[7]=u("p",{class:"text-xs uppercase tracking-[0.22em] xf-accent font-semibold"},"Newsletter",-1)),m.value==="done"?(d(),p(B,{key:0},[g[1]||(g[1]=u("h1",{class:"mt-4 xf-heading text-4xl sm:text-5xl leading-tight xf-text"},"You're in!",-1)),u("p",Ay,[K(k(h.value?"You're already on the list â no need to sign up again.":"Thanks for subscribing. Keep an eye on your inbox for what's next.")+" ",1),I.value?(d(),p(B,{key:0},[K(" We've also sent you a sign-in link â check your inbox to unlock your free membership.")],64)):A("",!0)])],64)):(d(),p(B,{key:1},[u("h1",Iy," Subscribe to "+k(a.value),1),u("p",Ry,[H(i)?(d(),p(B,{key:0},[K("Get our best stories delivered straight to your inbox â plus free membership: exclusive video series, members-only stories, discussions and your own member area. Free, and you can unsubscribe anytime.")],64)):(d(),p(B,{key:1},[K("Get our best stories delivered straight to your inbox. Free, and you can unsubscribe anytime.")],64))]),u("form",{class:"mx-auto mt-8 flex max-w-md flex-col gap-3 sm:flex-row",onSubmit:St(b,["prevent"]),novalidate:""},[It(u("input",{"onUpdate:modelValue":g[0]||(g[0]=S=>c.value=S),type:"email",inputmode:"email",autocomplete:"email",disabled:m.value==="submitting",placeholder:"Enter your email","aria-label":"Enter your email",class:"xf-input xf-rounded w-full flex-1 border px-4 py-3 text-base transition disabled:opacity-60"},null,8,Ty),[[Dt,c.value]]),u("button",{type:"submit",disabled:m.value==="submitting",class:"xf-rounded shrink-0 border xf-border-accent px-6 py-3 text-base font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)] disabled:cursor-not-allowed disabled:opacity-60"},k(m.value==="submitting"?"Subscribingâ¦":"Subscribe"),9,Py)],32),m.value==="error"?(d(),p("p",Oy,k(v.value),1)):A("",!0),g[2]||(g[2]=u("p",{class:"mt-6 text-xs xf-text-faint"},"We respect your inbox. Unsubscribe at any time.",-1))],64)),H(s)?(d(),p("div",My,[g[4]||(g[4]=zn('<div class="mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-full" style="background:#ff0000;"><svg viewBox="0 0 24 24" class="h-8 w-8" fill="#fff" aria-hidden="true"><path d="M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"></path></svg></div><p class="text-lg font-bold xf-text sm:text-xl">Prefer to listen and watch our stories?</p><p class="mx-auto mt-2 max-w-sm text-sm xf-text-muted"> Subscribe to our YouTube channel for exclusive audio stories. </p>',3)),H(n)?(d(),p("a",{key:1,href:H(o),target:"_blank",rel:"noopener noreferrer",class:"xf-rounded mt-5 inline-flex w-full items-center justify-center gap-2 px-6 py-3.5 text-base font-semibold text-white transition hover:opacity-90",style:{background:"#ff0000"}},[...g[3]||(g[3]=[u("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"currentColor","aria-hidden":"true"},[u("path",{d:"M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})],-1),K(" Subscribe on YouTube ",-1)])],8,Ly)):(d(),p("div",{key:0,ref_key:"ytC
31ontainer",ref:r,class:"mt-5 flex justify-center"},[u("div",{class:"g-ytsubscribe","data-channelid":H(s),"data-layout":"full","data-count":"default"},null,8,Ny)],512))])):A("",!0),f.value?(d(),p("div",jy,[g[6]||(g[6]=u("p",{class:"text-sm xf-text-muted"},"Prefer your phone? Follow us on WhatsApp for our latest stories.",-1)),u("a",{href:f.value,target:"_blank",rel:"noopener noreferrer",class:"xf-rounded mt-4 inline-flex items-center justify-center gap-2 border xf-border-accent px-6 py-3 text-base font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)]"},[...g[5]||(g[5]=[u("svg",{viewBox:"0 0 24 24",class:"h-5 w-5",fill:"currentColor","aria-hidden":"true"},[u("path",{d:"M.057 24l1.687-6.163a11.867 11.867 0 01-1.587-5.945C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 018.413 3.488 11.824 11.824 0 013.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 01-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 001.51 5.26l-.999 3.648 3.978-1.207zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"})],-1),K(" Join Our WhatsApp Community ",-1)])],8,Fy)])):A("",!0)])]))}}),By={class:"mx-auto max-w-4xl px-6 py-16 sm:py-24"},Uy={class:"text-center"},Vy={class:"text-xs font-semibold uppercase tracking-[0.25em] xf-text-faint"},Hy={class:"mt-4 font-serif text-4xl font-bold tracking-tight xf-text sm:text-5xl"},zy={class:"mx-auto mt-4 max-w-xl text-base leading-relaxed xf-text-muted sm:text-lg"},qy={class:"mt-12 grid gap-6 sm:grid-cols-3"},Wy={class:"text-3xl leading-none"},Gy={class:"mt-3 text-lg font-bold xf-text"},Ky={class:"mt-2 text-sm leading-relaxed xf-text-muted"},Yy={class:"mx-auto mt-14 max-w-xl xf-rounded border xf-border-accent p-8 text-center"},Jy=["disabled"],Qy=["disabled"],Zy={key:0,class:"mt-3 text-sm font-medium text-red-500"},Xy=Ae({__name:"ComingSoon",props:{kind:{}},setup(e){const t=e,n={games:{kicker:"Games · Coming soon",title:"Play is on the way",blurb:"A new home for daily brain teasers. Weâre building a games corner â be the first to know the moment it goes live.",cta:"Notify me about Games",features:[{icon:"ð§©",title:"Crossword",desc:"Fresh daily crosswords to flex your wordpower, from quick breaks to cryptic challenges."},{icon:"ð¢",title:"Sudoku",desc:"The classic number puzzle in every flavour â gentle warm-ups through to fiendish grids."},{icon:"â¨",title:"And more",desc:"New puzzles and word games are in the works. Tell us where to send them."}]},astrology:{kicker:"Astrology · Coming soon",title:"The stars are aligning",blurb:"Your daily dose of cosmic guidance is on its way. Sign up to get your readings as soon as we launch.",cta:"Notify me about Astrology",features:[{icon:"â",title:"Zodiac",desc:"Your sign, decoded â traits, strengths and the people you click with."},{icon:"ð",title:"Daily horoscopes",desc:"Fresh readings every morning for love, work and everything between."},{icon:"ð®",title:"And more",desc:"Compatibility, birth charts and deeper dives â coming soon."}]}},s=R(()=>n[t.kind]),o=L(""),r=L("idle"),i=L(""),l=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;async function a(){if(r.value==="submitting")return;const f=o.value.trim();if(!l.test(f)){r.value="error",i.value="Please enter a valid email address.";return}r.value="submitting",i.value="";try{await jr(f,null,t.kind),r.value="done"}catch(c){r.value="error",i.value=c instanceof Error?c.message:"Something went wrong. Please try again."}}return(f,c)=>(d(),p("section",By,[u("div",Uy,[u("p",Vy,k(s.value.kicker),1),u("h1",Hy,k(s.value.title),
311),u("p",zy,k(s.value.blurb),1)]),u("div",qy,[(d(!0),p(B,null,ke(s.value.features,m=>(d(),p("div",{key:m.title,class:"xf-rounded border xf-border p-6 text-center"},[u("div",Wy,k(m.icon),1),u("h2",Gy,k(m.title),1),u("p",Ky,k(m.desc),1)]))),128))]),u("div",Yy,[r.value==="done"?(d(),p(B,{key:0},[c[1]||(c[1]=u("h2",{class:"text-2xl font-extrabold tracking-tight xf-text"},"Youâre on the list!",-1)),c[2]||(c[2]=u("p",{class:"mx-auto mt-3 max-w-md text-base leading-relaxed xf-text-muted"}," Thanks â weâll email you the moment this launches. ",-1))],64)):(d(),p(B,{key:1},[c[3]||(c[3]=u("h2",{class:"text-2xl font-extrabold tracking-tight xf-text"},"Be first in line",-1)),c[4]||(c[4]=u("p",{class:"mx-auto mt-2 max-w-md text-sm leading-relaxed xf-text-muted"}," Drop your email and weâll let you know as soon as itâs ready. Free, no spam. ",-1)),u("form",{class:"mx-auto mt-6 flex max-w-md flex-col gap-3 sm:flex-row",onSubmit:St(a,["prevent"]),novalidate:""},[It(u("input",{"onUpdate:modelValue":c[0]||(c[0]=m=>o.value=m),type:"email",inputmode:"email",autocomplete:"email",disabled:r.value==="submitting",placeholder:"Enter your email","aria-label":"Enter your email",class:"w-full rounded-xl border xf-border bg-[var(--xf-bg)] px-4 py-3 text-base xf-text placeholder:xf-text-faint outline-none transition focus:xf-border-accent disabled:opacity-60"},null,8,Jy),[[Dt,o.value]]),u("button",{type:"submit",disabled:r.value==="submitting",class:"shrink-0 rounded-xl border xf-border-accent px-6 py-3 text-sm font-bold uppercase tracking-[0.12em] xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)] disabled:cursor-not-allowed disabled:opacity-60"},k(r.value==="submitting"?"Signing upâ¦":s.value.cta),9,Qy)],32),r.value==="error"?(d(),p("p",Zy,k(i.value),1)):A("",!0)],64))])]))}}),eb={class:"mx-auto max-w-6xl px-6 py-10"},tb={key:0,class:"mt-6"},nb={key:1,class:"mt-8 xf-text-muted"},sb={key:2,class:"mt-8 text-red-400"},ob={key:3,class:"mt-8 xf-text-muted"},rb={key:0,class:"col-span-full"},ib={key:1,class:"col-span-full"},lb=Ae({__name:"Astrology",setup(e){const t=Xe(),n=Ut(),{device:s}=on(),o=L([]),r=L(!0),i=L(null);async function l(){r.value=!0,i.value=null;const b=await Kn.d1("list",{status:0,type:4,pageSize:60});r.value=!1,b.ok?o.value=b.data:i.value=b.error}He(async()=>{n.load(),await t.load(),l()});const a=R(()=>{var b,x;return As((x=(b=t.settings)==null?void 0:b.theme)==null?void 0:x.preset)}),f=R(()=>a.value.card==="boxed"),c=R(()=>a.value.feedCardAspect),m=R(()=>Ts(a.value)),v=R(()=>n.organicLayout("category")),h=R(()=>{var b;return Be((b=v.value)==null?void 0:b.afterHero,s.value)}),I=R(()=>{var b;return Be((b=v.value)==null?void 0:b.betweenSections,s.value)}),$=R(()=>{var b;return s.value==="mobile"&&Be((b=v.value)==null?void 0:b.inFeedMobile,s.value)});return hn(()=>!r.value&&!!v.value),(b,x)=>(d(),p(B,null,[v.value?(d(),pe(An,{key:0,layout:v.value,device:H(s)},null,8,["layout","device"])):A("",!0),u("section",eb,[x[0]||(x[0]=u("p",{class:"text-xs uppercase tracking-[0.2em] xf-accent font-semibold"},"Section",-1)),x[1]||(x[1]=u("h1",{class:"mt-2 xf-heading text-4xl xf-text"},"Horoscopes & Astrology",-1)),h.value&&v.value?(d(),p("div",tb,[G(Re,{slot:v.value.afterHero.slot,placement:"afterHero",device:H(s)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),r.value?(d(),p("div",nb,"Loadingâ¦")):i.value?(d(),p("div",sb,k(i.value),1)):o.value.length?(d(),p("div",{key:4,class:Ie(["mt-10",m.value])},[(d(!0),p(B,null,ke(o.value,(g,S)=>(d(),p(B,{key:g.id},[G(fn,{post:g,aspect:c.value,boxed:f.value,heading:"text-lg","show-summary":!0,"show-category":!1},null,8,["post","aspect","boxed"]),I.value&&v.value&&S===5?(d(),p("div",rb,[G(Re,{slot:v.value.betweenSections.slot,placement:"betweenSections",device:H(s)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),$.value&&v.value&&(S+1)%6===0?(d(),p("div",ib,[G(Re,{slot:v.value.inFeedMobile.slot,placement:"inFeed",device:"mobile"},null,8,["slot"])])):A("",!0)],64))),128))],2)):(d(),p("div",ob,"Nothing here yet."))])],64))}}),ab={key:0,class:"mt-8 xf-text-muted"},ub={key:1,class:"mt-8 text-red-400"},cb={class:"mt-2 xf-heading xf-horo-sign xf-text"},db={key:0,class:"mt-2 xf-text-muted"},fb={class:"mt-4 xf-horo-title xf-text"},pb={key:1,class:"mt-8"},mb={class:"mt-10 space-y-10"},hb={class:"xf-heading xf-horo-h2 xf-text"},vb={key:0,class:"my-6"},xb={class:"mt-4 xf-text xf-horo-p"},gb={key:0,class:"my-6"},yb={key:0},bb={key:3,class:"mt-8"},wb={key:0,class:"mt-4 xf-text-muted"},_b={key:1,class:"mt-4 xf-text-muted"},kb={key:2,class:"mt-4 xf-text-muted"},Sb=Ae({__name:"Horoscope",setup(e){const t=sn(),n=Xe(),s=Ut(),{device:o}=on(),r=L(null),i=L(!0),l=L(null),a=R(()=>String(t.query.zodiac??"").trim().toLowerCase()),f=R(()=>
31String(t.query.preset??"today").trim().toLowerCase()||"today"),c=R(()=>{var W;const O=((W=r.value)==null?void 0:W.sign)||a.value;return O?O.charAt(0).toUpperCase()+O.slice(1):""}),m=R(()=>{var D;const O=(D=n.settings)==null?void 0:D.horoscope,W=o.value==="mobile"?O==null?void 0:O.fontScaleMobile:O==null?void 0:O.fontScaleDesktop,M=Number(W);return!Number.isFinite(M)||M<=0?1:Math.min(2,Math.max(.8,M))}),v=R(()=>{var M;const O=(M=r.value)==null?void 0:M.date;if(!O)return"";const W=new Date(`${O}T00:00:00`);return Number.isNaN(W.getTime())?O:W.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})}),h=R(()=>s.organicLayout("horoscope")),I=R(()=>{var O;return((O=r.value)==null?void 0:O.reason)==="ok"&&!!r.value.reading}),$=R(()=>{var O;return Be((O=h.value)==null?void 0:O.afterHero,o.value)}),b=R(()=>{var O;return Be((O=h.value)==null?void 0:O.betweenSections,o.value)}),x=R(()=>{var O;return Be((O=h.value)==null?void 0:O.afterHeading,o.value)}),g=R(()=>{var O;return Be((O=h.value)==null?void 0:O.afterParagraph,o.value)});hn(()=>!i.value&&!!h.value&&I.value);async function S(){if(i.value=!0,l.value=null,r.value=null,!a.value){i.value=!1,r.value={sign:"",preset:f.value,reason:"unknown_sign",date:null,reading:null};return}try{r.value=await yp(a.value,f.value)}catch(O){l.value=O instanceof Error?O.message:"Could not load this horoscope."}finally{i.value=!1}}function y(){if(typeof document>"u")return;let O=document.querySelector('meta[name="robots"]');O||(O=document.createElement("meta"),O.setAttribute("name","robots"),document.head.appendChild(O)),O.setAttribute("content","noindex,nofollow")}return He(async()=>{y(),s.load(),await n.load(),S()}),Ce(()=>[a.value,f.value],S),(O,W)=>(d(),p(B,null,[h.value&&I.value?(d(),pe(An,{key:0,layout:h.value,device:H(o)},null,8,["layout","device"])):A("",!0),u("section",{class:"xf-horo mx-auto max-w-3xl px-6 py-12",style:lt({"--xf-horo-scale":String(m.value)})},[W[2]||(W[2]=u("p",{class:"text-xs uppercase tracking-[0.2em] xf-accent font-semibold"},"Daily Horoscope",-1)),i.value?(d(),p("div",ab,"Loadingâ¦")):l.value?(d(),p("div",ub,k(l.value),1)):r.value&&r.value.reason==="ok"&&r.value.reading?(d(),p(B,{key:2},[u("h1",cb,k(c.value),1),v.value?(d(),p("p",db,k(v.value),1)):A("",!0),u("p",fb,k(r.value.reading.title),1),$.value&&h.value?(d(),p("div",pb,[G(Re,{slot:h.value.afterHero.slot,placement:"afterHero",device:H(o)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),u("div",mb,[(d(!0),p(B,null,ke(r.value.reading.sections,(M,D)=>(d(),p(B,{key:D},[u("article",null,[u("h2",hb,k(M.heading),1),x.value&&h.value?(d(),p("div",vb,[G(Re,{slot:h.value.afterHeading.slot,placement:"headingAfter",device:H(o)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0),(d(!0),p(B,null,ke(M.paragraphs,(Q,F)=>(d(),p(B,{key:F},[u("p",xb,k(Q),1),g.value&&h.value?(d(),p("div",gb,[G(Re,{slot:h.value.afterParagraph.slot,placement:"paragraphAfter",device:H(o)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0)],64))),128))]),b.value&&h.value&&D===1?(d(),p("div",yb,[G(Re,{slot:h.value.betweenSections.slot,placement:"betweenSections",device:H(o)==="mobile"?"mobile":"desktop"},null,8,["slot","device"])])):A("",!0)],64))),128))])],64)):(d(),p("div",bb,[W[1]||(W[1]=u("h1",{class:"xf-heading text-3xl xf-text"},"Horoscope unavailable",-1)),r.value&&r.value.reason==="unknown_sign"?(d(),p("p",wb," We couldn't find a horoscope for that zodiac sign. Please check your link and try again. ")):r.value&&r.value.reason==="unknown_preset"?(d(),p("p",_b," That horoscope edition isn't available. Please check your link and try again. ")):(d(),p("p",kb,[c.value?(d(),p(B,{key:0},[K(k(c.value)+"'s",1)],64)):(d(),p(B,{key:1},[K("This")],64)),W[0]||(W[0]=K(" reading hasn't been published yet today. Please check back a little later. ",-1))]))]))],4)],64))}}),$b=Tt(Sb,[["__scopeId","data-v-7e4a401d"]]),Cb={class:"mx-auto max-w-md px-6 py-14"},Eb={key:0,class:"text-2xl font-extrabold tracking-tight xf-text"},Ab={key:1,class:"mt-6 xf-text-muted"},Ib={key:2},Rb={key:0,class:"text-sm text-red-500"},Tb=["disabled"],Pb={key:3,class:"mt-6 space-y-3"},Ob={class:"xf-text"},Mb={class:"text-sm xf-text-faint"},Nb={key:0,class:"text-sm text-red-500"},Lb=["disabled"],jb={class:"flex flex-wrap gap-2"},Fb=["onClick"],Db={key:0,class:"text-sm text-red-500"},Bb={class:"flex items-center gap-4"},Ub=["disabled"],Vb=["disabled"],Hb={key:6,class:"mt-6 space-y-4"},zb={class:"xf-text"},qb={class:"flex items-center gap-4"},Wb={key:7,class:"mt-6 space-y-4"},Gb={class:"text-red-500"}
31,Kb=Ae({__name:"SignIn",setup(e){const t=sn(),n=Es(),s=Bt(),o=Xe(),r=L("loading"),i=L(""),l=L(""),a=L(null),f=L(!1),c=R(()=>{var S;return((S=o.nav)==null?void 0:S.categories)??[]}),m=L(new Set);function v(S){const y=new Set(m.value);y.has(S)?y.delete(S):y.add(S),m.value=y}const h=L("");function I(){const S=typeof t.query.next=="string"?t.query.next:"";return S.startsWith("/")&&!S.startsWith("//")&&S.length<=512?S:""}function $(){if(h.value){n.replace(h.value);return}r.value="done"}He(async()=>{var y;if(await o.load(),!s.enabled){n.replace("/");return}await s.init(),h.value=I();const S=typeof t.query.token=="string"?t.query.token:"";if(S){r.value="verifying";const O=await s.verify(S);if(n.replace({path:"/signin",query:h.value?{next:h.value}:{}}),!O.ok){if(s.signedIn){$();return}a.value="That sign-in link has expired or was already used â enter your email and we'll send a fresh one.",r.value="form";return}if(O.newUser&&O.regEventId)try{const W=window.fbq;typeof W=="function"&&W("track","CompleteRegistration",{},{eventID:O.regEventId})}catch{}if((y=s.user)!=null&&y.name){$();return}r.value="name";return}r.value=s.signedIn?"done":"form"}),Ce(()=>s.signedIn,S=>{!S&&(r.value==="done"||r.value==="name"||r.value==="interests")&&(r.value="form")});async function b(){if(f.value)return;a.value=null,f.value=!0;const S=await s.requestLink(i.value.trim(),h.value||void 0);if(f.value=!1,!S.ok){a.value=S.error??null;return}r.value="sent"}async function x(){if(f.value)return;a.value=null,f.value=!0;const S=await s.setName(l.value.trim());if(f.value=!1,!S.ok){a.value=S.error??null;return}if(c.value.length){r.value="interests";return}$()}async function g(){if(f.value)return;a.value=null,f.value=!0;const S=await s.setInterests([...m.value]);if(f.value=!1,!S.ok){a.value=S.error??null;return}$()}return(S,y)=>{var W,M;const O=nn("RouterLink");return d(),p("section",Cb,[r.value!=="form"?(d(),p("h1",Eb,"Sign in")):A("",!0),r.value==="loading"||r.value==="verifying"?(d(),p("p",Ab,k(r.value==="verifying"?"Signing you inâ¦":"Loadingâ¦"),1)):r.value==="form"?(d(),p("div",Ib,[y[8]||(y[8]=zn('<p class="text-[11px] uppercase tracking-[0.22em] font-semibold text-[var(--xf-accent,#0ea5e9)]">Free membership</p><h1 class="mt-2 font-serif text-3xl font-bold leading-tight tracking-tight xf-text"> Unlock every episode.<br>Join in seconds. </h1><p class="mt-3 text-sm xf-text-muted"> Members get the full experience â free, no password, no credit card. </p><ul class="mt-6 space-y-3"><li class="flex items-start gap-3"><span class="mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--xf-accent)]/10 text-base">ð¬</span><div><p class="text-sm font-semibold xf-text">Exclusive video series</p><p class="text-sm xf-text-muted">Binge every episode of our members-only series â new series announced the moment they drop.</p></div></li><li class="flex items-start gap-3"><span class="mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--xf-accent)]/10 text-base">ð</span><div><p class="text-sm font-semibold xf-text">Members-only stories</p><p class="text-sm xf-text-muted">Read exclusive stories you won't find anywhere else on the site.</p></div></li><li class="flex items-start gap-3"><span class="mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--xf-accent)]/10 text-base">ð¬</span><div><p class="text-sm font-semibold xf-text">Join the conversation</p><p class="text-sm xf-text-muted">Comment, vote, and discuss every story and episode with other members.</p></div></li><li class="flex items-start gap-3"><span class="mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--xf-accent)]/10 text-base">â¨</span><div><p class="text-sm font-semibold xf-text">A member area made for you</p><p class="text-sm xf-text-muted">Pick your interests and get the content you care about, front and centre.</p></div></li></ul>',4)),u("form",{class:"mt-7 space-y-3 rounded-xl border xf-border p-4",onSubmit:St(b,["prevent"])},[y[6]||(y[6]=u("p",{class:"text-sm font-semibold xf-text"},"Enter your email to get started",-1)),It(u("input",{"onUpdate:modelValue":y[0]||(y[0]=D=>i.value=D),type:"email",required:"",placeholder:"[email protected]",autocomplete:"email",class:"w-full rounded border xf-border px-3 py-2.5 text-sm xf-text bg-transparent focus:outline-none focus:border-[var(--xf-accent)]"},null,512),[[Dt,i.value]]),a.value?(d(),p("p",Rb,k(a.value),1)):A("",!0),u("button",{type:"submit",disabled:f.value,class:"w-full xf-rounded bg-[var(--xf-accent)] px-5 py-3 text-xs uppercase tracking-[0.18em] font-bold text-[var(--xf-bg)] transition hover:opacity-90 disabled:opacity-50"},k(f.value?"Sendingâ¦":"Email me a sign-in link â"),9,Tb),y[7]||(y[7]=u("p",{class:"text-center text-xs xf-text-faint"},"No password needed â we'll email you a one-tap sign-in link.",-1))],32)])):r.value==="sent"?(d(),p("div",Pb,[u("p",Ob,[y[9]||(y[9]=K("Check your inbox â we've emailed a sign-in link to ",-1)),u("strong",null,k(i.value),1),y[10]||(y[10]=K(".",-1))]),u("p",Mb,[y[11]||(y[11]=K("The link works once and expires in 30 minutes. Didn't get it? Check spam, or ",-1)),u("button",{type:"button",class:"underline",onClick:y[1]||(y[1]=D=>r.value="form")}
31,"try again"),y[12]||(y[12]=K(". ",-1))])])):r.value==="name"?(d(),p("form",{key:4,class:"mt-6 space-y-4",onSubmit:St(x,["prevent"])},[y[13]||(y[13]=u("p",{class:"xf-text"},"You're signed in! Pick a display name for your comments.",-1)),It(u("input",{"onUpdate:modelValue":y[2]||(y[2]=D=>l.value=D),type:"text",required:"",maxlength:"60",placeholder:"Display name",class:"w-full rounded border xf-border px-3 py-2 text-sm xf-text bg-transparent focus:outline-none"},null,512),[[Dt,l.value]]),a.value?(d(),p("p",Nb,k(a.value),1)):A("",!0),u("button",{type:"submit",disabled:f.value,class:"xf-rounded border xf-border-accent px-5 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)] disabled:opacity-50"},k(f.value?"Savingâ¦":"Save and continue"),9,Lb)],32)):r.value==="interests"?(d(),p("form",{key:5,class:"mt-6 space-y-4",onSubmit:St(g,["prevent"])},[y[14]||(y[14]=u("p",{class:"xf-text"},"What are you into? We'll put stories on these topics first in your member area.",-1)),u("div",jb,[(d(!0),p(B,null,ke(c.value,D=>(d(),p("button",{key:D,type:"button",onClick:Q=>v(D),class:Ie(["rounded-full border px-4 py-1.5 text-sm transition",m.value.has(D)?"xf-border-accent bg-[var(--xf-accent)] text-[var(--xf-bg)] font-semibold":"xf-border xf-text-muted hover:xf-text"])},k(D),11,Fb))),128))]),a.value?(d(),p("p",Db,k(a.value),1)):A("",!0),u("div",Bb,[u("button",{type:"submit",disabled:f.value,class:"xf-rounded border xf-border-accent px-5 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)] disabled:opacity-50"},k(f.value?"Savingâ¦":m.value.size?"Save and continue":"Continue"),9,Ub),u("button",{type:"button",class:"text-sm underline xf-text-muted",disabled:f.value,onClick:y[3]||(y[3]=D=>$())},"Skip for now",8,Vb)])],32)):r.value==="done"?(d(),p("div",Hb,[u("p",zb,[y[15]||(y[15]=K(" You're signed in as ",-1)),u("strong",null,k(((W=H(s).user)==null?void 0:W.name)||((M=H(s).user)==null?void 0:M.email)),1),y[16]||(y[16]=K(". ",-1))]),u("div",qb,[G(O,{to:"/",class:"xf-rounded border xf-border-accent px-5 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)]"},{default:ie(()=>[...y[17]||(y[17]=[K(" Back to the site ",-1)])]),_:1}),u("button",{type:"button",class:"text-sm underline xf-text-muted",onClick:y[4]||(y[4]=D=>H(s).logout())},"Sign out")])])):r.value==="error"?(d(),p("div",Wb,[u("p",Gb,k(a.value??"This sign-in link is invalid or has expired."),1),u("button",{type:"button",class:"xf-rounded border xf-border-accent px-5 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text",onClick:y[5]||(y[5]=D=>r.value="form")},"Request a new link")])):A("",!0)])}}}),Yb={class:"mx-auto max-w-4xl px-6 py-12"},Jb={key:0,class:"mt-6 xf-text-muted"},Qb={key:1,class:"mt-8 rounded border xf-border p-6 text-center"},Zb={key:0,class:"mt-6 text-red-500"},Xb={key:1,class:"mt-4 xf-text-muted"},e0={key:2,class:"mt-4 grid gap-6 sm:grid-cols-2"},t0=["src","alt"],n0={class:"p-4"},s0={key:0,class:"text-[11px] uppercase tracking-[0.18em] xf-text-faint"},o0={key:0,class:"ml-2 normal-case tracking-normal font-semibold text-[var(--xf-accent,#0ea5e9)]"},r0={class:"mt-1 font-serif text-lg font-bold leading-snug xf-text"},i0={key:1,class:"mt-2 text-sm leading-relaxed xf-text-muted"},l0={class:"mt-2 text-xs xf-text-faint"},a0={class:"mt-4 grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4"},u0={class:"rounded border xf-border overflow-hidden"},c0={class:"relative aspect-[9/16] bg-black"},d0=["src","alt"],f0={key:1,class:"flex h-full items-center justify-center text-4xl text-white/40"},p0={class:"absolute bottom-2 right-2 rounded bg-black/70 px-2 py-0.5 text-[11px] font-semibold text-white"},m0={class:"p-3"},h0={class:"font-serif text-sm font-bold leading-snug xf-text"},v0={key:0,class:"mt-1 text-xs leading-relaxed xf-text-muted line-clamp-2"},x0={key:0,class:"col-span-full"},g0={key:4,class:"mt-4 xf-text-muted"},y0={key:5,class:"mt-4 space-y-4"},b0={class:"text-sm leading-relaxed xf-text"},w0={class:"mt-2 text-xs xf-text-faint"},_0={key:0},k0={class:"mt-4 flex flex-wrap gap-2"},S0=["disabled","onClick"],$0={class:"mt-4 flex items-center gap-3 rounded border xf-border p-4 cursor-pointer select-none"},C0=["checked","disabled"],E0=Ae({__name:"Members",setup(e){const t=Es(),n=Bt(),s=Xe(),o=Ut(),{device:r}=on(),i=L([]),l=L([]),a=L([]),f=L(!0),c=L(null),m=R(()=>o.organicLayout("memberVideos")),v=R(()=>{var F;return r.value==="mobile"&&Be((F=m.value)==null?void 0:F.inFeedMobile,r.value)});hn(()=>!f.value&&!!m.value&&a.value.length>0);const h=L(!0),I=L(!1),$=L([]),b=R(()=>{var F;return((F=s.nav)==null?void 0:F.categories)??[]}),x=L(!1),g=R(()=>
31{if(!$.value.length)return i.value;const F=new Set($.value.map(U=>U.toLowerCase())),Z=U=>U.category&&F.has(U.category.toLowerCase())?0:1;return[...i.value].sort((U,Y)=>Z(U)-Z(Y))});function S(F){return!!F.category&&$.value.some(Z=>Z.toLowerCase()===F.category.toLowerCase())}async function y(F){if(x.value)return;const Z=$.value;$.value=Z.includes(F)?Z.filter(Y=>Y!==F):[...Z,F],x.value=!0,(await n.setInterests($.value)).ok||($.value=Z),x.value=!1}async function O(){if(I.value)return;const F=!h.value;h.value=F,I.value=!0,(await n.setReplyEmails(F)).ok||(h.value=!F),I.value=!1}async function W(F){const Z=await fetch("/xf-model/engage/call",{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({op:F})}),U=await Z.json().catch(()=>null);if(!(U!=null&&U.ok)||U.data===void 0)throw new Error((U==null?void 0:U.error)??`request failed (${Z.status})`);return U.data}async function M(){f.value=!0,c.value=null;try{const[F,Z,U,Y]=await Promise.all([W("member_stories"),W("my_comments"),W("member_videos").catch(()=>({series:[]})),n.getPrefs()]);i.value=F.items,l.value=Z.items,a.value=U.series,h.value=Y.replyEmails,$.value=Y.interests}catch(F){c.value=F instanceof Error?F.message:String(F)}f.value=!1}He(async()=>{var F;if(o.load(),await s.load(),!n.enabled){t.replace("/");return}await n.init(),Vn("Members",(F=s.settings)==null?void 0:F.name),n.signedIn?await M():f.value=!1}),Ce(()=>n.signedIn,F=>{F?M():(i.value=[],l.value=[],a.value=[])});function D(F){return new Date(F).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function Q(F){const Z=F.trim();return Z.length>160?`${Z.slice(0,157)}â¦`:Z}return(F,Z)=>{const U=nn("RouterLink");return d(),p("section",Yb,[Z[12]||(Z[12]=u("h1",{class:"font-serif text-3xl font-bold tracking-tight xf-text"},"Member area",-1)),f.value?(d(),p("p",Jb,"Loadingâ¦")):H(n).signedIn?(d(),p(B,{key:2},[c.value?(d(),p("p",Zb,k(c.value),1)):A("",!0),Z[9]||(Z[9]=u("h2",{class:"mt-10 text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},"Members-only stories",-1)),!c.value&&!g.value.length?(d(),p("p",Xb,"No members-only stories yet â check back soon.")):(d(),p("ul",e0,[(d(!0),p(B,null,ke(g.value,Y=>(d(),p("li",{key:Y.id,class:"rounded border xf-border overflow-hidden"},[G(U,{to:`/${Y.slug}`,class:"block hover:opacity-90"},{default:ie(()=>[Y.image?(d(),p("img",{key:0,src:Y.image,alt:Y.title,class:"aspect-[16/9] w-full object-cover"},null,8,t0)):A("",!0),u("div",n0,[Y.category?(d(),p("p",s0,[K(k(Y.category),1),S(Y)?(d(),p("span",o0,"â
For you")):A("",!0)])):A("",!0),u("h3",r0,k(Y.title),1),Y.summary?(d(),p("p",i0,k(Q(Y.summary)),1)):A("",!0),u("p",l0,k(D(Y.created)),1)])]),_:2},1032,["to"])]))),128))])),a.value.length?(d(),p(B,{key:3},[Z[2]||(Z[2]=u("h2",{class:"mt-12 text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},"Video series",-1)),Z[3]||(Z[3]=u("p",{class:"mt-2 text-sm xf-text-muted"},"Short vertical episodes, made for members. Tap a series to start watching.",-1)),u("ul",a0,[(d(!0),p(B,null,ke(a.value,(Y,ge)=>(d(),p(B,{key:Y.id},[u("li",u0,[G(U,{to:`/members/videos/${Y.id}`,class:"block hover:opacity-90"},{default:ie(()=>[u("div",c0,[Y.poster?(d(),p("img",{key:0,src:Y.poster,alt:Y.title,class:"h-full w-full object-cover",loading:"lazy"},null,8,d0)):(d(),p("div",f0,"â¶")),u("span",p0,k(Y.episodes.length)+" ep"+k(Y.episodes.length===1?"":"s"),1)]),u("div",m0,[u("h3",h0,k(Y.title),1),Y.description?(d(),p("p",v0,k(Y.description),1)):A("",!0)])]),_:2},1032,["to"])]),v.value&&m.value&&(ge+1)%4===0?(d(),p("li",x0,[G(Re,{slot:m.value.inFeedMobile.slot,placement:"inFeed",device:"mobile"},null,8,["slot"])])):A("",!0)],64))),128))])],64)):A("",!0),Z[10]||(Z[10]=u("h2",{class:"mt-12 text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},"My discussions",-1)),!c.value&&!l.value.length?(d(),p("p",g0," You haven't joined any discussions yet. Comments you post will show up here. ")):(d(),p("ul",y0,[(d(!0),p(B,null,ke(l.value,Y=>(d(),p("li",{key:Y.id,class:"rounded border xf-border p-4"},[u("p",b0,k(Q(Y.body)),1),u("p",w0,[K(k(D(Y.createdAt))+" · ",1),Y.video?(d(),p(B,{key:0},[Z[4]||(Z[4]=K(" on ",-1)),G(U,{to:`/members/videos/${Y.video.seriesId}?ep=${Y.video.episode}#comments`,class:"underline xf-text-muted hover:xf-text"},{default:ie(()=>[K(k(Y.title||"a video episode"),1)]),_:2},1032,["to"])],64)):Y.slug?(d(),p(B,{key:1},[Z[5]||(Z[5]=K(" on ",-1)),G(U,{to:`/${Y.slug}#comments`,class:"underline xf-text-muted hover:xf-text"},{default:ie(()=>[K(k(Y.title||Y.slug),1)]),_:2},1032,["to"]),Y.isDiscussion?(d(),p("span",_0," (discussion question)")):A("",!0)],64)):(d(),p(B,{key:2},[K("on a story that's no longer available")],64))])]))),128))])),b.value.length?(d(),p(B,{key:6},[Z[6]||(Z[6]=u("h2",{class:"mt-12 text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},"Your interests",-1)),Z[7]||(Z[7]=u("p",{class:"mt-2 text-sm xf-text-muted"},"Stories on these topics get top billing above. Tap to toggle.",-1)),u("div",k0,[(d(!0),p(B,null,ke(b.value,Y=>(d(),p("button",{key:Y,type:"button",disabled:x.value,onClick:ge=>y(Y),class:Ie(["rounded-full border px-4 py-1.5 text-sm transition disabled:opacity-60",$.value.includes(Y)?"xf-border-accent bg-[var(--xf-accent)] text-[var(--xf-bg)] font-semibold":"xf-border xf-text-muted hover:xf-text"])},k(Y),11,S0))),128))])],64)):A("",!0),Z[11]||(Z[11]=u("h2",{class:"mt-12 text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},"Notifications",-1)),u("label",$0,[u("input",{type:"checkbox",checked:h.value,disabled:I.value,onChange:O,class:"h-4 w-4 accent-[var(--xf-accent,#0ea5e9)]"},null,40,C0),Z[8]||(Z[8]=u("span",{class:"text-sm xf-text"},"Email me when someone replies to my comments",-1))])],64)):(d(),p("div",Qb,[Z[1]||(Z[1]=u("p",{class:"xf-text"},"This area is for members. Sign in with just your email â it's free.",-1)),G(U,{to:"/signin",class:"mt-5 inline-block xf-rounded border xf-border-accent px-6 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)]"},{default:ie(()=>[...Z[0]||(Z[0]=[K(" Sign in ",-1)])]),_:1})]))])}}}),A0="/126244376/reward_books_series",I0=12e3,R0=3e3;function T0(){return new Promise(e=>{const t=Date.now(),n=()=>{var o;const s=window.googletag;if(s&&Array.isArray(s.cmd)||s&&typeof((o=s.cmd)==null?void 0:o.push)=="function")return e(s);if(Date.now()-t>=R0)return e(null);setTimeout(n,200)};n()})}async function P0(){try{const e=await T0();return e?await new Promise(t=>{let n=!1,s=()=>{};const o=i=>
31{n||(n=!0,s(),t(i))},r=setTimeout(()=>o("unavailable"),I0);e.cmd.push(()=>{var i,l;if(!n)try{const a=(l=(i=e.enums)==null?void 0:i.OutOfPageFormat)==null?void 0:l.REWARDED,f=a!=null?e.defineOutOfPageSlot(A0,a):null;if(!f){clearTimeout(r),o("unavailable");return}const c=e.pubads();f.addService(c);let m=!1;const v=b=>{var x;b.slot===f&&(clearTimeout(r),(x=b.makeRewardedVisible)==null||x.call(b))},h=b=>{b.slot===f&&(m=!0)},I=b=>{b.slot===f&&o(m?"granted":"skipped")},$=b=>{b.slot===f&&b.isEmpty&&(clearTimeout(r),o("unavailable"))};c.addEventListener("rewardedSlotReady",v),c.addEventListener("rewardedSlotGranted",h),c.addEventListener("rewardedSlotClosed",I),c.addEventListener("slotRenderEnded",$),s=()=>{var b,x,g,S;clearTimeout(r);try{(b=c.removeEventListener)==null||b.call(c,"rewardedSlotReady",v),(x=c.removeEventListener)==null||x.call(c,"rewardedSlotGranted",h),(g=c.removeEventListener)==null||g.call(c,"rewardedSlotClosed",I),(S=c.removeEventListener)==null||S.call(c,"slotRenderEnded",$),e.destroySlots([f])}catch{}},e.enableServices(),e.display(f)}catch{clearTimeout(r),o("unavailable")}})}):"unavailable"}catch{return"unavailable"}}const O0={class:"mx-auto max-w-5xl px-0 sm:px-6 py-0 sm:py-10"},M0={key:0,class:"px-6 py-12 xf-text-muted"},N0={key:1,class:"px-0 sm:px-6"},L0={class:"px-5 pt-5 sm:px-0 sm:pt-0"},j0={class:"font-serif text-2xl sm:text-3xl font-bold tracking-tight xf-text"},F0={key:0,class:"mt-1 max-w-2xl text-sm sm:text-base xf-text-muted"},D0={class:"mt-1 text-xs xf-text-faint"},B0={class:"mt-4 sm:mt-6 flex justify-center"},U0={class:"w-full max-w-[420px]"},V0={class:"relative aspect-[9/16] overflow-hidden sm:rounded-xl bg-black shadow-lg"},H0=["src","poster"],z0={key:0,class:"absolute inset-0 flex flex-col items-center justify-center gap-4 bg-black/85 px-6 text-center text-white"},q0={class:"text-sm text-white/80"},W0=["href"],G0={class:"mt-3 text-sm font-semibold xf-text"},K0={key:0,class:"mx-auto mt-6 max-w-[420px] px-5 sm:px-0 pb-10"},Y0={class:"mt-3 space-y-2"},J0={class:"text-sm font-semibold xf-text"},Q0={class:"min-w-0 truncate text-sm xf-text-muted"},Z0={class:"ml-auto text-xs xf-text-faint"},X0=["href"],ew={key:2,class:"mx-6 my-12 rounded border xf-border p-6 text-center"},tw={class:"font-serif text-2xl font-bold xf-text"},nw={key:0,class:"mt-2 text-sm xf-text-muted"},sw={class:"mt-3 xf-text"},ow={key:1,class:"xf-text"},rw=["href"],iw={key:2,class:"mt-4"},lw={key:3,class:"px-6 py-12 text-red-500"},aw={key:4,class:"px-6 py-12"},uw={key:0,class:"fixed inset-0 z-40 flex flex-col bg-black"},cw={class:"flex items-center gap-3 px-4 py-2 text-white"},dw={class:"min-w-0 truncate text-sm font-semibold"},fw={class:"ml-auto shrink-0 text-xs text-white/60"},pw={key:0,class:"w-full shrink-0 overflow-hidden py-1"},mw=["data-ep-index"],hw=["src","poster","muted","onEnded"],vw={class:"pointer-events-none absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 to-transparent p-5 pb-6 text-white"},xw={class:"text-[11px] uppercase tracking-[0.18em] text-white/70"},gw={class:"mt-1 font-semibold leading-snug"},yw={class:"mt-3 flex flex-wrap items-center gap-2"},bw={key:0,class:"mt-4 flex flex-col items-center gap-0.5 text-white/90"},ww={class:"text-[11px] uppercase tracking-[0.18em] font-semibold"},_w={key:0,class:"absolute inset-0 z-10 flex flex-col items-center justify-center gap-3 bg-black/90 px-6 text-center text-white backdrop-blur-sm"},kw={class:"text-[11px] uppercase tracking-[0.18em] text-white/60"},Sw={class:"text-2xl font-bold leading-snug"},$w=["disabled","onClick"],Cw={key:0,class:"text-xs text-amber-300"},Ew={key:0,class:"flex h-full snap-start snap-always items-center justify-center bg-black/95 px-4"},Aw={class:"mt-1 font-serif text-2xl font-bold leading-snug"},Iw={class:"mt-3 space-y-3"},Rw={class:"flex h-16 w-10 shrink-0 items-center justify-center overflow-hidden rounded bg-black/60"},Tw=["src","alt"],Pw={key:1,class:"text-white/60"},Ow={class:"min-w-0"},Mw={class:"truncate text-sm font-semibold"},Nw={class:"mt-0.5 text-xs text-white/60"},Lw={key:1,class:"w-full shrink-0 overflow-hidden py-1"},jw={id:"comments",class:"relative max-h-[75dvh] overflow-y-auto rounded-t-2xl bg-[var(--xf-bg,#fff)] px-5 pb-8 pt-3 shadow-2xl"},Fw={class:"sticky top-0 -mx-5 flex items-center justify-between bg-[var(--xf-bg,#fff)] px-5 pb-2"},Dw={class:"text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},Bw={key:1,class:"px-6"},Uw={class:"mt-2 font-serif text-3xl font-bold tracking-tight xf-text"},Vw={key:0,class:"mt-2 max-w-2xl xf-text-muted"},Hw={class:"mt-8 flex justify-center gap-10"},zw={class:"w-full max-w-[420px] shrink-0"},qw={class:"relative aspect-[9/16] overflow-hidden rounded-xl bg-black shadow-lg"},Ww=["src","poster","muted"],Gw={key:1,class:"absolute inset-0 z-10 flex flex-col items-center justify-center gap-4 bg-black/85 px-6 text-center text-white"},Kw={class:"text-[11px] uppercase tracking-[0.18em] text-white/60"},Yw={class:"text-lg font-semibold leading-snug"}
31,Jw=["disabled"],Qw={key:0,class:"text-xs text-amber-300"},Zw={class:"mt-3 text-sm font-semibold xf-text"},Xw={key:0,class:"mt-4"},e2={class:"w-full max-w-xs"},t2={class:"mt-3 space-y-2"},n2=["onClick"],s2={class:"flex h-16 w-9 shrink-0 items-center justify-center overflow-hidden rounded bg-black"},o2=["src","alt"],r2={key:1,class:"text-xs font-bold text-white/60"},i2={class:"min-w-0"},l2={class:"truncate text-sm font-semibold xf-text"},a2={class:"text-xs xf-text-faint"},u2={key:0},c2={key:1,class:"ml-1 font-semibold text-[var(--xf-accent,#0ea5e9)]"},d2={key:2,class:"mx-auto mt-12 max-w-4xl"},f2={class:"mt-4 grid grid-cols-2 gap-4 sm:grid-cols-3"},p2={class:"flex aspect-[9/12] items-center justify-center overflow-hidden bg-black"},m2=["src","alt"],h2={key:1,class:"text-2xl text-white/50"},v2={class:"p-3"},x2={class:"truncate text-sm font-semibold xf-text"},g2={class:"mt-0.5 text-xs xf-text-faint"},y2={key:3,id:"comments",class:"mx-auto mt-10 max-w-2xl pb-12"},b2={class:"text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},w2=Ae({__name:"MemberVideos",setup(e){const t=sn(),n=Es(),s=Bt(),o=Xe(),r=Ut(),{device:i}=on(),l=L(!0),a=L(null),f=L([]),c=R(()=>String(t.params.seriesId??"")),m=R(()=>f.value.find(E=>E.id===c.value)??null),v=R(()=>{var E;return((E=m.value)==null?void 0:E.episodes)??[]}),h=L(0),I=L(!0),$=L(null),b=L(!1);async function x(){var E,P;l.value=!0,a.value=null;try{const se=await(await fetch("/xf-model/engage/call",{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({op:"video_teaser",seriesId:c.value})})).json().catch(()=>null),ce=se!=null&&se.ok?((E=se.data)==null?void 0:E.series)??null:null;ce!=null&&ce.isPublic&&((P=ce.fullEpisodes)!=null&&P.length)?(f.value=[{id:ce.id,title:ce.title,description:ce.description,poster:ce.poster,linkedPostSlug:ce.linkedPostSlug??null,updatedAt:ce.updatedAt??0,episodes:ce.fullEpisodes}],$.value=null):(f.value=[],$.value=ce)}catch{f.value=[],$.value=null}l.value=!1}const g=R(()=>{var P;const E=(P=$.value)!=null&&P.freeFirst?2:y.value??1;return`/members/videos/${encodeURIComponent(c.value)}?ep=${E}`}),S=R(()=>`/signin?next=${encodeURIComponent(g.value)}`),y=R(()=>{const E=Number(t.query.ep);return Number.isFinite(E)&&E>=1?Math.floor(E):null});function O(){if(y.value==null||!v.value.length)return;const E=v.value.findIndex(P=>P.episode===y.value);if(!(E<0)){if(i.value!=="mobile"&&_e(E)){oe.value=E;return}h.value=E}}const W=R(()=>{var E;return((E=v.value[h.value])==null?void 0:E.episode)??null}),M=R(()=>W.value!=null?`video:${c.value}#ep${W.value}`:null),D=R(()=>r.organicLayout("memberVideos")),Q=R(()=>{var E;return Be((E=D.value)==null?void 0:E.afterHero,i.value)}),F=R(()=>{var E;return i.value==="mobile"&&Be((E=D.value)==null?void 0:E.betweenSections,i.value)}),Z=R(()=>{var E;return i.value==="mobile"&&Be((E=D.value)==null?void 0:E.adhesionTop,"mobile")}),U=R(()=>{var E;return i.value==="mobile"&&Be((E=D.value)==null?void 0:E.adhesionBottom,"mobile")}),Y=R(()=>f.value.filter(E=>E.id!==c.value&&E.episodes.length>0).sort((E,P)=>P.updatedAt-E.updatedAt).slice(0,6)),ge=L(!1);hn(()=>!l.value&&!!D.value&&v.value.length>0);async function Se(){l.value=!0,a.value=null;try{const E=await fetch("/xf-model/engage/call",{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({op:"member_videos"})}),P=await E.json().catch(()=>null);if(!(P!=null&&P.ok)||!P.data)throw new Error((P==null?void 0:P.error)??`request failed (${E.status})`);f.value=P.data.series}catch(E){a.value=E instanceof Error?E.message:String(E)}l.value=!1}He(async()=>{if(r.load(),await o.load(),!s.enabled){n.replace("/");return}await s.init(),s.signedIn?await Se():await x()}),Ce(()=>s.signedIn,E=>{E?($.value=null,b.value=!1,Se()):(f.value=[],x())}),Ce([m,$],([E,P])=>{var se;const J=(E==null?void 0:E.title)??(P==null?void 0:P.title);J&&Vn(J,(se=o.settings)==null?void 0:se.name)},{immediate:!0}),Ce(c,async()=>{var E;h.value=0,I.value=!0,b.value=!1,ge.value=!1,j.value=new Set(et),oe.value=null,re.value=null,s.signedIn||x(),await Ye(),(E=me.value)==null||E.scrollTo({top:0})}),Ce(v,async E=>{var P;E.length&&(O(),i.value==="mobile"&&y.value!=null&&h.value>0&&(await Ye(),(P=fe.value[h.value])==null||P.scrollIntoView()))},{immediate:!0});const ye=L({}),fe=L({}),ae=L(null),me=L(null),ue=L(null);function Ge(E,P){ye.value[E]=P??null}function Ke(E,P){fe.value[E]=P??null}function at(){I.value=!I.value}const pt=L(!1);function yt(){pt.value=!0}const et=[0,1],j=L(new Set(et)),oe=L(null),te=L(!1),re=L(null);function _e(E){return E>1&&!j.value.has(E)}async function w(E){var J;if(te.value)return;
31te.value=!0,re.value=null,(J=ae.value)==null||J.pause();for(const se of Object.values(ye.value))se==null||se.pause();const P=await P0();if(te.value=!1,P==="skipped"){re.value="Ad closed early â watch the full ad to unlock this episode.";return}if(j.value=new Set([...j.value,E]),re.value=null,i.value==="mobile"){const se=ye.value[E];se&&h.value===E&&se.play().catch(()=>{})}else oe.value===E&&(oe.value=null,_(E))}async function _(E){var J;if(E<0||E>=v.value.length)return;if(_e(E)){oe.value=E,re.value=null,(J=ae.value)==null||J.pause();return}oe.value=null,h.value=E,await Ye();const P=ae.value;P&&(P.currentTime=0,P.play().catch(()=>{}))}function T(){h.value<v.value.length-1&&_(h.value+1)}function z(E){var J;const P=fe.value[E+1];P?P.scrollIntoView({behavior:"smooth"}):(J=ue.value)==null||J.scrollIntoView({behavior:"smooth"})}let q=null;function V(){if(q==null||q.disconnect(),q=null,!(i.value!=="mobile"||typeof IntersectionObserver>"u")){q=new IntersectionObserver(E=>{for(const P of E){const J=Number(P.target.dataset.epIndex),se=ye.value[J];if(se)if(P.isIntersecting&&P.intersectionRatio>=.6){if(h.value=J,_e(J)){se.pause();continue}se.play().catch(()=>{})}else se.pause()}},{threshold:[0,.6]});for(const E of Object.values(fe.value))E&&q.observe(E)}}Ce([v,i,l],async()=>{await Ye(),V()}),Gn(()=>{q==null||q.disconnect(),q=null});function ne(E){if(!E||E<=0)return"";const P=Math.floor(E/60),J=E%60;return`${P}:${String(J).padStart(2,"0")}`}function ee(E){return E.title||`Episode ${E.episode}`}function X(E){var P;return E.poster??(E.episode===1?((P=m.value)==null?void 0:P.poster)??void 0:void 0)}return(E,P)=>{var se,ce,$e,Pe,Ee,Ue;const J=nn("RouterLink");return d(),p(B,null,[D.value&&!l.value&&v.value.length?(d(),pe(An,{key:0,layout:D.value,device:H(i)},null,8,["layout","device"])):A("",!0),u("section",O0,[l.value?(d(),p("p",M0,"Loadingâ¦")):!H(s).signedIn&&!m.value&&((se=$.value)!=null&&se.freeFirst)&&$.value.firstEpisode?(d(),p("div",N0,[u("div",L0,[u("h1",j0,k($.value.title),1),$.value.description?(d(),p("p",F0,k($.value.description),1)):A("",!0),u("p",D0," Episode 1 is free · "+k($.value.episodeCount)+" episode"+k($.value.episodeCount===1?"":"s")+" in this series ",1),$.value.linkedPostSlug?(d(),pe(J,{key:1,to:`/${$.value.linkedPostSlug}`,class:"mt-2 inline-block text-sm underline xf-text-muted hover:xf-text"},{default:ie(()=>[...P[9]||(P[9]=[K(" Read the story instead ",-1)])]),_:1},8,["to"])):A("",!0)]),u("div",B0,[u("div",U0,[u("div",V0,[u("video",{src:$.value.firstEpisode.url,poster:$.value.firstEpisode.poster??$.value.poster??void 0,class:"h-full w-full object-contain",controls:"",playsinline:"",onEnded:P[0]||(P[0]=le=>b.value=!0),onPlay:P[1]||(P[1]=le=>b.value=!1)},null,40,H0),b.value?(d(),p("div",z0,[P[12]||(P[12]=u("p",{class:"text-lg font-semibold leading-snug"},"Want to see what happens next?",-1)),u("p",q0,[P[10]||(P[10]=K(" Sign up free with just your email to keep watching episode 2 ",-1)),$.value.episodeCount>2?(d(),p(B,{key:0},[K(" and "+k($.value.episodeCount-2)+" more",1)],64)):A("",!0),P[11]||(P[11]=K(". ",-1))]),u("a",{href:S.value,class:"rounded border border-white/70 px-6 py-2 text-xs uppercase tracking-[0.18em] font-semibold transition hover:bg-white hover:text-black"}," Sign up free ",8,W0)])):A("",!0)]),u("p",G0," Ep 1 · "+k($.value.firstEpisode.title||"Episode 1"),1)])]),$.value.episodes.length>1?(d(),p("div",K0,[P[13]||(P[13]=u("h2",{class:"text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},"In this series",-1)),u("ul",Y0,[(d(!0),p(B,null,ke($.value.episodes,le=>(d(),p("li",{key:le.episode,class:"flex items-center gap-3 rounded border xf-border p-2"},[u("span",J0,"Ep "+k(le.episode),1),u("span",Q0,k(le.title||`Episode ${le.episode}`),1),u("span",Z0,k(le.episode===1?"Free":"ð Members"),1)]))),128))]),u("a",{href:S.value,class:"mt-4 inline-block xf-rounded border xf-border-accent px-6 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)]"}," Sign up free to watch all episodes ",8,X0)])):A("",!0)])):!H(s).signedIn&&!m.value?(d(),p("div",ew,[$.value?(d(),p(B,{key:0}
31,[u("h1",tw,k($.value.title),1),$.value.description?(d(),p("p",nw,k($.value.description),1)):A("",!0),u("p",sw," This "+k($.value.episodeCount)+"-episode series is for members. Sign in with just your email â it's free. ",1)],64)):(d(),p("p",ow,"Video series are for members. Sign in with just your email â it's free.")),u("a",{href:S.value,class:"mt-5 inline-block xf-rounded border xf-border-accent px-6 py-2 text-xs uppercase tracking-[0.18em] font-semibold xf-text transition hover:bg-[var(--xf-accent)] hover:text-[var(--xf-bg)]"}," Sign in ",8,rw),(ce=$.value)!=null&&ce.linkedPostSlug?(d(),p("p",iw,[G(J,{to:`/${$.value.linkedPostSlug}`,class:"text-sm underline xf-text-muted hover:xf-text"},{default:ie(()=>[...P[14]||(P[14]=[K(" Read the story instead ",-1)])]),_:1},8,["to"])])):A("",!0)])):a.value?(d(),p("p",lw,k(a.value),1)):m.value?(d(),p(B,{key:5},[H(i)==="mobile"?(d(),p("div",uw,[u("div",cw,[G(J,{to:"/members",class:"shrink-0 text-xs uppercase tracking-[0.18em] text-white/70"},{default:ie(()=>[...P[17]||(P[17]=[K("â Members",-1)])]),_:1}),u("p",dw,k(m.value.title),1),u("span",fw,"Ep "+k(W.value??1)+"/"+k(v.value.length),1)]),Z.value&&(($e=D.value)!=null&&$e.adhesionTop)?(d(),p("div",pw,[G(Re,{slot:D.value.adhesionTop.slot,placement:"stickytop",device:"mobile",class:"w-full"},null,8,["slot"])])):A("",!0),u("div",{ref_key:"feedEl",ref:me,onTouchmovePassive:yt,onWheelPassive:yt,class:"min-h-0 flex-1 snap-y snap-mandatory overflow-y-auto overscroll-contain"},[(d(!0),p(B,null,ke(v.value,(le,Oe)=>(d(),p(B,{key:le.episode},[u("section",{ref_for:!0,ref:Ve=>Ke(Oe,Ve),"data-ep-index":Oe,class:"relative h-full w-full snap-start snap-always"},[u("video",{ref_for:!0,ref:Ve=>Ge(Oe,Ve),src:le.url,poster:X(le),class:"h-full w-full object-contain",playsinline:"",muted:I.value,preload:"metadata",onEnded:Ve=>z(Oe),onClick:at},null,40,hw),u("div",vw,[u("p",xw,"Ep "+k(le.episode)+" of "+k(v.value.length),1),u("p",gw,k(ee(le)),1),u("div",yw,[u("button",{type:"button",onClick:P[2]||(P[2]=Ve=>ge.value=!0),class:"pointer-events-auto rounded-full bg-white/15 px-4 py-1.5 text-xs font-semibold backdrop-blur-sm"}," ð¬ Episode discussion "),m.value.linkedPostSlug?(d(),pe(J,{key:0,to:`/${m.value.linkedPostSlug}`,class:"pointer-events-auto rounded-full bg-white/15 px-4 py-1.5 text-xs font-semibold backdrop-blur-sm"},{default:ie(()=>[...P[18]||(P[18]=[K("ð Read the story",-1)])]),_:1},8,["to"])):A("",!0)]),G(La,{name:"fade"},{default:ie(()=>[!pt.value&&Oe<v.value.length-1&&!_e(Oe)?(d(),p("div",bw,[P[19]||(P[19]=u("svg",{class:"h-5 w-5 animate-bounce",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[u("path",{d:"M18 15l-6-6-6 6"})],-1)),u("p",ww," Swipe up · Ep "+k(v.value[Oe+1].episode)+" next ",1)])):A("",!0)]),_:2},1024)]),u("button",{type:"button",onClick:at,class:"absolute right-4 top-4 roun
31ded-full bg-black/60 px-3 py-2 text-xs font-semibold text-white"},k(I.value?"ð Tap for sound":"ð Sound on"),1),_e(Oe)?(d(),p("div",_w,[P[20]||(P[20]=u("span",{class:"text-3xl","aria-hidden":"true"},"ð",-1)),u("p",kw,"Ep "+k(le.episode)+" of "+k(v.value.length),1),u("p",Sw,k(ee(le)),1),P[21]||(P[21]=u("p",{class:"max-w-xs text-base leading-snug text-white/90"}," Watch a short ad to unlock the next episode and support our video creation. ",-1)),u("button",{type:"button",disabled:te.value,onClick:Ve=>w(Oe),class:"mt-2 w-full max-w-xs rounded-full bg-white px-8 py-4 text-sm uppercase tracking-[0.18em] font-bold text-black shadow-lg transition active:scale-[0.98] disabled:opacity-50"},k(te.value?"Loading adâ¦":"â¶ Watch ad to unlock"),9,$w),P[22]||(P[22]=u("p",{class:"text-xs text-white/50"},"Free to watch â the ad keeps new episodes coming.",-1)),re.value&&h.value===Oe?(d(),p("p",Cw,k(re.value),1)):A("",!0)])):A("",!0)],8,mw),F.value&&D.value&&Oe<v.value.length-1&&(Oe+1)%2===0?(d(),p("section",Ew,[G(Re,{slot:D.value.betweenSections.slot,placement:"betweenSections",device:"mobile"},null,8,["slot"])])):A("",!0)],64))),128)),u("section",{ref_key:"recircEl",ref:ue,class:"flex h-full snap-start snap-always flex-col justify-center overflow-y-auto bg-black px-6 py-10 text-white"},[P[26]||(P[26]=u("p",{class:"text-[11px] uppercase tracking-[0.18em] text-white/60"},"You've finished",-1)),u("p",Aw,k(m.value.title),1),Y.value.length?(d(),p(B,{key:0},[P[24]||(P[24]=u("p",{class:"mt-7 text-xs uppercase tracking-[0.2em] font-semibold text-white/60"},"Keep watching",-1)),u("ul",Iw,[(d(!0),p(B,null,ke(Y.value,le=>(d(),p("li",{key:le.id},[G(J,{to:`/members/videos/${le.id}?ep=1`,class:"flex items-center gap-3 rounded-lg bg-white/10 p-2 active:bg-white/20"},{default:ie(()=>[u("div",Rw,[le.poster?(d(),p("img",{key:0,src:le.poster,alt:le.title,class:"h-full w-full object-cover",loading:"lazy"},null,8,Tw)):(d(),p("span",Pw,"â¶"))]),u("div",Ow,[u("p",Mw,k(le.title),1),u("p",Nw,k(le.episodes.length)+" episode"+k(le.episodes.length===1?"":"s"),1)]),P[23]||(P[23]=u("span",{class:"ml-auto shrink-0 pr-1 text-white/50"},"âº",-1))]),_:2},1032,["to"])]))),128))])],64)):A("",!0),G(J,{to:"/members",class:"mt-7 text-xs uppercase tracking-[0.18em] text-white/70 underline underline-offset-4"},{default:ie(()=>[...P[25]||(P[25]=[K("Browse the member area",-1)])]),_:1})],512)],544),U.value&&((Pe=D.value)!=null&&Pe.adhesionBottom)?(d(),p("div",Lw,[G(Re,{slot:D.value.adhesionBottom.slot,placement:"sticky",device:"mobile",class:"w-full"},null,8,["slot"])])):A("",!0),ge.value?(d(),p("div",{key:2,class:"fixed inset-0 z-50 flex flex-col justify-end",onClick:P[5]||(P[5]=St(le=>ge.value=!1,["self"]))},[u("div",{class:"absolute inset-0 bg-black/50",onClick:P[3]||(P[3]=le=>ge.value=!1)}),u("div",jw,[u("div",Fw,[u("h2",Dw," Episode "+k(W.value)+" discussion ",1),u("button",{type:"button",onClick:P[4]||(P[4]=le=>ge.value=!1),class:"rounded-full px-3 py-1 text-sm font-semibold xf-text-muted"},"â Close")]),M.value?(d(),pe(oo,{key:M.value,"content-id":M.value},null,8,["content-id"])):A("",!0)])])):A("",!0)])):(d(),p("div",Bw,[G(J,{to:"/members",class:"text-xs uppercase tracking-[0.18em] xf-text-faint hover:xf-text"},{default:ie(()=>[...P[27]||(P[27]=[K("â Members",-1)])]),_:1}),u("h1",Uw,k(m.value.title),1),m.value.description?(d(),p("p",Vw,k(m.value.description),1)):A("",!0),m.value.linkedPostSlug?(d(),pe(J,{key:1,to:`/${m.value.linkedPostSlug}`,class:"mt-3 inline-flex items-center gap-1.5 rounded-full border xf-border px-4 py-1.5 text-sm font-semibold xf-text transition hover:bg-black/5"},{default:ie(()=>[...P[28]||(P[28]=[K("ð Read the story instead",-1)])]),_:1},8,["to"])):A("",!0),u("div",Hw,[u("div",zw,[u("div",qw,[v.value[h.value]?(d(),p("video",{ref_key:"desktopVideo",ref:ae,key:v.value[h.value].episode,src:v.value[h.value].url,poster:X(v.value[h.value]),class:"h-full w-full object-contain",controls:"",autoplay:"",playsinline:"",muted:I.value,onVolumechange:P[6]||(P[6]=le=>{var Oe;return I.value=((Oe=ae.value)==null?void 0:Oe.muted)??I.value}),onEnded:T},null,40,Ww)):A("",!0),oe.value!=null&&v.value[oe.value]?(d(),p("div",Gw,[u("p",Kw," Ep "+k(v.value[oe.value].episode)+" of "+k(v.value.length),1),u("p",Yw,k(ee(v.value[oe.value])),1),P[29]||(P[29]=u("p",{class:"max-w-xs text-sm text-white/90"},"Watch a short ad to unlock the next episode and support our video creation.",-1)),u("button",{type:"button",disabled:te.value,onClick:P[7]||(P[7]=le=>w(oe.value)),class:"rounded-full border border-white/70 px-6 py-2.5 text-xs uppercase tracking-[0.18em] font-semibold transition hover:bg-white hover:text-black disabled:opacity-50"}
31,k(te.value?"Loading adâ¦":"â¶ Watch ad to continue"),9,Jw),re.value?(d(),p("p",Qw,k(re.value),1)):A("",!0),u("button",{type:"button",onClick:P[8]||(P[8]=le=>{oe.value=null,re.value=null}),class:"text-xs text-white/60 underline underline-offset-4"}," Keep watching Ep "+k((Ee=v.value[h.value])==null?void 0:Ee.episode),1)])):A("",!0)]),u("p",Zw," Ep "+k((Ue=v.value[h.value])==null?void 0:Ue.episode)+" · "+k(v.value[h.value]?ee(v.value[h.value]):""),1),Q.value&&D.value?(d(),p("div",Xw,[G(Re,{slot:D.value.afterHero.slot,placement:"afterHero",device:"desktop"},null,8,["slot"])])):A("",!0)]),u("aside",e2,[P[30]||(P[30]=u("h2",{class:"text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},"Episodes",-1)),u("ul",t2,[(d(!0),p(B,null,ke(v.value,(le,Oe)=>(d(),p("li",{key:le.episode},[u("button",{type:"button",onClick:Ve=>_(Oe),class:Ie(["flex w-full items-center gap-3 rounded border p-2 text-left transition",Oe===h.value?"xf-border-accent bg-[var(--xf-accent)]/10":"xf-border hover:bg-black/5"])},[u("div",s2,[X(le)?(d(),p("img",{key:0,src:X(le),alt:ee(le),class:"h-full w-full object-cover",loading:"lazy"},null,8,o2)):(d(),p("span",r2,k(le.episode),1))]),u("div",i2,[u("p",l2,"Ep "+k(le.episode)+" · "+k(ee(le)),1),u("p",a2,[ne(le.durationSec)?(d(),p("span",u2,k(ne(le.durationSec)),1)):A("",!0),Oe===h.value?(d(),p("span",c2,"Now playing")):A("",!0)])])],10,n2)]))),128))])])]),Y.value.length?(d(),p("div",d2,[P[31]||(P[31]=u("h2",{class:"text-xs uppercase tracking-[0.2em] font-semibold xf-text-faint"},"More series to watch",-1)),u("ul",f2,[(d(!0),p(B,null,ke(Y.value,le=>(d(),p("li",{key:le.id},[G(J,{to:`/members/videos/${le.id}?ep=1`,class:"group block overflow-hidden rounded-lg border xf-border transition hover:shadow-md"},{default:ie(()=>[u("div",p2,[le.poster?(d(),p("img",{key:0,src:le.poster,alt:le.title,class:"h-full w-full object-cover transition group-hover:scale-105",loading:"lazy"},null,8,m2)):(d(),p("span",h2,"â¶"))]),u("div",v2,[u("p",x2,k(le.title),1),u("p",g2,k(le.episodes.length)+" episode"+k(le.episodes.length===1?"":"s"),1)])]),_:2},1032,["to"])]))),128))])])):A("",!0),M.value?(d(),p("div",y2,[u("h2",b2," Episode "+k(W.value)+" discussion ",1),(d(),pe(oo,{key:M.value,"content-id":M.value},null,8,["content-id"]))])):A("",!0)]))],64)):(d(),p("div",aw,[P[16]||(P[16]=u("p",{class:"xf-text-muted"},"This video series isn't available.",-1)),G(J,{to:"/members",class:"mt-4 inline-block underline xf-text-muted hover:xf-text"},{default:ie(()=>[...P[15]||(P[15]=[K("Back to the member area",-1)])]),_:1})]))])],64)}}}),_2=Tt(w2,[["__scopeId","data-v-40ad66f7"]]),k2=pp({history:Gf(),routes:[{path:"/",name:"home",component:Ov},{path:"/category/:category",name:"category",component:Vv,props:!0},{path:"/trending",name:"trending",component:Jv},{path:"/news",name:"news",component:ml},{path:"/news/:category",name:"news-category",component:ml,props:!0},{path:"/search",name:"search",component:$y},{path:"/subscribe",name:"subscribe",component:Dy},{path:"/games",name:"games",component:Xy,props:{kind:"games"}},{path:"/astrology",name:"astrology",component:lb},{path:"/horoscope",name:"horoscope",component:$b},{path:"/signin",name:"signin",component:Kb},{path:"/members",name:"members",component:E0},{path:"/members/videos/:seriesId",name:"member-videos",component:_2},{path:"/:slug",name:"article",component:by,props:!0}],scrollBehavior:()=>({top:0})});ef(lh).use(sf()).use(k2).mount("#app");
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.