1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1311600c-9c57-4c31-a588-ecf9a793a5b8",e._sentryDebugIdIdentifier="sentry-dbid-1311600c-9c57-4c31-a588-ecf9a793a5b8")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2149],{6735:(e,t,r)=>{r.d(t,{default:()=>Z});var n=r(54568),a=r(7620),o=r(27541),l=r(25712),s=r(34543),i=r(84418),c=r(43570),d=r(11148),m=r(37703),u=r(15326);let h={sm:32,md:40,lg:52},p=/^(?:https?|mailto|tel):/i,x="ml_signed_in",f="".concat(x,"=; path=/; max-age=0; SameSite=Lax");var b=r(10936),g=r(22329),v=r(41901),y=r(76677),j=r(12412);function w(e){let{item:t,onSelect:r}=e,o=e=>{var t;return!!e.active||!!(null==(t=e.children)?void 0:t.some(o))},l=o(t),[s,i]=(0,a.useState)(l),c=(0,a.useId)();if((0,a.useEffect)(()=>{l&&i(!0)},[l]),t.children)return(0,n.jsxs)("li",{children:[(0,n.jsxs)("button",{type:"button",className:"ml-sidebar-link","aria-expanded":s,"aria-controls":c,onClick:()=>i(!s),"data-active":o(t)||void 0,children:[(0,n.jsx)("span",{children:t.label}),(0,n.jsx)(g.A,{size:16,"aria-hidden":"true",style:{transform:s?"rotate(180deg)":void 0}})]}),(0,n.jsx)("ul",{id:c,className:"ml-sidebar-children",hidden:!s,children:t.children.map(e=>(0,n.jsx)(w,{item:e,onSelect:r},e.id))})]});let d=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:t.label}),t.openNewTab&&(0,n.jsx)(v.A,{size:15,"aria-hidden":"true"})]});return(0,n.jsx)("li",{children:r?(0,n.jsx)("button",{type:"button",className:"ml-sidebar-link","aria-current":t.active?"page":void 0,onClick:()=>r(t),children:d}):(0,n.jsx)("a",{className:"ml-sidebar-link",href:t.href,"aria-current":t.active?"page":void 0,target:t.openNewTab?"_blank":void 0,rel:t.openNewTab?"noopener noreferrer":void 0,children:d})})}function k(e){let{brand:t,items:r,actions:o,utility:l,editNavigation:s,onSelect:i,openLabel:c="Open menu",closeLabel:d="Close menu",navigationLabel:m="Main navigation"}=e,[u,h]=(0,a.useState)(!1),p=(0,a.useId)(),x=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var e;if(!u)return;let t=null==(e=x.current)?void 0:e.ownerDocument,r=e=>{if("Escape"===e.key){var t;h(!1),null==(t=x.current)||t.focus()}};return null==t||t.addEventListener("keydown",r),()=>null==t?void 0:t.removeEventListener("keydown",r)},[u]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("style",{children:N}),(0,n.jsxs)("header",{className:"ml-sidebar","data-open":u,children:[(0,n.jsxs)("div",{className:"ml-sidebar-masthead",children:[(0,n.jsx)("div",{className:"ml-sidebar-brand",children:t}),(0,n.jsx)("button",{ref:x,type:"button",className:"ml-sidebar-toggle","aria-label":u?d:c,"aria-expanded":u,"aria-controls":p,onClick:()=>h(!u),children:u?(0,n.jsx)(y.A,{size:22}):(0,n.jsx)(j.A,{size:22})})]}),(0,n.jsxs)("div",{id:p,className:"ml-sidebar-panel",children:[(0,n.jsx)("nav",{"aria-label":m,className:"ml-sidebar-nav","data-lenis-prevent":!0,children:(0,n.jsx)("ul",{children:r.map(e=>(0,n.jsx)(w,{item:e,onSelect:i?e=>{i(e),h(!1)}:void 0},e.id))})}),s,(o||l)&&(0,n.jsxs)("div",{className:"ml-sidebar-bottom",children:[o&&(0,n.jsx)("div",{className:"ml-sidebar-actions",children:o}),l&&(0,n.jsx)("div",{className:"ml-sidebar-utility",children:l})]})]})]})]})}let N='\n.ml-sidebar { --sidebar-width: 280px; --site-button-radius: 12px; border-end-start-radius: 20px; border-end-end-radius: 20px; position: sticky; top: 0; z-index: 50; color: var(--site-color-fg); background: var(--site-color-bg); border-bottom: 1px solid var(--site-color-border); font-family: var(--site-font-body); }\n.ml-sidebar *, .ml-sidebar *::before, .ml-sidebar *::after { box-sizing: border-box; }\n.ml-sidebar :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }\n.ml-sidebar ::selection { background: var(--site-color-accent); color: var(--site-color-bg); }\n.ml-sidebar-masthead { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 12px 20px; }\n.ml-sidebar-brand { min-width: 0; }\n.ml-sidebar-brand > :is(a, button), .ml-sidebar-brand > div > button { display: flex; gap: 12px; align-items: center; text-align: start; max-width: 100%; color: inherit; }\n.ml-sidebar-brand [data-sidebar-logo] { width: 56px; height: 56px; object-fit: contain; object-position: left center; }\n.ml-sidebar-brand img { object-fit: contain; flex-shrink: 0; max-width: 100%; }\n.ml-sidebar-brand [data-sidebar-name] { font-size: 24px; font-weight: 500; font-family: var(--site-font-display); line-height: 1.2; }\n.ml-sidebar-brand [data-sidebar-description] { display: none; }\n.ml-sidebar-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--site-color-border); border-radius: var(--site-button-radius); background: transparent; color: inherit; cursor: pointer; }\n.ml-sidebar-panel { display: none; padding: 8px 20px 24px; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--site-color-muted) var(--site-color-bg); }\n.ml-sidebar[data-open="true"] .ml-sidebar-panel { display: block; }\n.ml-sidebar-nav { flex-shrink: 0; color: var(--site-color-bg); background: var(--site-color-fg); padding: 12px; border-radius: 16px; }\n.ml-sidebar-nav ul { list-style: none; padding: 0; margin: 0; }\n.ml-sidebar-nav .ml-sidebar-children { padding-inline-start: 14px; margin: 2px 0 8px; }\n.ml-sidebar-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 15px; line-height: 1.5; font-weight: 500; text-align: start; text-decoration: none; cursor: pointer; transition: background-color 160ms ease-out; }
1\n.ml-sidebar-link span { overflow-wrap: anywhere; }\n.ml-sidebar-link svg { flex-shrink: 0; }\n.ml-sidebar-link:hover, .ml-sidebar-link[aria-current="page"], .ml-sidebar-link[data-active="true"] { background: color-mix(in oklch, var(--site-color-bg) 14%, transparent); }\n.ml-sidebar-link[aria-current="page"] span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }\n.ml-sidebar-children .ml-sidebar-link { font-size: 14px; font-weight: 400; }\n.ml-sidebar-bottom { margin-top: auto; padding-top: 28px; }\n.ml-sidebar-actions { display: flex; flex-direction: column; gap: 10px; }\n.ml-sidebar-actions :is(a, button) { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; text-align: center; }\n.ml-sidebar-actions .ml-sidebar-join { padding: 12px 16px; color: var(--site-color-bg); background: var(--site-color-fg); border-radius: var(--site-button-radius); }\n.ml-sidebar-guest-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }\n.ml-sidebar-guest-actions > :is(a, button, span) { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: 10px 8px; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; overflow-wrap: anywhere; border-radius: var(--site-button-radius); }\n.ml-sidebar-guest-actions .ml-sidebar-signin { border: 1px solid var(--site-color-border); color: var(--site-color-fg); background: transparent; }\n.ml-sidebar-guest-actions .ml-sidebar-signin:hover { background: color-mix(in oklch, var(--site-color-bg), var(--site-color-fg) 6%); border-color: var(--site-color-fg); }\n.ml-sidebar-actions .ml-sidebar-join:hover { background: var(--site-color-accent); }\n.ml-sidebar-utility { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }\n.ml-sidebar-edit { margin-top: 12px; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }\n@media (min-width: 1024px) {\n .ml-sidebar-layout:has(.ml-sidebar) { padding-inline-start: 280px; }\n .ml-sidebar { border-end-start-radius: 0; border-start-end-radius: 24px; border-end-end-radius: 24px; position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar-width); height: var(--preview-viewport-height, 100dvh); display: flex; flex-direction: column; border-bottom: 0; border-inline-end: 1px solid var(--site-color-border); }\n .ml-sidebar-masthead { display: block; padding: 36px 28px 28px; }\n .ml-sidebar-brand > :is(a, button), .ml-sidebar-brand > div > button { flex-direction: column; align-items: flex-start; gap: 16px; }\n .ml-sidebar-brand [data-sidebar-name] { font-size: 32px; }\n .ml-sidebar-brand [data-sidebar-description] { display: block; margin-top: 8px; white-space: normal; font-size: 13px; line-height: 1.6; color: var(--site-color-muted); }\n .ml-sidebar-brand img { height: auto; max-height: 80px; width: auto; max-width: 100%; }\n /* Reserve the logo box before its image decodes; auto dimensions shifted every link. */\n .ml-sidebar-brand [data-sidebar-logo] { width: 140px; height: 80px; max-height: none; }\n .ml-sidebar-toggle { display: none; }\n .ml-sidebar-panel, .ml-sidebar[data-open="true"] .ml-sidebar-panel { display: flex; flex: 1; min-height: 0; max-height: none; flex-direction: column; padding: 0 20px 24px; }\n .ml-sidebar-thumbnail { position: relative; }\n .ml-sidebar-thumbnail .ml-sidebar { position: absolute; height: 100%; }\n}\n@media (prefers-reduced-motion: reduce) { .ml-sidebar-link { transition: none; } }\n',S="/auth/sign-up",C=["/api/tenant/info","/api/customization/public","/api/registration/form","/api/public/membership-types","/api/public/operating-units/config","/api/discount-codes/settings/public"],A=null;function _(e,t,r){let n=new URL(t,window.location.href).href;if(Array.from(document.head.querySelectorAll("link[data-member-signup-warmup]")).some(t=>t.rel===e&&t.href===n))return;let a=document.createElement("link");a.rel=e,a.href=n,a.dataset.memberSignupWarmup="true",r&&a.setAttribute("as",r),document.head.appendChild(a)}async function E(){_("prefetch",S,"document");try{let e=await fetch(S,{credentials:"include",headers:{Accept:"text/html"},mode:"same-origin"});if(!e.ok)return;let t=await e.text(),r=new DOMParser().parseFromString(t,"text/html");
1r.querySelectorAll('link[rel="stylesheet"][href]').forEach(e=>{_("preload",e.href,"style")}),r.querySelectorAll("script[src]").forEach(e=>{_("module"===e.type?"modulepreload":"prefetch",e.src,"script")})}catch(e){}}function L(e){return fetch(e,{credentials:"include",headers:{Accept:"application/json"},mode:"same-origin"}).catch(()=>void 0)}function z(){return!function(){let e=navigator.connection;return!((null==e?void 0:e.saveData)||"string"==typeof(null==e?void 0:e.effectiveType)&&e.effectiveType.includes("2g"))}()?Promise.resolve():(A||(A=Promise.all([E(),...C.map(L)]).then(()=>void 0)),A)}function T(e){let{enabled:t}=e;return(0,a.useEffect)(()=>{if(!t)return;let e=e=>{(function(e){if(!(e instanceof Element))return!1;let t=e.closest("a[href]");if(!t)return!1;try{let e=new URL(t.href,window.location.href);return e.origin===window.location.origin&&e.pathname===S}catch(e){return!1}})(e.target)&&z()};document.addEventListener("pointerover",e,{capture:!0,passive:!0}),document.addEventListener("touchstart",e,{capture:!0,passive:!0}),document.addEventListener("focusin",e,!0);let r=window,n="function"==typeof r.requestIdleCallback?r.requestIdleCallback(()=>void z(),{timeout:3500}):void 0,a=void 0===n?window.setTimeout(()=>void z(),1800):void 0;return()=>{var t;document.removeEventListener("pointerover",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("focusin",e,!0),void 0!==n&&(null==(t=r.cancelIdleCallback)||t.call(r,n)),void 0!==a&&window.clearTimeout(a)}},[t]),null}var I=r(96482),F=r(7723),R=r(63482);let P={en:"common.language.enShort","zh-CN":"common.language.zhCNShort","zh-TW":"common.language.zhTWShort",ko:"common.language.koShort",de:"common.language.deShort",ja:"common.language.jaShort",es:"common.language.esShort"},W={en:"common.language.en","zh-CN":"common.language.zhCN","zh-TW":"common.language.zhTW",ko:"common.language.ko",de:"common.language.de",ja:"common.language.ja",es:"common.language.es"};function D(){let{onHero:e=!1,className:t="inline-flex",languages:r,reserveSpace:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{t:i,i18n:c}=(0,l.Bd)(),[d,m]=(0,a.useState)(!1),[u,h]=(0,a.useState)(!1),p=(0,a.useRef)(null);(0,a.useEffect)(()=>m(!0),[]),(0,a.useEffect)(()=>{if(!u)return;let e=e=>{p.current&&!p.current.contains(e.target)&&h(!1)},t=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[u]);let x=(0,R.a5)(r);if(x.length<2)return null;if(!d)return o?(0,n.jsx)("span",{"aria-hidden":"true",className:t,style:{width:76,height:26}}):null;let f=(0,R.D4)(c.language)&&x.includes(c.language)?c.language:x[0];return(0,n.jsxs)("div",{ref:p,className:"".concat(t," relative items-center"),children:[(0,n.jsxs)("button",{type:"button",onClick:()=>h(e=>!e),className:"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-semibold transition-colors",style:{color:e?"rgba(255, 255, 255, 0.9)":"var(--site-color-fg)",borderColor:e?"rgba(255, 255, 255, 0.4)":"var(--site-color-border)"},"aria-label":i("common.language.label"),"aria-haspopup":"listbox","aria-expanded":u,children:[(0,n.jsx)(I.A,{className:"h-3.5 w-3.5","aria-hidden":"true"}),i(P[f]),(0,n.jsx)(s.A,{className:"h-3 w-3 transition-transform",style:{transform:u?"rotate(180deg)":void 0},"aria-hidden":"true"})]}),u&&(0,n.jsx)("div",{role:"listbox","aria-label":i("common.language.label"),className:"absolute top-full right-0 mt-2 min-w-[11rem] overflow-hidden rounded-xl border py-1 shadow-xl z-50",style:{backgroundColor:"var(--site-color-bg)",borderColor:"var(--site-color-border)"},children:x.map(e=>{let t=e===f;return(0,n.jsxs)("button",{type:"button",role:"option","aria-selected":t,onClick:()=>(e=>{if(h(!1),(0,R.D4)(e)&&e!==c.language){(0,R.Sh)(e);try{localStorage.setItem(R.NK,e)}catch(e){}}})(e),className:"flex w-full items-center justify-between gap-3 px-3 py-2 text-left text-sm transition-colors hover:bg-[color-mix(in_oklch,var(--site-color-bg),var(--site-color-fg)_6%)]",style:{color:"var(--site-color-fg)",fontWeight:t?600:400},children:[i(W[e]),t&&(0,n.jsx)(F.A,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"})]},e)})})]})}var M=r(58603),O=r(46106),B=r(57501),U=r(32433);let q=[{key:"facebook",label:"Facebook",Icon:M.A},{key:"twitter",label:"X (Twitter)",Icon:O.A},{key:"linkedin",label:"LinkedIn",Icon:B.A},{key:"instagram",label:"Instagram",Icon:U.A}
1];function G(e){let t=e&&"object"==typeof e?e:{};return q.filter(e=>{let r;return"string"==typeof(r=t[e.key])&&/^https?:\/\/\S+$/i.test(r.trim())}).map(e=>({key:e.key,label:e.label,url:t[e.key].trim()}))}function V(e){let{links:t,className:r,labelled:a=!1,size:o="md"}=e,l=G(t);if(0===l.length)return null;if(a)return(0,n.jsx)("ul",{className:null!=r?r:"flex flex-col gap-3",children:q.filter(e=>l.some(t=>t.key===e.key)).map(e=>{let{key:t,label:r,Icon:a}=e;return(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:l.find(e=>e.key===t).url,target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-3 text-sm font-medium transition-colors",style:{color:"var(--site-color-fg)"},children:[(0,n.jsx)("span",{className:"inline-flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border transition-colors group-hover:bg-[color-mix(in_oklch,var(--site-color-fg)_12%,transparent)]",style:{borderColor:"var(--site-color-border)"},children:(0,n.jsx)(a,{className:"h-[18px] w-[18px]","aria-hidden":"true"})}),(0,n.jsx)("span",{className:"underline decoration-transparent underline-offset-4 transition-colors group-hover:decoration-current",children:r})]})},t)})});let s="sm"===o?"h-8 w-8":"h-9 w-9";return(0,n.jsx)("ul",{className:null!=r?r:"flex items-center gap-2",children:q.filter(e=>l.some(t=>t.key===e.key)).map(e=>{let{key:t,label:r,Icon:a}=e;return(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:l.find(e=>e.key===t).url,target:"_blank",rel:"noopener noreferrer","aria-label":r,className:"inline-flex ".concat(s," items-center justify-center rounded-full border transition-colors hover:bg-[color-mix(in_oklch,var(--site-color-fg)_12%,transparent)]"),style:{borderColor:"var(--site-color-border)",color:"var(--site-color-fg)"},children:(0,n.jsx)(a,{className:"h-4 w-4","aria-hidden":"true"})})},t)})})}let H=a.useLayoutEffect,X="var(--site-color-fg)",K="var(--site-color-bg)",Y="var(--site-color-border)",$="color-mix(in oklch, var(--site-color-bg), var(--site-color-fg) 6%)";function J(e){if("page"===e.type&&e.slug)return"home"===e.slug?"/":"/".concat(e.slug);if(e.url){var t=e.url;let r=String(null!=t?t:"").trim();return r&&("/"===r[0]||"#"===r[0]||p.test(r))?r:"#"}return"/"}function Q(e){let{item:t}=e,[r,o]=(0,a.useState)(!1),l=(0,a.useRef)(null),i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!r)return;let e=e=>{l.current&&!l.current.contains(e.target)&&o(!1)},t=e=>{"Escape"===e.key&&o(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[r]),(0,n.jsxs)("div",{className:"relative",ref:l,onMouseEnter:()=>{i.current&&clearTimeout(i.current),o(!0)},onMouseLeave:()=>{i.current=setTimeout(()=>o(!1),120)},children:[(0,n.jsxs)("button",{onClick:()=>o(e=>!e),"aria-haspopup":"true","aria-expanded":r,className:"px-3 py-1.5 rounded-lg transition-colors whitespace-nowrap hover:text-[var(--site-color-accent)] inline-flex items-center gap-0.5",children:[t.label,(0,n.jsx)(s.A,{className:"w-3.5 h-3.5"})]}),r&&(0,n.jsx)("div",{className:"absolute top-full left-0 mt-1 w-52 rounded-lg shadow-xl py-1 z-50 border",style:{backgroundColor:K,borderColor:Y},children:(t.children||[]).map(e=>(0,n.jsx)("a",{href:J(e),target:e.openNewTab?"_blank":void 0,rel:e.openNewTab?"noopener noreferrer":void 0,onClick:()=>o(!1),className:"block break-words px-4 py-2 text-sm hover:bg-[color-mix(in_oklch,var(--site-color-bg),var(--site-color-fg)_4%)]",style:{color:X},children:e.label},e.id))})]})}function Z(e){let{nav:t,branding:r,flags:p,overHero:g=!1,languages:v,layout:y="standard"}=e,{t:j}=(0,l.Bd)(),w=(0,o.usePathname)(),[N,S]=(0,a.useState)(!1),[C,A]=(0,a.useState)(!1),[_,E]=(0,a.useState)(!1),[L,z]=(0,a.useState)({}),[I,F]=(0,a.useState)(!1),R=(0,a.useRef)(null),P=(0,a.useRef)(null),W=(0,a.useRef)(null),M=(0,a.useRef)(null),O=(0,a.useRef)(null),B=(0,a.useRef)(null),[U,q]=(0,a.useState)(null),[Z,ee]=(0,a.useState)(!1),[et,er]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=()=>S(window.scrollY>20);return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,a.useEffect)(()=>{let e=!0;return(async()=>{let t=!1;try{let n=await fetch("/api/auth/me",{credentials:"include",headers:{Accept:"application/json"}});if(n.ok){var r;
1let a=await n.json(),o=null!=(r=null==a?void 0:a.user)?r:a;(null==o?void 0:o.memberID)&&!o.isTenantAdmin&&!o.isPlatformAdmin&&(t=!0,e&&q({fullName:o.fullName||"",membershipNo:o.membershipNo||o.memberID}))}}catch(e){}if(e)if(ee(!0),t){document.documentElement.setAttribute("data-ml-auth","member");let e="https:"===window.location.protocol?"; Secure":"";document.cookie="".concat(x,"=1; path=/; SameSite=Lax").concat(e)}else document.documentElement.removeAttribute("data-ml-auth"),document.cookie=f})(),()=>{e=!1}},[]),(0,a.useEffect)(()=>{if(!I)return;let e=e=>{R.current&&!R.current.contains(e.target)&&F(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[I]);let en=async()=>{if(!et){er(!0);try{await fetch("/api/logout",{method:"POST",credentials:"include",headers:(0,b.l)()})}catch(e){}document.cookie=f,window.location.href="/"}},{logoUrl:ea,orgName:eo="",brandDisplayMode:el,headerImage:es}=r,{showLogo:ei,showName:ec,image:ed}=function(e,t){if("header_image"===e&&(null==t?void 0:t.url)){let e=t.size&&t.size in h?t.size:"md";return{showLogo:!1,showName:!1,image:{url:t.url,height:h[e]}}}let r=e&&"header_image"!==e?e:"logo_text";return{showLogo:"logo_text"===r||"logo_only"===r,showName:"logo_text"===r||"text_only"===r,image:null}}(el,es),{membershipEnabled:em}=p,eu="two-row"===y,eh="standard"===y&&g&&!N,ep=eh?"#ffffff":X,ex=(t||[]).filter(e=>!1!==e.isVisible),ef=eu?1/0:5,eb=ex.slice(0,ef),[eg,ev]=(0,a.useState)(eb.length),ey=ex.slice(0,eg),ej=ex.slice(eg),ew=(0,a.useCallback)(()=>{var e;let t=eu?W.current:P.current,r=M.current,n=O.current,a=B.current;if(!t||!r||!n||!eu&&!a||null===r.offsetParent)return;let o=getComputedStyle(t),l=t.clientWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight),s=parseFloat(o.columnGap)||0,i=eu?l:l-2*(a.offsetWidth+s),c=Array.from(n.children).map(e=>e.offsetWidth),d=null!=(e=c[c.length-1])?e:0,m=c.slice(0,-1),u=parseFloat(getComputedStyle(r).columnGap)||0,h=m.length;for(;h>0;h--){let e=h<ex.length;if(m.slice(0,h).reduce((e,t)=>e+t,0)+(h-1)*u+(e?d+u:0)<=i)break}ev(h)},[ex.length,eu]);H(()=>{var e;ew();let t=new ResizeObserver(ew);return[P.current,W.current,O.current,B.current].forEach(e=>e&&t.observe(e)),null==(e=document.fonts)||e.ready.then(ew).catch(()=>{}),()=>t.disconnect()},[ew]);let ek=eo.length>30,eN=ed&&(0,n.jsx)("img",{src:ed.url,alt:eo,className:"block w-auto min-w-0 object-contain object-left",style:{height:ed.height,maxWidth:"min(320px, 100%)"}}),eS=(0,n.jsxs)("a",{href:"/",className:"flex items-center gap-2.5 min-w-0 max-w-full justify-self-start transition-colors duration-300",style:{color:ep},title:eo||void 0,children:[eN,ei&&(ea?(0,n.jsx)("img",{src:ea,alt:"",className:"w-8 h-8 rounded-lg object-contain flex-shrink-0"}):(0,n.jsx)("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center text-sm font-bold flex-shrink-0",style:{backgroundColor:$,color:"var(--site-color-muted)"},children:eo.charAt(0).toUpperCase()||"O"})),ec&&(0,n.jsx)("span",{className:"min-w-0 truncate font-bold tracking-tight leading-tight ".concat(ek?"text-sm sm:text-base":"text-base sm:text-lg"),children:eo})]}),{shortName:eC=""}=r,eA=(0,n.jsxs)("a",{href:"/",className:"flex min-w-0 items-center gap-3",style:{color:X},title:eo||void 0,children:[eN,ei&&ea&&(0,n.jsx)("img",{src:ea,alt:"",className:"h-10 w-auto max-w-[140px] flex-shrink-0 object-contain"}),ec&&(eC?(0,n.jsxs)("span",{className:"flex min-w-0 flex-col leading-tight",children:[(0,n.jsx)("span",{className:"text-lg font-semibold tracking-tight",children:eC}),(0,n.jsx)("span",{className:"hidden truncate text-sm sm:block",style:{color:"var(--site-color-muted)"},children:eo})]}):(0,n.jsx)("span",{className:"min-w-0 truncate text-base font-semibold tracking-tight",children:eo}))]}),e_=(0,n.jsxs)("div",{ref:M,className:eu?"relative hidden lg:flex items-center gap-1 -ml-2 xl:-ml-3 text-sm xl:text-base font-medium":"relative hidden lg:flex items-center gap-1 text-sm font-semibold justify-self-center transition-colors duration-300",style:{color:ep},children:[ey.map(e=>{if("group"===e.type)return(0,n.jsx)(Q,{item:e},e.id);let t=J(e),r=w===t;return(0,n.jsx)("a",{href:t,target:"external"===e.type&&e.openNewTab?"_blank":void 0,rel:"external"===e.type&&e.openNewTab?"noopener noreferrer":void 0,"aria-current":r?"page":void 0,className:eu?"px-2 xl:px-3 py-3 transition-colors whitespace-nowrap hover:text-[var(--site-color-accent)]":"px-3 py-1.5 rounded-lg transition-colors whitespace-nowrap hover:text-[var(--site-color-accent)]",style:r?eu?{boxShadow:"inset 0 -2px 0 var(--site-color-accent)",color:X}:{backgroundColor:$,color:X}:void 0,children:e.label},e.id)}),ej.length>0&&(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("button",{onClick:()=>E(!_),className:"px-3 py-1.5 rounded-lg transition-colors whitespace-nowrap hover:text-[var(--site-color-accent)]",style:{color:eh?ep:"var(--site-color-muted)"},children:[j("common.nav.more")," ",(0,n.jsx)(s.A,{className:"w-3.5 h-3.5 inline ml-0.5 -mt-0.5"})]}),_&&(0,n.jsx)("div",{className:"absolute top-full right-0 mt-1 w-48 rounded-lg shadow-xl py-1 z-50 border",style:{backgroundColor:K,borderColor:Y},children:ej.map(e=>(0,n.jsx)("a",{href:J(e),onClick:()=>E(!1),className:"block break-words px-4 py-2 text-sm hover:bg-[color-mix(in_oklch,var(--site-color-bg),var(--site-color-fg)_4%)]",style:{color:X},children:e.label},e.id))})]}),(0,n.jsx)("div",{className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:(0,n.jsxs)("div",{ref:O,"aria-hidden":"true",className:"flex w-max items-center gap-1",children:[eb.map(e=>(0,n.jsxs)("span",{className:"".concat(eu?"px-2 xl:px-3":"px-3"," py-1.5 whitespace-nowrap inline-flex items-center gap-0.5"),children:[e.label,"group"===e.type&&(0,n.jsx)(s.A,{className:"w-3.5 h-3.5"})]},e.id)),(0,n.jsxs)("span",{className:"px-3 py-1.5 whitespace-nowrap",children:[j("common.nav.more")," ",(0,n.jsx)(s.A,{className:"w-3.5 h-3.5 inline ml-0.5 -mt-0.5"})]})]})})]}),eE=eu&&G(r.socialLinks).length>0,eL=(0,n.jsxs)("div",{ref:B,className:"flex items-center gap-2 sm:gap-4 justify-self-end",children:[eE&&(0,n.jsxs)("div",{"data-nav-social":!0,className:"hidden lg:flex items-center gap-4",children:[(0,n.jsx)(V,{links:r.socialLinks,size:"sm",className:"flex items-center gap-1.5"}),(0,n.jsx)("span",{"aria-hidden":"true",className:"h-5 w-px",style:{backgroundColor:Y}})]}),(0,n.jsx)(D,{onHero:eh,className:"hidden lg:inline-flex",languages:v}),em&&(U||!Z)&&(0,n.jsxs)("div",{className:"relative hidden lg:block".concat(U?"":" ml-auth-in"),ref:R,children:[(0,n.jsxs)("button",{onClick:()=>F(e=>!e),className:"inline-flex items-center gap-1.5 rounded-full p-1 pr-2 transition-colors hover:bg-[color-mix(in_oklch,var(--site-color-bg),var(--site-color-fg)_5%)]",style:{color:ep},"aria-label":j("common.nav.accountMenu"),"aria-expanded":I,children:[(0,n.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-full",style:{backgroundColor:$,color:X},children:(0,n.jsx)(i.A,{className:"w-4 h-4"})}),(0,n.jsx)(s.A,{className:"w-3.5 h-3.5"})]}),I&&(0,n.jsxs)("div",{className:"absolute top-full right-0 mt-2 w-56 rounded-xl shadow-xl py-1 z-50 border overflow-hidden",style:{backgroundColor:K,borderColor:Y},children:[(null==U?void 0:U.fullName)&&(0,n.jsxs)("div",{className:"px-4 py-3 border-b",style:{borderColor:Y},children:[(0,n.jsx)("p",{className:"text-sm font-semibold truncate",style:{color:X},children:U.fullName}),U.membershipNo&&(0,n.jsx)("p",{className:"text-xs truncate",style:{color:"var(--site-color-muted)"},children:j("common.nav.memberId",{number:U.membershipNo})})]}),(0,n.jsxs)("a",{href:"/member/dashboard",className:"flex items-center gap-2.5 px-4 py-2.5 text-sm hover:bg-[color-mix(in_oklch,var(--site-color-bg),var(--site-color-fg)_4%)]",style:{color:X},children:[(0,n.jsx)(c.A,{className:"w-4 h-4"})," ",j("common.nav.dashboard")]}),(0,n.jsxs)("button",{onClick:en,disabled:et,className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-sm text-left hover:bg-[color-mix(in_oklch,var(--site-color-bg),var(--site-color-fg)_4%)] disabled:opacity-50",style:{color:X},children:[(0,n.jsx)(d.A,{className:"w-4 h-4"})," ",j(et?"common.nav.loggingOut":"common.nav.logOut")]})]})]}),em&&!U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("a",{href:"/auth/sign-in",className:"hidden lg:block text-sm font-semibold whitespace-nowrap transition-colors hover:text-[var(--site-color-accent)]".concat(Z?"":" ml-auth-out"),style:{color:ep},children:j("common.nav.signIn")}),(0,n.jsx)("a",{href:"/auth/sign-up",className:"hidden lg:inline-flex px-4 py-2 text-sm font-medium whitespace-nowrap transition-opacity hover:opacity-90".concat(Z?"":" ml-auth-out"),style:{backgroundColor:eh?"#ffffff"
1:X,color:eh?"#111111":K,borderRadius:"var(--site-button-radius)"},children:j("common.nav.joinNow")})]}),(0,n.jsx)("button",{onClick:()=>A(!C),className:"lg:hidden p-2 rounded-full transition-colors hover:bg-[color-mix(in_oklch,var(--site-color-bg),var(--site-color-fg)_5%)]",style:{color:ep},"aria-label":j(C?"common.nav.closeMenu":"common.nav.openMenu"),children:C?(0,n.jsx)(m.A,{className:"w-5 h-5"}):(0,n.jsx)(u.A,{className:"w-5 h-5"})})]});if("sidebar"===y){let e=t=>t.filter(e=>!1!==e.isVisible).map(t=>({id:t.id,label:t.label,href:J(t),active:w===J(t),openNewTab:t.openNewTab,..."group"===t.type?{children:e(t.children||[])}:{}}));return(0,n.jsxs)(n.Fragment,{children:[em&&(0,n.jsx)(T,{enabled:!0}),(0,n.jsx)(k,{items:e(t||[]),openLabel:j("common.nav.openMenu"),closeLabel:j("common.nav.closeMenu"),brand:(0,n.jsxs)("a",{href:"/","aria-label":eo||"Home",children:[eN,ei&&ea&&(0,n.jsx)("img",{"data-sidebar-logo":!0,src:ea,alt:"",width:56,height:56}),ec&&(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{"data-sidebar-name":!0,children:eC||eo}),eC&&(0,n.jsx)("span",{"data-sidebar-description":!0,children:eo})]})]}),actions:em?(0,n.jsxs)(n.Fragment,{children:[(U||!Z)&&(0,n.jsxs)(n.Fragment,{children:[(null==U?void 0:U.fullName)&&(0,n.jsx)("p",{className:"text-sm break-words",children:U.fullName}),(0,n.jsxs)("a",{href:"/member/dashboard",className:U?"":"ml-auth-in",children:[(0,n.jsx)(c.A,{size:16}),j("common.nav.dashboard")]}),(0,n.jsxs)("button",{type:"button",disabled:et,onClick:en,className:U?"":"ml-auth-in",children:[(0,n.jsx)(d.A,{size:16}),j(et?"common.nav.loggingOut":"common.nav.logOut")]})]}),!U&&(0,n.jsxs)("div",{className:"ml-sidebar-guest-actions".concat(Z?"":" ml-auth-out"),children:[(0,n.jsx)("a",{href:"/auth/sign-up",className:"ml-sidebar-join",children:j("common.nav.joinNow")}),(0,n.jsx)("a",{href:"/auth/sign-in",className:"ml-sidebar-signin",children:j("common.nav.signIn")})]})]}):void 0,utility:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(V,{links:r.socialLinks,size:"sm",className:"flex flex-wrap gap-3"}),(0,n.jsx)(D,{languages:v,reserveSpace:!0})]})})]})}return(0,n.jsxs)(n.Fragment,{children:[em&&(0,n.jsx)(T,{enabled:!0}),eu?(0,n.jsxs)("nav",{className:"sticky top-0 z-50 border-b",style:{backgroundColor:K,borderColor:Y},children:[(0,n.jsxs)("div",{ref:P,"data-nav-row":"brand",className:"mx-auto flex h-16 w-full max-w-[1280px] items-center justify-between gap-4 px-5 sm:px-8 lg:px-10",children:[eA,eL]}),(0,n.jsx)("div",{className:"hidden lg:block border-t",style:{borderColor:Y},children:(0,n.jsx)("div",{ref:W,"data-nav-row":"functions",className:"mx-auto flex h-12 w-full max-w-[1280px] items-center px-5 sm:px-8 lg:px-10",children:e_})})]}):(0,n.jsx)("nav",{className:"sticky top-0 z-50 transition-all duration-300",style:N?{backgroundColor:"color-mix(in oklch, var(--site-color-bg) 95%, transparent)",borderBottom:"1px solid ".concat(Y),backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)"}:{backgroundColor:"transparent",borderBottom:"0 solid ".concat(Y)},children:(0,n.jsxs)("div",{ref:P,className:"container mx-auto px-4 sm:px-6 h-16 grid grid-cols-[minmax(0,1fr)_auto] lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 sm:gap-4",children:[eS,e_,eL]})}),C&&(0,n.jsxs)("div",{className:"lg:hidden fixed inset-0 z-[100] overflow-y-auto",style:{backgroundColor:K,color:X},children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 py-4 border-b",style:{borderColor:Y},children:[eS,(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(D,{languages:v}),(0,n.jsx)("button",{onClick:()=>A(!1),className:"p-2 rounded-full",style:{color:"var(--site-color-muted)"},children:(0,n.jsx)(m.A,{className:"w-5 h-5"})})]})]}),(0,n.jsxs)("div",{className:"px-6 py-6 flex flex-col gap-4",children:[ex.map(e=>{if("group"===e.type){let t=!!L[e.id];return(0,n.jsxs)("div",{children:[(0,n.jsxs)("button",{onClick:()=>z(t=>({...t,[e.id]:!t[e.id]})),className:"w-full flex items-center justify-between py-2 text-lg font-semibold",children:[(0,n.jsx)("span",{children:e.label}),(0,n.jsx)(s.A,{className:"w-5 h-5 transition-transform ".concat(t?"rotate-180":"")})]}),t&&(0,n.jsx)("div",{className:"pl-4 flex flex-col gap-1 pb-1",children:(e.children||[]).map(e=>(0,n.jsx)("a",{href:J(e),className:"break-words text-left py-1.5 text-base font-medium",style:{color:"var(--site-color-muted)"},children:e.label},e.id))})]},e.id)}return(0,n.jsx)("a",{href:J(e),className:"text-left py-2 text-lg font-semibold",children:e.label},e.id)}),eE&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("hr",{style:{borderColor:Y}}),(0,n.jsx)(V,{links:r.socialLinks,labelled:!0,className:"flex flex-wrap gap-x-6 gap-y-3 py-1"})]}),em&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("hr",{style:{borderColor:Y}}),(U||!Z)&&(0,n.jsxs)(n.Fragment,{children:[(null==U?void 0:U.fullName)&&(0,n.jsxs)("div",{className:"py-1",children:[(0,n.jsx)("p",{className:"text-xs",style:{color:"var(--site-color-muted)"},children:j("common.nav.signedInAs")}),(0,n.jsx)("p",{className:"text-lg font-semibold",children:U.fullName})]}),(0,n.jsxs)("a",{href:"/member/dashboard",className:"flex items-center gap-2.5 text-left py-2 text-lg font-semibold".concat(U?"":" ml-auth-in"),children:[(0,n.jsx)(c.A,{className:"w-5 h-5"})," ",j("common.nav.dashboard")]}),(0,n.jsxs)("button",{onClick:en,disabled:et,className:"flex items-center gap-2.5 text-left py-2 text-lg font-semibold disabled:opacity-50".concat(U?"":" ml-auth-in"),children:[(0,n.jsx)(d.A,{className:"w-5 h-5"})," ",j(et?"common.nav.loggingOut":"common.nav.logOut")]})]}),!U&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("a",{href:"/auth/sign-in",className:"text-left py-2 text-lg font-semibold".concat(Z?"":" ml-auth-out"),children:j("common.nav.signIn")}),(0,n.jsx)("a",{href:"/auth/sign-up",className:"py-3 text-center font-medium".concat(Z?"":" ml-auth-out"),style:{backgroundColor:X,color:K,borderRadius:"var(--site-button-radius)"},children:j("common.nav.joinNow")})]})]})]})]})]})}},10936:(e,t,r)=>{r.d(t,{l:()=>n});function n(){return"undefined"==typeof document?{}:{"X-CSRF-Token":function(){var e;
1let t=null==(e=document.cookie.match(/(?:^|;\s*)csrf-token=([^;]+)/))?void 0:e[1];if(t)return t;let r=function(){let e=new Uint8Array(32);return crypto.getRandomValues(e),Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}(),n="csrf-token=".concat(r,"; path=/; SameSite=Strict");return"undefined"!=typeof location&&"https:"===location.protocol&&(n+="; Secure; domain=".concat(location.hostname)),document.cookie=n,r}()}}},13987:(e,t,r)=>{r.d(t,{FooterLegal:()=>s,FooterModuleLinks:()=>l});var n=r(54568),a=r(25712),o=r(70674);function l(e){let{classesEnabled:t,merchandiseEnabled:r,fundraisingEnabled:o,membershipEnabled:l,linkClass:s}=e,{t:i}=(0,a.Bd)();return(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)("a",{href:"/classes",className:s,children:i("common.footer.classes")}),r&&(0,n.jsx)("a",{href:"/shop",className:s,children:i("common.footer.shop")}),o&&(0,n.jsx)("a",{href:"/donate",className:s,children:i("common.footer.donate")}),l&&(0,n.jsx)("a",{href:"/auth/sign-in",className:s,children:i("common.nav.signIn")}),l&&(0,n.jsx)("a",{href:"/auth/sign-up",className:s,children:i("common.footer.join")})]})}function s(e){let{year:t}=e,{t:r}=(0,a.Bd)(),l=(0,o.W)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:r("common.footer.copyright",{year:t})}),(0,n.jsx)("span",{"aria-hidden":"true",children:"|"}),(0,n.jsxs)("span",{children:[r("common.footer.poweredBy")," ",(0,n.jsx)("a",{href:l.marketingUrl,target:"_blank",rel:"noopener noreferrer",className:"underline-offset-2 transition-colors hover:text-[var(--site-color-fg)] hover:underline",children:l.name})]})]})}},70674:(e,t,r)=>{r.d(t,{SiteBrandProvider:()=>c,W:()=>d});var n=r(54568),a=r(7620);let o=["memberlytic","passloft"],l={memberlytic:{id:"memberlytic",name:"Memberlytic",consoleLabel:"Admin Console",titleSuffix:"Admin",description:"Memberlytic - Comprehensive membership management platform for organizations. Manage members, events, documents, payments, and rewards programs.",logoSrc:"/memberlytic.png",faviconSrc:"/memberlytic.ico",appleTouchIconSrc:"/icons/icon-192.png",manifestSrc:"/manifest.json",themeColor:"#4f46e5",marketingUrl:"https://memberlytic.com",domains:["memberlytic.com","memberlytic.lvh.me"],moduleAllowlist:null,hostsPlatformConsole:!0,selfServeSignup:!1,heroArt:"/brand/memberlytic/signin-hero.webp",heroTagline:["Simpler management.","Stronger communities."],billingCurrency:"sgd"},passloft:{id:"passloft",name:"PassLoft",consoleLabel:"Pass Studio",titleSuffix:"Pass Studio",description:"PassLoft - Design, issue and scan digital wallet passes. Stamp cards, entry passes and membership cards for Apple Wallet and Google Wallet.",logoSrc:"/brand/passloft/logo.png",faviconSrc:"/brand/passloft/favicon.ico",appleTouchIconSrc:"/brand/passloft/apple-touch-icon.png",manifestSrc:"/brand/passloft/manifest.json",themeColor:"#0068e5",marketingUrl:"https://passloft.com",domains:["passloft.com","passloft.lvh.me"],moduleAllowlist:["WALLET_PASSES","PASS_STUDIO_API"],hostsPlatformConsole:!1,selfServeSignup:!0,heroArt:null,heroTagline:null,billingCurrency:"usd"}},s=l.memberlytic;Object.freeze(o.map(e=>l[e]));let i=(0,a.createContext)(s);function c(e){let{brandId:t,children:r}=e,a="string"==typeof t&&o.includes(t)?l[t]:s;return(0,n.jsx)(i.Provider,{value:a,children:r})}let d=()=>(0,a.useContext)(i)}}]);
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.