PageSourceSearch

https://www.uswitch.com/fs-frontend-assets/window-data-D2p09VOK.js

js uswitch.com collected 2026-09-24 08:49:37 UTC 509,934 bytes, 142 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["fs-frontend-assets/index-wZzmQJyP.js","fs-frontend-assets/components-CpRQf-dN.js","fs-frontend-assets/tracking-CY6Q8RVS.js","fs-frontend-assets/errorBoundaries-DRzwUlCV.js","fs-frontend-assets/src-DJ4oPj6b-BJuKX68Q.js","fs-frontend-assets/index-De-iH0Ei.js","fs-frontend-assets/schemas-PxLoeS90.js","fs-frontend-assets/index-BqJMi_FF.js","fs-frontend-assets/index-DM4IFHfA.js","fs-frontend-assets/index-D4Gc0t61.js","fs-frontend-assets/progress-circle-CF28P_AN.js","fs-frontend-assets/index-BCXjf0co.js","fs-frontend-assets/lite-yt-embed-BV36PEYz.css","fs-frontend-assets/index-WS5XD0Y1.js","fs-frontend-assets/index-8q8_EV6s.js","fs-frontend-assets/index-DGamNLbB.js","fs-frontend-assets/coerce-DSAKNcO6.js","fs-frontend-assets/chart-BlYRVWpK.js","fs-frontend-assets/contentful-live-preview-Dt0vhDOk.js","fs-frontend-assets/react-C-Z5mLA8.js"])))=>i.map(i=>d[i]);
2var Gi=e=>{throw TypeError(e)};var Wi=(e,t,n)=>t.has(e)||Gi("Cannot "+n);var Fe=(e,t,n)=>(Wi(e,t,"read from private field"),n?n.call(e):t.get(e)),qi=(e,t,n)=>t.has(e)?Gi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_s=(e,t,n,r)=>(Wi(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import{n as Jr,g as mn,t as ze,c as Ke,d as lm,e as Bt,a as es,_ as lt,b as rc,u as Br}from"./tracking-CY6Q8RVS.js";import{r as x,j as s,X as Ro,W as Q,Y as We,b as sc}from"./components-CpRQf-dN.js";import{o as cm}from"./src-DJ4oPj6b-BJuKX68Q.js";import{a as oc}from"./index-De-iH0Ei.js";import{o as Ue,s as Ye,a as Gn,fF as bt,b as Ys,g8 as ic,_ as dm,r as um}from"./schemas-PxLoeS90.js";const Ks=0,kS=6e4,ES=10,fm=70,mm=3,Po="skipConsent",pm="requestType",hm="resend",ee=e=>t=>t.sys.contentType.sys.id===e,xm=ee("modularPage"),ac=ee("breadcrumb"),lc=ee("url"),gm={rootEntry:null,linkedEntries:[],linkedAssets:[],blockData:void 0,formData:void 0,productListingData:void 0,productTableData:void 0,reviews:void 0,aggregationTableData:void 0,sme:void 0,experiences:void 0,providerLogoData:void 0,providersListData:void 0,trustpilotData:void 0,leadCaptureFormData:void 0,travelMoneyData:void 0,app:{location:{pathname:"",search:""},brand:"money"}},$e=x.createContext(gm),Io=()=>x.useContext($e).linkedEntries,ke=(e,t,n)=>{const r=e.sys.id,o=t.find(a=>a.sys.id===r),i=ee(n);if(!(!o||!i(o)))return o.fields},yt=(e,t)=>{if(e.sys.id)return t.find(n=>n.sys.id===e.sys.id)},cn=(e,t)=>{const n=e.sys.id;return t.find(o=>o.sys.id===n)},J=()=>x.useContext($e),Te=()=>x.useContext($e).app?.brand??"money",cc=()=>{const{rootEntry:e,experiences:t}=x.useContext($e),n=e?.fields.variants,r=e?.fields.variantFlag,o=r&&t?t[r]:void 0;return o?n?.[o.cohort]:n?.[0]},ts=(e,t)=>ke(e,Io(),t),Wn=(e,t)=>{const n=Io();return e.flatMap(r=>{const o=ke(r,n,t);return o?[{id:r.sys.id,fields:o}]:[]})},Lo=e=>cn(e,Io()),bm=()=>x.useContext($e).blockData,ym=()=>x.useContext($e).formData,dc=()=>x.useContext($e).reviews,vm=()=>x.useContext($e).aggregationTableData,uc=()=>x.useContext($e).providerLogoData,wm=()=>x.useContext($e).providersListData,fc=()=>x.useContext($e).trustpilotData,jm=()=>x.useContext($e).leadCaptureFormData,Nm=e=>x.useContext($e).resultsCardData?.[e],km=e=>x.useContext($e).travelMoneyData?.[e],Ut=e=>{const t=x.useContext($e).linkedAssets;if(e?.sys.id)return t.find(n=>n.sys.id===e.sys.id)},mc=x.createContext(new Set),Em=mc.Provider,pc=e=>x.useContext(mc).has(e),hc=x.createContext(()=>null),Cs=hc.Provider,ct=()=>x.useContext(hc),_m=ee("colour"),tr=ee("palette"),ns=(e,t)=>e.reduce((n,r)=>{const o=t.find(a=>a.sys.id===r.sys.id);return o&&tr(o)?[...n,[o,[]]]:(n[n.length-1][1].push(r),n)},[[null,[]]]),zr=e=>e===null||typeof e!="object",ne=(e,t)=>{const[n,r]=Oo(e);return n==="valueFrom"&&typeof r=="string"?Cm(r,t):r},Cm=(e,t)=>{const n=Do(e.split("."),t);if(Array.isArray(n)&&n.length>Ks){const r=n[Ks];return zr(r)?r:null}return zr(n)?n:null},V=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Do=(e,t,n)=>{let r=t;for(const o of e)if(r!==n&&V(r)&&{}.hasOwnProperty.call(r,o)&&r[o]!==null)r=r[o];else return n;return r},Oo=e=>e==null?[null,null]:{}.hasOwnProperty.call(e,"valueFrom")?["valueFrom",e.valueFrom]:{}.hasOwnProperty.call(e,"value")?["value",e.value]:[null,null],_S=(e,t)=>{const[n,r]=Oo(e);return n==="valueFrom"&&typeof r=="string"?Tm(r,t):Array.isArray(r)?r.filter(zr):[]},Tm=(e,t)=>
2{const n=Do(e.split("."),t);return Array.isArray(n)?n.filter(zr):[]},Yi=(e,t)=>{const[n,r]=Oo(e);if(n==="valueFrom"&&typeof r=="string"){const o=Do(r.split("."),t);if(Array.isArray(o))return o}return[]},Sm=e=>e.replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"),pn=({data:e})=>s.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:Sm(JSON.stringify({"@context":"https://schema.org",...e}))}});var Dr={exports:{}},Am=Dr.exports,Ki;function Rm(){return Ki||(Ki=1,(function(e,t){(function(n,r){e.exports=r()})(Am,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",l="minute",c="hour",d="day",u="week",f="month",m="quarter",h="year",p="date",b="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var T=["th","st","nd","rd"],R=P%100;return"["+P+(T[(R-20)%10]||T[R]||T[0])+"]"}},k=function(P,T,R){var I=String(P);return!I||I.length>=T?P:""+Array(T+1-I.length).join(R)+P},A={s:k,z:function(P){var T=-P.utcOffset(),R=Math.abs(T),I=Math.floor(R/60),_=R%60;return(T<=0?"+":"-")+k(I,2,"0")+":"+k(_,2,"0")},m:function P(T,R){if(T.date()<R.date())return-P(R,T);var I=12*(R.year()-T.year())+(R.month()-T.month()),_=T.clone().add(I,f),$=R-_<0,z=T.clone().add(I+($?-1:1),f);return+(-(I+(R-_)/($?_-z:z-_))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:f,y:h,w:u,d,D:p,h:c,m:l,s:a,ms:i,Q:m}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},v="en",j={};j[v]=w;var E="$isDayjsObject",N=function(P){return P instanceof F||!(!P||!P[E])},S=function P(T,R,I){var _;if(!T)return v;if(typeof T=="string"){var $=T.toLowerCase();j[$]&&(_=$),R&&(j[$]=R,_=$);var z=T.split("-");if(!_&&z.length>1)return P(z[0])}else{var Y=T.name;j[Y]=T,_=Y}return!I&&_&&(v=_),_||!I&&v},D=function(P,T){if(N(P))return P.clone();var R=typeof T=="object"?T:{};return R.date=P,R.args=arguments,new F(R)},L=A;L.l=S,L.i=N,L.w=function(P,T){return D(P,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var F=(function(){function P(R){this.$L=S(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[E]=!0}var T=P.prototype;return T.parse=function(R){this.$d=(function(I){var _=I.date,$=I.utc;if(_===null)return new Date(NaN);if(L.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var z=_.match(g);if(z){var Y=z[2]-1||0,X=(z[7]||"0").substring(0,3);return $?new Date(Date.UTC(z[1],Y,z[3]||1,z[4]||0,z[5]||0,z[6]||0,X)):new Date(z[1],Y,z[3]||1,z[4]||0,z[5]||0,z[6]||0,X)}}return new Date(_)})(R),this.init()},T.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},T.$utils=function(){return L},T.isValid=function(){return this.$d.toString()!==b},T.isSame=function(R,I){var _=D(R);return this.startOf(I)<=_&&_<=this.endOf(I)},T.isAfter=function(R,I){return D(R)<this.startOf(I)},T.isBefore=function(R,I){return this.endOf(I)<D(R)},T.$g=function(R,I,_){return L.u(R)?this[I]:this.set(_,R)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(R,I){var _=this,$=!!L.u(I)||I,z=L.p(R),Y=function(we,ce){var ae=L.w(_.$u?Date.UTC(_.$y,ce,we):new Date(_.$y,ce,we),_);return $?ae:ae.endOf(d)},X=function(we,ce){return L.w(_.toDate()[we].apply(_.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(ce)),_)},q=this.$W,K=this.$M,oe=this.$D,je="set"+(this.$u?"UTC":"");switch(z){case h:return $?Y(1,0):Y(31,11);case f:return $?Y(1,K):Y(0,K+1);case u:var re=this.$locale().weekStart||0,ge=(q<re?q+7:q)-re;return Y($?oe-ge:oe+(6-ge),K);case d:case p:return X(je+"Hours",0);case c:return X(je+"Minutes",1);case l:return X(je+"Seconds",2);case a:return X(je+"Milliseconds",3);default:return this.clone()}},T.endOf=function(R){return this.startOf(R,!1)},T.$set=function(R,I){var _,$=L.p(R),z="set"+(this.$u?"UTC":""),Y=(_={},_[d]=z+"Date",_[p]=z+"Date",_[f]=z+"Month",_[h]=z+"FullYear",_[c]=z+"Hours",_[l]=z+"Minutes",_[a]=z+"Seconds",_[i]=z+"Milliseconds",_)[$],X=$===d?this.$D+(I-this.$W):I;if($===f||$===h){var q=this.clone().set(p,1);q.$d[Y](X),q.init(),this.$d=q.set(p,Math.min(this.$D,q.daysInMonth())).$d}else Y&&this.$d[Y](X);return this.init(),this},T.set=function(R,I){return this.clone().$set(R,I)},T.get=function(R){return this[L.p(R)]()},T.add=function(R,I){var _,$=this;R=Number(R);var z=L.p(I),Y=function(K){var oe=D($);return L.w(oe.date(oe.date()+Math.round(K*R)),$)};if(z===f)return this.set(f,this.$M+R);if(z===h)return this.set(h,this.$y+R);if(z===d)return Y(1);if(z===u)return Y(7);var X=(_={},_[l]=r,_[c]=o,_[a]=n,_)[z]||1,q=this.$d.getTime()+R*X;return L.w(q,this)},T.subtract=function(R,I){return this.add(-1*R,I)},T.format=function(R){var I=this,_=this.$locale();
2if(!this.isValid())return _.invalidDate||b;var $=R||"YYYY-MM-DDTHH:mm:ssZ",z=L.z(this),Y=this.$H,X=this.$m,q=this.$M,K=_.weekdays,oe=_.months,je=_.meridiem,re=function(ce,ae,B,ue){return ce&&(ce[ae]||ce(I,$))||B[ae].slice(0,ue)},ge=function(ce){return L.s(Y%12||12,ce,"0")},we=je||function(ce,ae,B){var ue=ce<12?"AM":"PM";return B?ue.toLowerCase():ue};return $.replace(y,(function(ce,ae){return ae||(function(B){switch(B){case"YY":return String(I.$y).slice(-2);case"YYYY":return L.s(I.$y,4,"0");case"M":return q+1;case"MM":return L.s(q+1,2,"0");case"MMM":return re(_.monthsShort,q,oe,3);case"MMMM":return re(oe,q);case"D":return I.$D;case"DD":return L.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return re(_.weekdaysMin,I.$W,K,2);case"ddd":return re(_.weekdaysShort,I.$W,K,3);case"dddd":return K[I.$W];case"H":return String(Y);case"HH":return L.s(Y,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return we(Y,X,!0);case"A":return we(Y,X,!1);case"m":return String(X);case"mm":return L.s(X,2,"0");case"s":return String(I.$s);case"ss":return L.s(I.$s,2,"0");case"SSS":return L.s(I.$ms,3,"0");case"Z":return z}return null})(ce)||z.replace(":","")}))},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(R,I,_){var $,z=this,Y=L.p(I),X=D(R),q=(X.utcOffset()-this.utcOffset())*r,K=this-X,oe=function(){return L.m(z,X)};switch(Y){case h:$=oe()/12;break;case f:$=oe();break;case m:$=oe()/3;break;case u:$=(K-q)/6048e5;break;case d:$=(K-q)/864e5;break;case c:$=K/o;break;case l:$=K/r;break;case a:$=K/n;break;default:$=K}return _?$:L.a($)},T.daysInMonth=function(){return this.endOf(f).$D},T.$locale=function(){return j[this.$L]},T.locale=function(R,I){if(!R)return this.$L;var _=this.clone(),$=S(R,I,!0);return $&&(_.$L=$),_},T.clone=function(){return L.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},P})(),M=F.prototype;return D.prototype=M,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",d],["$M",f],["$y",h],["$D",p]].forEach((function(P){M[P[1]]=function(T){return this.$g(T,P[0],P[1])}})),D.extend=function(P,T){return P.$i||(P(T,F,D),P.$i=!0),D},D.locale=S,D.isDayjs=N,D.unix=function(P){return D(1e3*P)},D.en=j[v],D.Ls=j,D.p={},D}))})(Dr)),Dr.exports}var Pm=Rm();const nr=Ro(Pm),Hr=e=>{if(!e||!nr(e).isValid())return;if(!e.includes("T"))return e;const t=/T\d{2}:\d{2}$/.test(e)?`${e}:00`:e;return/Z|[+-]\d{2}:\d{2}$/.test(t)?t:`${t}Z`},xc=(e,t)=>{const n=e?.fields.file,r=n?.details.image;return n?.url?{"@type":"ImageObject",url:Jr(n.url,t),...r&&{width:r.width,height:r.height}}:void 0},Im="https://www.money.co.uk/#organization",Lm="https://www.money.co.uk/#website",Mo="en-GB",rs=()=>({"@type":"Organization","@id":Im}),$o=()=>({"@type":"WebSite","@id":Lm}),gc=e=>({"@id":`${e}#person`}),bc=(e,t)=>{if(!e||typeof e.url!="string")return;const n=mn(e.url,t);return{"@type":"Person","@id":gc(n)["@id"],name:e.name,url:n}},Vr=(e,t)=>{const{linkedEntries:n}=J();if(!e)return;const r=ke(e,n,"author");return bc(r,t)},Dm=["Guide","News","Case study","Outreach"],Om=({title:e,description:t,metaTitle:n,metaDescription:r,metaImageLink:o,authorLink:i,editorLink:a})=>{const l=Te(),{rootEntry:c}=J(),d=Vr(i,l),u=Vr(a,l),f=Ut(o),m=c?.fields.pageType,h=c?.fields.url;if(l!=="money"||typeof m!="string"||!Dm.includes(m)||typeof h!="string"||!d)return null;const p=mn(h,l),b=xc(f,l),g=Hr(c?.fields.publishDate),y=Hr(c?.fields.updatedDate),w={"@type":"Article","@id":`${p}#article`,url:p,headline:e,...t&&{description:t},...b&&{image:b},...g&&{datePublished:g},...y&&{dateModified:y},author:d,...u&&{editor:u},publisher:rs(),isPartOf:$o(),mainEntityOfPage:{"@type":"WebPage","@id":`${p}#webpage`},inLanguage:Mo},k={"@type":"WebPage","@id":`${p}#webpage`,url:p,name:n,...r&&{description:r}};return s.jsx(pn,{data:{"@graph":[w,k]}})},Mm=ee("accordion"),$m=(e,t,n,r)=>{if(!e)return"";const o=Jr(e,n),i=new URL(o);return!r&&i.searchParams.append("w",t.toString()),i.pathname.endsWith(".svg")||i.searchParams.append("auto","format,compress"),i.toString()},yc=1152,Re=({src:e,alt:t,width:n,height:r,originalSize:o=!1,critical:i=!1,...a})=>{const l=Te(),c=n??yc,d=n===void 0||r===void 0?{}:{width:n,height:r};return s.jsx("img",{src:$m(e,c,l,o),alt:t,...d,loading:i?"eager":"lazy",fetchPriority:i?"high":void 0,title:a.title,className:a.className??"",...a})},vc=e=>cm(e).cleaned,Fm=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Bm=(e,t)=>({classGroupId:e,validator:t}),wc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ur="-",Zi=[],zm="arbitrary..",Hm=e=>{const t=Um(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>
vendor: 8,920 bytes, line 2
2{if(a.startsWith("[")&&a.endsWith("]"))return Vm(a);const l=a.split(Ur),c=l[0]===""&&l.length>1?1:0;return jc(l,c,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const c=r[a],d=n[a];return c?d?Fm(d,c):c:d||Zi}return n[a]||Zi}}},jc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const d=jc(e,t+1,i);if(d)return d}const a=n.validators;if(a===null)return;const l=t===0?e.join(Ur):e.slice(t).join(Ur),c=a.length;for(let d=0;d<c;d++){const u=a[d];if(u.validator(l))return u.classGroupId}},Vm=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?zm+r:void 0})(),Um=e=>{const{theme:t,classGroups:n}=e;return Gm(n,t)},Gm=(e,t)=>{const n=wc();for(const r in e){const o=e[r];Fo(o,n,r,t)}return n},Fo=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];Wm(a,t,n,r)}},Wm=(e,t,n,r)=>{if(typeof e=="string"){qm(e,t,n);return}if(typeof e=="function"){Ym(e,t,n,r);return}Km(e,t,n,r)},qm=(e,t,n)=>{const r=e===""?t:Nc(t,e);r.classGroupId=n},Ym=(e,t,n,r)=>{if(Zm(e)){Fo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Bm(n,e))},Km=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[l,c]=o[a];Fo(c,Nc(t,l),n,r)}},Nc=(e,t)=>{let n=e;const r=t.split(Ur),o=r.length;for(let i=0;i<o;i++){const a=r[i];let l=n.nextPart.get(a);l||(l=wc(),n.nextPart.set(a,l)),n=l}return n},Zm=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Xm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let a=n[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return o(i,a),a},set(i,a){i in n?n[i]=a:o(i,a)}}},Zs="!",Xi=":",Qm=[],Qi=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Jm=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let a=0,l=0,c=0,d;const u=o.length;for(let b=0;b<u;b++){const g=o[b];if(a===0&&l===0){if(g===Xi){i.push(o.slice(c,b)),c=b+1;continue}if(g==="/"){d=b;continue}}g==="["?a++:g==="]"?a--:g==="("?l++:g===")"&&l--}const f=i.length===0?o:o.slice(c);let m=f,h=!1;f.endsWith(Zs)?(m=f.slice(0,-1),h=!0):f.startsWith(Zs)&&(m=f.slice(1),h=!0);const p=d&&d>c?d-c:void 0;return Qi(i,h,m,p)};if(t){const o=t+Xi,i=r;r=a=>a.startsWith(o)?i(a.slice(o.length)):Qi(Qm,!1,a,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},ep=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const a=n[i],l=a[0]==="[",c=t.has(a);l||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},tp=e=>({cache:Xm(e.cacheSize),parseClassName:Jm(e),sortModifiers:ep(e),...Hm(e)}),np=/\s+/,rp=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],l=e.trim().split(np);let c="";for(let d=l.length-1;d>=0;d-=1){const u=l[d],{isExternal:f,modifiers:m,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:b}=n(u);if(f){c=u+(c.length>0?" "+c:c);continue}let g=!!b,y=r(g?p.substring(0,b):p);if(!y){if(!g){c=u+(c.length>0?" "+c:c);continue}if(y=r(p),!y){c=u+(c.length>0?" "+c:c);continue}g=!1}const w=m.length===0?"":m.length===1?m[0]:i(m).join(":"),k=h?w+Zs:w,A=k+y;if(a.indexOf(A)>-1)continue;a.push(A);const v=o(y,g);for(let j=0;j<v.length;++j){const E=v[j];a.push(k+E)}c=u+(c.length>0?" "+c:c)}return c},sp=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=kc(n))&&(o&&(o+=" "),o+=r);return o},kc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=kc(e[r]))&&(n&&(n+=" "),n+=t);return n},Xs=(e,...t)=>{let n,r,o,i;const a=c=>{const d=t.reduce((u,f)=>f(u),e());return n=tp(d),r=n.cache.get,o=n.cache.set,i=l,l(c)},l=c=>{const d=r(c);if(d)return d;const u=rp(c,n);return o(c,u),u};return i=a,(...c)=>i(sp(...c))},op=[],Pe=e=>{const t=n=>n[e]||op;return t.isThemeGetter=!0,t},Ec=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_c=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ip=/^\d+\/\d+$/,ap=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,cp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,up=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>ip.test(e),ie=e=>!!e&&!Number.isNaN(Number(e)),_t=e=>!!e&&Number.isInteger(Number(e)),Ts=e=>e.endsWith("%")&&ie(e.slice(0,-1)),vt=e=>ap.test(e),fp=()=>!0,mp=e=>lp.test(e)&&!cp.test(e),Cc=()=>!1,pp=e=>dp.test(e),hp=e=>up.test(e),xp=e=>!G(e)&&!W(e),gp=e=>hn(e,Ac,Cc),G=e=>Ec.test(e),Pt=e=>hn(e,Rc,mp),Ss=e=>hn(e,jp,ie),Ji=e=>hn(e,Tc,Cc),bp=e=>hn(e,Sc,hp),mr=e=>hn(e,Pc,pp),W=e=>_c.test(e),Sn=e=>xn(e,Rc),yp=e=>xn(e,Np),ea=e=>xn(e,Tc),vp=e=>xn(e,Ac),wp=e=>xn(e,Sc),pr=e=>xn(e,Pc,!0),hn=(e,t,n)=>{const r=Ec.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xn=(e,t,n=!1)=>{const r=_c.exec(e);return r?r[1]?t(r[1]):n:!1},Tc=e=>e==="position"||e==="percentage",Sc=e=>e==="image"||e==="url",Ac=e=>e==="length"||e==="size"||e==="bg-size",Rc=e=>e==="length",jp=e=>e==="number",Np=e=>e==="family-name",Pc=e=>e==="shadow",Qs=()=>{const e=Pe("color"),t=Pe("font"),n=Pe("text"),r=Pe("font-weight"),o=Pe("tracking"),i=Pe("leading"),a=Pe("breakpoint"),l=Pe("container"),c=Pe("spacing"),d=Pe("radius"),u=Pe("shadow"),f=Pe("inset-shadow"),m=Pe("text-shadow"),h=Pe("drop-shadow"),p=Pe("blur"),b=Pe("perspective"),g=Pe("aspect"),y=Pe("ease"),w=Pe("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...A(),W,G],j=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],N=()=>[W,G,c],S=()=>[Jt,"full","auto",...N()],D=()=>[_t,"none","subgrid",W,G],L=()=>["auto",{span:["full",_t,W,G]},_t,W,G],F=()=>[_t,"auto",W,G],M=()=>["auto","min","max","fr",W,G],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...N()],I=()=>[Jt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],_=()=>[e,W,G],$=()=>[...A(),ea,Ji,{position:[W,G]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",vp,gp,{size:[W,G]}],X=()=>[Ts,Sn,Pt],q=()=>["","none","full",d,W,G],K=()=>["",ie,Sn,Pt],oe=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[ie,Ts,ea,Ji],ge=()=>["","none",p,W,G],we=()=>["none",ie,W,G],ce=()=>["none",ie,W,G],ae=()=>[ie,W,G],B=()=>[Jt,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[vt],breakpoint:[vt],color:[fp],container:[vt],"drop-shadow":[vt],ease:["in","out","in-out"],font:[xp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[vt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[vt],shadow:[vt],spacing:["px",ie],text:[vt],"text-shadow":[vt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jt,G,W,g]}],container:["container"],columns:[{columns:[ie,G,W,l]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{start:S()}],end:[{end:S()}],top:[{top:S()}
vendor: 11,491 bytes, line 2
2],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[_t,"auto",W,G]}],basis:[{basis:[Jt,"full","auto",l,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ie,Jt,"auto","initial","none",G]}],grow:[{grow:["",ie,W,G]}],shrink:[{shrink:["",ie,W,G]}],order:[{order:[_t,"first","last","none",W,G]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[l,"screen",...I()]}],"min-w":[{"min-w":[l,"screen","none",...I()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",n,Sn,Pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,W,Ss]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ts,G]}],"font-family":[{font:[yp,G,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,W,G]}],"line-clamp":[{"line-clamp":[ie,"none",W,Ss]}],leading:[{leading:[i,...N()]}],"list-image":[{"list-image":["none",W,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ie,"from-font","auto",W,Pt]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[ie,"auto",W,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_t,W,G],radial:["",W,G],conic:[_t,W,G]},wp,bp]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ie,W,G]}],"outline-w":[{outline:["",ie,Sn,Pt]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,pr,mr]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,pr,mr]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[ie,Pt]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",m,pr,mr]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[ie,W,G]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[W,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,G]}],filter:[{filter:["","none",W,G]}],blur:[{blur:ge()}],brightness:[{brightness:[ie,W,G]}],contrast:[{contrast:[ie,W,G]}],"drop-shadow":[{"drop-shadow":["","none",h,pr,mr]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",ie,W,G]}],"hue-rotate":[{"hue-rotate":[ie,W,G]}],invert:[{invert:["",ie,W,G]}],saturate:[{saturate:[ie,W,G]}],sepia:[{sepia:["",ie,W,G]}],"backdrop-filter":[{"backdrop-filter":["","none",W,G]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[ie,W,G]}],"backdrop-contrast":[{"backdrop-contrast":[ie,W,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ie,W,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ie,W,G]}],"backdrop-invert":[{"backdrop-invert":["",ie,W,G]}],"backdrop-opacity":[{"backdrop-opacity":[ie,W,G]}],"backdrop-saturate":[{"backdrop-saturate":[ie,W,G]}],"backdrop-sepia":[{"backdrop-sepia":["",ie,W,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ie,"initial",W,G]}],ease:[{ease:["linear","initial",y,W,G]}],delay:[{delay:[ie,W,G]}],animate:[{animate:["none",w,W,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,W,G]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[W,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}
vendor: 4,420 bytes, line 2
2],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,G]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[ie,Sn,Pt,Ss]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}
2,kp=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>($n(e,"cacheSize",t),$n(e,"prefix",n),$n(e,"experimentalParseClassName",r),hr(e.theme,i.theme),hr(e.classGroups,i.classGroups),hr(e.conflictingClassGroups,i.conflictingClassGroups),hr(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),$n(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),xr(e.theme,o.theme),xr(e.classGroups,o.classGroups),xr(e.conflictingClassGroups,o.conflictingClassGroups),xr(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ic(e,o,"orderSensitiveModifiers"),e),$n=(e,t,n)=>{n!==void 0&&(e[t]=n)},hr=(e,t)=>{if(t)for(const n in t)$n(e,n,t[n])},xr=(e,t)=>{if(t)for(const n in t)Ic(e,t,n)},Ic=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Ep=(e,...t)=>typeof e=="function"?Xs(Qs,e,...t):Xs(()=>kp(Qs(),e),...t),Ce=Xs(Qs),Bo=x.createContext(!1),_p=()=>x.useContext(Bo);Bo.Provider;const Lc={featureColor:"--color-palette-feature",featureTextColor:"--color-palette-feature-text",accentColor:"--color-palette-accent",accentTextColor:"--color-palette-accent-text",backgroundColor:"--color-palette-bg",textColor:"--color-palette-text",headingColor:"--color-palette-heading"},Cp=Object.keys(Lc);function Gt({paletteEntry:e,children:t,className:n}){const{linkedEntries:r}=J(),o=e.fields,i={};for(const a of Cp){const l=o[a],c=Lc[a];if(!l?.sys.id){i[c]="initial";continue}const d=r.find(u=>u.sys.id===l.sys.id);d&&_m(d)?i[c]=`#${vc(d.fields.hexcode)}`:i[c]="initial"}return s.jsx(Bo.Provider,{value:!0,children:s.jsx("div",{className:Ce("bg-palette-bg",n),style:i,children:t})})}const zo=ee("platinumModules"),O=e=>typeof e=="string"?e:void 0,Le=e=>typeof e=="boolean"?e:void 0,Js=e=>Array.isArray(e)?e.filter(t=>typeof t=="string"):[],ss="/fs-frontend-assets/sprite-Cp7aeNm4.svg",Tp={money:{small:"12px",default:"24px",large:"32px",xlarge:"42px"},uswitch:{small:"12px",default:"20px",large:"32px",xlarge:"42px"},confused:{small:"12px",default:"20px",large:"32px",xlarge:"42px"}},H=({glyph:e,color:t,size:n="default",fill:r,ariaLabel:o,className:i,...a})=>{const l=Te(),c=Tp[l][n],d=`${ss}#${e}`;return s.jsx("svg",{style:{width:c,height:c},stroke:t,fill:r,color:t,className:i,role:o?void 0:"presentation","aria-label":o,...a,children:s.jsx("use",{href:d})})},ta=e=>e.replace(/[^A-Z0-9]/gi,""),Sp=({title:e,showIcon:t,stat:n,superscriptTag:r,id:o})=>s.jsx("div",{className:"my-3 mx-auto",children:s.jsx("div",{className:"bg-white border border-grey10 rounded-lg md:rounded-xl shadow-lg p-6",children:s.jsxs("div",{id:o?ta(o):void 0,className:"flex flex-col items-center",children:[s.jsxs("div",{className:"flex w-full justify-around items-center pb-5",children:[s.jsxs("div",{className:"body-lg-bold",children:[e,r?.word&&s.jsx("a",{href:`#${ta(r.link)}`,className:"no-underline",children:s.jsx("sup",{className:"body-xs text-accent",children:r.word})})]}),t&&s.jsx("div",{"aria-hidden":"true",children:s.jsx(H,{glyph:"stats-blob",color:"var(--color-primary)",ariaLabel:""})})]}),s.jsxs("div",{children:[n.prefix&&s.jsx("span",{className:"heading-md text-accent-alt",children:n.prefix}),s.jsx("span",{className:"heading-md text-accent-alt text-[60px]",children:n.stat}),n.suffix&&s.jsx("span",{className:"heading-md text-accent-alt",children:n.suffix})]})]})})});function Ap(e){if(!(!V(e)||typeof e.stat!="string"))return{prefix:O(e.prefix),stat:e.stat,suffix:O(e.suffix)}}function Rp(e){if(!(!V(e)||typeof e.word!="string"||typeof e.link!="string"))return{word:e.word,link:e.link}}const Dc=({entry:e})=>{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},o=Ap(r.stat),i=O(r.title);return!i||!o?null:s.jsx(Sp,{title:i,showIcon:Le(r.showIcon),stat:o,superscriptTag:Rp(r.superscriptTag),id:n})};var C=(function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e})({}),ye=(function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e})({}),Ve=(function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="str
2ikethrough",e})({});const Pp=[C.PARAGRAPH,C.HEADING_1,C.HEADING_2,C.HEADING_3,C.HEADING_4,C.HEADING_5,C.HEADING_6,C.OL_LIST,C.UL_LIST,C.HR,C.QUOTE,C.EMBEDDED_ENTRY,C.EMBEDDED_ASSET,C.EMBEDDED_RESOURCE,C.TABLE],Oc=[C.PARAGRAPH,C.HEADING_1,C.HEADING_2,C.HEADING_3,C.HEADING_4,C.HEADING_5,C.HEADING_6,C.OL_LIST,C.UL_LIST,C.HR,C.QUOTE,C.EMBEDDED_ENTRY,C.EMBEDDED_ASSET,C.EMBEDDED_RESOURCE];C.TABLE,C.TABLE_ROW,C.TABLE_CELL,C.TABLE_HEADER_CELL;C.HR,C.EMBEDDED_ENTRY,C.EMBEDDED_ASSET,C.EMBEDDED_RESOURCE;const Ip={[C.OL_LIST]:[C.LIST_ITEM],[C.UL_LIST]:[C.LIST_ITEM],[C.LIST_ITEM]:Oc,[C.QUOTE]:[C.PARAGRAPH],[C.TABLE]:[C.TABLE_ROW],[C.TABLE_ROW]:[C.TABLE_CELL,C.TABLE_HEADER_CELL],[C.TABLE_CELL]:[C.PARAGRAPH,C.UL_LIST,C.OL_LIST],[C.TABLE_HEADER_CELL]:[C.PARAGRAPH]},Lp=[C.HEADING_1,C.HEADING_2,C.HEADING_3,C.HEADING_4,C.HEADING_5,C.HEADING_6];[C.PARAGRAPH,...Lp];C.DOCUMENT,C.PARAGRAPH,C.HEADING_1,C.HEADING_2,C.HEADING_3,C.HEADING_4,C.HEADING_5,C.HEADING_6,C.OL_LIST,C.UL_LIST,C.LIST_ITEM,C.HR,C.QUOTE,C.EMBEDDED_ENTRY,C.EMBEDDED_ASSET,ye.HYPERLINK,ye.ENTRY_HYPERLINK,ye.ASSET_HYPERLINK,ye.EMBEDDED_ENTRY;Ve.BOLD,Ve.CODE,Ve.ITALIC,Ve.UNDERLINE;C.DOCUMENT,C.PARAGRAPH;function Mc(e,t){for(const n of Object.keys(e))if(t===e[n])return!0;return!1}function Dp(e){return Mc(ye,e.nodeType)}function na(e){return Mc(C,e.nodeType)}function $c(e){return e.nodeType==="text"}function Op(e){if(e.nodeType!==C.PARAGRAPH||e.content.length!==1)return!1;const t=e.content[0];return t.nodeType==="text"&&t.value===""}function Mp(e){return e!=null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}const $p=2;function Fc(e){if(!Mp(e)||e.content.length<$p)return e;const t=e.content[e.content.length-1];return Op(t)?{...e,content:e.content.slice(0,-1)}:e}const gr=({path:e,property:t,typeName:n,value:r})=>({details:`The type of "${t}" is incorrect, expected type: ${n}`,name:"type",path:e.toArray(),type:n,value:r}),Fp=({min:e,value:t,path:n})=>({name:"size",min:e,path:n.toArray(),details:`Size must be at least ${e}`,value:t}),Bp=({max:e,value:t,path:n})=>({name:"size",max:e,path:n.toArray(),details:`Size must be at most ${e}`,value:t}),zp=({expected:e,value:t,path:n})=>({details:"Value must be one of expected values",name:"in",expected:[...e].sort(),path:n.toArray(),value:t}),Hp=({property:e,path:t})=>({details:`The property "${e}" is not expected`,name:"unexpected",path:t.toArray()}),Vp=({property:e,path:t})=>({details:`The property "${e}" is required here`,name:"required",path:t.toArray()});class dn{obj;path;_errors=[];constructor(t,n){this.obj=t,this.path=n}catch=(...t)=>{this._errors.push(...t)};get errors(){const t=n=>JSON.stringify({details:n.details,path:n.path});return this._errors.filter((n,r)=>this._errors.findIndex(o=>t(n)===t(o))===r)}exists=t=>t in this.obj?!0:(this.catch(Vp({property:t,path:this.path.of(t)})),!1);object=t=>{const n=t?this.obj[t]:this.obj;if(t&&!this.exists(t))return!1;if(typeof n=="object"&&!Array.isArray(n)&&n!==null)return!0;const r=t?this.path.of(t):this.path,o=t??this.path.last()??"value";return this.catch(gr({typeName:"Object",property:o,path:r,value:n})),!1};string=t=>{const n=this.obj[t];return t&&!this.exists(t)?!1:typeof n=="string"?!0:(this.catch(gr({typeName:"String",property:t,path:this.path.of(t),value:n})),!1)};number=(t,n)=>{const r=this.obj[t];return n&&!(t in this.obj)?!0:this.exists(t)?typeof r=="number"&&!Number.isNaN(r)?!0:(this.catch(gr({typeName:"Number",property:t,path:this.path.of(t),value:r})),!1):!1};array=t=>{const n=this.obj[t];return t&&!this.exists(t)?!1:Array.isArray(n)?!0:(this.catch(gr({typeName:"Array",property:t,path:this.path.of(t),value:n})),!1)};enum=(t,n)=>{const r=this.obj[t];return typeof r=="string"&&n.includes(r)?!0:(this.catch(zp({expected:n,value:r,path:this.path.of(t)})),!1)};empty=t=>{if(!this.array(t))return!1;const n=this.obj[t];return n.length===0?!0:(this.catch(Bp({max:0,value:n,path:this.path.of(t)})),!1)};minLength=(t,n)=>{if(!this.array(t))return!1;const r=this.obj[t];return r.length>=n?!0:(this.catch(Fp({min:n,value:r,path:this.path.of(t)})),!1)};noAdditionalProperties=t=>{const n=Object.keys(this.obj).sort().filter(r=>!t.includes(r));
2return n.forEach(r=>this.catch(Hp({property:r,path:this.path.of(r)}))),n.length===0};each=(t,n)=>{if(!this.array(t))return;const r=this.obj[t];let o=!1;r.forEach((i,a)=>{if(o)return;const l=n(i,this.path.of(t).of(a));l.length>0&&(o=!0),this.catch(...l)})}}const Fn=[];class Ho{contentRule;validateData;constructor(t,n){this.contentRule=t,this.validateData=n}assert(t,n){const r=new dn(t,n);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);const{nodeTypes:o,min:i=0}=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(t,n);if(o.length===0&&i>0)throw new Error(`Invalid content rule. Cannot have enforce a 'min' of ${i} with no nodeTypes`);if(r.minLength("content",i),o.length===0?r.empty("content"):r.each("content",(a,l)=>{const c=new dn(a,l);return c.object()&&c.enum("nodeType",o),c.errors}),r.object("data")){const a=this.validateData?.(t.data,n.of("data"))??[];r.catch(...a)}return r.errors}}class Up extends Ho{linkType;type;constructor(t,n){super(n,(r,o)=>this.assertLink(r,o)),this.linkType=t,this.type=this.linkType.startsWith("Contentful:")?"ResourceLink":"Link"}assertLink=(t,n)=>{const r=new dn(t,n);if(r.object("target")){const o=new dn(t.target.sys,n.of("target").of("sys"));o.object()&&(o.enum("type",[this.type]),o.enum("linkType",[this.linkType]),this.type==="Link"?(o.string("id"),o.noAdditionalProperties(["type","linkType","id"])):this.type==="ResourceLink"&&(o.string("urn"),o.noAdditionalProperties(["type","linkType","urn"]))),r.catch(...o.errors)}return r.noAdditionalProperties(["target"]),r.errors}}class Gp extends Ho{constructor(){super(["text"],(t,n)=>this.assertLink(t,n))}assertLink=(t,n)=>{const r=new dn(t,n);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}}const wt=(e,t)=>new Ho(e,t),Ot=(e,t)=>new Up(e,t),It=wt([...Object.values(ye),"text"].sort()),ra=wt([C.LIST_ITEM]),sa=Ot("Entry",Fn),oa=wt(()=>({nodeTypes:[C.PARAGRAPH],min:1}),(e,t)=>{const n=new dn(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});C.DOCUMENT+"",wt(Pp),C.PARAGRAPH+"",C.HEADING_1+"",C.HEADING_2+"",C.HEADING_3+"",C.HEADING_4+"",C.HEADING_5+"",C.HEADING_6+"",C.QUOTE+"",wt(Ip[C.QUOTE]),C.EMBEDDED_ENTRY+"",C.EMBEDDED_ASSET+"",Ot("Asset",Fn),C.EMBEDDED_RESOURCE+"",Ot("Contentful:Entry",Fn),C.HR+"",wt(Fn),C.OL_LIST+"",C.UL_LIST+"",C.LIST_ITEM+"",wt([...Oc].sort()),C.TABLE+"",wt(()=>({nodeTypes:[C.TABLE_ROW],min:1})),C.TABLE_ROW+"",wt(()=>({nodeTypes:[C.TABLE_CELL,C.TABLE_HEADER_CELL],min:1})),C.TABLE_CELL+"",C.TABLE_HEADER_CELL+"",ye.HYPERLINK+"",new Gp,ye.EMBEDDED_ENTRY+"",ye.EMBEDDED_RESOURCE+"",Ot("Contentful:Entry",Fn),ye.ENTRY_HYPERLINK+"",Ot("Entry",["text"]),ye.ASSET_HYPERLINK+"",Ot("Asset",["text"]),ye.RESOURCE_HYPERLINK+"",Ot("Contentful:Entry",["text"]);function gn(e,t=" ",n={}){if(!e||!e.content||!Array.isArray(e.content))return"";let r=e;return e.nodeType===C.DOCUMENT&&n.stripEmptyTrailingParagraph&&(r=Fc(e)),r.content.reduce((o,i,a)=>{let l;if($c(i))l=i.value;else if((na(i)||Dp(i))&&(l=gn(i,t,n),!l.length))return o;const c=r.content[a+1],u=c&&na(c)?t:"";return o+l+u},"")}function Wp(e,t){return x.isValidElement(e)&&e.key===null?x.cloneElement(e,{key:t}):e}function qp(e,t){return e.map((n,r)=>Wp(Bc(n,t),r))}function Bc(e,t){const{renderNode:n,renderMark:r,renderText:o,preserveWhitespace:i}=t;if($c(e)){let a=o?o(e.value):e.value;if(i&&!o){a=a.replace(/ {2,}/g,d=>" ".repeat(d.length));const l=a.split(`
3`),c=[];l.forEach((d,u)=>{c.push(d),u!==l.length-1&&c.push(Q.createElement("br",null))}),a=c}return e.marks.reduce((l,c)=>r[c.type]?r[c.type](l):l,a)}else{const a=qp(e.content,t);return!e.nodeType||!n[e.nodeType]?Q.createElement(Q.Fragment,null,a):n[e.nodeType](e,a)}}const Yp={[C.DOCUMENT]:(e,t)=>t,[C.PARAGRAPH]:(e,t)=>Q.createElement("p",null,t),[C.HEADING_1]:(e,t)=>Q.createElement("h1",null,t),[C.HEADING_2]:(e,t)=>Q.createElement("h2",null,t),[C.HEADING_3]:(e,t)=>Q.createElement("h3",null,t),[C.HEADING_4]:(e,t)=>Q.createElement("h4",null,t),[C.HEADING_5]:(e,t)=>Q.createElement("h5",null,t),[C.HEADING_6]:(e,t)=>Q.createElement("h6",null,t),[C.EMBEDDED_ENTRY]:(e,t)=>Q.createElement("div",null,t),[C.EMBEDDED_RESOURCE]:(e,t)=>Q.createElement("div",null,t),[C.UL_LIST]:(e,t)=>Q.createElement("ul",null,t),[C.OL_LIST]:(e,t)=>Q.createElement("ol",null,t),[C.LIST_ITEM]:(e,t)=>Q.createElement("li",null,t),[C.QUOTE]:(e,t)=>Q.createElement("blockquote",null,t),[C.HR]:()=>Q.createElement("hr",null),[C.TABLE]:(e,t)=>Q.createElement("table",null,Q.createElement("tbody",null,t)),[C.TABLE_ROW]:(e,t)=>Q.createElement("tr",null,t),[C.TABLE_HEADER_CELL]:(e,t)=>
3Q.createElement("th",null,t),[C.TABLE_CELL]:(e,t)=>Q.createElement("td",null,t),[ye.ASSET_HYPERLINK]:e=>As(ye.ASSET_HYPERLINK,e),[ye.ENTRY_HYPERLINK]:e=>As(ye.ENTRY_HYPERLINK,e),[ye.RESOURCE_HYPERLINK]:e=>ia(ye.RESOURCE_HYPERLINK,e),[ye.EMBEDDED_ENTRY]:e=>As(ye.EMBEDDED_ENTRY,e),[ye.EMBEDDED_RESOURCE]:(e,t)=>ia(ye.EMBEDDED_RESOURCE,e),[ye.HYPERLINK]:(e,t)=>Q.createElement("a",{href:e.data.uri},t)},Kp={[Ve.BOLD]:e=>Q.createElement("b",null,e),[Ve.ITALIC]:e=>Q.createElement("i",null,e),[Ve.UNDERLINE]:e=>Q.createElement("u",null,e),[Ve.CODE]:e=>Q.createElement("code",null,e),[Ve.SUPERSCRIPT]:e=>Q.createElement("sup",null,e),[Ve.SUBSCRIPT]:e=>Q.createElement("sub",null,e),[Ve.STRIKETHROUGH]:e=>Q.createElement("s",null,e)};function As(e,t){return Q.createElement("span",{key:t.data.target.sys.id},"type: ",t.nodeType," id: ",t.data.target.sys.id)}function ia(e,t){return Q.createElement("span",{key:t.data.target.sys.urn},"type: ",t.nodeType," urn: ",t.data.target.sys.urn)}function At(e,t={}){if(!e)return null;let n=e;return t.stripEmptyTrailingParagraph&&(n=Fc(e)),Bc(n,{renderNode:{...Yp,...t.renderNode},renderMark:{...Kp,...t.renderMark},renderText:t.renderText,preserveWhitespace:t.preserveWhitespace})}var zc=typeof global=="object"&&global&&global.Object===Object&&global,Zp=typeof self=="object"&&self&&self.Object===Object&&self,Rt=zc||Zp||Function("return this")(),un=Rt.Symbol,Hc=Object.prototype,Xp=Hc.hasOwnProperty,Qp=Hc.toString,An=un?un.toStringTag:void 0;function Jp(e){var t=Xp.call(e,An),n=e[An];try{e[An]=void 0;var r=!0}catch{}var o=Qp.call(e);return r&&(t?e[An]=n:delete e[An]),o}var eh=Object.prototype,th=eh.toString;function nh(e){return th.call(e)}var rh="[object Null]",sh="[object Undefined]",aa=un?un.toStringTag:void 0;function bn(e){return e==null?e===void 0?sh:rh:aa&&aa in Object(e)?Jp(e):nh(e)}function os(e){return e!=null&&typeof e=="object"}var oh="[object Symbol]";function Vo(e){return typeof e=="symbol"||os(e)&&bn(e)==oh}function ih(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var rr=Array.isArray,la=un?un.prototype:void 0,ca=la?la.toString:void 0;function Vc(e){if(typeof e=="string")return e;if(rr(e))return ih(e,Vc)+"";if(Vo(e))return ca?ca.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Uc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ah="[object AsyncFunction]",lh="[object Function]",ch="[object GeneratorFunction]",dh="[object Proxy]";function Gc(e){if(!Uc(e))return!1;var t=bn(e);return t==lh||t==ch||t==ah||t==dh}var Rs=Rt["__core-js_shared__"],da=(function(){var e=/[^.]+$/.exec(Rs&&Rs.keys&&Rs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function uh(e){return!!da&&da in e}var fh=Function.prototype,mh=fh.toString;function Wt(e){if(e!=null){try{return mh.call(e)}catch{}try{return e+""}catch{}}return""}var ph=/[\\^$.*+?()[\]{}|]/g,hh=/^\[object .+?Constructor\]$/,xh=Function.prototype,gh=Object.prototype,bh=xh.toString,yh=gh.hasOwnProperty,vh=RegExp("^"+bh.call(yh).replace(ph,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wh(e){if(!Uc(e)||uh(e))return!1;var t=Gc(e)?vh:hh;return t.test(Wt(e))}function jh(e,t){return e?.[t]}function yn(e,t){var n=jh(e,t);return wh(n)?n:void 0}var eo=yn(Rt,"WeakMap"),Nh=9007199254740991,kh=/^(?:0|[1-9]\d*)$/;function Eh(e,t){var n=typeof e;return t=t??Nh,!!t&&(n=="number"||n!="symbol"&&kh.test(e))&&e>-1&&e%1==0&&e<t}function _h(e,t){return e===t||e!==e&&t!==t}var Ch=9007199254740991;function Uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ch}function Th(e){return e!=null&&Uo(e.length)&&!Gc(e)}var Sh=Object.prototype;function Wc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Sh;return e===n}var Ah="[object Arguments]";function ua(e){return os(e)&&bn(e)==Ah}var qc=Object.prototype,Rh=qc.hasOwnProperty,Ph=qc.propertyIsEnumerable,Yc=ua((function(){return arguments})())?ua:function(e){return os(e)&&Rh.call(e,"callee")&&!Ph.call(e,"callee")};function Ih(){return!1}var Kc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fa=Kc&&typeof module=="object"&&module&&!module.nodeType&&module,Lh=fa&&fa.exports===Kc,ma=Lh?Rt.Buffer:void 0,Dh=ma?ma.isBuffer:void 0,Oh=Dh||Ih,Mh="[object Arguments]",$h="[object Array]",Fh="[object Boolean]",Bh="[object Date]",zh="[object Error]",Hh="[object Function]",Vh="[object Map]",Uh="[object Number]",Gh="[object Object]",Wh="[object RegExp]",qh="[object Set]",Yh="[object String]",Kh="[object WeakMap]",Zh="[object ArrayBuffer]",Xh="[object DataView]",Qh="[object Float32Array]",Jh="[object Float64Array
3]",ex="[object Int8Array]",tx="[object Int16Array]",nx="[object Int32Array]",rx="[object Uint8Array]",sx="[object Uint8ClampedArray]",ox="[object Uint16Array]",ix="[object Uint32Array]",ve={};ve[Qh]=ve[Jh]=ve[ex]=ve[tx]=ve[nx]=ve[rx]=ve[sx]=ve[ox]=ve[ix]=!0;ve[Mh]=ve[$h]=ve[Zh]=ve[Fh]=ve[Xh]=ve[Bh]=ve[zh]=ve[Hh]=ve[Vh]=ve[Uh]=ve[Gh]=ve[Wh]=ve[qh]=ve[Yh]=ve[Kh]=!1;function ax(e){return os(e)&&Uo(e.length)&&!!ve[bn(e)]}function lx(e){return function(t){return e(t)}}var Zc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vn=Zc&&typeof module=="object"&&module&&!module.nodeType&&module,cx=Vn&&Vn.exports===Zc,Ps=cx&&zc.process,pa=(function(){try{var e=Vn&&Vn.require&&Vn.require("util").types;return e||Ps&&Ps.binding&&Ps.binding("util")}catch{}})(),ha=pa&&pa.isTypedArray,dx=ha?lx(ha):ax;function ux(e,t){return function(n){return e(t(n))}}var fx=ux(Object.keys,Object),mx=Object.prototype,px=mx.hasOwnProperty;function hx(e){if(!Wc(e))return fx(e);var t=[];for(var n in Object(e))px.call(e,n)&&n!="constructor"&&t.push(n);return t}var xx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gx=/^\w*$/;function bx(e,t){if(rr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Vo(e)?!0:gx.test(e)||!xx.test(e)||t!=null&&e in Object(t)}var qn=yn(Object,"create");function yx(){this.__data__=qn?qn(null):{},this.size=0}function vx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wx="__lodash_hash_undefined__",jx=Object.prototype,Nx=jx.hasOwnProperty;function kx(e){var t=this.__data__;if(qn){var n=t[e];return n===wx?void 0:n}return Nx.call(t,e)?t[e]:void 0}var Ex=Object.prototype,_x=Ex.hasOwnProperty;function Cx(e){var t=this.__data__;return qn?t[e]!==void 0:_x.call(t,e)}var Tx="__lodash_hash_undefined__";function Sx(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qn&&t===void 0?Tx:t,this}function zt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zt.prototype.clear=yx;zt.prototype.delete=vx;zt.prototype.get=kx;zt.prototype.has=Cx;zt.prototype.set=Sx;function Ax(){this.__data__=[],this.size=0}function is(e,t){for(var n=e.length;n--;)if(_h(e[n][0],t))return n;return-1}var Rx=Array.prototype,Px=Rx.splice;function Ix(e){var t=this.__data__,n=is(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Px.call(t,n,1),--this.size,!0}function Lx(e){var t=this.__data__,n=is(t,e);return n<0?void 0:t[n][1]}function Dx(e){return is(this.__data__,e)>-1}function Ox(e,t){var n=this.__data__,r=is(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function vn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vn.prototype.clear=Ax;vn.prototype.delete=Ix;vn.prototype.get=Lx;vn.prototype.has=Dx;vn.prototype.set=Ox;var Gr=yn(Rt,"Map");function Mx(){this.size=0,this.__data__={hash:new zt,map:new(Gr||vn),string:new zt}}function $x(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function as(e,t){var n=e.__data__;
vendor: 1,074 bytes, line 3
3return $x(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Fx(e){var t=as(this,e).delete(e);return this.size-=t?1:0,t}function Bx(e){return as(this,e).get(e)}function zx(e){return as(this,e).has(e)}function Hx(e,t){var n=as(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function qt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qt.prototype.clear=Mx;qt.prototype.delete=Fx;qt.prototype.get=Bx;qt.prototype.has=zx;qt.prototype.set=Hx;var Vx="Expected a function";function Go(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Vx);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Go.Cache||qt),n}Go.Cache=qt;var Ux=500;function Gx(e){var t=Go(e,function(r){return n.size===Ux&&n.clear(),r}),n=t.cache;return t}var Wx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qx=/\\(\\)?/g,Yx=Gx(function(e){var t=[];
3return e.charCodeAt(0)===46&&t.push(""),e.replace(Wx,function(n,r,o,i){t.push(o?i.replace(qx,"$1"):r||n)}),t});function Wo(e){return e==null?"":Vc(e)}function Xc(e,t){return rr(e)?e:bx(e,t)?[e]:Yx(Wo(e))}function Qc(e){if(typeof e=="string"||Vo(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Kx(e,t){t=Xc(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Qc(t[n++])];return n&&n==r?e:void 0}function to(e,t,n){var r=e==null?void 0:Kx(e,t);return r===void 0?n:r}function Zx(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;)n=t(n,e[o],o,e);return n}function Xx(e){return function(t){return e?.[t]}}var Qx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}
3,Jx=Xx(Qx),eg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tg="\\u0300-\\u036f",ng="\\ufe20-\\ufe2f",rg="\\u20d0-\\u20ff",sg=tg+ng+rg,og="["+sg+"]",ig=RegExp(og,"g");function ag(e){return e=Wo(e),e&&e.replace(eg,Jx).replace(ig,"")}var lg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function cg(e){return e.match(lg)||[]}var dg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function ug(e){return dg.test(e)}var Jc="\\ud800-\\udfff",fg="\\u0300-\\u036f",mg="\\ufe20-\\ufe2f",pg="\\u20d0-\\u20ff",hg=fg+mg+pg,ed="\\u2700-\\u27bf",td="a-z\\xdf-\\xf6\\xf8-\\xff",xg="\\xac\\xb1\\xd7\\xf7",gg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bg="\\u2000-\\u206f",yg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nd="A-Z\\xc0-\\xd6\\xd8-\\xde",vg="\\ufe0e\\ufe0f",rd=xg+gg+bg+yg,sd="['’]",xa="["+rd+"]",wg="["+hg+"]",od="\\d+",jg="["+ed+"]",id="["+td+"]",ad="[^"+Jc+rd+od+ed+td+nd+"]",Ng="\\ud83c[\\udffb-\\udfff]",kg="(?:"+wg+"|"+Ng+")",Eg="[^"+Jc+"]",ld="(?:\\ud83c[\\udde6-\\uddff]){2}",cd="[\\ud800-\\udbff][\\udc00-\\udfff]",on="["+nd+"]",_g="\\u200d",ga="(?:"+id+"|"+ad+")",Cg="(?:"+on+"|"+ad+")",ba="(?:"+sd+"(?:d|ll|m|re|s|t|ve))?",ya="(?:"+sd+"(?:D|LL|M|RE|S|T|VE))?",dd=kg+"?",ud="["+vg+"]?",Tg="(?:"+_g+"(?:"+[Eg,ld,cd].join("|")+")"+ud+dd+")*",Sg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ag="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rg=ud+dd+Tg,Pg="(?:"+[jg,ld,cd].join("|")+")"+Rg,Ig=RegExp([on+"?"+id+"+"+ba+"(?="+[xa,on,"$"].join("|")+")",Cg+"+"+ya+"(?="+[xa,on+ga,"$"].join("|")+")",on+"?"+ga+"+"+ba,on+"+"+ya,Ag,Sg,od,Pg].join("|"),"g");function Lg(e){return e.match(Ig)||[]}function Dg(e,t,n){return e=Wo(e),t=t,t===void 0?ug(e)?Lg(e):cg(e):e.match(t)||[]}var Og="['’]",Mg=RegExp(Og,"g");function $g(e){return function(t){return Zx(Dg(ag(t).replace(Mg,"")),e,"")}}var no=yn(Rt,"DataView"),ro=yn(Rt,"Promise"),so=yn(Rt,"Set"),va="[object Map]",Fg="[object Object]",wa="[object Promise]",ja="[object Set]",Na="[object WeakMap]",ka="[object DataView]",Bg=Wt(no),zg=Wt(Gr),Hg=Wt(ro),Vg=Wt(so),Ug=Wt(eo),Mt=bn;(no&&Mt(new no(new ArrayBuffer(1)))!=ka||Gr&&Mt(new Gr)!=va||ro&&Mt(ro.resolve())!=wa||so&&Mt(new so)!=ja||eo&&Mt(new eo)!=Na)&&(Mt=function(e){var t=bn(e),n=t==Fg?e.constructor:void 0,r=n?Wt(n):"";if(r)switch(r){case Bg:return ka;case zg:return va;case Hg:return wa;case Vg:return ja;case Ug:return Na}return t});function Gg(e,t,n){t=Xc(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Qc(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Uo(o)&&Eh(a,o)&&(rr(e)||Yc(e)))}var Wg=Object.prototype,qg=Wg.hasOwnProperty;function Yg(e,t){return e!=null&&qg.call(e,t)}function Kg(e,t){return e!=null&&Gg(e,t,Yg)}var Zg="[object Map]",Xg="[object Set]",Qg=Object.prototype,Jg=Qg.hasOwnProperty;function fd(e){if(e==null)return!0;if(Th(e)&&(rr(e)||typeof e=="string"||typeof e.splice=="function"||Oh(e)||dx(e)||Yc(e)))return!e.length;var t=Mt(e);if(t==Zg||t==Xg)return!e.size;if(Wc(e))return!hx(e).length;for(var n in e)if(Jg.call(e,n))return!1;return!0}var qo=$g(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),eb=/\s+/g,tb=e=>typeof e!="string"||!e?e:e.replace(eb," ").trim(),Wr=(...e)=>{const t=[],n=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let i=0,a=r.length;i<a;i++)n(r[i]);return}const o=typeof r;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&r!==r)return;t.push(String(r))}else if(o==="object"){const i=Object.keys(r);for(let a=0,l=i.length;a<l;a++){const c=i[a];r[c]&&t.push(c)}}};for(let r=0,o=e.length;r<o;r++){const i=e[r];i!=null&&n(i)}return t.length>0?tb(t.join(" ")):void 0},Ea=e=>e===!1?"false":e===!0?"true":e===0?"0":e,Ge=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},nb=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){const i=n[o];if(!r.includes(i)||e[i]!==t[i])return!1}return!0},rb=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];n in e?e[n]=Wr(e[n],r):e[n]=r}return e},md=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];Array.isArray(r)?md(r,t):r&&t.push(r)}},pd=(...e)=>{const t=[];md(e,t);const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},oo=(e,t)=>{const n={};for(const r in e){const o=e[r];if(r in t){const i=t[r];Array.isArray(o)||Array.isArray(i)?n[r]=pd(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?n[r]=oo(o,i):n[r]=i+" "+o}else n[r]=o}for(const r in t)r in e||(n[r]=t[r]);return n},sb={twMerge:!0,twMergeConfig:{}};function ob(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){e=null,t={},n=!1}}}var jt=ob(),ib=e=>{const t=(r,o)=>{const{extend:i=null,slots:a={},variants:l={},compoundVariants:c=[],compoundSlots:d=[],defaultVariants:u={}}=r,f={...sb,...o},m=i?.base?Wr(i.base,r?.base):r?.base,h=i?.variants&&!Ge(i.variants)?oo(l,i.variants):l,p=i?.defaultVariants&&!Ge(i.defaultVariants)?{...i.defaultVariants,...u}:u;!Ge(f.twMergeConfig)&&!nb(f.twMergeConfig,jt.cachedTwMergeConfig)&&(jt.didTwMergeConfigChange=!0,jt.cachedTwMergeConfig=f.twMergeConfig);const b=Ge(i?.slots),g=Ge(a)?{}:{base:Wr(r?.base,b&&i?.base),...a},y=b?g:rb({...i?.slots},Ge(g)?{base:r?.base}:g),w=Ge(i?.compoundVariants)?c:pd(i?.compoundVariants,c),k=v=>{if(Ge(h)&&Ge(a)&&b)return e(m,v?.class,v?.className)(f);if(w&&!Array.isArray(w))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof w}`);if(d&&!Array.isArray(d))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof d}`);const j=(P,T=h,R=null,I=null)=>{const _=T[P];if(!_||Ge(_))return null;const $=I?.[P]??v?.[P];if($===null)return null;const z=Ea($);if(typeof z=="object")return null;const Y=p?.[P],X=z??Ea(Y);return _[X||"false"]}
3,E=()=>{if(!h)return null;const P=Object.keys(h),T=[];for(let R=0;R<P.length;R++){const I=j(P[R],h);I&&T.push(I)}return T},N=(P,T)=>{if(!h||typeof h!="object")return null;const R=[];for(const I in h){const _=j(I,h,P,T),$=P==="base"&&typeof _=="string"?_:_&&_[P];$&&R.push($)}return R},S={};for(const P in v){const T=v[P];T!==void 0&&(S[P]=T)}const D=(P,T)=>{const R=typeof v?.[P]=="object"?{[P]:v[P]?.initial}:{};return{...p,...S,...R,...T}},L=(P=[],T)=>{const R=[],I=P.length;for(let _=0;_<I;_++){const{class:$,className:z,...Y}=P[_];let X=!0;const q=D(null,T);for(const K in Y){const oe=Y[K],je=q[K];if(Array.isArray(oe)){if(!oe.includes(je)){X=!1;break}}else{if((oe==null||oe===!1)&&(je==null||je===!1))continue;if(je!==oe){X=!1;break}}}X&&($&&R.push($),z&&R.push(z))}return R},F=P=>{const T=L(w,P);if(!Array.isArray(T))return T;const R={},I=e;for(let _=0;_<T.length;_++){const $=T[_];if(typeof $=="string")R.base=I(R.base,$)(f);else if(typeof $=="object")for(const z in $)R[z]=I(R[z],$[z])(f)}return R},M=P=>{if(d.length<1)return null;const T={},R=D(null,P);for(let I=0;I<d.length;I++){const{slots:_=[],class:$,className:z,...Y}=d[I];if(!Ge(Y)){let X=!0;for(const q in Y){const K=R[q],oe=Y[q];if(K===void 0||(Array.isArray(oe)?!oe.includes(K):oe!==K)){X=!1;break}}if(!X)continue}for(let X=0;X<_.length;X++){const q=_[X];T[q]||(T[q]=[]),T[q].push([$,z])}}return T};if(!Ge(a)||!b){const P={};if(typeof y=="object"&&!Ge(y)){const T=e;for(const R in y)P[R]=I=>{const _=F(I),$=M(I);return T(y[R],N(R,I),_?_[R]:void 0,$?$[R]:void 0,I?.class,I?.className)(f)}}return P}return e(m,E(),L(w),v?.class,v?.className)(f)},A=()=>{if(!(!h||typeof h!="object"))return Object.keys(h)};return k.variantKeys=A(),k.extend=i,k.base=m,k.slots=y,k.variants=h,k.defaultVariants=p,k.compoundSlots=d,k.compoundVariants=w,k};return{tv:t,createTV:r=>(o,i)=>t(o,i?oo(r,i):r)}},ab=e=>Ge(e)?Ce:Ep({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),lb=(e,t)=>{const n=Wr(e);return!n||!(t?.twMerge??!0)?n:((!jt.cachedTwMerge||jt.didTwMergeConfigChange)&&(jt.didTwMergeConfigChange=!1,jt.cachedTwMerge=ab(jt.cachedTwMergeConfig)),jt.cachedTwMerge(n)||void 0)},cb=(...e)=>t=>lb(e,t),{tv:te}=ib(cb);const ls=e=>{if(typeof e!="object"||e===null)return!1;const t=e.sys;return typeof t!="object"||t===null?!1:typeof t.id=="string"},db=(e,t)=>{const n=[[null,[]]];for(const r of e.content){if(r.nodeType===C.EMBEDDED_ENTRY){const o=r.data.target;if(ls(o)){const i=t.find(a=>a.sys.id===o.sys.id);if(i&&tr(i)){n.push([i,[]]);continue}}}n[n.length-1][1].push(r)}return n},ub=(e,t)=>({...e,renderNode:{...e.renderNode,[C.HEADING_1]:(n,r)=>s.jsx("h1",{className:"rich-text-platinum-heading-1 text-palette-heading mb-3",children:r}),[C.HEADING_2]:(n,r)=>{const o=t&&qo(gn(n))||void 0;return s.jsx("h2",{id:o,className:"rich-text-platinum-heading-2 text-palette-heading mb-3",children:r})},[C.HEADING_3]:(n,r)=>s.jsx("h3",{className:"rich-text-platinum-heading-3 text-palette-heading mb-3",children:r}),[C.PARAGRAPH]:(n,r)=>s.jsx("p",{className:"rich-text-platinum-body text-palette-text pb-4",children:r})}}),fb=te({variants:{variant:{base:"","grey-box":["bg-grey10","p-5"],center:["text-center"],"center-shrink":["text-center","[&_*]:w-fit","[&_*]:mx-auto"],hero:["flex","flex-col","items-center","text-center","[&>div]:w-full"],"panel-primary":["p-6","bg-surface","shadow-lg","text-center","md:text-left","[&_button]:w-full"],boxout:["border-2","border-line","p-4","md:px-10","[&>div:last-of-type_p:last-of-type]:mb-0"],"small-print":["[&_p]:text-[80%]","[&_p]:mb-0"]}}}),_a=1152,mb=e=>{if(typeof e!="object"||e===null)return!1;const t=e.sys;return typeof t!="object"||t===null?!1:typeof t.id=="string"},pb=e=>e.replace(/[\s\W]+/g,""),hb=(e,t)=>{for(const n of e?.content??[]){if(n.nodeType!==C.EMBEDDED_ENTRY)continue;const r=n.data.target;if(!ls(r))continue;const o=t.find(i=>i.sys.id===r.sys.id);if(o&&zo(o)&&o.fields.variant==="stat-snippet")return o}return null},hd=(e,t,n,{renderLinkedEntry:r,collapseSpacing:o,embeddedEntryClassName:i})=>{const a={...t,renderNode:{...t.renderNode,[C.EMBEDDED_ENTRY]:c=>{const d=c.data.target;if(!ls(d))return null;const u=n.find(m=>m.sys.id===d.sys.id);if(u&&tr(u))return null;const f=r(d,{vertical:!o,horizontal:!1});return i?s.jsx("div",{className:i,children:f}):f}}};return db(e,n).map(([c,d],u)=>{if(d.length===0)return null;const f=At({nodeType:C.DOCUMENT,data:{},content:d},a);return c?s.jsx(Gt,{paletteEntry:c,className:"p-4 md:p-6 rounded-lg",children:f},u):s.jsx(x.Fragment,{children:f},u)})},xb=()=>s.jsx("span",{className:"shrink-0 mr-3 text-[45px] md:text-[65px] text-primary font-heading leading-none","aria-hidden":"true",children:"“"}),br="max-w-page mx-auto py-[var(--rich-text-platinum-extra-spacing-mobile)] md:py-[var(--rich-text-platinum-extra-spacing-desktop)]",gb=({content:e,contentTwo:t,heading:n,name:r,collapseSpacing:o=!1,options:i})=>{const{linkedEntries:a}=J(),l=ct(),c=r?pb(r):void 0,d=e?.content.slice().reverse().find(g=>g.nodeType===C.QUOTE),u=e&&d?{...e,content:e.content.filter(g=>g.nodeType!==C.QUOTE)}:e,f=hb(u,a),m=f&&u?{...u,content:u.content.filter(g=>
3{if(g.nodeType!==C.EMBEDDED_ENTRY)return!0;const y=g.data.target;return!ls(y)||y.sys.id!==f.sys.id})}:u,h=g=>hd(g,i,a,{renderLinkedEntry:l,collapseSpacing:o}),p=n&&At(n,i),b=d?s.jsxs("div",{className:"flex items-center",children:[s.jsx(xb,{}),At({nodeType:C.DOCUMENT,data:{},content:[d]},{renderNode:{[C.QUOTE]:(g,y)=>s.jsx(s.Fragment,{children:y}),[C.PARAGRAPH]:(g,y)=>s.jsx("p",{className:"heading-sm text-palette-accent-text font-heading",children:y})}})]}):null;return e&&!t?s.jsxs("div",{id:c,className:br,children:[p,s.jsxs("div",{className:"md:flex md:ml-[var(--rich-text-platinum-ml)] xl:gap-[5.9%]",children:[s.jsx("div",{className:"md:flex-[1_0_69.27%]",children:m&&h(m)}),s.jsxs("div",{className:"md:flex-[1_0_24.27%] flex flex-col justify-center px-4 md:px-0",children:[b,f&&s.jsx(Dc,{entry:f})]})]})]}):t&&!e?s.jsxs("div",{id:c,className:br,children:[p,s.jsxs("div",{className:"md:flex md:ml-[var(--rich-text-platinum-ml)]",children:[s.jsx("div",{className:"md:flex-[1_0_69.27%]"}),s.jsx("div",{className:"md:flex-[1_0_24.27%]",children:h(t)})]})]}):e&&t?s.jsxs("div",{id:c,className:br,children:[p,s.jsxs("div",{className:"rtb-two-col md:flex md:ml-[var(--rich-text-platinum-ml)] md:gap-[9%]",children:[s.jsx("div",{className:"rtb-col-one md:basis-[41%] ",children:h(e)}),s.jsx("div",{className:"rtb-col-two md:basis-[41%]",children:h(t)})]})]}):n?s.jsx("div",{id:c,className:br,children:p}):null},he=({content:e,contentTwo:t,heading:n,name:r,variant:o,options:i,collapseSpacing:a=!1,addHeadingIds:l=!1,embeddedEntryClassName:c})=>{const d=ct(),{linkedEntries:u,linkedAssets:f}=J(),m=x.useMemo(()=>({renderNode:{[C.HEADING_1]:(p,b)=>s.jsx("h1",{className:"rich-text-heading-1 text-palette-heading mb-4",children:b}),[C.HEADING_2]:(p,b)=>{const g=l&&qo(gn(p))||void 0;return s.jsx("h2",{id:g,className:"rich-text-heading-2 text-palette-heading mb-3",children:b})},[C.HEADING_3]:(p,b)=>s.jsx("h3",{className:"rich-text-heading-3 text-palette-heading mb-3",children:b}),[C.HEADING_4]:(p,b)=>s.jsx("h4",{className:"rich-text-heading-sm text-palette-heading mb-3",children:b}),[C.HEADING_5]:(p,b)=>s.jsx("h5",{className:"rich-text-heading-sm text-palette-heading mb-3",children:b}),[C.HEADING_6]:(p,b)=>s.jsx("h6",{className:"rich-text-heading-sm text-palette-heading mb-3",children:b}),[C.PARAGRAPH]:(p,b)=>s.jsx("p",{className:"rich-text-body text-palette-text mb-3",children:b}),[C.QUOTE]:(p,b)=>s.jsx("blockquote",{className:"bg-grey10 mx-0 my-3 px-6 py-4 [&>p]:my-0 [&>p]:border-l-2 [&>p]:border-accent [&>p]:py-3 [&>p]:pl-4 [&>p]:font-bold",children:b}),[C.UL_LIST]:(p,b)=>s.jsx("ul",{className:"list-disc pl-6 mb-3 contentful-list",children:b}),[C.OL_LIST]:(p,b)=>s.jsx("ol",{className:"list-decimal pl-6 mb-3 contentful-list",children:b}),[C.LIST_ITEM]:(p,b)=>s.jsx("li",{className:"[&>p:last-child]:mb-0",children:b}),[ye.HYPERLINK]:(p,b)=>s.jsx("a",{href:p.data.uri,className:"text-palette-accent-text underline",children:b}),[C.EMBEDDED_ASSET]:p=>{const b=p.data.target;if(!mb(b))return null;const g=yt(b,f);if(!g)return null;const y=g.fields.file?.url,w=g.fields.title??"",k=g.fields.file?.details.image,A=k?Math.round(k.height/k.width*_a):void 0;return s.jsx(Re,{src:y,alt:w,width:_a,height:A,className:"py-3 md:py-6"})},...i?.renderNode},renderMark:{[Ve.CODE]:p=>s.jsx("strong",{className:"font-heading bg-surface-highlight-strong py-1",children:p}),...i?.renderMark}}),[i,l]),h=x.useMemo(()=>ub(m,l),[m,l]);return o==="platinum"?s.jsx(gb,{content:e,contentTwo:t,heading:n,name:r,collapseSpacing:a,options:h}):e?s.jsx("div",{className:fb({variant:o}),children:hd(e,m,u,{renderLinkedEntry:d,collapseSpacing:a,embeddedEntryClassName:c})}):null},bb=()=>()=>{},yb=()=>Q.useSyncExternalStore(bb,()=>!0,()=>!1);function Yo(e,t=[]){let n=[];function r(i,a){const l=x.createContext(a),c=n.length;n=[...n,a];const d=f=>{const{scope:m,children:h,...p}=f,b=m?.[e]?.[c]||l,g=x.useMemo(()=>p,Object.values(p));return s.jsx(b.Provider,{value:g,children:h})};d.displayName=i+"Provider";function u(f,m){const h=m?.[e]?.[c]||l,p=x.useContext(h);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[d,u]}const o=()=>{const i=n.map(a=>x.createContext(a));return function(l){const c=l?.[e]||i;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,vb(o,...t)]}function vb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));
3return function(i){const a=r.reduce((l,{useScope:c,scopeName:d})=>{const f=c(i)[`__scope${d}`];return{...l,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ca(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xd(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ca(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ca(e[o],null)}}}}function Yn(...e){return x.useCallback(xd(...e),e)}function io(e){const t=wb(e),n=x.forwardRef((r,o)=>{const{children:i,...a}=r,l=x.Children.toArray(i),c=l.find(Nb);if(c){const d=c.props.children,u=l.map(f=>f===c?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...a,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,u):null})}return s.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function wb(e){const t=x.forwardRef((n,r)=>{const{children:o,...i}=n;if(x.isValidElement(o)){const a=Eb(o),l=kb(i,o.props);return o.type!==x.Fragment&&(l.ref=r?xd(r,a):a),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jb=Symbol("radix.slottable");function Nb(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jb}function kb(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Eb(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _b(e){const t=e+"CollectionProvider",[n,r]=Yo(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=b=>{const{scope:g,children:y}=b,w=Q.useRef(null),k=Q.useRef(new Map).current;return s.jsx(o,{scope:g,itemMap:k,collectionRef:w,children:y})};a.displayName=t;const l=e+"CollectionSlot",c=io(l),d=Q.forwardRef((b,g)=>{const{scope:y,children:w}=b,k=i(l,y),A=Yn(g,k.collectionRef);return s.jsx(c,{ref:A,children:w})});d.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",m=io(u),h=Q.forwardRef((b,g)=>{const{scope:y,children:w,...k}=b,A=Q.useRef(null),v=Yn(g,A),j=i(u,y);return Q.useEffect(()=>(j.itemMap.set(A,{ref:A,...k}),()=>{j.itemMap.delete(A)})),s.jsx(m,{[f]:"",ref:v,children:w})});h.displayName=u;function p(b){const g=i(e+"CollectionConsumer",b);return Q.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const k=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((j,E)=>k.indexOf(j.ref.current)-k.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:d,ItemSlot:h},p,r]}function gd(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var Kn=globalThis?.document?x.useLayoutEffect:()=>{},Cb=We[" useInsertionEffect ".trim().toString()]||Kn;function Ko({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Tb({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const u=x.useRef(e!==void 0);x.useEffect(()=>{const f=u.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const d=x.useCallback(u=>{if(l){const f=Sb(u)?u(e):u;f!==e&&a.current?.(f)}else i(u)},[l,e,i,a]);return[c,d]}function Tb({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return Cb(()=>{i.current=t},[t]),x.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Sb(e){return typeof e=="function"}var Ab=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],sr=Ab.reduce((e,t)=>
3{const n=io(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Rb(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var bd=e=>{const{present:t,children:n}=e,r=Pb(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=Yn(r.ref,Ib(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null};bd.displayName="Presence";function Pb(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),i=x.useRef("none"),a=e?"mounted":"unmounted",[l,c]=Rb(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const d=yr(r.current);i.current=l==="mounted"?d:"none"},[l]),Kn(()=>{const d=r.current,u=o.current;if(u!==e){const m=i.current,h=yr(d);e?c("MOUNT"):h==="none"||d?.display==="none"?c("UNMOUNT"):c(u&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Kn(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=h=>{const b=yr(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&b&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=h=>{h.target===t&&(i.current=yr(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function yr(e){return e?.animationName||"none"}function Ib(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lb=We[" useId ".trim().toString()]||(()=>{}),Db=0;function yd(e){const[t,n]=x.useState(Lb());return Kn(()=>{n(r=>r??String(Db++))},[e]),t?`radix-${t}`:""}var cs="Collapsible",[Ob,vd]=Yo(cs),[Mb,Zo]=Ob(cs),wd=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...l}=e,[c,d]=Ko({prop:r,defaultProp:o??!1,onChange:a,caller:cs});return s.jsx(Mb,{scope:n,disabled:i,contentId:yd(),open:c,onOpenToggle:x.useCallback(()=>d(u=>!u),[d]),children:s.jsx(sr.div,{"data-state":Qo(c),"data-disabled":i?"":void 0,...l,ref:t})})});wd.displayName=cs;var jd="CollapsibleTrigger",Nd=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Zo(jd,n);return s.jsx(sr.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Qo(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:gd(e.onClick,o.onOpenToggle)})});Nd.displayName=jd;var Xo="CollapsibleContent",kd=x.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Zo(Xo,e.__scopeCollapsible);return s.jsx(bd,{present:n||o.open,children:({present:i})=>s.jsx($b,{...r,ref:t,present:i})})});kd.displayName=Xo;var $b=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Zo(Xo,n),[l,c]=x.useState(r),d=x.useRef(null),u=Yn(t,d),f=x.useRef(0),m=f.current,h=x.useRef(0),p=h.current,b=a.open||l,g=x.useRef(b),y=x.useRef(void 0);return x.useEffect(()=>{const w=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(w)},[]),Kn(()=>{const w=d.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const k=w.getBoundingClientRect();f.current=k.height,h.current=k.width,g.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),c(r)}},[a.open,r]),s.jsx(sr.div,{"data-state":Qo(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!b,...i,ref:u,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style},children:b&&o})});function Qo(e){return e?"open":"closed"}var Fb=wd,Bb=Nd,zb=kd,Hb=x.createContext(void 0);function Vb(e){const t=x.useContext(Hb);return e||t||"ltr"}var dt="Accordion",Ub=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Jo,Gb,Wb]=_b(dt),[ds]=Yo(dt,[Wb,vd]),ei=vd(),Ed=Q.forwardRef((e,t)=>
3{const{type:n,...r}=e,o=r,i=r;return s.jsx(Jo.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?s.jsx(Zb,{...i,ref:t}):s.jsx(Kb,{...o,ref:t})})});Ed.displayName=dt;var[_d,qb]=ds(dt),[Cd,Yb]=ds(dt,{collapsible:!1}),Kb=Q.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[l,c]=Ko({prop:n,defaultProp:r??"",onChange:o,caller:dt});return s.jsx(_d,{scope:e.__scopeAccordion,value:Q.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:Q.useCallback(()=>i&&c(""),[i,c]),children:s.jsx(Cd,{scope:e.__scopeAccordion,collapsible:i,children:s.jsx(Td,{...a,ref:t})})})}),Zb=Q.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a,l]=Ko({prop:n,defaultProp:r??[],onChange:o,caller:dt}),c=Q.useCallback(u=>l((f=[])=>[...f,u]),[l]),d=Q.useCallback(u=>l((f=[])=>f.filter(m=>m!==u)),[l]);return s.jsx(_d,{scope:e.__scopeAccordion,value:a,onItemOpen:c,onItemClose:d,children:s.jsx(Cd,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(Td,{...i,ref:t})})})}),[Xb,us]=ds(dt),Td=Q.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,l=Q.useRef(null),c=Yn(l,t),d=Gb(n),f=Vb(o)==="ltr",m=gd(e.onKeyDown,h=>{if(!Ub.includes(h.key))return;const p=h.target,b=d().filter(N=>!N.ref.current?.disabled),g=b.findIndex(N=>N.ref.current===p),y=b.length;if(g===-1)return;h.preventDefault();let w=g;const k=0,A=y-1,v=()=>{w=g+1,w>A&&(w=k)},j=()=>{w=g-1,w<k&&(w=A)};switch(h.key){case"Home":w=k;break;case"End":w=A;break;case"ArrowRight":i==="horizontal"&&(f?v():j());break;case"ArrowDown":i==="vertical"&&v();break;case"ArrowLeft":i==="horizontal"&&(f?j():v());break;case"ArrowUp":i==="vertical"&&j();break}const E=w%y;b[E].ref.current?.focus()});return s.jsx(Xb,{scope:n,disabled:r,direction:o,orientation:i,children:s.jsx(Jo.Slot,{scope:n,children:s.jsx(sr.div,{...a,"data-orientation":i,ref:c,onKeyDown:r?void 0:m})})})}),qr="AccordionItem",[Qb,ti]=ds(qr),Sd=Q.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=us(qr,n),a=qb(qr,n),l=ei(n),c=yd(),d=r&&a.value.includes(r)||!1,u=i.disabled||e.disabled;return s.jsx(Qb,{scope:n,open:d,disabled:u,triggerId:c,children:s.jsx(Fb,{"data-orientation":i.orientation,"data-state":Dd(d),...l,...o,ref:t,disabled:u,open:d,onOpenChange:f=>{f?a.onItemOpen(r):a.onItemClose(r)}})})});Sd.displayName=qr;var Ad="AccordionHeader",Rd=Q.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=us(dt,n),i=ti(Ad,n);return s.jsx(sr.h3,{"data-orientation":o.orientation,"data-state":Dd(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Rd.displayName=Ad;var ao="AccordionTrigger",Pd=Q.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=us(dt,n),i=ti(ao,n),a=Yb(ao,n),l=ei(n);return s.jsx(Jo.ItemSlot,{scope:n,children:s.jsx(Bb,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...r,ref:t})})});Pd.displayName=ao;var Id="AccordionContent",Ld=Q.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=us(dt,n),i=ti(Id,n),a=ei(n);return s.jsx(zb,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ld.displayName=Id;function Dd(e){return e?"open":"closed"}var Jb=Ed,ey=Sd,ty=Rd,ny=Pd,ry=Ld;const sy=te({base:"w-full"}),oy=te({base:"border-b border-grey20"}),iy=te({base:["flex w-full items-start","py-4","md:pt-6 md:pb-[18px] md:pl-6","cursor-pointer transition-all text-left","focus:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2","[&[data-state=open]_.accordion-icon>svg]:rotate-180","[&[data-state=open]_.accordion-icon_[data-accordion-icon-state=closed]]:hidden","[&[data-state=closed]_.accordion-icon_[data-accordion-icon-state=open]]:hidden"]}),ay=te({base:["overflow-hidden body-base text-primary leading-[150%]","bg-accordion-content","data-[state=closed]:animate-accordion-up","data-[state=open]:animate-accordion-down"]}),ly=te({base:"pb-6 pl-[45px] md:pl-[67px]"}),ni=({className:e,"data-testid":t,...n})=>s.jsx(Jb,{className:sy({className:e}),"data-testid":t,...n}),ri=({className:e,"data-testid":t,...n})=>s.jsx(ey,{className:oy({className:e}),"data-testid":t,...n}),si=({className:e,children:t,"data-testid":n,icon:r,...o}
3)=>s.jsx(ty,{className:"flex",children:s.jsxs(ny,{className:iy({className:e}),"data-testid":n,...o,children:[s.jsx("span",{className:"accordion-icon flex items-center shrink-0 pt-[10px] pr-4 pl-[5px] md:pr-6 md:pl-0",children:r?s.jsxs(s.Fragment,{children:[s.jsx(H,{glyph:r.closedGlyph,color:"currentColor",ariaLabel:"","data-accordion-icon-state":"closed"}),s.jsx(H,{glyph:r.openGlyph,color:"currentColor",ariaLabel:"","data-accordion-icon-state":"open"})]}):s.jsx("svg",{className:"h-6 w-6 transition-transform duration-300",viewBox:"0 0 18 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M1 1.5L9 9.5L16.5 1.5",stroke:"var(--color-accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),t]})}),oi=({className:e,children:t,"data-testid":n,...r})=>{const o=yb();return s.jsx(ry,{forceMount:o?void 0:!0,className:ay({className:o?void 0:"data-[state=closed]:hidden"}),"data-testid":n,...r,children:s.jsx("div",{className:ly({className:e}),children:t})})},Od=e=>e!=="confused"?null:{closedGlyph:"plus",openGlyph:"minus"},Md="pt-6 pl-[var(--accordion-content-indent)] md:pl-[var(--accordion-content-indent-lg)] [&>*:last-child>*:last-child]:mb-0",Ta=({heading:e,items:t=[],id:n})=>{const r=Te(),o=Od(r);return s.jsxs("div",{children:[e&&s.jsx("h2",{className:"font-heading font-semibold text-heading text-[30px] leading-[120%] mb-2 md:text-3xl md:mb-6",children:e}),s.jsx(ni,{type:"multiple",className:e?"[&>div]:md:w-[90%] [&>div]:md:mx-auto":"",children:t.map((i,a)=>s.jsxs(ri,{value:`item-${a}`,children:[s.jsxs(si,{icon:o??void 0,className:"body-lg-bold text-primary [justify-content:var(--accordion-summary-justify)] [&_.accordion-icon]:order-[var(--accordion-icon-order)]",onClick:l=>{const c=l.currentTarget.getAttribute("data-state")==="open";ze(c?"Accordion Closed":"Accordion Opened",{event_name:"Accordion Clicked",component_id:n,component_name:"Accordion",event_data:JSON.stringify({title:i.title})})},children:[i.iconUrl&&s.jsx("span",{className:"flex shrink-0 items-center justify-center w-12 h-12 rounded-full bg-grey10 mr-3",children:s.jsx("img",{src:i.iconUrl,alt:"",className:"w-7 h-7"})}),i.title]}),s.jsx(oi,{className:Md,children:i.content})]},a))})]})},cy=({heading:e,items:t})=>s.jsxs("div",{className:"my-6",children:[e&&s.jsx("h2",{className:"heading-md mb-12",children:e}),s.jsx("div",{className:"mx-0 lg:mx-[90px] space-y-6",children:t.map((n,r)=>s.jsxs("div",{className:"flex border border-grey10 bg-white p-6 shadow-lg",children:[n.iconUrl&&s.jsx("div",{className:"mr-6 shrink-0",children:s.jsx("img",{src:n.iconUrl,alt:n.title,className:"w-[var(--accordion-card-icon-size)] h-[var(--accordion-card-icon-size)]"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"body-lg-bold mb-3",children:n.title}),s.jsx("div",{className:"[&_button]:!w-[var(--accordion-card-cta-width)]",children:n.content})]})]},r))})]}),dy=({heading:e,items:t=[],id:n})=>{const r=Te(),o=Od(r);return s.jsxs("div",{children:[e&&s.jsx("h2",{className:"heading-md mb-2 md:mb-6",children:e}),s.jsx(ni,{type:"multiple",children:t.map((i,a)=>s.jsxs(ri,{value:`item-${a}`,className:"mb-[var(--accordion-item-gap)] border-b-[length:var(--accordion-item-border-width)] last:mb-0",children:[s.jsxs(si,{icon:o??void 0,className:"heading-sm bg-accordion-header text-on-accordion-header items-center justify-between [&_.accordion-icon]:order-last [&_.accordion-icon]:pt-0",onClick:l=>{const c=l.currentTarget.getAttribute("data-state")==="open";ze(c?"Accordion Closed":"Accordion Opened",{event_name:"Accordion Clicked",component_id:n,component_name:"PlatinumAccordion",event_data:JSON.stringify({title:i.title})})},children:[i.iconUrl&&s.jsx("img",{src:i.iconUrl,alt:"",className:"mr-3 h-5 w-5 shrink-0"}),i.title]}),s.jsx(oi,{className:Md,children:i.content})]},a))})]})},uy=(e,t)=>e?t.find(r=>r.sys.id===e.sys.id)?.fields.file?.url:void 0,fy=({entry:e})=>{const{linkedEntries:t,linkedAssets:n}=J();if(!Mm(e))return null;const{title:r,items:o,variant:i,faq:a}=e.fields,l=[],c=[];for(const u of o){const f=ke(u,t,"accordionItem");if(!f)continue;const m=f.title??"";l.push({title:f.title??"",content:s.jsx(he,{content:f.content}),iconUrl:uy(f.icon,n)}),a&&c.push({question:m,answer:gn(f.content)})}const d=a&&c.length>0?s.jsx(pn,{data:{"@type":"FAQPage",mainEntity:c.map(u=>
3({"@type":"Question",name:u.question,acceptedAnswer:{"@type":"Answer",text:u.answer}}))}}):null;return i==="platinum"?s.jsxs(s.Fragment,{children:[d,s.jsx(dy,{heading:r,items:l,id:e.sys.id})]}):i==="desktopCards"?s.jsxs(s.Fragment,{children:[d,s.jsx("div",{className:"block lg:hidden",children:s.jsx(Ta,{heading:r,items:l,id:e.sys.id})}),s.jsx("div",{className:"hidden lg:block",children:s.jsx(cy,{heading:r,items:l})})]}):s.jsxs(s.Fragment,{children:[d,s.jsx(Ta,{heading:r,items:l,id:e.sys.id})]})},my=ee("accountsGuide"),$d=ee("button"),Yt=(e,t)=>{try{const n=new URL(e);return Object.entries(t).forEach(([r,o])=>{o&&n.searchParams.set(r,o)}),n.toString()}catch{return e}},py=e=>{if(!e)return!1;try{return new URL(e).pathname.includes("/api/permalink/")}catch{return!1}},hy=(e,t)=>py(e)?Yt(e,{page:t}):e,Fd=te({base:["inline-flex items-center justify-center py-3 px-4 cursor-pointer","font-semibold rounded-cta min-w-30","focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 focus:ring-offset-focus-ring","disabled:cursor-not-allowed "],variants:{variant:{primary:["bg-cta text-on-cta border border-cta","hover:bg-cta-hover hover:border-cta-hover","active:bg-cta-active active:border-cta-active","focus:bg-cta-focus"],secondary:["bg-cta-secondary text-on-cta-secondary border border-cta-secondary-border","hover:bg-cta-secondary-hover hover:text-white","active:bg-cta-secondary-active active:text-white","focus:bg-white focus:text-grey90"],tertiary:["bg-white text-grey90 border border-grey100","hover:bg-grey10"],productTable:["[background:var(--gradient-cta)]","text-white border-0","hover:opacity-90"]},size:{small:["min-h-11"],large:["min-h-[59px]","cta-label-large"],fullWidth:["min-h-[59px]","cta-label-large","w-full"]},loading:{true:"cursor-wait"},disabled:{true:["pointer-events-none opacity-40","hover:bg-current hover:border-current hover:text-current"]}},compoundVariants:[{variant:"primary",disabled:!0,class:"bg-grey60 border-grey60 text-white"},{variant:"secondary",disabled:!0,class:"bg-grey10 border-grey10 text-grey90 "},{variant:"tertiary",disabled:!0,class:"bg-white text-grey40 border-grey40"},{disabled:!0,class:"opacity-40"},{loading:!0,class:"min-w-40"},{variant:"primary",loading:!0,class:"bg-cta border-cta text-on-cta opacity-100"},{variant:"secondary",loading:!0,class:"bg-cta-secondary border-cta-secondary-border text-on-cta-secondary opacity-100"}],defaultVariants:{variant:"primary",size:"large"}}),xy=({size:e})=>s.jsxs("svg",{className:`animate-spin mr-2 ${e==="small"?"h-4 w-4":"h-5 w-5"}`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[s.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1"}),s.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),Bd=({variant:e,size:t="small"})=>s.jsx(H,{glyph:"right-arrow",size:t,color:e==="secondary"?"var(--color-on-cta-secondary)":"var(--color-on-cta)",fill:e==="secondary"?"var(--color-on-cta-secondary)":"var(--color-on-cta)",ariaLabel:"arrow",className:"ml-3"}),Kt=({children:e,variant:t="primary",size:n="large",disabled:r=!1,loading:o=!1,onClick:i,type:a="button",className:l,"data-testid":c,withArrow:d=!1,...u})=>{const{app:f}=J(),m=r||o;return s.jsx("button",{className:Fd({variant:t,size:n,loading:o,disabled:m,className:l}),disabled:m,onClick:i,type:a,"data-testid":c,...u,children:o?s.jsx(xy,{size:n}):s.jsxs(s.Fragment,{children:[e,(d||f?.brand==="confused")&&s.jsx(Bd,{variant:t,size:f?.brand==="confused"?"default":"small"})]})})},gy=1e3,by=(e,t,n)=>e.ctrlKey||e.shiftKey||e.metaKey||e.button!==0||!t||n==="_blank",yy=e=>typeof e=="string"?e:typeof e=="number"?String(e):"",Me=({children:e,variant:t="primary",size:n="large",className:r,"data-testid":o,id:i,componentName:a,position:l,withArrow:c=!1,...d})=>{const{app:u}=J(),f=hy(d.href,u?.location.pathname),m={href:f,text:yy(e),position:l,componentId:i,componentName:a},h=g=>{const y=Bt("clicked",l),w=Ke({eventName:y,...m});if(by(g,f,d.target)){ze("Click Event",w);return}g.preventDefault(),lm("Click Event",w,gy).then(()=>{f&&(window.location.href=f)})},p=Bt("viewed",l),b=Ke({eventName:p,...m});return s.jsxs("a",{className:Fd({variant:t,size:n,className:r}),"data-testid":o,"data-nerd-attrs":JSON.stringify(b),onClick:h,...d,href:f,children:[e,(c||u?.brand==="confused")&&s.jsx(Bd,{variant:t,size:u?.brand==="confused"?"default":"small"})]})},vy=({guide:e,image:t,button:n})=>
3{const{title:r,description:o}=e.fields,i=t?.fields.file?.url;return s.jsxs("section",{className:"bg-surface-muted rounded-[36px] px-10 py-10 flex flex-col gap-10 items-center",children:[s.jsx("h2",{className:"font-heading font-semibold text-4xl text-primary text-center",children:"📣 Your guides"}),s.jsxs("div",{className:"flex flex-col md:flex-row gap-10 w-full",children:[s.jsxs("div",{className:"bg-white rounded-[20px] px-8 py-10 flex flex-col gap-6 md:flex-[638_1_0%]",children:[s.jsx("h3",{className:"font-heading font-semibold text-3xl text-primary leading-tight",children:r}),s.jsx("p",{className:"body-base",children:o}),n&&s.jsx(Me,{href:n.fields.link,variant:n.fields.variant??"primary",withArrow:!0,className:"self-start",size:n.fields.size??"large",target:"_blank",id:e.sys.id,componentName:"accountsGuide",children:n.fields.text})]}),i&&s.jsx("div",{className:"rounded-[20px] overflow-hidden relative min-h-[280px] md:min-h-0 md:flex-[450_1_0%]",children:s.jsx(Re,{src:i,alt:r,className:"absolute inset-0 w-full h-full object-cover"})})]})]})},wy=({entry:e})=>{const{linkedEntries:t}
3=J(),n=my(e)?e:void 0,r=Ut(n?.fields.image);if(!n)return null;const o=cn(n.fields.cta,t);return s.jsx(vy,{guide:n,image:r,button:o&&$d(o)?o:void 0})},jy=ee("aggregationTable"),Ny=e=>e.replace(/[\s\W]+/g,""),ky=(e,t)=>{let n=t;for(const r of e)if(!V(n)||(n=n[r],n==null))return;return n},zd=(e,t)=>{for(const n of e){const r=n[t];if(r)return r.buckets}},Hd=(e,t)=>e.keys?t.filter(n=>e.keys?.includes(n.key)).sort((n,r)=>(r.max_score?.value??0)-(n.max_score?.value??0))[0]:t.find(n=>n.key===e.key),Vd=(e,t)=>{const n=zd(t,e.label);if(!n)return;const r=Hd(e,n);if(r)return ky(e.aggValue.split("."),r)},Sa=(e,t)=>{if(e==null)return null;let n;if(typeof e=="number"&&!Number.isNaN(e))n=e.toFixed(2);else if(typeof e=="string")n=e!==""&&!Number.isNaN(Number(e))?Number(e).toFixed(2):e;else if(typeof e=="boolean")n=String(e);else return null;return t==="bold"?s.jsx("b",{children:n}):t==="percent"?`${n}%`:n},Ey=({ctaLink:e,componentId:t,contentfulName:n})=>{const r=Ke({eventName:Bt("clicked"),href:e.value,text:e.text,componentId:t,componentName:"aggregationTable"}),o=Ke({eventName:Bt("viewed"),href:e.value,text:e.text,componentId:t,componentName:"aggregationTable"}),i=()=>{ze("Click Event",{...r,contentful_name:n})};return s.jsxs("a",{href:e.value,onClick:i,"data-nerd-attrs":JSON.stringify(o),"aria-label":e.text,className:"inline-flex items-center justify-center text-grey90 text-md font-medium lg:bg-cta lg:border lg:border-cta lg:rounded-2xl lg:min-h-11 lg:py-2 lg:px-4 lg:hover:bg-cta-hover lg:hover:border-cta-hover",children:[s.jsx("span",{className:"hidden lg:inline",children:e.text}),s.jsx("span",{className:"lg:hidden",children:s.jsx(H,{glyph:"right-arrow-button",color:"var(--color-cta)",size:"xlarge",ariaLabel:""})})]})},_y=(e,t,n,r)=>{if(e.ctaLink)return s.jsx(Ey,{ctaLink:e.ctaLink,componentId:n,contentfulName:r});if(e.aggFrom){const o=Vd(e.aggFrom,t);return Sa(o,e.aggFrom.format??e.format)}return Sa(e.value,e.format)},Cy=(e,t)=>e.type==="th"||e.values.every(n=>n.value!==void 0||n.ctaLink?!0:n.aggFrom?Vd(n.aggFrom,t)!==void 0:!1),Ty=(e,t)=>{const n=[];for(const o of e){const i=o.values.find(a=>a.aggFrom?.schemaData);i?.aggFrom&&n.push(i.aggFrom)}if(n.length===0)return null;const r=[];for(const o of n){const i=zd(t,o.label),a=i?Hd(o,i):void 0;if(!a)continue;const l=a.by_top_hit?.hits.hits[0],c={position:r.length+1};for(const d of o.schemaData??[]){const[u,f]=Object.entries(d)[0]??[];u&&(c[u]=ne(f,l))}r.push(c)}return r.length===0?null:{"@type":"ItemList",numberOfItems:r.length,itemListElement:r}},Sy=({name:e,title:t,subheading:n,contents:r,aggs:o,entryId:i})=>{const a=e?Ny(e):void 0;return s.jsxs("div",{className:"my-3 lg:my-6",id:a,children:[r.map((l,c)=>{const d=Ty(l,o);return d?s.jsx(pn,{data:d},`schema-${c}`):null}),t&&s.jsx("h2",{className:"heading-md lg:text-4xl",children:t}),n&&s.jsx("div",{className:"body-lg text-xl pb-6 lg:text-lg",children:n}),r.map((l,c)=>s.jsx("div",{className:"my-3 overflow-hidden rounded-xl shadow-md bg-white",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsx("table",{className:"w-full border-separate border-spacing-0 [&_tr:last-child_td]:border-b-0",children:s.jsx("tbody",{children:l.map((d,u)=>Cy(d,o)?s.jsx("tr",{children:d.values.map((f,m)=>{const h=_y(f,o,i,e??"");return d.type==="th"?s.jsx("th",{className:"bg-surface-inverse text-white text-left text-md font-bold py-4 px-4 first:pl-6 lg:first:pl-10",children:h},m):s.jsx("td",{className:"text-left text-md text-primary py-4 px-4 first:pl-3 lg:first:pl-10 lg:last:pr-10 border-b border-grey10 [&>a]:float-right",children:h},m)})},u):null)})})})},`table-${c}`))]})},Ay=({entry:e})=>{const t=vm();if(!jy(e))return null;const{name:n,title:r,subheading:o,schema:i}=e.fields,a=e.sys.id,l=t?.[a];if(!l)return null;const c=i.grid?.contents;return!c||c.length===0?null:s.jsx(Sy,{name:n,title:r,subheading:o,contents:c,aggs:l.aggs,entryId:a})},Ud=ee("articleIntro");var Or={exports:{}},Ry=Or.exports,Aa;function Py(){return Aa||(Aa=1,(function(e,t){(function(n,r){e.exports=r()})(Ry,(function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var d=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return d.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return d.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return d.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}}));return i.bind(this)(u)}}}))})(Or)),Or.exports}var Iy=Py();const Gd=Ro(Iy);nr.extend(Gd);const vr="flex items-center justify-center w-12 h-12 border border-grey20";
3function Ra(e,t,n){return`${e} ${t}${n?`, ${n}`:""}`}const Ly=(e,t)=>[{label:"Share on Facebook",href:`https://www.facebook.com/sharer/sharer.php?u=${e}`,target:"_blank",rel:"noopener noreferrer",className:vr,icon:s.jsx(H,{glyph:"social-facebook",color:"none",fill:"#1877f2",ariaLabel:""})},{label:"Share on X",href:`https://x.com/intent/post?url=${e}&text=${t}`,target:"_blank",rel:"noopener noreferrer",className:`${vr} border-l-0`,icon:s.jsx(H,{glyph:"social-x",color:"none",fill:"#000000",ariaLabel:""})},{label:"Share on LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${e}`,target:"_blank",rel:"noopener noreferrer",className:`${vr} border-l-0`,icon:s.jsx(H,{glyph:"social-linkedin",color:"none",fill:"#0a66c2",ariaLabel:""})},{label:"Share by email",href:`mailto:?subject=${t}&body=${e}`,target:void 0,rel:void 0,className:`${vr} border-l-0`,icon:s.jsx(H,{glyph:"social-email",color:"none",fill:"none",ariaLabel:""})}],Dy=({title:e,description:t,articleDetails:n,authorName:r,authorUrl:o,authorRole:i,authorImageUrl:a,editorName:l,editorUrl:c,editorRole:d,factChecked:u,publishDate:f,updatedDate:m,shareUrl:h,pageTitle:p})=>{const b=r?Ra("Written by",r,i):void 0,g=l?Ra("Edited by",l,d):void 0,y=m??f,w=y?nr(y).format("D MMM YYYY"):void 0,k=[g,w].filter(Boolean).join(", "),A=h?{buttons:Ly(encodeURIComponent(h),encodeURIComponent(p??""))}:null;return s.jsxs("div",{className:"mx-auto",children:[s.jsx("h1",{className:"article-title text-grey80 mt-4 mb-3 lg:mb-12 lg:w-2/3",children:e}),s.jsxs("div",{className:"flex flex-wrap lg:flex-nowrap",children:[s.jsxs("div",{className:"w-full lg:w-2/3",children:[b&&s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a&&s.jsx("a",{href:o,className:"block shrink-0 h-10 w-10 lg:h-16 lg:w-16",children:s.jsx(Re,{src:a,alt:r??"",width:64,className:"w-full h-full object-cover rounded-full"})}),s.jsxs("div",{children:[s.jsx("p",{className:"body-base-bold text-grey80 m-0 lg:text-xl",children:s.jsx("a",{href:o,className:"no-underline text-inherit",children:b})}),k&&s.jsx("p",{className:"body-xs-bold text-accent block m-0 lg:text-base",children:c?s.jsx("a",{href:c,className:"no-underline font-bold text-link",children:k}):k})]})]}),u&&s.jsxs("div",{className:"inline-flex items-center gap-1.5 bg-accent text-white rounded-full px-3 py-1 text-sm font-semibold mb-4 mt-1",children:[s.jsx(H,{glyph:"fact-checked",color:"currentColor",fill:"currentColor",size:"small",ariaLabel:""}),"Fact Checked"]}),n&&s.jsx("p",{className:"body-sm lg:text-base text-grey80 m-0 mb-5",children:n}),s.jsx("p",{className:"body-base text-grey80 my-4",children:t})]}),A&&s.jsxs("div",{className:"w-full lg:w-1/3 lg:ml-4 lg:pl-4 lg:py-2",children:[s.jsx("p",{className:"body-base-bold font-heading text-grey80 mb-4",children:"Share this guide"}),s.jsx("div",{className:"flex",children:A.buttons.map(v=>s.jsx("a",{href:v.href,target:v.target,rel:v.rel,"aria-label":v.label,className:v.className,children:v.icon},v.label))})]})]})]})};function Oy(e){if(e)return e.startsWith("//")?`https:${e}`:e}function My(e,t){return{authorName:e?.fields.name,authorUrl:e?.fields.url,authorRole:e?.fields.role,authorImageUrl:t}}function $y(e){return{editorName:e?.fields.name,editorUrl:e?.fields.url,editorRole:e?.fields.role}}const Fy=({entry:e})=>{const{rootEntry:t}=J(),n=Te(),r=t?.fields.authors??[],o=t?.fields.editors??[],i=Wn(r,"author"),a=Wn(o,"author"),l=i.at(0),c=a.at(0),d=Ut(l?.fields.image),u=Oy(d?.fields.file?.url),f=t?.fields.url,m=f?mn(f,n):void 0,h=t?.fields.title??"";return Ud(e)?s.jsx(Dy,{title:e.fields.title,description:e.fields.description,articleDetails:e.fields.articleDetails,...My(l,u),...$y(c),factChecked:!!t?.fields.factChecked,publishDate:t?.fields.publishDate,updatedDate:t?.fields.updatedDate,shareUrl:m,pageTitle:h}):null},By=ee("authorGuidesModule"),or=({url:e,title:t,description:n,imageUrl:r,imageAlt:o,ctaText:i="Read more",className:a})=>s.jsxs("div",{className:Ce("guide-card flex flex-col overflow-hidden",a),children:[r&&s.jsx("a",{href:e,className:"block",tabIndex:-1,"aria-hidden":"true",children:s.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden",children:s.jsx(Re,{src:r,alt:o??"",className:"w-full h-full object-cover",width:600})})}),s.jsxs("div",{className:`flex flex-col gap-3 p-4 ${r?"flex-1":"mt-auto"}`,children:[t&&s.jsx("h3",{className:"guide-card-title line-clamp-2 m-0",children:s.jsx("a",{href:e,className:"hover:underline",children:t})}),n&&s.jsx("p",{className:"guide-card-body line-clamp-3 m-0",children:n}),s.jsx("a",{href:e,className:"body-sm guide-card-cta underline mt-auto pt-1",children:i})]})]}),zy=({total:e,limit:t,pathname:n,search:r})=>{if(e<=t)return null;const o=new URLSearchParams(r);o.set("page","-1");const i=`${n}?${o.toString()}`;return s.jsx("div",{className:"flex items-center justify-center mt-8",children:s.jsx("a",{href:i,className:"body-sm underline",children:"View All"})})},Hy=({sectionId:e,title:t,data:n,showViewAll:r=!1,pathname:o,search:i=""})=>{const{guides:a,total:l,limit:c}=n;return a.length===0?null:s.jsxs("section",{id:e,children:[t&&s.jsx("h3",{className:"heading-xs text-heading mb-4",children:t}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:a.map(d=>s.jsx(or,{...d},d.id))}),r&&s.jsx(zy,{total:l,limit:c,pathname:o,search:i})]})},Vy=({entry:e})=>{const{authorGuidesData:t,app:n}=J();if(!By(e))return null;const r=t?.[e.sys.id];if(!r)return null;const{name:o,title:i,showViewAll:a}=e.fields,l=o.replace(/\s+/g,""),c=n?.location.pathname??"",d=n?.location.search??"";return s.jsx(Hy,{sectionId:l,title:i,data:r,showViewAll:a,pathname:c,search:d})},Wd=ee("authorProfile"),Is=e=>e?e.content.length>0:!1,Uy=({twitterLink:e,linkedInLink:t})=>!e&&!t?null:s.jsxs("div",{className:"flex gap-6 mb-4",children:[e&&s.jsx("a",{href:e,"aria-label":"Twitter",children:s.jsx(H,{glyph:"social-twitter",color:"none",fill:"#1d9bf0",ariaLabel:""})}),t&&s.jsx("a",{href:t,"aria-label":"LinkedIn",children:s.jsx(H,{glyph:"social-linkedin",color:"none",fill:"#0a66c2",ariaLabel:""})})]}),Gy=({name:e,role:t,imageUrl:n,twitterLink:r,linkedInLink:o,bio:i,education:a,expertise:l,featuredInNews:c})=>{const d=Is(l),u=Is(a),f=Is(c),m=d||u||f;return s.jsxs("div",{className:"mx-auto",children:[s.jsxs("div",{className:"flex flex-col items-center mb-8",children:[n&&s.jsx(Re,{src:n,alt:e,width:200,className:"w-[200px] h-[200px] rounded-full object-cover mb-4"}),s.jsx("h1",{className:"heading-md mb-0",children:e}),t&&s.jsx("p",{className:"body-lg text-grey60 mb-4 mt-1",children:t}),s.jsx(Uy,{twitterLink:r,linkedInLink:o})]}),s.jsxs("div",{className:"grid grid-cols-12 gap-6",children:[s.jsxs("div",{className:m?"col-span-12 lg:col-span-8":"col-span-12",children:[s.jsx("h2",{className:"heading-sm mb-2 lg:mb-4",children:"About the Author"}),s.jsx(he,{content:i})]}),m&&s.jsx("div",{className:"col-span-12 lg:col-span-4",children:s.jsxs("div",{className:"rounded-lg bg-white border border-grey10 shadow-lg p-6",children:[d&&s.jsxs("div",{className:"mb-4",children:[s.jsxs("h4",{className:"heading-xs flex items-center gap-2 mb-3",children:[s.jsx(H,{glyph:"award",color:"currentColor",ariaLabel:""}),"Expertise"]}),s.jsx(he,{content:l})]}),u&&s.jsxs("div",{className:"mb-4",children:[s.jsxs("h4",{className:"heading-xs flex items-center gap-2 mb-3",children:[s.jsx(H,{glyph:"school",color:"none",fill:"
3currentColor",ariaLabel:""}),"Education"]}),s.jsx(he,{content:a})]}),f&&s.jsxs("div",{className:"mb-4",children:[s.jsxs("h4",{className:"heading-xs flex items-center gap-2 mb-3",children:[s.jsx(H,{glyph:"newspaper",color:"none",fill:"currentColor",ariaLabel:""}),"Featured in News"]}),s.jsx(he,{content:c})]})]})})]})]})},Wy=({entry:e})=>{const{linkedEntries:t,linkedAssets:n}=J(),r=Te();if(!Wd(e))return null;const o=ke(e.fields.author,t,"author"),i=o?.image?yt(o.image,n):void 0,a=i?.fields.file?.url?Jr(i.fields.file.url,r):void 0;return s.jsx(Gy,{name:o?.name??"",role:o?.role,imageUrl:a,twitterLink:o?.twitterLink,linkedInLink:o?.linkedInLink,bio:e.fields.bio,education:e.fields.education,expertise:e.fields.expertise,featuredInNews:e.fields.featuredInNews})},Pa=ee("benefitsModule"),qy=({tile:e,index:t})=>s.jsxs("div",{className:"relative mb-1.5 flex max-w-[372px] flex-[0_1_auto] flex-col items-center break-words text-primary text-center lg:max-w-[25%]",children:[e.imageSrc&&s.jsx(Re,{src:e.imageSrc,alt:e.imageAlt??`benefit tile ${t+1}`,className:"w-full rounded-benefit-image"}),e.icon&&s.jsx(H,{glyph:e.icon,color:"var(--color-palette-accent)",size:"large",ariaLabel:"",className:"lg:!h-[48px] lg:!w-[48px]"}),e.text&&s.jsx("div",{className:"my-2.5 body-lg-bold leading-tight text-palette-text",children:e.text}),e.description&&s.jsx("div",{className:"body-base-bold text-palette-text",children:e.description})]}),Yy=({title:e,subTitle:t,tiles:n,form:r})=>s.jsxs("div",{children:[e&&s.jsx("h3",{className:"benefits-module-title mt-6 mb-3 text-center text-palette-accent-text",children:e}),t&&s.jsx("h4",{className:"body-lg-bold mt-3.5 text-center text-palette-accent-text",children:t}),n.length>0&&s.jsx("div",{className:"mt-12 flex flex-col items-center justify-evenly gap-3 lg:flex-row lg:items-stretch lg:gap-6",children:n.map((o,i)=>s.jsx(qy,{tile:o,index:i},o.id))}),r&&s.jsx("div",{className:"mb-8 py-6 lg:mb-0 lg:py-8 [&_form]:mx-auto [&_form]:w-fit",children:r})]}),Ky=e=>e.startsWith("//")?`https:${e}`:e,Zy=({entry:e})=>{const{linkedAssets:t}=J(),n=ct(),r=Pa(e)?e.fields.collection??[]:[],o=Wn(r,"tile");if(!Pa(e))return null;const{title:i,subTitle:a,form:l}=e.fields,c=o.map(({id:u,fields:f})=>{const m=f.image?yt(f.image,t):void 0,h=m?.fields.file?.url,p=m?.fields.description??m?.fields.title;return{id:u,icon:f.icon,imageSrc:h?Ky(h):void 0,imageAlt:p,text:f.text,description:f.description}}),d=l?n(l,{vertical:!1,horizontal:!1}):void 0;return s.jsx(Yy,{title:i,subTitle:a,tiles:c,form:d})},Xy=ee("billboard"),en={money:{boldTitle:!1,fontSize:"text-xs",linkUnderline:!1,arrowSeparator:!1},uswitch:{homeTitle:"Uswitch.com",boldTitle:!0,fontSize:"text-sm",linkUnderline:!1,arrowSeparator:!1},confused:{homeTitle:"Home",boldTitle:!1,fontSize:"text-sm",linkUnderline:!0,arrowSeparator:!0}},Ia=({arrowSeparator:e})=>e?s.jsx(H,{glyph:"right-arrow",size:"small",color:"currentColor",ariaLabel:"",className:"!h-2 !w-2"}):s.jsx("span",{children:">"}),La=()=>s.jsx("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",className:"h-2.5 w-2.5 shrink-0",children:s.jsx("path",{d:"M10 2.5 4.5 8l5.5 5.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Qy=(e,t)=>{const n=[];let r=e.fields;for(;r;){n.unshift({displayText:r.displayText,path:r.path});const o=r.parent;if(o&&"sys"in o){const i={sys:{type:"Link",linkType:"Entry",id:o.sys.id}};r=ke(i,t,"breadcrumb")}else r=void 0}return n},Jy=(e,t)=>ke({sys:{type:"Link",linkType:"Entry",id:e.sys.id}},t,"modularPage")?.title,ev=({crumbs:e,fontSize:t})=>{if(e.length===0)return s.jsx("div",{className:"block md:hidden",children:s.jsxs("a",{href:"/",className:Ce("inline-flex items-center gap-1 text-grey60 text-palette-text no-underline",t),children:[s.jsx(La,{}),"Home"]})});const n=e[e.length-1];return s.jsx("div",{className:"block md:hidden",children:s.jsxs("a",{href:n.path,className:Ce("inline-flex items-center gap-1 text-palette-text no-underline",t),children:[s.jsx(La,{}),n.displayText]})})},tv=({crumbs:e,title:t,homeTitle:n,boldTitle:r,fontSize:o,linkUnderline:i,arrowSeparator:a})=>s.jsx("div",{className:"hidden md:block",children:s.jsxs("ol",{className:Ce("m-0 flex list-none items-center gap-2 p-0",o),children:[s.jsxs("li",{className:"flex items-center gap-2 text-grey60 text-palette-text",children:[s.jsx("a",{href:"/",className:Ce("flex items-center text-grey60 text-palette-text no-underline",i&&"underline"),children:n??s.jsx("svg",{stroke:"currentColor",fill:"
3currentColor",strokeWidth:"0",viewBox:"0 0 14 14",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M7.879 1.632a1 1 0 00-1.415 0L1.608 6.488a.5.5 0 00.354.854h1.217a.996.996 0 00-.09.416v4.417a1 1 0 001 1h6.166a1 1 0 001-1V7.758a.996.996 0 00-.09-.416h1.216a.5.5 0 00.354-.854L7.879 1.632z"})})}),(e.length>0||t)&&s.jsx(Ia,{arrowSeparator:a})]}),e.map((l,c)=>s.jsxs("li",{className:"flex items-center gap-2 text-grey60 text-palette-text",children:[s.jsx("a",{href:l.path,className:Ce("text-grey60 text-palette-text no-underline",i&&"underline"),children:l.displayText}),(c!==e.length-1||t)&&s.jsx(Ia,{arrowSeparator:a})]},l.path)),t&&s.jsx("li",{className:Ce("text-grey60 text-palette-text",r&&"font-bold"),children:t})]})}),qd=({entry:e})=>{const{linkedEntries:t,app:n}=J(),r=Te(),o=cc(),i=Qy(e,t);if(i.length===0)return null;const l=i[0].path==="/"?i.slice(1):i;if(l.length===0)return null;const c=n?.location.pathname,d=l[l.length-1],u=o?Jy(o,t):void 0,f=d.path!==c&&u!==void 0,m=f?l:l.slice(0,-1),h=f?u:d.displayText,p=f?i:i.slice(0,-1),b=f?c:d.path,y={"@type":"BreadcrumbList",itemListElement:[...p,{displayText:h,path:b??d.path}].map((w,k)=>({"@type":"ListItem",position:k+1,name:w.displayText,item:mn(w.path,r)}))};return s.jsxs("div",{"aria-label":"Breadcrumb",children:[s.jsx(pn,{data:y}),s.jsx(ev,{crumbs:m,fontSize:en[r].fontSize}),s.jsx(tv,{crumbs:m,title:h,homeTitle:en[r].homeTitle,boldTitle:en[r].boldTitle,fontSize:en[r].fontSize,linkUnderline:en[r].linkUnderline,arrowSeparator:en[r].arrowSeparator})]})};function Yd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Yd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function st(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yd(e))&&(r&&(r+=" "),r+=t);return r}const nv={"--color-palette-bg":"var(--color-surface-accent)","--color-palette-text":"var(--color-on-accent)","--color-palette-heading":"var(--color-on-accent)"},Da=(e,t,n)=>e?t??!n?"hidden lg:block":"block":n&&!t?"block":"hidden lg:block",rv=e=>e==="uswitch"?"relative w-screen ml-[calc(50%-50vw)] py-2 md:py-4":"relative left-1/2 w-screen -translate-x-1/2 py-2 md:py-4",sv=({primaryContent:e,primarySlot:t,fullWidthSlot:n,breadcrumbs:r,bgImageUrl:o,mobileImageUrl:i,showImageOnMobile:a=!1,variant:l})=>{const c=_p(),d=Te(),u=l==="platinum",f=!t&&!!o,m=!!t||!!o;return s.jsx("div",{className:st(rv(d),"bg-palette-bg"),style:c?void 0:nv,children:s.jsx("div",{className:"mx-auto max-w-page px-4",children:s.jsxs("div",{className:st("flex flex-col pt-4",n?"pb-0 md:pb-3":"pb-0"),children:[r&&s.jsx("div",{className:st("-mt-4 mb-6 self-start md:mb-8",f&&"lg:mb-0"),children:r}),i&&s.jsx("div",{className:"mx-auto block w-full max-w-[404px] bg-contain bg-center bg-no-repeat pt-[35%] md:h-[255px] md:pt-0 lg:hidden",style:{backgroundImage:`url(${i})`}}),s.jsxs("div",{className:st("relative flex flex-col items-end justify-center md:items-center lg:flex-row lg:justify-between",f&&"lg:min-h-[416px]",u&&"w-full lg:mt-6 lg:gap-[100px]"),children:[s.jsx("div",{className:st("self-center",m?"text-left md:mx-auto lg:mx-0":u?"":"mx-auto text-center",u?st("w-full lg:flex lg:w-1/2 lg:flex-col lg:justify-center",!t&&"lg:w-full"):"w-auto md:w-[70%] lg:w-1/2"),children:e}),t&&s.jsx("div",{className:st(u?"flex flex-[50%] items-center":"mx-auto mt-0 w-full md:mt-8 md:w-[70%] lg:mx-0 lg:mt-0 lg:w-[40%]"),children:t}),f&&s.jsx("div",{className:st("bg-contain bg-center bg-no-repeat",u?st("h-[255px] w-[404px] lg:h-[416px]",Da(!0,i,a)):st("mx-auto mt-8 w-[90%] pt-[60%] md:mt-8 md:h-[255px] md:w-[404px] md:pt-0 lg:absolute lg:bottom-0 lg:right-0 lg:m-0 lg:h-[416px] lg:w-[404px] lg:pt-0",Da(!1,i,a))),style:{backgroundImage:`url(${o})`}})]}),n&&s.jsx("div",{className:"mb-8 w-full md:mx-auto md:w-[70%] lg:mx-0 lg:w-full",children:n})]})})})},ov={renderNode:{[C.HEADING_1]:(e,t)=>s.jsx("h1",{className:"billboard-platinum-heading-1 text-palette-heading mb-4",children:t}),[C.HEADING_2]:(e,t)=>s.jsx("h2",{className:"billboard-platinum-heading-2 text-palette-heading mb-3",children:t})}},Oa=(e,t)=>e?t.find(r=>r.sys.id===e.sys.id)?.fields.file?.url:void 0,iv=({entry:e})=>{const{linkedEntries:t,linkedAssets:n}=J(),r=ct();if(!Xy(e))return null;const{primaryContent:o,primarySlot:i,fullWidthSlot:a,breadcrumbs:l,image:c,mobileImage:d,showImageOnMobile:u,variant:f}=e.fields,m=l?t.find(w=>w.sys.id===l.sys.id):void 0,h={horizontal:!1,vertical:!1},p=m&&ac(m)?s.jsx(qd,{entry:m}):void 0,b=i?r(i,h):void 0,g=a??[],y=g.length>0?s.jsx(s.Fragment,{children:g.map(w=>s.jsx(x.Fragment,{children:r(w,h)},w.sys.id))}):void 0;return s.jsx(sv,{primaryContent:s.jsx(he,{content:o,collapseSpacing:!0,embeddedEntryClassName:"mb-3",options:f==="platinum"?ov:void 0}),primarySlot:b,fullWidthSlot:y,breadcrumbs:p,bgImageUrl:Oa(c,n),mobileImageUrl:Oa(d,n),showImageOnMobile:u,variant:f})},av=({entry:e})=>ac(e)?s.jsx(qd,{entry:e}):null,lv="button",cv=({entry:e})=>
3{if(!$d(e))return null;const{text:t,link:n,variant:r,size:o,openInNewTab:i,isPartnerLink:a}=e.fields;if(!n)return null;const l=[i&&"noopener noreferrer",a&&"nofollow"].filter(Boolean).join(" ")||void 0;return s.jsx(Me,{className:"mt-3",href:n,variant:r,size:o,id:e.sys.id,componentName:lv,target:i?"_blank":void 0,rel:l,children:t})},dv=ee("callOut"),ii="flex bg-grey5 rounded-[8px] py-8 px-6 my-3 lg:p-6 lg:my-6",Kd="flex mr-4 pt-[5px] lg:mr-6 lg:pt-0",fs="body-base text-primary w-full break-words";function uv({text:e,bold:t,variant:n}){const r=n==="smaller";return s.jsx("div",{className:ii,children:s.jsx("div",{className:[fs,r?"body-sm lg:body-base":"",t?"font-bold":"font-normal"].filter(Boolean).join(" "),children:e})})}function Ma({text:e,bold:t}){return s.jsxs("div",{className:ii,children:[s.jsx("div",{className:Kd,"aria-hidden":"true",children:s.jsx(H,{glyph:"info-blob",color:"black",ariaLabel:""})}),s.jsx("div",{className:[fs,t?"font-bold":"font-normal"].filter(Boolean).join(" "),children:e})]})}function fv({text:e,title:t,logoSrc:n,logoAlt:r}){return s.jsxs("div",{className:ii,children:[s.jsx("div",{className:`${Kd} max-h-[66px]`,children:s.jsx("img",{src:n,alt:r,width:100,height:66,loading:"lazy"})}),s.jsxs("div",{children:[s.jsx("div",{className:"body-base font-extrabold text-primary",children:e}),t&&s.jsx("div",{className:fs,children:t})]})]})}function mv({text:e,bold:t,icon:n,title:r,orientation:o="left"}){const i=o==="left",a=s.jsxs(s.Fragment,{children:[r&&s.jsx("h3",{className:"heading-sm text-heading -mt-[3px] mb-2",children:r}),s.jsx("p",{className:["my-0",fs,t?"font-bold":"font-normal"].filter(Boolean).join(" "),children:e})]});return s.jsx("div",{className:"rounded-[4px] bg-grey10 px-4 py-4 lg:px-6 lg:py-6",children:n?s.jsxs("div",{className:`flex ${i?"flex-row":"flex-col"}`,children:[s.jsx("div",{className:"flex-shrink-0 flex-grow-0 basis-4 mr-3 mb-4","aria-hidden":"true",children:s.jsx("div",{className:"bg-accent w-4 h-4 rounded-full p-[20%]",children:s.jsx(H,{glyph:n,size:"small",color:"white",ariaLabel:""})})}),s.jsx("div",{children:a})]}):a})}const pv=({text:e,bold:t,icon:n,title:r,orientation:o,variant:i})=>{const[a]=es();return i==="platinum"||i==="smaller"?s.jsx(uv,{text:e,bold:t,variant:i}):i==="platinum-warning"?s.jsx(Ma,{text:e,bold:t}):i==="fscs"?s.jsx(fv,{text:e,title:r,logoSrc:"https://img.money.co.uk/t014ej9w3ur1/4DqU14fOaE16S09KLWeFcq/4ad81b80d8dde3b5c7ff5e62eee64d3d/fscs_logo_2x.png",logoAlt:"FSCS logo"}):i==="scam-warning"?[...a.keys()].some(c=>c.includes("utm"))?null:s.jsx(Ma,{text:e,bold:t}):s.jsx(mv,{text:e,bold:t,icon:n,title:r,orientation:o})},hv=({entry:e})=>dv(e)?s.jsx(pv,{text:e.fields.text,bold:e.fields.bold,icon:e.fields.icon,title:e.fields.title,orientation:e.fields.orientation,variant:e.fields.variant}):null,xv=ee("card"),gv=te({slots:{root:"w-full text-left",imageWrapper:"",image:"w-full",content:"flex flex-1 flex-col",title:"heading-sm m-0 text-heading",titleLink:"text-heading no-underline hover:underline",description:"body-base",link:"body-base-bold text-link underline"},variants:{variant:{vertical:{root:"mb-4 flex flex-col",imageWrapper:"relative h-0 w-full overflow-hidden pt-[56.25%]",image:"absolute left-0 top-0 h-full w-full",title:"mb-5 mt-4",description:"text-secondary"},horizontal:{root:"mb-4 flex items-start",imageWrapper:"relative mb-4 mr-8 aspect-video w-[132px] shrink-0 overflow-hidden md:w-[384px] lg:w-[474px]",image:"absolute inset-0 h-full w-full",title:"mb-4",description:"text-secondary"},assuranceBar:{root:"mb-6 flex flex-row flex-wrap items-start",imageWrapper:"mr-4 shrink-0 md:mr-6",image:"w-6 md:w-[30px]",content:"flex-1",title:"pb-2 md:pb-4",description:"body-base-bold text-muted"},rounded:{root:"flex min-h-full flex-col rounded-lg bg-surface p-4 shadow-sm md:min-h-[260px]",title:"mb-4",description:"body-sm text-muted"}}},defaultVariants:{variant:"vertical"}}),bv=({variant:e="vertical",imageSize:t="cover",title:n,description:r,linkHref:o,linkText:i,imageSrc:a,imageAlt:l})=>{const c=gv({variant:e}),d=e==="vertical"||e==="horizontal",u=t==="cover"?"object-cover":"object-contain",f=a?s.jsx(Re,{src:a,alt:l??"",className:`${c.image()} ${u}`}):null,m=f&&(d?s.jsx("div",{className:c.imageWrapper(),children:o?s.jsx("a",{href:o,className:"block h-full w-full",children:f}):f}):s.jsx("div",{className:c.imageWrapper(),children:f}));return s.jsxs("div",{className:c.root(),children:[m,s.jsxs("div",{className:c.content(),children:[n&&s.jsx("h3",{className:c.title(),children:o?s.jsx("a",{href:o,className:c.titleLink(),children:n}):s.jsx("span",{children:n})}),r&&s.jsx("p",{className:c.description(),children:r}),i&&(o?s.jsx("a",{href:o,className:c.link(),children:i}):s.jsx("span",{className:c.link(),children:i}))]})]})},yv=({entry:e})=>{const{linkedAssets:t}=J();if(!xv(e))return null;const{variant:n,imageSize:r,title:o,description:i,linkHref:a,linkText:l,image:c}
3=e.fields,d=c?yt(c,t):void 0,u=d?.fields.file?.url,f=d?.fields.description??d?.fields.title??i??"";return s.jsx(bv,{variant:n,imageSize:r,title:o,description:i,linkHref:a,linkText:l,imageSrc:u,imageAlt:f})},vv=ee("cardV2"),wv=({badgeTitle:e,badgeIcon:t})=>s.jsxs("div",{className:"mb-4 flex w-fit items-center gap-3 rounded-full bg-grey5 px-3 py-2",children:[t&&s.jsx(H,{glyph:t,size:"large",color:"var(--color-grey90)",ariaLabel:""}),e&&s.jsx("p",{children:e})]});function jv({badgeTitle:e,badgeIcon:t,children:n}){const r=!!e||!!t;return s.jsxs("div",{className:"rounded-lg p-5 bg-white",children:[r&&s.jsx(wv,{badgeTitle:e,badgeIcon:t}),n&&s.jsx("div",{children:n})]})}const Nv=({entry:e})=>{const t=ct();if(!vv(e))return null;const{badgeTitle:n,badgeIcon:r,content:o}=e.fields;return s.jsx(jv,{badgeTitle:n,badgeIcon:r,children:o&&t(o,{vertical:!1,horizontal:!1})})},kv=ee("categoryGuidesModule");function Ev(e){return Object.prototype.toString.call(e)==="[object Object]"}function $a(e){return Ev(e)||Array.isArray(e)}function _v(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ai(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==i?!1:n.every(a=>{const l=e[a],c=t[a];return typeof l=="function"?`${l}`==`${c}`:!$a(l)||!$a(c)?l===c:ai(l,c)})}function Fa(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Cv(e,t){if(e.length!==t.length)return!1;const n=Fa(e),r=Fa(t);return n.every((o,i)=>{const a=r[i];return ai(o,a)})}function li(e){return typeof e=="number"}function lo(e){return typeof e=="string"}function ms(e){return typeof e=="boolean"}function Ba(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ne(e){return Math.abs(e)}function ci(e){return Math.sign(e)}function Un(e,t){return Ne(e-t)}function Tv(e,t){if(e===0||t===0||Ne(e)<=Ne(t))return 0;const n=Un(Ne(e),Ne(t));return Ne(n/e)}function Sv(e){return Math.round(e*100)/100}function Zn(e){return Xn(e).map(Number)}function at(e){return e[ir(e)]}function ir(e){return Math.max(0,e.length-1)}function di(e,t){return t===ir(e)}function za(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Xn(e){return Object.keys(e)}function Zd(e,t){return[e,t].reduce((n,r)=>(Xn(r).forEach(o=>{const i=n[o],a=r[o],l=Ba(i)&&Ba(a);n[o]=l?Zd(i,a):a}),n),{})}function co(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Av(e,t){const n={start:r,center:o,end:i};function r(){return 0}function o(c){return i(c)/2}function i(c){return t-c}function a(c,d){return lo(e)?n[e](c):e(t,c,d)}return{measure:a}}function Qn(){let e=[];function t(o,i,a,l={passive:!0}){let c;if("addEventListener"in o)o.addEventListener(i,a,l),c=()=>o.removeEventListener(i,a,l);else{const d=o;d.addListener(a),c=()=>d.removeListener(a)}return e.push(c),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function Rv(e,t,n,r){const o=Qn(),i=1e3/60;let a=null,l=0,c=0;function d(){o.add(e,"visibilitychange",()=>{e.hidden&&p()})}function u(){h(),o.clear()}function f(g){if(!c)return;a||(a=g,n(),n());const y=g-a;for(a=g,l+=y;l>=i;)n(),l-=i;const w=l/i;r(w),c&&(c=t.requestAnimationFrame(f))}function m(){c||(c=t.requestAnimationFrame(f))}function h(){t.cancelAnimationFrame(c),a=null,l=0,c=0}function p(){a=null,l=0}return{init:d,destroy:u,start:m,stop:h,update:n,render:r}}function Pv(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",i=r?"x":"y",a=!r&&n?-1:1,l=u(),c=f();function d(p){const{height:b,width:g}=p;return r?b:g}function u(){return r?"top":n?"right":"left"}function f(){return r?"bottom":n?"left":"right"}function m(p){return p*a}return{scroll:o,cross:i,startEdge:l,endEdge:c,measureSize:d,direction:m}}function Ht(e=0,t=0){const n=Ne(e-t);function r(d){return d<e}function o(d){return d>t}function i(d){return r(d)||o(d)}function a(d){return i(d)?r(d)?e:t:d}function l(d){return n?d-n*Math.ceil((d-t)/n):d}return{length:n,max:t,min:e,constrain:a,reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:l}}function Xd(e,t,n){const{constrain:r}=Ht(0,e),o=e+1;let i=a(t);function a(m){return n?Ne((o+m)%o):r(m)}function l(){return i}function c(m){return i=a(m),f}function d(m){return u().set(l()+m)}function u(){return Xd(e,l(),n)}const f={get:l,set:c,add:d,clone:u};return f}function Iv(e,t,n,r,o,i,a,l,c,d,u,f,m,h,p,b,g,y,w){const{cross:k,direction:A}=e,v=["INPUT","SELECT","TEXTAREA"],j={passive:!1},E=Qn(),N=Qn(),S=Ht(50,225).constrain(h.measure(20)),D={mouse:300,touch:400},L={mouse:500,touch:600},F=p?43:25;let M=!1,P=0,T=0,R=!1,I=!1,_=!1,$=!1;function z(B){if(!w)return;function ue(Z){(ms(w)||w(B,Z))&&je(Z)}const U=t;E.add(U,"dragstart",Z=>Z.preventDefault(),j).add(U,"touchmove",()=>{},j).add(U,"touchend",()=>{}).add(U,"touchstart",ue).add(U,"mousedown",ue).add(U,"touchcancel",ge).add(U,"contextmenu",ge).add(U,"click",we,!0)}function Y(){E.clear(),N.clear()}function X(){const B=$?n:t;N.add(B,"touchmove",re,j).add(B,"touchend",ge).add(B,"mousemove",re,j).add(B,"mouseup",ge)}function q(B){const ue=B.nodeName||"";return v.includes(ue)}function K(){return(p?L:D)[$?"mouse":"touch"]}function oe(B,ue){const U=f.add(ci(B)*-1),Z=u.byDistance(B,!p).distance;return p||Ne(B)<S?Z:g&&ue?Z*.5:u.byIndex(U.get(),0).distance}function je(B){const ue=co(B,r);$=ue,_=p&&ue&&!B.buttons&&M,M=Un(o.get(),a.get())>=2,!(ue&&B.button!==0)&&(q(B.target)||(R=!0,i.pointerDown(B),d.useFriction(0).useDuration(0),o.set(a),X(),P=i.readPoint(B),T=i.readPoint(B,k),m.emit("pointerDown")))}function re(B){if(!co(B,r)&&B.touches.length>=2)return ge(B);const U=i.readPoint(B),Z=i.readPoint(B,k),be=Un(U,P),Ee=Un(Z,T);if(!I&&!$&&(!B.cancelable||(I=be>Ee,!I)))return ge(B);const Se=i.pointerMove(B);be>b&&(_=!0),d.useFriction(.3).useDuration(.75),l.start(),o.add(A(Se)),B.preventDefault()}function ge(B){const U=u.byDistance(0,!1).index!==f.get(),Z=i.pointerUp(B)*K(),be=oe(A(Z),U),Ee=Tv(Z,be),Se=F-10*Ee,me=y+Ee/50;I=!1,R=!1,N.clear(),d.useDuration(Se).useFriction(me),c.distance(be,!p),$=!1,m.emit("pointerUp")}function we(B){_&&(B.stopPropagation(),B.preventDefault(),_=!1)}function ce(){return R}return{init:z,destroy:Y,pointerDown:ce}}function Lv(e,t){let r,o;function i(f){return f.timeStamp}function a(f,m){const p=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(co(f,t)?f:f.touches[0])[p]}function l(f){return r=f,o=f,a(f)}function c(f){const m=a(f)-a(o),h=i(f)-i(r)>170;return o=f,h&&(r=f),m}function d(f){if(!r||!o)return 0;const m=a(o)-a(r),h=i(f)-i(r),p=i(f)-i(o)>170,b=m/h;return h&&!p&&Ne(b)>.1?b:0}return{pointerDown:l,pointerMove:c,pointerUp:d,readPoint:a}}function Dv(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:i,offsetHeight:a}=n;
vendor: 11,803 bytes, line 3
3return{top:r,right:o+i,bottom:r+a,left:o,width:i,height:a}}return{measure:e}}function Ov(e){function t(r){return e*(r/100)}return{measure:t}}function Mv(e,t,n,r,o,i,a){const l=[e].concat(r);let c,d,u=[],f=!1;function m(g){return o.measureSize(a.measure(g))}function h(g){if(!i)return;d=m(e),u=r.map(m);function y(w){for(const k of w){if(f)return;const A=k.target===e,v=r.indexOf(k.target),j=A?d:u[v],E=m(A?e:r[v]);if(Ne(E-j)>=.5){g.reInit(),t.emit("resize");break}}}c=new ResizeObserver(w=>{(ms(i)||i(g,w))&&y(w)}),n.requestAnimationFrame(()=>{l.forEach(w=>c.observe(w))})}function p(){f=!0,c&&c.disconnect()}return{init:h,destroy:p}}function $v(e,t,n,r,o,i){let a=0,l=0,c=o,d=i,u=e.get(),f=0;function m(){const j=r.get()-e.get(),E=!c;let N=0;return E?(a=0,n.set(r),e.set(r),N=j):(n.set(e),a+=j/c,a*=d,u+=a,e.add(a),N=u-f),l=ci(N),f=u,v}function h(){const j=r.get()-t.get();return Ne(j)<.001}function p(){return c}function b(){return l}function g(){return a}function y(){return k(o)}function w(){return A(i)}function k(j){return c=j,v}function A(j){return d=j,v}const v={direction:b,duration:p,velocity:g,seek:m,settled:h,useBaseFriction:w,useBaseDuration:y,useFriction:A,useDuration:k};return v}function Fv(e,t,n,r,o){const i=o.measure(10),a=o.measure(50),l=Ht(.1,.99);let c=!1;function d(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(h){if(!d())return;const p=e.reachedMin(t.get())?"min":"max",b=Ne(e[p]-t.get()),g=n.get()-t.get(),y=l.constrain(b/a);n.subtract(g*y),!h&&Ne(g)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function f(h){c=!h}return{shouldConstrain:d,constrain:u,toggleActive:f}}function Bv(e,t,n,r,o){const i=Ht(-t+e,0),a=f(),l=u(),c=m();function d(p,b){return Un(p,b)<=1}function u(){const p=a[0],b=at(a),g=a.lastIndexOf(p),y=a.indexOf(b)+1;return Ht(g,y)}function f(){return n.map((p,b)=>{const{min:g,max:y}=i,w=i.constrain(p),k=!b,A=di(n,b);return k?y:A||d(g,w)?g:d(y,w)?y:w}).map(p=>parseFloat(p.toFixed(3)))}function m(){if(t<=e+o)return[i.max];if(r==="keepSnaps")return a;const{min:p,max:b}=l;return a.slice(p,b)}return{snapsContained:c,scrollContainLimit:l}}function zv(e,t,n){const r=t[0],o=n?r-e:at(t);return{limit:Ht(o,r)}}function Hv(e,t,n,r){const i=t.min+.1,a=t.max+.1,{reachedMin:l,reachedMax:c}=Ht(i,a);function d(m){return m===1?c(n.get()):m===-1?l(n.get()):!1}function u(m){if(!d(m))return;const h=e*(m*-1);r.forEach(p=>p.add(h))}return{loop:u}}function Vv(e){const{max:t,length:n}=e;function r(i){const a=i-t;return n?a/-n:0}return{get:r}}function Uv(e,t,n,r,o){const{startEdge:i,endEdge:a}=e,{groupSlides:l}=o,c=f().map(t.measure),d=m(),u=h();function f(){return l(r).map(b=>at(b)[a]-b[0][i]).map(Ne)}function m(){return r.map(b=>n[i]-b[i]).map(b=>-Ne(b))}function h(){return l(d).map(b=>b[0]).map((b,g)=>b+c[g])}return{snaps:d,snapsAligned:u}}function Gv(e,t,n,r,o,i){const{groupSlides:a}=o,{min:l,max:c}=r,d=u();function u(){const m=a(i),h=!e||t==="keepSnaps";return n.length===1?[i]:h?m:m.slice(l,c).map((p,b,g)=>{const y=!b,w=di(g,b);if(y){const k=at(g[0])+1;return za(k)}if(w){const k=ir(i)-at(g)[0]+1;return za(k,at(g)[0])}return p})}return{slideRegistry:d}}function Wv(e,t,n,r,o){const{reachedAny:i,removeOffset:a,constrain:l}=r;function c(p){return p.concat().sort((b,g)=>Ne(b)-Ne(g))[0]}function d(p){const b=e?a(p):l(p),g=t.map((w,k)=>({diff:u(w-b,0),index:k})).sort((w,k)=>Ne(w.diff)-Ne(k.diff)),{index:y}=g[0];return{index:y,distance:b}}function u(p,b){const g=[p,p+n,p-n];if(!e)return p;if(!b)return c(g);const y=g.filter(w=>ci(w)===b);return y.length?c(y):at(g)-n}function f(p,b){const g=t[p]-o.get(),y=u(g,b);return{index:p,distance:y}}function m(p,b){const g=o.get()+p,{index:y,distance:w}=d(g),k=!e&&i(g);if(!b||k)return{index:y,distance:p};const A=t[y]-w,v=p+u(A,0);return{index:y,distance:v}}return{byDistance:m,byIndex:f,shortcut:u}}function qv(e,t,n,r,o,i,a){function l(f){const m=f.distance,h=f.index!==t.get();i.add(m),m&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),h&&(n.set(t.get()),t.set(f.index),a.emit("select"))}function c(f,m){const h=o.byDistance(f,m);l(h)}function d(f,m){const h=t.clone().set(f),p=o.byIndex(h.get(),m);l(p)}return{distance:c,index:d}}function Yv(e,t,n,r,o,i,a,l){const c={passive:!0,capture:!0};let d=0;function u(h){if(!l)return;function p(b){if(new Date().getTime()-d>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const w=n.findIndex(k=>k.includes(b));li(w)&&(o.useDuration(0),r.index(w,0),a.emit("slideFocus"))}i.add(document,"keydown",f,!1),t.forEach((b,g)=>{i.add(b,"focus",y=>{(ms(l)||l(h,y))&&p(g)},c)})}function f(h){h.code==="Tab"&&(d=new Date().getTime())}return{init:u}}function Bn(e){let t=e;function n(){return t}function r(c){t=a(c)}function o(c){t+=a(c)}function i(c){t-=a(c)}function a(c){return li(c)?c:c.get()}return{get:n,set:r,add:o,subtract:i}}function Qd(e,t){const n=e.scroll==="x"?a:l,r=t.style;let o=null,i=!1;function a(m){return`translate3d(${m}px,0px,0px)`}function l(m){return`translate3d(0px,${m}px,0px)`}function c(m){if(i)return;const h=Sv(e.direction(m));h!==o&&(r.transform=n(h),o=h)}function d(m){i=!m}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:d}}function Kv(e,t,n,r,o,i,a,l,c){const u=Zn(o),f=Zn(o).reverse(),m=y().concat(w());function h(E,N){return E.reduce((S,D)=>S-o[D],N)}function p(E,N){return E.reduce((S,D)=>h(S,N)>0?S.concat([D]):S,[])}function b(E){return i.map((N,S)=>({start:N-r[S]+.5+E,end:N+t-.5+E}))}function g(E,N,S){const D=b(N);return E.map(L=>{const F=S?0:-n,M=S?n:0,P=S?"end":"start",T=D[L][P];return{index:L,loopPoint:T,slideLocation:Bn(-1),translate:Qd(e,c[L]),target:()=>l.get()>T?F:M}})}function y(){const E=a[0],N=p(f,E);return g(N,n,!1)}function w(){const E=t-a[0]-1,N=p(u,E);return g(N,-n,!0)}function k(){return m.every(({index:E})=>{const N=u.filter(S=>S!==E);return h(N,t)<=.1})}function A(){m.forEach(E=>{const{target:N,translate:S,slideLocation:D}=E,L=N();L!==D.get()&&(S.to(L),D.set(L))})}function v(){m.forEach(E=>E.translate.clear())}return{canLoop:k,clear:v,loop:A,loopPoints:m}}function Zv(e,t,n){let r,o=!1;function i(c){if(!n)return;function d(u){for(const f of u)if(f.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{o||(ms(n)||n(c,u))&&d(u)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),o=!0}return{init:i,destroy:a}}function Xv(e,t,n,r){const o={};let i=null,a=null,l,c=!1;function d(){l=new IntersectionObserver(p=>{c||(p.forEach(b=>{const g=t.indexOf(b.target);o[g]=b}),i=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(p=>l.observe(p))}function u(){l&&l.disconnect(),c=!0}function f(p){return Xn(o).reduce((b,g)=>{const y=parseInt(g),{isIntersecting:w}=o[y];return(p&&w||!p&&!w)&&b.push(y),b},[])}function m(p=!0){if(p&&i)return i;if(!p&&a)return a;const b=f(p);return p&&(i=b),p||(a=b),b}return{init:d,destroy:u,get:m}}function Qv(e,t,n,r,o,i){const{measureSize:a,startEdge:l,endEdge:c}=e,d=n[0]&&o,u=p(),f=b(),m=n.map(a),h=g();function p(){if(!d)return 0;const w=n[0];return Ne(t[l]-w[l])}function b(){if(!d)return 0;const w=i.getComputedStyle(at(r));return parseFloat(w.getPropertyValue(`margin-${c}`))}function g(){return n.map((w,k,A)=>{const v=!k,j=di(A,k);return v?m[k]+u:j?m[k]+f:A[k+1][l]-w[l]}).map(Ne)}return{slideSizes:m,slideSizesWithGaps:h,startGap:u,endGap:f}}function Jv(e,t,n,r,o,i,a,l,c){const{startEdge:d,endEdge:u,direction:f}=e,m=li(n);function h(y,w){return Zn(y).filter(k=>k%w===0).map(k=>y.slice(k,k+w))}function p(y){return y.length?Zn(y).reduce((w,k,A)=>{const v=at(w)||0,j=v===0,E=k===ir(y),N=o[d]-i[v][d],S=o[d]-i[k][u],D=!r&&j?f(a):0,L=!r&&E?f(l):0,F=Ne(S-L-(N+D));return A&&F>t+c&&w.push(k),E&&w.push(y.length),w},[]).map((w,k,A)=>{const v=Math.max(A[k-1]||0);return y.slice(v,w)}):[]}function b(y){return m?h(y,n):p(y)}return{groupSlides:b}}function e0(e,t,n,r,o,i,a){const{align:l,axis:c,direction:d,startIndex:u,loop:f,duration:m,dragFree:h,dragThreshold:p,inViewThreshold:b,slidesToScroll:g,skipSnaps:y,containScroll:w,watchResize:k,watchSlides:A,watchDrag:v,watchFocus:j}=i,E=2,N=Dv(),S=N.measure(t),D=n.map(N.measure),L=Pv(c,d),F=L.measureSize(S),M=Ov(F),P=Av(l,F),T=!f&&!!w,R=f||!!w,{slideSizes:I,slideSizesWithGaps:_,startGap:$,endGap:z}=Qv(L,S,D,n,R,o),Y=Jv(L,F,g,f,S,D,$,z,E),{snaps:X,snapsAligned:q}=Uv(L,P,S,D,Y),K=-at(X)+at(_),{snapsContained:oe,scrollContainLimit:je}=Bv(F,K,q,w,E),re=T?oe:q,{limit:ge}=zv(K,re,f),we=Xd(ir(re),u,f),ce=we.clone(),ae=Zn(n),B=({dragHandler:Et,scrollBody:_n,scrollBounds:Cn,options:{loop:Xe}})=>{Xe||Cn.constrain(Et.pointerDown()),_n.seek()},ue=({scrollBody:Et,translate:_n,location:Cn,offsetLocation:Xe,previousLocation:Tn,scrollLooper:Es,slideLooper:nm,dragHandler:rm,animation:sm,eventHandler:Fi,scrollBounds:om,options:{loop:Bi}},zi)=>{const Hi=Et.settled(),im=!om.shouldConstrain(),Vi=Bi?Hi:Hi&&im,Ui=Vi&&!rm.pointerDown();Ui&&sm.stop();const am=Cn.get()*zi+Tn.get()*(1-zi);Xe.set(am),Bi&&(Es.loop(Et.direction()),nm.loop()),_n.to(Xe.get()),Ui&&Fi.emit("settle"),Vi||Fi.emit("scroll")},U=Rv(r,o,()=>B(Qt),Et=>ue(Qt,Et)),Z=.68,be=re[we.get()],Ee=Bn(be),Se=Bn(be),me=Bn(be),_e=Bn(be),pt=$v(Ee,me,Se,_e,m,Z),He=Wv(f,re,K,ge,_e),tt=qv(U,we,ce,pt,He,_e,a),Ze=Vv(ge),nt=Qn(),ht=Xv(t,n,a,b),{slideRegistry:xt}=Gv(T,w,re,je,Y,ae),fr=Yv(e,n,xt,tt,pt,nt,a,j),Qt={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:S,slideRects:D,animation:U,axis:L,dragHandler:Iv(L,e,r,o,_e,Lv(L,o),Ee,U,tt,pt,He,we,a,M,h,p,y,Z,v),eventStore:nt,percentOfView:M,index:we,indexPrevious:ce,limit:ge,location:Ee,offsetLocation:me,previousLocation:Se,options:i,resizeHandler:Mv(t,a,o,n,L,k,N),scrollBody:pt,scrollBounds:Fv(ge,me,_e,pt,M),scrollLooper:Hv(K,ge,me,[Ee,me,Se,_e]),scrollProgress:Ze,scrollSnapList:re.map(Ze.get),scrollSnaps:re,scrollTarget:He,scrollTo:tt,slideLooper:Kv(L,F,K,I,_,X,re,me,n),slideFocus:fr,slidesHandler:Zv(t,a,A),slidesInView:ht,slideIndexes:ae,slideRegistry:xt,slidesToScroll:Y,target:_e,translate:Qd(L,t)};return Qt}function t0(){let e={},t;function n(d){t=d}function r(d){return e[d]||[]}function o(d){return r(d).forEach(u=>u(t,d)),c}function i(d,u){return e[d]=r(d).concat([u]),c}function a(d,u){return e[d]=r(d).filter(f=>f!==u),c}function l(){e={}}const c={init:n,emit:o,off:a,on:i,clear:l};return c}const n0={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function r0(e){function t(i,a){return Zd(i,a||{})}function n(i){const a=i.breakpoints||{},l=Xn(a).filter(c=>e.matchMedia(c).matches).map(c=>a[c]).reduce((c,d)=>t(c,d),{});return t(i,l)}function r(i){return i.map(a=>Xn(a.breakpoints||{})).reduce((a,l)=>a.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function s0(e){let t=[];function n(i,a){return t=a.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),a.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Yr(e,t,n){const r=e.ownerDocument,o=r.defaultView,i=r0(o),a=s0(i),l=Qn(),c=t0(),{mergeOptions:d,optionsAtMedia:u,optionsMediaQueries:f}=i,{on:m,off:h,emit:p}=c,b=L;let g=!1,y,w=d(n0,Yr.globalOptions),k=d(w),A=[],v,j,E;function N(){const{container:ae,slides:B}=k;j=(lo(ae)?e.querySelector(ae):ae)||e.children[0];const U=lo(B)?j.querySelectorAll(B):B;E=[].slice.call(U||j.children)}function S(ae){const B=e0(e,j,E,r,o,ae,c);if(ae.loop&&!B.slideLooper.canLoop()){const ue=Object.assign({},ae,{loop:!1});return S(ue)}return B}function D(ae,B){g||(w=d(w,ae),k=u(w),A=B||A,N(),y=S(k),f([w,...A.map(({options:ue})=>
3ue)]).forEach(ue=>l.add(ue,"change",L)),k.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(ce),y.eventHandler.init(ce),y.resizeHandler.init(ce),y.slidesHandler.init(ce),y.options.loop&&y.slideLooper.loop(),j.offsetParent&&E.length&&y.dragHandler.init(ce),v=a.init(ce,A)))}function L(ae,B){const ue=Y();F(),D(d({startIndex:ue},ae),B),c.emit("reInit")}function F(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),a.destroy(),l.clear()}function M(){g||(g=!0,l.clear(),F(),c.emit("destroy"),c.clear())}function P(ae,B,ue){!k.active||g||(y.scrollBody.useBaseFriction().useDuration(B===!0?0:k.duration),y.scrollTo.index(ae,ue||0))}function T(ae){const B=y.index.add(1).get();P(B,ae,-1)}function R(ae){const B=y.index.add(-1).get();P(B,ae,1)}function I(){return y.index.add(1).get()!==Y()}function _(){return y.index.add(-1).get()!==Y()}function $(){return y.scrollSnapList}function z(){return y.scrollProgress.get(y.offsetLocation.get())}function Y(){return y.index.get()}function X(){return y.indexPrevious.get()}function q(){return y.slidesInView.get()}function K(){return y.slidesInView.get(!1)}function oe(){return v}function je(){return y}function re(){return e}function ge(){return j}function we(){return E}const ce={canScrollNext:I,canScrollPrev:_,containerNode:ge,internalEngine:je,destroy:M,off:h,on:m,emit:p,plugins:oe,previousScrollSnap:X,reInit:b,rootNode:re,scrollNext:T,scrollPrev:R,scrollProgress:z,scrollSnapList:$,scrollTo:P,selectedScrollSnap:Y,slideNodes:we,slidesInView:q,slidesNotInView:K};return D(t,n),setTimeout(()=>c.emit("init"),0),ce}Yr.globalOptions=void 0;function ui(e={},t=[]){const n=x.useRef(e),r=x.useRef(t),[o,i]=x.useState(),[a,l]=x.useState(),c=x.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return x.useEffect(()=>{ai(n.current,e)||(n.current=e,c())},[e,c]),x.useEffect(()=>{Cv(r.current,t)||(r.current=t,c())},[t,c]),x.useEffect(()=>{if(_v()&&a){Yr.globalOptions=ui.globalOptions;const d=Yr(a,n.current,r.current);return i(d),()=>d.destroy()}else i(void 0)},[a,i]),[l,o]}ui.globalOptions=void 0;const Jd=x.createContext(null);function ar(){const e=x.useContext(Jd);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function ps({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:i,...a}){const[l,c]=ui({...t,axis:e==="horizontal"?"x":"y"},r),[d,u]=x.useState(!1),[f,m]=x.useState(!1),h=x.useCallback(y=>{y&&(u(y.canScrollPrev()),m(y.canScrollNext()))},[]),p=x.useCallback(()=>{c?.scrollPrev()},[c]),b=x.useCallback(()=>{c?.scrollNext()},[c]),g=x.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),p()):y.key==="ArrowRight"&&(y.preventDefault(),b())},[p,b]);return x.useEffect(()=>{!c||!n||n(c)},[c,n]),x.useEffect(()=>{if(c)return h(c),c.on("reInit",h),c.on("select",h),()=>{c.off("select",h)}},[c,h]),s.jsx(Jd.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:e,scrollPrev:p,scrollNext:b,canScrollPrev:d,canScrollNext:f},children:s.jsx("div",{onKeyDownCapture:g,className:Ce("relative",o),role:"region","aria-roledescription":"carousel",...a,children:i})})}function hs({className:e,...t}){const{carouselRef:n,orientation:r}=ar();return s.jsx("div",{ref:n,className:"overflow-hidden",children:s.jsx("div",{className:Ce("flex",r==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})}function xs({className:e,...t}){const{orientation:n}=ar();return s.jsx("div",{role:"group","aria-roledescription":"slide",className:Ce("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})}function fi({className:e,...t}){const{scrollPrev:n,canScrollPrev:r}=ar();return s.jsx("button",{type:"button",className:Ce("hidden md:flex items-center justify-center p-6 cursor-pointer disabled:opacity-40 disabled:cursor-default",e),disabled:!r,onClick:n,"aria-label":"Previous slide",...t})}function mi({className:e,...t}){const{scrollNext:n,canScrollNext:r}=ar();return s.jsx("button",{type:"button",className:Ce("hidden md:flex items-center justify-center p-6 cursor-pointer disabled:opacity-40 disabled:cursor-default",e),disabled:!r,onClick:n,"aria-label":"Next slide",...t})}function gs({className:e,variant:t="default"}){const{api:n}=ar(),[r,o]=x.useState(0),[i,a]=x.useState([]);return x.useEffect(()=>{if(!n)return;const l=()=>{a(n.scrollSnapList()),o(n.selectedScrollSnap())},c=()=>{o(n.selectedScrollSnap())};return l(),n.on("select",c),n.on("reInit",l),()=>{n.off("select",c),n.off("reInit",l)}
3},[n]),i.length<=1?null:s.jsx("div",{className:Ce("flex justify-center gap-4 mt-3",e),role:"tablist","aria-label":"Slide indicators",children:i.map((l,c)=>s.jsx("button",{type:"button",role:"tab","aria-selected":c===r,"aria-label":`Go to slide ${c+1}`,className:Ce("w-2 h-2 rounded-full border transition-colors",t==="inverted"?"border-white":"border-grey60",c===r&&(t==="inverted"?"bg-white border-white":"bg-accent border-accent")),onClick:()=>n?.scrollTo(c)},c))})}const o0=({page:e,total:t,limit:n,pathname:r,search:o,showPagination:i,showViewAll:a})=>{const l=Math.ceil(t/n),c=i&&l>1,d=a&&t>n;if(!c&&!d)return null;const u=m=>{const h=new URLSearchParams(o);m===1?h.delete("page"):h.set("page",String(m));const p=h.toString();return p?`${r}?${p}`:r},f=()=>{const m=new URLSearchParams(o);return m.set("page","-1"),`${r}?${m.toString()}`};return s.jsxs("div",{className:"flex items-center justify-center gap-4 mt-8",children:[c&&s.jsxs("nav",{"aria-label":"Pagination",className:"flex items-center gap-1",children:[e>1&&s.jsx("a",{href:u(e-1),"aria-label":"Previous page",className:"p-2",children:s.jsx(H,{glyph:"arrow-left",ariaLabel:"",color:"currentColor"})}),Array.from({length:l},(m,h)=>h+1).map(m=>s.jsx("a",{href:u(m),"aria-label":`Page ${m}`,"aria-current":m===e?"page":void 0,className:`px-3 py-1 body-sm ${m===e?"font-bold underline":"hover:underline"}`,children:m},m)),e<l&&s.jsx("a",{href:u(e+1),"aria-label":"Next page",className:"p-2",children:s.jsx(H,{glyph:"arrow-right",ariaLabel:"",color:"currentColor"})})]}),d&&s.jsx("a",{href:f(),className:"body-sm underline",children:"View All"})]})},i0=({sectionId:e,title:t,guides:n})=>{const r=[...n].sort((o,i)=>o.url.localeCompare(i.url));return s.jsxs("section",{id:e,children:[t&&s.jsx("h3",{className:"heading-xs text-heading mb-4",children:t}),r.map(o=>s.jsx("div",{children:s.jsx("a",{href:o.url,className:"body-base text-primary underline hover:underline",children:o.title})},o.id))]})},a0=3,l0=({guides:e})=>s.jsxs(ps,{opts:{align:"start",slidesToScroll:1},children:[s.jsx(hs,{children:e.map(t=>s.jsx(xs,{className:"basis-[80%] md:basis-1/3",children:s.jsx(or,{...t,className:"guide-card-in-carousel h-full"})},t.id))}),e.length>a0&&s.jsxs("div",{className:"hidden md:flex gap-4 mt-6",children:[s.jsx(fi,{className:"p-0",children:s.jsx(H,{glyph:"arrow-left",size:"xlarge",color:"var(--color-primary)",ariaLabel:""})}),s.jsx(mi,{className:"p-0",children:s.jsx(H,{glyph:"arrow-right",size:"xlarge",color:"var(--color-primary)",ariaLabel:""})})]}),s.jsx(gs,{className:"md:hidden"})]}),c0=({sectionId:e,title:t,data:n,variant:r,layout:o,showPagination:i=!0,showViewAll:a=!1,pathname:l,search:c=""})=>{const{guides:d,total:u,page:f,limit:m}=n;if(d.length===0)return null;if(r==="html-sitemap")return s.jsx(i0,{sectionId:e,title:t,guides:d});const h=o==="carousel",p=!o||o==="default";return s.jsxs("section",{id:e,children:[t&&s.jsx("h3",{className:"category-guides-title mb-4",children:t}),h?s.jsx(l0,{guides:d}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:d.map(b=>s.jsx(or,{...b},b.id))}),p&&(i||a)&&s.jsx(o0,{page:f,total:u,limit:m,pathname:l,search:c,showPagination:i,showViewAll:a})]})},d0=({entry:e})=>{const{categoryGuidesData:t,app:n}=J();if(!kv(e))return null;const r=t?.[e.sys.id];if(!r)return null;const{name:o,title:i,variant:a,layout:l,showPagination:c,showViewAll:d}=e.fields,u=o.replace(/\s+/g,""),f=n?.location.pathname??"",m=n?.location.search??"";return s.jsx(c0,{sectionId:u,title:i,data:r,variant:a,layout:l,showPagination:c??!0,showViewAll:d??!1,pathname:f,search:m})},u0=ee("checklist"),eu="numbered",f0={money:{glyph:"tick",color:"var(--color-success)"},uswitch:{glyph:"tick-square",color:"var(--color-grey90)"},confused:{glyph:"tick-square-thin",color:"var(--color-grey90)",size:"xlarge"}},m0={money:{glyph:"cross",color:"var(--color-error)"},uswitch:{glyph:"cross",color:"var(--color-error)"},confused:{glyph:"cross-square-thin",color:"var(--color-grey90)",size:"xlarge"}},p0=(e,t)=>{const n={cross:m0[t],"thumb-down":{glyph:"thumb-down",color:"var(--color-error)"},"thumb-up":{glyph:"thumb-up",color:"var(--color-success)"},tick:f0[t],"tick-circle":{glyph:"tick-circle",color:"var(--color-grey90)"},"tick-circle-white":{glyph:"tick-circle",color:"var(--color-white)"}};return e===eu||e==="bullet"?null:n[e]},h0=te({base:"grid max-w-[1152px] gap-4",variants:{twoCol:{true:"md:grid-cols-2 md:gap-x-16",false:"grid-cols-1"}}}),Ha=({content:e,iconName:t})=>{const n=Te(),r=vc(t),o=r===eu,i=r==="bullet",a=p0(r,n),l=x.useMemo(()=>({renderNode:{[C.PARAGRAPH]:(c,d)=>s.jsx("p",{className:"text-base text-palette-text",children:d}),[C.UL_LIST]:(c,d)=>s.jsx("ul",{className:o?"checklist-numbered-ul flex flex-col gap-4":i?"list-disc pl-6 mb-3 contentful-list":"flex flex-col gap-4",children:d}),[C.LIST_ITEM]:(c,d)=>o?s.jsx("li",{className:"checklist-numbered-item flex items-start gap-3",children:d}):i?s.jsx("li",{children:d}):s.jsxs("li",{className:"flex items-start gap-3 [&>svg]:shrink-0",children:[a&&s.jsx(H,{glyph:a.glyph,color:a.color,size:a.size,ariaLabel:""}),d]})}}),[o,a]);return s.jsx(he,{content:e,options:l,collapseSpacing:!0})}
3,x0=({heading:e,firstChecklistIcon:t,firstChecklist:n,secondChecklistIcon:r,secondChecklist:o})=>s.jsxs("div",{className:"text-left p-2",children:[e&&s.jsx(he,{content:e}),s.jsxs("div",{className:h0({twoCol:!!o?.content.length}),children:[s.jsx(Ha,{content:n,iconName:t}),!!o?.content.length&&s.jsx(Ha,{content:o,iconName:r??"bullet"})]})]}),tu=({entry:e})=>{const{linkedEntries:t}=J();if(!u0(e))return null;const{heading:n,firstChecklist:r,firstChecklistIcon:o,secondChecklist:i,secondChecklistIcon:a,palette:l}=e.fields,c=s.jsx(x0,{heading:n,firstChecklist:r,firstChecklistIcon:o,secondChecklist:i,secondChecklistIcon:a}),d=l?t.find(f=>f.sys.id===l.sys.id):void 0,u=d&&tr(d)?d:void 0;return u?s.jsx(Gt,{paletteEntry:u,children:c}):c},g0=ee("collectionModule"),b0=e=>{if(!V(e)||!V(e.styles))return!1;const{row:t}=e.styles;if(!V(t))return!1;const n=t["& > div:first-child"];return V(n)&&n.width==="unset"},y0=({entries:e,colsDesktop:t,colsMobile:n,layout:r,horizontalAlignment:o,options:i})=>{const a=ct(),{linkedEntries:l,linkedAssets:c}=J(),u=ns(e,l).flatMap(([A,v])=>v.map(j=>({link:j,palette:A}))),f=u.length,m=o==="center",h=r==="logos"?f/2:n,p=r==="logos"?f:t,b=A=>m&&(f===1||f<A)?"fit-content(100%)":"minmax(0,1fr)",g=b0(i),y=A=>g&&A>1?`auto repeat(${A-1}, minmax(0,1fr))`:`repeat(${A}, ${b(A)})`,w={"--template-mobile":y(h),"--template-desktop":y(p)},k=(A,v)=>!m&&A===f-1&&f<v?v-f+1:1;return s.jsx("div",{className:`grid gap-4 [grid-template-columns:var(--template-mobile)] md:[grid-template-columns:var(--template-desktop)] ${m?"justify-center":""}`,style:w,children:u.map(({link:A,palette:v},j)=>{const E={"--span-mobile":k(j,h),"--span-desktop":k(j,p)},N=v0(a,A,l,c);return s.jsx("div",{className:`[grid-column:span_var(--span-mobile)] md:[grid-column:span_var(--span-desktop)] ${r==="logos"?"m-auto":""}`,style:E,children:v?s.jsx(Gt,{paletteEntry:v,children:N}):N},A.sys.id)})})},v0=(e,t,n,r)=>{const o=cn(t,n);if(o&&lc(o)){const i=o.fields.variants?.[0],a=i&&ke(i,n,"modularPage"),l=a?.metaImage&&yt(a.metaImage,r);return a?s.jsx(or,{url:o.fields.url,title:a.title,description:a.metaDescription,ctaText:a.linkText,imageUrl:l?.fields.file?.url,imageAlt:l?.fields.description??""}):null}return e(t,{vertical:!1,horizontal:!1})},w0=({entries:e})=>{const t=ct(),[n,r]=x.useState(0),o=Wn(e,"pill");if(o.length===0)return null;const i=Math.min(n,o.length-1),a=o[i].fields.modules;return s.jsxs("div",{children:[s.jsx("div",{className:"mb-4 flex justify-center",children:s.jsx("div",{role:"tablist",className:"inline-flex items-center gap-2 rounded-full border border-primary bg-white px-6 py-3",children:o.map((l,c)=>{const d=c===i;return s.jsx("button",{type:"button",role:"tab","aria-selected":d,onClick:()=>{r(c)},className:["rounded-full px-4 py-2 text-sm font-medium transition-colors",d?"bg-surface-inverse text-white":"text-primary hover:bg-gray-100"].join(" "),children:l.fields.title},l.id)})})}),s.jsx("div",{role:"tabpanel",className:"[&_.rtb-two-col]:ml-0 md:[&_.rtb-two-col]:gap-8 md:[&_.rtb-col-one]:basis-[48%] md:[&_.rtb-col-two]:basis-[48%] md:[&_.rtb-col-two]:flex md:[&_.rtb-col-two]:items-center [&_.collection-proposition]:my-0",children:a.map(l=>s.jsx(x.Fragment,{children:t(l,{vertical:!1,horizontal:!1})},l.sys.id))})]})},j0=te({base:"flex flex-col md:flex-row gap-6 p-8 rounded-[36px] shadow-lg text-center md:text-left bg-white"}),N0=({background:e,heading:t,children:n})=>s.jsxs("div",{className:j0(),children:[t&&s.jsx("div",{className:"md:flex-initial text-primary",children:t}),s.jsx("div",{className:"text-base flex flex-col md:flex-[0_1_120%] md:[&_.rtb-two-col]:ml-0 md:[&_.rtb-two-col]:gap-4 md:[&_.rtb-col-one]:basis-[30%] md:[&_.rtb-col-two]:basis-[70%] [&_:is(h1,h2,h3,h4,h5,h6)]:text-primary [&_img]:block [&_img]:mx-auto",children:n})]}),k0=te({base:"flex flex-col items-center p-4 md:p-8 rounded-[36px]",variants:{background:{default:"",primary:"bg-accent [&_:is(h2,h4)]:text-white [&_h4]:text-center","primary-gradient":"[background:var(--color-collection-primary-gradient)] [&_:is(h2,h4)]:text-white [&_h4]:text-center",secondary:"bg-surface-muted shadow-lg my-8",featured:"bg-accent-warm [&_:is(h2,h4)]:text-white [&_h4]:text-center"}}}),E0=new Set(["pills","tabs"]),_0=({entry:e})=>{const{fields:t}
3=e,n=t.colsDesktop?parseInt(t.colsDesktop,10):3,r=t.colsMobile?parseInt(t.colsMobile,10):1,o=t.layout==="proposition",i=t.layout?E0.has(t.layout):!1,a=t.heading?s.jsx(he,{content:t.heading}):null,l=s.jsx(y0,{layout:t.layout,entries:t.entries,colsDesktop:n,colsMobile:r,horizontalAlignment:t.gridHorizontalAlignment,options:t.options});if(o)return s.jsx("div",{className:"collection-proposition my-8",children:s.jsx(N0,{background:t.background,heading:a,children:l})});const c=t.background!==void 0&&t.background!=="default";return i||c?s.jsxs("div",{className:k0({background:t.background}),children:[a&&s.jsx("div",{className:Ce("w-full",c&&"[&_h2]:text-center"),children:a}),s.jsx("div",{className:"w-full",children:i?s.jsx(w0,{entries:t.entries}):l})]}):s.jsxs(s.Fragment,{children:[a,l]})},C0=({entry:e})=>g0(e)?s.jsx(_0,{entry:e}):null,pi=ee("component"),T0=()=>s.jsxs("div",{children:[s.jsx("div",{className:"skeleton h-8 w-72 my-4"}),s.jsx("div",{className:"skeleton h-6 w-96 mb-6"}),s.jsxs("div",{className:"mt-6 lg:mt-12 border border-accent rounded-lg bg-white shadow-lg p-5 lg:p-[50px]",children:[s.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:justify-evenly lg:gap-6",children:[s.jsxs("div",{className:"flex flex-col min-w-[160px] gap-2",children:[s.jsx("div",{className:"skeleton h-5 w-28"}),s.jsx("div",{className:"skeleton h-12 w-full rounded"})]}),s.jsxs("div",{className:"flex flex-col min-w-[160px] gap-2",children:[s.jsx("div",{className:"skeleton h-5 w-20"}),s.jsx("div",{className:"skeleton h-12 w-full rounded"})]}),s.jsxs("div",{className:"flex flex-col min-w-[160px] gap-2",children:[s.jsx("div",{className:"skeleton h-5 w-36"}),s.jsx("div",{className:"skeleton h-12 w-full rounded"})]})]}),s.jsxs("div",{className:"mt-12 flex flex-col items-center gap-4",children:[s.jsx("div",{className:"skeleton h-8 w-80"}),s.jsx("div",{className:"skeleton h-8 w-64"}),s.jsx("div",{className:"skeleton h-12 w-52 rounded-full mt-4"})]})]})]}),S0=x.lazy(async()=>await lt(()=>import("./index-wZzmQJyP.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),A0=()=>s.jsx(x.Suspense,{fallback:s.jsx(T0,{}),children:s.jsx(S0,{})}),R0=e=>s.jsx(A0,{}),P0=()=>s.jsxs("div",{className:"flex w-full flex-col items-center bg-grey15 pb-12",children:[s.jsx("div",{className:"w-full bg-white",children:s.jsx("div",{className:"mx-auto flex max-w-page flex-wrap gap-2 px-4 py-4",children:Array.from({length:27}).map((e,t)=>s.jsx("div",{className:"skeleton h-9 w-10 rounded"},t))})}),s.jsxs("div",{className:"mx-auto mt-8 w-full max-w-page px-4",children:[s.jsx("div",{className:"skeleton mb-4 h-8 w-12"}),s.jsx("div",{className:"flex flex-wrap gap-4",children:Array.from({length:6}).map((e,t)=>s.jsx("div",{className:"skeleton h-[133px] w-[calc(50%-12px)] sm:w-[152px] lg:w-[167px]"},t))})]})]}),I0=x.lazy(async()=>await lt(()=>import("./index-BqJMi_FF.js"),__vite__mapDeps([7,1]))),L0=({providers:e})=>s.jsx(x.Suspense,{fallback:s.jsx(P0,{}),children:s.jsx(I0,{providers:e})}),D0=({entry:e})=>{const t=wm();if(!pi(e))return null;const n=t?.[e.sys.id]??[];return n.length===0?null:s.jsx(L0,{providers:n})},O0=()=>s.jsxs("div",{className:"my-3 lg:my-6 border border-accent rounded-[24px] p-[30px_18px] lg:p-[40px_50px]",children:[s.jsxs("div",{className:"flex flex-col items-center gap-4 lg:flex-row lg:items-start",children:[s.jsx("div",{className:"skeleton h-12 w-12 rounded-full"}),s.jsx("div",{className:"skeleton h-8 w-3/4"})]}),s.jsxs("div",{className:"mt-8 flex flex-col gap-4 lg:flex-row",children:[s.jsxs("div",{className:"flex flex-col gap-2 lg:w-1/3",children:[s.jsx("div",{className:"skeleton h-5 w-40"}),s.jsx("div",{className:"skeleton h-5 w-36"}),s.jsx("div",{className:"skeleton h-5 w-32"})]}),s.jsxs("div",{className:"flex-1 flex flex-col gap-2",children:[s.jsx("div",{className:"skeleton h-5 w-full"}),s.jsx("div",{className:"skeleton h-5 w-full"}),s.jsx("div",{className:"skeleton h-5 w-2/3"})]})]})]}),M0=x.lazy(async()=>await lt(()=>import("./index-DM4IFHfA.js"),__vite__mapDeps([8,1,2,3,4,5,6]))),$0=e=>s.jsx(x.Suspense,{fallback:s.jsx(O0,{}),children:s.jsx(M0,{...e})}),F0=({entry:e})=>{const t=Nm(e.sys.id);if(!pi(e))return null;const n=e.fields.options,r=V(n)&&n.variant==="capital-on-tap"?"capital-on-tap":"zempler";return s.jsx($0,{variant:r,capitalOnTapApplication:t?.capitalOnTapApplication,zemplerApplication:t?.zemplerApplication})},B0="max-w-[888px] w-[92%] mx-auto my-8 text-center",z0=["rounded-lg bg-white border border-accent shadow-lg","p-6 text-center"].join(" "),H0=()=>s.jsx("div",{className:B0,children:s.jsxs("div",{className:z0,children:[s.jsx("div",{className:"skeleton w-16 h-16 mx-auto rounded-full"}),s.jsx("div",{className:"skeleton h-8 w-72 mx-auto mt-6"}),s.jsx("div",{className:"skeleton h-8 w-8 mx-auto my-3 rounded-full"}),s.jsx("div",{className:"skeleton h-6 w-96 max-w-full mx-auto mt-3"})]})}),V0=x.lazy(async()=>await lt(()=>import("./index-D4Gc0t61.js"),__vite__mapDeps([9,1,10,2,3,4,5,6]))),U0=()=>s.jsx(x.Suspense,{fallback:s.jsx(H0,{}),children:s.jsx(V0,{})}),G0=e=>s.jsx(U0,{}),W0=({entry:e})=>
3{if(!pi(e))return null;switch(e.fields.component){case"CreditCardCalculator":return s.jsx(R0,{entry:e});case"ProvidersList":return s.jsx(D0,{entry:e});case"ResultsCard":return s.jsx(F0,{entry:e});case"Unsubscribe":return s.jsx(G0,{entry:e});default:return null}},q0=ee("conditionalModule"),Y0=(e,t)=>{const n=".length";if(t.endsWith(n)){const o=t.slice(0,-n.length),i=to(e,o);return Array.isArray(i)||typeof i=="string"?i.length:void 0}const r=to(e,t);if(typeof r=="string"||typeof r=="number"||typeof r=="boolean"||Array.isArray(r))return r},Va=(e,t)=>{let n=!1;const r=Y0(t,e.property);switch(e.condition){case"exists":n=Kg(t,e.property);break;case"equals":n=e.value!==void 0?r===e.value:!1;break;case"isEmpty":n=Array.isArray(r)&&r.length===0;break;case"gte":n=typeof e.value=="number"&&typeof r=="number"?r>=e.value:!1;break;case"lte":n=typeof e.value=="number"&&typeof r=="number"?r<=e.value:!1;break}return e.inverse===!0?!n:n},K0=(e,t)=>Array.isArray(e)?e.every(n=>Va(n,t)):Va(e,t),Z0=({entry:e})=>{const t=J(),n=ct();if(!q0(e))return null;const{condition:r,modules:o}=e.fields;if(!K0(r,t))return null;const l=ns(o??[],t.linkedEntries);return s.jsx(s.Fragment,{children:l.filter(([,c])=>c.length>0).map(([c,d],u)=>{const f=d.map(m=>s.jsx(x.Fragment,{children:n(m,{vertical:!0,horizontal:!0})},m.sys.id));return c?s.jsx(Gt,{paletteEntry:c,children:f},c.sys.id):s.jsx(x.Fragment,{children:f},u)})})},X0=ee("cookieToggle"),Q0=e=>e.split(";").map(t=>{const n=t.split("=");return[n[0],n.slice(1).join("=")]}).reduce((t,[n,r])=>{const o=decodeURIComponent(n.trim());if(!o)return t;const i=decodeURIComponent(r.trim());return{...t,[o]:i}},{}),nu=e=>{if(typeof window>"u")return null;const t=Q0(document.cookie);return{}.hasOwnProperty.call(t,e)?t[e]:null},hi="cookie-preferences",J0=1e3,e1=e=>e*24*60*60*1e3,t1=e=>{const t=new Date;return t.setTime(t.getTime()+e),` expires=${t.toUTCString()};`},n1=(e,t,n)=>{if(typeof document>"u")return;const r=t1(e1(n));document.cookie=`${e}=${t};${r} path=/`},ru=()=>{const e=nu(hi);if(!e)return null;try{const t=JSON.parse(e);return V(t)?t:null}catch{return null}},su=()=>{const e=ru();if(!e)return null;const t={};for(const[n,r]of Object.entries(e))typeof r=="boolean"&&(t[n]=r);return t},r1=(e,t)=>{const n=ru();if(!n){typeof window<"u"&&"Sentry"in window&&window.Sentry.captureException(new Error("No consent cookie found"));return}const r=JSON.stringify({...n,[e]:t});n1(hi,r,J0)},s1=({id:e,checked:t,onChange:n,ariaLabel:r,labelledBy:o})=>{const i=a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),n())};return s.jsx("div",{className:"inline-block align-middle",children:s.jsx("div",{id:e,role:"checkbox",tabIndex:0,"aria-checked":t,"aria-label":o?void 0:r,"aria-labelledby":o,onClick:n,onKeyDown:i,className:`box-content h-10 w-20 rounded-full border p-1 transition-[background-color,border-color] duration-[400ms] ${t?"border-accent bg-accent":"border-grey40 bg-grey10"}`,children:s.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-full border bg-white transition-transform duration-[400ms] ${t?"translate-x-10 border-accent":"translate-x-0 border-grey40"}`})})})},o1=(e,t)=>{ze("Cookie Preference Toggled",{action:"toggled",label:JSON.stringify({name:e,value:t}),category:hi,interactive:!0})},i1=()=>{if(typeof window>"u"||!window.nerdalytics)return;const e=su();e&&window.nerdalytics.setContext&&window.nerdalytics.setContext({castPermissions:e})},a1=()=>{if(typeof window>"u"||!window.nerdalytics?.identify)return;const e=nu("usci");window.nerdalytics.identify(e??"")},l1=({type:e,acceptedText:t="On",declinedText:n="Off"})=>{const[r,o]=x.useState(!1),i=`${e}-cookie-toggle`,a=`${i}-label`;x.useEffect(()=>{const c=su();o(c?.[e]??!1)},[e]);const l=()=>{const c=!r;o(c),o1(e,c),r1(e,c),i1(),a1()};return s.jsxs("div",{className:"flex items-center pb-4",children:[e==="essential"?s.jsx(H,{glyph:"tick-circle",color:"currentColor",size:"large",ariaLabel:""}):s.jsx(s1,{id:i,checked:r,onChange:l,ariaLabel:`Toggle ${e} cookies`,labelledBy:a}),s.jsx("span",{id:a,onClick:e==="essential"?void 0:l,className:`ml-2 flex items-center${e==="essential"?"":" cursor-pointer"}`,children:r?t:n})]})},c1=["essential","performance","marketing","functionality","social"],d1=e=>e!==void 0&&c1.includes(e),u1=({entry:e})=>
3{if(!X0(e))return null;const{type:t}=e.fields;return d1(t)?s.jsx(l1,{type:t}):null},f1=ee("cta"),m1=te({slots:{background:"my-4",wrapper:"max-w-[928px] py-4 px-3 md:px-12 mx-auto",textWrapper:"flex flex-col items-center justify-between md:items-start [&>div]:w-full",textContent:"mr-0 md:text-left md:mr-6 md:mb-0 [&_h1]:text-inherit [&_h2]:text-inherit [&_h3]:text-inherit [&_h4]:text-inherit [&_h5]:text-inherit [&_h6]:text-inherit [&>*:first-child]:mt-0 [&>*:last-child]:mb-8 md:[&>*:last-child]:mb-0",imageWrapper:"flex-1 max-w-full",image:"max-w-full [&_img]:max-h-[300px] [&_img]:max-w-full [&_img]:object-contain",buttonWrapper:"w-full max-w-full mb-0 md:w-max md:max-w-max"},variants:{variant:{default:{background:"my-4 bg-cta-band-bg"},centered:{background:"my-4 bg-cta-band-bg",wrapper:"max-w-[928px] py-4 px-3 md:px-12 mx-auto text-center",textWrapper:"flex flex-col items-center text-center [&>div]:w-full",textContent:"text-center mr-0 [&_h1]:text-inherit [&_h2]:text-inherit [&_h3]:text-inherit [&_h4]:text-inherit [&_h5]:text-inherit [&_h6]:text-inherit [&>*:first-child]:mt-0 [&>*:last-child]:mb-4",imageWrapper:"hidden"},withImage:{background:"my-4 bg-cta-band-bg",wrapper:"max-w-[928px] mx-auto flex flex-col items-center text-center overflow-visible pr-3 py-8 pl-3 md:flex-row md:text-left md:pl-12 md:pr-3",textWrapper:"w-full flex-1 md:w-max",textContent:"mr-0 text-center md:text-left md:mr-6 md:mb-0 [&_h1]:text-inherit [&_h2]:text-inherit [&_h3]:text-inherit [&_h4]:text-inherit [&_h5]:text-inherit [&_h6]:text-inherit [&>*:first-child]:mt-4 [&>*:last-child]:mb-8",image:"max-w-full ml-auto mr-0 [&_img]:max-h-[300px] [&_img]:max-w-full [&_img]:object-contain",buttonWrapper:"w-full max-w-full mb-4 md:w-auto md:max-w-none md:mb-0 ml-0"},imageOnRight:{background:"my-4 bg-cta-band-bg",wrapper:"max-w-[928px] mx-auto flex flex-col items-center text-center overflow-visible pr-3 py-8 pl-3 md:flex-row md:text-left md:pl-12 md:pr-3",textWrapper:"w-full flex-1 md:w-max",textContent:"mr-0 text-center md:text-left md:mr-6 md:mb-0 [&_h1]:text-inherit [&_h2]:text-inherit [&_h3]:text-inherit [&_h4]:text-inherit [&_h5]:text-inherit [&_h6]:text-inherit [&>*:first-child]:mt-4 [&>*:last-child]:mb-8",image:"max-w-full ml-auto mr-0 [&_img]:max-h-[300px] [&_img]:max-w-full [&_img]:object-contain",buttonWrapper:"w-full max-w-full mb-4 md:w-auto md:max-w-none md:mb-0 ml-0"},imageOnLeft:{background:"my-4 bg-cta-band-bg",wrapper:"max-w-[928px] mx-auto flex flex-col items-center text-center overflow-visible pl-3 py-8 pr-3 md:flex-row-reverse md:text-left md:pr-12 md:pl-3",textWrapper:"w-full flex-1 md:w-max",textContent:"mr-0 text-center md:text-left md:mr-6 md:mb-0 [&_h1]:text-inherit [&_h2]:text-inherit [&_h3]:text-inherit [&_h4]:text-inherit [&_h5]:text-inherit [&_h6]:text-inherit [&>*:first-child]:mt-4 [&>*:last-child]:mb-8",image:"max-w-full mr-auto ml-0 [&_img]:max-h-[300px] [&_img]:max-w-full [&_img]:object-contain",buttonWrapper:"w-full max-w-full mb-4 md:w-auto md:max-w-none md:mb-0 ml-0"},hero:{background:"my-0 text-white"},"hero-white-bg":{background:"my-4 bg-white"},billboard:{background:"my-0 bg-white"}},hasPalette:{true:{background:""}}},defaultVariants:{variant:"default"}}),p1=({text:e,button:t,image:n,variant:r,hasPalette:o=!1,className:i})=>{const a=typeof r=="string"&&r.toLowerCase().includes("image");let l;a&&!n?l="default":r==="default"&&n?l="withImage":r?l=r:l=n?"withImage":"default";const c=m1({variant:l,hasPalette:o});return s.jsx("div",{className:[o?"":c.background(),"palette",i].filter(Boolean).join(" "),children:s.jsxs("div",{className:c.wrapper(),children:[s.jsxs("div",{className:c.textWrapper(),children:[s.jsx("div",{className:c.textContent(),children:e}),t&&s.jsx("div",{className:c.buttonWrapper(),children:t})]}),n&&s.jsx("div",{className:c.imageWrapper(),children:s.jsx("div",{className:c.image(),children:n})})]})})},h1=new Set(["default","centered","withImage","imageOnLeft","imageOnRight","hero","hero-white-bg","billboard"]),x1=e=>{if(e)return h1.has(e)?e:void 0},g1=({entry:e})=>{const{linkedEntries:t}=J(),n=ct();if(!f1(e))return null;const{text:r,image:o,button:i,variant:a,palette:l}=e.fields,c={vertical:!1,horizontal:!1},d=i?n(i,c):void 0,u=o?n(o,c):void 0,f=r?s.jsx(he,{content:r,collapseSpacing:!0}):void 0,m=l?t.find(b=>b.sys.id===l.sys.id):void 0,h=m&&tr(m)?m:void 0,p=s.jsx(p1,{text:f,button:d,image:u,variant:x1(a),hasPalette:!!h});return h?s.jsx(Gt,{paletteEntry:h,children:p}):p},b1=ee("featuredCards"),y1="featured-cards",v1=({id:e,titleNode:t,subHeadingNode:n,bodyNode:r,linkText:o,linkHref:i})=>{const a=!!(o&&i);return s.jsx("div",{className:"bg-white shadow-lg mb-4 md:mb-0",children:s.jsxs("div",{className:"flex flex-col gap-5 px-10 pt-10 pb-10",children:[t,n,r,a&&s.jsx(Me,{href:i,size:"small",id:e,componentName:y1,children:o})]})})},w1={2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:5,rows:1},6:{cols:3,rows:2},7:{cols:7,rows:1},8:{cols:4,rows:2},9:{cols:3,rows:3},10:{cols:5,rows:2},11:{cols:11,rows:1},12:{cols:3,rows:4}},j1=({headingNode:e,footerNode:t,cards:n})=>{const{cols:r,rows:o}=w1[n.length]??{cols:1,rows:n.length};return s.jsxs("div",{children:[e&&s.jsx("div",{className:"py-4 text-left",children:e}),Array.from({length:o},(i,a)=>s.jsx("div",{className:"block md:grid gap-x-5 mb-5",style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:n.slice(a*r,(a+1)*r).map(l=>s.jsx(v1,{...l},l.id))},a)),t&&s.jsx("div",{className:"pt-8 text-center",children:t})]})},N1=({entry:e})=>{const{linkedEntries:t}=J();if(!b1(e))return null;const{heading:n,footer:r,cards:o}=e.fields,i=o?.flatMap(a=>{const l=ke(a,t,"featuredCardsCard");if(!l)return[];const{title:c,subHeading:d,description:u,linkText:f,linkHref:m}=l,h=c?s.jsx(he,{content:c}):void 0;return[{id:a.sys.id,titleNode:h&&m?s.jsx("a",{href:m,className:"block text-current no-underline cursor-pointer",children:h}):h,subHeadingNode:d?s.jsx(he,{content:d}):void 0,bodyNode:u?s.jsx(he,{content:u}):void 0,linkText:f,linkHref:m}]});return i?s.jsx(j1,{headingNode:n?s.jsx(he,{content:n}):void 0,footerNode:r?s.jsx(he,{content:r}):void 0,cards:i}):null},k1=ee("form"),E1=e=>{const t=e.replace(/[^0-9]/g,"");
3return t?Number(t).toLocaleString("en-GB"):""},_1=e=>e.replace(/[^0-9]/g,""),C1=(e,t)=>t==="currency"?E1(e):t==="numeric"?_1(e):e,Mr=(e,t)=>{const{validation:n}=e;if(!n)return null;const r=t.trim();if(n.required&&!r)return n.required;if(!r)return null;if(n.customFunction?.minValue){const{min:o,message:i}=n.customFunction.minValue;if(T1(t)<o)return i}return null},T1=e=>{const t=e.replace(/[^0-9.]/g,"");return parseFloat(t)||0},S1=({field:e})=>s.jsx("input",{type:"hidden",name:e.name,value:e.value}),A1=({field:e,error:t,submitAttempted:n,variant:r,onValidationChange:o,instanceId:i})=>{const[a,l]=x.useState(""),[c,d]=x.useState(!1),u=e.inputMask?.customMask,f=c||n,m=`${i}${e.name}`,h=`${m}-error`;x.useEffect(()=>{n&&!c&&o(e.name,Mr(e,a))},[n]);const p=g=>{const y=C1(g.target.value,u);if(l(y),f){const w=Mr(e,y);o(e.name,w)}},b=()=>{d(!0);const g=Mr(e,a);o(e.name,g)};return s.jsxs("div",{className:"mb-3 w-full",children:[e.label&&s.jsx("label",{htmlFor:m,className:`mb-2 block ${["panel","email-capture","platinum-ppc","compact"].includes(r)?"body-base font-medium":"heading-xs text-secondary"}`,children:e.label}),s.jsxs("div",{className:`flex items-stretch border bg-white rounded-[var(--form-input-radius)] ${t?"border-feedback-error ring-1 ring-inset ring-feedback-error":"border-line-strong focus-within:border-accent focus-within:ring-1 focus-within:ring-inset focus-within:ring-accent"}`,children:[e.prefix&&s.jsx("span",{"aria-hidden":"true",className:"flex items-center border-line-strong px-3 text-grey80 font-[var(--form-affix-weight)] border-r-[length:var(--form-affix-divider-width)]",children:e.prefix}),s.jsx("input",{id:m,name:e.name,type:"text",value:a,onChange:p,onBlur:b,placeholder:e.placeholder,required:!!e.validation?.required,"aria-invalid":t?!0:void 0,"aria-describedby":t?h:void 0,className:"flex-1 appearance-none border-none bg-transparent p-3 text-base outline-none"})]}),t&&s.jsx("p",{id:h,className:"body-sm relative mt-3 bg-feedback-error px-2.5 py-4 text-inverse before:absolute before:-top-2 before:left-2.5 before:h-0 before:w-0 before:border-x-8 before:border-b-8 before:border-x-transparent before:border-b-feedback-error before:content-['']",children:t})]})},R1=te({base:"",variants:{variant:{simple:"",panel:["bg-form-panel-bg rounded-form-panel p-4 w-full shadow-lg","[border-width:var(--form-panel-border-width)] border-black/10","lg:w-[375px] lg:mx-0 mx-auto"],default:"bg-white rounded px-6 py-4","email-capture":["bg-surface-highlight p-6 my-12 lg:text-center","md:p-12"],"platinum-ppc":["bg-white rounded-lg border border-black/10 p-4 w-full shadow-lg","lg:w-[375px] lg:mx-0 mx-auto"],compact:"bg-white rounded-lg p-3 w-full"}}}),Ls="[&>button]:w-full lg:[&>button]:w-[var(--form-button-width-desktop)]",P1="[&>button]:w-full lg:[&>button]:w-[var(--form-panel-button-width-desktop)]",I1=te({base:"mt-3 w-full",variants:{variant:{simple:"",panel:P1,default:Ls,"email-capture":"lg:inline-block","platinum-ppc":Ls,compact:Ls}}}),L1=te({base:"mt-3 flex w-full items-center [justify-content:var(--sponsored-by-tag-justify)] gap-4",variants:{variant:{simple:"",panel:"mt-3 lg:mt-2",default:"mt-3 lg:mt-2","email-capture":"","platinum-ppc":"mt-3 lg:mt-2",compact:""}}}),D1=e=>{if(!e)return{base:e,params:[]};const t=e.indexOf("?");if(t===-1)return{base:e,params:[]};const n=e.slice(0,t),r=Array.from(new URLSearchParams(e.slice(t+1)).entries());return{base:n,params:r}},O1=({schema:e,variant:t,action:n,widget:r,sponsoredBy:o,entryId:i,page:a})=>{const l=x.useRef(null),c=x.useId(),[d,u]=x.useState({}),[f,m]=x.useState(!1),h=e.steps[0];if(!h)return null;const p=e.method.toUpperCase()==="GET",{base:b,params:g}=p?D1(n):{base:n,params:[]},y=new Set(h.fields.map(N=>N.name)),w=g.filter(([N])=>!y.has(N)&&!(a&&N==="page")),k=!!a,A=a?h.fields.filter(N=>N.name!=="page"):h.fields,v=x.useCallback((N,S)=>{u(D=>({...D,[N]:S}))},[]),j=N=>{m(!0);const S=h.fields.filter(M=>M.type==="input");if(!l.current)return;const D=new FormData(l.current),L={};let F=!1;for(const M of S){const P=D.get(M.name),R=Mr(M,typeof P=="string"?P:"");L[M.name]=R,R&&(F=!0)}u(L),F&&N.preventDefault()},E=N=>{const D=Ke({eventName:"component cta clicked",...{href:n,text:N,componentId:i,componentName:"form"}});ze("Click Event",D)};return s.jsxs("form",{ref:l,method:e.method,action:b,target:"_blank",onSubmit:j,className:R1({variant:t}),children:[w.map(([N,S],D)=>s.jsx("input",{type:"hidden",name:N,value:S},`action-param-${D}-${N}`)),k&&s.jsx("input",{type:"hidden",name:"page",value:a}),A.map(N=>N.type==="hidden"?s.jsx(S1,{field:N},N.name):s.jsx(A1,{field:N,error:d[N.name]??null,submitAttempted:f,variant:t,onValidationChange:v,instanceId:c},N.name)),s.jsx("div",{className:I1({variant:t}),children:s.jsx(Kt,{type:"submit",variant:h.buttonProps.variant,disabled:Object.values(d).some(Boolean),onClick:()=>{E(h.buttonProps.label)},children:h.buttonProps.label})}),(o??r)&&s.jsxs("div",{className:L1({variant:t}),children:[o&&s.jsx("div",{children:o}),r&&s.jsx("div",{children:r})]})]})},xi=({entry:e})=>{const t=ym(),n=ct(),{app:r}=J();if(!k1(e))return null;const o=e.fields.schema,i=t?.[e.sys.id],a=M1(o,i),l=e.fields.widget?n(e.fields.widget,{horizontal:!1,vertical:!0}
3):void 0,c=e.fields.sponsoredBy?n(e.fields.sponsoredBy,{horizontal:!1,vertical:!0}):void 0;return s.jsx(O1,{schema:o,variant:e.fields.variant,action:a,widget:l,sponsoredBy:c,entryId:e.sys.id,page:r?.location.pathname})},M1=(e,t)=>{const{action:n}=e;if(typeof n=="string")return n;const r=ne({valueFrom:n.valueFrom},t);return typeof r=="string"?r:void 0},$1=ee("richTextBlock"),ou=({entry:e})=>{if(!$1(e))return null;const{name:t,heading:n,content:r,contentTwo:o,variant:i}=e.fields;return s.jsx(he,{name:t,heading:n,content:r,contentTwo:o,variant:i})},Ua="[&>*]:rounded-lg [&>*]:px-2 [&>*]:py-2",F1="relative w-screen ml-[calc(50%-50vw)] py-2 md:py-4 bg-surface-accent",B1=({primaryNode:e,secondaryNode:t,tertiaryNode:n,imageUrl:r,imageAlt:o,showImageOnMobile:i=!1})=>s.jsx("div",{className:F1,children:s.jsxs("div",{className:"mx-auto flex max-w-page flex-row flex-wrap items-center justify-center px-4 py-2 md:relative md:my-4 md:mb-12",children:[s.jsxs("div",{className:"order-1 w-full md:w-[60%] lg:w-[45%]",children:[e,n&&s.jsx("div",{className:Ce("order-3 hidden md:block",Ua),children:n})]}),s.jsx("div",{className:"order-2 w-full text-center md:order-3 md:w-[40%] md:pl-2 lg:w-[55%]",children:t}),n&&s.jsx("div",{className:Ce("order-2 w-full md:hidden",Ua),children:n}),r&&s.jsx("div",{className:Ce("order-4 flex w-full justify-center",!i&&"hidden lg:flex"),children:s.jsx(Re,{src:r,alt:o,critical:!0,width:1200,className:"md:absolute md:right-[2%] md:bottom-0 md:h-[90%] md:w-auto"})})]})}),z1=ee("heroFlex"),H1={renderMark:{[Ve.UNDERLINE]:e=>s.jsx("span",{className:"heroflex-title-underline",children:e}),[Ve.ITALIC]:e=>s.jsx("span",{className:"heroflex-title-italic",children:e}),[Ve.BOLD]:e=>s.jsx("span",{className:"heroflex-title-bold",children:e})},renderNode:{[C.HEADING_1]:(e,t)=>s.jsx("h1",{className:"mt-4 mb-2 font-body text-xs font-medium leading-none text-heading md:mt-0",children:t}),[C.HEADING_2]:(e,t)=>s.jsx("h2",{className:"mb-6 font-heading text-[36px] font-semibold leading-none text-heading lg:text-[52px]",children:t}),[C.PARAGRAPH]:(e,t)=>s.jsx("p",{className:"body-base mb-4 text-secondary",children:t})}},V1=({entry:e})=>{const{linkedEntries:t,linkedAssets:n}=J();if(!z1(e))return null;const{primary:r,secondary:o,tertiary:i,image:a,showImageOnMobile:l}=e.fields,c=cn(o,t),d=cn(i,t),u=a?yt(a,n):void 0;return s.jsx(B1,{primaryNode:s.jsx(he,{content:r,options:H1}),secondaryNode:c?s.jsx(ou,{entry:c}):void 0,tertiaryNode:d?s.jsx(tu,{entry:d}):void 0,imageUrl:u?.fields.file?.url,imageAlt:u?.fields.title,showImageOnMobile:l})},U1=ee("iconTile"),iu="flex items-center justify-center w-8 h-8 bg-grey10 rounded-full",au="flex flex-row bg-white items-center border border-solid shadow-lg px-3 gap-2 transition-transform duration-150 ease-[
3cubic-bezier(0.4,0,0.2,1)] hover:-translate-y-1 hover:shadow-[0px_4px_12px_0px_rgba(0,0,0,0.06),0px_1px_3px_0px_rgba(0,0,0,0.04),0px_9px_16px_0px_rgba(0,0,0,0.08)]",G1=({iconSrc:e,iconAlt:t,text:n})=>s.jsxs("div",{className:"flex items-center w-fit px-2 py-2 rounded bg-black text-white relative z-1 mx-auto -mb-[30px]",children:[s.jsx("div",{className:"w-auto h-auto bg-grey10 rounded-full",children:s.jsx(Re,{src:e,alt:t,originalSize:!0,className:"object-cover"})}),s.jsx("p",{className:"body-sm-bold text-white ml-2",children:n})]}),W1=({iconSrc:e,iconAlt:t,text:n})=>s.jsxs("div",{className:`${au} rounded-full border-none`,children:[s.jsx("div",{className:iu,children:s.jsx(Re,{src:e,alt:t,originalSize:!0,className:"w-5 h-5"})}),s.jsx("p",{className:"body-base-bold leading-[120%] flex-1 py-4",children:n})]}),q1=({iconSrc:e,iconAlt:t,text:n})=>s.jsxs("div",{className:`${au} rounded-lg border-accent`,children:[s.jsx("div",{className:iu,children:s.jsx(Re,{src:e,alt:t,originalSize:!0,className:"w-5 h-5"})}),s.jsx("p",{className:"body-xs-bold text-accent font-bold lg:text-sm flex-1 m-0",children:n})]}),Y1=({displayVariant:e,showBackground:t,iconSrc:n,iconAlt:r,text:o})=>{const i=e==="vertical",a=t!==!1;return s.jsxs("div",{className:["flex text-center rounded-lg items-center",i?"flex-col h-[136px] p-4":"flex-col lg:flex-row h-[136px] lg:h-[95px] p-4 lg:p-6",a?"bg-white":""].filter(Boolean).join(" "),children:[s.jsx("div",{className:"flex flex-1 items-center justify-center",children:i?s.jsx(Re,{src:n,alt:r,originalSize:!0,className:"max-w-full"}):s.jsx(Re,{src:n,alt:r,originalSize:!0})}),s.jsx("p",{className:["m-0",a?"text-grey80":"text-icon-tile-text-no-bg"].join(" "),children:o})]})},K1=({id:e,text:t,link:n,displayVariant:r,variant:o,showBackground:i,iconSrc:a,iconAlt:l})=>{const c=o==="platinum",d=()=>{const f=Ke({eventName:"component cta clicked",href:n,text:t,componentId:e,componentName:"iconTile"});ze("Click Event",f)};let u;return c?r==="badge"?u=s.jsx(G1,{iconSrc:a,iconAlt:l,text:t}):r==="rounded"?u=s.jsx(W1,{iconSrc:a,iconAlt:l,text:t}):u=s.jsx(q1,{iconSrc:a,iconAlt:l,text:t}):u=s.jsx(Y1,{displayVariant:r,showBackground:i,iconSrc:a,iconAlt:l,text:t}),n?s.jsx("a",{href:n,className:"no-underline",onClick:d,children:u}):u},Z1=({entry:e})=>{const{linkedAssets:t}=J();if(!U1(e))return null;const{text:n,link:r,displayVariant:o,variant:i,showBackground:a,icon:l}=e.fields,c=yt(l,t),d=c?.fields.file?.url;if(!d)return null;const u=c.fields.description??"";return s.jsx(K1,{id:e.sys.id,text:n,link:r,displayVariant:o,variant:i,showBackground:a,iconSrc:d,iconAlt:u})},X1=ee("imageCalloutModule"),Q1={"Image left":"left","Solid color image left":"left","Image right":"right","Solid color image right":"right"},J1=e=>e==="Solid color image left"||e==="Solid color image right",ew={"Image left":"","Image right":"","Solid color image left":"bg-surface-subtle","Solid color image right":"bg-surface-warm"},tw=te({base:["grid items-center justify-items-center","grid-cols-1 gap-y-8","md:grid-cols-2 md:gap-x-[clamp(24px,5vw,80px)] md:gap-y-0 md:px-4"],variants:{direction:{left:"",right:""},extraSpacing:{top:"pt-6 md:pt-0",bottom:"pb-6 md:pb-0",none:""}},defaultVariants:{direction:"left",extraSpacing:"none"}}),nw=te({base:["relative w-full px-6 py-12"],variants:{direction:{left:"",right:"md:order-2"}}}),rw=te({base:["px-1 md:px-0 w-full"],variants:{direction:{left:"",right:"md:order-1"}}}),sw=["relative w-full pb-[75%]","[&>img]:absolute [&>img]:inset-0 [&>img]:block [&>img]:w-full [&>img]:h-full [&>img]:max-w-full [&>img]:max-h-[80vh] md:[&>img]:max-h-[calc(100vh-36px)] [&>img]:object-contain"].join(" "),ow="absolute -z-10 h-[calc(100%+24px)] w-[calc(100%+24px)] -left-3 -top-3 md:h-[calc(100%-56px)] md:w-full md:left-0 md:top-0",iw="md:-left-12 md:top-12",aw="md:left-12 md:-top-12",lw=({layout:e,heading:t,content:n,footer:r,image:o})=>{const i=Q1[e],a=J1(e),l=a?ew[e]:"",c=a&&i==="left"?"bottom":a&&i==="right"?"top":"none";return s.jsxs("section",{className:"mx-auto w-full max-w-page px-6",children:[t?s.jsx("div",{className:"mt-12 text-center",children:s.jsx(he,{content:t})}
3):null,s.jsxs("div",{className:tw({direction:i,extraSpacing:c}),children:[s.jsxs("div",{className:nw({direction:i}),children:[s.jsx("div",{className:sw,children:o}),a?s.jsx("div",{"aria-hidden":!0,className:[ow,i==="left"?iw:aw,l].filter(Boolean).join(" ")}):null]}),s.jsx("div",{className:rw({direction:i}),children:n?s.jsx(he,{content:n}):null})]}),r?s.jsx("div",{className:"text-center",children:s.jsx(he,{content:r})}):null]})},cw=({entry:e})=>{const{linkedEntries:t,linkedAssets:n}=J(),r=pc(e.sys.id);if(!X1(e))return null;const{layout:o,heading:i,content:a,footer:l,image:c}=e.fields,d=ke(c,t,"imageModule");if(!d)return null;const u=yt(d.image,n),f=u?.fields.file?.url;if(!u||!f)return null;const m=u.fields.description??u.fields.title??"",h=d.critical===!0||r;return s.jsx(lw,{layout:o,heading:i,content:a,footer:l,image:s.jsx(Re,{src:f,alt:m,critical:h})})},dw=ee("imageModule"),uw=e=>e.includes("http")?{rel:"nofollow noreferrer noopener",target:"_blank"}:{},fw=e=>Array.isArray(e)?e[e.length-1]:e,mw=(e,t,n)=>{if(!(e===void 0||t===void 0||n===void 0))return Math.round(e*n/t)},pw=({src:e,alt:t="",caption:n,options:r={},linkHref:o,useContainer:i=!1,critical:a=!1,className:l,naturalWidth:c,naturalHeight:d})=>{if(!e)return null;const u=c!==void 0&&d!==void 0,f=e.endsWith(".svg")?c:yc,m=fw(r.width)??(u?f:void 0),h=mw(m,c,d),p=s.jsxs(s.Fragment,{children:[s.jsx(Re,{src:e,alt:t,width:m,height:h,critical:a,className:l}),n?s.jsx("p",{className:"body-xs pt-1",children:n}):null]}),b=o?s.jsx("a",{href:o,...uw(o),children:p}):p;return i?s.jsx("div",{className:"w-full flex flex-col items-center",children:b}):b},hw=e=>e.startsWith("//")?`https:${e}`:e,xw=({entry:e})=>{const{linkedAssets:t}=J(),n=pc(e.sys.id);if(!dw(e))return null;const{image:r,caption:o,linkHref:i,useContainer:a,critical:l}=e.fields,c=e.fields.options,d=yt(r,t),u=d?.fields.file?.url;if(!d||!u)return null;const f=d.fields.file?.details.image,m=d.fields.description??d.fields.title??"",h=l===!0||n;return s.jsx(pw,{src:hw(u),alt:m,caption:o,options:c,linkHref:i,useContainer:a,critical:h,naturalWidth:f?.width,naturalHeight:f?.height})},gw=ee("leadCaptureForm"),bw="lead-capture-form",yw=te({variants:{variant:{"email-capture":"","email-capture-primary":"my-3 max-w-page lg:my-6 lg:mx-auto lg:px-0"}}}),vw=te({base:"py-7 px-6 lg:text-center",variants:{variant:{"email-capture":"bg-[#fee19f] text-primary my-12 py-12","email-capture-primary":"bg-accent text-white rounded-[12px] shadow-[0_4px_12px_0_rgba(0,0,0,0.06),0_1px_3px_0_rgba(0,0,0,0.04),0_9px_16px_0_rgba(0,0,0,0.08)] lg:rounded-[24px]"}}}),ww=te({base:"mt-4 mb-6 px-10 w-full h-12 cursor-pointer rounded-cta font-semibold text-base whitespace-nowrap border lg:mt-0 lg:mb-2 lg:h-[60px] lg:px-12 lg:text-lg disabled:cursor-default",variants:{variant:{"email-capture":"bg-cta-secondary border-cta-secondary-border text-white hover:bg-grey50 hover:border-grey50 disabled:bg-grey20 disabled:border-grey20 lg:max-w-[160px]","email-capture-primary":"bg-[var(--color-cta-emphasis)] border-[var(--color-cta-emphasis)] text-primary lg:w-max lg:max-w-[300px]"}}}),Ga={renderNode:{[C.HEADING_2]:(e,t)=>s.jsx("h2",{className:"font-heading font-semibold text-[30px] leading-[120%] mb-3 md:text-[36px]",children:t}),[C.PARAGRAPH]:(e,t)=>s.jsx("p",{className:"text-base leading-[150%] mb-6",children:t})}},jw={renderNode:{[C.PARAGRAPH]:(e,t)=>s.jsx("p",{className:"text-sm leading-[150%] text-center",children:t}),[ye.HYPERLINK]:(e,t)=>{const n=typeof e.data.uri=="string"?e.data.uri:void 0;return s.jsx("a",{href:n,className:"underline",target:"_blank",rel:"noopener noreferrer nofollow",children:t})}}},Wa=e=>e.toLowerCase().includes("@"),Nw=async(e,t,n,r)=>await fetch("/consent/api/customer_consent",{method:"POST",headers:{accept:"application/json","Content-Type":"application/json","x-client-id":"fs-frontend","x-client-version":"1"},body:JSON.stringify({email:e,consents:[{brand:n,name:t,"source-url":r,status:!0}],source:"",source_url:""})}),kw=({variant:e="email-capture",header:t,copy:n,footer:r,submitButtonText:o="Submit",successMessage:i="Thank you!",uconsentSource:a,brand:l="money",consentText:c,tracking:d})=>
3{const[u,f]=x.useState(""),[m,h]=x.useState(null),[p,b]=x.useState(!1),[g,y]=x.useState(!1),w=e==="email-capture-primary",k=w?"var(--color-white)":"var(--color-primary)",A="lead-capture-form-error",v=x.useMemo(()=>Wa(u),[u]),j=N=>{if(f(N),!N){h(null);return}h(Wa(N)?null:"Please input a valid email")},E=async N=>{if(N.preventDefault(),!v||!a||p)return;const S=Ke({eventName:"lead capture form submitted",href:void 0,text:o,position:void 0,componentId:d.componentId,componentName:bw});ze("Click Event",S),b(!0);try{const D=typeof window<"u"?window.location.href:"";if(!(await Nw(u,a,l,D)).ok){h("An error occurred");return}y(!0)}catch{h("An error occurred")}finally{b(!1)}};return s.jsx("div",{className:yw({variant:e}),children:s.jsx("div",{className:vw({variant:e}),children:g?s.jsxs("div",{className:"flex gap-4 items-center",children:[s.jsx("div",{className:"mb-[18px] leading-none",children:s.jsx(H,{glyph:"tick-circle",size:"large",color:k,ariaLabel:""})}),s.jsx("div",{className:"font-heading font-semibold text-[30px] leading-[120%] mb-3 md:text-[36px]",style:{color:w?"var(--color-white)":void 0},children:i})]}):s.jsxs(s.Fragment,{children:[t&&s.jsx(he,{content:t,options:Ga}),n&&s.jsx(he,{content:n,options:Ga}),s.jsxs("form",{className:"lg:flex lg:justify-center lg:items-start",onSubmit:N=>{E(N)},noValidate:!0,children:[s.jsxs("div",{className:"w-full mr-2 lg:max-w-[440px] lg:mr-4 lg:mb-2",children:[s.jsx("input",{type:"email",inputMode:"email",required:!0,placeholder:"Email",value:u,onChange:N=>{j(N.target.value)},onBlur:N=>{j(N.target.value)},"aria-invalid":!!m,"aria-describedby":m?A:void 0,className:["box-border w-full h-12 rounded-[4px] indent-4 text-base m-0 bg-white text-primary","border outline outline-offset-[-2px] focus:outline","lg:h-14 lg:ml-0 lg:mr-2",m?"border-error outline-error focus:border-error focus:outline-error":"border-grey40 outline-grey40 focus:border-accent focus:outline-accent"].join(" ")}),m&&s.jsx("div",{id:A,className:"bg-error text-white border border-error -mt-[3px] px-2 pt-3 pb-2 rounded-b-[4px] font-medium text-base text-left",children:m})]}),s.jsx("button",{type:"submit",disabled:!v||p,className:ww({variant:e}),children:o})]}),c&&s.jsx("div",{className:"mb-2 text-sm leading-[150%] text-center",children:c}),r&&s.jsx(he,{content:r,options:jw})]})})})},Ew=({entry:e})=>{const t=jm();if(!gw(e))return null;const n=t?.[e.sys.id];return s.jsx(kw,{...e.fields,consentText:n,tracking:{componentId:e.sys.id}})},_w=ee("linkList"),Cw=ee("linkListItem"),ln=e=>{if(e!==void 0)return e.trim()===""?void 0:e},Tw=(e,t)=>{if(Cw(e)){const{title:i,url:a,urlRef:l}=e.fields;if(l){const d=ke(l,t,"url")?.url;return d?{id:e.sys.id,href:d,label:ln(i)??d}:null}return a?{id:e.sys.id,href:a,label:ln(i)??a}:null}if(!lc(e))return null;const n=e.fields.url;if(!n)return null;const r=e.fields.variants?.[0],o=r?ke(r,t,"modularPage"):void 0;return{id:e.sys.id,href:n,label:ln(o?.title)??n}},Sw={base:{wrapper:"mx-auto mt-4 mb-0 pt-4",title:"heading-sm m-0 py-3 font-normal"},linkBlock:{wrapper:"mx-auto mt-4 mb-0 pt-4",title:"heading-xs m-0 py-3 text-primary"},subcategoryNavigation:{wrapper:"mx-auto pt-8 md:pt-10 pb-4 md:pb-6 px-4 bg-grey5",title:"heading-sm m-0 font-normal text-center"}},Aw=e=>e==="base"||e==="linkBlock"||e==="subcategoryNavigation",Rw=({entry:e})=>{const{linkedEntries:t}=J(),{title:n,variant:r,links:o,subtitle:i,subtitleUrl:a}=e.fields,l=ln(n),c=r&&Aw(r)?r:"base",d=o.map(m=>{const h=cn(m,t);return h?Tw(h,t):null}).filter(m=>m!==null),u=!!(ln(i)&&ln(a));if(d.length===0&&!l&&!u)return null;const f=Sw[c];return c==="subcategoryNavigation"?s.jsxs("nav",{className:f.wrapper,"aria-label":l??"Subcategories",children:[l&&s.jsx("h2",{className:f.title,children:l}),s.jsx("ul",{className:"list-none p-0 m-0 mt-4 flex flex-wrap flex-row justify-center",children:d.map((m,h)=>s.jsxs("li",{className:"mb-4",children:[s.jsx("a",{href:m.href,className:"mx-4 text-grey90 md:text-grey80 no-u
3nderline border-b-0 hover:underline",children:m.label}),h<d.length-1&&s.jsx("span",{"aria-hidden":"true",className:"text-grey60",children:"|"})]},m.id))})]}):s.jsxs("div",{className:f.wrapper,children:[(l!==void 0||u)&&s.jsxs("section",{children:[l&&s.jsx("header",{className:"flex items-center",children:s.jsx("h2",{className:f.title,children:l})}),u&&s.jsx("ul",{className:"p-0 list-none mt-0",children:s.jsx("li",{className:"border-t border-t-grey20 py-3 mb-0 flex justify-between items-center",children:s.jsx("a",{href:a,className:"no-underline border-b-0 hover:underline",children:s.jsx("strong",{children:i})})})})]}),s.jsx("ul",{className:"p-0 list-none mt-0",children:d.map(m=>s.jsx("li",{className:"border-t border-t-grey20 py-3 mb-0 flex justify-between items-center",children:s.jsx("a",{href:m.href,className:"no-underline border-b-0 hover:underline",children:m.label})},m.id))})]})},Pw=({entry:e})=>_w(e)?s.jsx(Rw,{entry:e}):null,Iw=ee("list"),Lw=(e,t)=>{const n={checklist:{glyph:t==="confused"?"tick-square":"tick",color:t==="confused"?"var(--color-grey100)":"var(--color-success)",size:t==="confused"?"xlarge":void 0},"check-circle":{glyph:"tick-circle",color:"var(--color-grey90)"},pros:{glyph:"thumb-up",color:"var(--color-success)"},cons:{glyph:"thumb-down",color:"var(--color-error)"}},r=o=>Object.hasOwn(n,o);return!e||e==="bullet"?null:r(e)?n[e]:null},Dw=({title:e,items:t=[],variant:n})=>{const r=Te(),o=Lw(n,r),i=!o;return s.jsxs("div",{className:"inline-block text-left",children:[e&&s.jsx("h2",{className:"heading-sm pb-5",children:e}),s.jsx("ul",{className:i?"list-disc pl-6 space-y-2 body-base text-palette-text":"flex flex-col gap-2 body-base text-palette-text",children:t.map((a,l)=>s.jsxs("li",{className:i?void 0:"flex items-start gap-3 [&>svg]:shrink-0",children:[!i&&s.jsx(H,{glyph:o.glyph,color:o.color,ariaLabel:"",size:o.size}),s.jsx("span",{children:a})]},`${l}-${a}`))})]})},Ow=({entry:e})=>{if(!Iw(e))return null;const{title:t,items:n,variant:r}=e.fields;return s.jsx(Dw,{title:t,items:n,variant:r})},Mw=te({base:"rounded-lg bg-white",variants:{intent:{primary:["p-6 border border-grey10 shadow-lg"]}}}),wn=({children:e,intent:t,className:n})=>s.jsx("div",{className:Ce(Mw({intent:t}),n),children:e}),$w=({imgUrl:e,name:t,authorPageUrl:n,desc:r,showHeader:o,id:i})=>s.jsx("div",{className:"mx-3 my-3 lg:mx-[91px] lg:my-6",id:i,children:s.jsxs(wn,{intent:"primary",className:"flex flex-col items-start lg:rounded-2xl",children:[o&&s.jsx("h4",{className:"heading-sm m-0",children:"About the author"}),s.jsxs("div",{className:"mt-6 lg:grid lg:grid-flow-col lg:items-center",children:[s.jsxs("div",{className:"flex items-center lg:mr-6",children:[s.jsx("img",{src:e,alt:`${t} profile`,className:"rounded-full w-12 h-12 lg:w-[112px] lg:h-[112px] object-cover"}),s.jsx("span",{className:"ml-4 lg:hidden",children:s.jsx("a",{href:n,className:"text-xl font-bold leading-[150%] text-link underline",children:t})})]}),s.jsxs("div",{children:[s.jsx("span",{className:"hidden lg:block",children:s.jsx("a",{href:n,className:"text-xl font-bold leading-[150%] text-link underline",children:t})}),s.jsx("div",{className:"mt-6 text-base text-primary",children:r})]})]})]})}),Fw=({entry:e})=>{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},o=O(r.imgUrl),i=O(r.name),a=O(r.authorPageUrl),l=O(r.desc);return!o||!i||!a||!l?null:s.jsx($w,{imgUrl:o,name:i,authorPageUrl:a,desc:l,showHeader:r.showHeader!==!1,id:n})},wr="flex md:mr-5",jr="mr-2.5 whitespace-nowrap text-sm md:text-base text-primary",Ds="whitespace-nowrap text-sm md:text-base font-bold text-link",Bw=({authorName:e,authorPageUrl:t,editorName:n,editorPageUrl:r,factCheckerName:o,factCheckerPageUrl:i,lastUpdated:a,id:l})=>s.jsx("div",{className:"w-full max-w-[888px] mx-auto",id:l,children:s.jsx(wn,{intent:"primary",children:s.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:flex-wrap md:justify-center md:gap-6",children:[s.jsxs("div",{className:wr,children:[s.jsx("span",{className:jr,children:"Author"}),s.jsx("span",{className:Ds,children:s.jsx("a",{href:t,className:"text-link underline visited:underline",children:e})})]}),n&&r&&s.jsxs("div",{className:wr,children:[s.jsx("span",{className:jr,children:"Editor"}),s.jsx("span",{className:Ds,children:s.jsx("a",{href:r,className:"text-link underline visited:underline",children:n})})]}),o&&i&&s.jsxs("div",{className:wr,children:[s.jsx("span",{className:jr,children:"Fact checker"}),s.jsx("span",{className:Ds,children:s.jsx("a",{href:i,className:"text-link underline visited:underline",children:o})})]}),a&&s.jsxs("div",{className:wr,children:[s.jsx("span",{className:jr,children:"Last updated"}),s.jsx("span",{className:"whitespace-nowrap text-sm md:text-base font-bold text-primary",children:a})]})]})})});nr.extend(Gd);const zw=e=>nr(e).format("MMMM Do, YYYY"),Hw=({entry:e})=>{const{rootEntry:t}=J(),{jsonBody:n,name:r}=e.fields,o=V(n)?n:{},i=O(o.authorName),a=O(o.authorPageUrl);if(!i||!a)return null;const l=t?.fields.updatedDate,c=l?zw(l):O(o.lastUpdated);return s.jsx(Bw,{authorName:i,authorPageUrl:a,editorName:O(o.editorName),editorPageUrl:O(o.editorPageUrl),factCheckerName:O(o.factCheckerName),factCheckerPageUrl:O(o.factCheckerPageUrl),lastUpdated:c,id:r})},Vw=({title:e,quote:t,imgUrl:n,authorName:r,authorDesg:o,authorUrl:i,companyLogoUrl:a,id:l})=>s.jsxs("div",{className:"md:mx-[10%]",id:l,children:[s.jsx("h2",{className:"heading-md font-semibold mb-3.5",children:e}),s.jsxs("p",{className:"text-lg md:text-xl font-medium leading-snug text-primary mb-4",children:["“",t,"”"]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx(Re,{src:n,alt:`${r} profile`,width:48,className:"w-12 h-12 rounded-full object-cover shrink-0"}),s.jsxs("div",{className:"md:flex md:flex-row md:items-center md:gap-2",children:[s.jsxs("div",{className:"md:flex md:items-center",children:[s.jsxs("a",{href:i,className:"text-md md:text-lg font-medium text-primary whitespace-nowrap",children:[r,s.jsx("span",{className:"mx-2",children:"-"})]}),a&&s.jsxs("span",{className:"my-1 inline-flex h-6 shrink-0 items-center gap-2 rounded-full border border-line-strong bg-surface px-4",children:[s.jsx("span",{className:"body-xs text-primary whitespace-nowrap",children:"Guest author from"}),s.jsx(Re,{src:a,alt:"guest author company logo",width:150,className:"h-[14px] w-auto"})]})]}),s.jsx("div",{className:"text-md md:text-lg font-medium text-primary relative -top-2 md:top-0 md:whitespace-nowrap",children:o})]})]})]}),Uw=({entry:e})=>
3{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},o=O(r.title),i=O(r.quote),a=O(r.imgUrl),l=O(r.authorName),c=O(r.authorDesg),d=O(r.authorUrl),u=O(r.companyLogoUrl);return!o||!i||!a||!l||!c||!d?null:s.jsx(Vw,{title:o,quote:i,imgUrl:a,authorName:l,authorDesg:c,authorUrl:d,companyLogoUrl:u,id:n})},Gw=te({base:["inline-flex items-center justify-center gap-2","font-medium rounded-md px-2 py-1","text-sm leading-tight"],variants:{variant:{default:["bg-grey10 text-primary border border-grey20"],highlight:["bg-cta text-grey100 border border-cta"],info:["bg-accent-subtle text-accent border border-accent"],success:["bg-feedback-success-bg text-primary border border-feedback-success-border"],tertiary:["bg-surface-highlight text-primary border border-cta-hover"],secondary:["bg-surface-inverse text-white"]},size:{small:["text-xs px-1.5 py-0.5"],medium:["text-sm px-2 py-1"],large:["text-md px-3 py-1.5"]}},defaultVariants:{variant:"default",size:"medium"}}),Ww=({children:e,variant:t="default",size:n="medium",className:r,"data-testid":o})=>s.jsx("span",{className:Gw({variant:t,size:n,className:r}),"data-testid":o,children:e}),qw=({badge:e})=>s.jsx("div",{className:e.isCrown?"absolute -translate-y-1/2 top-0 left-5":"mb-2 flex justify-center md:justify-start",children:s.jsxs(Ww,{variant:e.variant,size:e.size,className:e.isCrown?"rounded-[10px] px-6 py-2":void 0,children:[e.icon&&s.jsx(H,{glyph:e.icon,size:"large",color:e.variant==="secondary"?"var(--color-white)":"var(--color-grey90)",ariaLabel:e.icon}),e.text]})}),Yw=({button:e,link:t,image:n,textColor:r,tracking:o,form:i})=>s.jsxs("div",{className:"flex flex-wrap gap-2 mt-4 md:justify-between md:items-center",children:[s.jsxs("div",{className:"flex flex-col gap-2 w-full items-center md:w-auto md:items-start md:gap-4",children:[e&&s.jsx(Me,{href:e.href,variant:e.variant,size:"large",target:"_blank",rel:"noopener noreferrer",withArrow:!0,id:o.componentId,componentName:"product-call-out",className:"min-w-[190px]",children:e.text}),s.jsx("div",{className:"[&_form_button]:min-w-[232px]",children:i}),t&&s.jsx("a",{href:t.href,className:"mt-2 text-base font-semibold underline",style:{color:r},children:t.text})]}),n&&!n.inHeader&&s.jsx("div",{className:"flex w-full justify-center items-center mt-4 md:w-auto md:mt-0",children:s.jsx("img",{src:n.src,alt:n.alt,className:"max-w-[160px]"})})]}),Kw=(e,t)=>e?.includes("gradient")?{backgroundImage:e,backgroundColor:t}:{backgroundColor:e??t},Zw=(e,t)=>`${e?e.isCrown?"mt-4 pt-10 md:pt-6":"mt-4":""} ${t?`flex flex-col items-center md:block ${e?"":"mt-7 md:mt-0 md:pt-6"}`:""}`.trim(),Xw=({heading:e,subHeading:t,highlight:n,badge:r,button:o,link:i,image:a,background:l,backgroundColor:c,border:d,textColor:u,content:f,form:m,tracking:h})=>s.jsxs("div",{className:`rounded-lg p-5 text-left relative ${Zw(r,n)}`,style:{...Kw(l,c),border:d,color:u},children:[r&&s.jsx(qw,{badge:r}),a?.inHeader&&s.jsx("div",{className:"flex",children:s.jsx("img",{src:a.src,alt:a.alt,className:"max-w-[160px]"})}),e&&s.jsx("h3",{className:"font-heading font-semibold text-2xl leading-[120%] text-primary  text-center md:text-left md:mt-4",style:{color:u},children:e}),t&&s.jsx("p",{className:"mb-0 mt-3 text-center  md:text-left",children:t}),n&&s.jsxs("div",{className:"flex bg-white border-2 border-cta rounded-lg p-2 mt-3 text-primary ",children:[n.icon&&s.jsx("div",{className:"hidden md:flex flex-1 items-center",children:s.jsx(H,{glyph:n.icon,color:"var(--color-grey90)",ariaLabel:n.icon})}),s.jsx("p",{className:"flex-[8] m-0 text-center md:text-left",children:n.text})]}),f&&s.jsx("div",{className:` ${t?"mt-4":"pt-2.5"}`,children:f}),s.jsx(Yw,{button:o,link:i,image:a,textColor:u,tracking:h,form:m})]}),Qw=["default","secondary","highlight","info","success","tertiary"],Jw=["small","medium","large"],ej=["primary","secondary","tertiary"],tj=e=>e!==void 0&&Qw.includes(e),nj=e=>e!==void 0&&Jw.includes(e),rj=e=>e!==void 0&&ej.includes(e);function sj(e){if(!V(e)||typeof e.text!="string")return;const t=O(e.variant),n=O(e.size);return{text:e.text,variant:tj(t)?t:"secondary",icon:O(e.icon),isCrown:Le(e.isCrown),size:nj(n)?n:void 0}}function oj(e){if(!V(e)||typeof e.text!="string"||typeof e.href!="string")return;const t=O(e.variant);return{text:e.text,href:e.href,variant:rj(t)?t:void 0}}function ij(e){if(!(!V(e)||typeof e.text!="string"||typeof e.href!="string"))return{text:e.text,href:e.href}}function aj(e){if(!(!V(e)||typeof e.src!="string"||typeof e.alt!="string"))return{src:e.src,alt:e.alt,inHeader:Le(e.inHeader)}}function lj(e,t){if(typeof e=="string")return{text:e,icon:O(t)}}const cj=({entry:e})=>{const{jsonBody:t,content:n,name:r,variant:o,form:i}=e.fields,a=i?Lo(i):void 0,l=V(t)?t:{};return s.jsx(Xw,{heading:O(l.heading),subHeading:O(l.subHeading),background:O(l.background),backgroundColor:O(l.backgroundColor),border:O(l.border),textColor:O(l.textColor),highlight:lj(l.highlightText,l.highlightIcon),badge:sj(l.badge),button:oj(l.button),link:ij(l.link),image:aj(l.image),content:n&&s.jsx(he,{content:n,collapseSpacing:!0}),form:a&&s.jsx(xi,{entry:a}),tracking:{componentId:e.sys.id,contentfulName:r,contentfulVariant:o}})};var Rn={},tn={},Nr={},Lt={},Dt={},Os={},qa;function lu(){return qa||(qa=1,(function(e){Object.defineProperty(e,"__esMo
3dule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Os)),Os}var se={},Ya;function Ka(){if(Ya)return se;Ya=1;var e=se&&se.__extends||(function(){var v=function(j,E){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,S){N.__proto__=S}||function(N,S){for(var D in S)Object.prototype.hasOwnProperty.call(S,D)&&(N[D]=S[D])},v(j,E)};return function(j,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");v(j,E);function N(){this.constructor=j}j.prototype=E===null?Object.create(E):(N.prototype=E.prototype,new N)}})(),t=se&&se.__assign||function(){return t=Object.assign||function(v){for(var j,E=1,N=arguments.length;E<N;E++){j=arguments[E];for(var S in j)Object.prototype.hasOwnProperty.call(j,S)&&(v[S]=j[S])}return v},t.apply(this,arguments)};Object.defineProperty(se,"__esModule",{value:!0}),se.cloneNode=se.hasChildren=se.isDocument=se.isDirective=se.isComment=se.isText=se.isCDATA=se.isTag=se.Element=se.Document=se.CDATA=se.NodeWithChildren=se.ProcessingInstruction=se.Comment=se.Text=se.DataNode=se.Node=void 0;var n=lu(),r=(function(){function v(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(v.prototype,"parentNode",{get:function(){return this.parent},set:function(j){this.parent=j},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"previousSibling",{get:function(){return this.prev},set:function(j){this.prev=j},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"nextSibling",{get:function(){return this.next},set:function(j){this.next=j},enumerable:!1,configurable:!0}),v.prototype.cloneNode=function(j){return j===void 0&&(j=!1),k(this,j)},v})();se.Node=r;var o=(function(v){e(j,v);function j(E){var N=v.call(this)||this;return N.data=E,N}return Object.defineProperty(j.prototype,"nodeValue",{get:function(){return this.data},set:function(E){this.data=E},enumerable:!1,configurable:!0}),j})(r);se.DataNode=o;var i=(function(v){e(j,v);function j(){var E=v!==null&&v.apply(this,arguments)||this;return E.type=n.ElementType.Text,E}return Object.defineProperty(j.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),j})(o);se.Text=i;var a=(function(v){e(j,v);function j(){var E=v!==null&&v.apply(this,arguments)||this;return E.type=n.ElementType.Comment,E}return Object.defineProperty(j.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),j})(o);se.Comment=a;var l=(function(v){e(j,v);function j(E,N){var S=v.call(this,N)||this;return S.name=E,S.type=n.ElementType.Directive,S}return Object.defineProperty(j.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),j})(o);se.ProcessingInstruction=l;var c=(function(v){e(j,v);function j(E){var N=v.call(this)||this;return N.children=E,N}return Object.defineProperty(j.prototype,"firstChild",{get:function(){var E;return(E=this.children[0])!==null&&E!==void 0?E:null},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"childNodes",{get:function(){return this.children},set:function(E){this.children=E},enumerable:!1,configurable:!0}),j})(r);se.NodeWithChildren=c;var d=(function(v){e(j,v);function j(){var E=v!==null&&v.apply(this,arguments)||this;return E.type=n.ElementType.CDATA,E}return Object.defineProperty(j.prototype,"nodeType",{get:function(){return 4}
3,enumerable:!1,configurable:!0}),j})(c);se.CDATA=d;var u=(function(v){e(j,v);function j(){var E=v!==null&&v.apply(this,arguments)||this;return E.type=n.ElementType.Root,E}return Object.defineProperty(j.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),j})(c);se.Document=u;var f=(function(v){e(j,v);function j(E,N,S,D){S===void 0&&(S=[]),D===void 0&&(D=E==="script"?n.ElementType.Script:E==="style"?n.ElementType.Style:n.ElementType.Tag);var L=v.call(this,S)||this;return L.name=E,L.attribs=N,L.type=D,L}return Object.defineProperty(j.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"tagName",{get:function(){return this.name},set:function(E){this.name=E},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"attributes",{get:function(){var E=this;return Object.keys(this.attribs).map(function(N){var S,D;return{name:N,value:E.attribs[N],namespace:(S=E["x-attribsNamespace"])===null||S===void 0?void 0:S[N],prefix:(D=E["x-attribsPrefix"])===null||D===void 0?void 0:D[N]}})},enumerable:!1,configurable:!0}),j})(c);se.Element=f;function m(v){return(0,n.isTag)(v)}se.isTag=m;function h(v){return v.type===n.ElementType.CDATA}se.isCDATA=h;function p(v){return v.type===n.ElementType.Text}se.isText=p;function b(v){return v.type===n.ElementType.Comment}se.isComment=b;function g(v){return v.type===n.ElementType.Directive}se.isDirective=g;function y(v){return v.type===n.ElementType.Root}se.isDocument=y;function w(v){return Object.prototype.hasOwnProperty.call(v,"children")}se.hasChildren=w;function k(v,j){j===void 0&&(j=!1);var E;if(p(v))E=new i(v.data);else if(b(v))E=new a(v.data);else if(m(v)){var N=j?A(v.children):[],S=new f(v.name,t({},v.attribs),N);N.forEach(function(M){return M.parent=S}),v.namespace!=null&&(S.namespace=v.namespace),v["x-attribsNamespace"]&&(S["x-attribsNamespace"]=t({},v["x-attribsNamespace"])),v["x-attribsPrefix"]&&(S["x-attribsPrefix"]=t({},v["x-attribsPrefix"])),E=S}else if(h(v)){var N=j?A(v.children):[],D=new d(N);N.forEach(function(P){return P.parent=D}),E=D}else if(y(v)){var N=j?A(v.children):[],L=new u(N);N.forEach(function(P){return P.parent=L}),v["x-mode"]&&(L["x-mode"]=v["x-mode"]),E=L}else if(g(v)){var F=new l(v.name,v.data);v["x-name"]!=null&&(F["x-name"]=v["x-name"],F["x-publicId"]=v["x-publicId"],F["x-systemId"]=v["x-systemId"]),E=F}else throw new Error("Not implemented yet: ".concat(v.type));return E.startIndex=v.startIndex,E.endIndex=v.endIndex,v.sourceCodeLocation!=null&&(E.sourceCodeLocation=v.sourceCodeLocation),E}se.cloneNode=k;function A(v){for(var j=v.map(function(N){return k(N,!0)}),E=1;E<j.length;E++)j[E].prev=j[E-1],j[E-1].next=j[E];return j}return se}var Za;function cu(){return Za||(Za=1,(function(e){var t=Dt&&Dt.__createBinding||(Object.create?(function(l,c,d,u){u===void 0&&(u=d);var f=Object.getOwnPropertyDescriptor(c,d);(!f||("get"in f?!c.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(l,u,f)}):(function(l,c,d,u){u===void 0&&(u=d),l[u]=c[d]})),n=Dt&&Dt.__exportStar||function(l,c){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(c,d)&&t(c,l,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=lu(),o=Ka();n(Ka(),e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=(function(){function l(c,d,u){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof d=="function"&&(u=d,d=i),typeof c=="object"&&(d=c,c=void 0),this.callback=c??null,this.options=d??i,this.elementCB=u??null}return l.prototype.onparserinit=function(c){this.parser=c},l.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(c){this.handleCallback(c)},l.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},l.prototype.onopentag=function(c,d){var u=this.options.xmlMode?r.ElementType.Tag:void 0,f=new o.Element(c,d,void 0,u);this.addNode(f),this.tagStack.push(f)},l.prototype.ontext=function(c){var d=this.lastNode;
3if(d&&d.type===r.ElementType.Text)d.data+=c,this.options.withEndIndices&&(d.endIndex=this.parser.endIndex);else{var u=new o.Text(c);this.addNode(u),this.lastNode=u}},l.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=c;return}var d=new o.Comment(c);this.addNode(d),this.lastNode=d},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var c=new o.Text(""),d=new o.CDATA([c]);this.addNode(d),c.parent=d,this.lastNode=c},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(c,d){var u=new o.ProcessingInstruction(c,d);this.addNode(u)},l.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},l.prototype.addNode=function(c){var d=this.tagStack[this.tagStack.length-1],u=d.children[d.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),d.children.push(c),u&&(c.prev=u,u.next=c),c.parent=d,this.lastNode=null},l})();e.DomHandler=a,e.default=a})(Dt)),Dt}var Ms={},Xa;function dj(){return Xa||(Xa=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(Ms)),Ms}var Qa;function du(){if(Qa)return Lt;Qa=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.formatAttributes=r,Lt.escapeSpecialCharacters=i,Lt.revertEscapedCharacters=a,Lt.formatDOM=l;var e=cu(),t=dj();function n(c){return t.CASE_SENSITIVE_TAG_NAMES_MAP[c]}function r(c){for(var d={},u=0,f=c.length;u<f;u++){var m=c[u];d[m.name]=m.value}return d}function o(c){c=c.toLowerCase();var d=n(c);return d||c}function i(c){return c.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function a(c){return c.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function l(c,d,u){var f,m,h,p;d===void 0&&(d=null);for(var b=[],g,y=0,w=c.length;y<w;y++){var k=c[y];switch(k.nodeType){case 1:{var A=o(k.nodeName);g=new e.Element(A,r(k.attributes)),g.children=l(A==="template"?k.content.childNodes:k.childNodes,g);break}case 3:g=new e.Text(a((f=k.nodeValue)!==null&&f!==void 0?f:""));break;case 8:g=new e.Comment((m=k.nodeValue)!==null&&m!==void 0?m:"");break;default:continue}var v=(h=b[y-1])!==null&&h!==void 0?h:null;v&&(v.next=g),g.parent=d,g.prev=v,g.next=null,b.push(g)}return u&&(g=new e.ProcessingInstruction(u.substring(0,u.indexOf(" ")).toLowerCase(),u),g.next=(p=b[0])!==null&&p!==void 0?p:null,g.parent=d,b.unshift(g),b[1]&&(b[1].prev=b[0])),b}return Lt}var Ja;function uj(){if(Ja)return Nr;
3Ja=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.default=g;var e=du(),t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,l=function(y,w){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(y,w){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d=typeof window=="object"&&window.DOMParser;if(typeof d=="function"){var u=new d,f="text/html";c=function(y,w){return w&&(y="<".concat(w,">").concat(y,"</").concat(w,">")),u.parseFromString(y,f)},l=c}if(typeof document=="object"&&document.implementation){var m=document.implementation.createHTMLDocument();l=function(y,w){if(w){var k=m.documentElement.querySelector(w);return k&&(k.innerHTML=y),m}return m.documentElement.innerHTML=y,m}}var h=typeof document=="object"&&document.createElement("template"),p;h&&h.content&&(p=function(y){return h.innerHTML=y,h.content.childNodes});var b=function(){return document.createDocumentFragment().childNodes};function g(y){var w,k,A,v,j,E;y=(0,e.escapeSpecialCharacters)(y);var N=o.exec(y),S=(w=N?.[1])===null||w===void 0?void 0:w.toLowerCase();switch(S){case t:{var D=c(y);if(!i.test(y)){var L=D.querySelector(n);(k=L?.parentNode)===null||k===void 0||k.removeChild(L)}if(!a.test(y)){var L=D.querySelector(r);(A=L?.parentNode)===null||A===void 0||A.removeChild(L)}return D.querySelectorAll(t)}case n:case r:{var F=l(y).querySelectorAll(S);return a.test(y)&&i.test(y)?(j=(v=F[0].parentNode)===null||v===void 0?void 0:v.childNodes)!==null&&j!==void 0?j:b():F}default:{if(p)return p(y);var L=l(y,r).querySelector(r);return(E=L?.childNodes)!==null&&E!==void 0?E:b()}}}return Nr}var el;function fj(){if(el)return tn;el=1;var e=tn&&tn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=o;var t=e(uj()),n=du(),r=/<(![a-zA-Z\s]+)>/;function o(i){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];var a=r.exec(i),l=a?a[1]:void 0;return(0,n.formatDOM)((0,t.default)(i),null,l)}return tn}var kr={},Qe={},Pn={},tl;function mj(){if(tl)return Pn;tl=1;var e=0;Pn.SAME=e;var t=1;return Pn.CAMELCASE=t,Pn.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRen
3dering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xl
3inkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Pn}var nl;function pj(){if(nl)return Qe;nl=1;const e=0,t=1,n=2,r=3,o=4,i=5,a=6;function l(v){return d.hasOwnProperty(v)?d[v]:null}function c(v,j,E,N,S,D,L){this.acceptsBooleans=j===n||j===r||j===o,this.attributeName=N,this.attributeNamespace=S,this.mustUseProperty=E,this.propertyName=v,this.type=j,this.sanitizeURL=D,this.removeEmptyString=L}const d={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(v=>{d[v]=new c(v,e,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([v,j])=>{d[v]=new c(v,t,!1,j,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(v=>{d[v]=new c(v,n,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(v=>{d[v]=new c(v,n,!1,v,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(v=>{d[v]=new c(v,r,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(v=>{d[v]=new c(v,r,!0,v,null,!1,!1)}),["capture","download"].forEach(v=>{d[v]=new c(v,o,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(v=>{d[v]=new c(v,a,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(v=>{d[v]=new c(v,i,!1,v.toLowerCase(),null,!1,!1)});const f=/[\-\:]([a-z])/g,m=v=>v[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(v=>{const j=v.replace(f,m);d[j]=new c(j,t,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(v=>{const j=v.replace(f,m);d[j]=new c(j,t,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(v=>{const j=v.replace(f,m);d[j]=new c(j,t,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(v=>{d[v]=new c(v,t,!1,v.toLowerCase(),null,!1,!1)});const h="xlinkHref";d[h]=new c("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(v=>{d[v]=new c(v,t,!1,v.toLowerCase(),null,!0,!0)});const{CAMELCASE:p,SAME:b,possibleStandardNames:g}=mj(),w=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",k=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+w+"]*$")),A=Object.keys(g).reduce((v,j)=>{const E=g[j];return E===b?v[j]=j:E===p?v[j.toLowerCase()]=j:v[j]=E,v},{});return Qe.BOOLEAN=r,Qe.BOOLEANISH_STRING=n,Qe.NUMERIC=i,Qe.OVERLOADED_BOOLEAN=o,Qe.POSITIVE_NUMERIC=a,Qe.RESERVED=e,Qe.STRING=t,Qe.getPropertyInfo=l,Qe.isCustomAttribute=k,Qe.possibleStandardNames=A,Qe}var In={},nn={},$s,rl;function hj(){if(rl)return $s;rl=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;
3\s]*/,l=/^\s+|\s+$/g,c=`
4`,d="/",u="*",f="",m="comment",h="declaration";function p(g,y){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];y=y||{};var w=1,k=1;function A(P){var T=P.match(t);T&&(w+=T.length);var R=P.lastIndexOf(c);k=~R?P.length-R:k+P.length}function v(){var P={line:w,column:k};return function(T){return T.position=new j(P),S(),T}}function j(P){this.start=P,this.end={line:w,column:k},this.source=y.source}j.prototype.content=g;function E(P){var T=new Error(y.source+":"+w+":"+k+": "+P);if(T.reason=P,T.filename=y.source,T.line=w,T.column=k,T.source=g,!y.silent)throw T}function N(P){var T=P.exec(g);if(T){var R=T[0];return A(R),g=g.slice(R.length),T}}function S(){N(n)}function D(P){var T;for(P=P||[];T=L();)T!==!1&&P.push(T);return P}function L(){var P=v();if(!(d!=g.charAt(0)||u!=g.charAt(1))){for(var T=2;f!=g.charAt(T)&&(u!=g.charAt(T)||d!=g.charAt(T+1));)++T;if(T+=2,f===g.charAt(T-1))return E("End of comment missing");var R=g.slice(2,T-2);return k+=2,A(R),g=g.slice(T),k+=2,P({type:m,comment:R})}}function F(){var P=v(),T=N(r);if(T){if(L(),!N(o))return E("property missing ':'");var R=N(i),I=P({type:h,property:b(T[0].replace(e,f)),value:R?b(R[0].replace(e,f)):f});return N(a),I}}function M(){var P=[];D(P);for(var T;T=F();)T!==!1&&(P.push(T),D(P));return P}return S(),M()}function b(g){return g?g.replace(l,f):f}return $s=p,$s}var sl;function xj(){if(sl)return nn;sl=1;var e=nn&&nn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nn,"__esModule",{value:!0}),nn.default=n;const t=e(hj());function n(r,o){let i=null;if(!r||typeof r!="string")return i;const a=(0,t.default)(r),l=typeof o=="function";return a.forEach(c=>{if(c.type!=="declaration")return;const{property:d,value:u}=c;l?o(d,u,c):u&&(i=i||{},i[d]=u)}),i}return nn}var Ln={},ol;function gj(){if(ol)return Ln;ol=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(d){return!d||n.test(d)||e.test(d)},a=function(d,u){return u.toUpperCase()},l=function(d,u){return"".concat(u,"-")},c=function(d,u){return u===void 0&&(u={}),i(d)?d:(d=d.toLowerCase(),u.reactCompat?d=d.replace(o,l):d=d.replace(r,l),d.replace(t,a))};return Ln.camelCase=c,Ln}var Dn,il;function bj(){if(il)return Dn;il=1;var e=Dn&&Dn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(xj()),n=gj();function r(o,i){var a={};return!o||typeof o!="string"||(0,t.default)(o,function(l,c){l&&c&&(a[(0,n.camelCase)(l,i)]=c)}),a}return r.default=r,Dn=r,Dn}var al;function uu(){return al||(al=1,(function(e){var t=In&&In.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=i,e.setStyleProp=l;var n=sc(),r=t(bj()),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function i(u,f){return u.includes("-")?!o.has(u):!!(f&&typeof f.is=="string")}var a={reactCompat:!0};function l(u,f){if(typeof u=="string"){if(!u.trim()){f.style={};return}try{f.style=(0,r.default)(u,a)}catch{f.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var c=function(u){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(u.name)};e.canTextBeChildOfNode=c;var d=function(u){return u};e.returnFirstArg=d})(In)),In}var ll;function fu(){if(ll)return kr;ll=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.default=i;var e=pj(),t=uu(),n=["checked","value"],r=["input","select","textarea"],o={reset:!0,submit:!0};function i(l,c){l===void 0&&(l={});var d={},u=!!(l.type&&o[l.type]);for(var f in l){var m=l[f];if((0,e.isCustomAttribute)(f)){d[f]=m;continue}var h=f.toLowerCase(),p=a(h);if(p){var b=(0,e.getPropertyInfo)(p);switch(n.includes(p)&&r.includes(c)&&!u&&(p=a("default"+h)),d[p]=m,b?.type){case e.BOOLEAN:d[p]=!0;break;case e.OVERLOADED_BOOLEAN:m===""&&(d[p]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(d[f]=m)}return(0,t.setStyleProp)(l.style,d),d}function a(l){return e.possibleStandardNames[l]}return kr}var rn={},cl;function yj(){if(cl)return rn;cl=1;
4var e=rn&&rn.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(rn,"__esModule",{value:!0}),rn.default=i;var t=sc(),n=e(fu()),r=uu(),o={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function i(l,c){var d,u,f,m,h;c===void 0&&(c={});for(var p=[],b=typeof c.replace=="function",g=(d=c.transform)!==null&&d!==void 0?d:r.returnFirstArg,y=(u=c.library)!==null&&u!==void 0?u:o,w=y.cloneElement,k=y.createElement,A=y.isValidElement,v=l.length,j=0;j<v;j++){var E=l[j];if(b){var N=(f=c.replace)===null||f===void 0?void 0:f.call(c,E,j);if(A(N)){v>1&&(N=w(N,{key:(m=N.key)!==null&&m!==void 0?m:j})),p.push(g(N,E,j));continue}}if(E.type==="text"){var S=!E.data.trim().length;if(S&&E.parent&&!(0,r.canTextBeChildOfNode)(E.parent)||c.trim&&S)continue;p.push(g(E.data,E,j));continue}var D=E,L={};a(D)?((0,r.setStyleProp)(D.attribs.style,D.attribs),L=D.attribs):D.attribs&&(L=(0,n.default)(D.attribs,D.name));var F=void 0;switch(E.type){case"script":case"style":E.children[0]&&(L.dangerouslySetInnerHTML={__html:E.children[0].data});break;case"tag":E.name==="textarea"&&E.children[0]?L.defaultValue=E.children[0].data:!((h=E.children)===null||h===void 0)&&h.length&&(F=i(E.children,c));break;default:continue}v>1&&(L.key=j),p.push(g(k(E.name,L,F),E,j))}return p.length===1?p[0]:p}function a(l){return r.PRESERVE_CUSTOM_ATTRIBUTES&&l.type==="tag"&&(0,r.isCustomComponent)(l.name,l.attribs)}return rn}var dl;function vj(){return dl||(dl=1,(function(e){var t=Rn&&Rn.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=l;var n=t(fj());e.htmlToDOM=n.default;var r=t(fu());e.attributesToProps=r.default;var o=t(yj());e.domToReact=o.default;var i=cu();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return i.Text}});var a={lowerCaseAttributeNames:!1};function l(c,d){var u;if(typeof c!="string")throw new TypeError("First argument must be a string");return c?(0,o.default)((0,n.default)(c,(u=d?.htmlparser2)!==null&&u!==void 0?u:a),d):[]}})(Rn)),Rn}var wj=vj();const ul=Ro(wj),jj=ul.default||ul;function gi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Zt=gi();function mu(e){Zt=e}var $t={exec:()=>null};function sn(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function de(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(Be.caret,"$1"),n=n.replace(o,a),r},getRegex:()=>new RegExp(n,t)};return r}var Nj=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Be={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:sn(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:sn(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:sn(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:sn(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:sn(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:sn(e=>new RegExp(`^ {0,${e}}>`))},kj=/^(?:[ \t]*(?:\n|$))+/,Ej=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_j=/^ {0,3}(`{3,}
vendor: 5,278 bytes, lines 4-5
4(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,lr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Cj=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,pu=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hu=de(pu).replace(/bull/g,bi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Tj=de(pu).replace(/bull/g,bi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),yi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Sj=/^[^\n]+/,vi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Aj=de(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rj=de(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,bi).getRegex(),bs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",wi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Pj=de("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",wi).replace("tag",bs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xu=de(yi).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bs).getRegex(),Ij=de(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",xu).getRegex(),ji={blockquote:Ij,code:Ej,def:Aj,fences:_j,heading:Cj,hr:lr,html:Pj,lheading:hu,list:Rj,newline:kj,paragraph:xu,table:$t,text:Sj},fl=de("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bs).getRegex(),Lj={...ji,lheading:Tj,table:fl,paragraph:de(yi).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",fl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bs).getRegex()},Dj={...ji,html:de(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$t,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:de(yi).replace("hr",lr).replace("heading",` *#{1,6} *[^
5]`).replace("lheading",hu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Oj=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mj=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gu=/^( {2,}|\\)\n(?!\s*$)/,$j=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,jn=/[\p{P}\p{S}]/u,ys=/[\s\p{P}\p{S}]/u,Ni=/[^\s\p{P}\p{S}]/u,Fj=de(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ys).getRegex(),bu=/(?!~)[\p{P}\p{S}]/u,Bj=/(?!~)[\s\p{P}\p{S}]/u,zj=/(?:[^\s\p{P}\p{S}]|~)/u,Hj=de(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("prec
5ode-",Nj?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),yu=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Vj=de(yu,"u").replace(/punct/g,jn).getRegex(),Uj=de(yu,"u").replace(/punct/g,bu).getRegex(),vu="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gj=de(vu,"gu").replace(/notPunctSpace/g,Ni).replace(/punctSpace/g,ys).replace(/punct/g,jn).getRegex(),Wj=de(vu,"gu").replace(/notPunctSpace/g,zj).replace(/punctSpace/g,Bj).replace(/punct/g,bu).getRegex(),qj=de("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ni).replace(/punctSpace/g,ys).replace(/punct/g,jn).getRegex(),Yj=de(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,jn).getRegex(),Kj="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Zj=de(Kj,"gu").replace(/notPunctSpace/g,Ni).replace(/punctSpace/g,ys).replace(/punct/g,jn).getRegex(),Xj=de(/\\(punct)/,"gu").replace(/punct/g,jn).getRegex(),Qj=de(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Jj=de(wi).replace("(?:-->|$)","-->").getRegex(),eN=de("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Jj).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Kr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,tN=de(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Kr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),wu=de(/^!?\[(label)\]\[(ref)\]/).replace("label",Kr).replace("ref",vi).getRegex(),ju=de(/^!?\[(ref)\](?:\[\])?/).replace("ref",vi).getRegex(),nN=de("reflink|nolink(?!\\()","g").replace("reflink",wu).replace("nolink",ju).getRegex(),ml=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ki={_backpedal:$t,anyPunctuation:Xj,autolink:Qj,blockSkip:Hj,br:gu,code:Mj,del:$t,delLDelim:$t,delRDelim:$t,emStrongLDelim:Vj,emStrongRDelimAst:Gj,emStrongRDelimUnd:qj,escape:Oj,link:tN,nolink:ju,punctuation:Fj,reflink:wu,reflinkSearch:nN,tag:eN,text:$j,url:$t},rN={...ki,link:de(/^!?\[(label)\]\((.*?)\)/).replace("label",Kr).getRegex(),reflink:de(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Kr).getRegex()},uo={...ki,emStrongRDelimAst:Wj,emStrongLDelim:Uj,delLDelim:Yj,delRDelim:Zj,url:de(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ml).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:de(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ml).getRegex()},sN={...uo,br:de(gu).replace("{2,}","*").getRegex(),text:de(uo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Er={normal:ji,gfm:Lj,pedantic:Dj},On={normal:ki,gfm:uo,breaks:sN,pedantic:rN},oN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pl=e=>oN[e];function gt(e,t){if(t){if(Be.escapeTest.test(e))return e.replace(Be.escapeReplace,pl)}else if(Be.escapeTestNoEncode.test(e))return e.replace(Be.escapeReplaceNoEncode,pl);return e}function hl(e){try{e=encodeURI(e).replace(Be.percentDecode,"%")}catch{return null}return e}function xl(e,t){let n=e.replace(Be.findPipe,(i,a,l)=>{let c=!1,d=a;for(;--d>=0&&l[d]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Be.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(Be.slashPipe,"|");return r}function Ct(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function gl(e){let t=e.split(`
6`),n=t.length-1;for(;n>=0&&Be.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
7`)}function iN(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function aN(e,t=0){let n=t,r="";for(let o of e)if(o==="	"){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=o,n++;return r}function bl(e,t,n,r,o){let i=t.href,a=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,c}
vendor: 23,392 bytes, lines 7-66
7function lN(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
8`).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[l]=a;return l.length>=o.length?i.slice(o.length):i}).join(`
9`)}var Zr=class{options;rules;lexer;constructor(e){this.options=e||Zt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:gl(t[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=lN(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Ct(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:Ct(t[0],`
10`),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ct(t[0],`
11`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Ct(t[0],`
12`).split(`
13`),r="",o="",i=[];for(;n.length>0;){let a=!1,l=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))l.push(n[c]),a=!0;else if(!a)l.push(n[c]);else break;n=n.slice(c);let d=l.join(`
14`),u=d.replace(this.rules.other.blockquoteSetextReplace,`
15    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
16${d}`:d,o=o?`${o}
17${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,i,!0),this.lexer.state.top=f,n.length===0)break;let m=i.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let h=m,p=h.raw+`
18`+n.join(`
19`),b=this.blockquote(p);i[i.length-1]=b,r=r.substring(0,r.length-h.raw.length)+b.raw,o=o.substring(0,o.length-h.text.length)+b.text;break}else if(m?.type==="list"){let h=m,p=h.raw+`
20`+n.join(`
21`),b=this.list(p);i[i.length-1]=b,r=r.substring(0,r.length-m.raw.length)+b.raw,o=o.substring(0,o.length-h.raw.length)+b.raw,n=p.substring(i.at(-1).raw.length).split(`
22`);continue}}return{type:"blockquote",raw:r,tokens:i,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let c=!1,d="",u="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let f=aN(t[2].split(`
23`,1)[0],t[1].length),m=e.split(`
24`,1)[0],h=!f.trim(),p=0;if(this.options.pedantic?(p=2,u=f.trimStart()):h?p=t[1].length+1:(p=f.search(this.rules.other.nonSpaceChar),p=p>4?1:p,u=f.slice(p),p+=t[1].length),h&&this.rules.other.blankLine.test(m)&&(d+=m+`
25`,e=e.substring(m.length+1),c=!0),!c){let b=this.rules.other.nextBulletRegex(p),g=this.rules.other.hrRegex(p),y=this.rules.other.fencesBeginRegex(p),w=this.rules.other.headingBeginRegex(p),k=this.rules.other.htmlBeginRegex(p),A=this.rules.other.blockquoteBeginRegex(p);for(;e;){let v=e.split(`
26`,1)[0],j;if(m=v,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting,"  "),j=m):j=m.replace(this.rules.other.tabCharGlobal,"    "),y.test(m)||w.test(m)||k.test(m)||A.test(m)||b.test(m)||g.test(m))break;if(j.search(this.rules.other.nonSpaceChar)>=p||!m.trim())u+=`
27`+j.slice(p);else{if(h||f.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||y.test(f)||w.test(f)||g.test(f))break;u+=`
28`+m}h=!m.trim(),d+=v+`
29`,e=e.substring(v.length+1),f=j.slice(p)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(a=!0)),o.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),o.raw+=d}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let c of o.items){this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]);let d=c.tokens[0];if(c.task&&(d?.type==="text"||d?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}let u=this.rules.other.listTaskCheckbox.exec(c.raw);if(u){let f={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};c.checked=f.checked,o.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=f.raw+c.tokens[0].raw,c.tokens[0].text=f.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(f)):c.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):c.tokens.unshift(f)}}else c.task&&(c.task=!1);if(!o.loose){let u=c.tokens.filter(m=>m.type==="space"),f=u.length>0&&u.some(m=>this.rules.other.anyLine.test(m.raw));o.loose=f}}if(o.loose)for(let c of o.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=gl(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:Ct(t[0],`
30`),href:r,title:o}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=xl(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
31`):[],i={type:"table",raw:Ct(t[0],`
32`),header:[],align:[],rows:[]};if(n.length===r.length){for(let a of r)this.rules.other.tableAlignRight.test(a)?i.align.push("right"):this.rules.other.tableAlignCenter.test(a)?i.align.push("center"):this.rules.other.tableAlignLeft.test(a)?i.align.push("left"):i.align.push(null);for(let a=0;a<n.length;a++)i.header.push({text:n[a],tokens:this.lexer.inline(n[a]),header:!0,align:i.align[a]});for(let a of o)i.rows.push(xl(a,i.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:Ct(t[0],`
33`),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
34`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=Ct(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=iN(t[2],"()");if(i===-2)return;if(i>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],o=i[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),bl(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return bl(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,i,a,l=o,c=0,d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+o);(r=d.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){l+=a;continue}else if((r[5]||r[6])&&o%3&&!((o+a)%3)){c+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l+c);let u=[...r[0]][0].length,f=e.slice(0,o+r.index+u+a);if(Math.min(o,a)%2){let h=f.slice(1,-1);return{type:"em",raw:f,text:h,tokens:this.lexer.inlineTokens(h)}}let m=f.slice(2,-2);return{type:"strong",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,i,a,l=o,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+o);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==o))continue;if(r[3]||r[4]){l+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l);let d=[...r[0]][0].length,u=e.slice(0,o+r.index+d+a),f=u.slice(o,-o);return{type:"del",raw:u,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let o;do o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(o!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},ot=class fo{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Zt,this.options.tokenizer=this.options.tokenizer||new Zr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Be,block:Er.normal,inline:On.normal};this.options.pedantic?(n.block=Er.pedantic,n.inline=On.pedantic):this.options.gfm&&(n.block=Er.gfm,this.options.breaks?n.inline=On.breaks:n.inline=On.gfm),this.tokenizer.rules=n}static get rules(){return{block:Er,inline:On}}static lex(t,n){return new fo(n).lex(t)}static lexInline(t,n){return new fo(n).inlineTokens(t)}lex(t){t=t.replace(Be.carriageReturn,`
35`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Be.tabCharGlobal,"    ").replace(Be.spaceLine,""));let o=1/0;for(;t;){if(t.length<o)o=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(l=>(i=l.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let l=n.at(-1);i.raw.length===1&&l!==void 0?l.raw+=`
36`:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
37`)?"":`
38`)+i.raw,l.text+=`
39`+i.text,this.inlineQueue.at(-1).src=l.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
40`)?"":`
41`)+i.raw,l.text+=`
42`+i.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},n.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}let a=t;if(this.options.extensions?.startBlock){let l=1/0,c=t.slice(1),d;this.options.extensions.startBlock.forEach(u=>{d=u.call({lexer:this},c),typeof d=="number"&&d>=0&&(l=Math.min(l,d))}),l<1/0&&l>=0&&(a=t.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let l=n.at(-1);r&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
43`)?"":`
44`)+i.raw,l.text+=`
45`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(i),r=a.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
46`)?"":`
47`)+i.raw,l.text+=`
48`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(i);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let r=t,o=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)d.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)i=o[2]?o[2].length:0,r=r.slice(0,o.index+i)+"["+"a".repeat(o[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,l="",c=1/0;for(;t;){if(t.length<c)c=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}a||(l=""),a=!1;let d;if(this.options.extensions?.inline?.some(f=>(d=f.call({lexer:this},t,n))?(t=t.substring(d.raw.length),n.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let f=n.at(-1);d.type==="text"&&f?.type==="text"?(f.raw+=d.raw,f.text+=d.text):n.push(d);continue}if(d=this.tokenizer.emStrong(t,r,l)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.del(t,r,l)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),n.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),n.push(d);continue}let u=t;if(this.options.extensions?.startInline){let f=1/0,m=t.slice(1),h;this.options.extensions.startInline.forEach(p=>{h=p.call({lexer:this},m),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(u=t.substring(0,f+1))}if(d=this.tokenizer.inlineText(u)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(l=d.raw.slice(-1)),a=!0;let f=n.at(-1);f?.type==="text"?(f.raw+=d.raw,f.text+=d.text):n.push(d);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return n}infiniteLoopError(t){let n="Infinite loop on byte: "+t;if(this.options.silent)console.error(n);else throw new Error(n)}},Xr=class{options;parser;constructor(e){this.options=e||Zt}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(Be.notSpaceStart)?.[0],o=e.replace(Be.endingNewline,"")+`
49`;return r?'<pre><code class="language-'+gt(r)+'">'+(n?o:gt(o,!0))+`</code></pre>
50`:"<pre><code>"+(n?o:gt(o,!0))+`</code></pre>
51`}blockquote({tokens:e}){return`<blockquote>
52${this.parser.parse(e)}</blockquote>
53`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
54`}hr(e){return`<hr>
55`}list(e){let t=e.ordered,n=e.start,r="";for(let a=0;a<e.items.length;a++){let l=e.items[a];r+=this.listitem(l)}let o=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+o+i+`>
56`+r+"</"+o+`>
57`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
58`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
59`}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let r="";for(let o=0;o<e.rows.length;o++){let i=e.rows[o];n="";for(let a=0;a<i.length;a++)n+=this.tablecell(i[a]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
60<thead>
61`+t+`</thead>
62`+r+`</table>
63`}tablerow({text:e}){return`<tr>
64${e}</tr>
65`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
66`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${gt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=hl(e);if(o===null)return r;e=o;let i='<a href="'+e+'"';return t&&(i+=' title="'+gt(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=hl(e);if(o===null)return gt(n);e=o;let i=`<img src="${e}" alt="${gt(n)}"`;return t&&(i+=` title="${gt(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:gt(e.text)}},Ei=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},it=class mo{options;renderer;textRenderer;constructor(t){this.options=t||Zt,this.options.renderer=this.options.renderer||new Xr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ei}static parse(t,n){return new mo(n).parse(t)}static parseInline(t,n){return new mo(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let o=t[r];if(this.options.extensions?.renderers?.[o.type]){let a=o,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){n+=l||"";continue}}let i=o;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let r="";for(let o=0;o<t.length;o++){let i=t[o];if(this.options.extensions?.renderers?.[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=l||"";continue}}let a=i;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"checkbox":{r+=n.checkbox(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},zn=class{options;block;constructor(e){this.options=e||Zt}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ot.lex:ot.lexInline}provideParser(e=this.block){return e?it.parse:it.parseInline}},cN=class{defaults=gi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=it;Renderer=Xr;TextRenderer=Ei;Lexer=ot;Tokenizer=Zr;Hooks=zn;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let o=r;for(let i of o.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of o.rows)for(let a of i)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{let o=r;n=n.concat(this.walkTokens(o.items,t));break}default:{let o=r;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(i=>
66{let a=o[i].flat(1/0);n=n.concat(this.walkTokens(a,t))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let i=t.renderers[o.name];i?t.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=i.apply(this,a)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[o.level];i?i.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new Xr(this.defaults);for(let i in n.renderer){if(!(i in o))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let a=i,l=n.renderer[a],c=o[a];o[a]=(...d)=>{let u=l.apply(o,d);return u===!1&&(u=c.apply(o,d)),u||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new Zr(this.defaults);for(let i in n.tokenizer){if(!(i in o))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let a=i,l=n.tokenizer[a],c=o[a];o[a]=(...d)=>{let u=l.apply(o,d);return u===!1&&(u=c.apply(o,d)),u}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new zn;for(let i in n.hooks){if(!(i in o))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let a=i,l=n.hooks[a],c=o[a];zn.passThroughHooks.has(i)?o[a]=d=>{if(this.defaults.async&&zn.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await l.call(o,d);return c.call(o,f)})();let u=l.call(o,d);return c.call(o,u)}:o[a]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(o,d);return f===!1&&(f=await c.apply(o,d)),f})();let u=l.apply(o,d);return u===!1&&(u=c.apply(o,d)),u}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(a){let l=[];return l.push(i.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ot.lex(e,t??this.defaults)}parser(e,t){return it.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let a=o.hooks?await o.hooks.preprocess(t):t,l=await(o.hooks?await o.hooks.provideLexer(e):e?ot.lex:ot.lexInline)(a,o),c=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(c,o.walkTokens));let d=await(o.hooks?await o.hooks.provideParser(e):e?it.parse:it.parseInline)(c,o);return o.hooks?await o.hooks.postprocess(d):d})().catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let a=(o.hooks?o.hooks.provideLexer(e):e?ot.lex:ot.lexInline)(t,o);o.hooks&&(a=o.hooks.processAllTokens(a)),o.walkTokens&&this.walkTokens(a,o.walkTokens);let l=(o.hooks?o.hooks.provideParser(e):e?it.parse:it.parseInline)(a,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(a){return i(a)}}}onError(e,t){return n=>{if(n.message+=`
67Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+gt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Vt=new cN;function xe(e,t){return Vt.parse(e,t)}xe.options=xe.setOptions=function(e){return Vt.setOptions(e),xe.defaults=Vt.defaults,mu(xe.defaults),xe};xe.getDefaults=gi;xe.defaults=Zt;xe.use=function(...e){return Vt.use(...e),xe.defaults=Vt.defaults,mu(xe.defaults),xe};xe.walkTokens=function(e,t){return Vt.walkTokens(e,t)};xe.parseInline=Vt.parseInline;xe.Parser=it;xe.parser=it.parse;xe.Renderer=Xr;xe.TextRenderer=Ei;xe.Lexer=ot;xe.lexer=ot.lex;xe.Tokenizer=Zr;xe.Hooks=zn;xe.parse=xe;xe.options;xe.setOptions;xe.use;xe.walkTokens;var dN=xe.parseInline;it.parse;ot.lex;const uN=e=>e.replace(/--(.*?)--/g,"<p>$1</p>"),fN=({title:e,showHeader:t,subHeaderContent:n,showSubHeader:r,cards:o,id:i,confusedProducts:a})=>{const l=o.length>3;return s.jsx("div",{id:i,children:s.jsxs("section",{children:[t&&e&&s.jsx("h2",{className:"heading-md pb-3 mb-0 platinum-card-carousel-heading",children:e}),r&&n&&s.jsx("p",{className:"body-base pb-3 lg:text-lg",children:n}),s.jsxs(ps,{opts:{align:"start",slidesToScroll:1},children:[s.jsxs("div",{className:"flex items-center md:gap-0",children:[l&&s.jsx(fi,{children:s.jsx(H,{glyph:"arrow-left",size:"xlarge",color:"var(--color-primary)",ariaLabel:"Previous"})}),s.jsx(hs,{className:"-ml-2 md:-ml-4 py-3 md:py-6",children:o.map((c,d)=>s.jsx(xs,{className:"pl-2 md:pl-4 basis-[95%] md:basis-1/3",children:s.jsxs(wn,{intent:"primary",className:st("h-full flex flex-col rounded-[var(--platinum-card-carousel-radius-mobile)] lg:rounded-[var(--platinum-card-carousel-radius-desktop)]",a&&"platinum-card-carousel-card bg-[var(--platinum-card-carousel-surface)] border-[var(--platinum-card-carousel-border-color)]"),children:[c.iconPlacement==="title"&&c.icon&&s.jsx("div",{className:"mb-4 md:mb-6",children:s.jsx(H,{glyph:c.icon,size:"large",color:"var(--color-primary)",ariaLabel:c.icon})}),s.jsxs("div",{className:"flex items-start",children:[c.icon&&c.iconPlacement==="inline"&&s.jsx("div",{className:"mr-4",children:s.jsx(H,{glyph:c.icon,size:"large",color:"var(--color-primary)",ariaLabel:c.icon})}),s.jsx("h3",{className:"heading-xs",children:c.title})]}),s.jsx("div",{className:"body-base mt-4 flex-1",children:jj(dN(uN(c.bodyText),{async:!1}))}),c.cta?.url&&s.jsxs("a",{href:c.cta.url,className:"inline-flex items-center gap-1 mt-4 text-sm font-bold text-link underline",children:[s.jsx("span",{children:c.cta.text}),s.jsx(H,{glyph:"arrow-right",size:"small",color:"var(--color-accent)",ariaLabel:"arrow"})]})]})},d))}),l&&s.jsx(mi,{children:s.jsx(H,{glyph:"arrow-right",size:"xlarge",color:"var(--color-primary)",ariaLabel:"Next"})})]}),s.jsx(gs,{className:"md:hidden"})]})]})})};function mN(e){if(!V(e))return null;const t=e,n=O(t.title),r=O(t.bodyText),o=O(t.iconPlacement);if(!n||!r||!o)return null;const i=V(t.cta)?O(t.cta.text):void 0,a=V(t.cta)?O(t.cta.url):void 0,l=i&&a?{text:i,url:a}:void 0;return{title:n,bodyText:r,iconPlacement:o,icon:O(t.icon),cta:l}}const pN=({entry:e})=>
67{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},i=(Array.isArray(r.cards)?r.cards:[]).map(a=>mN(a)).filter(a=>a!==null);return i.length===0?null:s.jsx(fN,{title:O(r.title),showHeader:r.showHeader!==!1,subHeaderContent:O(r.subHeaderContent),showSubHeader:Le(r.showSubHeader),cards:i,id:n,confusedProducts:Le(r.confusedProducts)})},hN=10,xN=114,gN=1e3,bN=(e,t)=>{if(t.length===0)return e;const n=[...e];return[...t].reverse().forEach(r=>{const o=n.findIndex(i=>i.name.toLowerCase()===r.toLowerCase());o!==-1&&n.unshift(n.splice(o,1)[0])}),n},yN=({id:e,title:t,subtitle:n,buttonText:r="Get Started",href:o,withArrow:i=!1,providers:a=[],logosOverrideOrder:l=[],hideLogosOnMobile:c=!1,brand:d="money",tracking:u})=>{const f=bN(a,l).slice(0,hN),m=f.length>0?Math.max(1,Math.ceil(gN/(f.length*xN))):1,h=Array.from({length:m*2}).flatMap(()=>f);return s.jsxs("div",{id:e,className:"max-w-[888px] mx-auto my-3 md:my-6 p-6 bg-white rounded-lg border border-accent shadow-lg",children:[t&&s.jsx("h2",{className:"heading-sm text-center",children:t}),n&&s.jsx("div",{className:"body-base md:body-lg text-center pt-3",children:n}),f.length>0&&s.jsx("div",{className:`marquee-fade-edges h-[75px] my-6 md:mx-[90px] ${c?"max-[425px]:hidden":""}`,children:s.jsx("div",{className:"absolute top-0 left-0 overflow-hidden whitespace-nowrap animate-bannermove",children:h.map((p,b)=>s.jsx("img",{src:p[d],alt:p.name,width:84,className:"inline align-middle mr-[30px] max-h-[75px]"},`${p.id}-${b}`))})}),o&&s.jsx("div",{className:"flex justify-center mx-auto mt-6 mb-3",children:s.jsx(Me,{href:o,variant:"primary",size:"large",withArrow:i,id:u.componentId,componentName:"cardFinderLowProm",className:"w-full md:w-[350px]",children:r})})]})},vN={money:"/credit-cards/eligibility-checker",uswitch:"/credit-cards/eligibility-checker/form/"},wN=e=>e==="uswitch"?"uswitch":"money",jN=({entry:e})=>{const{jsonBody:t,name:n,variant:r}=e.fields,o=V(t)?t:{},{rootEntry:i}=J(),a=wN(i?.fields.brand),c=uc()?.[e.sys.id]??[],d=vN[a],u=O(o.url)??d,f=O(o.subCategory),m=u===d&&f?`${u}?productType=${f}`:u;return s.jsx(yN,{id:n,title:O(o.title),subtitle:O(o.subtitle),buttonText:O(o.buttonText)??"Get Started",href:m,withArrow:Le(o.ctaIcon)??!1,providers:c,logosOverrideOrder:Js(o.logosOverrideOrder),hideLogosOnMobile:Le(o.hideLogosOnMobile)??!1,brand:a,tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r}})},NN="https://img.money.co.uk/t014ej9w3ur1/1j1eejKxrcAOQZQohKkPEj/7ba16370781aaa7a7b3b631a97dcc84e/credit-card.png",kN="https://img.money.co.uk/t014ej9w3ur1/7m0gmSD1tfr1Bs4iUMkzns/d05b4798cf7c3b021707d1034911fcd5/eligibility-gif-compressed.gif",EN=te({base:"grid rounded-lg md:rounded-xl px-6 pt-12 pb-8 md:py-12 shadow-lg",variants:{brand:{money:"bg-[linear-gradient(130.3deg,var(--color-accent)_22.95%,#af4c83_77.05%)]",uswitch:"bg-[#84a6ff]"},secondary:{true:"bg-grey10 bg-none"}}}),_N=te({base:"heading-sm md:text-[32px] text-center mt-0 mb-0",variants:{tone:{light:"text-white",dark:"text-primary"},withCard:{true:"pt-6"}}}),CN=te({base:"text-[18px] font-semibold leading-normal text-center pt-2 md:pt-4",variants:{tone:{light:"text-white",dark:"text-primary"}}}),TN=te({base:"text-md font-normal leading-normal flex-1 ml-4 max-w-[248px] flex items-center justify-center md:ml-auto md:mr-auto md:mt-4",variants:{tone:{light:"text-white",dark:"text-primary"}}}),SN=te({base:"flex-none h-9 w-9 rounded-full flex items-center justify-center font-semibold md:mx-auto border",variants:{tone:{light:"text-white border-white",dark:"text-primary border-surface-inverse"}}}),AN=({cardLogo:e})=>s.jsx("div",{className:"flex justify-center mx-auto -mb-[54px] w-[188px] h-[121px]",children:s.jsx("img",{src:e??NN,alt:e?"logo":"cardFinder-credit-card",className:"max-w-full max-h-full object-contain"})}),RN=({stepList:e,tone:t})=>s.jsx("div",{className:"flex flex-col items-start justify-center mt-6 px-4 md:flex-row md:items-start md:mt-8 md:justify-around",children:e.map((n,r)=>s.jsxs("div",{className:"flex flex-1 text-left py-2 md:block md:py-0",children:[s.jsx("div",{className:SN({tone:t}),children:r+1}),s.jsx("div",{className:TN({tone:t}),children:n.text})]},r))}),PN=({form:e,href:t,buttonText:n,buttonVariant:r,withArrow:o,tracking:i})=>s.jsx("div",{className:"mx-auto my-9 w-full md:w-[350px] [&_button]:w-full",children:e??s.jsx(Me,{href:t,variant:r,size:"large",withArrow:o,id:i.componentId,componentName:"cardFinder",className:"w-full",children:n})}),IN=({trustpilot:e,secondary:t})=>{const n=t?"#000":"#fff";return s.jsxs("a",{className:"mx-auto h-6 w-[238px] flex items-center gap-2",target:"_blank",href:e.link,rel:"noreferrer","aria-label":"Trustpilot reviews",children:[s.jsx("svg",{style:{width:"100px",height:"24px"},fill:n,stroke:n,color:n,"aria-label":"Trustpilot",children:s.jsx("use",{href:`${ss}#trust-pilot-logo-white`})}),s.jsx("img",{src:e.starsImageUrl,alt:"Trustpilot stars",className:"h-6"})]})},LN=({id:e,title:t,subtitle:n,buttonText:r="Get Started",href:o,withArrow:i=!1,showCard:a=!1,cardLogo:l,showEligibilitySlider:c=!1,showTrustPilot:d=!1,trustpilot:u,secondary:f=!1,brand:m="money",stepList:h=[],form:p,tracking:b})=>{const g=f?"dark":"light",y=f?"secondary":"primary";return s.jsxs("div",{className:"max-w-[938px] mx-auto",children:[a&&s.jsx(AN,{cardLogo:l}),s.jsxs("div",{className:EN({brand:m,secondary:f}),id:e,children:[t&&s.jsx("h2",{className:_N({tone:g,withCard:a}),children:t}
67),n&&s.jsx("div",{className:CN({tone:g}),children:n}),c&&s.jsx("div",{className:"flex justify-center mt-4 md:mt-8",children:s.jsx("img",{className:"w-full max-w-[295px]",src:kN,alt:"eligibility-animation"})}),h.length>0&&s.jsx(RN,{stepList:h,tone:g}),s.jsx(PN,{form:p,href:o,buttonText:r,buttonVariant:y,withArrow:i,tracking:b}),d&&u&&s.jsx(IN,{trustpilot:u,secondary:f})]})]})},DN=e=>e==="uswitch"?"uswitch":"money",ON=e=>Array.isArray(e)?e.flatMap(t=>{if(!V(t))return[];const n=O(t.text);return n?[{text:n}]:[]}):[],MN=(e,t)=>e||(t?`/credit-cards/eligibility-checker?productType=${t}`:"/credit-cards/eligibility-checker"),$N=({entry:e})=>{const{jsonBody:t,name:n,variant:r,form:o}=e.fields,i=V(t)?t:{},{rootEntry:a}=J(),l=DN(a?.fields.brand),c=o?Lo(o):void 0,d=Le(i.showTrustPilot)??!1,u=typeof e.fields.brand=="string"?e.fields.brand:l,f=fc()?.[u],m=d&&f?{link:f.link,starsImageUrl:`https://images-static.trustpilot.com/api/stars/${f.companyScore.score.stars}/128x24.png`}:void 0,h=MN(O(i.url),O(i.subCategory));return s.jsx(LN,{id:n,title:O(i.title),subtitle:O(i.subtitle),buttonText:O(i.buttonText)??"Get Started",href:h,withArrow:Le(i.ctaIcon)??!1,showCard:Le(i.showCard)??!1,cardLogo:O(i.cardLogo),showEligibilitySlider:Le(i.showEligibilitySlider)??!1,showTrustPilot:d,trustpilot:m,secondary:Le(i.secondary)??!1,brand:l,stepList:ON(i.stepList),form:c?s.jsx(xi,{entry:c}):void 0,tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r}})},FN=({id:e,reasons:t,showHeader:n=!0})=>t.length===0?null:s.jsxs("div",{id:e,children:[n&&s.jsx("h3",{className:"font-heading text-2xl lg:text-4xl font-normal leading-[150%] text-primary mb-3 lg:mb-0",children:"We’ve been featured in"}),s.jsx("div",{className:"marquee-fade-edges h-[100px] mt-3 lg:mt-4 lg:mb-8 lg:before:content-none lg:after:content-none",children:s.jsxs("div",{className:"flex items-center w-max absolute top-0 left-0 whitespace-nowrap animate-bannermove-fast lg:animate-none lg:static lg:w-full lg:justify-between",children:[t.map(({url:r,altValue:o})=>s.jsx("img",{src:r,alt:o,className:"w-[170px] lg:max-w-full"},`a-${o}`)),t.map(({url:r,altValue:o})=>s.jsx("img",{src:r,alt:"","aria-hidden":"true",className:"w-[170px] lg:hidden"},`b-${o}`))]})})]}),BN=e=>Array.isArray(e)?e.flatMap(t=>!V(t)||typeof t.altValue!="string"||typeof t.url!="string"||t.altValue.trim()===""||t.url.trim()===""?[]:[{altValue:t.altValue,url:t.url}]):[],zN=({entry:e})=>{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},o=BN(r.reasons);return s.jsx(FN,{id:n,reasons:o,showHeader:r.showHeader!==!1})},HN="foot-notes",VN=()=>s.jsx("svg",{"aria-hidden":"true",width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"inline-block fill-accent",children:s.jsx("path",{d:"M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7zM19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7h-2v7z"})}),UN=({title:e,references:t,showHeader:n=!0,tracking:r})=>t.length===0?null:s.jsxs("div",{className:"my-6",children:[n&&e&&s.jsx("h3",{className:"heading-sm pb-3",children:e}),s.jsx("div",{className:"ml-[5px] body-xs",children:t.map(({label:o,url:i,description:a},l)=>{const c=()=>{const d=Ke({eventName:"component cta clicked",href:i,text:o,position:void 0,componentId:r.componentId,componentName:HN});ze("Click Event",d)};return s.jsxs("div",{className:"flex pb-1 lg:pb-2",children:[s.jsxs("span",{className:"mr-1 font-extrabold text-primary",children:[l+1,"."]}),s.jsxs("span",{children:[s.jsx("a",{className:"underline text-link visited:text-link hover:text-link active:text-link",href:i,target:"_blank",rel:"noopener noreferrer",onClick:c,children:o})," ",s.jsx("span",{children:a})," ",s.jsx("a",{className:"underline text-link visited:text-link hover:text-link active:text-link",target:"_blank",href:i,rel:"noopener noreferrer",onClick:c,"aria-label":`Open ${o} in a new tab`,children:s.jsx(VN,{})})]})]},l)})})]});function GN(e){if(!V(e))return null;const t=O(e.label),n=O(e.url),r=O(e.description);return!t||!n?null:{label:t,url:n,description:r??""}}function WN(e){return Array.isArray(e)?e.map(GN).filter(t=>t!==null):[]}const qN=({entry:e})=>
67{const{jsonBody:t,name:n,variant:r}=e.fields,o=V(t)?t:{},i=WN(o.references);return i.length===0?null:s.jsx(UN,{title:O(o.title),references:i,showHeader:Le(o.showHeader)??!0,tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r}})},YN=({id:e,title:t,subTitle:n,showHeader:r=!0,primaryGuide:o,secondaryGuides:i=[],moreGuidesRedirectUrl:a,brand:l="money",tracking:c})=>{const d=[...o?[o]:[],...i];return d.length===0?null:s.jsx("div",{id:e,className:"mb-12",children:s.jsxs("section",{className:"my-3 lg:my-6",children:[r&&t&&s.jsx("h2",{className:"heading-md mb-0 lg:pb-0",children:t}),n&&s.jsx("div",{className:"body-base pb-3 lg:pt-3 lg:pb-0",children:n}),s.jsxs(ps,{opts:{align:"start",slidesToScroll:1},children:[s.jsx(hs,{className:"-ml-1 lg:-ml-4 pt-6 pb-3 lg:pt-12 lg:pb-9",children:d.map((u,f)=>s.jsx(xs,{className:"pl-1 lg:pl-4 basis-[99%] lg:basis-1/3",children:s.jsxs("div",{className:"flex flex-col items-center",children:[u.redirectionUrl?s.jsx("a",{href:u.redirectionUrl,className:"block w-full",children:s.jsx("img",{src:u.imgUrl,alt:u.altValue,className:"w-full h-auto block rounded-lg lg:rounded-xl",loading:"lazy"})}):s.jsx("img",{src:u.imgUrl,alt:u.altValue,className:"w-full h-auto block rounded-lg lg:rounded-xl",loading:"lazy"}),s.jsx("div",{className:"body-base-bold lg:body-lg-bold w-full text-left mt-2 lg:mt-4",children:u.title})]})},f))}),s.jsx(gs,{className:"mb-9 lg:hidden"})]}),a&&s.jsx("div",{className:"flex justify-center",children:s.jsx(Me,{href:a,variant:l==="money"?"tertiary":"secondary",size:"large",id:c.componentId,componentName:"guidesModule",className:"w-full md:w-[343px]",children:"Find more guides here"})})]})})},KN=e=>e==="uswitch"?"uswitch":"money";function yl(e){if(!V(e))return null;const t=O(e.title),n=O(e.imgUrl),r=O(e.altValue);return!t||!n||r===void 0?null:{title:t,imgUrl:n,altValue:r,redirectionUrl:O(e.redirectionUrl)}}const ZN=({entry:e})=>{const{jsonBody:t,name:n,variant:r}=e.fields,o=V(t)?t:{},{rootEntry:i}=J(),a=KN(i?.fields.brand),l=yl(o.primaryGuide)??void 0,d=(Array.isArray(o.secondaryGuides)?o.secondaryGuides:[]).map(u=>yl(u)).filter(u=>u!==null);return s.jsx(YN,{id:n,title:O(o.title),subTitle:O(o.subTitle),showHeader:o.showHeader!==!1,primaryGuide:l,secondaryGuides:d,moreGuidesRedirectUrl:O(o.moreGuidesRedirectUrl),brand:a,tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r}})},XN="header-module",QN=({tooltip:e,isOpen:t,onClose:n})=>(x.useEffect(()=>{if(!t)return;const r=o=>{o.key==="Escape"&&n()};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r)}},[t,n]),t?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 bg-black/50 z-[210]",role:"presentation",onClick:n}),s.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"header-module-tooltip-title",className:"fixed top-40 left-[30px] right-[30px] min-h-[200px] bg-white rounded-tl-[10px] rounded-bl-[10px] rounded-br-[10px] z-[211] p-6 shadow-lg lg:top-1/2 lg:left-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:w-[710px] lg:min-h-[145px] max-[375px]:p-8",children:[s.jsx("button",{type:"button","aria-label":"Close tooltip",onClick:n,className:"absolute top-3 right-3 cursor-pointer border-0 bg-transparent p-0 max-md:top-2.5 max-md:right-2.5",children:s.jsx(H,{glyph:"cross",size:"large",color:"var(--color-primary)",ariaLabel:"Close tooltip"})}),s.jsx("div",{id:"header-module-tooltip-title",className:"mb-6 font-body text-md font-bold leading-[22px] text-[#3c3c43]",children:e.title}),s.jsx("div",{className:"font-body text-md font-normal leading-[22px] text-[#3c3c43]",children:e.content})]})]}):null),JN=({title:e,subTitle:t,intro:n,hideIntroOnMobile:r=!1,showTooltip:o=!1,tooltip:i,tracking:a})=>{const[l,c]=x.useState(!1),d=()=>{c(!0);const u=Ke({eventName:"component cta clicked",href:"",text:`${e}: tooltip clicked`,position:void 0,componentId:a.componentId,componentName:XN});ze("Click Event",u)};return s.jsxs("div",{className:"my-3 lg:mt-6 lg:mb-0",children:[t&&s.jsx("h1",{className:"m-0 font-body text-md font-normal leading-[22px] text-grey100",children:t}),s.jsxs("div",{className:"flex items-baseline",children:[s.jsx("h2",{className:"m-0 font-heading font-semibold text-[30px] leading-[120%] text-heading pt-2 pb-3 lg:text-4xl lg:pb-6",children:e}),o&&i&&s.jsxs("div",{className:"ml-[30px]",children:[s.jsx("button",{type:"button","aria-label":`More information about ${e}`,"aria-expanded":l,onClick:d,className:"cursor-pointer border-0 bg-transparent p-0 [&_svg]:block",children:s.jsx(H,{glyph:"information-circle",color:"var(--color-accent)",ariaLabel:"Information"})}),s.jsx(QN,{tooltip:i,isOpen:l,onClose:()=>{c(!1)}})]})]}),n&&s.jsx("div",{className:`body-lg ${r?"max-[425px]:hidden":""}`,children:n})]})};function ek(e){if(!V(e))return;const t=O(e.title),n=O(e.content);if(!(!t||!n))return{title:t,content:n}}const tk=({entry:e})=>
67{const{jsonBody:t,name:n,variant:r}=e.fields,o=V(t)?t:{},i=O(o.title);return i?s.jsx(JN,{title:i,subTitle:O(o.subTitle),intro:O(o.intro),hideIntroOnMobile:Le(o.hideIntroOnMobile)??!1,showTooltip:Le(o.showTooltip)??!1,tooltip:ek(o.tooltip),tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r}}):null},nk=e=>e.replace(/[^A-Z0-9]/gi,""),rk=10,sk=({id:e,title:t,images:n})=>{if(n.length===0)return null;const r=n.slice(0,rk);return s.jsxs("div",{id:e?nk(e):void 0,children:[t&&s.jsx("div",{className:"font-heading font-semibold text-[18px] leading-[1.2] text-heading text-center mb-8",children:t}),s.jsx("div",{className:"marquee-fade-edges h-[75px] my-6 mx-auto",children:s.jsxs("div",{className:"absolute top-0 left-0 overflow-hidden whitespace-nowrap animate-bannermove",children:[r.map(({src:o,name:i})=>s.jsx("img",{src:o,alt:i,className:"inline align-middle max-w-[150px] max-h-[45px] object-contain mr-[30px]"},`a-${i}`)),r.map(({src:o,name:i})=>s.jsx("img",{src:o,alt:"","aria-hidden":"true",className:"inline align-middle max-w-[150px] max-h-[45px] object-contain mr-[30px]"},`b-${i}`))]})})]})},ok=e=>Array.isArray(e)?e.flatMap(t=>!V(t)||typeof t.src!="string"||typeof t.name!="string"||t.src.trim()===""||t.name.trim()===""?[]:[{src:t.src,name:t.name}]):[],ik=({entry:e})=>{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},o=typeof r.title=="string"?r.title:void 0,i=ok(r.images);return s.jsx(sk,{id:n,title:o,images:i})},ak=({heading:e,subHeading:t,desktopImgUrl:n,mobileImgUrl:r,showHeader:o=!0,id:i})=>s.jsx(wn,{intent:"primary",className:"md:rounded-xl",children:s.jsxs("div",{id:i,children:[o&&s.jsx("h2",{className:"heading-sm m-0 text-heading",children:e}),s.jsx("div",{className:"body-base text-primary py-6",children:t}),s.jsxs("div",{className:"flex justify-center",children:[s.jsx("img",{src:n,className:"hidden md:block w-[710px] max-w-full h-auto",alt:e||"Image viewer",loading:"lazy"},n),s.jsx("img",{src:r,className:"block md:hidden w-[295px] max-w-full h-auto",alt:e||"Image viewer",loading:"lazy"},r)]})]})}),lk=({entry:e})=>{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},o=O(r.heading),i=O(r.subHeading),a=O(r.desktopImgUrl),l=O(r.mobileImgUrl),c=Le(r.showHeader)??!0;return!o||!i||!a||!l?null:s.jsx(ak,{heading:o,subHeading:i,desktopImgUrl:a,mobileImgUrl:l,showHeader:c,id:n})},ck=({title:e,linkDetails:t,showHeader:n=!0,tracking:r})=>s.jsxs("div",{className:"my-6",children:[n&&e&&s.jsx("h2",{className:"heading-md mb-6 lg:mb-12",children:e}),s.jsx("div",{className:"pt-3 flex flex-wrap gap-3 lg:gap-8 lg:pt-0",children:t.map((o,i)=>{const a=i%2===0;return s.jsx("div",{className:"flex-1",children:s.jsxs("div",{className:`h-full rounded-3xl p-6 lg:p-12 ${a?"[background:var(--color-link-collection-primary)]":"[background:var(--color-link-collection-secondary)] border border-link-collection-secondary-border"}`,children:[s.jsx("p",{className:`m-0 max-w-[303px] w-max lg:max-w-[432px] heading-sm pb-4 ${a?" text-on-accent":" text-link "}`,children:o.sectionTitle}),s.jsx("div",{className:"grid grid-cols-1",children:o.links.map((l,c)=>{const d=()=>{const u=Ke({eventName:"component cta clicked",href:l.linkUrl,text:l.linkTitle,position:void 0,componentId:r.componentId,componentName:"link-collection"});ze("Click Event",u)};return s.jsx("span",{className:"pb-[10px]",children:s.jsx("a",{href:l.linkUrl,className:`underline body-base ${a?"text-on-accent visited:text-on-accent hover:text-on-accent active:text-on-accent":"text-link visited:text-link hover:text-link active:text-link"}`,onClick:d,children:l.linkTitle})},c)})})]})},i)})})]});function dk(e){if(!V(e))return null;const t=O(e.linkTitle),n=O(e.linkUrl);return!t||!n?null:{linkTitle:t,linkUrl:n}}function uk(e){return Array.isArray(e)?e.map(dk).filter(t=>t!==null):[]}function fk(e){if(!V(e))return null;const t=O(e.sectionTitle);return t?{sectionTitle:t,links:uk(e.links)}:null}function mk(e){return Array.isArray(e)?e.map(fk).filter(t=>t!==null):[]}const pk=({entry:e})=>{const{jsonBody:t,name:n,variant:r}=e.fields,o=V(t)?t:{},i=mk(o.linkDetails);
67return i.length===0?null:s.jsx(ck,{title:O(o.title),linkDetails:i,showHeader:Le(o.showHeader)??!0,tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r}})},hk=()=>s.jsxs("div",{className:"bg-white p-5 rounded-xl md:rounded-3xl border border-accent shadow-lg",children:[s.jsx("div",{className:"flex flex-col md:flex-row md:gap-4",children:Array.from({length:3}).map((e,t)=>s.jsxs("div",{className:"flex flex-col mb-4 md:mb-0 md:flex-1",children:[s.jsx("div",{className:"skeleton h-5 w-32 mb-2"}),s.jsx("div",{className:"skeleton h-12 w-full rounded"})]},t))}),s.jsx("div",{className:"skeleton h-4 w-3/4 mx-auto my-4"}),s.jsxs("div",{className:"flex flex-col md:flex-row md:mb-2",children:[s.jsx("div",{className:"skeleton h-20 md:flex-1"}),s.jsx("div",{className:"skeleton h-20 md:flex-1"})]}),s.jsxs("div",{className:"flex flex-col md:flex-row mt-1",children:[s.jsx("div",{className:"skeleton h-20 md:flex-1"}),s.jsx("div",{className:"skeleton h-20 md:flex-1"})]})]}),xk=x.lazy(async()=>await lt(()=>import("./index-BCXjf0co.js"),__vite__mapDeps([11,1,2,3,4,5,6]))),gk=()=>s.jsx(x.Suspense,{fallback:s.jsx(hk,{}),children:s.jsx(xk,{})}),bk=e=>s.jsx(gk,{}),yk="ppcNav",vk=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 293.99 61.6",className:"w-full max-w-[150px] align-middle","aria-label":"money.co.uk",children:s.jsxs("g",{children:[s.jsx("path",{style:{fill:"var(--color-cta-emphasis)"},d:"M34.6,19.33l-.05-.09.05-.06L14.34,1a4,4,0,0,0-.75-.56h0A3.27,3.27,0,0,0,12,0h-.25A4.28,4.28,0,0,0,8.16,3.6h0v0c0,.08,0,.17,0,.26v0l0,.22L8,4.39l0,1L8.1,6.51l.06.22,13.47,27,.1-.11.14.28Z"}),s.jsx("path",{style:{fill:"var(--color-accent-warm)"},d:"M34.87,54.9,34.77,19l-.17.15h0l-.21.24L21.73,33.63l9.48,18.91a4,4,0,0,0,3,2.35h0l.38,0h.27Z"}),s.jsx("path",{style:{fill:"#a64470"},d:"M61.56,6.59l-.47-2.71h0A4.32,4.32,0,0,0,57.47,0h-.26a3.26,3.26,0,0,0-1.57.43h0a4.36,4.36,0,0,0-.75.55L34.6,19.19h0v.69l12.72,14,.15-.29.13.14Z"}),s.jsx("path",{style:{fill:"#faa73f"},d:"M8.1,3.88h0l-8,48a3,3,0,0,0-.06.58,2.25,2.25,0,0,0,2,2.45,1.8,1.8,0,0,0,1.38-.69L21.73,33.63l-13-26A5.65,5.65,0,0,1,8,4.9a6.64,6.64,0,0,1,.08-1"}),s.jsx("path",{style:{fill:"var(--color-accent)"},d:"M61.1,3.88a5.81,5.81,0,0,1,.08,1,5.66,5.66,0,0,1-.67,2.73l-13,26,18.36,20.6h0a1.8,1.8,0,0,0,1.38.69,2.25,2.25,0,0,0,2-2.45,2.81,2.81,0,0,0-.06-.58l-8-48h0"}),s.jsx("path",{style:{fill:"var(--color-accent-alt)"},d:"M34.6,19.19h0V54.91A3.89,3.89,0,0,0,38,52.53h0l9.48-18.91L34.6,19.19"}),s.jsx("path",{style:{fill:"#35454e"},d:"M135.41,23.52V43a3.08,3.08,0,0,1-3.11,3,3,3,0,0,1-3-3V24.74c0-5.68-1.76-8.53-6.89-8.53s-7.92,3.45-9.75,6.49V43a3.08,3.08,0,0,1-3.11,3,3,3,0,0,1-3-3V24.74c0-5.68-1.76-8.53-6.9-8.53s-7.91,3.45-9.74,6.49V43a3.08,3.08,0,0,1-3.11,3,3,3,0,0,1-3-3V14a3.09,3.09,0,0,1,3-3.12A3.15,3.15,0,0,1,89.83,14v2.77c1.89-2.63,5.07-6.22,11.49-6.22a11,11,0,0,1,10.35,7,13.73,13.73,0,0,1,12.45-7C132.09,10.53,135.41,17.5,135.41,23.52Z"}),s.jsx("path",{style:{fill:"#35454e"},d:"M177.07,28.46c0,10.69-6.9,17.93-17.32,17.93s-17.32-7.24-17.32-17.93,6.83-17.93,17.32-17.93S177.07,17.78,177.07,28.46Zm-6.16-.07c0-8.93-6-12.24-11.16-12.24s-11.16,3.32-11.16,12.24,6,12.37,11.16,12.37S170.91,37.39,170.91,28.39Z"}),s.jsx("path",{style:{fill:"#35454e"},d:"M215.68,23.79V43a3.08,3.08,0,0,1-3.11,3,3,3,0,0,1-3-3V24.47c0-5.14-2.16-8.25-7.43-8.25-4.87,0-8.39,3.11-11.1,6.49V43a3.08,3.08,0,0,1-3.11,3,3,3,0,0,1-3-3V14a3,3,0,0,1,3-3.12A3.1,3.1,0,0,1,191,14v2.77c2.84-3.11,6.56-6.22,12.59-6.22C211.28,10.53,215.68,16.56,215.68,23.79Z"}),s.jsx("path",{style:{fill:"#35454e"},d:"M254.62,40.9a3.08,3.08,0,0,1-1.75,2.51c-3,1.69-6,3-11.85,3-11,0-17.51-6.56-17.51-17.93,0-9.13,4.94-17.93,16.16-17.93,10.42,0,16.1,8.05,16.1,17a3,3,0,0,1-3.12,3.05H229.73c.68,6.08,4.53,10,11.84,10a18.47,18.47,0,0,0,9.13-2.09,2.45,2.45,0,0,1,1.21-.27A2.65,2.65,0,0,1,254.62,40.9ZM229.73,25.62h20c-.4-7-5.68-9.88-10-9.88S230.14,18.59,229.73,25.62Z"}),s.jsx("path",{style:{fill:"#35454e"},d:"M293.78,15.13,275.32,59.51a3,3,0,0,1-2.84,2.09,2.94,2.94,0,0,1-2.91-3,3.05,3.05,0,0,1,.21-1.08l4.4-11.29-12.72-31a3.55,3.55,0,0,1-.28-1.28,3.09,3.09,0,0,1,3-3.12,3.14,3.14,0,0,1,2.84,1.89l10.41,25.84,10.62-25.7A3,3,0,0,1,294,14,3,3,0,0,1,293.78,15.13Z"})]})}),wk=()=>s.jsx("svg",{viewBox:"0 0 880 260",xmlns:"http://www.w3.org/2000/svg",className:"w-full max-w-[150px] align-middle","aria-label":"uswitch",children:s.jsxs("g",{fill:"#141423",children:[s.jsx("path",{d:"m275.92 167.49h24.23c1.38 12.8 7.88 17.33 22.66 17.33 14.38 0 20.09-4.53 20.09-12.21 0-7.29-4.53-10.84-19.89-13.4l-11.63-2c-21.86-3.74-33.29-13.39-33.29-30.73 0-19.11 15-30.73 42.16-30.73 31.32 0 44.13 13.59 44.92 34.47h-23.45c-.59-13-8.67-16.74-21.47-16.74-12 0-17.73 4.53-17.73 11.82 0 7.48 5.91 10.44 16.94 12.41l12.81 2c24.42 4.33 35.26 13.4 35.26 30.93 0 20.49-16.75 31.92-45.11 31.92-28.96 0-44.92-10.45-46.5-35.07z"}),s.jsx("path",{d:"m531.83 98.14-33.49 101.66h-26l-12.81-41.8c-3-10.05-5.91-20.29-8.67-30.34-2.76 10.05-5.52 20.29-8.47 30.34l-12.61 41.8h-26l-33.49-101.66h26.59l11.43 38c3.54 11.63 6.89 23.64 10 35.27 3-11.82 6.11-23.64 9.66-35.46l11.23-37.83h23.64l11.27 37.88c3.54 11.82 6.7 23.64 9.65 35.46 3.15-11.63 6.5-23.64 10.05-35.27l11.42-38z"}
67),s.jsx("path",{d:"m541.48 98.14h24.82v101.66h-24.82zm.2-36.44h24.42v23.24h-24.42z"}),s.jsx("path",{d:"m619.29 117.05v55c0 6.7 3.35 8.86 11.63 8.86h8.47v18.89c-4.53.39-9.06.78-13 .78-21.48 0-31.72-7.28-31.72-26v-57.53h-15.76v-18.91h15.76v-29.55h24.62v29.55h20.1v18.91z"}),s.jsx("path",{d:"m647.46 149c0-32.51 19.9-53.19 50.24-53.19 26.59 0 44.32 15.17 47.28 39h-24.82c-2.37-12.6-11.43-18.32-22.46-18.32-14.78 0-24.82 10.25-24.82 32.51s10.44 32.51 24.82 32.51c11.23 0 20.88-6.11 22.85-19.51h24.82c-2.75 24.82-21.67 40.19-47.67 40.19-30.14-.03-50.24-20.71-50.24-53.19z"}),s.jsx("path",{d:"m850.37 132.42v67.38h-24.82v-63.24c0-13-6.5-19.31-19.11-19.31-10.83 0-22.65 7.49-22.65 25.61v56.94h-24.79v-140.27h24.83v52.2a37.27 37.27 0 0 1 30.93-16c21.24.05 35.61 12.46 35.61 36.69z"}),s.jsx("path",{d:"m29.64 26.24v207h207v-207zm162.21 120.76c0 36.45-22.66 55.76-58.71 55.76-35.26 0-58.71-19.31-58.71-55.76v-87.48h26.57v87.67c0 22.06 12 32.51 32.11 32.51s32.11-10.45 32.11-32.51v-87.67h26.6z"})]})}),jk=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 203 36",className:"w-full max-w-[150px] align-middle","aria-label":"confused.com",children:[s.jsx("path",{fill:"#000",d:"M195.947 25.9553C198.647 25.0855 201.196 22.4003 201.945 19.7152C202.785 16.6973 202.732 8.87632 202.195 6.00209C201.658 3.12786 199.328 0.828471 196.242 0.147732C192.082-0.75992 177.627 2.74967 173.505 4.27755C170.389 5.43481 166.047 7.68125 165.533 14.1256C165.389 15.9636 165.45 18.9891 165.904 20.7363C166.584 23.3685 168.831 25.7511 173.778 26.4318C179.503 27.2033 190.804 27.6042 195.947 25.9553Z"}),s.jsx("path",{fill:"#fff",d:"M182.348 15.5476V14.413C182.348 13.0969 181.841 12.4313 180.903 12.4313C179.957 12.4313 179.435 13.0969 179.435 14.413V15.5476C179.435 16.8637 179.957 17.5444 180.903 17.5444C181.841 17.5444 182.348 16.8637 182.348 15.5476ZM198.958 19.2841C198.958 19.4656 198.799 19.6244 198.617 19.6244H196.651C196.469 19.6244 196.325 19.4656 196.325 19.2841V13.7398C196.325 12.696 196.083 12.3935 195.335 12.3935C195.055 12.3935 194.571 12.4616 194.086 12.6885C194.117 13.0137 194.132 13.3843 194.132 13.7474V19.2916C194.132 19.4732 193.988 19.632 193.807 19.632H191.84C191.659 19.632 191.5 19.4732 191.5 19.2916V13.7474C191.5 12.7036 191.303 12.401 190.554 12.401C190.244 12.401 189.821 12.5599 189.321 12.8246V19.2916C189.321 19.4732 189.17 19.632 188.996 19.632H187.029C186.848 19.632 186.689 19.4732 186.689 19.2916V10.6387C186.689 10.4572 186.833 10.3134 187.014 10.3134H188.867C189.049 10.3134 189.193 10.4572 189.193 10.6387V10.9942C189.873 10.5404 190.66 10.1849 191.598 10.1849C192.46 10.1849 193.058 10.4269 193.519 10.9791C194.465 10.442 195.115 10.1849 196.167 10.1849C198.315 10.1849 198.965 11.6144 198.965 13.7474V19.2841H198.958ZM184.965 15.5476C184.965 18.1344 183.535 19.7757 180.903 19.7757C178.271 19.7757 176.826 18.1344 176.826 15.5476V14.413C176.826 11.8262 178.271 10.1849 180.903 10.1849C183.535 10.1849 184.965 11.8262 184.965 14.413V15.5476ZM175.185 12.5221C174.648 12.4616 174.126 12.4086 173.203 12.4086C172.469 12.4086 171.872 12.8473 171.872 14.292V15.6535C171.872 17.0981 172.477 17.5368 173.203 17.5368C174.126 17.5368 174.988 17.4536 175.162 17.4309C175.343 17.4083 175.495 17.5066 175.525 17.7032C175.555 17.8923 175.691 18.9437 175.714 19.1479C175.737 19.3521 175.616 19.458 175.374 19.5261C174.92 19.6396 173.997 19.7682 173.021 19.7682C170.73 19.7682 169.232 18.3083 169.232 15.6535V14.292C169.232 11.6447 170.73 10.1773 173.021 10.1773C173.997 10.1773 174.92 10.3059 175.374 10.4193C175.616 10.4874 175.744 10.6009 175.714 10.79C175.691 10.9866 175.548 12.0531 175.525 12.2346C175.502 12.4237 175.404 12.5448 175.185 12.5221Z"}),s.jsx("path",{fill:"#000",d:"M168.286 31.3785C168.286 30.1456 168.037 29.1926 167.606 28.6253C166.895 27.695 165.7 27.3697 164.036 27.3697H162.924C161.26 27.3697 160.065 27.7025 159.354 28.6253C158.922 29.1926 158.673 30.0776 158.673 31.3785C158.673 32.7778 158.922 33.6855 159.354 34.2528C160.065 35.1831 161.26 35.5084 162.924 35.5084H164.036C165.7 35.5084 166.895 35.1756 167.606 34.2528C168.044 33.6855 168.286 32.7476 168.286 31.3785Z"}),s.jsx("path",{fill:"#000",d:"M121.716 22.2264C121.815 19.8211 123.168 18.3386 125.286 18.3386C127.366 18.3386 128.682 19.8211 128.781 22.2264H121.716ZM125.28
676 13.1725C119.492 13.1725 115.824 16.909 115.824 23.1567V25.9402C115.824 33.2241 120.96 35.8109 125.354 35.8109C127.888 35.8109 131.292 34.9865 133.016 34.4494C133.743 34.2225 133.932 33.5115 133.803 33.0123C133.697 32.6266 133.304 31.1819 133.19 30.7432C133.069 30.2667 132.691 29.8733 131.988 29.896C131.269 29.9187 128.682 30.6751 125.733 30.6524C122.397 30.6297 121.746 28.285 121.671 26.6512H133.47C134.113 26.6512 134.665 26.1217 134.665 25.4712V23.1643C134.673 16.9998 131.08 13.1725 125.286 13.1725ZM32.5923 26.0158C32.5923 28.9581 31.2913 30.6449 29.0146 30.6449C26.7379 30.6449 25.437 28.9581 25.437 26.0158V22.9676C25.437 20.0253 26.7379 18.3386 29.0146 18.3386C31.2913 18.3386 32.5923 20.0253 32.5923 22.9676V26.0158ZM29.0146 13.1725C23.2813 13.1725 19.5902 16.9242 19.5902 22.9676V26.0158C19.5902 32.0593 23.1981 35.8109 29.0146 35.8109C34.8236 35.8109 38.4391 32.0593 38.4391 26.0158V22.9676C38.4315 16.9242 34.7404 13.1725 29.0146 13.1725ZM149.49 30.6751C148.719 30.7886 147.448 30.8642 146.329 30.8642C143.787 30.8642 142.751 29.4347 142.751 25.9326V23.0433C142.751 19.5412 143.787 18.1117 146.329 18.1117C147.077 18.1117 148.439 18.1949 149.49 18.3235V30.6751ZM153.976 4.91291C153.295 5.03393 151.162 5.41212 150.504 5.52557C149.838 5.63903 149.498 6.20631 149.498 6.70552V13.3692C148.394 13.2406 147.267 13.165 146.336 13.165C140.263 13.165 136.912 16.6746 136.912 23.0357V25.9251C136.912 32.2938 140.255 35.7958 146.336 35.7958C148.726 35.7958 151.593 35.4252 153.998 34.8049C154.868 34.578 155.345 34.2755 155.345 33.3602V6.09286C155.337 5.43481 154.762 4.77676 153.976 4.91291ZM57.9234 35.5084C58.5738 35.5084 59.1184 35.0091 59.1184 34.3435V22.0297C59.1184 17.6503 58.294 13.1725 52.1749 13.1725C49.8831 13.1725 48.2795 13.6188 46.5323 14.6324C46.5323 13.9667 45.9953 13.4373 45.3372 13.4373H42.0697C41.4116 13.4373 40.8746 13.9743 40.8746 14.6324V34.283C40.8746 35.0318 41.4192 35.5159 42.0697 35.5159H45.5263C46.1768 35.5159 46.7214 34.9562 46.7214 34.283V19.4429C48.3174 18.626 49.4973 18.263 50.526 18.263C53.0598 18.263 53.2792 18.8832 53.2792 22.0297V34.2755C53.2792 34.9411 53.7633 35.5084 54.4743 35.5084H57.9234ZM69.4127 35.5084C70.0632 35.5084 70.5927 35.0091 70.5927 34.3435V18.0361H73.6862C74.3594 18.0361 74.8813 17.5293 74.8813 16.8788V14.6248C74.8813 13.9667 74.3443 13.4297 73.6862 13.4297H70.5927V11.9548C70.5927 10.4874 70.812 10.1395 72.3701 10.1395C72.7181 10.1395 73.8678 10.2075 73.8678 10.2075C74.5334 10.2075 74.9343 9.74616 75.0553 9.32259C75.1763 8.89901 75.4032 8.02918 75.5696 7.40139C75.736 6.7736 75.3654 6.07773 74.6393 5.91889C73.9056 5.76761 72.6424 5.57852 71.697 5.57852C68.263 5.57852 64.7534 6.34246 64.7534 12.0304V13.4297H61.8489C61.1909 13.4297 60.6539 13.9667 60.6539 14.6248V16.3796C60.6539 16.8712 60.9867 17.3856 61.7052 17.5217C62.4238 17.6503 64.7459 18.0436 64.7459 18.0436V34.3284C64.7459 34.9865 65.2678 35.5084 65.9258 35.5084H69.4127ZM89.3054 34.2528C89.3054 35.0016 89.8425 35.5084 90.5005 35.5084H93.9571C94.6152 35.5084 95.1522 34.994 95.1522 34.336V14.6475C95.1522 13.9819 94.6076 13.4373 93.9571 13.4373H90.4778C89.7744 13.4373 89.3054 14.0348 89.3054 14.6097V29.4347C88.3675 29.9339 86.7186 30.7583 85.5009 30.7583C83.1183 30.7583 82.7476 29.8658 82.7476 26.9159V14.6702C82.7476 14.0046 82.203 13.4373 81.5526 13.4373H78.0959C77.4152 13.4373 76.9008 14.0046 76.9008 14.6702V26.9159C76.9008 32.2938 78.3758 35.7731 83.8444 35.7731C86.1665 35.7731 87.6868 35.2209 89.3054 34.2528ZM11.0658 35.8109C13.645 35.8109 16.3907 35.3041 17.2454 35.1302C18.1833 34.9411 18.5085 34.1847 18.3648 33.625C18.206 33.0123 17.8354 31.6433 17.737 31.3029C17.5858 30.7583 17.2832 30.1532 16.3831 30.1835C15.3998 30.2137 12.9567 30.4633 11.149 30.4633C7.78312 30.4633 6.14178 28.3076 6.14178 23.8753V18.3537C6.14178 13.8608 7.73018 11.7732 11.149 11.7732C12.9567 11.7732 14.999 11.9321 16.3226 12.0607C16.9958 12.1212 17.4799 11.6825 17.5858 11.2967C17.8278 10.4647 18.1077 9.39822 18.3421 8.58134C18.501 8.02162 18.0925 7.34088 17.5177 7.20473C16.1865 6.87949 13.872 6.4181 11.0734 6.4181C7.7453 6.4181 5.04827e-06 7.58292 5.04827e-06 18.3537V23.8753C-0.00755872 34.9486 8.48
67655 35.8109 11.0658 35.8109ZM106.089 36C111.838 36 113.895 32.498 113.895 29.5103C113.895 26.4697 112.322 24.609 109.69 23.2172C107.058 21.8255 106.036 21.2658 105.114 20.7741C104.198 20.2749 103.843 20.0178 103.843 19.3068C103.843 18.6714 104.577 18.1193 106.014 18.1193C107.678 18.1193 110.302 18.5201 111.437 18.7092C112.292 18.8529 112.708 18.2857 112.859 17.7638C113.056 17.1057 113.199 16.6065 113.388 15.8274C113.6 14.95 113.078 14.413 112.587 14.2769C111.066 13.8306 108.638 13.1801 105.598 13.1801C100.712 13.1801 98.0189 15.4719 98.0189 19.6396C98.0189 21.7423 99.1232 23.4366 101.385 24.8208C103.654 26.2049 105.477 27.3319 106.626 28.0354C107.776 28.7463 107.996 29.3741 107.996 29.7296C107.996 30.4785 107.587 31.0609 105.757 31.0609C103.926 31.0609 101.188 30.5919 99.9628 30.3574C99.2064 30.2137 98.7223 30.7734 98.624 31.1138C98.4878 31.6055 98.0643 33.088 97.9357 33.6174C97.7163 34.5251 98.3593 35.0016 98.6921 35.0924C101.203 35.758 104.425 36 106.089 36Z"})]}),Nk=({brand:e="money",text:t,link:n,ctaVariant:r,sticky:o=!1,tracking:i,ppcNavData:a})=>{const l=e==="uswitch"?"https://www.uswitch.com":e==="confused"?"https://www.confused.com":"https://www.money.co.uk",c=o?"sticky top-0 z-[1000] bg-white max-md:w-full max-md:left-0":"",d=n&&a?to(a[0],n):void 0;return s.jsxs("div",{className:`flex items-center justify-between ${c}`.trim(),children:[s.jsx("a",{href:l,className:"inline-block",children:e==="uswitch"?s.jsx(wk,{}):e==="confused"?s.jsx(jk,{}):s.jsx(vk,{})}),t&&typeof d=="string"&&s.jsx(Me,{href:d,variant:r??"primary",size:"large",id:i.componentId,componentName:yk,className:"max-w-[150px] lg:max-w-none",children:t})]})},kk=e=>e==="uswitch"||e==="confused"?e:"money",Ek=["primary","secondary"],_k=e=>e!==void 0&&Ek.includes(e),Ck=({entry:e})=>{const{jsonBody:t,name:n,variant:r}=e.fields,o=V(t)?t:{},i=V(o.buttonProps)?o.buttonProps:{}
67,{rootEntry:a,ppcNavData:l}=J(),c=kk(a?.fields.brand),d=O(i.variant),u=_k(d)?d:void 0;return s.jsx(Nk,{brand:c,text:O(o.text),link:O(o.link),ctaVariant:u,sticky:Le(o.sticky)??!1,tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r},ppcNavData:l?.[e.sys.id]})},Tk="productNavigation",Sk=te({base:["w-full flex items-center justify-center text-center cursor-pointer","rounded-sm bg-white p-4","body-base text-primary","focus-within:outline focus-within:outline-2 focus-within:outline-focus-ring"],variants:{checked:{true:"font-semibold ring-2 ring-inset ring-accent border border-accent",false:"font-normal border border-grey40"}},defaultVariants:{checked:!1}}),Ak=({heading:e,subheading:t,products:n,tracking:r})=>{const[o,i]=x.useState(0),a=x.useId();if(n.length===0)return null;const l=n[o],c=`product-navigation-${a}`;return s.jsx("div",{className:"my-3 md:my-6",children:s.jsxs("div",{className:["bg-white rounded-lg md:rounded-xl border border-accent","p-5 md:py-6 md:px-12","shadow-lg"].join(" "),children:[s.jsx("h2",{className:"m-0 flex items-center justify-center heading-md",children:e}),s.jsxs("fieldset",{className:"my-6 border-0 p-0 flex flex-col",children:[s.jsx("legend",{className:"mb-2 w-full body-lg-bold text-primary",children:t}),s.jsx("div",{className:"flex flex-col items-stretch gap-2 w-full md:flex-row md:gap-4",children:n.map((d,u)=>{const f=u===o;return s.jsxs("label",{className:Sk({checked:f}),children:[s.jsx("input",{type:"radio",name:c,checked:f,onChange:()=>{i(u)},className:"sr-only"}),s.jsxs("div",{className:"flex items-center gap-5 md:flex-col md:gap-0",children:[s.jsx(H,{glyph:d.icon,size:"large",color:"var(--color-primary)",ariaLabel:""}),s.jsx("div",{className:"flex flex-col items-start md:items-center",children:s.jsx("span",{className:"text-center",children:d.name})})]})]},u)})})]}),s.jsx("div",{className:"md:pt-4 mb-6 md:mb-10 text-center heading-md text-primary",children:l.text}),s.jsx("div",{className:"max-w-fit mx-auto",children:s.jsx(Me,{href:l.href,variant:"primary",size:"large",id:r.componentId,componentName:Tk,children:l.buttonText})})]})})};function Rk(e){if(!V(e))return;const t=Oe(e.name),n=Oe(e.icon),r=Oe(e.text),o=Oe(e.buttonText),i=Oe(e.href);if(!(t===void 0||n===void 0||r===void 0||o===void 0||i===void 0))return{name:t,icon:n,text:r,buttonText:o,href:i}}function Pk(e){return Array.isArray(e)?e.map(Rk).filter(t=>t!==void 0):[]}const Ik=({entry:e})=>{const{jsonBody:t,name:n,variant:r}=e.fields,o=V(t)?t:{},i=Oe(o.heading),a=Oe(o.subheading),l=Pk(o.products);if(i===void 0||a===void 0||l.length===0)return null;const c={heading:i,subheading:a,products:l,tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r}};return s.jsx(Ak,{...c})},Lk={money:{pros:"tick-circle",cons:"cross-circle"},uswitch:{pros:"tick-circle",cons:"cross-circle"},confused:{pros:"tick-square",cons:"cross-square"}},Dk={money:"default",uswitch:"default",confused:"xlarge"},Ok=(e,t)=>Lk[t][e],Mk=e=>Dk[e],vl=({heading:e,items:t,variant:n})=>{const r=Te(),o=Ok(n,r),i=Mk(r);return s.jsx("div",{className:"bg-white border-[length:var(--pros-cons-card-border-width)] border-pros-cons-card shadow-lg",children:s.jsxs("div",{className:"flex flex-col items-start gap-6",children:[e&&s.jsx("h3",{className:"heading-sm w-full pt-6 px-6 pb-6 md:pb-[length:var(--pros-cons-header-desktop-pb)] border-b border-pros-cons-card md:border-b-0 bg-pros-cons-header text-on-pros-cons-header",children:e}),s.jsx("div",{className:`grid gap-5 w-full px-6 pb-6 ${e?"":"pt-6"}`,children:t.map((a,l)=>s.jsxs("div",{className:"flex",children:[s.jsx("div",{className:"shrink-0",children:s.jsx(H,{glyph:o,color:"var(--color-accent)",size:i,ariaLabel:""})}),s.jsx("span",{className:"flex items-start pl-[10px] body-base-bold md:body-lg flex-[0_0_94%]",children:a})]},l))})]})})},$k=({id:e,title:t,prosTitle:n,consTitle:r,prosList:o,consList:i,showHeader:a=!0})=>s.jsxs("div",{className:"my-3 md:my-6",id:e,children:[a&&t&&s.jsx("h2",{className:"heading-md mb-0",children:t}),s.jsxs("div",{className:"grid grid-cols-1 gap-6 mt-6 md:grid-cols-2 md:mt-12 md:px-[30px]",children:[s.jsx(vl,{heading:n,items:o,variant:"pros"}),s.jsx(vl,{heading:r,items:i,variant:"cons"})]})]}),Fk=({entry:e})=>
67{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},o=Js(r.prosList),i=Js(r.consList);return o.length===0&&i.length===0?null:s.jsx($k,{id:n,title:O(r.title),prosTitle:O(r.prosTitle),consTitle:O(r.consTitle),prosList:o,consList:i,showHeader:Le(r.showHeader)??!0})},Bk=({quote:e,imgUrl:t,authorName:n,authorDesg:r,authorUrl:o,id:i})=>{const a=Te();return s.jsx(wn,{intent:"primary",className:"lg:rounded-2xl border-[length:var(--quote-snippet-card-border-width)] border-quote-snippet-card",children:s.jsxs("div",{className:"flex flex-col items-start gap-6",id:i,children:[s.jsxs("p",{className:"heading-md text-accent-alt m-0 font-[var(--quote-snippet-quote-weight)]",children:["“",e,"”"]}),s.jsxs("div",{className:"flex flex-row items-start justify-end gap-6 self-stretch",children:[s.jsx("img",{src:t,alt:`${n} profile`,className:"w-[var(--quote-snippet-author-image-size)] h-[var(--quote-snippet-author-image-size)] rounded-full object-cover"}),s.jsxs("div",{className:"flex flex-col items-start gap-1 flex-1",children:[s.jsx("a",{href:o,className:"body-lg-bold text-link underline",children:n}),s.jsx("div",{className:"body-base",children:r}),a==="confused"&&s.jsx("svg",{role:"img","aria-label":"Confused.com",className:"h-5 w-28 mt-1",children:s.jsx("use",{href:`${ss}#confused-logo`})})]})]})]})})},zk=({entry:e})=>{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},o=O(r.quote),i=O(r.imgUrl),a=O(r.authorName),l=O(r.authorDesg),c=O(r.authorUrl);return!o||!i||!a||!l||!c?null:s.jsx(Bk,{quote:o,imgUrl:i,authorName:a,authorDesg:l,authorUrl:c,id:n})},Fs=(e,t,n)=>{ze("Click Event",Ke({eventName:Bt("clicked"),href:t,text:e,componentId:n,componentName:"stickyNav"}))},Hk=({sections:e,entryId:t})=>{const n=x.useRef(null),r=x.useRef(null),[o,i]=x.useState(!1),[a,l]=x.useState(null),[c,d]=x.useState(!1),[u,f]=x.useState(!0);x.useEffect(()=>{const p=n.current;if(!p)return;const b=()=>{i(p.getBoundingClientRect().y<0)};return window.addEventListener("scroll",b,{passive:!0}),b(),()=>{window.removeEventListener("scroll",b)}},[]),x.useEffect(()=>{const p=()=>{const b=window.scrollY;for(let g=e.length-1;g>=0;g-=1){const y=e[g],w=document.getElementById(y.id);if(!w)continue;const A=w.getBoundingClientRect().top+b-200,v=A+w.offsetHeight+96;if(b>=A&&b<v){l(y.id);return}}l(null)};return window.addEventListener("scroll",p,{passive:!0}),p(),()=>{window.removeEventListener("scroll",p)}},[e]),x.useEffect(()=>{if(!o||!a)return;r.current?.querySelector(`[href="#${a}"]`)?.scrollIntoView({block:"nearest",inline:"center"})},[o,a]);const m=x.useCallback(()=>{const p=r.current;p&&(d(p.scrollLeft>0),f(p.scrollLeft<p.scrollWidth-p.clientWidth-1))},[]);x.useEffect(()=>{const p=r.current;if(p)return p.addEventListener("scroll",m,{passive:!0}),m(),()=>{p.removeEventListener("scroll",m)}},[m]);const h=p=>{const b=r.current;b&&b.scrollBy({left:b.clientWidth*p,behavior:"smooth"})};return s.jsx("div",{ref:n,children:s.jsxs("div",{className:`grid w-full items-center gap-5 pt-3 lg:grid-cols-[min-content_1fr_min-content] lg:justify-center lg:pt-0 z-5 ${o?"fixed top-0 left-0 py-2 lg:py-0 w-full bg-white border border-grey40/30":""}`,children:[s.jsx("button",{type:"button",onClick:()=>{h(-1),Fs("arrow-left",void 0,t)},disabled:!c,className:`hidden lg:block pt-1.5 ${o?"invisible":""} ${c?"cursor-pointer":"cursor-default opacity-50"}`,"aria-label":"Scroll navigation left",children:s.jsx(H,{glyph:c?"arrow-left":"button-left-disabled",size:"xlarge",color:"#adafb3",ariaLabel:"Scroll left"})}),s.jsx("div",{ref:r,className:"overflow-x-auto scrollbar-none",children:s.jsx("div",{className:"flex gap-2.5 w-max mx-auto",children:e.map(p=>s.jsx("a",{href:`#${p.id}`,onClick:()=>{Fs(p.name,`#${p.id}`,t)},className:`w-max no-underline text-center px-3 py-3 body-xs-bold text-primary transition-all duration-250 rounded-full border ${a===p.id?"bg-surface-inverse text-white border-grey60":"bg-grey5 border-grey20 lg:hover:bg-grey20"}`,children:s.jsx("span",{className:"inline-block w-max",children:p.name})},p.id))})}),s.jsx("button",{type:"button",onClick:()=>{h(1),Fs("arrow-right",void 0,t)},disabled:!u,className:`hidden lg:block pt-1.5 ${o?"invisible":""}
67 ${u?"cursor-pointer":"cursor-default opacity-50"}`,"aria-label":"Scroll navigation right",children:s.jsx(H,{glyph:u?"arrow-right":"button-right-disabled",size:"xlarge",color:"var(--color-grey90)",ariaLabel:"Scroll right"})})]})})};function Vk(e){if(!V(e))return null;const t=e,n=O(t.name),r=O(t.id);return!n||!r?null:{name:n,id:r}}const Uk=({entry:e})=>{const{jsonBody:t}=e.fields,n=V(t)?t:{},o=(Array.isArray(n.sections)?n.sections:[]).map(i=>Vk(i)).filter(i=>i!==null);return o.length===0?null:s.jsx(Hk,{sections:o,entryId:e.sys.id})},fn=e=>{const t=e.toString(),[n,r]=t.split("."),o=n.replace(/\B(?=(\d{3})+(?!\d))/g,",");return r?`${o}.${r}`:o},Gk=Ue({tier_exchange_rate_numeric:bt(),tier_maximum_amount_pounds_numeric:bt(),tier_minimum_amount_pounds_numeric:bt(),tier_name:Ye()}),Wk=Ue({currency_iso_code:Ye(),currency_name:Ye(),standard_rate_tiers:Gn(Gk)}),qk=Ue({delivery_charge_pounds_numeric:bt(),maximum_amount_pounds_numeric:bt(),minimum_amount_pounds_numeric:bt()}),Yk=Ue({display_name:Ye(),standard_rates:Gn(Wk),minimum_online_order_pounds_numeric:bt(),maximum_online_order_pounds_numeric:bt(),minimum_online_order_for_delivery_pounds_numeric:bt().nullable(),order_online_for_in_store_collection:Ys(),order_online_for_home_delivery:Ys(),delivery_charges:Gn(qk).optional(),provider:Ue({logo:Ue({money:Ye()})})});Ue({_source:Ue({definition:Yk})});const Kk=(e,t,n)=>({rate:e.lowestRate.tier_exchange_rate_numeric,collection:e.definition.order_online_for_in_store_collection,delivery:e.definition.order_online_for_home_delivery,deliveryRate:0,logo:e.definition.provider.logo.money,name:e.definition.display_name,amountReceived:t==="GBP"?0:-99999999,error:n,maxOrder:e.highestRate.tier_maximum_amount_pounds_numeric}),Zk=(e,t)=>{const{collection:n}=e,{definition:r,lowestRate:o,highestRate:i,pounds:a}=t;if(a<o.tier_minimum_amount_pounds_numeric)return{title:`The minimum order amount is £${fn(r.minimum_online_order_pounds_numeric)}`,subtitle:"Please enter a higher amount."};if(a>i.tier_maximum_amount_pounds_numeric)return{title:`You've exceeded the maximum order amount of £${fn(r.maximum_online_order_pounds_numeric)}`,subtitle:"Please enter a lower amount."};if(n==="collection"&&!r.order_online_for_in_store_collection)return{title:"Unfortunately, collection is not available for this order",subtitle:"Please amend your order."};if(n==="delivery"&&!r.order_online_for_home_delivery)return{title:"Unfortunately, delivery is not available for this order",subtitle:"Please amend your order."};if(n==="delivery"&&r.minimum_online_order_for_delivery_pounds_numeric!=null&&a<r.minimum_online_order_for_delivery_pounds_numeric)return{title:"Are you sure?",subtitle:"The amount you'll receive is less than the delivery fee for this order. Enter a higher amount, or choose collection instead."}},Xk=(e,t)=>{const{otherAmount:n,currency:r,otherCurrency:o,collection:i}=e,a=t._source.definition,l=a.standard_rates.find(p=>p.currency_iso_code===o);if(!l||l.standard_rate_tiers.length===0)return null;const c=l.standard_rate_tiers[0],d=l.standard_rate_tiers[l.standard_rate_tiers.length-1],u=r==="GBP"?e.gbpAmount:n/c.tier_exchange_rate_numeric,f={definition:a,lowestRate:c,highestRate:d,pounds:u},m=Zk(e,f);return m?Kk(f,r,m):l.standard_rate_tiers.filter(p=>u<=p.tier_maximum_amount_pounds_numeric&&u>=p.tier_minimum_amount_pounds_numeric).reduce((p,b)=>{const g=b.tier_exchange_rate_numeric;if(p&&g<=p.rate)return p;const y=i==="delivery"?a.delivery_charges?.find(k=>u<=k.maximum_amount_pounds_numeric&&u>=k.minimum_amount_pounds_numeric)?.delivery_charge_pounds_numeric??0:0,w=r==="GBP"?(u-y)*g:0-(n/g-y);return{rate:g,collection:a.order_online_for_in_store_collection,delivery:a.order_online_for_home_delivery,deliveryRate:y,logo:a.provider.logo.money,name:a.display_name,amountReceived:w,maxOrder:d.tier_maximum_amount_pounds_numeric}},null)},Qk=(e,t)=>{const{collection:n}=e,r=t.map(i=>Xk(e,i)).filter(i=>i!=null).filter(i=>n==="collection"&&i.collection||n==="delivery"&&i.delivery);return r.length>0&&r.every(i=>i.error)?[...r].sort((i,a)=>a.maxOrder-i.maxOrder)[0]:[...r].sort((i,a)=>a.amountReceived-i.amountReceived)[0]}
67,Jk=[{code:"GBP",symbol:"£"},{code:"EUR",symbol:"€"},{code:"USD",symbol:"$"},{code:"TRY",symbol:"₺"},{code:"AUD",symbol:"A$"},{code:"BDT",symbol:"৳"},{code:"BBD",symbol:"Bds$"},{code:"BRL",symbol:"R$"},{code:"BGN",symbol:"Лв"},{code:"CAD",symbol:"CAD"},{code:"CNY",symbol:"¥"},{code:"CRC",symbol:"₡"},{code:"CZK",symbol:"Kč"},{code:"DKK",symbol:"Kr."},{code:"XCD",symbol:"$"},{code:"EGP",symbol:"E£"},{code:"HKD",symbol:"hk$"},{code:"ISK",symbol:"ikr"},{code:"JPY",symbol:"¥"},{code:"MYR",symbol:"RM"},{code:"MUR",symbol:"rs"},{code:"MXN",symbol:"mex$"},{code:"NZD",symbol:"nz$"},{code:"NOK",symbol:"kr"},{code:"PLN",symbol:"zł"},{code:"ZAR",symbol:"R"},{code:"SEK",symbol:"kr"},{code:"CHF",symbol:"Fr."},{code:"TWD",symbol:"nt$"},{code:"THB",symbol:"฿"},{code:"AED",symbol:"د.إ"}],wl=[{value:"GBP",text:"GBP"}],jl=[{text:"Euros (EUR)",value:"EUR"},{text:"Dollars (USD)",value:"USD"},{text:"Turkish Lira (TRY)",value:"TRY"},{text:"Australian Dollar (AUD)",value:"AUD"},{text:"Bangladeshi Taka (BDT)",value:"BDT"},{text:"Barbadian Dollars (BBD)",value:"BBD"},{text:"Brazillian Real (BRL)",value:"BRL"},{text:"Bulgarian Lev (BGN)",value:"BGN"},{text:"Canadian Dollars (CAD)",value:"CAD"},{text:"Chinese Yuan (CNY)",value:"CNY"},{text:"Costa Rican Colon (CRC)",value:"CRC"},{text:"Czech Koruna (CZK)",value:"CZK"},{text:"Danish Krone (DKK)",value:"DKK"},{text:"Eastern Caribbean dollar (XCD)",value:"XCD"},{text:"Egyptian Pound (EGP)",value:"EGP"},{text:"Hong Kong Dollar (HKD)",value:"HKD"},{text:"Icelandic Krona (ISK)",value:"ISK"},{text:"Japanese Yen (JPY)",value:"JPY"},{text:"Malaysian Ringgit (MYR)",value:"MYR"},{text:"Mauritian Rupee (MUR)",value:"MUR"},{text:"Mexican Peso (MXN)",value:"MXN"},{text:"New Zealand Dollar (NZD)",value:"NZD"},{text:"Norwegian Krone (NOK)",value:"NOK"},{text:"Polish Złoty (PLN)",value:"PLN"},{text:"South African Rand (ZAR)",value:"ZAR"},{text:"Swedish Krona (SEK)",value:"SEK"},{text:"Swiss Franc (CHF)",value:"CHF"},{text:"Taiwan Dollar (TWD)",value:"TWD"},{text:"Thai Baht (THB)",value:"THB"},{text:"UAE Dirham (AED)",value:"AED"}],e2={"money-travel-card":{text:"A convenient prepaid way for spending abroad that's safer and easier to track.",buttonText:"Show travel money cards",href:"/travel-money/travel-prepaid-cards/results"},"travel-insurance":{text:"Get cover to protect yourself from the cost of potential problems when travelling.",buttonText:"Get a travel insurance quote",href:"/travel-insurance"},"prepaid-card":{text:"A prepaid card thats useful for travelling but can be used at home too",buttonText:"Show prepaid cards",href:"/travel-money/prepaid-cards/results"}},t2=[{name:"cash",label:"Cash"},{name:"money-travel-card",label:"Travel money card"},{name:"travel-insurance",label:"Travel Insurance"},{name:"prepaid-card",label:"Prepaid card"}],n2=[{name:"delivery",label:"Delivery"},{name:"location",label:"Collection"}],Nu="travelMoneyCalculator",r2=150,s2=({text:e,buttonText:t,href:n,componentId:r})=>s.jsxs("div",{className:"md:pt-4",children:[s.jsx("div",{className:"heading-sm mb-6 text-primary text-center md:mb-10",children:e}),s.jsx("div",{className:"mx-auto max-w-[348px] [&_a]:w-full",children:s.jsx(Me,{href:n,variant:"primary",size:"large",id:r,componentName:Nu,children:t})})]}),Nl=({glyph:e,label:t})=>s.jsxs("div",{className:"flex items-center gap-5 md:flex-col md:gap-0",children:[s.jsx(H,{glyph:e,size:"large",color:"var(--color-primary)",ariaLabel:""}),s.jsx("div",{className:"flex flex-col items-start md:items-center",children:s.jsx("span",{className:"text-base font-normal leading-normal text-center",children:t})})]}),o2=({bestRate:e,from:t,to:n,amount:r,swapped:o})=>{const i=o?(1/e.rate).toFixed(3):String(e.rate),a=o?String(e.rate):(1/e.rate).toFixed(3),l=t==="GBP"?e.amountReceived.toFixed(2):(0-e.amountReceived).toFixed(2);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-6 md:flex-row",children:[s.jsx("div",{className:"text-base",children:"Best Rate from"}),s.jsx("div",{className:"min-h-[30px] rounded-[7px] bg-white p-4",children:s.jsx(Re,{src:e.logo,width:r2,alt:`${e.name} logo`})}),s.jsxs("div",{className:"text-base text-center",children:[s.jsxs("div",{children:["1 ",t," = ",i," ",n]}),s.jsxs("div",{children:["1 ",n," = ",a," ",t]})]})]}),s.jsxs("div",{className:"mt-4 flex items-center justify-center text-base",children:["Amount received"," (after accounting for delivery fees)"]}),s.jsxs("div",{className:"mt-3 flex flex-col items-center justify-center gap-2 md:mt-4 md:flex-row md:gap-[10px]",children:[s.jsxs("span",{className:"heading-sm text-primary",children:[fn(r)," ",t," ="]}),s.jsxs("span",{className:"heading-sm",children:[fn(l)," ",n]})]})]})},i2=({id:e,currency:t="EUR",travelMoneyData:n,tracking:r})=>{const o=`travel-money-calculator-${e}`,i=`travel-money-collection-${e}
67`,[a,l]=x.useState("cash"),[c,d]=x.useState(750),[u,f]=x.useState(fn(750)),[m,h]=x.useState("GBP"),[p,b]=x.useState(t),[g,y]=x.useState("delivery"),[w,k]=x.useState(!1),A=Jk.find(M=>M.code===m)?.symbol??"",v=w?m:p,j=x.useMemo(()=>Qk({gbpAmount:c,otherAmount:c,currency:m,otherCurrency:v,collection:g},n),[c,m,v,g,n]),E=w?jl:wl,N=w?wl:jl,S=`/travel-money/results?gbpAmount=${c}&currencyToUse=${m}&currencyPair=${w?m:p}&otherAmount=${c}&collectionType=${g}`,D=M=>{const P=M.target.value.replace(/[^0-9]/g,"").replace(/^0+/,""),T=P===""?0:Number.parseInt(P,10);d(Number.isNaN(T)?0:T),f(P===""?"":fn(T))},L=()=>{k(M=>!M),h(p),b(m)},F=a==="cash"?void 0:e2[a];return s.jsx("div",{className:"my-3 md:my-6",children:s.jsxs("div",{className:"rounded-lg bg-white p-6 shadow-lg md:px-8",children:[s.jsx("h2",{className:"heading-md leading-[120%] flex items-center justify-center",children:"Currency Calculator"}),s.jsxs("div",{className:"my-6 flex flex-col",children:[s.jsx("label",{className:"body-lg-bold mb-2 w-full font-heading text-primary",children:"How would you like your currency?"}),s.jsx("div",{className:"flex flex-col gap-2 md:flex-row md:gap-4",role:"radiogroup","aria-label":"How would you like your currency?",children:t2.map(M=>s.jsxs("label",{className:"flex flex-1 items-start gap-3 cursor-pointer rounded-lg border p-4 has-[input:checked]:border-accent border-grey20 md:flex-col md:items-center md:text-center",children:[s.jsx("input",{type:"radio",name:o,checked:a===M.name,onChange:()=>{l(M.name)},className:"mt-1 md:mt-0 accent-accent","aria-label":M.label}),s.jsx(Nl,{glyph:M.name==="money-travel-card"?"card-fees":M.name,label:M.label})]},M.name))})]}),F?s.jsx(s2,{text:F.text,buttonText:F.buttonText,href:F.href,componentId:e}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-end",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{htmlFor:`${e}-amount`,className:"body-base-bold mb-2 block font-heading text-primary",children:"Amount"}),s.jsxs("div",{className:"relative",children:[s.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-grey90",children:A}),s.jsx("input",{id:`${e}-amount`,name:"amount",type:"text",inputMode:"numeric",value:u,onChange:D,className:"w-full rounded-lg border border-grey20 py-3 pl-8 pr-3"})]})]}),s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{htmlFor:`${e}-from`,className:"body-base-bold mb-2 block font-heading text-primary",children:"From"}),s.jsx("select",{id:`${e}-from`,name:"from-currency",value:m,onChange:M=>{h(M.target.value)},className:"w-full rounded-lg border border-grey20 py-3 px-3 focus:outline-none focus-visible:shadow-select-focus",children:E.map(M=>s.jsx("option",{value:M.value,children:M.text},M.value))})]}),s.jsx("div",{className:"flex items-center justify-center md:pb-2",children:s.jsx("button",{type:"button","aria-label":"Swap currencies",onClick:L,className:"border-0 bg-transparent rotate-90 md:rotate-0 md:mt-4",children:s.jsx(H,{glyph:"swap-circle",size:"large",color:"var(--color-primary)",ariaLabel:""})})}),s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{htmlFor:`${e}-to`,className:"body-base-bold mb-2 block font-heading text-primary",children:"To"}),s.jsx("select",{id:`${e}-to`,name:"to-currency",value:p,onChange:M=>{b(M.target.value)},className:"w-full rounded-lg border border-grey20 py-3 px-3 focus:outline-none focus-visible:shadow-select-focus",children:N.map(M=>s.jsx("option",{value:M.value,children:M.text},M.value))})]})]}),s.jsxs("div",{className:"my-6 flex flex-col",children:[s.jsx("label",{className:"body-lg-bold mb-2 w-full font-heading text-primary",children:"Delivery or Collection?"}),s.jsx("div",{className:"md:mx-[250px]",children:s.jsx("div",{className:"flex flex-col gap-2 md:flex-row md:gap-4",role:"radiogroup","aria-label":"Delivery or Collection?",children:n2.map(M=>{const P=M.name==="delivery"?"delivery":"collection";return s.jsxs("label",{className:"flex flex-1 items-start gap-3 cursor-pointer rounded-lg border p-4 has-[input:checked]:border-accent border-grey20 md:flex-col md:items-center md:text-center",children:[s.jsx("input",{type:"radio",name:i,checked:g===P,onChange:()=>{y(P)},className:"mt-1 md:mt-0 accent-accent","aria-label":M.label}),s.jsx(Nl,{glyph:M.name,label:M.label})]},M.name)})})})]}),s.jsx("div",{className:"mt-2 min-h-[200px] rounded-lg bg-grey5 p-4",children:j?j.error?s.jsxs("div",{className:"flex min-h-[180px] flex-col items-center justify-center gap-2 text-center",children:[s.jsx("div",{className:"heading-sm text-primary",children:j.error.title}),s.jsx("div",{className:"text-base",children:j.error.subtitle})]}):s.jsx(o2,{bestRate:j,from:m,to:p,amount:c,swapped:w}):s.jsx("div",{className:"flex min-h-[180px] items-center justify-center text-base text-center",children:"There are no results matching your search, please try again."})}),s.jsx("div",{className:"mx-auto mt-6 md:mt-9 md:max-w-[348px] md:flex md:justify-center [&_a]:w-full",children:s.jsx(Me,{href:S,variant:"primary",size:"large",id:r.componentId,componentName:Nu,children:"Show Results"})})]})]})})},a2=({entry:e})=>
67{const{jsonBody:t,name:n,variant:r}=e.fields,o=V(t)?t:{},i=km(e.sys.id)??[];return s.jsx(i2,{id:e.sys.id,currency:Oe(o.currency),travelMoneyData:i,tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r}})},kl="triage-module",l2="rounded-xl md:rounded-3xl border border-accent bg-white shadow-lg",c2="m-0 ml-[18px] body-base-bold text-primary",El="m-0 flex flex-col items-center text-center heading-md text-primary",_l="text-center body-base text-primary",d2="inline-flex items-center justify-center min-h-[48px] px-5 py-3 rounded-cta font-medium text-base no-underline min-w-30 bg-cta text-grey90 border border-cta hover:bg-cta-hover hover:border-cta-hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-focus-ring",u2=({question:e,message:t,tracking:n})=>{const[r,o]=x.useState([{question:e}]),[i,a]=x.useState(void 0),l=(d,u)=>{ze("Click Event",Ke({eventName:Bt("clicked"),href:void 0,text:u.text,componentId:n.componentId,componentName:kl}));const f=r.slice(0,d+1);f[d]={...f[d],selectedAnswerText:u.text},u.action?(o(f),a(u.action)):u.nextQuestion?(o([...f,{question:u.nextQuestion}]),a(void 0)):(o(f),a(void 0))},c=d=>{ze("Click Event",Ke({eventName:Bt("clicked"),href:d.href,text:d.text,componentId:n.componentId,componentName:kl}))};return s.jsx("div",{className:"mx-auto max-w-[936px]",children:s.jsx("div",{className:`${l2} p-6`,children:s.jsxs("section",{"data-name":n.contentfulName,"data-triage":"triage","data-triage-component-id":n.componentId,"data-triage-contentful-name":n.contentfulName,className:"flex flex-col items-center gap-10",children:[t&&s.jsxs("div",{className:"flex items-center",children:[s.jsx(H,{glyph:"stop-watch",color:"var(--color-primary)",size:"default",ariaLabel:""}),s.jsx("h2",{className:c2,children:t})]}),r.map((d,u)=>{const f=u===r.length-1&&!i,m=d.question.answers??[];return s.jsxs("section",{"data-triage":"question",...d.question.id!==void 0&&{"data-triage-id-value":d.question.id},className:"flex w-full min-w-[295px] max-w-[372px] flex-col gap-3 md:max-w-none md:min-w-0",children:[s.jsx("h3",{className:El,children:d.question.question}),d.question.description&&s.jsx("div",{className:_l,children:d.question.description}),m.length>0&&s.jsx("ul",{className:"m-0 flex list-none flex-col justify-center gap-4 p-0 md:flex-row",children:m.map((h,p)=>{const b=d.selectedAnswerText===h.text;return s.jsx("li",{className:"flex justify-center","data-action":"answer",children:s.jsx(Kt,{type:"button",variant:b?"secondary":"tertiary",disabled:!f,onClick:()=>{l(u,h)},children:h.text})},`${h.text}-${p}`)})})]},`${d.question.id??"q"}-${u}`)}),i&&s.jsxs("section",{className:"flex flex-col items-center gap-3",children:[s.jsx("h3",{className:El,children:i.text}),i.description&&s.jsx("div",{className:_l,children:i.description}),i.links&&i.links.length>0&&s.jsx("div",{className:"m-auto my-3 flex w-full flex-col items-center gap-4",children:i.links.map((d,u)=>s.jsx("a",{href:d.href,target:"_blank",rel:"noopener noreferrer",onClick:()=>{c(d)},className:d2,children:d.text},`${d.href}-${u}`))})]})]})})})},f2=e=>{if(!V(e))return;const t=Oe(e.text);if(t===void 0)return;const n=Array.isArray(e.links)?e.links.map(r=>{if(!V(r))return;const o=Oe(r.text),i=Oe(r.href);if(!(o===void 0||i===void 0))return{text:o,href:i}}).filter(r=>r!==void 0):void 0;return{text:t,description:Oe(e.description),links:n}},ku=e=>{if(!V(e))return;const t=Oe(e.question);if(t===void 0)return;const n=typeof e.id=="number"?e.id:void 0,r=Array.isArray(e.answers)?e.answers.map(o=>{if(!V(o))return;const i=Oe(o.text);if(i!==void 0)return{text:i,nextQuestion:ku(o.nextQuestion),action:f2(o.action)}}).filter(o=>o!==void 0):void 0;return{id:n,question:t,description:Oe(e.description),answers:r}},m2=({entry:e})=>{const{jsonBody:t,name:n,variant:r}=e.fields,o=V(t)?t:{},i=ku(o.question);return i?s.jsx(u2,{question:i,message:Oe(o.message),tracking:{componentId:e.sys.id,contentfulName:n,contentfulVariant:r}}):null},Cl=500,p2=e=>e.length<=Cl?e:`${e.slice(0,Cl)}...`,h2=te({base:"rounded-lg md:rounded-xl py-6 pl-6 md:py-8 md:pl-12 my-3 md:my-6 overflow-hidden",variants:{brand:{money:"bg-surface-inverse",uswitch:"bg-white border border-grey20"}}}),x2=te({base:"heading-md mt-0 mb-3",variants:{brand:{money:"text-white",uswitch:"text-accent"}}}),g2=te({base:"text-lg font-semibold leading-tight mt-2",variants:{brand:{money:"text-white",uswitch:"text-primary"}}}),b2=te({base:"text-sm leading-tight mt-1",variants:{brand:{money:"text-white",uswitch:"text-grey80"}}}),y2=({id:e,brand:t="money",link:n,trustScore:r,totalReviews:o,companyStars:i,reviews:a})=>{if(a.length===0)return null;
67const l=t==="money"?"#ffffff":"#000000",c=`${ss}#trust-pilot-logo-white`;return s.jsxs("div",{id:e,className:h2({brand:t}),children:[s.jsxs("div",{className:"pr-6 md:pr-12",children:[s.jsx("h2",{className:x2({brand:t}),children:"Customer Reviews"}),s.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2","aria-label":"View Trustpilot reviews",children:[s.jsx("svg",{style:{width:"100px",height:"24px"},fill:l,stroke:l,color:l,"aria-label":"Trustpilot",children:s.jsx("use",{href:c})}),s.jsx("img",{src:`https://images-static.trustpilot.com/api/stars/${i}/128x24.png`,alt:"Trustpilot stars",className:"h-6"})]}),s.jsxs("div",{className:g2({brand:t}),children:["Rated ",r," out of 5"]}),s.jsxs("div",{className:b2({brand:t}),children:["by ",o," people"]})]}),s.jsx("section",{className:"mt-6 -ml-6 md:-ml-12",children:s.jsxs(ps,{opts:{align:"start",slidesToScroll:1},className:"relative",children:[s.jsx(fi,{className:"md:absolute md:left-2 md:top-1/2 md:-translate-y-1/2 md:z-10 md:p-0","aria-label":"Previous review",children:s.jsx(H,{glyph:"arrow-left-trust",size:"xlarge",color:l,ariaLabel:"Previous"})}),s.jsx(mi,{className:"md:absolute md:right-2 md:top-1/2 md:-translate-y-1/2 md:z-10 md:p-0","aria-label":"Next review",children:s.jsx(H,{glyph:"arrow-right-trust",size:"xlarge",color:l,ariaLabel:"Next"})}),s.jsx(hs,{className:"ml-0",children:a.map((d,u)=>s.jsx(xs,{className:"basis-[80%] md:basis-1/2 pl-0 first:ml-4 md:first:ml-12 ml-2 md:ml-4 last:mr-4 md:last:mr-12",children:s.jsxs("div",{className:"bg-white border border-grey10 rounded-lg md:rounded-xl shadow-lg p-6 md:p-8 h-full flex flex-col",children:[s.jsx("blockquote",{className:"heading-sm text-primary m-0",children:d.title}),s.jsx("div",{className:"mt-3",children:s.jsx("img",{src:`https://images-static.trustpilot.com/api/stars/${d.stars}/128x24.png`,alt:"Trustpilot stars",className:"h-6"})}),s.jsx("div",{className:"mt-3 text-sm md:text-base font-normal text-grey100 leading-snug",children:p2(d.text)}),s.jsxs("div",{className:"mt-3 text-sm md:text-base font-semibold text-grey100 leading-snug",children:[s.jsx("div",{children:d.customer.name}),d.customer.location&&s.jsx("div",{children:d.customer.location})]})]})},u))}),s.jsx(gs,{variant:t==="money"?"inverted":"default"})]})})]})},v2=e=>e==="uswitch"?"uswitch":"money",w2=e=>{if(typeof e=="string")return e;if(typeof e=="number")return String(e)},j2=e=>{if(!V(e))return null;const t=O(e.title),n=O(e.text),r=w2(e.stars),o=V(e.customer)?e.customer:null,i=o?O(o.name):void 0;if(!t||!n||!r||!i)return null;const a=o?O(o.location)??null:null;return{title:t,text:n,stars:r,customer:{name:i,location:a}}},N2=({entry:e})=>{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},{rootEntry:o}=J(),i=O(r.brand),a=typeof e.fields.brand=="string"?e.fields.brand:"money",l=i??a,c=v2(o?.fields.brand),d=fc()?.[l];if(!d)return null;const u=d.reviews.map(f=>j2(f)).filter(f=>f!==null);return u.length===0?null:s.jsx(y2,{id:n,brand:c,link:d.link,trustScore:d.companyScore.score.trustScore,totalReviews:d.companyScore.totalReviews,companyStars:d.companyScore.score.stars,reviews:u})},Oe=e=>typeof e=="string"?e:void 0,k2=e=>typeof e=="boolean"?e:void 0,po="lite-youtube",E2=async()=>{if(!(typeof window>"u")&&!window.customElements.get(po))try{await lt(()=>Promise.resolve({}),__vite__mapDeps([12])),await lt(()=>import("./lite-yt-embed-DRTAn-6M.js"),[])}catch(e){console.error("ERROR_LOADING_LITE_YOUTUBE",e)}},_2=({videoId:e,title:t,showHeader:n=!0,id:r})=>{const o=x.useRef(null);return x.useEffect(()=>{E2();const i=o.current;if(!i)return;const a=i.querySelector(po);a&&a.remove();const l=document.createElement(po);l.setAttribute("videoid",e),l.setAttribute("params","loop=1&mute=1&modestbranding=1&rel=0"),l.className="max-w-none rounded-xl",i.appendChild(l)},[e]),s.jsxs("div",{id:r,children:[n&&t&&s.jsx("h2",{className:"heading-md",children:t}),s.jsx("div",{ref:o,className:"my-6",suppressHydrationWarning:!0})]})},C2=({entry:e})=>{const{jsonBody:t,name:n}=e.fields,r=V(t)?t:{},o=Oe(r.videoId),i=Oe(r.title),a=k2(r.showHeader);return o?s.jsx(_2,{videoId:o,title:i,showHeader:a,id:n}):null},T2={"about-the-author":e=>s.jsx(Fw,{entry:e}),"author-editor-card-module":e=>s.jsx(Hw,{entry:e}),"author-snippet-with-title":e=>s.jsx(Uw,{entry:e}),"call-out-card":e=>s.jsx(cj,{entry:e}),"card-carousel":e=>s.jsx(pN,{entry:e}),"credit-card-finder-module":e=>s.jsx($N,{entry:e}),"credit-card-finder-module-low-prominence":e=>s.jsx(jN,{entry:e}),"featured-in":e=>s.jsx(zN,{entry:e}),"foot-notes-module":e=>s.jsx(qN,{entry:e}),"guides-module":e=>s.jsx(ZN,{entry:e}),"header-module":e=>s.jsx(tk,{entry:e}),"image-carousel":e=>s.jsx(ik,{entry:e}),"image-viewer":e=>s.jsx(lk,{entry:e}),"link-collection-module":e=>s.jsx(pk,{entry:e}),"loan-repayment-calculator":e=>s.jsx(bk,{entry:e}),"ppc-nav":e=>s.jsx(Ck,{entry:e}),"product-navigation":e=>s.jsx(Ik,{entry:e}),"pros-and-cons-module":e=>s.jsx(Fk,{entry:e}
67),"quote-snippet":e=>s.jsx(zk,{entry:e}),"stat-snippet":e=>s.jsx(Dc,{entry:e}),"sticky-nav":e=>s.jsx(Uk,{entry:e}),"travel-money-calculator":e=>s.jsx(a2,{entry:e}),"triage-module":e=>s.jsx(m2,{entry:e}),trustpilot:e=>s.jsx(N2,{entry:e}),"youtube-lite":e=>s.jsx(C2,{entry:e})},S2=({entry:e})=>zo(e)?T2[e.fields.variant]?.(e)??null:null,A2=ee("productListingTable"),R2=()=>s.jsx("div",{className:"relative mt-12",children:s.jsxs("div",{className:"flex flex-col rounded-2xl bg-white shadow-lg gap-0 p-6",children:[s.jsxs("div",{className:"mb-6 mt-3 lg:ml-[162px]",children:[s.jsx("div",{className:"skeleton h-8 w-48"}),s.jsx("div",{className:"skeleton h-5 w-32 mt-2"})]}),s.jsx("div",{className:"flex flex-col items-start gap-3 lg:-mx-6 lg:flex-row",children:s.jsxs("div",{className:"flex w-full flex-col gap-3 lg:w-auto lg:flex-row lg:flex-none",children:[s.jsx("div",{className:"flex flex-col items-start justify-center gap-2 lg:w-[174px] lg:flex-none lg:pl-6",children:s.jsx("div",{className:"skeleton h-16 w-24 rounded-lg"})}),s.jsx("div",{className:"flex w-full flex-1 flex-col",children:s.jsx("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-y-2 gap-x-0 py-2 bg-[#fdf6ed] [border-bottom:18px_solid_#f8dbb9]",children:Array.from({length:4}).map((e,t)=>s.jsxs("div",{className:"flex flex-col gap-1 px-[10px] py-1",children:[s.jsx("div",{className:"skeleton h-7 w-28"}),s.jsx("div",{className:"skeleton h-7 w-20"})]},t))})})]})}),s.jsx("div",{className:"my-6 flex justify-center lg:justify-end",children:s.jsx("div",{className:"skeleton h-12 w-36 rounded-full"})})]})}),P2=3,I2=({rows:e=P2})=>s.jsxs("div",{className:"my-6 flex flex-col gap-0",children:[s.jsx("div",{className:"skeleton h-9 w-56 mb-4"}),Array.from({length:e}).map((t,n)=>s.jsx(R2,{},n))]}),L2=x.lazy(async()=>await lt(()=>import("./index-WS5XD0Y1.js"),__vite__mapDeps([13,1,14,2,3,4,5,6]))),D2=e=>s.jsx(x.Suspense,{fallback:s.jsx(I2,{}),children:s.jsx(L2,{...e})}),O2=e=>typeof e=="string"&&["superscript","product-dataset","card-payment-solutions","sme-business-finance-exclusives","sme-business-finance-others","sme-business-finance"].includes(e),M2=(e,t)=>{if(e==="sme-business-finance"){const n=t?.results;if(!n)return[];const r=n.exclusives.map(i=>({product:i,dataSource:"sme-business-finance-exclusives"})),o=n.others.map(i=>({product:i,dataSource:"sme-business-finance-others"}));return[...r,...o]}if(e==="sme-business-finance-others"||e==="sme-business-finance-exclusives"){const n=t?.results;if(!n)return[];const r=e==="sme-business-finance-exclusives"?"exclusives":"others";return n[r].length>0?n[r]:n.exclusives}return t?.products??[]},$2=({entry:e})=>{const{linkedEntries:t,productListingData:n}=J();if(!A2(e))return null;const{schema:r,dataSource:o}=e.fields,i=e.sys.id,a=n?.[i],l=O2(o)?o:void 0,c=ke(r,t,"productTableSchema");if(!l||l!=="superscript"&&l!=="card-payment-solutions"&&!c)return null;const d=M2(l,a);return l==="superscript"&&d.length===0?(typeof window<"u"&&(window.location.href="/business/superscript/no-results"),null):s.jsx(D2,{dataSource:l,productSchema:c?.schema,products:d,entryId:i})},F2=ee("productTable"),Tt={},le={};var B2=/[|\\{}()[\]^$+*?.]/g,z2=Object.prototype.hasOwnProperty,vs=function(e,t){return z2.apply(e,[t])};le.hasOwn=vs;le.escapeRegExpChars=function(e){return e?String(e).replace(B2,"\\$&"):""};var H2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},V2=/[&<>'"]/g;function U2(e){return H2[e]||e}var G2=`var _ENCODE_HTML_RULES = {
68      "&": "&amp;"
69    , "<": "&lt;"
70    , ">": "&gt;"
71    , '"': "&#34;"
72    , "'": "&#39;"
73    }
74  , _MATCH_HTML = /[&<>'"]/g;
75function encode_char(c) {
76  return _ENCODE_HTML_RULES[c] || c;
77};
78`;le.escapeXML=function(e){return e==null?"":String(e).replace(V2,U2)};function Tl(){return Function.prototype.toString.call(this)+`;
79`+G2}try{typeof Object.defineProperty=="function"?Object.defineProperty(le.escapeXML,"toString",{value:Tl}):le.escapeXML.toString=Tl}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}le.shallowCopy=function(e,t){if(t=t||{}
79,e!=null)for(var n in t)vs(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};le.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var r=0;r<n.length;r++){var o=n[r];if(typeof t[o]<"u"){if(!vs(t,o)||o==="__proto__"||o==="constructor")continue;e[o]=t[o]}}return e};le.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}};le.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};le.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})();le.hasOwnOnlyObject=function(e){var t=le.createNullProtoObjWherePossible();for(var n in e)vs(e,n)&&(t[n]=e[n]);return t};typeof exports<"u"&&(module.exports=le);const _r="let",pe={};let W2="<",q2=">",Y2="%",Eu="locals",K2="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",_u=["delimiter","scope","context","debug","compileDebug","_with","rmWhitespace","strict","filename","async"],Z2=_u.concat("cache"),Sl=/^\uFEFF/,Bs=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;pe.cache=le.cache;pe.fileLoader=Tt.readFileSync;pe.localsName=Eu;pe.promiseImpl=new Function("return this;")().Promise;pe.resolveInclude=function(e,t,n){let r=Tt.dirname,o=Tt.extname,i=Tt.resolve,a=i(n?t:r(t),e);return o(e)||(a+=".ejs"),a};function Al(e,t){let n;if(t.some(function(r){return n=pe.resolveInclude(e,r,!0),Tt.existsSync(n)}))return n}function X2(e,t){let n,r,o=t.views,i=/^[A-Za-z]+:\\|^\//.exec(e);if(i&&i.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=Al(e,t.root):n=pe.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(r=pe.resolveInclude(e,t.filename),Tt.existsSync(r)&&(n=r)),!n&&Array.isArray(o)&&(n=Al(e,o)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}function Jn(e,t){let n,r=e.filename,o=arguments.length>1;
79if(e.cache){if(!r)throw new Error("cache option requires a filename");if(n=pe.cache.get(r),n)return n;o||(t=Rl(r).toString().replace(Sl,""))}else if(!o){if(!r)throw new Error("Internal EJS error: no file name or template provided");t=Rl(r).toString().replace(Sl,"")}return n=pe.compile(t,e),e.cache&&pe.cache.set(r,n),n}function Q2(e,t,n){let r;if(n){try{r=Jn(e)(t)}catch(o){return n(o)}n(null,r)}else{if(typeof pe.promiseImpl=="function")return new pe.promiseImpl(function(o,i){try{r=Jn(e)(t),o(r)}catch(a){i(a)}});throw new Error("Please provide a callback function")}}function Rl(e){return pe.fileLoader(e)}function J2(e,t){let n=le.shallowCopy(le.createNullProtoObjWherePossible(),t);if(n.filename=X2(e,n),typeof t.includer=="function"){let r=t.includer(e,n.filename);if(r&&(r.filename&&(n.filename=r.filename),r.template))return Jn(n,r.template)}return Jn(n)}function eE(e,t,n,r,o){let i=t.split(`
80`),a=Math.max(r-3,0),l=Math.min(i.length,r+3),c=o(n),d=i.slice(a,l).map(function(u,f){let m=f+a+1;return(m==r?" >> ":"    ")+m+"| "+u}).join(`
81`);throw e.path=c,e.message=(c||"ejs")+":"+r+`
82`+d+`
83
84`+e.message,e}function Pl(e){return e.replace(/;(\s*$)/,"$1")}pe.compile=function(t,n){let r;return n&&n.scope&&(console.warn("`scope` option is deprecated and will be removed in future EJS"),n.context||(n.context=n.scope),delete n.scope),r=new Ie(t,n),r.compile()};pe.render=function(e,t,n){let r=t||le.createNullProtoObjWherePossible(),o=n||le.createNullProtoObjWherePossible();return arguments.length==2&&le.shallowCopyFromList(o,r,_u),Jn(o,e)(r)};pe.renderFile=function(){let e=Array.prototype.slice.call(arguments),t=e.shift(),n,r={filename:t},o,i;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(o=e.shift(),e.length?le.shallowCopy(r,e.pop()):(le.hasOwn(o,"settings")&&o.settings&&(o.settings.views&&(r.views=o.settings.views),o.settings["view cache"]&&(r.cache=!0),i=o.settings["view options"],i&&le.shallowCopy(r,i)),le.shallowCopyFromList(r,o,Z2)),r.filename=t):o=le.createNullProtoObjWherePossible(),Q2(r,o,n)};pe.Template=Ie;pe.clearCache=function(){pe.cache.reset()};function Ie(e,t){let n=le.hasOwnOnlyObject(t),r=le.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",r.escapeFunction=n.escape||n.escapeFunction||le.escapeXML,r.compileDebug=n.compileDebug!==!1,r.debug=!!n.debug,r.filename=n.filename,r.openDelimiter=n.openDelimiter||pe.openDelimiter||W2,r.closeDelimiter=n.closeDelimiter||pe.closeDelimiter||q2,r.delimiter=n.delimiter||pe.delimiter||Y2,r.strict=n.strict||!1,r.context=n.context,r.cache=n.cache||!1,r.rmWhitespace=n.rmWhitespace,r.root=n.root,r.includer=n.includer,r.outputFunctionName=n.outputFunctionName,r.localsName=n.localsName||pe.localsName||Eu,r.views=n.views,r.async=n.async,r.destructuredLocals=n.destructuredLocals,r.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,r.strict?r._with=!1:r._with=typeof n._with<"u"?n._with:!0,this.opts=r,this.regex=this.createRegex()}Ie.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Ie.prototype={createRegex:function(){let e=K2,t=le.escapeRegExpChars(this.opts.delimiter),n=le.escapeRegExpChars(this.opts.openDelimiter),r=le.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,r),new RegExp(e)},compile:function(){let e,t,n=this.opts,r="",o="",i=n.escapeFunction,a,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),r+=`  ${_r} __output = "";
85  function __append(s) { if (s !== undefined && s !== null) __output += s }
86`,n.outputFunctionName){if(!Bs.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");r+=`  ${_r} `+n.outputFunctionName+` = __append;
87`}if(n.localsName&&!Bs.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){let d=`  ${_r} __locals = (`+n.localsName+` || {}),
88`;for(let u=0;u<n.destructuredLocals.length;u++){let f=n.destructuredLocals[u];if(!Bs.test(f))throw new Error("destructuredLocals["+u+"] is not a valid JS identifier.");u>0&&(d+=`,
89  `),d+=f+" = __locals."+f}r+=d+`;
90`}n._with!==!1&&(r+="  with ("+n.localsName+` || {}) {
91`,o+=`  }
92`),o+=`  return __output;
93`,this.source=r+this.source+o}n.compileDebug?e=`${_r} __line = 1
94  , __lines = `+JSON.stringify(this.templateText)+`
95  , __filename = `+l+`;
96try {
97`+this.source+`} catch (e) {
98  rethrow(e, __lines, __filename, __line, escapeFn);
99}
100`:e=this.source,n.strict&&(e=`"use strict";
101`+e),n.debug&&console.log(e),n.compileDebug&&n.filename&&(e=e+`
102//# sourceURL=`+l+`
103`);try{if(n.async)try{a=new Function("return (async function(){}).constructor;")()}catch(d){throw d instanceof SyntaxError?new Error("This environment does not support async/await"):d}else a=Function;t=new a(n.localsName+", escapeFn, include, rethrow",e)}catch(d){throw d instanceof SyntaxError&&(n.filename&&(d.message+=" in "+n.filename),d.message+=` while compiling ejs
104
105`,d.message+=`If the above error is not helpful, you may want to try EJS-Lint:
106`,d.message+="https://github.com/RyanZim/EJS-Lint",n.async||(d.message+=`
107`,d.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),d}let c=function(u){let f=function(m,h){let p=le.shallowCopy(le.createNullProtoObjWherePossible(),u);
107return h&&(p=le.shallowCopy(p,h)),J2(m,n)(p)};return t.apply(n.context,[u||le.createNullProtoObjWherePossible(),i,f,eE])};if(n.filename&&typeof Object.defineProperty=="function"){let d=n.filename,u=Tt.basename(d,Tt.extname(d));try{Object.defineProperty(c,"name",{value:u,writable:!1,enumerable:!1,configurable:!0})}catch{}}return c},generateSource:function(){this.opts.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
108`).replace(/^\s+|\s+$/gm,""));let t=this,n=this.opts.delimiter,r=this.opts.openDelimiter,o=this.opts.closeDelimiter,i=le.escapeRegExpChars(r+n+"_"),a=le.escapeRegExpChars("_"+n+o),l=r+n+"_",c="_"+n+o;this.templateText=this.templateText.replace(new RegExp("[ \\t]*"+i,"gm"),l).replace(new RegExp(a+"[ \\t]*","gm"),c);let d=this.parseTemplateText();d&&d.length&&d.forEach(function(u,f){let m;if(u.indexOf(r+n)===0&&u.indexOf(r+n+n)!==0&&(m=d[f+2],!(m==n+o||m=="-"+n+o||m=="_"+n+o)))throw new Error('Could not find matching close tag for "'+u+'".');t.scanLine(u)})},parseTemplateText:function(){let e=this.templateText,t=this.regex,n=t.exec(e),r=[],o;for(;n;)o=n.index,o!==0&&(r.push(e.substring(0,o)),e=e.slice(o)),r.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&r.push(e),r},_addOutput:function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+='    ; __append("'+e+`")
109`},scanLine:function(e){let t=this,n=this.opts.delimiter,r=this.opts.openDelimiter,o=this.opts.closeDelimiter,i=0;switch(i=e.split(`
110`).length-1,e){case r+n:case r+n+"_":this.mode=Ie.modes.EVAL;break;case r+n+"=":this.mode=Ie.modes.ESCAPED;break;case r+n+"-":this.mode=Ie.modes.RAW;break;case r+n+"#":this.mode=Ie.modes.COMMENT;break;case r+n+n:this.mode=Ie.modes.LITERAL,this.source+='    ; __append("'+e.replace(r+n+n,r+n)+`")
111`;break;case n+n+o:this.mode=Ie.modes.LITERAL,this.source+='    ; __append("'+e.replace(n+n+o,n+o)+`")
112`;break;case n+o:case"-"+n+o:case"_"+n+o:this.mode==Ie.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=e.indexOf("-")===0||e.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case Ie.modes.EVAL:case Ie.modes.ESCAPED:case Ie.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
113`)&&(e+=`
114`)}switch(this.mode){case Ie.modes.EVAL:this.source+="    ; "+e+`
115`;break;case Ie.modes.ESCAPED:this.source+="    ; __append(escapeFn("+Pl(e)+`))
116`;break;case Ie.modes.RAW:this.source+="    ; __append("+Pl(e)+`)
117`;break;case Ie.modes.COMMENT:break;case Ie.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&i&&(this.currentLine+=i,this.source+="    ; __line = "+this.currentLine+`
118`)}};pe.escapeXML=le.escapeXML;pe.__express=pe.renderFile;typeof window<"u"&&(window.ejs=pe);typeof module<"u"&&(module.exports=pe);const Cu=(e,t)=>{if(!e)return"";try{return pe.render(e,t)}catch{return e}},Tu=(e,t)=>{if(!(!e||!t))return e.find(n=>n.fields.id?.id===t)},fe=(e,t)=>{const n=ne(e,t);if(typeof n=="string")return n;if(typeof n=="number")return String(n)},Cr=(e,t)=>e==null?"":typeof e=="string"?e:fe(e,t)??"",Su=(e,t,n)=>{const r=typeof e=="object"?e.slice:void 0,o=t.slice;if(r&&o&&typeof e=="object"){const i=Cr(e,n),a=Cr(t,n);return{label:i.split(" ").slice(...r).join(" "),value:a.split(" ").slice(...o).join(" ")}}return{label:Cr(e,n),value:Cr(t,n)}},tE=te({slots:{root:"flex flex-col gap-2 rounded-[var(--product-table-atf-card-radius)] bg-white p-3 shadow-md md:p-4",title:"text-xs font-bold uppercase text-accent-alt md:text-sm",name:"text-sm font-bold text-grey80 md:text-base md:leading-6",usp:"text-sm text-grey80 md:text-base md:leading-6"},variants:{horizontal:{true:{root:"md:flex-1"},false:{root:"md:flex-row"}},border:{true:{root:"border border-accent shadow-none"},false:{root:"border border-grey20"}},highlight:{true:{root:"border-surface-inverse bg-surface-inverse",title:"mb-2 w-fit rounded-lg border border-cta px-3 py-1 font-normal text-cta",name:"text-white",usp:"text-white"}}}}),nE=(e,t)=>Array.isArray(e.displayInfo)?e.displayInfo[t]??e.displayInfo[0]:e.displayInfo,zs=({data:e,name:t,schema:n,horizontal:r=!1,border:o=!1,datasetId:i,schemaId:a,tableId:l,rowCount:c})=>{const{app:d}=J(),u=r?"flex flex-col gap-2 md:flex-row md:items-stretch md:w-[85%] md:gap-5":"flex flex-col gap-2";return s.jsxs("div",{className:"my-3 text-left md:my-6","data-fs-core-product-table":!0,"data-dataset-id":i,"data-schema-id":a,"data-contentful-table-id":l,"data-contentful-name":t,children:[n.title&&s.jsx("h2",{className:"mb-3 heading-sm text-[length:var(--product-table-atf-title-size-mobile)] leading-[var(--product-table-atf-title-leading-mobile)] md:text-[length:var(--product-table-atf-title-size-desktop)] md:leading-[var(--product-table-atf-title-leading-desktop)]",children:n.title}),s.jsx("div",{className:u,children:e.slice(0,c).map((f,m)=>{const h=nE(n,m);
118if(!h)return s.jsx("div",{},m);const{product:p,header:b,highlight:g}=h,y=fe(p.ctaText,f),w=fe(p.ctaLink,f),k=b?.title;if(!w)return s.jsx("div",{},m);const A=Yt(w,{usci:null,page:d?.location.pathname}),v=tE({border:o,highlight:g,horizontal:r});return r?s.jsxs("div",{className:v.root(),children:[s.jsx("div",{className:"flex h-[45px] items-center",children:s.jsx("img",{src:fe(p.image,f)??"",alt:`${fe(p.name,f)??""} logo`,className:"max-h-[45px] max-w-[100px]"})}),s.jsxs("div",{className:"flex grow flex-col justify-center",children:[k&&s.jsx("div",{className:v.title(),children:ne(k,f)}),s.jsx("div",{className:v.name(),children:fe(p.name,f)??""}),p.usp&&s.jsx("div",{className:`${v.usp()} md:mb-4`,children:fe(p.usp,f)??""})]}),s.jsx(Me,{href:A,size:"small",variant:g?"tertiary":"primary",target:"_blank",rel:"noopener noreferrer",position:m,id:l,componentName:"productTable",className:"w-fit whitespace-nowrap md:mt-auto",children:y})]},m):s.jsxs("div",{className:v.root(),children:[s.jsxs("div",{className:"flex flex-row items-center justify-between gap-2 md:flex-col",children:[s.jsx("div",{className:"flex h-[45px] items-center",children:s.jsx("img",{src:fe(p.image,f)??"",alt:`${fe(p.name,f)??""} logo`,className:"max-h-[45px] max-w-[100px]"})}),s.jsx(Me,{href:A,size:"small",variant:g?"tertiary":"primary",target:"_blank",rel:"noopener noreferrer",position:m,id:l,componentName:"productTable",className:"whitespace-nowrap",children:y})]}),s.jsxs("div",{className:"flex grow flex-col justify-center md:pl-8",children:[k&&s.jsx("div",{className:v.title(),children:ne(k,f)}),s.jsx("div",{className:v.name(),children:fe(p.name,f)??""}),p.usp&&s.jsx("div",{className:v.usp(),children:fe(p.usp,f)??""})]})]},m)})})]})},Tr=({title:e,open:t=!1,children:n})=>s.jsxs("details",{className:"group border-b border-black/[0.08] last:border-b-0 open:bg-black/[0.02]",open:t,children:[s.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-6 px-6 py-6 text-base font-bold text-grey80 md:text-xl md:font-semibold [&::-webkit-details-marker]:hidden",children:[s.jsx("span",{className:"hidden group-open:inline",children:s.jsx(H,{glyph:"arrow-up",color:"var(--color-accent)",ariaLabel:""})}),s.jsx("span",{className:"inline group-open:hidden",children:s.jsx(H,{glyph:"arrow-down",color:"var(--color-accent)",ariaLabel:""})}),s.jsx("span",{children:e})]}),s.jsx("div",{className:"px-6 pb-6 text-base text-grey80",children:n})]}),rE=({criteria:e,data:t})=>s.jsx("div",{className:"grid grid-cols-2 gap-y-2",children:e.map((n,r)=>{const o=ne(n.value,t);return o==null?null:s.jsxs(x.Fragment,{children:[s.jsx("div",{className:"text-sm text-grey80 nth-last-[n+3]:border-b border-grey30 pb-1",children:n.label}),s.jsx("div",{className:"text-sm font-medium text-primary nth-last-[n+3]:border-b border-grey30",children:o===!0?s.jsx(H,{glyph:"tick-green",color:"#22aa55",ariaLabel:""}):o===!1?"NO":o})]},r)})}),sE=({score:e})=>s.jsxs("div",{className:"relative h-32 w-32 md:h-36 md:w-36",children:[s.jsxs("svg",{viewBox:"0 0 36 36",className:"h-full w-full -rotate-90",children:[s.jsx("path",{className:"fill-none stroke-grey20",strokeWidth:"3",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),s.jsx("path",{className:"fill-none stroke-accent-alt",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:`${e*20}, 100`,d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),s.jsxs("div",{className:"absolute inset-0 flex items-center justify-center text-2xl font-bold text-accent-alt md:text-3xl",children:[e,"/5"]})]}),Il=[{border:"#f27d42",background:"#fef1ec"},{border:"#dd69a0",background:"#f6ecf0"},{border:"#ec4d79",background:"#fcecf1"},{border:"#fcba74",background:"#fff6ed"}],oE=({data:e,product:t,review:n,score:r,tableId:o})=>{const i=fe(t.name,e),a=fe(t.image,e),l=t.accountDetails?fe(t.accountDetails,e):void 0,{app:c}=J(),d=fe(t.ctaLink,e),u=d&&Yt(d,{usci:null,page:c?.location.pathname}),f=fe(t.ctaText,e),m=t.methodLink?fe(t.methodLink,e):void 0,h=t.methodText?fe(t.methodText,e):void 0,p=n?.fields.minireview,b=n?.f
118ields.pros,g=n?.fields.cons,y=n?.fields.author,w=ts(y??{sys:{id:"",linkType:"Entry",type:"Link"}},"author"),A=Ut(w?.image)?.fields.file?.url,v=A?A.startsWith("//")?`https:${A}`:A:void 0,j=w?`${w.name}, our savings expert says..`:"Our savings expert says..",E=r>0;return s.jsxs("div",{className:"overflow-hidden rounded-3xl border-2 border-accent-alt bg-white shadow-md max-w-[886px] self-center",children:[s.jsxs("div",{className:"flex flex-col gap-6 px-6 py-12 md:flex-row md:items-center md:gap-8",children:[s.jsxs("div",{className:"flex flex-1 flex-col gap-6 md:gap-8",children:[s.jsxs("div",{className:"flex flex-col items-start gap-3 md:flex-row md:items-center md:gap-6",children:[a&&s.jsx("div",{className:"flex w-30 my-3 items-center justify-center rounded-2xl self-center",children:s.jsx("img",{src:a,alt:i??"Card",className:"w-[120px]"})}),s.jsx("div",{className:"heading-md",children:i})]}),t.productDetails&&t.productDetails.length>0&&s.jsx("div",{className:"grid grid-cols-2 gap-2 md:gap-3",children:t.productDetails.map((N,S)=>{const{label:D,value:L}=Su(N.label,N.value,e),F=Il[S%Il.length];return s.jsxs("div",{className:"flex flex-col gap-1 px-4 py-2 md:gap-1 md:px-6 md:py-4",style:{borderLeft:`6px solid ${F.border}`,backgroundColor:F.background},children:[s.jsx("div",{className:"text-base font-bold text-grey80 md:text-2xl",children:L}),s.jsx("div",{className:"text-xs text-grey80 md:text-base",children:D})]},S)})})]}),E&&s.jsxs("div",{className:"flex flex-col items-center gap-6 self-stretch rounded-3xl border-[10px] border-accent-alt p-6 md:w-72 md:p-8",children:[m&&h&&s.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer nofollow",className:"body-base underline hover:no-underline",children:h}),s.jsxs("div",{className:"flex flex-col items-center gap-3 md:gap-6",children:[s.jsx("div",{className:"heading-xs text-accent-alt",children:"Expert verdict"}),s.jsx(sE,{score:r})]})]})]}),u&&f&&s.jsx("div",{className:"flex justify-center px-6 pb-8 md:px-12",children:s.jsx(Me,{target:"_blank",rel:"noopener noreferrer",className:"w-80 max-w-full",href:u,variant:"primary",size:"large",id:o,componentName:"moneyVoiceTopPicks",children:f})}),s.jsxs("div",{className:"flex flex-col border-t border-black/[0.08]",children:[p&&s.jsx(Tr,{title:j,open:!0,children:s.jsxs("div",{className:"flex items-start gap-3",children:[v&&s.jsx("img",{src:v,alt:w?.name??"",className:"h-10 w-10 rounded-full object-cover"}),s.jsxs("p",{className:"text-base text-grey80",children:["“",Cu(p,e),"”"]})]})}),b&&g&&s.jsx(Tr,{title:"Pros and cons",children:s.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:gap-8",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"mb-2 text-lg font-bold text-accent",children:"Pros"}),s.jsx("ul",{className:"list-inside list-disc space-y-1 text-grey80",children:b.map((N,S)=>s.jsx("li",{children:N},S))})]}),s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"mb-2 text-lg font-bold text-accent",children:"Cons"}),s.jsx("ul",{className:"list-inside list-disc space-y-1 text-grey80",children:g.map((N,S)=>s.jsx("li",{children:N},S))})]})]})}),l&&s.jsx(Tr,{title:"Account details",children:s.jsx("div",{className:"text-grey80",children:l})}),t.eligibilityCriteria&&s.jsx(Tr,{title:"Eligibility",children:s.jsx(rE,{criteria:t.eligibilityCriteria,data:e})})]})]})},iE=[4.8,4.5,4],aE=({data:e,schema:t,rowCount:n=3,tableId:r})=>{const o=dc();return s.jsxs("div",{className:"my-6",children:[t.title&&s.jsx("h2",{className:"mb-2 heading-md",children:t.title}),t.subTitle&&s.jsx("p",{className:"mb-6 body-lg text-primary",children:t.subTitle}),s.jsx("div",{className:"flex flex-col gap-4",children:e.slice(0,n).map((i,a)=>{const l=Tu(o,i._id);return s.jsx(oE,{data:i,product:t.product,review:l,score:iE[a]??4,tableId:r},i._id)})})]})},lE=({addon:e,data:t})=>s.jsxs("div",{className:"mt-3 border-t border-grey20 pt-3",children:[e.title&&s.jsx("div",{className:"mb-2 text-sm font-bold text-grey80",children:e.title}),s.jsx("div",{className:"flex flex-col gap-1",children:e.criteria.map((n,r)=>{const o=ne(n.value,t);if(o==null)return null;const i=o===!0?"YES":o===!1?"NO":o;return s.jsxs("div",{className:"flex items-center justify-between border-b border-grey10 py-1 text-sm",children:[s.jsx("div",{className:"text-grey80",children:n.label}),s.jsx("div",{className:"font-medium text-grey80",children:i})]},r)})})]}),cE=te({base:"flex flex-col items-center gap-1 rounded-t-3xl px-6 py-2.5 text-center text-white",variants:{kind:{exclusive:"[background:var(--color-top-picks-exclusive)] text-on-accent",ad:"bg-grey60",editor:"[background:var(--color-editor-bg)] text-editor-text"}}}),dE=te({base:"bg-white",variants:{kind:{exclusive:"border-accent",ad:"border-grey60",editor:"border-editor-border"},placement:{withReview:"border-x-[5px] border-t-[5px] border-b-[5px] rounded-b-3xl",standalone:"rounded-b-3xl border-[5px]",none:"rounded-3xl border-0 shadow-md"}}}),ho=te({base:"rounded-b-3xl border-x-2 border-b-2 bg-transparent",variants:{kind:{exclusive:"border-accent",ad:"border-grey60",editor:"border-editor-border"}}}),Ll=te({base:"font-semibold leading-snug",variants:{kind:{exclusive:"text-accent",ad:"text-grey80",editor:"text-accent-alt"}}}),_i=(e,t)=>e?"exclusive":t?"ad":"editor",Au=({isExclusive:e,isAd:t,schema:n,data:r})=>{const o=n.header?.subtitle&&fe(n.header.subtitle,r),i=e?"money.co.uk <b>exclusive</b>":t?"<b>Advertisement</b>":"<b>Editor's pick</b>",a=_i(e,t);return s.jsxs("div",{className:cE({kind:a}),children:[!t&&s.jsx(H,{glyph:e?"exclusive-deal":"editors-pick",color:"currentColor",ariaLabel:""}),s.jsx("div",{className:"text-base font-normal",dangerouslySetInnerHTML:{__html:i}}),o&&s.jsx("div",{className:"text-sm",children:o})]})},uE=({data:e,schema:t,review:n})=>{const r=n?.fields.author,o=r?ts(r,"author"):void 0,i=t.product.reviewName?fe(t.product.reviewName,e):void 0,a=o?.name??i,l=o?.url,c=o?.role??"Personal finance expert",u=Ut(o?.image)?.fields.file?.url,f=u?u.startsWith("//")?`https:${u}`:u:void 0;return a?s.jsxs("div",{className:"mt-4 flex items-center gap-3",children:[f&&s.jsx("img",{src:f,alt:a,className:"h-12 w-12 rounded-full object-cover"}),s.jsxs("div",{children:[l?s.jsx("a",{className:"block body-lg-bold text-link underline hover:no-underline",href:l,children:a}):s.jsx("div",{className:"body-lg-bold text-accent",children:a}),s.jsx("div",{className:"body-base text-grey80",children:c})]})]}):null},fE=(e,t,n,r="value-first")=>s.jsx("div",{className:"flex w-full flex-col gap-1 rounded-lg bg-grey10 px-4 py-2",children:r==="value-first"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"text-xs text-grey80",children:e}),s.jsx("div",{className:"text-sm font-bold text-grey80",children:t})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"text-sm font-bold text-grey80",children:t}),s.jsx("div",{className:"text-xs text-grey80",children:e})]})},n),xo=({data:e,schema:t,variant:n,isExclusive:r,isAd:o,hasReview:i,hideCta:a=!1,noBorder:l=!1,tableId:c})=>{const[d,u]=x.useState(!1),{app:f}=J(),m=fe(t.product.image,e),h=e.subCategory?`/credit-cards/eligibility-checker?product_id=${e._id}&productType=${e.subCategory}`:`/credit-cards/eligibility-checker?product_id=${e._id}`,p=fe(t.product.ctaLink,e),b=p?Yt(p,{usci:null,page:f?.location.pathname}):h,g=n==="creditCardTopPicks",y=fe(t.product.usp,e),w=t.product.repExample?fe(t.product.repExample,e):void 0,k=t.product.warningInfo?fe(t.product.warningInfo,e):void 0,A=fe(t.product.ctaText,e),v=_i(r,o);return s.jsx("div",{className:dE({kind:v,placement:l?"none":i?"withReview":"standalone"}),children:s.jsxs("div",{className:"flex flex-col items-center gap-3 p-6",children:[m&&s.jsx("img",{src:m,alt:"Card",className:"max-h-[140px] w-auto object-contain"}),s.jsx("div",{className:" py-6 text-center text-base font-heading font-bold text-grey80",children:fe(t.product.name,e)??""}),y&&s.jsxs("div",{className:"flex w-full items-center gap-2 rounded-lg border-2 border-accent bg-white px-3 py-2",children:[s.jsx(H,{glyph:"credit-card-generic",color:"#000",ariaLabel:""}),s.jsx("span",{className:"text-sm text-primary",children:y})]}),t.product.reward&&s.jsxs("div",{className:"flex w-full items-center gap-2 rounded-lg border-2 border-accent bg-white px-3 py-2",children:[s.jsx(H,{glyph:fe(t.product.reward.icon,e)??"",color:"#000",ariaLabel:""}),s.jsx("span",{className:"text-sm text-primary",children:fe(t.product.reward.text,e)??""})]}),s.jsx("div",{className:"flex w-full flex-col gap-2",children:t.product.productDetails?.map((j,E)=>{const{label:N,value:S}=Su(j.label,j.value,e);return fE(N,S,E)})}),g&&w&&s.jsxs("p",{className:"w-full rounded-lg bg-grey10 px-4 py-2 text-xs text-grey80",children:[s.jsx("b",{children:"Representative example:"})," ",w]}),!a&&A&&s.jsx(Me,{href:b,target:"_blank",rel:"noopener noreferrer",variant:"primary",id:c,componentName:"topPicksCard",className:"w-full my-6",children:A}),!g&&w&&s.jsxs("p",{className:"w-full rounded-lg bg-grey10 px-4 py-2 text-xs text-grey80",children:[s.jsx("b",{children:"Representative example:"})," ",w]}),k&&s.jsx("p",{className:"w-full rounded-lg bg-top-picks-warning-bg px-4 py-2 text-xs text-grey80",children:k}),t.product.addons&&t.product.addons.length>0&&s.jsxs("button",{type:"button",onClick:()=>{u(j=>!j)},className:"flex w-full items-center justify-center gap-2 text-xs font-bold text-link underline",children:[s.jsx("span",{children:d?"Hide Details":"Show Details"}),s.jsx(H,{glyph:d?"arrow-up":"arrow-down",color:"var(--color-accent)",ariaLabel:""})]}),d&&t.product.addons?.map((j,E)=>j.view==="eligibility"?s.jsx(lE,{addon:j,data:e},E):null)]})})},go=({reviewText:e,data:t,schema:n,review:r,kind:o,large:i=!1})=>s.jsxs("div",{children:[s.jsx(H,{glyph:"quotemarks-stroke",size:"xlarge",color:"var(--color-primary)",ariaLabel:""}),s.jsxs("p",{className:i?`mt-4 text-lg ${Ll({kind:o})} md:text-xl`:`mt-3 text-base ${Ll({kind:o})}`,children:["“",e,"”"]}),s.jsx(uE,{data:t,schema:n,review:r})]}),mE=({data:e,schema:t,variant:n,review:r,isExclusive:o,isAd:i,kind:a,reviewText:l,tableId:c})=>{const{app:d}=J(),u=fe(t.product.ctaText,e),f=fe(t.product.ctaLink,e),m=e.subCategory?`/credit-cards/eligibility-checker?product_id=${e._id}&productType=${e.subCategory}`:`/credit-cards/eligibility-checker?product_id=${e._id}`,h=f?Yt(f,{usci:null,page:d?.location.pathname}):m;return s.jsxs("div",{className:`mx-auto flex w-full flex-col ${l?"max-w-4xl":"max-w-[420px]"}`,children:[n!=="creditCardTopPicks"&&s.jsx(Au,{isExclusive:o,isAd:i,schema:t,data:e}),s.jsxs("div",{className:"md:hidden",children:[s.jsx(xo,{data:e,schema:t,variant:n,isExclusive:o,isAd:i,hasReview:!!l,tableId:c}),l&&s.jsx("div",{className:`${ho({kind:a})} -mt-[20px] p-6`,children:s.jsx(go,{reviewText:l,data:e,schema:t,review:r,kind:a})})]}),s.jsxs("div",{className:`${ho({kind:a})} hidden rounded-b-3xl px-12 pb-10 pt-6 md:block`,children:[s.jsxs("div",{className:l?"grid grid-cols-2 gap-10":"mx-auto",children:[l&&s.jsx("div",{children:s.jsx(go,{reviewText:l,data:e,schema:t,review:r,kind:a,large:!0})}),s.jsx(xo,{data:e,schema:t,variant:n,isExclusive:o,isAd:i,hasReview:!1,hideCta:!0,noBorder:!0,tableId:c})]}),u&&s.jsx("div",{className:"mt-8 flex justify-center",children:s.jsx(Me,{href:h,target:"_blank",rel:"noopener noreferrer",variant:"primary",id:c,componentName:"topPicksCard",className:"w-full max-w-[348px]",children:u})})]})]})},pE=({data:e,schema:t,variant:n,review:r,fullProductData:o,desktopSingle:i=!1,tableId:a,brand:l="money"})=>{const c=t.header?.typeOfPick&&fe(t.header.typeOfPick,e),d=c==="money exclusive",u=c==="ad",f=r?.fields.minireview,m=_i(d,u),h=f&&o?Cu(f,o):t.product.reviewText?fe(t.product.reviewText,e):void 0,p=l==="uswitch"?void 0:h;return i?s.jsx(mE,{data:e,schema:t,variant:n,review:r,isExclusive:d,isAd:u,kind:m,reviewText:p,tableId:a}):s.jsxs("div",{className:"flex w-full flex-col",children:[n!=="creditCardTopPicks"&&s.jsx(Au,{isExclusive:d,isAd:u,schema:t,data:e}),s.jsx(xo,{data:e,schema:t,variant:n,isExclusive:d,isAd:u,hasReview:!!p,tableId:a}),p&&s.jsx("div",{className:`${ho({kind:m})} -mt-px p-6`,children:s.jsx(go,{reviewText:p,data:e,schema:t,review:r,kind:m})})]})},hE=(e,t)=>Array.isArray(e.displayInfo)?e.displayInfo[t]??e.displayInfo[0]:e.displayInfo,xE=({data:e,schema:t,variant:n,rowCount:r,tableId:o,brand:i})=>{const a=dc(),l=e.length<2;return e.length===0?null:s.jsxs("div",{className:"my-6","data-fs-core-product-table":!0,children:[t.title&&s.jsx("h2",{className:"mb-2 heading-md",children:t.title}),t.subTitle&&s.jsx("p",{className:"mb-4 body-lg text-primary",children:t.subTitle}),s.jsx("div",{className:l?"":"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.slice(0,r).map((c,d)=>{const u=hE(t,d);if(!u)return null;const f=Tu(a,c._id);return s.jsx(pE,{data:c,schema:u,variant:n,review:f,fullProductData:c,desktopSingle:l,tableId:o,brand:i},c._id)})})]})},gE=({entry:e})=>{const{linkedEntries:t,productTableData:n,rootEntry:r}=J();if(!F2(e))return null;const o=r?.fields.brand==="uswitch"?"uswitch":"money",{variant:i,name:a,schema:l,rowCount:c}
118=e.fields,d=e.sys.id,u=ke(l,t,"productTableSchema"),f=n?.[d];if(!u||!f)return null;const m=u.schema,h=f.products;if(h.length===0)return null;switch(i){case"topPicks":return s.jsx(xE,{name:a,variant:i,schema:m,data:h,rowCount:c,tableId:d,brand:o});case"moneyVoiceTopPick":return s.jsx(aE,{name:a,schema:m,data:h,rowCount:c,tableId:d});case"aboveTheFold":return s.jsx(zs,{name:a,variant:i,schema:m,data:h,tableId:d,rowCount:c});case"aboveTheFoldHorizontal":return s.jsx(zs,{name:a,variant:i,schema:m,data:h,horizontal:!0,tableId:d,rowCount:c});case"aboveTheFoldWithBorder":return s.jsx(zs,{name:a,variant:i,schema:m,data:h,border:!0,tableId:d,rowCount:c})}},bE=ee("productTableV2"),Ru=[{prefix:"€",name:"EUR",text:"Euros"},{prefix:"₺",name:"TRY",text:"Turkish Lira"},{prefix:"$",name:"USD",text:"Dollars"},{prefix:"৳",name:"BDT",text:"Bangladeshi Taka"},{prefix:"Bds$",name:"BBD",text:"Barbadian Dollars"},{prefix:"R$",name:"BRL",text:"Brazillian Real"},{prefix:"Лв",name:"BGN",text:"Bulgarian Lev"},{prefix:"CAD",name:"CAD",text:"Canadian Dollars"},{prefix:"¥",name:"CNY",text:"Chinese Yuan"},{prefix:"₡",name:"CRC",text:"Costa Rican Colon"},{prefix:"kn",name:"HRK",text:"Croatian Kuna"},{prefix:"Kr.",name:"DKK",text:"Danish Krone"},{prefix:"$",name:"XCD",text:"The Eastern Caribbean dollar"},{prefix:"E£",name:"EGP",text:"Egyptian Pound"},{prefix:"hk$",name:"HKD",text:"Hong Kong Dollar"},{prefix:"ikr",name:"ISK",text:"Icelandic Krona"},{prefix:"¥",name:"JPY",text:"Japanese Yen"},{prefix:"RM",name:"MYR",text:"Malaysian Ringgit"},{prefix:"rs",name:"MUR",text:"Mauritian Rupee"},{prefix:"mex$",name:"MXN",text:"Mexican Peso"},{prefix:"nz$",name:"NZD",text:"New Zealand Dollar"},{prefix:"kr",name:"NOK",text:"Norwegian Krone"},{prefix:"zł",name:"PLN",text:"Polish Złoty"},{prefix:"R",name:"ZAR",text:"South African Rand"},{prefix:"kr",name:"SEK",text:"Swedish Krona"},{prefix:"Fr.",name:"CHF",text:"Swiss Franc"},{prefix:"nt$",name:"TWD",text:"Taiwan Dollar"},{prefix:"฿",name:"THB",text:"Thai Baht"},{prefix:"A$",name:"AUD",text:"Australian Dollar"},{prefix:"د.إ",name:"AED",text:"UAE Dirham"}],Pu=e=>Ru.find(t=>t.name===e)?.prefix,yE=e=>Ru.find(t=>t.name===e)?.text,St="block body-sm font-semibold text-primary mb-1",Iu=()=>s.jsx("div",{className:"body-xs text-error mt-1",children:"Please enter a value between 1 and 99999"}),vE=({field:e,inputs:t,onChange:n})=>{const r=typeof t.currencyToUse=="string"?t.currencyToUse:"GBP",[o,i]=x.useState(r),[a,l]=x.useState(null),c=o==="GBP"?"£":Pu(e.currency)??e.currency,d=o==="GBP"?"gbpAmount":"otherAmount",u=t[d],f=h=>{const p=parseFloat(h);!h||isNaN(p)||p<1||p>99999?l("invalid"):l(null),n({...t,[d]:h})},m=h=>{i(h);const p=h==="GBP"?"gbpAmount":"otherAmount",b=h==="GBP"?"otherAmount":"gbpAmount",g=t[b]??t[p];n({...t,currencyToUse:h,[p]:g,[b]:void 0})};return s.jsxs("div",{className:"flex flex-col gap-3 md:max-w-[450px]",children:[s.jsxs("div",{className:"flex flex-col",children:[s.jsx("label",{className:St,children:"Amount to convert"}),s.jsxs("div",{className:"relative",children:[s.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-grey80",children:c}),s.jsx("input",{type:"number",className:"border border-grey20 rounded p-3 pl-8 w-full bg-white text-sm",value:u??"",onChange:h=>{f(h.target.value)}})]}),a&&s.jsx(Iu,{})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:St,children:"Source currency"}),s.jsx("div",{className:"flex gap-3 flex-row",children:["GBP",e.currency].map(h=>s.jsxs("label",{className:"flex items-center gap-3 flex-1 md:max-w-[200px] bg-white border border-grey20 rounded-[4px] px-4 py-3 text-sm cursor-pointer",children:[s.jsx("input",{type:"radio",name:"currencyToUse",value:h,checked:o===h,onChange:()=>{m(h)},className:"[accent-color:var(--color-accent)]"}),h]},h))})]})]})},wE=({field:e,inputs:t,onChange:n})=>{const r=typeof t.currencyToUse=="string"&&t.currencyToUse!=="GBP",[o,i]=x.useState(r),[a,l]=x.useState(null),c=typeof t.currencyPair=="string"?t.currencyPair:e.currencies[0]??"",d=o?"otherAmount":"gbpAmount",u=t[d],f=o?Pu(c)??c:"£",m=e.currencies.map(g=>({value:g,text:`${yE(g)??g} (${g})`})),h=g=>{const y=parseFloat(g);!g||isNaN(y)||y<1||y>99999?l("invalid"):l(null),n({...t,[d]:g})},p=g=>{n({...t,currencyPair:g})},b=()=>{const g=!o;i(g);const y=g?"otherAmount":"gbpAmount",w=g?"gbpAmount":"otherAmount",k=t[w]??t[y];n({...t,currencyToUse:g?c:"GBP",[y]:k,[w]:void 0})};return s.jsxs("div",{className:"flex flex-col gap-3 md:max-w-[450px]",children:[s.jsxs("div",{className:"flex flex-col",children:[s.jsx("label",{className:St,children:"Amount to convert"}),s.jsxs("div",{className:"relative",children:[s.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-grey80",children:f}),s.jsx("input",{type:"number",className:"border border-grey20 rounded p-3 pl-8 w-full bg-white text-sm",value:u??"",onChange:g=>{h(g.target.value)}})]}),a&&s.jsx(Iu,{})]}),s.jsxs("div",{className:"flex  gap-2 flex-col items-start md:flex-row md:items-end",children:[s.jsxs("div",{className:"flex flex-col flex-1",children:[s.jsx("span",{className:St,children:o?"To":"From"}),s.jsx("div",{className:"border border-grey20 rounded p-3 bg-grey5 text-sm whitespace-nowrap",children:"British Poun
118d (GBP)"})]}),s.jsx("button",{type:"button",className:"mb-px p-2 border-0 bg-transparent flex-shrink-0","aria-label":"Swap currencies",onClick:b,children:s.jsx(H,{glyph:"swap-circle",color:"var(--color-accent)",size:"large",ariaLabel:""})}),s.jsxs("div",{className:"flex flex-col flex-1",children:[s.jsx("label",{className:St,htmlFor:"currencyPair",children:o?"From":"To"}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{id:"currencyPair",name:"currencyPair",className:"w-full appearance-none border border-grey20 rounded p-3 pr-10 bg-white text-sm focus:outline-none focus-visible:shadow-select-focus",value:c,onChange:g=>{p(g.target.value)},children:m.map(g=>s.jsx("option",{value:g.value,children:g.text},g.value))}),s.jsx(H,{glyph:"chevron-down",size:"small",color:"currentColor",ariaLabel:"",className:"absolute right-2.5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]})]})]})},jE=(e,t,n,r)=>{if(e.type==="travelMoneyCurrency")return s.jsx(vE,{field:e,inputs:n,onChange:r},t);if(e.type==="travelMoneyCurrencies")return s.jsx(wE,{field:e,inputs:n,onChange:r},t);if(e.type==="dropdown"){const i=typeof n[e.name]=="string"||typeof n[e.name]=="number"?String(n[e.name]):e.options[0]?.value??"";return s.jsxs("div",{className:"flex flex-col flex-1",children:[s.jsx("label",{className:St,htmlFor:e.name,children:e.label}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{id:e.name,name:e.name,className:"w-full appearance-none border border-grey20 rounded p-3 pr-10 bg-white text-sm focus:outline-none focus-visible:shadow-select-focus",value:i,onChange:a=>{r({...n,[e.name]:a.target.value})},children:e.options.map((a,l)=>s.jsx("option",{value:a.value,children:a.label},l))}),s.jsx(H,{glyph:"chevron-down",size:"small",color:"currentColor",ariaLabel:"",className:"absolute right-2.5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]},t)}if(e.type==="radio"){const i=typeof n[e.name]=="string"||typeof n[e.name]=="number"?String(n[e.name]):e.options[0]?.value??"";return s.jsxs("div",{className:"flex flex-col flex-1",children:[s.jsx("span",{className:St,children:e.label}),s.jsx("div",{className:"flex gap-3 flex-row",children:e.options.map((a,l)=>s.jsxs("label",{className:"flex items-center gap-3 flex-1 md:max-w-[200px] bg-white border border-grey20 rounded-[4px] px-4 py-3 text-sm cursor-pointer",children:[s.jsx("input",{type:"radio",name:e.name,value:a.value,checked:i===a.value,onChange:()=>{r({...n,[e.name]:a.value})},className:"[accent-color:var(--color-accent)]"}),a.label]},l))})]},t)}const o=typeof n[e.name]=="string"||typeof n[e.name]=="number"?String(n[e.name]):"";return s.jsxs("div",{className:"flex flex-col flex-1",children:[s.jsx("label",{className:St,htmlFor:e.name,children:e.label}),s.jsxs("div",{className:"relative",children:[e.prefix&&s.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm text-grey80",children:e.prefix}),s.jsx("input",{type:"number",id:e.name,name:e.name,className:`border border-grey20 rounded p-3 w-full bg-white text-sm ${e.prefix?"pl-8":""}`,value:o,onChange:i=>{r({...n,[e.name]:i.target.value})}})]})]},t)},Dl=({calculator:e,inputs:t,onChange:n,onSubmit:r,loading:o})=>{const i=e.direction==="column";return s.jsxs("div",{className:"ProductTable__filterBlock bg-grey10 p-6 mt-4","data-filter-block":!0,children:[s.jsx("div",{className:`flex gap-4 ${i?"flex-col":"flex-col md:flex-row"}`,children:e.fields.map((a,l)=>jE(a,l,t,n))}),s.jsx(Kt,{variant:"primary",size:"large",className:"mx-auto mt-4 flex",onClick:r,disabled:o,children:"Update results"})]})},NE=({calculator:e,inputs:t,isOpen:n,loading:r,onChange:o,onSubmit:i})=>!e||fd(e)?null:e.isAlwaysVisible?s.jsx(Dl,{calculator:e,inputs:t,onChange:o,onSubmit:i,loading:r}):s.jsx("div",{className:n?"block":"hidden",children:s.jsx(Dl,{calculator:e,inputs:t,onChange:o,onSubmit:i,loading:r})}),Sr="block body-sm font-semibold text-primary mb-1",kE=(e,t,n,r)=>{if(e.type==="dropdown"){const i=n[e.label]?.[0]??"Show all",a=e.name??e.label;return s.jsxs("div",{className:"Field flex flex-col flex-1",children:[s.jsx("label",{className:Sr,htmlFor:a,children:e.label}),s.jsxs("div",{className:"relative",children:[s.jsxs("select",{className:"w-full appearance-none border border-grey20 rounded p-3 pr-10 bg-white text-sm focus:outline-none focus-visible:shadow-select-focus",id:a,name:a,value:i,onChange:l=>{const c=l.target.value;r(e.label,c==="Show all"?[]:[c])},children:[s.jsx("option",{value:"Show all",children:"Show all"}),e.options.map((l,c)=>s.jsx("option",{value:l.label,children:l.label},c+1))]}),s.jsx(H,{glyph:"chevron-down",size:"small",color:"currentColor",ariaLabel:"",className:"absolute right-2.5 top-1/2 -translate-y-1/2 pointer-events-none"})]})]},t)}if(e.type==="checkbox"){const i=n[e.label]??[];return s.jsxs("div",{className:"Field flex flex-col flex-1",children:[s.jsx("span",{className:Sr,children:e.label}),s.jsx("div",{className:"flex w-full flex-col gap-3",children:e.options.map((a,l)=>{const c=i.includes(a.label);return s.jsx("div",{children:s.jsxs("label",{className:"flex w-full items-center gap-4 bg-white p-4 cursor-pointer",children:[s.jsx("input",{type:"checkbox",className:"hidden peer",name:e.name??e.label,value:a.value??a.label,checked:c,onChange:d=>{const u=d.target.checked?[...i,a.label]:i.filter(f=>f!==a.label);r(e.label,u)}}),s.jsx("span",{className:"block h-[17px] w-[17px] shrink-0 border-2 border-grey40 rounded-[2px] relative peer-checked:bg-grey90 peer-checked:after:content-[''] peer-checked:after:absolute peer-checked:after:left-[3px] peer-checked:after:top-[0px] peer-checked:after:w-[7px] peer-checked:after:h-[11
118px] peer-checked:after:border-r-2 peer-checked:after:border-b-2 peer-checked:after:border-white peer-checked:after:rotate-45"}),s.jsx("span",{className:"text-sm",children:a.label})]})},l)})})]},t)}if(e.type==="input"){const i=n[e.label]?.[0]??"";return s.jsxs("div",{className:"Field flex flex-col flex-1",children:[s.jsx("label",{className:Sr,htmlFor:e.name,children:e.label}),s.jsxs("div",{className:"relative",children:[e.prefix&&s.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-sm",children:e.prefix}),s.jsx("input",{type:"number",id:e.name,name:e.name,className:"border border-grey20 rounded p-3 w-full bg-white text-sm",value:i,onChange:a=>{r(e.label,a.target.value?[a.target.value]:[])}})]})]},t)}const o=n[e.label]?.[0];return s.jsxs("div",{className:"Field flex flex-col flex-1",children:[s.jsx("span",{className:Sr,children:e.label}),s.jsx("div",{className:"flex gap-2",children:e.options.map((i,a)=>s.jsxs("label",{className:"flex items-center gap-2 text-sm cursor-pointer",children:[s.jsx("input",{type:"radio",name:e.label,value:i.label,checked:o===i.label,onChange:()=>{r(e.label,[i.label])}}),i.label]},a))})]},t)},EE=({filters:e,selections:t,onChange:n,isOpen:r,noResults:o,onSubmit:i})=>{const a=["ProductTable__filterBlock bg-grey10 p-6 mt-4",r?"block":"hidden"].join(" ");return s.jsxs("div",{className:a,"data-filter-block":!0,children:[s.jsx("div",{className:"flex flex-col justify-between gap-3 md:flex-row",children:e.map((l,c)=>kE(l,c,t,n))}),s.jsx(Kt,{variant:"primary",size:"large",className:"mx-auto mt-4 flex",onClick:i,children:"Update results"}),s.jsx("div",{className:["justify-center text-error mt-3",o?"flex":"hidden"].join(" "),children:"There are no results matching your search, please try again"})]})},_E=e=>/\(([^)]+)\)/.exec(e),CE=e=>typeof e=="boolean"?[{size:"small",word:e?"Yes":"No"}]:typeof e!="string"?[{size:"small",word:"-"}]:e.replace(/\b\//g," /").split(/(?!\(.*)\s(?![^(]*?\))/g).map(t=>({word:t,size:!_E(t)&&(/\d/.test(t)||t==="-")?"big":"small"})).reduce((t,n)=>{if(t.length===0)return[n];const r=t[t.length-1];return n.size===r.size?[...t.slice(0,-1),{size:r.size,word:`${r.word} ${n.word}`}]:t.concat(n)},[]),TE={pounds:e=>{const t=Number(e);return Number.isFinite(t)?t%1===0?`£${t}`:`£${t.toFixed(2)}`:""},"full-pounds":e=>{const t=Number(e);return Number.isFinite(t)?`£${t.toFixed(2)}`:""},"pounds-with-commas":e=>{const t=Number(e);return Number.isFinite(t)?Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP"}).format(t):""},percent:e=>`${String(e)}%`,"data-transfer":e=>{const t=Number(e);return Number.isFinite(t)?t<1e3?`${t}Kb`:t>=1e6?`${Math.floor(t/1e6)}Gb`:`${Math.floor(t/1e3)}Mb`:""},data:e=>{const t=Number(e);return Number.isFinite(t)?t>=1e3?`${Math.floor(t/1e3)}GB`:`${t}MB`:""},"exchange-rate":(e,t=4)=>{const n=Math.max(0,Math.min(10,Math.floor(t))),r=Number(e);return Number.isNaN(r)?String(e):r.toFixed(n)}},SE=e=>e.replace(/[^A-Za-z0-9]/g,""),AE=(e,t)=>e?e.replace(/\$\{([a-zA-Z0-9_]+)\}/g,(n,r)=>{const o=t[r];return o==null?"":String(o)}):"",RE=(e,t)=>{if(!e)return{href:null,text:null};if(Array.isArray(e))return e.reduce((o,{href:i,text:a,validIf:l})=>{const c=ne(i,t),d=ne(a,t),u=!l||ne({valueFrom:l},t);return!o.href&&c&&u?{href:typeof c=="string"?c:null,text:typeof d=="string"?d:null}:o},{href:null,text:null});const n=ne(e.href,t),r=ne(e.text,t);return{href:typeof n=="string"?n:null,text:typeof r=="string"?r:null}},PE=e=>["ProductTable__rows flex flex-col",e?"opacity-50":""].filter(Boolean).join(" "),IE=(e,t)=>{if(!e)return null;if(Array.isArray(e))return e.reduce((r,o)=>{const i=ne(o,t),a=!o.validIf||ne({valueFrom:o.validIf},t);return!r&&i&&a&&typeof i=="string"?i:r},null);const n=ne(e,t);return typeof n=="string"?n:null},LE={1:"bg-cell1-bg border-b-[5px] border-cell1-border",2:"bg-cell2-bg border-b-[5px] border-cell2-border",3:"bg-cell3-bg border-b-[5px] border-cell3-border",4:"bg-cell4-bg border-b-[5px] border-cell4-border",5:"bg-cell5-bg border-b-[5px] border-cell5-border"},DE=te({slots:{root:"flex flex-1 flex-col justify-start self-stretch text-center py-[5px] pb-[10px] mx-[2px] w-full md:w-auto",label:"px-[5px] pt-[5px]",value:"px-[5px] py-[5px]",valueSmall:""},variants:{brand:{money:{root:"items-center",label:"text-[11px] leading-[16.5px] text-black font-normal",value:"text-base font-normal text-black",valueSmall:"text-base font-normal mx-1"},uswitch:{root:"items-start px-3 border-l border-grey20 text-left",label:"body-base-bold text-primary",value:"text-2xl font-semibold text-primary",valueSmall:"text-base font-semibold text-primary"},confused:{root:"items-center",label:"text-[11px] leading-[16.5px] text-primary font-normal",value:"text-base font-normal text-primary",valueSmall:"text-base font-normal mx-1"}}},defaultVariants:{brand:"money"}}),OE=({label:e,content:t,format:n,className:r,cellIndex:o})=>{const i=Te(),a=n?TE[n]:void 0,l=a?a(t):void 0,c=l??"",d=l!==void 0&&l!==""?null:CE(t),u=o!==void 0&&i==="money"?LE[o]??"":"",f=DE({brand:i}
118),m=[f.root(),u,r].filter(Boolean).join(" ");return s.jsxs("div",{className:m,children:[s.jsx("span",{className:f.label(),children:e}),s.jsx("div",{className:f.value(),children:d?d.map((h,p)=>h.size==="small"?s.jsx("span",{className:f.valueSmall(),children:h.word},p):s.jsx("span",{children:h.word},p)):c})]})},Ci="ProductTable__moreInfo__block bg-white p-4 mt-4 md:w-1/2",Ti="ProductTable__moreInfo__block__title font-heading text-lg font-semibold text-primary leading-tight mb-2",Lu="w-full border-collapse",Du="text-[13px] border-b border-grey20 last:border-0",ME=({block:e,product:t})=>{const n=e.content.filter(r=>ne(r,t));return n.length===0?null:s.jsxs("div",{className:Ci,children:[s.jsx("div",{className:Ti,children:String(ne(e.title,t)??"")}),n.map((r,o)=>{const i=ne(r,t);return typeof i!="string"||!i?null:s.jsx("div",{className:"ProductTable__moreInfo__block__description text-sm leading-relaxed text-grey80 my-1 [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-3 contentful-list",dangerouslySetInnerHTML:{__html:i}},o)})]})},$E=({block:e,product:t})=>{const n=e.content.filter(({value:r})=>ne(r,t));return n.length===0?null:s.jsxs("div",{className:Ci,children:[s.jsx("div",{className:Ti,children:String(ne(e.title,t)??"")}),s.jsx("div",{className:"ProductTable__moreInfo__block__description--list",children:s.jsx("table",{className:Lu,children:s.jsx("tbody",{children:n.map(({label:r,value:o},i)=>{const a=ne(o,t),l=ne(r,t),c=l!=null&&l!=="";return s.jsxs("tr",{className:Du,children:[s.jsx("td",{className:"py-2 pr-2 font-semibold text-left",children:String(l??"")}),s.jsx("td",{className:c?"py-2 pl-2 text-right align-middle break-words flex justify-end":"py-2 pl-2 text-left align-middle break-words",children:a===!0?s.jsx(H,{glyph:"tick-green",color:"currentColor",size:"default",ariaLabel:""}):String(a??"")})]},i)})})})})]})},Ol={percentage:e=>e==null||typeof e!="string"&&typeof e!="number"?"":`${String(e)}%`,currency:e=>{const t=Number(e);return Number.isFinite(t)?Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP"}).format(t):""}},Ml=(e,t)=>t!==void 0&&t in Ol?Ol[t](e):e==null?"":typeof e=="string"||typeof e=="number"||typeof e=="boolean"?String(e):JSON.stringify(e),FE=(e,t)=>{const n=[];if(e.some(o=>"field"in o&&Yi(o.field,t).length===0))return null;for(const o of e)if("field"in o){const i=Yi(o.field,t);if(i.length===0)continue;for(const a of i){if(!V(a))continue;const l=o.fieldSchema.map(c=>{const d=String(ne(c.value,t)??"");return{type:c.type,value:Ml(a[d],c.formatter),colspan:c.colspan}});n.push(l)}}else{const i=o.data.map(a=>({type:a.type,value:Ml(ne(a.value,t),a.formatter),colspan:a.colspan}));n.push(i)}return n.length>0?n:null},BE=({block:e,product:t})=>{const n=FE(e.content,t);return n?s.jsxs("div",{className:Ci,children:[s.jsx("div",{className:Ti,children:String(ne(e.title,t)??"")}),s.jsx("div",{className:"ProductTable__moreInfo__block__description--table",children:s.jsx("table",{className:Lu,children:s.jsx("tbody",{children:n.map((r,o)=>s.jsx("tr",{className:Du,children:r.map((i,a)=>i.type==="th"?s.jsx("th",{colSpan:i.colspan,className:"text-center text-[#333] py-4 px-2 first:text-left first:pl-0 first:pr-4 last:pr-0 last:pl-4",children:i.value},a):s.jsx("td",{colSpan:i.colspan,className:"text-center text-[#333] py-2 px-2 first:text-left first:pl-0 first:pr-4 last:pr-0 last:pl-4",children:i.value},a))},o))})})})]}):null},zE=({block:e,product:t})=>{switch(e.type){case"html":return s.jsx(ME,{block:e,product:t});case"list":return s.jsx($E,{block:e,product:t});case"table":return s.jsx(BE,{block:e,product:t})}},HE=te({base:"TableRow__badge absolute top-0 left-4 -translate-y-[50%] z-[2]",variants:{brand:{money:"bg-surface-inverse text-white font-semibold px-4 py-[5.5px] leading-6",uswitch:"bg-surface border-2 border-line-strong text-primary ml-2 font-medium leading-[1.33] px-3.5 py-[3px] md:px-[23px] md:py-[7px]",confused:"bg-[var(--product-table-badge-bg)] text-[var(--product-table-badge-text)] font-semibold px-4 py-[5.5px] leading-6 border-[3px] border-[var(--product-table-border)]"}},defaultVariants:{brand:"money"}}),VE=({badge:e,productId:t,disabled:n,largeBadge:r,children:o})=>{const i=Te(),a=n??!1,d=["relative block border-2 border-[var(--product-table-border)] transition-transform duration-150 ease-out",i==="uswitch"?!!e||!!r?"mt-10 mb-4":"mt-4 mb-4":["mb-5",r?"mt-8 md:mt-2.5 first:mt-12 first:md:mt-8":e?"mt-6 md:mt-2.5 first:mt-11 first:md:mt-8":"mt-2.5"].join(" "),!a&&"hover:-translate-y-[0.15rem] hover:shadow-lg",a&&"opacity-40 pointer-events-none"].filter(
118Boolean).join(" ");return s.jsxs("div",{className:d,"data-product-id":t,children:[e&&s.jsx("div",{className:HE({brand:i}),children:e}),o]})},UE=te({slots:{root:"Rowheader flex items-center",titleGroup:"",title:"font-heading text-lg font-normal"},variants:{brand:{money:{root:"justify-center mt-1 mb-4 md:justify-start md:pl-[145px] md:mt-2 text-center",titleGroup:"Rowheader__title__wrapper flex flex-col gap-1.5",title:"text-[#006699]"},uswitch:{root:"gap-2 px-4 pt-4",titleGroup:"flex items-center gap-2",title:"text-primary font-semibold"},confused:{root:"justify-center mt-1 mb-4 md:justify-start md:pl-[145px] md:mt-2",titleGroup:"Rowheader__title__wrapper flex flex-col gap-1.5",title:"text-heading"}}},defaultVariants:{brand:"money"}}),GE=te({base:"ProductTable__info pt-4 pb-1.5",variants:{brand:{money:"body-xs text-[#5d6a72] px-2 md:pl-[146px]",uswitch:"body-base-bold text-primary px-4",confused:"body-xs text-muted pr-2 md:pl-[146px]"}},defaultVariants:{brand:"money"}}),Ar=e=>typeof e=="string"?e:null,WE=(e,t)=>e.type==="html"?e.content.some(n=>ne(n,t)):e.type==="list"?e.content.some(({value:n})=>ne(n,t)):e.content.length>0,qE=({titleValue:e,inPartnershipValue:t,imageValue:n,brand:r})=>{const o=UE({brand:r});return s.jsxs("div",{className:o.root(),children:[r==="uswitch"&&n&&s.jsx("img",{src:n,alt:"",className:"max-h-[45px] max-w-[130px] object-contain"}),s.jsxs("div",{className:o.titleGroup(),children:[s.jsx("h3",{className:o.title(),children:e??""}),t&&s.jsx("div",{className:"text-sm text-grey80",children:t})]})]})},YE=({cells:e,product:t,imageValue:n,ctaHref:r,ctaText:o,showCta:i,index:a,componentId:l,brand:c})=>s.jsxs("div",{className:"ProductTable__cells flex flex-col md:flex-row items-center px-[15px]",children:[c!=="uswitch"&&n&&s.jsx("img",{src:n,alt:"",className:"flex-[1_1_0] max-w-[130px] my-2 max-h-[90px] md:my-0 md:mr-[15px] object-contain order-1 md:order-none"}),(e??[]).map((d,u)=>{const f=ne(d.label,t),m=ne(d.content,t),h=m===!0?"Yes":m===!1?"No":m;return s.jsx(OE,{className:`ProductTable__Cell--${String(u+1)}`,label:typeof f=="string"?f:"",content:h,format:d.format,cellIndex:u+1},u)}),i&&r?s.jsx("div",{className:"ProductTable__cta flex justify-center w-max mx-auto md:my-auto flex-col order-2 md:order-none md:ml-[15px]",children:s.jsx(Me,{variant:"productTable",href:r,target:"_blank",rel:"noopener noreferrer nofollow",className:"px-8 py-[13px] font-semibold leading-none whitespace-nowrap min-w-[120px] after:absolute after:inset-0 after:z-[1] after:content-['']",position:a,componentName:"productTableV2",id:l,children:o??"View deal"})}):s.jsx("div",{className:"ProductTable__cta--withSpacing min-w-[120px]"})]}),KE=({info:e,product:t,brand:n})=>s.jsxs("div",{className:GE({brand:n}),children:[n==="uswitch"&&e.label&&s.jsx("div",{children:e.label}),e.content.map((r,o)=>{const i=ne(r,t);return i?s.jsx("div",{children:String(i)},o):null})]}),ZE=({moreInformation:e,product:t,productId:n,index:r,expandFirstRow:o,onMoreInfoToggle:i})=>s.jsxs("details",{"data-product-table-v2-more-information":!0,className:"ProductTable__moreInfo relative z-[2] bg-[var(--product-table-more-info-bg)] px-4 open:pb-4",open:o&&r===0,onToggle:a=>{i?.(n,r,a.currentTarget.open)},children:[s.jsxs("summary",{className:"text-primary py-4 text-center flex items-center justify-center gap-3 cursor-pointer list-none [&::-webkit-details-marker]:hidden [font-family:var(--product-table-more-info-font)] text-[length:var(--product-table-more-info-size)] font-[var(--product-table-more-info-weight)]",children:["More Information",s.jsx("span",{className:"transition-transform duration-200 [[open]_&]:rotate-180 inline-flex",children:s.jsx(H,{glyph:"chevron-down",size:"small",color:"currentColor",ariaLabel:""})})]}),s.jsx("div",{className:"ProductTable__moreInfo__blocks md:flex md:justify-center md:gap-4",children:e.map((a,l)=>s.jsx(zE,{block:a,product:t},l))})]}),XE=({product:e,index:t,schema:n,datasetName:r,componentId:o,onMoreInfoToggle:i})=>{const a=Te(),{app:l}=J(),{disablingField:c,primaryCta:d,clickableRow:u,cells:f,moreInformation:m,expandFirstRow:h,info:p,footer:b}=n,{badge:g,image:y,title:w,inPartnershipWith:k}=n,A=e._id,v=g?Ar(ne(g,e)):null,j=y?Ar(ne(y,e)):null,E=w?Ar(ne(w,e)):null,N=k?Ar(ne(k,e)):null,S=c?ne(c,e):!0,D=!!c&&!S,L=RE(d,e),F=IE(u,e),M=F?Yt(F,{position:`deal-${t+1}`,table:r,page:l?.location.pathname}):null,P=!!(v&&v.length>60),T=!!(M&&(!c||S)),R=m?.filter(I=>WE(I,e));return s.jsxs(VE,{badge:v,disabled:D,productId:A,largeBadge:P,children:[s.jsxs("div",{className:P?"TableRow__inner pt-12 md:pt-4":v?"TableRow__inner pt-8 md:pt-4":"TableRow__inner",children:[s.jsx(qE,{titleValue:E,inPartnershipValue:N,imageValue:j,brand:a}),s.jsx(YE,{cells:f,product:e,imageValue:j,ctaHref:M,ctaText:L.text,showCta:T,index:t,componentId:o,brand:a}),p&&s.jsx(KE,{info:p,product:e,brand:a})]}),b&&(()=>{const I=ne(b.text,e);return I?s.jsxs("div",{className:"body-sm-bold text-center text-accent bg-grey5 px-10 pt-[5px] pb-[10px]",children:[b.label,String(I)]}):null})(),R&&R.length>0&&s.jsx(ZE,{moreInformation:R,product:e,productId:A,index:t,expandFirstRow:h,onMoreInfoToggle:i})]})},QE=({compliance:e,hasFilters:t,sortOptions:n,selectedSortLabel:r,onRefineClick:o,onSortClick:i,onSortChange:a})=>s.jsxs("div",{className:"ProductTable__tableControls flex flex-col justify-between md:flex-row",children:[s.jsx("div",{className:"ProductTable__complianceText mb-4 md:mb-0 md:flex md:items-center md:mr-6 w-full text-[14px] text-[#4c4c4c] [&_a]:text-[#4c4c4c]",children:s.jsx("div",{"data-product-table-v2-compliance":!0,className:"w-full text-sm text-grey80 [&_a]:underline",dangerouslySetInnerHTML:{__html:e}})}),s.jsxs("div",{className:"ProductTable__tableControlsButtons flex gap-4 items-center",children:[t&&s.jsxs(Kt,{variant:"tertiary",size:"small",onClick:o,className:"gap-2 px-4 py-[10px] text-[14px] leading-[133%] rounded-[5px] border border-[#dfdfe1] bg-white font-normal min-h-0 whitespace-nowrap overflow-hidden text-ellipsis",children:[s.jsx(H,{glyph:"setting-sl
118iders",size:"small",color:"currentColor",ariaLabel:""}),"Refine results"]}),n.length>0&&s.jsxs("div",{className:"relative inline-flex items-center",children:[s.jsx(H,{glyph:"sort",size:"small",color:"currentColor",ariaLabel:"",className:"pointer-events-none absolute left-[10px]"}),s.jsx("select",{className:"Select border-[length:var(--product-table-sort-select-border-width)] border-product-table-sort-select rounded-sm py-[10px] pl-10 pr-8 text-[14px] leading-[133%] appearance-none focus:outline-none focus-visible:shadow-select-focus",id:"sort",name:"sort",value:r??"",onClick:i,onChange:a,children:n.map((l,c)=>s.jsx("option",{value:l.value,children:l.label},c))}),s.jsx(H,{glyph:"chevron-down",size:"small",color:"currentColor",ariaLabel:"",className:"pointer-events-none absolute right-[10px]"})]})]})]}),Hn=(e,t,n)=>{ze("Product Table Event",{event_name:e,component_category:"eevee-component",component_id:n.entryId,component_name:"productTableV2",contentful_name:n.name,...t})},JE=(e,t)=>{switch(t.type){case"toggle-filter-block":return{...e,filterBlockOpen:!e.filterBlockOpen};case"set-draft-filter":return{...e,draftFilters:{...e.draftFilters,[t.label]:t.values}};case"set-calculator-inputs":return{...e,calculatorInputs:t.inputs};case"request-start":return{...e,loading:!0};case"request-success":{const n=t.append?[...e.rows,...t.rows]:t.rows,r=!t.append&&t.totalHits===0,o=r?!0:t.closeFilterBlock?!1:e.filterBlockOpen;return{...e,rows:n,totalHits:t.totalHits,loading:!1,noResults:r,filterBlockOpen:o,...t.appliedFilters!==void 0?{appliedFilters:t.appliedFilters,draftFilters:t.appliedFilters}:{},...t.sortLabel!==void 0?{sortLabel:t.sortLabel}:{}}}case"request-error":return{...e,loading:!1}}},$l=async e=>{const t=await fetch("/fs/actions/product-table-v2",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)return null;const n=await t.json(),r=V(n)&&Array.isArray(n.hits)?n.hits:[],o=V(n)&&typeof n.totalHits=="number"?n.totalHits:0;return{hits:r,totalHits:o}},e3=e=>{const t=e._source;if(!V(t))return"";const n=t.definition;return V(n)&&typeof n.display_name=="string"?n.display_name:""},t3=e=>e?.selectable?.length?[{value:"",label:"Sort"},...e.selectable.map(t=>({value:t.label,label:t.label}))]:[],n3=(e,t,n,r)=>{x.useEffect(()=>{const o=new IntersectionObserver(i=>{for(const a of i){if(!a.isIntersecting||a.intersectionRatio<.5)continue;const l=a.target;if(!(l instanceof HTMLElement))continue;const c=l.dataset.productId;if(c&&!n.current.has(c)){n.current.add(c);const d=e.findIndex(u=>u._id===c);Hn("viewed",{product_id:c,index:d},r),o.unobserve(a.target)}}},{threshold:.5});if(t.current)for(const i of t.current.querySelectorAll("[data-product-id]")){if(!(i instanceof HTMLElement))continue;const a=i.dataset.productId;a&&!n.current.has(a)&&o.observe(i)}return()=>{o.disconnect()}},[e,r,t,n])},r3=({initialRows:e,initialTotalHits:t,schema:n,schemaId:r,datasetId:o,entryId:i,name:a,title:l,datasetName:c})=>{const{filters:d,sorts:u,complianceText:f,maxPerPage:m=15,calculator:h}=n,p=t3(u),b=u?.selectable?.find(I=>I.default),[g,y]=x.useReducer(JE,{rows:e,totalHits:t,draftFilters:{},appliedFilters:{},sortLabel:b?.label,loading:!1,filterBlockOpen:!1,noResults:!1,calculatorInputs:h?.defaultInputs??{}}),w=x.useRef(null),k=x.useRef(new Set),A=x.useMemo(()=>({entryId:i,name:a}),[i,a]),v=x.useCallback(async({sortLabel:I,filterSelections:_,calculatorInputs:$,pageOffset:z=0,append:Y=!1,newAppliedFilters:X,closeFilterBlock:q=!1})=>{y({type:"request-start"});try{const K=await $l({schemaId:r,datasetId:o,sortLabel:I??g.sortLabel,filterSelections:_??g.appliedFilters,pageOffset:z,maxPerPage:m,calculatorInputs:$??g.calculatorInputs});if(!K){y({type:"request-error"});return}y({type:"request-success",rows:K.hits,totalHits:K.totalHits,append:Y,closeFilterBlock:q,...X!==void 0?{appliedFilters:X}:{},...I!==void 0?{sortLabel:I}:{}})}catch{y({type:"request-error"})}},[r,o,m,g.sortLabel,g.appliedFilters,g.calculatorInputs]);n3(g.rows,w,k,A);const j=()=>{Hn("sortClicked",{},A)},E=I=>{const _=I.target.value;_&&(Hn("sortApplied",{event:_},A),w.current?.scrollIntoView(),v({sortLabel:_,calculatorInputs:g.calculatorInputs}))},N=(I,_)=>{y({type:"set-draft-filter",label:I,values:_})},S=()=>{w.current?.scrollIntoView(),v({filterSelections:g.draftFilters,newAppliedFilters:g.draftFilters,calculatorInputs:g.calculatorInputs,closeFilterBlock:!h?.isAlwaysVisible})},D=x.useCallback(async()=>{y({type:"request-start"});
118const I=g.rows.length,_=await $l({schemaId:r,datasetId:o,sortLabel:g.sortLabel,filterSelections:g.appliedFilters,pageOffset:I,maxPerPage:m,calculatorInputs:g.calculatorInputs});if(!_){y({type:"request-error"});return}y({type:"request-success",rows:_.hits,totalHits:_.totalHits,append:!0}),Hn("loadMoreClicked",{newProducts:_.hits.length,productIds:_.hits.map($=>$._id).join(";"),productNames:_.hits.map(e3).join(";")},A)},[r,o,g.rows.length,g.sortLabel,g.appliedFilters,m,g.calculatorInputs,A]),L=(I,_,$)=>{Hn($?"moreInformation Opened":"moreInformation Closed",{product_id:I,index:_},A)},F=g.sortLabel??b?.label,M=AE(f,{resultCount:g.totalHits,resultOrResults:g.totalHits===1?"result":"results",complianceLink:"/how-we-order-our-comparisons",sortBy:F}),P=(d?.length??0)>0,T=g.totalHits-g.rows.length,R=I=>{y({type:"set-calculator-inputs",inputs:I})};return s.jsxs("div",{id:SE(a),className:"mx-auto bg-white","data-product-table-v2-wrapper":!0,ref:w,children:[l&&s.jsx("h2",{className:"font-heading text-xl md:text-2xl font-semibold text-primary mb-3",children:l}),s.jsx(QE,{compliance:M,hasFilters:P||!!h&&!fd(h)&&!h.isAlwaysVisible,sortOptions:p,selectedSortLabel:F,onRefineClick:()=>{y({type:"toggle-filter-block"})},onSortClick:j,onSortChange:E}),s.jsx(NE,{calculator:h,inputs:g.calculatorInputs,isOpen:g.filterBlockOpen,loading:g.loading,onChange:R,onSubmit:S}),P&&d!==void 0&&s.jsx(EE,{filters:d,selections:g.draftFilters,onChange:N,isOpen:g.filterBlockOpen,noResults:g.noResults,onSubmit:S}),s.jsx("div",{className:PE(g.loading),"data-dataset-id":o,"data-contentful-table-id":i,"data-contentful-name":a,"data-product-table-v2":!0,children:g.rows.map((I,_)=>s.jsx(XE,{product:I,index:_,schema:n,datasetName:c,onMoreInfoToggle:L,componentId:i},I._id))}),T>0&&s.jsx("div",{className:"flex justify-center mt-4","data-product-table-v2-load-more":!0,children:s.jsxs(Kt,{variant:"primary",size:"large",onClick:()=>{D()},disabled:g.loading,children:["Load ",Math.min(m,T)," more"]})})]})},s3=({name:e,title:t,schema:n,data:r,totalHits:o,entryId:i,schemaId:a,datasetId:l,datasetName:c})=>s.jsx(r3,{initialRows:r,initialTotalHits:o,schema:n,schemaId:a,datasetId:l,entryId:i,name:e,title:t,datasetName:c}),o3=({entry:e})=>{const{linkedEntries:t,productTableData:n}=J();if(!bE(e))return null;const{name:r,title:o,schema:i,dataset:a}=e.fields,l=e.sys.id,c=ke(i,t,"productTableSchema"),d=ke(a,t,"productDataset"),u=n?.[l];if(!c||!d||!u)return null;const f=c.schema,m=u.products,h=u.totalHits??m.length;return s.jsx(s3,{name:r,title:o,schema:f,data:m,totalHits:h,entryId:l,schemaId:i.sys.id,datasetId:a.sys.id,datasetName:d.name})},i3=ee("providersLogoModule"),a3=3,Ou=10,Rr=6,Fl=3,l3=e=>{if(e<=Rr)return{rows:1,columnsPerRow:e};let t;for(let n=Rr;n>1;n-=1){const r=e%n,o=n-r,i=Math.ceil(e/n);if(i>Fl)return t?{rows:t.rows,columnsPerRow:t.columnsPerRow}:{rows:Fl,columnsPerRow:Rr};if(r===0)return{rows:i,columnsPerRow:n};(!t||o<t.difference)&&(t={rows:i,columnsPerRow:n,difference:o})}return t?{rows:t.rows,columnsPerRow:t.columnsPerRow}:{rows:1,columnsPerRow:Rr}},c3=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},d3=({providers:e,brand:t="money",name:n,maxProvidersToDisplay:r=Ou})=>{if(e.length===0)return null;const i=[...e].sort((a,l)=>a.name.toLowerCase().localeCompare(l.name.toLowerCase())).slice(0,r);return s.jsx("div",{id:n,className:"marquee-fade-edges h-[75px] my-6 mx-auto",children:s.jsxs("div",{className:"absolute top-0 left-0 whitespace-nowrap animate-bannermove",children:[i.map(a=>s.jsx("img",{src:`${a[t]}?w=100&auto=format%2Ccompress`,alt:a.name,loading:"lazy",className:"inline max-w-[100px] max-h-[75px] align-middle mr-[30px]"},a.id)),i.map(a=>s.jsx("img",{src:`${a[t]}?w=100&auto=format%2Ccompress`,alt:"","aria-hidden":"true",loading:"lazy",className:"inline max-w-[100px] max-h-[75px] align-middle mr-[30px]"},`${a.id}-dup`))]})})},u3=({providers:e,brand:t="money",clickable:n=!1,variant:r,name:o,maxProvidersToDisplay:i=Ou})=>{if(e.length<a3)return null;const l=[...e].sort((m,h)=>m.name.toLowerCase().localeCompare(h.name.toLowerCase())).slice(0,i),{rows:c,columnsPerRow:d}=l3(l.length),u=c3(l.slice(0,c*d),d),f=n&&r!=="no-link-text";return s.jsx("div",{id:o,className:"flex overflow-x-auto snap-x snap-mandatory whitespace-nowrap md:grid md:overflow-x-hidden md:whitespace-normal md:grid-cols-1 md:gap-y-5",children:u.map((m,h)=>s.jsx("div",{className:`inline-flex gap-x-5 md:grid ${h>0?"ml-5 md:ml-0":""}`,style:{gridTemplateColumns:`repeat(${String(m.length)}, minmax(0, 1fr))`},children:m.map((p,b)=>{const g=n?p.link??p.slug:void 0,y=s.jsxs("div",{className:"flex h-full flex-1 flex-col items-center justify-center text-primary border border-grey20 p-2 md:p-4 w-[120px] md:w-auto snap-center",children:[s.jsx("img",{src:`${p[t]}?w=120&auto=format%2Ccompress`,alt:p.name,loading:"lazy",className:n?"max-w-[70px] max-h-[42px] md:max-w-[102px] md:max-h-[48px] w-auto h-auto mb-2":"max-w-[70px] max-h-[42px] md:max-w-[102px] md:max-h-[48px] w-auto h-auto my-5 md:my-0"}),f&&s.jsx("span",{className:"text-center whitespace-break-spaces break-words body-base",children:p.name})]}),w=p.id,k=String(h*d+b+1);
118return n&&g?s.jsx("a",{href:g,"data-provider-number":k,className:"hover:[&>div]:border-accent focus:[&>div]:border-accent active:[&>div]:border-accent",children:y},w):s.jsx("div",{"data-provider-number":k,children:y},w)})},`row-${String(h)}`))})},f3=e=>e==="money"||e==="uswitch",m3=(e,t)=>{const{name:n,brand:r,clickable:o,variant:i}=e.fields,a=t?.[e.sys.id]??[];if(a.length===0)return null;const l=f3(r)?r:"money";return i==="platinum"?s.jsx(d3,{name:n,providers:a,brand:l}):s.jsx(u3,{name:n,providers:a,brand:l,clickable:o??!1,variant:i})},p3=({entry:e})=>{const t=uc();return i3(e)?m3(e,t):null},h3=ee("readMoreModule"),x3=({heading:e,linkedUrls:t})=>{const{linkedEntries:n,linkedAssets:r}=J(),o=t.map(i=>{const a=ke(i,n,"url");if(!a)return null;const c=a.variants?.[0];if(!c)return null;const d=ke(c,n,"modularPage");if(!d)return null;const{title:u,metaDescription:f,metaImage:m,linkText:h}=d,p=m?r.find(y=>y.sys.id===m.sys.id):void 0,b=p?.fields.file?.url,g=b?.startsWith("//")?`https:${b}`:b;return{id:i.sys.id,title:u,metaDescription:f,imageUrl:g,imageAlt:p?.fields.description,linkHref:a.url,ctaText:h}}).filter(i=>i!==null);return o.length===0?null:s.jsxs("div",{className:"w-full my-3 lg:my-6",children:[e&&s.jsx(he,{content:e}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map(i=>s.jsx(or,{url:i.linkHref??"",title:i.title,description:i.metaDescription,imageUrl:i.imageUrl,imageAlt:i.imageAlt,ctaText:i.ctaText},i.id))})]})},g3=({entry:e})=>{if(!h3(e))return null;const{heading:t,linkedUrls:n}=e.fields;return s.jsx(x3,{heading:t,linkedUrls:n})},b3=ee("richTextModule"),y3=({links:e})=>s.jsx("ul",{className:"m-0 list-none p-0",children:e.map(({text:t,url:n})=>s.jsx("li",{className:"relative py-2 [padding-left:var(--side-nav-link-padding-left)] before:absolute before:bottom-0 before:left-[11px] before:top-0 before:w-0.5 before:bg-grey30 before:content-[''] before:[display:var(--side-nav-timeline-display)] first:before:top-1/2 last:before:bottom-1/2 after:absolute after:left-1.5 after:top-1/2 after:h-3 after:w-3 after:-translate-y-1/2 after:rounded-full after:border-2 after:border-grey30 after:bg-white after:content-[''] after:[display:var(--side-nav-timeline-display)]",children:s.jsx("a",{href:n,className:"text-grey60 body-sm no-underline hover:underline",children:t})},n))}),v3=({internalLinks:e,additionalLinks:t=[],defaultOpen:n=!1})=>{const r=[e,...t].filter(i=>i.links.length>0),o=n?r.map((i,a)=>`nav-group-${a}`):void 0;return s.jsx("nav",{className:"md:border-l md:border-grey20 md:pl-4 md:ml-4",children:s.jsx(ni,{type:"multiple",defaultValue:o,children:r.map((i,a)=>s.jsxs(ri,{value:`nav-group-${a}`,children:[s.jsx(si,{className:"body-base-bold pl-[var(--side-nav-header-padding-x)] pr-[var(--side-nav-header-padding-x)] md:pl-[var(--side-nav-header-padding-x)] md:pr-[var(--side-nav-header-padding-x)] [&_.accordion-icon]:order-last [&_.accordion-icon]:pt-0 [&_.accordion-icon]:pr-0 [&_.accordion-icon]:pl-3 [&_.accordion-icon]:md:pl-4 justify-between bg-[var(--side-nav-header-bg)] rounded-[var(--side-nav-header-radius)]",children:i.title}),s.jsx(oi,{forceMount:!0,className:"[[data-state=closed]>&]:hidden md:pl-2",children:s.jsx(y3,{links:i.links})})]},a))})})},w3=e=>{if(!e?.content)return[];const t=[];for(const n of e.content){if(n.nodeType!==C.HEADING_2)continue;const r=gn(n);r&&t.push({text:r,kebabText:qo(r)})}return t},j3=(e,t)=>{const n=[];for(const r of e){const o=ke(r,t,"linkListItem");if(o){let a=o.url;if(!a&&o.urlRef){const l=ke(o.urlRef,t,"url");l&&(a=l.url)}a&&n.push({text:o.title??a,url:a});continue}const i=ke(r,t,"url");i?.url&&n.push({text:i.title??i.url,url:i.url})}return n},Bl=te({variants:{textAlign:{left:"",center:"flex justify-center text-center",default:""}},defaultVariants:{textAlign:"left"}}),N3=te({variants:{variant:{"narrow-width":"max-w-[720px] mx-auto","full-width":"mx-auto",default:"mx-auto"},textAlign:{left:"w-full",center:"w-[85%] sm:w-3/5",default:"w-full"}},defaultVariants:{variant:"default",textAlign:"left"}}),k3=({content:e,hasSideBar:t=!1,sideNavLinks:n=[],sideBarTitle:r="In this guide",textAlign:o="left",variant:i="default"})=>{const{linkedEntries:a}=J(),l=x.useMemo(()=>w3(e),[e]),c=x.useMemo(()=>{const d=[];for(const u of n){const f=ke(u,a,"linkList");if(!f)continue;const m=j3(f.links,a);m.length>0&&d.push({title:f.title??"",links:m})}return d},[n,a]);if(!e&&!t)return null;if(t&&(l.length>0||c.length>0)){const d={title:r,links:l.map(u=>({text:u.text,url:`#${u.kebabText}`}))};return s.jsx("div",{className:Bl({textAlign:o}),children:s.jsxs("div",{className:"md:flex md:flex-row flex-col-reverse flex w-full",children:[s.jsx("div",{className:"md:basis-2/3 md:flex-1",children:e&&s.jsx(he,{content:e,addHeadingIds:l.length>0})}),s.jsx("div",{className:"md:basis-1/3 mb-4 md:mb-0",children:s.jsx(v3,{internalLinks:d,additionalLinks:c})})]})})}return s.jsx("div",{className:Bl({textAlign:o}),children:s.jsx("div",{className:N3({variant:i,textAlign:o}),children:e&&s.jsx(he,{content:e})})})},E3=({entry:e})=>
118{if(!b3(e))return null;const{content:t,hasSideBar:n,sideNavLinks:r,sideBarTitle:o,textAlign:i,variant:a}=e.fields;return s.jsx(k3,{content:t,hasSideBar:n,sideNavLinks:r,sideBarTitle:o,textAlign:i,variant:a})},_3=e=>e&&e.startsWith("/")&&!e.startsWith("//")?e:null,C3=ee("signIn"),Si=e=>e==="forcedVerification",T3=({email:e,setEmail:t,label:n="Email address",placeholder:r="Enter your email",variant:o})=>s.jsxs(s.Fragment,{children:[s.jsx("label",{className:"body-base",htmlFor:"emailAddress",children:n}),s.jsx("input",{className:"border border-grey30 rounded-[3px] bg-grey10 my-2 h-[50px] px-4 read-only:text-grey50",id:"emailAddress",name:"email",value:e,placeholder:r,onChange:i=>{t(i.target.value)},readOnly:Si(o),onBlur:()=>{const i={event_name:"formFieldInteracted",form_name:"SignInForm",event_data:JSON.stringify({name:"emailAddress",value:"untracked"}),component_id:"",component_name:"SignIn component"};rc(i)}})]});var S3=Object.defineProperty,A3=Object.defineProperties,R3=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertySymbols,Mu=Object.prototype.hasOwnProperty,$u=Object.prototype.propertyIsEnumerable,zl=(e,t,n)=>t in e?S3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P3=(e,t)=>{for(var n in t||(t={}))Mu.call(t,n)&&zl(e,n,t[n]);if(Qr)for(var n of Qr(t))$u.call(t,n)&&zl(e,n,t[n]);return e},I3=(e,t)=>A3(e,R3(t)),L3=(e,t)=>{var n={};for(var r in e)Mu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Qr)for(var r of Qr(e))t.indexOf(r)<0&&$u.call(e,r)&&(n[r]=e[r]);return n};function D3(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function O3(e){let t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var M3=18,Fu=40,$3=`${Fu}px`,F3=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function B3({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,i]=x.useState(!1),[a,l]=x.useState(!1),[c,d]=x.useState(!1),u=x.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&a,[o,a,n]),f=x.useCallback(()=>{let m=e.current,h=t.current;if(!m||!h||c||n==="none")return;let p=m,b=p.getBoundingClientRect().left+p.offsetWidth,g=p.getBoundingClientRect().top+p.offsetHeight/2,y=b-M3,w=g;document.querySelectorAll(F3).length===0&&document.elementFromPoint(y,w)===m||(i(!0),d(!0))},[e,t,c,n]);return x.useEffect(()=>{let m=e.current;if(!m||n==="none")return;function h(){let b=window.innerWidth-m.getBoundingClientRect().right;l(b>=Fu)}h();let p=setInterval(h,1e3);return()=>{clearInterval(p)}},[e,n]),x.useEffect(()=>{let m=r||document.activeElement===t.current;if(n==="none"||!m)return;let h=setTimeout(f,0),p=setTimeout(f,2e3),b=setTimeout(f,5e3),g=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(h),clearTimeout(p),clearTimeout(b),clearTimeout(g)}},[t,r,n,f]),{hasPWMBadge:o,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:$3}}var z3=x.createContext({}),Bu=x.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:i,textAlign:a="left",pattern:l,placeholder:c,inputMode:d="numeric",onComplete:u,pushPasswordManagerStrategy:f="increase-width",pasteTransformer:m,containerClassName:h,noScriptCSSFallback:p=H3,render:b,children:g}=n,y=L3(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,k,A,v,j;let[E,N]=x.useState(typeof y.defaultValue=="string"?y.defaultValue:""),S=r??E,D=O3(S),L=x.useCallback(U=>{o?.(U),N(U)},[o]),F=x.useMemo(()=>l?typeof l=="string"?new RegExp(l):l:null,[l]),M=x.useRef(null),P=x.useRef(null),T=x.useRef({value:S,onChange:L,isIOS:typeof window<"u"&&((k=(w=window?.CSS)==null?void 0:w.supports)==null?void 0:k.call(w,"-webkit-touch-callout","none"))}),R=x.useRef({prev:[(A=M.current)==null?void 0:A.selectionStart,(v=M.current)==null?void 0:v.selectionEnd,(j=M.current)==null?void 0:j.selectionDirection]});x.useImperativeHandle(t,()=>M.current,[]),x.useEffect(()=>{let U=M.current,Z=P.current;if(!U||!Z)return;T.current.value!==U.value&&T.current.onChange(U.value),R.current.prev=[U.selectionStart,U.selectionEnd,U.selectionDirection];function be(){if(document.activeElement!==U){X(null),K(null);return}let me=U.selectionStart,_e=U.selectionEnd,pt=U.selectionDirection,He=U.maxLength,tt=U.value,Ze=R.current.prev,nt=-1,ht=-1,xt;if(tt.length!==0&&me!==null&&_e!==null){let _n=me===_e,Cn=me===tt.length&&tt.length<He;if(_n&&!Cn){let Xe=me;if(Xe===0)nt=0,ht=1,xt="forward";else if(Xe===He)nt=Xe-1,ht=Xe,xt="backward";else if(He>1&&tt.length>1){let Tn=0;if(Ze[0]!==null&&Ze[1]!==null){xt=Xe<Ze[1]?"backward":"forward";let Es=Ze[0]===Ze[1]&&Ze[0]<He;xt==="backward"&&!Es&&(Tn=-1)}nt=Tn+Xe,ht=Tn+Xe+1}}nt!==-1&&ht!==-1&&nt!==ht&&M.current.setSelectionRange(nt,ht,xt)}let fr=nt!==-1?nt:me,Qt=ht!==-1?ht:_e,Et=xt??pt;X(fr),K(Qt),R.current.prev=[fr,Qt,Et]}if(document.addEventListener("selectionchange",be,{capture:!0}),be(),document.activeElement===U&&z(!0),!document.getElementById("input-otp-style")){let me=document.createElement("style");if(me.id="input-otp-style",document.head.appendChild(me),me.sheet){let _e="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Mn(me.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Mn(me.sheet,`[data-input-otp]:autofill { ${_e} }`),Mn(me.sheet,`[data-input-otp]:-webkit-autofill { ${_e} }
118`),Mn(me.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Mn(me.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Ee=()=>{Z&&Z.style.setProperty("--root-height",`${U.clientHeight}px`)};Ee();let Se=new ResizeObserver(Ee);return Se.observe(U),()=>{document.removeEventListener("selectionchange",be,{capture:!0}),Se.disconnect()}},[]);let[I,_]=x.useState(!1),[$,z]=x.useState(!1),[Y,X]=x.useState(null),[q,K]=x.useState(null);x.useEffect(()=>{D3(()=>{var U,Z,be,Ee;(U=M.current)==null||U.dispatchEvent(new Event("input"));let Se=(Z=M.current)==null?void 0:Z.selectionStart,me=(be=M.current)==null?void 0:be.selectionEnd,_e=(Ee=M.current)==null?void 0:Ee.selectionDirection;Se!==null&&me!==null&&(X(Se),K(me),R.current.prev=[Se,me,_e])})},[S,$]),x.useEffect(()=>{D!==void 0&&S!==D&&D.length<i&&S.length===i&&u?.(S)},[i,u,D,S]);let oe=B3({containerRef:P,inputRef:M,pushPasswordManagerStrategy:f,isFocused:$}),je=x.useCallback(U=>{let Z=U.currentTarget.value.slice(0,i);if(Z.length>0&&F&&!F.test(Z)){U.preventDefault();return}
118typeof D=="string"&&Z.length<D.length&&document.dispatchEvent(new Event("selectionchange")),L(Z)},[i,L,D,F]),re=x.useCallback(()=>{var U;if(M.current){let Z=Math.min(M.current.value.length,i-1),be=M.current.value.length;(U=M.current)==null||U.setSelectionRange(Z,be),X(Z),K(be)}z(!0)},[i]),ge=x.useCallback(U=>{var Z,be;let Ee=M.current;if(!m&&(!T.current.isIOS||!U.clipboardData||!Ee))return;let Se=U.clipboardData.getData("text/plain"),me=m?m(Se):Se;U.preventDefault();let _e=(Z=M.current)==null?void 0:Z.selectionStart,pt=(be=M.current)==null?void 0:be.selectionEnd,He=(_e!==pt?S.slice(0,_e)+me+S.slice(pt):S.slice(0,_e)+me+S.slice(_e)).slice(0,i);if(He.length>0&&F&&!F.test(He))return;Ee.value=He,L(He);let tt=Math.min(He.length,i-1),Ze=He.length;Ee.setSelectionRange(tt,Ze),X(tt),K(Ze)},[i,L,F,S]),we=x.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),ce=x.useMemo(()=>({position:"absolute",inset:0,width:oe.willPushPWMBadge?`calc(100% + ${oe.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:oe.willPushPWMBadge?`inset(0 ${oe.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:a,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[oe.PWM_BADGE_SPACE_WIDTH,oe.willPushPWMBadge,a]),ae=x.useMemo(()=>x.createElement("input",I3(P3({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":S.length===0||void 0,"data-input-otp-mss":Y,"data-input-otp-mse":q,inputMode:d,pattern:F?.source,"aria-placeholder":c,style:ce,maxLength:i,value:S,ref:M,onPaste:U=>{var Z;ge(U),(Z=y.onPaste)==null||Z.call(y,U)},onChange:je,onMouseOver:U=>{var Z;_(!0),(Z=y.onMouseOver)==null||Z.call(y,U)},onMouseLeave:U=>{var Z;_(!1),(Z=y.onMouseLeave)==null||Z.call(y,U)},onFocus:U=>{var Z;re(),(Z=y.onFocus)==null||Z.call(y,U)},onBlur:U=>{var Z;z(!1),(Z=y.onBlur)==null||Z.call(y,U)}})),[je,re,ge,d,ce,i,q,Y,y,F?.source,S]),B=x.useMemo(()=>({slots:Array.from({length:i}).map((U,Z)=>{var be;let Ee=$&&Y!==null&&q!==null&&(Y===q&&Z===Y||Z>=Y&&Z<q),Se=S[Z]!==void 0?S[Z]:null,me=S[0]!==void 0?null:(be=c?.[Z])!=null?be:null;return{char:Se,placeholderChar:me,isActive:Ee,hasFakeCaret:Ee&&Se===null}}),isFocused:$,isHovering:!y.disabled&&I}),[$,I,i,q,Y,y.disabled,S]),ue=x.useMemo(()=>b?b(B):x.createElement(z3.Provider,{value:B},g),[g,B,b]);return x.createElement(x.Fragment,null,p!==null&&x.createElement("noscript",null,x.createElement("style",null,p)),x.createElement("div",{ref:P,"data-input-otp-container":!0,style:we,className:h},ue,x.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ae)))});Bu.displayName="Input";function Mn(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var H3=`
119[data-input-otp] {
120  --nojs-bg: white !important;
121  --nojs-fg: black !important;
122
123  background-color: var(--nojs-bg) !important;
124  color: var(--nojs-fg) !important;
125  caret-color: var(--nojs-fg) !important;
126  letter-spacing: .25em !important;
127  text-align: center !important;
128  border: 1px solid var(--nojs-fg) !important;
129  border-radius: 4px !important;
130  width: 100% !important;
131}
132@media (prefers-color-scheme: dark) {
133  [data-input-otp] {
134    --nojs-bg: black !important;
135    --nojs-fg: white !important;
136  }
137}`;const V3="We've sent a sign in code to {email}. Enter it below. It may take a few minutes to arrive.",U3=(e,t)=>{const n=e.split("{email}");return n.map((r,o)=>s.jsxs(x.Fragment,{children:[r,o<n.length-1&&s.jsx("b",{children:t})]},o))},G3=({email:e,onComplete:t,body:n=V3})=>s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"max-w-[375px] body-base",children:[U3(n,e)," "]}),s.jsx(Bu,{maxLength:6,containerClassName:"flex items-center mt-8 justify-center",name:"otp",onComplete:t,inputMode:"text",render:({slots:r})=>s.jsx("div",{className:"flex gap-2 lg:gap-4",children:r.map((o,i)=>s.jsx("div",{className:`
138              p-4 min-h-16 lg:min-h-19 min-w-12 lg:min-w-16 body-lg-bold text-primary capitalize
139              flex items-center justify-center
140              border rounded-[3px] bg-grey5
141              ${o.isActive?"border-accent border-2":"border-grey50"}
142            `,children:o.char??""},i))})})]}),W3=30,q3=10,Y3="Didn't get a code?",Hl="Resend code",K3="You've reached the limit for new codes. Please use the most recent one, or try again later.",Z3=({email:e,action:t,onResent:n,cooldownSeconds:r=W3})=>{const o=Br(),[i,a]=x.useState(0),[l,c]=x.useState(0),{data:d}=o;x.useEffect(()=>{d?.OTPSent===!0&&n()},[d]),x.useEffect(()=>{if(l===0||r===0)return;a(r);let b=r;const g=setInterval(()=>{b-=1,a(b),b===0&&clearInterval(g)},1e3);return()=>{clearInterval(g)}},[l]);const u=i>0,f=l>=q3,m=d?.OTPSent===!0?`New code sent to ${e}.`:"",h=f?K3:d?.error??m,p=()=>{c(b=>b+1),o.submit({email:e,[Po]:"true",[pm]:hm},{method:"post",action:t})};return s.jsxs("div",{className:"body-sm text-center w-full mb-3",children:[!f&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{children:[Y3," "]}),s.jsx("button",{type:"button",onClick:p,disabled:o.state!=="idle"||u,className:"underline text-link cursor-pointer disabled:cursor-not-allowed disabled:text-muted disabled:no-underline",children:u?`${Hl} in ${i}s`:Hl})]}),s.jsx("p",{"aria-live":"polite",className:f||d?.error?"text-error mt-1":"mt-1",children:h})]})},X3="We'll send you a code to sign in securely.",Q3="Check your junk box if you can't find the code.",bo="/actions/auth/otp",J3="/actions/auth/otp/verify",zu={renderNode:{[ye.HYPERLINK]:(e,t)=>{const n=typeof e.data.uri=="string"?e.data.uri:void 0;return s.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"underline text-link",children:t})}}},e_=({error:e})=>e?s.jsx("p",{className:"text-error text-sm mt-2",children:e}):null,t_=()=>s.jsxs(s.Fragment,{children:["By continuing, you agree to our"," ",s.jsx("a",{href:"https://www.money.co.uk/terms-and-conditions",target:"_blank",rel:"noopener noreferrer",className:"underline text-link",children:"terms of use"}),"."]}),n_=({junkBoxTip:e=Q3,termsText:t,children:n})=>s.jsxs("div",{className:"flex flex-col items-center",children:[s.jsx("span",{className:"body-sm text-center my-3 w-full",children:e}),n,s.jsx("span",{className:"body-sm text-center mb-3 border-t border-grey30 pt-3 w-full",children:t?At(t,zu):s.jsx(t_,{})})]}),r_=()=>s.jsxs(s.Fragment,{children:["Click here if you do not want to re
142ceive money-saving deals and expert insights from money.co.uk."," ",s.jsx("a",{href:"https://www.money.co.uk/privacy-notice",target:"_blank",rel:"noreferrer",className:"underline text-link",children:"Privacy notice"})]}),s_=({consentOptOutText:e})=>{const t=Br();return x.useEffect(()=>{t.load("/data/get-sme-consent-copy").catch(n=>{console.log("Failed to fetch consent copy data:",n)})},[]),s.jsxs("div",{className:"max-w-[500px]",children:[s.jsxs("div",{className:"flex items-start gap-2 mt-4",children:[s.jsx("input",{type:"checkbox",id:"consentOptOut",name:"consentOptOut",className:"w-6 h-6 shrink-0 checked:accent-accent"}),s.jsx("label",{htmlFor:"consentOptOut",className:"body-sm",children:e?At(e,zu):s.jsx(r_,{})})]}),t.data&&s.jsx("p",{className:"body-sm mt-2",children:t.data})]})},o_=({OTPSent:e,email:t,setEmail:n,hasConsent:r,setOTPEntered:o,redirectParam:i,variant:a,copy:l,otpAttempt:c})=>e?s.jsxs(s.Fragment,{children:[s.jsx(G3,{email:t,body:l.otpBody,onComplete:()=>{o(!0);const d={event_name:"formFieldInteracted",form_name:"SignInForm",event_data:JSON.stringify({name:"otp",value:"untracked"}),component_id:"",component_name:"SignIn component"};rc(d)}},c),s.jsx("input",{id:"emailAddress",name:"email",value:t,type:"hidden"}),i&&s.jsx("input",{id:"redirectParam",name:"redirectParam",value:i,type:"hidden"})]}):s.jsxs(s.Fragment,{children:[s.jsx(T3,{email:t,setEmail:n,label:l.emailLabel,placeholder:l.emailPlaceholder,variant:a}),s.jsx("span",{className:"body-sm",children:l.emailHelperText??X3}),Si(a)?s.jsx("input",{name:Po,value:"true",type:"hidden"}):!r&&s.jsx(s_,{consentOptOutText:l.consentOptOutText})]}),i_=/^(?!\.)(?!.*\.\.)([a-z0-9_'+\-.]*)[a-z0-9_+-]@([a-z0-9][a-z0-9-]*\.)+[a-z]{2,}$/i,a_=(e,t)=>({heading:e?t.otpStepHeading??"Check your email":t.emailStepHeading??"Sign in or create a business account",action:e?J3:bo,buttonText:e?"Submit":"Continue"}),l_=({redirectParam:e,copy:t={},variant:n})=>{const{sme:r}=J(),o=Br(),i=Br(),[a,l]=x.useState(r?.profile?.emailAddress??""),[c,d]=x.useState(!1),[u,f]=x.useState(0),[m]=es(),h=x.useRef(!1),p=Si(n),b=o.data?.OTPSent,g=o.state==="submitting",y=i_.test(a),w=!!i.data?.id,A=b===!0&&!c||i.state==="loading";x.useEffect(()=>{!p&&a&&y&&i.load(`/data/get-sme-consent?email=${encodeURIComponent(a)}`).catch(D=>{console.log("Failed to fetch consent data:",D)})},[a,y,p]);const{heading:v,action:j,buttonText:E}=a_(b,t),N=D=>m.toString()?`${D}?${m.toString()}`:D,S=()=>{d(!1),f(D=>D+1)};return x.useEffect(()=>{!p||h.current||!y||(h.current=!0,o.submit({email:a,[Po]:"true"},{method:"post",action:N(bo)}))},[p,y,a]),s.jsx("div",{className:"m-6 flex justify-center",children:s.jsxs(wn,{intent:"primary",className:"w-max",children:[b&&!p&&s.jsxs("button",{type:"button",className:" flex flex-row gap-1.5 underline text-link cursor-pointer mb-2 items-center",onClick:()=>{o.reset(),d(!1)},children:[s.jsx(H,{glyph:"back-arrow",color:"currentColor",ariaLabel:"",size:"small"}),"Back"]}),s.jsxs("div",{className:"flex flex-col gap-2 min-w-[200px] md:min-w-[500px]",children:[s.jsx("h3",{className:"heading-xs text-primary mb-3",children:v}),s.jsxs(o.Form,{method:"post",className:"flex flex-col",action:N(j),children:[s.jsx(o_,{OTPSent:b,email:a,setEmail:l,hasConsent:w,setOTPEntered:d,redirectParam:e,copy:t,variant:n,otpAttempt:u}),s.jsx(e_,{error:o.data?.error}),s.jsx(Kt,{className:"mt-8",variant:"primary",size:"large",loading:g,type:"submit",disabled:A,children:E})]}),b&&s.jsx(n_,{junkBoxTip:t.junkBoxTip,termsText:t.termsText,children:p&&s.jsx(Z3,{email:a,action:N(bo),onResent:S})})]})]})})},c_=({entry:e})=>{const[t]=es();if(!C3(e))return null;const{emailStepHeading:n,emailLabel:r,emailPlaceholder:o,emailHelperText:i,otpStepHeading:a,otpBody:l,junkBoxTip:c,termsText:d,consentOptOutText:u,variant:f}=e.fields;return s.jsx(l_,{redirectParam:_3(t.get("r")),copy:{emailStepHeading:n,emailLabel:r,emailPlaceholder:o,emailHelperText:i,otpStepHeading:a,otpBody:l,junkBoxTip:c,termsText:d,consentOptOutText:u},variant:f})},d_=ee("sponsoredByTag"),u_=450,f_=te({slots:{wrapper:"flex items-end [justify-content:var(--sponsored-by-tag-justify)] py-1 pt-4",text:"leading-none text-white",image:"ml-2 w-auto [height:var(--sponsor-logo-height)] [max-height:var(--sponsor-logo-max-height)] [max-width:var(--sponsor-logo-max-width)] md:[max-width:var(--sponsor-logo-max-width-md)]"},variants:{variant:{base:{text:"body-xs"},wrap:{wrapper:"flex-col items-center [--sponsored-by-tag-justify:center]",text:"body-xs text-primary"},hero:{wrapper:"items-center",text:"body-base text-primary"},form:{wrapper:"items-center [--sponsored-by-tag-justify:center] rounded-sm bg-white px-6 py-4 md:px-12",text:"body-xs text-grey100",image:"ml-4 h-auto w-[149px] max-w-none"}
142,centered:{wrapper:"items-center",text:"body-xs"},"centered-light":{wrapper:"inline-flex w-full items-center [--sponsored-by-tag-justify:flex-end] py-1 pt-4 text-right",text:"body-xs text-white",image:"ml-2.5"}}},defaultVariants:{variant:"base"}}),m_=({providerLogoSrc:e,providerText:t="Sponsored by",providerName:n="",variant:r="base",className:o})=>{const{wrapper:i,text:a,image:l}=f_({variant:r});return s.jsxs("div",{className:i({class:o}),children:[s.jsx("span",{className:a(),children:t}),e&&s.jsx(Re,{src:e,alt:n,width:u_,critical:!0,className:l()})]})},p_={base:!0,wrap:!0,hero:!0,form:!0,centered:!0,"centered-light":!0},h_=e=>e in p_,x_=({entry:e})=>{const{linkedAssets:t}=J();if(!d_(e))return null;const{displayText:n,providerLogo:r,variant:o}=e.fields,a=(r?yt(r,t):void 0)?.fields.file?.url;if(!a)return null;const l=o&&h_(o)?o:"base";return s.jsx(m_,{providerLogoSrc:a,providerText:n,providerName:"",variant:l})},g_=ee("stepForm"),b_=()=>s.jsxs(s.Fragment,{children:[s.jsx("ul",{className:"flex justify-between items-center relative my-8 mx-auto w-4/5 p-0 list-none before:content-[''] before:absolute before:top-1/2 before:left-0 before:h-1 before:-translate-y-1/2 before:bg-grey20 before:w-full",children:Array.from({length:3}).map((e,t)=>s.jsx("li",{className:"skeleton relative z-10 w-5 h-5 rounded-full"},t))}),s.jsx("div",{className:"flex justify-center",children:s.jsx("div",{className:"skeleton h-5 w-40"})})]}),Hs=()=>s.jsxs("div",{className:"my-6 flex flex-col gap-2",children:[s.jsx("div",{className:"skeleton h-5 w-36"}),s.jsx("div",{className:"skeleton h-12 w-full rounded-lg"})]}),y_=()=>s.jsxs("div",{className:"w-[500px] mx-auto",children:[s.jsx(b_,{}),s.jsx("div",{className:"skeleton h-8 w-48 mb-4"}),s.jsx("div",{className:"skeleton h-6 w-64 mb-6"}),s.jsx(Hs,{}),s.jsx(Hs,{}),s.jsx(Hs,{}),s.jsx("div",{className:"skeleton h-12 w-40 rounded-full mt-4 mx-auto"})]}),v_=x.lazy(async()=>await lt(()=>import("./index-DGamNLbB.js"),__vite__mapDeps([15,1,6,16,2,3,14,10,4,5]))),w_=e=>s.jsx(x.Suspense,{fallback:s.jsx(y_,{}),children:s.jsx(v_,{...e})}),j_=({entry:e})=>{const t=bm();if(!g_(e))return null;const{formConfig:n,productSchema:r}=e.fields,o=t?.[e.sys.id]??null;return s.jsx(w_,{config:n,entryId:e.sys.id,contentType:e.sys.contentType.sys.id,productData:o,productSchema:r})},Vl=ee("suggestedProducts"),Vs=2,Ul=100,N_=({percent:e,color:t="rgba(59,130,246,.5)"})=>{const o=40-5*Vs,i=t,a=typeof e=="string"?parseInt(e):e;return s.jsx("div",{className:"flex items-center justify-center",children:s.jsxs("svg",{height:40*Vs,width:40*Vs,children:[s.jsx("circle",{stroke:"lightgray",fill:"transparent",strokeWidth:5,r:o,cx:40,cy:40}),s.jsx("circle",{stroke:i,fill:"transparent",strokeWidth:5,strokeDashoffset:25,strokeDasharray:e+" "+(Ul-a),pathLength:Ul,r:o,cx:40,cy:40}),s.jsx("text",{x:"50%",y:"50%",dy:"6px",dx:"2px",textAnchor:"middle",fill:"black",style:{fontSize:"16px"},children:`${e}%`})]})})},Hu="suggested-products",k_=3,yo={"business-savings":{label:"Business Savings",schemaCategory:"business-savings",icon:"business-savings",resultsPage:"/business/business-savings-accounts/results#business-savings-account-deals"},"business-current-accounts-1-year-plus":{label:"Business Bank Account",schemaCategory:"business-current-accounts",icon:"business-current-accounts",resultsPage:"/business/bank-accounts/results"},"business-current-accounts":{label:"Business Bank Account",schemaCategory:"business-current-accounts",icon:"business-current-accounts",resultsPage:"/business/bank-accounts/results"},"business-insurance":{label:"Business Insurance",schemaCategory:"business-insurance",icon:"business-insurance",resultsPage:void 0},"business-loans":{label:"Business Loans",schemaCategory:"business-loans",icon:"business-loans",resultsPage:void 0},"startup-business-loans":{label:"Startup Business Loans",schemaCategory:"business-loans",icon:"business-loans",resultsPage:"/business/business-loans/start-up-business-loans#startup-business-loans-deals"},"invoice-financing":{label:"Invoice Financing",schemaCategory:"invoice-financing",icon:"invoice-financing",resultsPage:"/business/business-loans/invoice-finance#invoice-finance-deals"},"invoice-financing-triver":{label:"Advance your invoices",schemaCategory:"cash-flow-financing",icon:"invoice-financing",resultsPage:"/business/business-loans/invoice-finance#invoice-finance-deals"},"business-credit-cards":{label:"Business Credit Cards",schemaCategory:"business-credit-cards",icon:"business-credit-cards",resultsPage:"/business/business-credit-cards/results"},"credit-reports-broker":{label:"Credit Report Broker",schemaCategory:"credit-reports-broker",icon:"business-credit-cards",resultsPage:void 0},"business-electricity-insurance-broker":{label:"Business Energy",schemaCategory:"business-electricity-insurance-broker",icon:"business-electricity",resultsPage:void 0}},E_=(e,t)=>Array.isArray(e)?e.reduce((n,{href:r,text:o})=>{const i=ne(r,t),a=ne(o,t);return!n.href&&i&&typeof i=="string"?{href:i,text:String(a??"")}:n},{href:null,text:null}):{href:String(ne(e.href,t)??""),text:String(ne(e.text,t)??"")},__=({eligibilityPercent:e,eligibilityText:t})=>s.jsxs("div",{className:"flex items-center gap-3 rounded-b-lg border-2 border-accent px-2 py-3",children:[s.jsx(N_,{percent:e,color:"#00892B"}),t&&s.jsx("div",{className:"body-base-bold",children:t})]}),C_=({badge:e})=>s.jsxs("div",{"data-testid":"product-badge",className:"body-sm flex w-full items-center gap-2 rounded-lg border-2 border-accent px-4 py-2 text-left",children:[s.jsx("div",{className:"flex",children:s.jsx(H,{glyph:"star-banner",color:"var(--color-primary)",ariaLabel:"star-banner"})}),s.jsx("div",{children:e})]}),T_=({cells:e,productData:t})=>s.jsx("div",{className:"my-3 w-full",children:e.map((n,r)=>ne(n.content,t)?s.jsxs("div",{"data-testid":"product-cell",className:"my-3 rounded-lg bg-grey10 px-4 py-2",children:[s.jsx("div",{className:"body-sm",children:ne(n.label,t)}),s.jsx("div",{className:"body-sm-bold",children:ne(n.content,t)})]},r):null)}),S_=({schema:e,productData:t,badge:n,description:r,easyApply:o,imageSrc:i,primaryCtaHref:a,primaryCtaText:l,category:c,index:d,entryId:u})=>s.jsxs("div",{className:"mx-6 mb-3 mt-6 flex flex-1 flex-col items-center justify-between [&>div]:my-2 [&>img]:my-3 [&>img]:h-[60px] [&>img]:max-w-[300px]",children:[s.jsx("div",{"data-testid":"product-title",className:"body-lg-bold self-start text-accent",children:ne(e.title,t)}),n&&s.jsx(C_,{badge:String(n)}),s.jsx(T_,{cells:e.cells,productData:t}),r!=null&&s.jsx("div",{children:r}),o&&s.jsxs("div",{"data-testid":"prefill-message",children:[" ","⭐️ Some of your details will be pre-filled when you move to the next page."]}),i&&typeof i=="string"&&s.jsx(Re,{src:i,width:300,alt:"provider logo",critical:!0}),s.jsx(Me,{"data-testid":"product-cta-button",className:"mb-4 min-w-40",href:a,variant:o?"primary":"secondary",size:"large",target:"_blank",rel:"noopener noreferrer nofollow",position:d,id:u,componentName:Hu,children:l}),yo[c].resultsPage?s.jsx("a",{"data-testid":"view-other-providers-l
142ink",href:yo[c].resultsPage,target:"_blank",className:"body-base-bold text-link underline",rel:"noreferrer",children:"View other providers"}):s.jsx("div",{})]}),A_=({product:e,schema:t,category:n,pathname:r,canPrefill:o,index:i,entryId:a})=>{const l=E_(t.primaryCta,e),c=l.href?Yt(l.href,{usci:null,page:r}):void 0,u=(typeof l.href=="string"?new URL(l.href):void 0)?.searchParams.get("ln")==="application"&&o,f=t.eligibility&&ne(t.eligibility.eligibilityPercent,e),m=ne(t.image,e),h=ne(t.badge,e),p=t.description&&ne(t.description,e);return s.jsxs("div",{"data-testid":"product-card",className:"relative my-5 flex w-[95%] max-w-[390px] flex-1 flex-col rounded-3xl border-2 border-accent shadow-lg md:my-0",children:[typeof f=="string"&&s.jsx(__,{eligibilityPercent:f,eligibilityText:t.eligibility?.text[f]}),u&&s.jsx("div",{"data-testid":"easy-apply-badge",className:"body-base-bold absolute -translate-y-1/2 rounded-[10px] bg-surface-inverse px-2 py-3 text-white",children:"⭐️ Easy Apply"}),s.jsx(S_,{schema:t,productData:e,badge:h,description:p,easyApply:u,imageSrc:m,primaryCtaHref:c,primaryCtaText:l.text,category:n,index:i,entryId:a})]})},R_=({productSchemas:e,products:t,pathname:n,canPrefill:r,entryId:o})=>s.jsx("div",{"data-testid":Hu,className:"my-3 md:my-6",children:t.length>0&&s.jsx("div",{"data-testid":"product-cards-container",className:"flex flex-col items-center justify-around md:flex-row md:items-stretch md:gap-2",children:t.slice(Ks,k_).map((i,a)=>{const l=i._source?.category,c=e.find(d=>d.category===yo[l].schemaCategory);return c?s.jsx(A_,{index:a,product:i,schema:c,category:l,pathname:n,canPrefill:r,entryId:o},a):s.jsx("div",{},a)})})}),rt=Ue({value:ic([Ye(),bt(),Ys(),dm()]).optional(),valueFrom:Ye().optional(),validIf:Ye().optional()}),P_=Ue({category:Ye(),badge:rt,image:rt,title:rt,eligibility:Ue({eligibilityPercent:rt,text:um(Ye(),Ye())}).optional(),primaryCta:ic([Gn(Ue({href:rt,text:rt})),Ue({href:rt,text:rt})]),tagline:Ye().optional(),cells:Gn(Ue({label:rt,content:rt})),description:rt.optional(),url:Ue({href:Ye()})}),I_=({entry:e})=>{const{app:t,suggestedProductsData:n}=J(),r=Vl(e)?e.fields.schemas:[],o=Wn(r,"productTableSchema");if(!Vl(e))return null;const i=o.flatMap(({fields:c})=>{const d=P_.safeParse(c.schema);return d.success?[d.data]:[]});if(!n||n.length===0)return null;const a=t?.location.pathname??"",l=t?.canPrefill??!1;return s.jsx(R_,{productSchemas:i,products:n,pathname:a,canPrefill:l,entryId:e.sys.id})};var L_=Object.defineProperty,Nn=(e,t)=>L_(e,"name",{value:t,configurable:!0}),Vu=!!(typeof window<"u"&&window.document&&window.document.createElement);function $r(e,t,{checkForDefaultPrevented:n=!0}={}){return Nn(function(o){if(e?.(o),n===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}Nn($r,"composeEventHandlers");function D_(e){if(!Vu)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}Nn(D_,"getOwnerWindow");function vo(e){if(!Vu)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}Nn(vo,"getOwnerDocument");function Uu(e,t=!1){const{activeElement:n}=vo(e);if(!n?.nodeName)return null;if(Gu(n)&&n.contentDocument)return Uu(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=vo(n).getElementById(r);if(o)return o}}return n}Nn(Uu,"getActiveElement");function Gu(e){return e.tagName==="IFRAME"}Nn(Gu,"isFrame");var O_=Object.defineProperty,Je=(e,t)=>
142O_(e,"name",{value:t,configurable:!0});function M_(e,t){const n=x.createContext(t);n.displayName=e+"Context";const r=Je(i=>{const{children:a,...l}=i,c=x.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:a})},"Provider");r.displayName=e+"Provider";function o(i,a={}){const{optional:l=!1}=a,c=x.useContext(n);if(c)return c;if(t!==void 0)return t;if(!l)throw new Error(`\`${i}\` must be used within \`${e}\``)}return Je(o,"useContext"),[r,o]}Je(M_,"createContext");function Wu(e,t=[]){let n=[];function r(i,a){const l=x.createContext(a);l.displayName=i+"Context";const c=n.length;n=[...n,a];const d=Je(f=>{const{scope:m,children:h,...p}=f,b=m?.[e]?.[c]||l,g=x.useMemo(()=>p,Object.values(p));return s.jsx(b.Provider,{value:g,children:h})},"Provider");d.displayName=i+"Provider";function u(f,m,h={}){const{optional:p=!1}=h,b=m?.[e]?.[c]||l,g=x.useContext(b);if(g)return g;if(a!==void 0)return a;if(!p)throw new Error(`\`${f}\` must be used within \`${i}\``)}return Je(u,"useContext"),[d,u]}Je(r,"createContext");const o=Je(()=>{const i=n.map(a=>x.createContext(a));return Je(function(l){const c=l?.[e]||i;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])},"useScope")},"createScope");return o.scopeName=e,[r,qu(o,...t)]}Je(Wu,"createContextScope");function qu(...e){const t=e[0];if(e.length===1)return t;const n=Je(()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return Je(function(i){const a=r.reduce((l,{useScope:c,scopeName:d})=>{const f=c(i)[`__scope${d}`];return{...l,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Je(qu,"composeContextScopes");var $_=Object.defineProperty,kn=(e,t)=>$_(e,"name",{value:t,configurable:!0}),Yu=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ft(e,t,{checkForDefaultPrevented:n=!0}={}){return kn(function(o){if(e?.(o),n===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}kn(Ft,"composeEventHandlers");function F_(e){if(!Yu)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}kn(F_,"getOwnerWindow");function wo(e){if(!Yu)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}kn(wo,"getOwnerDocument");function Ku(e,t=!1){const{activeElement:n}=wo(e);if(!n?.nodeName)return null;if(Zu(n)&&n.contentDocument)return Ku(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=wo(n).getElementById(r);if(o)return o}}return n}kn(Ku,"getActiveElement");function Zu(e){return e.tagName==="IFRAME"}kn(Zu,"isFrame");var B_=Object.defineProperty,et=(e,t)=>B_(e,"name",{value:t,configurable:!0});function z_(e,t){const n=x.createContext(t);n.displayName=e+"Context";const r=et(i=>{const{children:a,...l}=i,c=x.useMemo(()=>l,Object.values(l));return s.jsx(n.Provider,{value:c,children:a})},"Provider");r.displayName=e+"Provider";function o(i,a={}){const{optional:l=!1}=a,c=x.useContext(n);if(c)return c;if(t!==void 0)return t;if(!l)throw new Error(`\`${i}\` must be used within \`${e}\``)}return et(o,"useContext"),[r,o]}et(z_,"createContext");function ws(e,t=[]){let n=[];function r(i,a){const l=x.createContext(a);l.displayName=i+"Context";const c=n.length;n=[...n,a];const d=et(f=>{const{scope:m,children:h,...p}=f,b=m?.[e]?.[c]||l,g=x.useMemo(()=>p,Object.values(p));return s.jsx(b.Provider,{value:g,children:h})},"Provider");d.displayName=i+"Provider";function u(f,m,h={}){const{optional:p=!1}=h,b=m?.[e]?.[c]||l,g=x.useContext(b);if(g)return g;if(a!==void 0)return a;if(!p)throw new Error(`\`${f}\` must be used within \`${i}\``)}return et(u,"useContext"),[d,u]}et(r,"createContext");const o=et(()=>{const i=n.map(a=>x.createContext(a));return et(function(l){const c=l?.[e]||i;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])},"useScope")},"createScope");return o.scopeName=e,[r,Xu(o,...t)]}et(ws,"createContextScope");function Xu(...e){const t=e[0];if(e.length===1)return t;const n=et(()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));
142return et(function(i){const a=r.reduce((l,{useScope:c,scopeName:d})=>{const f=c(i)[`__scope${d}`];return{...l,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}et(Xu,"composeContextScopes");var H_=Object.defineProperty,Ai=(e,t)=>H_(e,"name",{value:t,configurable:!0});function jo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Ai(jo,"setRef");function Qu(...e){return t=>{let n=!1;const r=e.map(o=>{const i=jo(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():jo(e[o],null)}}}}Ai(Qu,"composeRefs");function Nt(...e){return x.useCallback(Qu(...e),e)}Ai(Nt,"useComposedRefs");var V_=Object.defineProperty,ut=(e,t)=>V_(e,"name",{value:t,configurable:!0});function er(e){const t=x.forwardRef((n,r)=>{let{children:o,...i}=n,a=null,l=!1;const c=[];No(o)&&typeof Pr=="function"&&(o=Pr(o._payload)),x.Children.forEach(o,m=>{if(nf(m)){l=!0;const h=m;let p="child"in h.props?h.props.child:h.props.children;No(p)&&typeof Pr=="function"&&(p=Pr(p._payload)),a=G_(h,p),c.push(a?.props?.children)}else c.push(m)}),a?a=x.cloneElement(a,void 0,c):!l&&x.Children.count(o)===1&&x.isValidElement(o)&&(a=o);const d=a?tf(a):void 0,u=Nt(r,d);if(!a){if(o||o===0)throw new Error(l?Y_(e):q_(e));return o}const f=ef(i,a.props??{});return a.type!==x.Fragment&&(f.ref=r?u:d),x.cloneElement(a,f)});return t.displayName=`${e}.Slot`,t}ut(er,"createSlot");var Ju=Symbol.for("radix.slottable");function U_(e){const t=ut(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Ju,t}ut(U_,"createSlottable");var G_=ut((e,t)=>{if("child"in e.props){const n=e.props.child;return x.isValidElement(n)?x.cloneElement(n,void 0,e.props.children(n.props.children)):null}return x.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function ef(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}ut(ef,"mergeProps");function tf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ut(tf,"getElementRef");function nf(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ju}ut(nf,"isSlottable");var W_=Symbol.for("react.lazy");function No(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===W_&&"_payload"in e&&rf(e._payload)}ut(No,"isLazyComponent");function rf(e){return typeof e=="object"&&e!==null&&"then"in e}ut(rf,"isPromiseLike");var q_=ut(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Y_=ut(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Pr=We[" use ".trim().toString()],K_=Object.defineProperty,De=(e,t)=>K_(e,"name",{value:t,configurable:!0});function sf(e){const t=e+"CollectionProvider",[n,r]=ws(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=De(b=>{const{scope:g,children:y}=b,w=x.useRef(null),k=x.useRef(new Map).current;return s.jsx(o,{scope:g,itemMap:k,collectionRef:w,children:y})},"CollectionProvider");a.displayName=t;const l=e+"CollectionSlot",c=er(l),d=x.forwardRef((b,g)=>{const{scope:y,children:w}=b,k=i(l,y),A=Nt(g,k.collectionRef);return s.jsx(c,{ref:A,children:w})});d.displayName=l;const u=e+"CollectionItemSlot",f="data-radix-collection-item",m=er(u),h=x.forwardRef((b,g)=>{const{scope:y,children:w,...k}=b,A=x.useRef(null),v=Nt(g,A),j=i(u,y);return x.useEffect(()=>(j.itemMap.set(A,{ref:A,...k}),()=>{j.itemMap.delete(A)})),s.jsx(m,{[f]:"",ref:v,children:w})});h.displayName=u;function p(b){const g=i(e+"CollectionConsumer",b);return x.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const k=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((j,E)=>k.indexOf(j.ref.current)-k.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return De(p,"useCollection"),[{Provider:a,Slot:d,ItemSlot:h},p,r]}De(sf,"createCollection");var Gl=new WeakMap,Ae,qe,Us=(qe=class extends Map{constructor(n){super(n);qi(this,Ae);_s(this,Ae,[...super.keys()]),Gl.set(this,!0)}set(n,r){return Gl.get(this)&&(this.has(n)?Fe(this,Ae)[Fe(this,Ae).indexOf(n)]=n:Fe(this,Ae).push(n)),super.set(n,r),this}insert(n,r,o){const i=this.has(r),a=Fe(this,Ae).length,l=Ri(n);let c=l>=0?l:a+l;const d=c<0||c>=a?-1:c;if(d===this.size||i&&d===this.size-1||d===-1)return this.set(r,o),this;const u=this.size+(i?0:1);l<0&&c++;const f=[...Fe(this,Ae)];let m,h=!1;for(let p=c;p<u;p++)if(c===p){let b=f[p];f[p]===r&&(b=f[p+1]),i&&this.delete(r),m=this.get(b),this.set(r,o)}else{!h&&f[p-1]===r&&(h=!0);const b=f[h?p:p-1],g=m;m=this.get(b),this.delete(b),this.set(b,g)}return this}with(n,r,o){const i=new qe(this);return i.insert(n,r,o),i}before(n){const r=Fe(this,Ae).indexOf(n)-1;if(!(r<0))return this.entryAt(r)}setBefore(n,r,o){const i=Fe(this,Ae).indexOf(n);return i===-1?this:this.insert(i,r,o)}after(n){let r=Fe(this,Ae).indexOf(n);if(r=r===-1||r===this.size-1?-1:r+1,r!==-1)return this.entryAt(r)}setAfter(n,r,o){const i=Fe(this,Ae).indexOf(n);return i===-1?this:this.insert(i+1,r,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return _s(this,Ae,[]),super.clear()}delete(n){const r=super.delete(n);return r&&Fe(this,Ae).splice(Fe(this,Ae).indexOf(n),1),r}deleteAt(n){const r=this.keyAt(n);return r!==void 0?this.delete(r):!1}at(n){const r=Fr(Fe(this,Ae),n);if(r!==void 0)return this.get(r)}entryAt(n){const r=Fr(Fe(this,Ae),n);if(r!==void 0)return[r,this.get(r)]}indexOf(n){return Fe(this,Ae).indexOf(n)}keyAt(n){return Fr(Fe(this,Ae),n)}from(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return i;o++}}findIndex(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return o;o++}return-1}filter(n,r){const o=[];let i=0;for(const a of this)Reflect.apply(n,r,[a,i,this])&&o.push(a),i++;return new qe(o)}map(n,r){const o=[];let i=0;for(const a of this)o.push([a[0],Reflect.apply(n,r,[a,i,this])]),i++;return new qe(o)}reduce(...n){const[r,o]=n;let i=0,a=o??this.at(0);for(const l of this)i===0&&n.length===1?a=l:a=Reflect.apply(r,this,[a,l,i,this]),i++;return a}reduceRight(...n){const[r,o]=n;let i=o??this.at(-1);for(let a=this.size-1;a>=0;a--){const l=this.at(a);a===this.size-1&&n.length===1?i=l:i=Reflect.apply(r,this,[i,l,a,this])}return i}toSorted(n){const r=[...this.entries()].sort(n);return new qe(r)}toReversed(){const n=new qe;
142for(let r=this.size-1;r>=0;r--){const o=this.keyAt(r),i=this.get(o);n.set(o,i)}return n}toSpliced(...n){const r=[...this.entries()];return r.splice(...n),new qe(r)}slice(n,r){const o=new qe;let i=this.size-1;if(n===void 0)return o;n<0&&(n=n+this.size),r!==void 0&&r>0&&(i=r-1);for(let a=n;a<=i;a++){const l=this.keyAt(a),c=this.get(l);o.set(l,c)}return o}every(n,r){let o=0;for(const i of this){if(!Reflect.apply(n,r,[i,o,this]))return!1;o++}return!0}some(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return!0;o++}return!1}},Ae=new WeakMap,De(qe,"OrderedDict"),qe);function Fr(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=of(e,t);return n===-1?void 0:e[n]}De(Fr,"at");function of(e,t){const n=e.length,r=Ri(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}De(of,"toSafeIndex");function Ri(e){return e!==e||e===0?0:Math.trunc(e)}De(Ri,"toSafeInteger");function Z_(e){const t=e+"CollectionProvider",[n,r]=ws(t),[o,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Us,setItemMap:De(()=>{},"setItemMap")}),a=De(({state:k,...A})=>k?s.jsx(c,{...A,state:k}):s.jsx(l,{...A}),"CollectionProvider");a.displayName=t;const l=De(k=>{const A=g();return s.jsx(c,{...k,state:A})},"CollectionInit");l.displayName=t+"Init";const c=De(k=>{const{scope:A,children:v,state:j}=k,E=x.useRef(null),[N,S]=x.useState(null),D=Nt(E,S),[L,F]=j;return x.useEffect(()=>{if(!N)return;const M=cf(()=>{});return M.observe(N,{childList:!0,subtree:!0}),()=>{M.disconnect()}},[N]),s.jsx(o,{scope:A,itemMap:L,setItemMap:F,collectionRef:D,collectionRefObject:E,collectionElement:N,children:v})},"CollectionProviderImpl");c.displayName=t+"Impl";const d=e+"CollectionSlot",u=er(d),f=x.forwardRef((k,A)=>{const{scope:v,children:j}=k,E=i(d,v),N=Nt(A,E.collectionRef);return s.jsx(u,{ref:N,children:j})});f.displayName=d;const m=e+"CollectionItemSlot",h="data-radix-collection-item",p=er(m),b=x.forwardRef((k,A)=>{const{scope:v,children:j,...E}=k,N=x.useRef(null),[S,D]=x.useState(null),L=Nt(A,N,D),F=i(m,v),{setItemMap:M}=F,P=x.useRef(E);af(P.current,E)||(P.current=E);const T=P.current;return x.useEffect(()=>{const R=T;return M(I=>S?I.has(S)?I.set(S,{...R,element:S}).toSorted(ko):(I.set(S,{...R,element:S}),I.toSorted(ko)):I),()=>{M(I=>!S||!I.has(S)?I:(I.delete(S),new Us(I)))}},[S,T,M]),s.jsx(p,{[h]:"",ref:L,children:j})});b.displayName=m;function g(){return x.useState(new Us)}De(g,"useInitCollection");function y(k){const{itemMap:A}=i(e+"CollectionConsumer",k);return A}return De(y,"useCollection"),[{Provider:a,Slot:f,ItemSlot:b},{createCollectionScope:r,useCollection:y,useInitCollection:g}]}De(Z_,"createCollection");function af(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}De(af,"shallowEqual");function lf(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}De(lf,"isElementPreceding");function ko(e,t){return!e[1].element||!t[1].element?0:lf(e[1].element,t[1].element)?-1:1}De(ko,"sortByDocumentPosition");function cf(e){return new MutationObserver(n=>{for(const r of n)if(r.type==="childList"){e();return}})}De(cf,"getChildListObserver");var js=globalThis?.document?x.useLayoutEffect:()=>{},X_=Object.defineProperty,Q_=(e,t)=>X_(e,"name",{value:t,configurable:!0}),J_=We[" useId ".trim().toString()]||(()=>{}),eC=0;function df(e){const[t,n]=x.useState(J_());return js(()=>{e||n(r=>r??String(eC++))},[e]),e||(t?`radix-${t}`:"")}Q_(df,"useId");var tC=Object.defineProperty,ft=(e,t)=>tC(e,"name",{value:t,configurable:!0});function uf(e){const t=x.forwardRef((n,r)=>{let{children:o,...i}=n,a=null,l=!1;const c=[];Eo(o)&&typeof Ir=="function"&&(o=Ir(o._payload)),x.Children.forEach(o,m=>{if(hf(m)){l=!0;const h=m;let p="child"in h.props?h.props.child:h.props.children;Eo(p)&&typeof Ir=="function"&&(p=Ir(p._payload)),a=rC(h,p),c.push(a?.props?.children)}else c.push(m)}),a?a=x.cloneElement(a,void 0,c):!l&&x.Children.count(o)===1&&x.isValidElement(o)&&(a=o);const d=a?pf(a):void 0,u=Nt(r,d);if(!a){if(o||o===0)throw new Error(l?iC(e):oC(e));return o}const f=mf(i,a.props??{});return a.type!==x.Fragment&&(f.ref=r?u:d),x.cloneElement(a,f)});return t.displayName=`${e}.Slot`,t}ft(uf,"createSlot");var ff=Symbol.for("radix.slottable");function nC(e){const t=ft(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=ff,t}ft(nC,"createSlottable");var rC=ft((e,t)=>
142{if("child"in e.props){const n=e.props.child;return x.isValidElement(n)?x.cloneElement(n,void 0,e.props.children(n.props.children)):null}return x.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function mf(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}ft(mf,"mergeProps");function pf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ft(pf,"getElementRef");function hf(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ff}ft(hf,"isSlottable");var sC=Symbol.for("react.lazy");function Eo(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===sC&&"_payload"in e&&xf(e._payload)}ft(Eo,"isLazyComponent");function xf(e){return typeof e=="object"&&e!==null&&"then"in e}ft(xf,"isPromiseLike");var oC=ft(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),iC=ft(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ir=We[" use ".trim().toString()],aC=Object.defineProperty,lC=(e,t)=>aC(e,"name",{value:t,configurable:!0}),cC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gf=cC.reduce((e,t)=>{const n=uf(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function dC(e,t){e&&oc.flushSync(()=>e.dispatchEvent(t))}lC(dC,"dispatchDiscreteCustomEvent");var uC=Object.defineProperty,fC=(e,t)=>uC(e,"name",{value:t,configurable:!0});function bf(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>((...n)=>t.current?.(...n)),[])}fC(bf,"useCallbackRef");var mC=Object.defineProperty,pC=(e,t)=>mC(e,"name",{value:t,configurable:!0}),Wl=We[" useEffectEvent ".trim().toString()],ql=We[" useInsertionEffect ".trim().toString()];function yf(e){if(typeof Wl=="function")return Wl(e);const t=x.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof ql=="function"?ql(()=>{t.current=e}):js(()=>{t.current=e}),x.useMemo(()=>((...n)=>t.current?.(...n)),[])}pC(yf,"useEffectEvent");var hC=Object.defineProperty,cr=(e,t)=>hC(e,"name",{value:t,configurable:!0}),xC=We[" useInsertionEffect ".trim().toString()]||js;function vf({prop:e,defaultProp:t,onChange:n=cr(()=>{},"onChange"),caller:r}){const[o,i,a]=wf({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o,d=x.useCallback(u=>{if(l){const f=jf(u)?u(e):u;f!==e&&a.current?.(f)}else i(u)},[l,e,i,a]);return[c,d]}cr(vf,"useControllableState");function wf({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return xC(()=>{i.current=t},[t]),x.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}cr(wf,"useUncontrolledState");function jf(e){return typeof e=="function"}cr(jf,"isFunction");var Yl=Symbol("RADIX:SYNC_STATE");function gC(e,t,n,r){const{prop:o,defaultProp:i,onChange:a,caller:l}=t,c=o!==void 0,d=yf(a),u=[{...n,state:i}];r&&u.push(r);const[f,m]=x.useReducer((g,y)=>{if(y.type===Yl)return{...g,state:y.state};const w=e(g,y);return c&&!Object.is(w.state,g.state)&&d(w.state),w},...u),h=f.state,p=x.useRef(h);x.useEffect(()=>{p.current!==h&&(p.current=h,c||d(h))},[h,p,c]);const b=x.useMemo(()=>o!==void 0?{...f,state:o}:f,[f,o]);return x.useEffect(()=>{c&&!Object.is(o,f.state)&&m({type:Yl,state:o})},[o,f.state,c]),[b,m]}cr(gC,"useControllableStateReducer");var bC=Object.defineProperty,yC=(e,t)=>bC(e,"name",{value:t,configurable:!0}),vC=x.createContext(void 0);function Nf(e){const t=x.useContext(vC);return e||t||"ltr"}yC(Nf,"useDirection");var wC=Object.defineProperty,Pi=(e,t)=>wC(e,"name",{value:t,configurable:!0}),Gs=!1;
142function kf(){const[e,t]=x.useState(Gs);return x.useEffect(()=>{Gs||(Gs=!0,t(!0))},[]),e}Pi(kf,"useIsHydrated");var Ef=We[" useSyncExternalStore ".trim().toString()];function _f(){return()=>{}}Pi(_f,"subscribe");function Cf(){return Ef(_f,()=>!0,()=>!1)}Pi(Cf,"useIsHydratedModern");var jC=typeof Ef=="function"?Cf:kf,NC=Object.defineProperty,Xt=(e,t)=>NC(e,"name",{value:t,configurable:!0}),Ws="rovingFocusGroup.onEntryFocus",kC={bubbles:!1,cancelable:!0},Ns="RovingFocusGroup",[_o,Tf,EC]=sf(Ns),[_C,Sf]=ws(Ns,[EC]),[CC,TC]=_C(Ns),SC=x.forwardRef(Xt(function(t,n){return s.jsx(_o.Provider,{scope:t.__scopeRovingFocusGroup,children:s.jsx(_o.Slot,{scope:t.__scopeRovingFocusGroup,children:s.jsx(AC,{...t,ref:n})})})},"RovingFocusGroup")),AC=x.forwardRef(Xt(function(t,n){const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...m}=t,h=x.useRef(null),p=Nt(n,h),b=Nf(a),[g,y]=vf({prop:l,defaultProp:c??null,onChange:d,caller:Ns}),[w,k]=x.useState(!1),A=bf(u),v=Tf(r),j=x.useRef(!1),[E,N]=x.useState(0);return x.useEffect(()=>{const S=h.current;if(S)return S.addEventListener(Ws,A),()=>S.removeEventListener(Ws,A)},[A]),s.jsx(CC,{scope:r,orientation:o,dir:b,loop:i,currentTabStopId:g,onItemFocus:x.useCallback(S=>y(S),[y]),onItemShiftTab:x.useCallback(()=>k(!0),[]),onFocusableItemAdd:x.useCallback(()=>N(S=>S+1),[]),onFocusableItemRemove:x.useCallback(()=>N(S=>S-1),[]),children:s.jsx(gf.div,{tabIndex:w||E===0?-1:0,"data-orientation":o,...m,ref:p,style:{outline:"none",...t.style},onMouseDown:Ft(t.onMouseDown,()=>{j.current=!0}),onFocus:Ft(t.onFocus,S=>{const D=!j.current;if(S.target===S.currentTarget&&D&&!w){const L=new CustomEvent(Ws,kC);if(S.currentTarget.dispatchEvent(L),!L.defaultPrevented){const F=v().filter(I=>I.focusable),M=F.find(I=>I.active),P=F.find(I=>I.id===g),R=[M,P,...F].filter(Boolean).map(I=>I.ref.current);Ii(R,f)}}j.current=!1}),onBlur:Ft(t.onBlur,()=>k(!1))})})},"RovingFocusGroupImpl")),RC="RovingFocusGroupItem",PC=x.forwardRef(Xt(function(t,n){const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,children:l,...c}=t,d=df(),u=a||d,f=TC(RC,r),m=f.currentTabStopId===u,h=Tf(r),{onFocusableItemAdd:p,onFocusableItemRemove:b,currentTabStopId:g}=f,y=jC();return js(()=>{if(!(!y||!o))return p(),()=>b()},[y,o,p,b]),x.useEffect(()=>{if(!(y||!o))return p(),()=>b()},[y,o,p,b]),s.jsx(_o.ItemSlot,{scope:r,id:u,focusable:o,active:i,children:s.jsx(gf.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...c,ref:n,onMouseDown:Ft(t.onMouseDown,w=>{o?f.onItemFocus(u):w.preventDefault()}),onFocus:Ft(t.onFocus,()=>f.onItemFocus(u)),onKeyDown:Ft(t.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){f.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const k=Rf(w,f.orientation,f.dir);if(k!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let v=h().filter(j=>j.focusable).map(j=>j.ref.current);if(k==="last")v.reverse();else if(k==="prev"||k==="next"){k==="prev"&&v.reverse();const j=v.indexOf(w.currentTarget);v=f.loop?Pf(v,j+1):v.slice(j+1)}setTimeout(()=>Ii(v))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:g!=null}):l})})},"RovingFocusGroupItem")),IC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Af(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Xt(Af,"getDirectionAwareKey");function Rf(e,t,n){const r=Af(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return IC[r]}Xt(Rf,"getFocusIntent");function Ii(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Xt(Ii,"focusFirst");function Pf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Xt(Pf,"wrapArray");var LC=SC,DC=PC,Kl=globalThis?.document?x.useLayoutEffect:()=>{},OC=Object.defineProperty,kt=(e,t)=>OC(e,"name",{value:t,configurable:!0});function If(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}kt(If,"useStateMachine");var MC=kt(e=>{const{present:t,children:n}=e,r=Lf(t),o=typeof n=="function"?n({present:r.isPresent}
142):x.Children.only(n),i=Df(r.ref,Of(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null},"Presence");function Lf(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),i=x.useRef("none"),a=x.useRef(void 0),l=e?"mounted":"unmounted",[c,d]=If(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{c==="mounted"?(i.current=a.current??an(r.current),a.current=void 0):i.current="none"},[c]),Kl(()=>{const u=r.current,f=o.current;if(f!==e){const h=i.current,p=an(u);e?(a.current=p,d("MOUNT")):p==="none"||u?.display==="none"?d("UNMOUNT"):d(f&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Kl(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,m=kt(p=>{const g=an(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&g&&(d("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),h=kt(p=>{p.target===t&&(i.current=an(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:x.useCallback(u=>{if(u){const f=getComputedStyle(u);r.current=f,a.current=an(f)}else r.current=null;n(u)},[])}}kt(Lf,"usePresence");function Co(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}kt(Co,"setRef");function Df(...e){const t=x.useRef(e);return t.current=e,x.useCallback(n=>{const r=t.current;let o=!1;const i=r.map(a=>{const l=Co(a,n);return!o&&typeof l=="function"&&(o=!0),l});if(o)return()=>{for(let a=0;a<i.length;a++){const l=i[a];typeof l=="function"?l():Co(r[a],null)}}},[])}kt(Df,"useStableComposedRefs");function an(e){return e?.animationName||"none"}kt(an,"getAnimationName");function Of(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}kt(Of,"getElementRef");var $C=Object.defineProperty,Li=(e,t)=>$C(e,"name",{value:t,configurable:!0});function To(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Li(To,"setRef");function Mf(...e){return t=>{let n=!1;const r=e.map(o=>{const i=To(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():To(e[o],null)}}}}Li(Mf,"composeRefs");function $f(...e){return x.useCallback(Mf(...e),e)}Li($f,"useComposedRefs");var FC=Object.defineProperty,mt=(e,t)=>FC(e,"name",{value:t,configurable:!0});function Ff(e){const t=x.forwardRef((n,r)=>{let{children:o,...i}=n,a=null,l=!1;const c=[];So(o)&&typeof Lr=="function"&&(o=Lr(o._payload)),x.Children.forEach(o,m=>{if(Vf(m)){l=!0;const h=m;let p="child"in h.props?h.props.child:h.props.children;So(p)&&typeof Lr=="function"&&(p=Lr(p._payload)),a=zC(h,p),c.push(a?.props?.children)}else c.push(m)}),a?a=x.cloneElement(a,void 0,c):!l&&x.Children.count(o)===1&&x.isValidElement(o)&&(a=o);const d=a?Hf(a):void 0,u=$f(r,d);if(!a){if(o||o===0)throw new Error(l?UC(e):VC(e));return o}const f=zf(i,a.props??{});return a.type!==x.Fragment&&(f.ref=r?u:d),x.cloneElement(a,f)});return t.displayName=`${e}.Slot`,t}mt(Ff,"createSlot");var Bf=Symbol.for("radix.slottable");function BC(e){const t=mt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Bf,t}mt(BC,"createSlottable");var zC=mt((e,t)=>{if("child"in e.props){const n=e.props.child;return x.isValidElement(n)?x.cloneElement(n,void 0,e.props.children(n.props.children)):null}return x.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function zf(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}
142:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}mt(zf,"mergeProps");function Hf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}mt(Hf,"getElementRef");function Vf(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bf}mt(Vf,"isSlottable");var HC=Symbol.for("react.lazy");function So(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===HC&&"_payload"in e&&Uf(e._payload)}mt(So,"isLazyComponent");function Uf(e){return typeof e=="object"&&e!==null&&"then"in e}mt(Uf,"isPromiseLike");var VC=mt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),UC=mt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Lr=We[" use ".trim().toString()],GC=Object.defineProperty,WC=(e,t)=>GC(e,"name",{value:t,configurable:!0}),qC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ks=qC.reduce((e,t)=>{const n=Ff(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function YC(e,t){e&&oc.flushSync(()=>e.dispatchEvent(t))}WC(YC,"dispatchDiscreteCustomEvent");var KC=Object.defineProperty,ZC=(e,t)=>KC(e,"name",{value:t,configurable:!0}),XC=x.createContext(void 0);function Gf(e){const t=x.useContext(XC);return e||t||"ltr"}ZC(Gf,"useDirection");var Wf=globalThis?.document?x.useLayoutEffect:()=>{},QC=Object.defineProperty,JC=(e,t)=>QC(e,"name",{value:t,configurable:!0}
142),Zl=We[" useEffectEvent ".trim().toString()],Xl=We[" useInsertionEffect ".trim().toString()];function qf(e){if(typeof Zl=="function")return Zl(e);const t=x.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Xl=="function"?Xl(()=>{t.current=e}):Wf(()=>{t.current=e}),x.useMemo(()=>((...n)=>t.current?.(...n)),[])}JC(qf,"useEffectEvent");var eT=Object.defineProperty,dr=(e,t)=>eT(e,"name",{value:t,configurable:!0}),tT=We[" useInsertionEffect ".trim().toString()]||Wf;function Yf({prop:e,defaultProp:t,onChange:n=dr(()=>{},"onChange"),caller:r}){const[o,i,a]=Kf({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o,d=x.useCallback(u=>{if(l){const f=Zf(u)?u(e):u;f!==e&&a.current?.(f)}else i(u)},[l,e,i,a]);return[c,d]}dr(Yf,"useControllableState");function Kf({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return tT(()=>{i.current=t},[t]),x.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}dr(Kf,"useUncontrolledState");function Zf(e){return typeof e=="function"}dr(Zf,"isFunction");var Ql=Symbol("RADIX:SYNC_STATE");function nT(e,t,n,r){const{prop:o,defaultProp:i,onChange:a,caller:l}=t,c=o!==void 0,d=qf(a),u=[{...n,state:i}];r&&u.push(r);const[f,m]=x.useReducer((g,y)=>{if(y.type===Ql)return{...g,state:y.state};const w=e(g,y);return c&&!Object.is(w.state,g.state)&&d(w.state),w},...u),h=f.state,p=x.useRef(h);x.useEffect(()=>{p.current!==h&&(p.current=h,c||d(h))},[h,p,c]);const b=x.useMemo(()=>o!==void 0?{...f,state:o}:f,[f,o]);return x.useEffect(()=>{c&&!Object.is(o,f.state)&&m({type:Ql,state:o})},[o,f.state,c]),[b,m]}dr(nT,"useControllableStateReducer");var rT=globalThis?.document?x.useLayoutEffect:()=>{},sT=Object.defineProperty,oT=(e,t)=>sT(e,"name",{value:t,configurable:!0}),iT=We[" useId ".trim().toString()]||(()=>{}),aT=0;function Xf(e){const[t,n]=x.useState(iT());return rT(()=>{e||n(r=>r??String(aT++))},[e]),e||(t?`radix-${t}`:"")}oT(Xf,"useId");var lT=Object.defineProperty,En=(e,t)=>lT(e,"name",{value:t,configurable:!0}),Di="Tabs",[cT,CS]=Wu(Di,[Sf]),Qf=Sf(),[dT,Oi]=cT(Di),uT=x.forwardRef(En(function(t,n){const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:c,activationMode:d="automatic",...u}=t,f=Gf(c),[m,h]=Yf({prop:o,onChange:i,defaultProp:a??"",caller:Di});return s.jsx(dT,{scope:r,baseId:Xf(),value:m,onValueChange:h,orientation:l,dir:f,activationMode:d,children:s.jsx(ks.div,{dir:f,"data-orientation":l,...u,ref:n})})},"Tabs")),fT="TabsList",mT=x.forwardRef(En(function(t,n){const{__scopeTabs:r,loop:o=!0,...i}=t,a=Oi(fT,r),l=Qf(r);return s.jsx(LC,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:o,children:s.jsx(ks.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:n})})},"TabsList")),pT="TabsTrigger",hT=x.forwardRef(En(function(t,n){const{__scopeTabs:r,value:o,disabled:i=!1,...a}=t,l=Oi(pT,r),c=Qf(r),d=Mi(l.baseId,o),u=$i(l.baseId,o),f=o===l.value;return s.jsx(DC,{asChild:!0,...c,focusable:!i,active:f,children:s.jsx(ks.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d,...a,ref:n,onMouseDown:$r(t.onMouseDown,m=>{!i&&m.button===0&&m.ctrlKey===!1?l.onValueChange(o):m.preventDefault()}),onKeyDown:$r(t.onKeyDown,m=>{i||m.target!==m.currentTarget||[" ","Enter"].includes(m.key)&&l.onValueChange(o)}),onFocus:$r(t.onFocus,()=>{const m=l.activationMode!=="manual";!f&&!i&&m&&l.onValueChange(o)})})})},"TabsTrigger")),xT="TabsContent",gT=x.forwardRef(En(function(t,n){const{__scopeTabs:r,value:o,forceMount:i,children:a,...l}=t,c=Oi(xT,r),d=Mi(c.baseId,o),u=$i(c.baseId,o),f=o===c.value,m=x.useRef(f);return x.useEffect(()=>{const h=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(h)},[]),s.jsx(MC,{present:i||f,children:({present:h})=>s.jsx(ks.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!h,id:u,tabIndex:0,...l,ref:n,style:{...t.style,animationDuration:m.current?"0s":void 0},children:h&&a})})},"TabsContent"));function Mi(e,t){return`${e}-trigger-${t}`}En(Mi,"makeTriggerId");function $i(e,t){return`${e}-content-${t}`}En($i,"makeContentId");var bT=uT,yT=mT,vT=hT,wT=gT;const jT=te({base:"w-full"}),NT=te({base:["flex w-full items-end gap-6","border-b border-line","overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"]}),kT=te({base:["group flex shrink-0 cursor-pointer flex-col items-start gap-2","rounded-tab px-2 pt-2","hover:bg-tab-hover","focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-focus-ring"]}),ET=te({base:"focus:outline-none data-[state=inactive]:hidden"}),_T=({className:e,"data-testid":t,...n})=>s.jsx(bT,{className:jT({className:e}),"data-testid":t,...n}),CT=({className:e,"data-testid":t,...n})=>s.jsx(yT,{className:NT({className:e}),"data-testid":t,...n}),TT=({className:e,children:t,icon:n,"data-testid":r,...o})=>s.jsxs(vT,{className:kT({className:e}),"data-testid":r,...o,children:[s.jsxs("span",{className:"flex items-center gap-1",children:[n&&s.jsx("span",{className:"flex shrink-0 items-center text-grey90 group-data-[state=active]:text-accent",children:s.jsx(H,{glyph:n,color:"currentColor",ariaLabel:""})}),s.jsx("span",{className:"whitespace-nowrap",children:t})]}),s.jsx("span",{className:"h-[3px] w-full rounded-full bg-transparent group-data-[state=active]:bg-accent"})]}),ST=({className:e,"data-testid":t,...n})=>s.jsx(wT,{forceMount:!0,className:ET({className:e}),"data-testid":t,...n}),Jl="tab",AT=({items:e})=>{const[t,n]=es(),r=t.get(Jl);if(e.length===0)return null;const o=e.find(a=>a.value===r)?.value??e[0].value,i=a=>{const l=new URLSearchParams(t);l.set(Jl,a),n(l,{replace:!0,preventScrollReset:!0})};return s.jsxs(_T,{value:o,onValueChange:i,children:[s.jsx(CT,{children:e.map(a=>s.jsx(TT,{value:a.value,icon:a.icon,className:a.value===o?"body-base-bold text-accent":"body-base text-primary",children:a.label},a.value))}),e.map(a=>s.jsx(ST,{value:a.value,children:a.content},a.value))]})},RT=ee("tabContainer"),PT=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),IT=({entry:e})=>{const{linkedEntries:t}=J(),n=ct();if(!RT(e))return null;const r=e.fields.tabs??[],o=[],i=new Set;for(const a of r){const l=ke(a,t,"tab");if(!l?.name)continue;const c=PT(l.name),d=c&&!i.has(c)?c:`${c||"tab"}-${o.length}`;i.add(d);const u=l.modules??[],f=ns(u,t);o.push({value:d,label:l.name,icon:l.icon,content:f.filter(([,m])=>m.length>0).map(([m,h],p)=>{const b=h.map(g=>s.jsx(x.Fragment,{children:n(g,{vertical:!0,horizontal:!1})},g.sys.id));return m?s.jsx(Gt,{paletteEntry:m,children:b},m.sys.id):s.jsx(x.Fragment,{children:b},p)})})}return o.length===0?null:s.jsx(AT,{items:o})},LT=ee("table"),DT=e=>{if(typeof e!="object"||e===null)return!1;const t=e;return(t.type==="th"||t.type==="td")&&typeof t.value=="string"},OT=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)&&t.length>0&&t.every(DT)),MT=x.lazy(async()=>await lt(()=>import("./chart-BlYRVWpK.js"),__vite__mapDeps([17,1]))),$T=(e,t)=>
142({fontWeight:e?.b?700:t?"inherit":"initial",fontStyle:e?.i?"italic":"initial",textDecoration:e?.u?"underline":"initial"}),Jf=e=>{const{value:t,marks:n,type:r}=e,o=n?.link?s.jsx("a",{href:n.link,target:"_blank",rel:"noreferrer",children:t}):t;return s.jsx("span",{style:$T(n,r==="th"),children:o})},FT=(e,t)=>{const n=t?new Date(t):null,r=e?new Date(e):null;if(!n&&!r)return null;const o=n?"Updated":"Published",i=n??r;if(!i)return null;const a=[i.getDate(),i.toLocaleString("default",{month:"long"}),i.getFullYear()];return`${o} ${a.join(" ")}`},BT=({title:e,contents:t,footnotes:n,dateString:r,tableColour:o})=>{const i=o==="orange"?"bg-tableheader-orange text-on-accent":o==="green"?"bg-tableheader-green text-on-accent":"bg-accent text-white";return s.jsxs("div",{className:"mb-4",children:[e&&s.jsx("h3",{className:"heading-md mb-4 text-palette-text",children:e}),r&&s.jsx("div",{className:"mb-4 text-palette-text",children:r}),s.jsx("table",{className:"w-full lg:w-auto border-separate border-spacing-0 lg:border-spacing-1",children:s.jsx("tbody",{children:t.map((a,l)=>s.jsx("tr",{className:"bg-[var(--simple-table-row-bg)] lg:bg-[var(--simple-table-row-bg-lg)] even:bg-[var(--simple-table-row-alt-bg)]",children:a.map((c,d)=>{const u=Jf(c);return c.type==="th"?s.jsx("th",{className:`text-center p-2 lg:text-left lg:p-4 text-[length:var(--simple-table-header-size)] lg:text-[length:var(--simple-table-header-size-lg)] font-[var(--simple-table-header-weight)] ${c.value?i:"invisible lg:visible lg:bg-white"}`,children:u},d):s.jsx("td",{className:"text-center p-2 lg:text-left lg:py-3 lg:px-4 text-[length:var(--simple-table-body-size)] lg:text-[length:var(--simple-table-body-size-lg)]",children:u},d)})},l))})}),n&&s.jsx("div",{className:"mt-4 text-palette-text",children:At(n)})]})},zT=({title:e,contents:t,footnotes:n,dateString:r})=>s.jsxs("div",{className:"my-3 lg:my-6",children:[e&&s.jsx("h3",{className:"heading-md text-primary",children:e}),s.jsxs("div",{className:"my-3 overflow-hidden rounded-3xl shadow-md",children:[s.jsx("div",{className:"overflow-x-auto",children:s.jsx("table",{className:"w-full border-separate border-spacing-[var(--platinum-table-border-spacing)] table-fixed",children:s.jsx("tbody",{children:t.map((o,i)=>s.jsx("tr",{children:o.map((a,l)=>{const c=Jf(a);return a.type==="th"?s.jsx("th",{className:"body-base-bold block lg:table-cell w-full lg:w-auto p-3 bg-surface-inverse text-white text-left",children:c},l):s.jsx("td",{className:"body-base block lg:table-cell w-full lg:w-auto p-3 bg-grey5 border-b border-grey10 break-words",children:c},l)})},i))})})}),n&&s.jsx("div",{className:"body-xs px-6 mt-3",children:At(n)}),r&&s.jsxs("div",{className:"body-xs px-6 pb-6 italic",children:["Date ",r]})]})]}),HT=({title:e,contents:t,footnotes:n,displayDate:r,tableVariant:o,tableColour:i,chartConfig:a,publishDate:l,updatedDate:c})=>{const d=r?FT(l,c):null;return o==="platinum"?s.jsx(zT,{title:e,contents:t,footnotes:n,dateString:d}):o==="platinum-chart"&&a?s.jsxs("div",{className:"my-3 rounded-3xl p-6 shadow-md lg:my-6 lg:p-8",children:[e&&s.jsx("h3",{className:"heading-sm text-primary mb-1",children:e}),a.subHeading&&s.jsx("p",{className:"body-sm text-grey70 mb-4",children:a.subHeading}),s.jsx(x.Suspense,{fallback:s.jsx("div",{className:"h-[405px] w-full"}),children:s.jsx(MT,{contents:t,chartConfig:a})}),n&&s.jsx("div",{className:"body-xs text-grey70 mt-4",children:At(n)}),d&&s.jsx("div",{className:"body-xs text-grey70 mt-2",children:d})]}):s.jsx(BT,{title:e,contents:t,footnotes:n,dateString:d,tableColour:i})},VT=({entry:e})=>{const{rootEntry:t}=J();if(!LT(e))return null;const{title:n,contents:r,footnotes:o,displayDate:i,tableVariant:a,tableColour:l,chartConfig:c}=e.fields;return!OT(r)||r.length===0?null:s.jsx(HT,{title:n,contents:r,footnotes:o,displayDate:i,tableVariant:a,tableColour:l,chartConfig:V(c)?c:void 0,publishDate:t?.fields.publishDate,updatedDate:t?.fields.updatedDate})},UT=ee("widgetHtml"),ec="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js",Ao=e=>e.replace(/px$/,""),GT=e=>e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),WT=(e,t)=>
142{const n=`${Ao(t)}px`;return e?`<a href="${GT(e)}" target="_blank" rel="noopener noreferrer" style="display:inline-block;min-height:${n}">Trustpilot</a>`:`<span style="display:inline-block;min-height:${n}">Trustpilot</span>`},em=e=>{const t=document.querySelector(`script[src="${ec}"]`);if(t){window.Trustpilot?e():t.addEventListener("load",e,{once:!0});return}const n=document.createElement("script");n.src=ec,n.async=!0,n.addEventListener("load",e,{once:!0}),document.head.appendChild(n)},qT=({templateId:e,businessId:t,href:n,width:r="168",height:o="99",theme:i="light"})=>{const a=x.useRef(null);return x.useEffect(()=>{const l=a.current;l&&(l.innerHTML.trim()||(l.innerHTML=WT(n,o)),em(()=>{window.Trustpilot?.loadFromElement(l,!0)}))},[e,t,n,r,o,i]),s.jsx("div",{ref:a,className:"trustpilot-widget","data-locale":"en-GB","data-template-id":e,"data-businessunit-id":t,"data-style-height":`${Ao(o)}px`,"data-style-width":`${Ao(r)}px`,"data-theme":i,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}})},YT=({html:e})=>{const t=x.useRef(null);return x.useEffect(()=>{const n=t.current;if(!n)return;const r=n.querySelectorAll(".trustpilot-widget");r.length!==0&&em(()=>{r.forEach(o=>{window.Trustpilot?.loadFromElement(o,!0)})})},[e]),e?s.jsx("div",{ref:t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e}}):null},KT="trustpilot",tc={money:{businessId:"4bdc203f0000640005058e93",templateId:"53aa8807dec7e10d38f59f32",href:"https://uk.trustpilot.com/review/www.money.co.uk"},uswitch:{businessId:"49604fdf000064000503fd18",templateId:"53aa8807dec7e10d38f59f32",href:"https://uk.trustpilot.com/review/www.uswitch.com"}},ZT=({entry:e})=>{if(!UT(e))return null;const{widgetId:t,variant:n,brand:r,html:o}=e.fields,i=e.fields.options;if((n??t)===KT){const l=tc[r?.toLowerCase()??"money"]??tc.money,c=i?.templateId??l.templateId,d=i?.businessId??l.businessId,u=i?.href??l.href;return s.jsx(qT,{templateId:c,businessId:d,href:u,width:i?.width,height:i?.height,theme:i?.theme})}return s.jsx(YT,{html:o})},XT=[{contentType:"accordion",render:fy},{contentType:"authorGuidesModule",render:Vy},{contentType:"categoryGuidesModule",render:d0},{contentType:"articleIntro",render:Fy},{contentType:"authorProfile",render:Wy},{contentType:"callOut",render:hv},{contentType:"checklist",render:tu},{contentType:"billboard",render:iv,addVerticalSpacing:!1},{contentType:"breadcrumb",render:av},{contentType:"button",render:cv},{contentType:"card",render:yv},{contentType:"cardV2",render:Nv},{contentType:"stepForm",render:j_},{contentType:"productListingTable",render:$2},{contentType:"productTable",render:gE},{contentType:"productTableV2",render:o3},{contentType:"aggregationTable",render:Ay},{contentType:"richTextBlock",render:ou},{contentType:"richTextModule",render:E3},{contentType:"conditionalModule",render:Z0},{contentType:"cookieToggle",render:u1},{contentType:"cta",render:g1},{contentType:"featuredCards",render:N1},{contentType:"platinumModules",render:S2},{contentType:"providersLogoModule",render:p3},{contentType:"collectionModule",render:C0},{contentType:"form",render:xi},{contentType:"leadCaptureForm",render:Ew},{contentType:"list",render:Ow},{contentType:"signIn",render:c_},{contentType:"sponsoredByTag",render:x_},{contentType:"readMoreModule",render:g3},{contentType:"widgetHtml",render:ZT},{contentType:"iconTile",render:Z1},{contentType:"imageModule",render:xw},{contentType:"imageCalloutModule",render:cw},{contentType:"benefitsModule",render:Zy},{contentType:"component",render:W0},{contentType:"suggestedProducts",render:I_},{contentType:"accountsGuide",render:wy},{contentType:"table",render:VT},{contentType:"tabContainer",render:IT},{contentType:"linkList",render:Pw},{contentType:"heroFlex",render:V1,addVerticalSpacing:!1}],QT=new Map(XT.map(e=>[e.contentType,e])),JT=e=>e.nodeType!=="text",eS=e=>e?e.content.filter(t=>t.nodeType===C.UL_LIST||t.nodeType===C.OL_LIST).flatMap(t=>t.content.filter(JT)).map(t=>gn(t," ").trim()).filter(t=>t.length>0):[],tS=({personId:e,absoluteUrl:t,author:n,description:r,image:o,expertise:i})=>{const a=[n.twitterLink,n.linkedInLink].filter(c=>typeof c=="string"&&c.length>0),l=eS(i);return{"@type":"Person","@id":e,name:n.name,url:t,worksFor:rs(),...n.role&&{jobTitle:n.role},...r&&{description:r},...o&&{image:o},...a.length>0&&{sameAs:a},...l.length>0&&{knowsAbout:l}}},nS=({absoluteUrl:e,personId:t,name:n,description:r,dateModified:o})=>({"@type":"ProfilePage","@id":`${e}#profilepage`,url:e,...n&&{name:n},...r&&{description:r},mainEntity:{"@id":t},isPartOf:$o(),...o&&{dateModified:o},inLanguage:Mo,publisher:rs()}),rS=({authorLink:e,name:t,description:n,expertise:r})=>{const o=Te(),{rootEntry:i}=J(),a=ts(e,"author"),l=Ut(a?.image),c=i?.fields.pageType,d=i?.fields.url,u=Hr(i?.fields.updatedDate);if(o!=="money"||c!=="Author"||!a||typeof d!="string")return null;const f=mn(d,o),m=gc(f)["@id"],h=xc(l,o),p=tS({personId:m,absoluteUrl:f,author:a,description:n,image:h,expertise:r}),b=nS({absoluteUrl:f,personId:m,name:t,description:n,dateModified:u});return s.jsx(pn,{data:{"@graph":[b,p]}})},nc=(e,t,n)=>e&&t?bc({name:e,url:t},n):void 0,sS=["Homepage","Author","Guide","News","Case study","Outreach"],oS=({name:e,description:t,authorLink:n,editorLink:r,platinumAuthorName:o,platinumAuthorPageUrl:i,platinumEditorName:a,platinumEditorPageUrl:l})=>{const c=Te(),{rootEntry:d}=J(),u=Vr(n,c),f=Vr(r,c),m=d?.fields.pageType,h=d?.fields.url;if(c!=="money"||typeof m!="string"||sS.includes(m)||typeof h!="string")return null;const p=m==="Transactional",b=p?nc(o,i,c):u,g=p?nc(a,l,c):f,y=mn(h,c),w=Hr(d?.fields.updatedDate),k={"@type":"WebPage","@id":`${y}#webpage`,url:y,name:e,...t&&{description:t},...w&&{dateModified:w},inLanguage:Mo,isPartOf:$o(),...b&&{author:b},...g&&{editor:g},publisher:rs()};return s.jsx(pn,{data:k})},iS=({snippet:e,name:t,url:n})=>{const o=Te()==="confused"?"/about-us/editorial-policy":"/editorial-policy";return s.jsxs("div",{className:"bg-grey10 max-w-300 m-auto p-6 my-4",children:[s.jsxs("h3",{className:"heading-xs mb-2",children:["About ",t]}),s.jsx(he,{content:e}),s.jsxs("p",{children:[n&&s.jsxs(s.Fragment,{children:["View"," ",s.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"underline hover:underline",children:[t,"'s full biography here"]})," ","or learn more about"," "]}),!n&&s.jsx(s.Fragment,{children:"Learn more about "}),s.jsxs("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"underline hover:underline",children:["our editorial policy"," "]})]})]})},aS=x.lazy(async()=>await lt(()=>import("./contentful-live-preview-Dt0vhDOk.js"),__vite__mapDeps([18,1,19,4,2,3,5,6]))),ur=(e,t)=>t.find(n=>n.sys.id===e),lS=(e,t)=>{for(const n of e){const r=ur(n.sys.id,t);if(r&&Wd(r))return r}},cS=(e,t)=>{for(const n of e){const r=ur(n.sys.id,t);if(r&&Ud(r))return r}},dS=(e,t,n)=>{const r=cS(e,t);return n&&r?{urlAuthorLink:n,articleIntroEntry:r}:void 0},uS=(e,t)=>{for(const n of e){const r=ur(n.sys.id,t);if(r&&zo(r)&&r.fields.variant==="author-editor-card-module"){const o=V(r.fields.jsonBody)?r.fields.jsonBody:{};return{authorName:O(o.authorName),authorPageUrl:O(o.authorPageUrl),editorName:O(o.editorName),editorPageUrl:O(o.editorPageUrl)}}}return{authorName:void 0,authorPageUrl:void 0,editorName:void 0,editorPageUrl:void 0}},fS=["imageModule","imageCalloutModule"],mS=(e,t)=>{const n=new Set;return e.forEach((r,o)=>{if(o>mm)return;const a=ur(r.sys.id,t)?.sys.contentType.sys.id;a&&fS.includes(a)&&n.add(r.sys.id)}),n},tm=({linkedEntry:e,addVerticalSpacing:t,addHorizontalSpacing:n=!0})=>{const r=Lo(e),o=r?.sys.contentType.sys.id;if(!o)return null;const i=QT.get(o),a=i?.render({entry:r}),l=t??i?.addVerticalSpacing??!0;return i&&a==null?null:i?s.jsx("div",{id:o,className:`max-w-page m-auto box-border ${l?"py-[var(--module-spacing-mobile)] md:py-[var(--module-spacing-desktop)]":"py-0 md:py-0"} ${n?"px-3 md:px-4":"px-0 md:px-0"}`,children:a}):s.jsxs("div",{id:o,className:"bg-error text-white text-xl p-4 text-center max-w-page m-auto",children:["The ",s.jsxs("strong",{children:[o," "]})," component has not been migrated to the new stack from fs-core. Please remove this entry before publishing"]})},pS=(e,t)=>{const n=t==="money"?"money.co.uk":t==="uswitch"?"uswitch.com":t==="confused"?"confused.com":void 0;return e.length>fm?e:`${e} | ${n}`},hS=({entry:e})=>{const t=Ut(e.fields.metaImage),n=Te(),r=pS(e.fields.title,e.fields.brand),o=e.fields.metaDescription,i=t?.fields.file?.url,a=i?Jr(i,n):void 0;return s.jsxs(s.Fragment,{children:[s.jsx("meta",{property:"og:type",content:"website"}),r&&s.jsxs(s.Fragment,{children:[s.jsx("title",{children:r}),s.jsx("meta",{property:"og:title",content:r})]}),o&&s.jsxs(s.Fragment,{children:[s.jsx("meta",{name:"description",content:o}),s.jsx("meta",{property:"og:description",content:o})]}),a&&s.jsx("meta",{property:"og:image",content:a})]})},xS=({authorLink:e})=>{const t=ts(e,"author");return t?s.jsx(iS,{...t}):null},qs=(e,t)=>s.jsx(tm,{linkedEntry:e,addVerticalSpacing:t.vertical,addHorizontalSpacing:t.horizontal}),gS=({variant:e})=>
142{if(!e)return null;const{linkedEntries:t,rootEntry:n}=J(),r=Te(),o=ur(e.sys.id,t);if(!o||!xm(o))return null;const i=o,a=i.fields.modules;if(a.length===0)return null;const l=ns(a,t),c=n?.fields.authors?.[0]??n?.fields.editors?.[0],d=n?.fields.authors?.[0],u=n?.fields.editors?.[0],f=mS(a,t),h=lS(a,t)?.fields,p=h?.author,b=dS(a,t,d),g=uS(a,t);return s.jsxs(Em,{value:f,children:[s.jsx(hS,{entry:i}),l.filter(([,y])=>y.length>0).map(([y,w],k)=>{const A=w.map(v=>s.jsx("div",{id:v.sys.id,className:"scroll-mt-12 lg:scroll-mt-8",children:s.jsx(tm,{linkedEntry:v})},v.sys.id));return y?s.jsx(Gt,{paletteEntry:y,children:A},k):s.jsx(x.Fragment,{children:A},k)}),c&&r!=="uswitch"&&s.jsx(xS,{authorLink:c}),p&&s.jsx(rS,{authorLink:p,name:h.name,description:i.fields.metaDescription,expertise:h.expertise}),b&&s.jsx(Om,{title:b.articleIntroEntry.fields.title,description:b.articleIntroEntry.fields.description,metaTitle:i.fields.title,metaDescription:i.fields.metaDescription,metaImageLink:i.fields.metaImage,authorLink:b.urlAuthorLink,editorLink:u}),s.jsx(oS,{name:i.fields.title,description:i.fields.metaDescription,authorLink:d,editorLink:u,platinumAuthorName:g.authorName,platinumAuthorPageUrl:g.authorPageUrl,platinumEditorName:g.editorName,platinumEditorPageUrl:g.editorPageUrl})]})},TS=()=>{const{rootEntry:e}=J(),t=cc();return e?s.jsx(gS,{variant:t}):null},SS=({rootEntry:e,linkedEntries:t,linkedAssets:n,blockData:r,formData:o,productListingData:i,productTableData:a,reviews:l,sme:c,experiences:d,providerLogoData:u,providersListData:f,trustpilotData:m,leadCaptureFormData:h,aggregationTableData:p,categoryGuidesData:b,authorGuidesData:g,resultsCardData:y,travelMoneyData:w,ppcNavData:k,suggestedProductsData:A,isLivePreview:v,children:j,app:E})=>{const N={rootEntry:e,linkedEntries:t,linkedAssets:n,blockData:r,formData:o,productListingData:i,productTableData:a,reviews:l,sme:c,experiences:d,providerLogoData:u,providersListData:f,trustpilotData:m,leadCaptureFormData:h,aggregationTableData:p,categoryGuidesData:b,authorGuidesData:g,resultsCardData:y,travelMoneyData:w,ppcNavData:k,suggestedProductsData:A,app:E};return v?s.jsx(x.Suspense,{fallback:s.jsx($e.Provider,{value:N,children:s.jsx(Cs,{value:qs,children:j})}),children:s.jsx(aS,{value:N,children:s.jsx(Cs,{value:qs,children:j})})}):s.jsx($e.Provider,{value:N,children:s.jsx(Cs,{value:qs,children:j})})},AS=({pageData:e,experiences:t})=>{const n=e?.rootEntity?.fields.productCategory,r=e?.rootEntity?.fields.pageType;typeof n=="string"&&(window.__PRODUCT_CATEGORY__=n),typeof r=="string"&&(window.__PAGE_TYPE__=r),window.__experiences__=t,t&&Object.entries(t).forEach(([o,{cohort:i,iteration:a}])=>{ze("Experiment Loaded",{experiment_id:o,iteration_id:a??"1",variation_id:`${i}`})})};export{Xc as $,dx as A,Me as B,$e as C,Eh as D,rr as E,Th as F,hx as G,Wc as H,H as I,pn as J,un as K,ux as L,os as M,bn as N,Im as O,Wo as P,vn as Q,Gr as R,Mo as S,qt as T,Rt as U,Mt as V,Lm as W,lx as X,pa as Y,Ks as Z,Kx as _,Gd as a,Qc as a0,ih as a1,Vc as a2,to as a3,ES as a4,kS as a5,y_ as a6,fd as a7,z0 as b,st as c,nr as d,Kt as e,fn as f,SS as g,TS as h,Ww as i,ne as j,V as k,Re as l,Yt as m,_S as n,rs as o,wn as p,Vo as q,nu as r,AS as s,Uc as t,J as u,yn as v,B0 as w,_h as x,Yc as y,Oh as z};

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.