1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/_build/assets/inner_app-BWThwd46.js","/_build/assets/error_handling-CGkSwltb.js","/_build/assets/web-pV0rwjaF.js","/_build/assets/Space-BawUPM90.js","/_build/assets/use_responsive-bX-9vVUF.js","/_build/assets/exports-DRxNL0wz.js","/_build/assets/verdict-2eTwgmu_.js","/_build/assets/preload-helper-glQ4n0Rb.js","/_build/assets/definitions-CH3qOGwW.js","/_build/assets/definitions-DChO_z78.js","/_build/assets/keys-DKVSNwk_.js","/_build/assets/_Map-BBzZcz0-.js","/_build/assets/toInteger-IZ3oTHXO.js","/_build/assets/_getTag-BNJsMwXY.js","/_build/assets/styles-DEsTfKH9.js","/_build/assets/isNil-mPEatfFo.js","/_build/assets/CMText-CbnW-FWU.js"])))=>i.map(i=>d[i]); 2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`chessbook-web@8cada333a37d47d6202c119e56d2497560f13100`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`88e6138d-ea4b-4be6-a3aa-63f567c210d0`,e._sentryDebugIdIdentifier=`sentry-dbid-88e6138d-ea4b-4be6-a3aa-63f567c210d0`)}catch{}})();import{B as e,C as t,E as n,I as r,K as i,O as a,P as o,S as s,Tt as c,U as l,X as u,Y as d,_ as f,a as p,bt as m,c as h,i as g,k as _,l as v,m as y,o as b,v as x,x as S}from"./web-pV0rwjaF.js";import{t as C}from"./preload-helper-glQ4n0Rb.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var w,T,E=[],ee=()=>(T??=C(()=>import(`./module-DLVFYncu.js`).then(e=>{let t=e.default??e;w=t;for(let[e,n]of E.splice(0)){let r=Reflect.get(t,e);typeof r==`function`&&Reflect.apply(r,t,n)}return t}),[],import.meta.url),T),te=ee,D=new Set([`getFeatureFlag`,`getFeatureFlagPayload`,`isFeatureEnabled`,`get_distinct_id`,`get_session_id`,`get_property`]),ne=e=>D.has(e)?()=>void 0:(...t)=>{E.push([e,t]),ee()},O=new Proxy(Object.create(null),{get(e,t){if(typeof t==`string`){if(w){let e=Reflect.get(w,t);return typeof e==`function`?e.bind(w):e}return ne(t)}},has(e,t){return w?Reflect.has(w,t):typeof t==`string`}}),k=`https://apps.apple.com/us/app/chessbook/id6466343415`,A=`https://play.google.com/store/apps/details?id=com.chessbook.android`,re=`https://discord.gg/vNzfu5VetQ`,ie=[`0-1000`,`1000-1200`,`1200-1400`,`1400-1600`,`1600-1800`,`1800-2000`,`2000-2200`,`2200-2500`,`2500+`],j=[`study:read`],ae=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},oe=(e,t)=>({classGroupId:e,validator:t}),se=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),M=`-`,N=[],P=`arbitrary..`,ce=e=>{let t=ue(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return F(e);let n=e.split(M);return le(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ae(i,t):t:i||N}return n[e]||N}}},le=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=le(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(M):e.slice(t).join(M),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},F=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?P+r:void 0})(),ue=e=>{let{theme:t,classGroups:n}=e;return de(n,t)},de=(e,t)=>{let n=se();for(let r in e){let i=e[r];I(i,n,r,t)}return n},I=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];L(i,t,n,r)}},L=(e,t,n,r)=>{if(typeof e==`string`){R(e,t,n);return}if(typeof e==`function`){fe(e,t,n,r);return}pe(e,t,n,r)},R=(e,t,n)=>{let r=e===``?t:me(t,e);r.classGroupId=n},fe=(e,t,n,r)=>{if(he(e)){I(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(oe(n,e))}
vendor: 13,177 bytes, line 2
2,pe=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];I(o,me(t,a),n,r)}},me=(e,t)=>{let n=e,r=t.split(M),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=se(),n.nextPart.set(t,i)),n=i}return n},he=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ge=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},_e=`!`,ve=`:`,ye=[],be=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),xe=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ve){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(_e)?(c=s.slice(0,-1),l=!0):s.startsWith(_e)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return be(t,l,c,u)};if(t){let e=t+ve,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):be(ye,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Se=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ce=e=>({cache:ge(e.cacheSize),parseClassName:xe(e),sortModifiers:Se(e),postfixLookupClassGroupIds:we(e),...ce(e)}),we=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Te=/\s+/,Ee=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Te),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+_e:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},De=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Oe(n))&&(i&&(i+=` `),i+=r);return i},Oe=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Oe(e[r]))&&(n&&(n+=` `),n+=t);return n},ke=(e,...t)=>{let n,r,i,a,o=o=>(n=Ce(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ee(e,n);return i(e,a),a};return a=o,(...e)=>a(De(...e))},Ae=[],z=e=>{let t=t=>t[e]||Ae;return t.isThemeGetter=!0,t},je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Me=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ne=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Pe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fe=/\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$/,Ie=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Le=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Re=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>Ne.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),H=e=>!!e&&Number.isInteger(Number(e)),ze=e=>e.endsWith(`%`)&&V(e.slice(0,-1)),U=e=>Pe.test(e),Be=()=>!0,Ve=e=>Fe.test(e)&&!Ie.test(e),He=()=>!1,Ue=e=>Le.test(e),We=e=>Re.test(e),Ge=e=>!W(e)&&!K(e),Ke=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),qe=e=>q(e,lt,He),W=e=>je.test(e),G=e=>q(e,ut,Ve),Je=e=>q(e,dt,V),Ye=e=>q(e,pt,Be),Xe=e=>q(e,ft,He),Ze=e=>q(e,st,He),Qe=e=>q(e,ct,We),$e=e=>q(e,mt,Ue),K=e=>Me.test(e),et=e=>J(e,ut),tt=e=>J(e,ft),nt=e=>J(e,st),rt=e=>J(e,lt),it=e=>J(e,ct),at=e=>J(e,mt,!0),ot=e=>J(e,pt,!0),q=(e,t,n)=>{let r=je.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},J=(e,t,n=!1)=>{let r=Me.exec(e);return r?r[1]?t(r[1]):n:!1},st=e=>e===`position`||e===`percentage`,ct=e=>e===`image`||e===`url`,lt=e=>e===`length`||e===`size`||e===`bg-size`,ut=e=>e===`length`,dt=e=>e===`number`,ft=e=>e===`family-name`,pt=e=>e===`number`||e===`weight`,mt=e=>e===`shadow`,ht=()=>{let e=z(`color`),t=z(`font`),n=z(`text`),r=z(`font-weight`),i=z(`tracking`),a=z(`leading`),o=z(`breakpoint`),s=z(`container`),c=z(`spacing`),l=z(`radius`),u=z(`shadow`),d=z(`inset-shadow`),f=z(`text-shadow`),p=z(`drop-shadow`),m=z(`blur`),h=z(`perspective`),g=z(`aspect`),_=z(`ease`),v=z(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),K,W],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[K,W,c],T=()=>[B,`full`,`auto`,...w()],E=()=>[H,`none`,`subgrid`,K,W],ee=()=>[`auto`,{span:[`full`,H,K,W]},H,K,W],te=()=>[H,`auto`,K,W],D=()=>[`auto`,`min`,`max`,`fr`,K,W],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[B,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[B,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[B,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,K,W],ae=()=>[...b(),nt,Ze,{position:[K,W]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,rt,qe,{size:[K,W]}],M=()=>[ze,et,G],N=()=>[``,`none`,`full`,l,K,W],P=()=>[``,V,et,G],ce=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],F=()=>[V,ze,nt,Ze],ue=()=>[``,`none`,m,K,W],de=()=>[`none`,V,K,W],I=()=>[`none`,V,K,W],L=()=>[V,K,W],R=()=>[B,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[U],breakpoint:[U],color:[Be],container:[U],"drop-shadow":[U],ease:[`in`,`out`,`in-out`],font:[Ge],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[U],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[U],shadow:[U],spacing:[`px`,V],text:[U],"text-shadow":[U],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,B,W,K,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,K,W]}],"container-named":[Ke],columns:[{columns:[V,W,K,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[H,`auto`,K,W]}],basis:[{basis:[B,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[V,B,`auto`,`initial`,`none`,W]}],grow:[{grow:[``,V,K,W]}],shrink:[{shrink:[``,V,K,W]}],order:[{order:[H,`first`,`last`,`none`,K,W]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,et,G]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ot,Ye]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ze,W]}],"font-family":[{font:[tt,Xe,t]}],"font-features":[{"font-features":[W]}],"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:[i,K,W]}],"line-clamp":[{"line-clamp":[V,`none`,K,Je]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,K,W]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,K,W]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ce(),`wavy`]}],"text-decoration-thickness":[{decoration:[V,`from-font`,`auto`,K,G]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[V,`auto`,K,W]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[H,K,W]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,K,W]}],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`,K,W]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},H,K,W],radial:[``,K,W],conic:[H,K,W]},it,Qe]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:M()}
vendor: 7,762 bytes, line 2
2],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ce(),`hidden`,`none`]}],"divide-style":[{divide:[...ce(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ce(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[V,K,W]}],"outline-w":[{outline:[``,V,et,G]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,at,$e]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,at,$e]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[V,G]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,at,$e]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[V,K,W]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"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":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[K,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,K,W]}],filter:[{filter:[``,`none`,K,W]}],blur:[{blur:ue()}],brightness:[{brightness:[V,K,W]}],contrast:[{contrast:[V,K,W]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,at,$e]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,V,K,W]}],"hue-rotate":[{"hue-rotate":[V,K,W]}],invert:[{invert:[``,V,K,W]}],saturate:[{saturate:[V,K,W]}],sepia:[{sepia:[``,V,K,W]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,K,W]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[V,K,W]}],"backdrop-contrast":[{"backdrop-contrast":[V,K,W]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,V,K,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,K,W]}],"backdrop-invert":[{"backdrop-invert":[``,V,K,W]}],"backdrop-opacity":[{"backdrop-opacity":[V,K,W]}],"backdrop-saturate":[{"backdrop-saturate":[V,K,W]}],"backdrop-sepia":[{"backdrop-sepia":[``,V,K,W]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,K,W]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[V,`initial`,K,W]}],ease:[{ease:[`linear`,`initial`,_,K,W]}],delay:[{delay:[V,K,W]}],animate:[{animate:[`none`,v,K,W]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,K,W]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":[`scale-3d`],skew:[{skew:L()}],"skew-x":[{"skew-x":L()}],"skew-y":[{"skew-y":L()}],transform:[{transform:[K,W,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:R()}],"translate-x":[{"translate-x":R()}],"translate-y":[{"translate-y":R()}],"translate-z":[{"translate-z":R()}],"translate-none":[`translate-none`],zoom:[{zoom:[H,K,W]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"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
2-in`,`zoom-out`,K,W]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`]}
2],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`,K,W]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[V,et,G,Je]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},gt=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(_t(e,`cacheSize`,t),_t(e,`prefix`,n),_t(e,`experimentalParseClassName`,r),vt(e.theme,a.theme),vt(e.classGroups,a.classGroups),vt(e.conflictingClassGroups,a.conflictingClassGroups),vt(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),_t(e,`postfixLookupClassGroups`,a.postfixLookupClassGroups),_t(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),yt(e.theme,i.theme),yt(e.classGroups,i.classGroups),yt(e.conflictingClassGroups,i.conflictingClassGroups),yt(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),bt(e,i,`postfixLookupClassGroups`),bt(e,i,`orderSensitiveModifiers`),e),_t=(e,t,n)=>{n!==void 0&&(e[t]=n)},vt=(e,t)=>{if(t)for(let n in t)_t(e,n,t[n])},yt=(e,t)=>{if(t)for(let n in t)bt(e,t,n)},bt=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},Y=((e,...t)=>typeof e==`function`?ke(ht,e,...t):ke(()=>gt(ht(),e),...t))({extend:{classGroups:{"border-style-t":[{"border-t":[`solid`,`dashed`,`dotted`,`double`,`none`]}],"border-style-r":[{"border-r":[`solid`,`dashed`,`dotted`,`double`,`none`]}],"border-style-b":[{"border-b":[`solid`,`dashed`,`dotted`,`double`,`none`]}],"border-style-l":[{"border-l":[`solid`,`dashed`,`dotted`,`double`,`none`]}]}}}),xt=`h-8 items-center`,St=`p-2 -m-2`,Ct=`text-sm font-bold text-tertiary`,wt=`pt-[64px]`,Tt=(e,t,n,r)=>r?`hsla(${e}, ${t}%, ${n}%, ${r/100})`:`hsl(${e}, ${t}%, ${n}%)`,Et=e=>
2.016*Math.max(0,1-Math.abs(e-60)/(e<60?60:40)),Dt=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,Ot=(e,t,n)=>{let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a]},kt=([e,t,n])=>[.8224621*e+.177538*t,.0331941*e+.9668058*t,.0170827*e+.0723974*t+.9105199*n],At=(e,t,n)=>{let[r,i,a]=[e,t,n].map(Dt),o=Math.cbrt(.4122214708*r+.5363325363*i+.0514459929*a),s=Math.cbrt(.2119034982*r+.6806995451*i+.1073969566*a),c=Math.cbrt(.0883024619*r+.2817188376*i+.6299787005*a);return[.2104542553*o+.793617785*s-.0040720468*c,1.9779984951*o-2.428592205*s+.4505937099*c,.0259040371*o+.7827717662*s-.808675766*c]},jt=e=>e.every(e=>e>=-1e-6&&e<=1+1e-6),Mt=(e,t,n,r=`srgb`)=>{let i=n*Math.PI/180,a=t=>{let n=Ot(e/100,t*Math.cos(i),t*Math.sin(i));return r===`p3`?kt(n):n};if(jt(a(t)))return t;let o=0,s=t;for(let e=0;e<24;e++){let e=(o+s)/2;jt(a(e))?o=e:s=e}return o},Nt=(e,t,n,r=`p3`)=>`oklch(${+e.toFixed(2)}% ${+Mt(e,t,n,r).toFixed(4)} ${+n.toFixed(2)})`,Pt=e=>{let t=e.match(/-?[\d.]+/g).map(Number);if(e.startsWith(`oklch`))return{L:t[0],C:t[1],H:t[2]};let[n,r,i]=t,a=r/100,o=i/100,s=e=>(e+n/30)%12,c=a*Math.min(o,1-o),l=e=>o-c*Math.max(-1,Math.min(s(e)-3,9-s(e),1)),[u,d,f]=At(l(0),l(8),l(4));return{L:u*100,C:Math.hypot(d,f),H:(Math.atan2(f,d)*180/Math.PI+360)%360}},Ft=(e,t,n=`p3`)=>Mt(e,.6,t,n),It=.264,Lt=(e,t)=>It*Math.cbrt(Ft(e,t)),Rt={red:{hue:22},orange:{hue:50},orangeBright:{hue:51,chroma:2},yellow:{hue:76},green:{hue:141},greenMuted:{hue:141,chroma:.6},teal:{hue:195},blue:{hue:230},purple:{hue:302},pink:{hue:334}},zt=e=>{let{hue:t}=Rt[e],n=Rt[e].chroma??1,r=50;for(let e=1;e<100;e++)Ft(e,t)>Ft(r,t)&&(r=e);let i=e=>Ft(e,t)/Ft(r,t),a=Lt(70,t)*n,o=Math.min(Ft(r,t),a/i(70));return{hue:t,chroma:n,cusp:r,peak:o,target:a,at:e=>Math.min(o*i(e),Lt(e,t)*n)}},X=e=>{let t=zt(e),n={};for(let e=0;e<=100;e+=5)n[e]=Nt(e,t.at(e),t.hue);return n},Z=(e=>{let t={};for(let n=0;n<=100;n++)t[n]=Nt(n,Et(n),e);return t})(243),Bt=X(`blue`),Vt=X(`teal`),Ht=Bt,Ut=X(`yellow`),Wt=X(`orange`),Gt=X(`orangeBright`),Kt=X(`pink`),qt=X(`purple`),Jt=X(`red`),Yt=X(`green`),Xt=X(`greenMuted`),Zt={success:73.5,danger:70,warning:70,learning:75,caution:75},Qt=(e,t)=>{let{hue:n}=Rt[e];return Nt(t,Lt(t,n),n)},$t=e=>e.replace(`)`,` / 0.5)`),en={lastMove:$t(Bt[75]),nextMove:$t(Qt(`yellow`,77))},tn={blue:Bt,teal:Vt,primary:Ht,yellow:Ut,orange:Wt,orangeBright:Gt,pink:Kt,red:Jt,gray:Z,purple:qt,green:Yt,greenMuted:Xt,success:Qt(`green`,Zt.success),danger:Qt(`red`,Zt.danger),warning:Qt(`orange`,Zt.warning),learning:Qt(`yellow`,Zt.learning),caution:Qt(`yellow`,Zt.caution),text:{primary:Z[96],secondary:Z[84],tertiary:Z[60],inverse:Z[16],inverseSecondary:Z[32]},sidebarBorder:Z[32],border:Z[32],buttonSecondary:Z[84],backgroundColor:Z[21],components:{sidebar_button_primary:Z[34],sidebar_button_primary_hover:Z[44],arrows:Ut}},nn=n(`<div>Try it for free`),rn=e=>{var t=nn();return g(t,`click`,e.onClick,!0),v(()=>x(Y(`px-[18px] lg:px-[24px] py-[9px] lg:py-[12px] flex justify-center`,`items-center bg-orangeBright-75 text-gray-21 transition-all hover:bg-orange-65`,`rounded font-medium tracking-wide cursor-pointer self-center text-xl`)),(e,n)=>{b(t,e,n)}),t};h([`click`]);var an=n(`<span> `),on=()=>{let e=()=>cn();var t=an();return t.firstChild,y(t,()=>e().header,null),t},sn=()=>{let e=()=>cn();var t=an();return t.firstChild,y(t,()=>e().subheader,null),t},cn=()=>({header:`Master\xA0openings.`,subheader:`Chessbook helps you choose the right openings for your level and style, then learn them fast.`}),ln=n(`<img src=/homepage_imgs/hero-overview-2000.webp srcset="/homepage_imgs/hero-overview-1000.webp 1000w, /homepage_imgs/hero-overview-2000.webp 2000w"sizes="(min-width: 1112px) 1000px, 90vw"alt="Chessbook opening repertoire overview"width=2000 height=965 fetchpriority=high class="mt-[50px] w-full h-auto">`),un=()=>ln(),dn=new WeakSet,fn=e=>(dn.add(e),e),pn=e=>dn.has(e),mn,hn=0,gn=!1,_n=[],vn=new WeakMap,yn=()=>mn,bn=e=>{let t=mn;return mn=e,t},xn=e=>vn.get(e),Sn=(e,t)=>{let n=e.indexOf(t);n!==-1&&e.splice(n,1)},Cn=e=>{let t=e.deps;for(let n=0;n<t.length;n++)Sn(t[n].subs,e);t.length=0},wn=(e,t)=>{if(e===t)return;let n=e.subs;for(let e=0;e<n.length;e++)if(n[e]===t)return;n.push(t),t.deps.push(e)},Tn=(e,t)=>{wn(e,t)},En=e=>{e.queued||e.disposed||(e.queued=!0,_n.push(e))},Dn=e=>{let t=e.subs;for(let e=0;e<t.length;e++)On(t[e])},On=e=>{if(!e.disposed){if(e.kind===`computed`){if(!e.dirty&&(e.dirty=!0,e.subs.length===0))return;Dn(e);return}(e.kind===`effect`||e.kind===`watch`)&&En(e)}},kn=()=>
2{gn=!1;for(let e=0;e<_n.length;e++){let t=_n[e];t.queued=!1,!t.disposed&&(t.kind===`effect`?Rn(t):t.kind===`watch`&&t.run?.())}_n.length=0},An=()=>{hn>0||gn||(gn=!0,kn())},jn=()=>{hn++},Mn=()=>{hn!==0&&(hn--,hn===0&&kn())},Nn=e=>{let t=bn(void 0);try{return e()}finally{bn(t)}},Pn=(e,t)=>{Cn(e);let n=bn(e);try{return t()}finally{bn(n)}},Fn=e=>{mn&&wn(e,mn)},In=e=>{e.dirty=!1;let t=Pn(e,()=>e.compute(e.value));return!Object.is(e.value,t)&&(e.value=t,!0)},Ln=e=>(e.kind===`computed`&&e.dirty&&!e.disposed&&In(e),e.value),Rn=e=>{if(typeof e.cleanup==`function`){let t=e.cleanup;if(e.cleanup=void 0,t(),e.disposed)return}e.cleanup=Pn(e,()=>{let t=e.compute?.(e.value);return typeof t==`function`?t:void 0})},zn=e=>{e.disposed||(e.disposed=!0,typeof e.cleanup==`function`&&(e.cleanup(),e.cleanup=void 0),Cn(e),e.subs.length=0)},Bn=(e,t)=>({kind:e,value:void 0,dirty:e===`computed`,disposed:!1,queued:!1,deps:[],subs:[],...t}),Vn=e=>{let t=Bn(`signal`,{value:e,dirty:!1}),n=function(e){if(arguments.length===0)return Fn(t),t.value;Object.is(t.value,e)||(t.value=e,Dn(t),An())};return vn.set(n,t),n},Hn=e=>{let t=Bn(`computed`,{compute:e}),n=()=>(t.dirty&&In(t),Fn(t),t.value);return vn.set(n,t),n},Un=e=>{let t=Bn(`watch`,{run:e});return{node:t,track:e=>Pn(t,e),dispose:()=>zn(t)}},Wn=new WeakMap,Gn=t=>{let n=Wn.get(t);if(n)return n;let r=!1,i=Un(()=>{r||(Ln(t),o(e=>e+1))});Tn(t,i.node);let[a,o]=e(0,{equals:!1,ownedWrite:!0,unobserved:()=>{r=!0,i.dispose(),Wn.delete(t)}}),s={read:a};return Wn.set(t,s),s},Kn=e=>{if(yn())return m(e);if(!c())return e();let t=xn(e);return t?(Gn(t).read(),Nn(e)):e()},qn=e=>{let t=Hn(e);return()=>Kn(t)},Jn=e=>qn(e),Yn=e=>(e!==null&&(typeof e==`object`||typeof e==`function`)&&fn(e),e),Xn=e=>{let t=Jn(t=>Yn(e(t)));return{trackedValue:()=>Yn(t()),peek:()=>m(()=>Yn(t())),read:e=>{let n=t();return m(()=>e(n))}}},Zn={x:0,y:0,width:0,height:0,top:0,right:0,bottom:0,left:0},Qn=e=>{let t=e.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left}},$n=e=>new Proxy({},{get(t,n){return e()[n]},ownKeys(){return Reflect.ownKeys(e())},getOwnPropertyDescriptor(t,n){return Object.getOwnPropertyDescriptor(e(),n)}}),er=t=>{let[n,i]=e(Zn);return r(t,e=>{if(!e){i(Zn);return}let t=()=>i(Qn(e)),n=new ResizeObserver(t);return n.observe(e),window.addEventListener(`resize`,t),window.addEventListener(`scroll`,t,{capture:!0,passive:!0}),()=>{n.disconnect(),window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t,{capture:!0})}}),$n(n)},tr=()=>{let[t,n]=e({width:typeof window>`u`?0:window.innerWidth,height:typeof window>`u`?0:window.innerHeight});return r(()=>typeof window<`u`,e=>{if(!e)return;let t=()=>n({width:window.innerWidth,height:window.innerHeight});return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)}),$n(t)},nr=()=>{let[t,n]=e(typeof document>`u`||document.visibilityState===`visible`);return r(()=>typeof document<`u`,e=>{if(!e)return;let t=()=>n(document.visibilityState===`visible`);return document.addEventListener(`visibilitychange`,t),()=>document.removeEventListener(`visibilitychange`,t)}),t},rr=()=>{let[t,n]=e({x:typeof window>`u`?0:window.scrollX,y:typeof window>`u`?0:window.scrollY});return r(()=>typeof window<`u`,e=>{if(!e)return;let t=()=>n({x:window.scrollX,y:window.scrollY});return window.addEventListener(`scroll`,t,{passive:!0}),()=>window.removeEventListener(`scroll`,t)}),$n(t)},ir=t=>n=>{let[i,a]=e(!1);return r(n,e=>{if(!e){a(!1);return}let n=new IntersectionObserver(([e])=>{a(e?.isIntersecting??!1)},t);return n.observe(e),()=>n.disconnect()}),i},ar=n(`<div><div class="max-w-[1000px] mx-8 py-2 lg:py-4 flex justify-between w-full row items-center"><img src="/homepage_imgs/chessbook.svg?v=2023-04-11T09:44:19.974Z"alt=Chessbook class="h-4 lg:h-6"><div class="bg-orangeBright-75 text-gray-21 transition-all hover:bg-orange-65 px-4 lg:px-4 py-2 lg:py-3 rounded cursor-pointer text-md lg:text-lg font-medium">Try it for free`),or=e=>{let t=rr(),n=()=>t.y>800;var r=ar(),i=r.firstChild.firstChild.nextSibling;return i._$$click=()=>{e.onClick()},v(()=>x(Y(`w-screen fixed bg-gray-21 top-0 left-0 right-0 z-50 flex row justify-center border-b-2 border-gray-32 border-b-solid transition-opacity max-w-screen`,n()?`opacity-100`:`pointer-events-none opacity-0`)),(e,t)=>{b(r,e,t)}),r};h([`click`]);var sr=n(`<section><div><div><div class="w-full lg:w-1/2"><img width=886 height=646 loading=lazy decoding=async class="w-full h-auto object-cover rounded-2xl "style="box-shadow:rgba(0, 0, 0, 0.5) 0px 10px 30px 0px"></div><div class="w-full lg:w-1/2 flex flex-col justify-center"><h2></h2><p class="text-base md:text-lg text-tertiary leading-normal! text-[#778288] font-light">`,1),cr=n(`<strong>opening repertoire`),lr=n(`<span>multiple`),ur=n(`<strong>openings`),dr=n(`<strong>line`),fr=n(`<strong>opening`),pr=n(`<div class="w-full "><div class="flex flex-col h-full"><h3 class="text-base md:text-xl font-medium mb-4 text-white leading-normal!"></h3><p class="text-tertiary md:text-lg leading-normal!">`),mr=n(`<div class="flex gap-0 flex-row">Free`),hr=n(`<p class=relative><span class="text-gray-21 font-bold text-3xl bottom-[20px] relative">$</span><span class="text-gray-21 text-6xl">7`),gr=n(`<div class="bg-white rounded-lg p-8 md:py-14 text-gray-21 flex items-center gap-4 grow"><h3 class="text-lg md:text-2xl font-semibold mb-4"></h3><p class="text-4xl md:text-6xl font-bold"></p><p class="text-tertiary mb-2 md:mb-4"></p><p class="text-tertiary mb-2 md:mb-6"></p><a href=# class="bg-orangeBright-75 text-gray-21 transition-all hover:bg-orange-65 font-normal py-3 px-6 rounded-lg transition duration-300 inline-block text-xl"></a><p class="text-xs text-tertiary -mt-2 font-light">`),_r=n(`<section class="py-16 px-6 "><div class="max-w-6xl mx-auto"><div><div class="w-full flex flex-col justify-center items-center text-center"><h2 class="font-display text-2xl md:text-[40px] font-medium mb-4 text-white leading-[1.35]!"></h2><p class="text-base md:text-lg text-tertiary leading-normal! text-[#778288] font-light"></p></div><div class=w-full><img width=2271 height=1072 loading=lazy decoding=async class="w-full h-auto object-cover rounded-lg "style="box-shadow:rgba(0, 0, 0, 0.6) 0px 5px 30px 0px">`,1),vr=n(`<br>`),yr=n(`<div class=flex-row><a href=https://www.youtube.com/@HangingPawns target=_blank class=hover:text-blue-55 rel=noreferrer>Hanging Pawns</a><p class=mx-2>|</p><a href=https://chessreads.com/ target=_blank rel=noreferrer class=hover:text-blue-55>Chessreads`),br=n(`<div class="bg-white rounded-2xl shadow-xl px-6 py-6 md:p-6 sm:p-4 flex flex-col items-start basis-0 grow"><p class="text-gray-51 text-lg mb-4 md:mb-9 sm:mb-8 flex-1 leading-normal font-normal">"<!>"</p><div class="flex flex-row md:flex-col items-start"><div><div class="text-blue-70 text-base font-regular leading-normal"><br><div></div><span class=text-gray-60>`),xr=n(`<img loading=lazy decoding=async class="w-10 h-10 rounded-full mr-4 mb-3 md:mb-2 sm:w-9 sm:h-9 border-1 border-solid border-gray-32">`,1),Sr=n(`<div class="bg-gray-19 text-white"><header><div><img src=/homepage_imgs/chessbook.svg alt=Chessbook class="h-5 md:h-6"><nav class="flex gap-2 text-tertiary text-lg transition-colors font-light flex-row h-[18px]">
2<div class="hover:text-primary cursor-pointer ">Log in</div><div class="w-[1px] h-full bg-gray-51 self-stretch"></div><div class="hover:text-primary cursor-pointer">Sign up</div></nav></div></header><div class=bg-gray-27><section><div><h1></h1><p></p><div class><p class="mt-2 text-sm text-tertiary">No signup required</p></div><div><a href=https://apps.apple.com/us/app/chessbook/id6466343415 target=_blank rel=noreferrer><img src=/homepage_imgs/app-store.svg alt="App Store"class="h-12 max-w-[120px]"></a><a href="https://play.google.com/store/apps/details?id=com.chessbook.android"target=_blank rel=noreferrer><img src=/homepage_imgs/play-store.svg alt="Play Store"class="h-12 max-w-[120px]"></a></div><div></div></div></section><div class="px-6 flex gap-8 xl:gap-32 py-8 md:py-25 xl:py-25 bg-gray-21"style="background-color:hsl(193, 7%, 14%)"></div><section class="py-16 md:py-24 px-6 bg-gray-19/50 bg-cover bg-center "style=background-image:url(/homepage_imgs/bobby.webp)><div><div class="mb-8 md:mb-0"><img src=/homepage_imgs/mobile-960.webp srcset="/homepage_imgs/mobile-480.webp 480w, /homepage_imgs/mobile-960.webp 960w"sizes="(min-width: 768px) 384px, 90vw"alt="Mobile app"width=960 height=1936 loading=lazy decoding=async class="w-full h-auto max-w-sm mx-auto"></div><div class="md:max-w-1/2 md:pl-8"><h2>Targeted practice means you'll never forget a move</h2><p class="md:text-lg mb-4 text-secondary leading-normal! text-center md:text-left ">Chessbook uses <strong>spaced repetition</strong>, a scientifically proven technique to memorize openings quickly and thoroughly.</p></div></div></section><div><h2>Collect all your openings in one place</h2><p class="md:text-lg mb-15 md:mb-18 text-[#778288] leading-normal!">Nobody gets all of their openings from a single course or book. Chessbook lets you combine openings from multiple sources to create a custom repertoire just for you.</p><img src=/homepage_imgs/diagram.svg alt="Combine chess openings from multiple sources into one repertoire"loading=lazy decoding=async class=w-full></div><div style="background-color:hsl(193, 7%, 14%)"></div><section class="py-16 px-6 bg-gray-19/50 bg-cover bg-center"style="background-image:url('/homepage_imgs/pexels-cottonbro-studio.webp')"><div class="max-w-[1000px] mx-auto"><h2>Endorsed by masters, loved by adult improvers</h2><div class="flex flex-col md:flex-row gap-8"></div></div></section><section style="background:hsl(333, 6%, 8%) url("/homepage_imgs/hero-illustration.png") 0% 0% /100% repeat scroll padding-box"><div><h2>Get started for free, no signup required</h2><p>Start learning openings now with our free starter plan.</p><div class="grid md:grid-cols-2 gap-4 self-stretch"></div></div></section></div><section class="py-16 bg-gray-26"><div><h2>Frequently asked questions</h2><div class="grid md:grid-cols-2 xl:grid-cols-3 gap-8 w-full md:gap-y-12"></div></div></section><footer class="bg-gray-28 text-center py-8"><a class="inline-block mb-4"><img src=/homepage_imgs/discord-logo-white.svg alt=Discord loading=lazy decoding=async class="h-5 md:h-8 opacity-50"></a><p class="text-sm text-tertiary">Questions? Feedback? Ideas? Join the <a class="text-secondary hover:text-primary leading-normal">Chessbook Discord server</a></p></footer><footer class="text-center text-sm text-tertiary"><div class="flex justify-center space-x-4 flex-row py-4 flex-wrap max-w-full px-4 *:pb-2"><a href=/privacy-policy.html class="text-secondary hover:text-primary"target=_blank rel=noreferrer>Privacy Policy</a><a href=/fulfillment_policy.html class="text-secondary hover:text-primary"target=_blank rel=noreferrer>Fulfillment Policy</a><a href=mailto:[email protected] class="text-secondary hover:text-primary"target=_blank rel=noreferrer>Contact us`,1),Q=Y(`max-w-[1000px] mx-auto w-[90%] py-6 md:py-6`),Cr=`font-display text-2xl md:text-[40px] font-medium mb-4 text-white leading-[1.35]!`,wr=`font-display text-xl md:text-[32px] font-medium mb-4 text-white leading-[1.35]!`,Tr=`text-base md:text-lg text-tertiary leading-normal! text-[#778288] font-light`,Er=e=>{var t=sr(),n=t.firstChild.firstChild,r=n.firstChild,i=r.firstChild,a=r.nextSibling.firstChild,o=a.nextSibling;return y(a,()=>e.header),y(o,()=>e.body),v(()=>({e:x(Y(Q)),t:x(Y(`flex flex-col md:flex-row items-center text-center md:text-left gap-8 md:gap-18`,e.direction===`left`&&`md:flex-row-reverse`)),a:e.image,o:e.header,i:x(Y(wr))}),({e,t:r,a:o,o:c,i:l},u)=>{b(t,e,u?.e),b(n,r,u?.t),o!==u?.a&&s(i,`src`,o),c!==u?.o&&s(i,`alt`,c),b(a,l,u?.i)}),t},Dr=[{question:`What is an "opening repertoire"?`,answer:[`An `,cr(),` is a set of pre-planned moves for the early part of a chess game. A complete repertoire will include responses to all of the opponent's potential moves during this phase of the game.`]},{question:`What's the benefit of having one?`,answer:`Having a well constructed repertoire that fits with your style can be a huge advantage. It can let you steer the game toward positions you are comfortable in and enjoy playing, improving your results.`},{question:`What's the difference between an "opening repertoire" and an "opening"?`,answer:[`An `,cr(),` consists of `,lr(),` `,ur(),` to combat different moves by the opponent. For example an e4 player will need to learn different openings to deal with the Sicilian, French, Caro-Kann etc.`]},{question:`What's the difference between an "opening" and a "line"?`,answer:[`A `,dr(),` is a sequence of moves, one after another. An`,` `,fr(),` is made up of many lines. For example, someone who plays the Sicilian Dragon will need to learn many individual lines to master that opening.`]},{question:`I'm new to chess, do I need to learn openings?`,answer:`While having a solid repertoire becomes more important as you improve, even beginners can benefit from having a simple opening repertoire that prepares them for common moves at their level.`},{question:`What's involved in learning a repertoire?`,answer:`Learning a repertoire generally consists of choosing which openings and lines to play, memorising specific sequences of moves and understanding why those moves are played.`}],Or=e=>(()=>{var t=pr(),n=t.firstChild.firstChild,r=n.nextSibling;return y(n,()=>e.question),y(r,()=>e.answer),t})(),kr=[{title:`Starter`,price:mr(),period:`forever`,description:`Save up to 200 moves.`,buttonText:`Get started`,source:`free_get_started`,footnote:`No signup required`},{title:`Pro`,price:hr(),period:`per month, billed annually`,description:`Add unlimited moves to any depth.`,buttonText:`Try it for free`,source:`pro_try_it_for_free`,footnote:`No signup required, cancel anytime`}],Ar=({title:e,price:t,period:n,description:r,buttonText:i,onClick:a,footnote:o,source:s})=>(()=>{var c=gr(),l=c.firstChild,u=l.nextSibling,d=u.nextSibling,f=d.nextSibling,m=f.nextSibling,h=m.nextSibling;return y(l,e),y(u,t),y(d,n),y(f,r),m._$$click=()=>a(s),p(m),y(m,i),y(h,o),c})(),jr=e=>{var t=_r(),n=t.firstChild.firstChild,r=n.firstChild,i=r.firstChild,a=i.nextSibling,o=r.nextSibling.firstChild;return y(i,()=>e.header),y(a,()=>e.body),v(()=>({e:x(Y(`flex flex-col items-center gap-6 md:gap-12`)),t:e.image,a:e.header}),({e,t,a:r},i)=>{b(n,e,i?.e),t!==i?.t&&s(o,`src`,t),r!==i?.a&&s(o,`alt`,r)}),t},Mr=[{text:[`A fun and simple way to build an opening repertoire based on probabilities of most likely lines.`,vr(),vr(),`You will actually learn the moves that will happen on the board!`],name:`Eugene Perelshteyn`,title:`Grandmaster`,rating:`2507 FIDE`,image:`/homepage_imgs/eugene.jpg?v=2024-09-19`},{text:[`The only tool I use for tournament prep now. Drilling variations before games just became easy. `,vr(),` `,vr(),`Priceless for building and easily studying a repertoire, and it works for all levels!`],name:`Stjepan Tomic`,title:(()=>{var e=yr(),t=e.firstChild,n=t.nextSibling.nextSibling;return p(t),p(n),e})(),rating:`1981 FIDE`,image:`/homepage_imgs/hanging_pawns.jpeg?v=2024-09-19`},{text:[`Absolutely amazing and unlike what anybody else has developed.`,vr(),vr(),`It's exactly what I've wanted since I started playing seriously.`],name:`Jon Myers`,title:`Adult improver`,rating:`1275 Chess.com`,image:``}],Nr=({text:e,name:t,title:n,rating:r,image:i})=>(()=>{var a=br(),o=a.firstChild,c=o.firstChild.nextSibling;c.nextSibling;var l=o.nextSibling,u=l.firstChild,d=u.firstChild,f=d.firstChild,p=f.nextSibling,m=p.nextSibling;return y(o,e,c),y(l,i&&(()=>
2{var e=xr();return s(e,`src`,i),s(e,`alt`,t),e})(),u),y(d,t,f),y(p,n),y(m,r),a})(),Pr=e=>{let n=[{image:`/homepage_imgs/coverage.png?v=2023-04-26T12:10:10.140Z`,header:`Find the gaps in your openings before your opponents do`,body:`Chessbook calculates your coverage per opening so you always know what to work on.`},{image:`/homepage_imgs/move_stats.png?v=2023-04-26T12:10:26.979Z`,header:`Pick the best moves to maximize your win-rate`,body:`Weigh up your options by looking at stats from master games, engine evaluation and results at your level.`},{image:`/homepage_imgs/incidence.png?v=2023-04-02T09:04:04.254Z`,header:`Only spend time on the moves you'll actually see`,body:`Most books and courses are written by masters for masters. Chessbook lets you avoid obscure grandmaster lines and focus your effort on the moves that are common at your level.`}],r=[{header:`Learn middlegame plans for any\xA0opening`,body:`See how top players handle the positions that result from the openings you play.`,image:`/homepage_imgs/how-to-play.webp`},{header:`Find mistakes in your online games`,body:`Connect your Chess.com or Lichess account to get instant feedback when you play the wrong move.`,image:`/homepage_imgs/mistakes.webp`},{header:`Play through model games that follow your openings`,body:`See how masters handle the openings you play\xA0and "guess the move" as you go.`,image:`/homepage_imgs/model_games.webp`}];var c=Sr(),l=c.firstChild,u=l.firstChild,d=u.firstChild.nextSibling.firstChild,f=d.nextSibling.nextSibling,m=l.nextSibling,h=m.firstChild,g=h.firstChild,_=g.firstChild,S=_.nextSibling,C=S.nextSibling,w=C.firstChild,T=C.nextSibling,E=T.firstChild,ee=E.nextSibling,te=T.nextSibling,D=h.nextSibling,ne=D.nextSibling,O=ne.firstChild,k=O.firstChild.nextSibling.firstChild,A=ne.nextSibling,ie=A.firstChild,j=A.nextSibling,ae=j.nextSibling,oe=ae.firstChild.firstChild,se=oe.nextSibling,M=ae.nextSibling.firstChild,N=M.firstChild,P=N.nextSibling,ce=P.nextSibling,le=m.nextSibling,F=le.firstChild,ue=F.firstChild,de=ue.nextSibling,I=le.nextSibling,L=I.firstChild,R=L.nextSibling.firstChild.nextSibling,fe=I.nextSibling.firstChild.firstChild,pe=fe.nextSibling,me=pe.nextSibling;return y(c,o(or,{onClick:()=>e.onClick(`sticky-homepage-cta`)}),l),d._$$click=()=>e.onLogin(),f._$$click=()=>e.onClick(`signup`),y(_,o(on,{})),y(S,o(sn,{})),y(C,o(rn,{onClick:()=>e.onClick(`splash_cta`)}),w),E._$$click=()=>e.onClick(`home.app_store_clicked`),p(E),ee._$$click=()=>e.onClick(`home.play_store_clicked`),p(ee),y(te,o(un,{})),y(D,o(a,{each:n,children:(e,t)=>o(Er,{get image(){return e.image},get header(){return e.header},get body(){return e.body},get direction(){return t()%2==0?`left`:`right`}})})),y(j,o(a,{each:r,children:(e,t)=>o(jr,{get image(){return e.image},get header(){return e.header},get body(){return e.body}})})),y(se,o(a,{each:Mr,children:e=>o(Nr,{get text(){return e.text},get name(){return e.name},get title(){return e.title},get rating(){return e.rating},get image(){return e.image}})})),y(ce,o(a,{each:kr,children:(t,n)=>o(Ar,i(t,{get onClick(){return e.onClick}}))})),y(de,o(a,{each:Dr,children:e=>o(Or,{get question(){return e.question},get answer(){return e.answer}})})),p(L),s(L,`href`,re),p(R),s(R,`href`,re),p(fe),p(pe),p(me),v(()=>({e:x(Y(Q)),t:x(Y(`py-3 flex flex-row justify-between items-center w-full h-[75px]`)),a:x(Y(`text-center flex flex-col pt-16 md:pt-18 lg:pt-15`)),o:`${tn.gray[19]} url("/homepage_imgs/hero-illustration.png") 0% 0% /100% repeat scroll padding-box`,i:x(Y(Q,`p-0!`)),n:x(Y(`font-display text-4xl xs:text-[40px] md:text-[64px] xl:text-7xl font-medium mb-5 md:mb-7`)),s:x(Y(`text-lg md:text-xl text-secondary font-light leading-normal md:leading-none pt-0! mb-6 md:mb-5`,Q)),h:x(Y(`flex row justify-center gap-8 max-w-[1000px] self-center pt-5! md:pt-8! md:pb-9!`,Q)),r:x(Y(` self-center`)),d:x(Y(`max-w-[1000px] mx-auto flex flex-col md:flex-row items-center gap-10 flex`,Q)),l:x(Y(wr,`mb-6 text-center md:text-left`)),u:x(Y(` text-center homepage-section`,Q,`py-16!`)),c:x(Y(Cr,`mb-4 md:mb-4`)),w:x(Y(Cr,`mb-7 md:mb-12 text-center`)),m:x(Y(Q,`flex items-center my-6 md:my-12`)),f:x(Y(Cr,`mb-3 md:mb-4`)),y:x(Y(Tr,`mb-9 md:mb-12 `)),g:x(Y(Q,`flex items-center max-w-[1400px]`)),p:x(Y(Cr,`mb-9 md:mb-12`))}),({e,t:n,a:r,o:i,i:a,n:o,s,h:c,r:d,d:f,l:p,u:m,c:v,w:y,m:x,f:C,y:w,g:E,p:ee},D)=>{b(l,e,D?.e),b(u,n,D?.t),b(h,r,D?.a),i!==D?.o&&t(h,`background`,i),b(g,a,D?.i),b(_,o,D?.n),b(S,s,D?.s),b(T,c,D?.h),b(te,d,D?.r),b(O,f,D?.d),b(k,p,D?.l),b(A,m,D?.u),b(ie,v,D?.c),b(oe,y,D?.w),b(M,x,D?.m),b(N,C,D?.f),b(P,w,D?.y),b(F,E,D?.g),b(ue,ee,D?.p)}),c};h([`click`]);function Fr(e,t){let n=n=>{if(n.stopPropagation(),n.pointerType===`mouse`&&n.button===0){e.removeEventListener(`click`,r);let i=()=>{requestAnimationFrame(()=>{e.addEventListener(`click`,r)})};e.addEventListener(`pointerup`,i,{once:!0}),e.addEventListener(`pointercancel`,i,{once:!0}),e.addEventListener(`pointerleave`,i,{once:!0}),t()(n)}},r=e=>{e.stopPropagation(),t()(e)};e.addEventListener(`pointerdown`,n),e.addEventListener(`click`,r),d(()=>{e.removeEventListener(`pointerdown`,n),e.removeEventListener(`click`,r)})}window.onClick=Fr;var Ir=e=>{u(e)},Lr=n(`<svg viewBox="0 0 1081.57 164.87"role=img aria-label=Chessbook><g fill=#fff><g class=logomark><polygon fill-opacity=0.5 points="0 119.94 50 142.33 50 82.33 0 59.94 0 119.94"></polygon><polygon fill-opacity=1 points="0 60 50 82.39 50 22.39 0 0 0 60"></polygon><polygon fill-opacity=1 points="50 142.45 100 164.84 100 104.84 50 82.45 50 142.45"></polygon><polygon fill-opacity=0.5 points="50 82.52 100 104.91 100 44.91 50 22.52 50 82.52"></polygon><polygon fill-opacity=0.25 points="150 142.49 100 164.87 100 104.87 150 82.49 150 142.49"></polygon><polygon fill-opacity=0.75 points="150 82.55 100 104.94 100 44.94 150 22.55 150 82.55"></polygon><polygon fill-opacity=0.75 points="200 119.97 150 142.36 150 82.36 200 59.97 200 119.97"></polygon><polygon fill-opacity=0.25 points="200 60.03 150 82.42 150 22.42 200 0.03 200 60.03"></polygon></g><g class=glints><polygon class=tw points="0 119.94 50 142.33 50 82.33 0 59.94 0 119.94"style=--k:0></polygon><polygon class=tw points="0 60 50 82.39 50 22.39 0 0 0 60"style=--k:0></polygon><polygon class=tw points="50 142.45 100 164.84 100 104.84 50 82.45 50 142.45"style=--k:1></polygon><polygon class=tw points="50 82.52 100 104.91 100 44.91 50 22.52 50 82.52"style=--k:1></polygon><polygon class=tw points="150 142.49 100 164.87 100 104.87 150 82.49 150 142.49"style=--k:2></polygon><polygon class=tw points="150 82.55 100 104.94 100 44.94 150 22.55 150 82.55"style=--k:2></polygon><polygon class=tw points="200 119.97 150 142.36 150 82.36 200 59.97 200 119.97"style=--k:3></polygon><polygon class=tw points="200 60.03 150 82.42 150 22.42 200 0.03 200 60.03"style=--k:3></polygon></g><g class=wordmark transform="translate(-100 -82.31)"><path d=M475.17,133.97c-4.13-4.44-8.12-7.41-11.98-8.89-3.86-1.48-7.75-2.22-11.67-2.22-5.82,0-11.09,1.03-15.79,3.1-4.71,2.06-8.76,4.92-12.14,8.57-3.39,3.65-6.01,7.91-7.86,12.78-1.85,4.87-2.78,10.11-2.78,15.71,0,6.03.93,11.59,2.78,16.67,1.85,5.08,4.47,9.47,7.86,13.17,3.38,3.71,7.43,6.61,12.14,8.73,4.71,2.12,9.97,3.17,15.79,3.17,4.55,0,8.97-1.08,13.25-3.25,4.29-2.17,8.28-5.63,11.98-10.4l16.51,11.75c-5.08,6.98-11.27,12.06-18.57,15.24-7.3,3.17-15.08,4.76-23.33,4.76-8.68,0-16.64-1.4-23.89-4.21-7.25-2.8-13.49-6.77-18.73-11.91-5.24-5.13-9.34-11.3-12.3-18.49-2.96-7.19-4.44-15.18-4.44-23.97s1.48-17.17,4.44-24.52c2.96-7.35,7.06-13.62,12.3-18.81,5.24-5.18,11.48-9.18,18.73-11.98,7.25-2.8,15.21-4.21,23.89-4.21,7.62,0,14.68,1.35,21.19,4.05,6.51,2.7,12.56,7.28,18.18,13.73l-15.56,11.43Z></path><path d=M524.06,154.44h.32c1.48-3.17,4.1-6.06,7.86-8.65,3.76-2.59,8.6-3.89,14.52-3.89,5.08,0,9.39.85,12.94,2.54,3.54,1.69,6.43,3.92,8.65,6.67,2.22,2.75,3.81,5.93,4.76,9.52.95,3.6,1.43,7.36,1.43,11.27v48.1h-19.05v-38.57c0-2.12-.11-4.47-.32-7.06-.21-2.59-.77-5.03-1.67-7.3-.9-2.27-2.3-4.18-4.21-5.71-1.91-1.53-4.5-2.3-7.78-2.3s-5.85.53-8.02,1.59c-2.17,1.06-3.97,2.49-5.4,4.29-1.43,1.8-2.46,3.86-3.1,6.19-.63,2.33-.95,4.76-.95,7.3v41.59h-19.05v-120h19.05v54.44Z></path><path d=M606.76,188.57c.63,5.71,2.86,10.16,6.67,13.33,3.81,3.17,8.41,4.76,13.81,4.76,4.76,0,8.76-.98,11.98-2.94,3.23-1.96,6.06-4.42,8.49-7.38l13.65,10.32c-4.44,5.5-9.42,9.42-14.92,11.75-5.5,2.33-11.27,3.49-17.3,3.49-5.71,0-11.11-.95-16.19-2.86-
25.08-1.91-9.47-4.6-13.17-8.1-3.71-3.49-6.64-7.7-8.81-12.62-2.17-4.92-3.25-10.4-3.25-16.43s1.08-11.51,3.25-16.43c2.17-4.92,5.1-9.13,8.81-12.62,3.7-3.49,8.09-6.19,13.17-8.1,5.08-1.9,10.48-2.86,16.19-2.86,5.29,0,10.13.93,14.52,2.78,4.39,1.85,8.15,4.52,11.27,8.02,3.12,3.49,5.56,7.8,7.3,12.94,1.75,5.13,2.62,11.03,2.62,17.7v5.24h-58.09ZM645.81,174.29c-.11-5.61-1.85-10.02-5.24-13.25-3.39-3.23-8.09-4.84-14.13-4.84-5.71,0-10.24,1.64-13.57,4.92-3.33,3.28-5.37,7.67-6.11,13.17h39.05Z></path><path d=M723.27,164.92c-3.71-5.18-8.68-7.78-14.92-7.78-2.54,0-5.03.63-7.46,1.91-2.44,1.27-3.65,3.33-3.65,6.19,0,2.33,1,4.02,3.02,5.08,2.01,1.06,4.55,1.96,7.62,2.7,3.07.74,6.37,1.51,9.92,2.3,3.54.79,6.85,2.01,9.92,3.65,3.07,1.64,5.61,3.89,7.62,6.75,2.01,2.86,3.02,6.77,3.02,11.75,0,4.55-.98,8.39-2.94,11.51-1.96,3.12-4.5,5.63-7.62,7.54-3.12,1.91-6.64,3.28-10.56,4.13-3.92.85-7.83,1.27-11.75,1.27-5.93,0-11.38-.85-16.35-2.54-4.97-1.69-9.42-4.76-13.33-9.21l12.7-11.91c2.43,2.75,5.05,5,7.86,6.75,2.8,1.75,6.22,2.62,10.24,2.62,1.37,0,2.8-.16,4.29-.48,1.48-.32,2.86-.85,4.13-1.59,1.27-.74,2.3-1.67,3.1-2.78.79-1.11,1.19-2.41,1.19-3.89,0-2.64-1.01-4.6-3.02-5.87-2.01-1.27-4.55-2.3-7.62-3.1-3.07-.79-6.38-1.53-9.92-2.22-3.55-.69-6.85-1.8-9.92-3.33-3.07-1.53-5.61-3.68-7.62-6.43-2.01-2.75-3.02-6.56-3.02-11.43,0-4.23.87-7.91,2.62-11.03,1.75-3.12,4.05-5.69,6.9-7.7,2.86-2.01,6.14-3.49,9.84-4.44,3.7-.95,7.46-1.43,11.27-1.43,5.08,0,10.1.87,15.08,2.62,4.97,1.75,8.99,4.74,12.06,8.97l-12.7,11.43Z></path><path d=M795.17,164.92c-3.71-5.18-8.68-7.78-14.92-7.78-2.54,0-5.03.63-7.46,1.91-2.44,1.27-3.65,3.33-3.65,6.19,0,2.33,1,4.02,3.02,5.08,2.01,1.06,4.55,1.96,7.62,2.7,3.07.74,6.37,1.51,9.92,2.3,3.54.79,6.85,2.01,9.92,3.65,3.07,1.64,5.61,3.89,7.62,6.75,2.01,2.86,3.02,6.77,3.02,11.75,0,4.55-.98,8.39-2.94,11.51-1.96,3.12-4.5,5.63-7.62,7.54-3.12,1.91-6.64,3.28-10.56,4.13-3.92.85-7.83,1.27-11.75,1.27-5.93,0-11.38-.85-16.35-2.54-4.97-1.69-9.42-4.76-13.33-9.21l12.7-11.9
21c2.43,2.75,5.05,5,7.86,6.75,2.8,1.75,6.22,2.62,10.24,2.62,1.37,0,2.8-.16,4.29-.48,1.48-.32,2.86-.85,4.13-1.59,1.27-.74,2.3-1.67,3.1-2.78.79-1.11,1.19-2.41,1.19-3.89,0-2.64-1.01-4.6-3.02-5.87-2.01-1.27-4.55-2.3-7.62-3.1-3.07-.79-6.38-1.53-9.92-2.22-3.55-.69-6.85-1.8-9.92-3.33-3.07-1.53-5.61-3.68-7.62-6.43-2.01-2.75-3.02-6.56-3.02-11.43,0-4.23.87-7.91,2.62-11.03,1.75-3.12,4.05-5.69,6.9-7.7,2.86-2.01,6.14-3.49,9.84-4.44,3.7-.95,7.46-1.43,11.27-1.43,5.08,0,10.1.87,15.08,2.62,4.97,1.75,8.99,4.74,12.06,8.97l-12.7,11.43Z></path><path d=M823.01,100h19.05v53.49h.48c.95-1.27,2.17-2.56,3.65-3.89,1.48-1.32,3.28-2.56,5.4-3.73,2.12-1.16,4.55-2.12,7.3-2.86,2.75-.74,5.93-1.11,9.52-1.11,5.4,0,10.37,1.03,14.92,3.1,4.55,2.06,8.44,4.9,11.67,8.49,3.23,3.6,5.74,7.83,7.54,12.7,1.8,4.87,2.7,10.11,2.7,15.71s-.85,10.85-2.54,15.71c-1.69,4.87-4.18,9.1-7.46,12.7-3.28,3.6-7.25,6.43-11.9,8.49-4.66,2.06-9.9,3.1-15.71,3.1-5.4,0-10.42-1.06-15.08-3.17-4.66-2.12-8.36-5.5-11.11-10.16h-.32v11.43h-18.1v-120ZM886.18,181.9c0-2.96-.5-5.82-1.51-8.57-1.01-2.75-2.49-5.18-4.44-7.3-1.96-2.12-4.31-3.81-7.06-5.08-2.75-1.27-5.87-1.9-9.36-1.9s-6.62.63-9.37,1.9c-2.75,1.27-5.11,2.96-7.06,5.08-1.96,2.12-3.44,4.55-4.45,7.3-1.01,2.75-1.51,5.61-1.51,8.57s.5,5.82,1.51,8.57c1,2.75,2.49,5.19,4.45,7.3,1.96,2.12,4.31,3.81,7.06,5.08,2.75,1.27,5.87,1.9,9.37,1.9s6.61-.63,9.36-1.9c2.75-1.27,5.1-2.96,7.06-5.08,1.96-2.12,3.44-4.55,4.44-7.3,1-2.75,1.51-5.61,1.51-8.57Z></path><path d=M917.13,181.9c0-6.03,1.08-11.51,3.25-16.43,2.17-4.92,5.1-9.13,8.81-12.62,3.7-3.49,8.09-6.19,13.17-8.1,5.08-1.9,10.48-2.86,16.19-2.86s11.11.95,16.19,2.86c5.08,1.91,9.47,4.6,13.17,8.1,3.7,3.49,6.64,7.7,8.81,12.62,2.17,4.92,3.25,10.4,3.25,16.43s-1.09,11.51-3.25,16.43c-2.17,4.92-5.11,9.13-8.81,12.62-3.71,3.49-8.1,6.19-13.17,8.1-5.08,1.9-10.48,2.86-16.19,2.86s-11.11-.95-16.19-2.86c-5.08-1.91-9.47-4.6-13.17-8.1-3.71-3.49-6.64-7.7-8.81-12.62-2.17-4.92-3.25-10.4-3.25-16.43ZM936.18,181.9c0,2.96.5,5.82,1.51,8.57,1,2.75,2.49,5.19,4.45,7.3,1.96,2.12,4.31,3.81,7.06,5.08,2.75,1.27,5.87,1.9,9.37,1.9s6.61-.63,9.36-1.9c2.75-1.27,5.1-2.96,7.06-5.08,1.96-2.12,3.44-4.55,4.44-7.3,1-2.75,1.51-5.61,1.51-8.57s-.5-5.82-1.51-8.57c-1.01-2.75-2.49-5.18-4.44-7.3-1.96-2.12-4.31-3.81-7.06-5.08-2.75-1.27-5.87-1.9-9.36-1.9s-6.62.63-9.37,1.9c-2.75,1.27-5.11,2.96-7.06,5.08-1.96,2.12-3.44,4.55-4.45,7.3-1.01,2.75-1.51,5.61-1.51,8.57Z></path><path d=M1011.74,181.9c0-6.03,1.08-11.51,3.25-16.43,2.17-4.92,5.1-9.13,8.81-12.62,3.7-3.49,8.09-6.19,13.17-8.1,5.08-1.9,10.48-2.86,16.19-2.86s11.11.95,16.19,2.86c5.08,1.91,9.47,4.6,13.17,8.1,3.7,3.49,6.64,7.7,8.81,12.62,2.17,4.92,3.25,10.4,3.25,16.43s-1.09,11.51-3.25,16.43c-2.17,4.92-5.11,9.13-8.81,12.62-3.71,3.49-8.1,6.19-13.17,8.1-5.08,1.9-10.48,2.86-16.19,2.86s-11.11-.95-16.19-2.86c-5.08-1.91-9.47-4.6-13.17-8.1-3.71-3.49-6.64-7.7-8.81-12.62-2.17-4.92-3.25-10.4-3.25-16.43ZM1030.78,181.9c0,2.96.5,5.82,1.51,8.57,1,2.75,2.49,5.19,4.45,7.3,1.96,2.12,4.31,3.81,7.06,5.08,2.75,1.27,5.87,1.9,9.37,1.9s6.61-.63,9.36-1.9c2.75-1.27,5.1-2.96,7.06-5.08,1.96-2.12,3.44-4.55,4.44-7.3,1-2.75,1.51-5.61,1.51-8.57s-.5-5.82-1.51-8.57c-1.01-2.75-2.49-5.18-4.44-7.3-1.96-2.12-4.31-3.81-7.06-5.08-2.75-1.27-5.87-1.9-9.36-1.9s-6.62.63-9.37,1.9c-2.75,1.27-5.11,2.96-7.06,5.08-1.96,2.12-3.44,4.55-4.45,7.3-1.01,2.75-1.51,5.61-1.51,8.57Z></path><path d=M1106.65,100h19.05v75.4l29.37-31.59h24.44l-32.7,34.6,34.76,41.59h-25.24l-30.32-38.89h-.32v38.89h-19.05v-120Z>`),Rr={fadeIn:200,minShow:200,fadeOut:200},zr=e=>(()=>{var t=Lr();return t.firstChild,v(()=>`logo-loader ${e.class??``}`,(e,n)=>{b(t,e,n)}),t})(),Br=`chessbook:landing-transition`,Vr=e=>{sessionStorage.setItem(Br,JSON.stringify(e))},Hr=()=>{let e=sessionStorage.getItem(Br);if(e){sessionStorage.removeItem(Br);try{return JSON.parse(e)}catch{return}}},Ur=(e,t)=>{let n=e.getItem(`CapacitorStorage.${t}`);if(!n)return!1;try{return!!JSON.parse(n)}catch{return!1}},Wr=/googlebot|google-inspectiontool|bingbot|applebot|duckduckbot|yandexbot|baiduspider/i,Gr=e=>e.native||e.pathname!==`/`||e.site===`chessmadra`||e.site===`chesscards`||e.hostname===`chessmadra.com`||e.hostname.endsWith(`.chessmadra.com`)||e.hostname===`chesscards.com`||e.hostname===`cards.chessbook.com`||Ur(e.storage,`jwt-token`)||Ur(e.storage,`temp-user-uuid`)?`app`:Wr.test(e.userAgent)?`landing`:`onboarding`,Kr=n(`<div class="fixed inset-0 grid place-items-center bg-gray-19"role=status aria-label="Loading Chessbook">`);window.onClick=Fr;var qr=l(()=>C(()=>import(`./inner_app-BWThwd46.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),void 0,`src/inner_app.tsx`),Jr=()=>{let t=Gr({hostname:window.location.hostname,pathname:window.location.pathname,site:void 0,native:!1,storage:window.localStorage,userAgent:navigator.userAgent});t===`onboarding`&&Vr({kind:`start`,source:`direct-onboarding`});let[n,r]=e(t!==`landing`);Ir(()=>{t===`landing`&&O.capture(`landing_page_loaded`,{$set:{platform:`web`},$set_once:{initial_platform:`web`,initial_page:window.location.pathname}})});let i=(e,t)=>{O.capture(`landing_page_conversion`,{source:e}),Vr(t===`login`?{kind:t,source:`login`}:{kind:t,source:e}),r(!0)},a=()=>(()=>{var e=Kr();return y(e,o(zr,{class:`w-[200px] max-w-[80vw]`})),e})();return o(_,{get fallback(){return t===`app`?null:a()},get children(){return f(()=>!!n())()?o(qr,{}):o(Pr,{onLogin:()=>i(`login`,`login`),onClick:e=>i(e,`start`)})}})},Yr;
2(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(Yr||={});var Xr=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},Zr=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,Qr=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?Zr(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new Xr(`"${e}" plugin is not implemented on ${c}`,Yr.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}throw new Xr(`"${e}.${t}()" is not implemented on ${c}`,Yr.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,"name",{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{let r=await n;g({eventName:e,callbackId:r},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=Xr,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},$=(e=>e.Capacitor=Qr(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),$r=$.registerPlugin,ei=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new $.Exception(e,Yr.Unimplemented)}unavailable(e=`not available`){return new $.Exception(e,Yr.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},ti=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),ni=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),ri=class extends ei{async getCookies(){let e=document.cookie,t={};return e.split(`;
2`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=ni(n).trim(),r=ni(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=ti(e.key),n=ti(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};$r(`CapacitorCookies`,{web:()=>new ri});var ii=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),ai=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},oi=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,si=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=ai(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else(r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},ci=class extends ei{async request(e){let t=si(e,e.webFetchExtra),n=oi(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await ii(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};$r(`CapacitorHttp`,{web:()=>new ci});var li;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(li||={});var ui;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(ui||={});var di=class extends ei{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};$r(`SystemBars`,{web:()=>new di});var fi=window.location.hostname.includes(`staging`)||window.location.hostname===`beta.chessbook.com`,pi=(e=>window.location.hostname===e||window.location.hostname.endsWith(`.${e}`))(`chessmadra.com`),mi=window.location.hostname===`chesscards.com`||window.location.hostname===`cards.chessbook.com`,hi=!pi&&!mi,gi=$.getPlatform()!==`web`,_i=$.getPlatform()===`web`,vi=$.getPlatform()===`ios`,yi=$.getPlatform()===`android`,bi=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1,xi=hi||pi?`phc_atElVsO6VniR0N7SppwOvz56DB3pRkkGiL0kRFdKYwu`:mi?`phc_2MYnsM9F5w0NUjvna9F2cByZQhkrIxPAiH9kJ
2UHSvoW`:null,Si=()=>{xi&&O.init(xi,{api_host:`https://ph.chessbook.com`,autocapture:!1,disable_surveys:!0,advanced_disable_flags:!0})},Ci=document.getElementById(`app`);Si(),S(()=>o(Jr,{}),Ci),requestAnimationFrame(()=>{let e=window.__bootLoader;e&&!e.adopted&&document.getElementById(`boot-loader`)?.remove()});export{Rt as A,St as B,tr as C,jn as D,Vn as E,Tt as F,k as G,xt as H,Ft as I,A as J,j as K,Pt as L,en as M,tn as N,pn as O,Z as P,zt as R,ir as S,yn as T,wt as U,Ct as V,ie as W,te as X,O as Y,Pr as _,bi as a,nr as b,fi as c,ei as d,$r as f,Ir as g,zr as h,pi as i,Zt as j,fn as k,_i as l,Rr as m,hi as n,vi as o,Hr as p,re as q,mi as r,gi as s,yi as t,$ as u,er as v,Mn as w,Jn as x,Xn as y,Y 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.