{"version":3,"file":"LevelTestMembers.CmRatH56.mjs","names":["React.useMemo","__esmMin","pe","c","init_jsx_runtime","init_npm_react_18_3_1","init_framer_CKT6jEEQ","ControlType","addPropertyControls","LevelTestMembers","props","html","page","PAGE","LOGO","joinUrl","view","style","init_LevelTestMembers"],"sources":["https:/framerusercontent.com/modules/HwPRWSIevWOAUmpGkoDw/AKm2gayvpKGfQMHPyEmK/LevelTestMembers.js"],"sourcesContent":["// Jordan: \"one page is going to go into the whop as a website embed\". Spanish level test, member version with every lesson open.\n// The finished page runs inside this component in an iframe, the same way the trainer pack pages do.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";const LOGO=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAMAAAAOusbgAAAASFBMVEVkUCKxjDKQcyzWqDruu0BFORznsTcqJBfjsj3ksz34r06qqlX//wC/vz///39/fwD/AAD/fwD0wELjsj0ZFxMAAAAsJhfXqTqG1WbqAAAAGHRSTlP////l/v8k/12gDQMBBAICAQL//v8A//8/9guMAAADcklEQVR42u2b7ZKzIAyFA5Sittv9UOH+7/QNahW7W+MHkJm3zf7qdKbPJoRwbA/QzqK6tu25KkpVRwtVFtW5ba/VnAThi4vHIvR0qiMGfpoqPfryBPyFbxRIrRMEsgtM7Osv8M1jT0mwfd4effsNrrDIdTJsnzUWvHoEf7RnlRTbodUZQTMwcuvkXJ/0SO7B57bIgO3QBcJGMK5vnS2GdfbgS06uJ1968PWSoa9mHeYHFfgFLn9yZvxT+mUGv8CL+QoQwsXN2S8ztLfrcqGh0QAgVcxiX28tfBA7SdnGWAyIu6c+4PtzOWFhmy4gasqf30BtpRHs4m4paMvlraRSgE9lCxUlIAawFVE7uwJqaN1L3ci44wuo00GaFOBTASUFbpKAS3KX3MEm7horci7cwZGbq36D/zgjBrBiAptXATs9gLXLCx4nZnZwwwSWXGB4NfDY1G9wPrDhAmc+JAKweDVwZHn7Bi+AgQ3smMCaC2y4wJFH1waweIP/T/CouZqGDSx5VObLgCUXeHxoi308UZ+mDBM4aOu45+LqL1+yg6dF1nnBagKrrOBpkU1e8DRCLBtYvAhYcoEFG9gEX5U7ITGEUM6lB983spVCgrX4fxhrNP7o5zKBmw46vdDSZQI/hoUDP7MeAWPW+39xPAT2SSsesC93Nr\"+\"AxAEGX7SRvBluNLeXk1OB2n0DYCh5K66SxxybaRvDYTE5qc0gFbgEbE5ZV6ENibAMYJMw2TzBLk4INfrz7WxTtUWMbwOK58pVJSy2fC1B4EbBgAxsecPg8lxWsdC7w6VmlE28nUE/mxy6rxiaxF6o7EXwtk2hyTRWdhrKA8Mzac0psAvucXX8mzs7oPQcyLdbkXPegfU/O0m30Hj+fIk1GD+BfYeaay4lVzzdoMiqOgQNp4Bw+WYG2KAb90xVlqzrXR8AmaHSp9V0CoqtRC8JIVq0GazC/lG7Qz0rP31tu9Yo0CwZOMqcE1hJDa23wD/vMPa/MUq97syDpNBbNJH3GxRxicUlg2R5JGUJXe+dgPbgzhFIW2GmAEGCh14O9BZY0/a71RzpYC+5Nv6TN+d6t5GDE+W0n8b+gtgebM2ns7hoZgB6u3QAB3+xdOMLYTVvZ+wZeeQKR43KysrOZ9/muK/Bd0OC7ksJ3CYfv2hHfRSu+q2V8l+nyXh/8B3WtEDzb7z4VAAAAAElFTkSuQmCC\";const PAGE=`<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>What's Your Spanish Level?</title><link rel=\"preconnect\" href=\"https://fonts.googleapis.com\"><link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin><link href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap\" rel=\"stylesheet\"><style>:root{--paper:#FFFFFF;--yellow:#FFD854;--panel:#F5C73E;--card:#FFFFFF;--chip:#FFF3CD;--ink:#1A1814;--body-ink:#403214;--muted:#605A50;--brown:#78520C;--gold:#BA7E1E;--logo:#E3B23D;--line:#EADFC0;--good:#1E7A4C;--bad:#B42318;--display:\"Inter\",system-ui,-apple-system,\"Segoe UI\",sans-serif;--body:\"Inter\",system-ui,-apple-system,\"Segoe UI\",sans-serif;color-scheme:light}*{box-sizing:border-box}html,body{margin:0}body{background:var(--paper);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.55;letter-spacing:-0.01em;-webkit-font-smoothing:antialiased}.wrap{max-width:880px;margin:0 auto;padding:28px 20px 64px;display:flex;flex-direction:column;gap:28px}header{display:flex;justify-content:space-between;align-items:center;gap:12px}\n.brand{font-family:var(--display);font-weight:800;font-size:22px;letter-spacing:-0.02em}.brand span{color:var(--logo)}.tag{font-size:15px;color:var(--muted);font-weight:500}h1,h2{font-family:var(--display);letter-spacing:-0.04em;text-wrap:balance;margin:0}h1{font-size:clamp(36px,6.4vw,60px);line-height:1.02;font-weight:800}h2{font-size:26px;line-height:1.15;font-weight:700}p{margin:0;max-width:62ch}#quiz,#result,#lesson{max-width:720px}.lede{font-size:19px;color:var(--muted);font-weight:500}.stack{display:flex;flex-direction:column;gap:14px}.facts{display:flex;flex-wrap:wrap;gap:10px}.fact{border-radius:999px;padding:7px 14px;font-size:15px;font-weight:500;background:var(--chip);color:var(--ink)}.track{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.step{display:flex;flex-direction:column;gap:6px}.bar{height:10px;border-radius:5px;background:var(--chip);overflow:hidden;position:relative}.bar i{position:absolute;inset:0 auto 0 0;width:0;background:var(--logo);border-radius:5px;transition:width .3s ease}.step.done .bar i{width:100%;background:var(--ink)}.step.miss .bar i{background:var(--yellow)}.step b{font-family:var(--display);font-size:15px;font-weight:700}\n.step small{font-size:13px;color:var(--muted);line-height:1.25}.step.cur b{color:var(--logo)}.btn{appearance:none;border:0;cursor:pointer;font:600 17px/1 var(--body);padding:16px 26px;border-radius:12px;background:var(--logo);color:var(--ink);display:inline-flex;align-items:center;gap:10px;text-decoration:none;justify-content:center}.btn:hover{filter:brightness(1.07)}.btn.ghost{background:var(--chip);color:var(--ink);border:0}.btn.ghost:hover{background:var(--yellow);filter:none}.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}:focus-visible{outline:3px solid var(--ink);outline-offset:2px}.qmeta{display:flex;justify-content:space-between;gap:12px;font-size:15px;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}.card{background:var(--card);border:1.5px solid var(--line);border-radius:24px;padding:26px 22px;display:flex;flex-direction:column;gap:20px}.passage{border-left:4px solid var(--logo);padding:4px 0 4px 16px;font-size:17px;font-style:italic;color:var(--ink)}.prompt{font-family:var(--display);font-size:clamp(23px,4.4vw,30px);line-height:1.25;font-weight:700;letter-spacing:-0.03em;text-wrap:pretty}\n.blank{display:inline-block;min-width:3.2em;border-bottom:3px solid var(--logo);margin:0 .12em;transform:translateY(-.08em)}.hint{font-size:15px;color:var(--muted)}.opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media (max-width:520px){.opts{grid-template-columns:1fr}}.opt{appearance:none;text-align:left;cursor:pointer;font:500 18px/1.3 var(--body);color:var(--ink);background:var(--chip);border:1.5px solid transparent;border-radius:12px;padding:14px 16px;display:flex;gap:12px;align-items:flex-start}.opt:hover{border-color:var(--logo)}.opt kbd{font:600 13px/1 var(--body);border-radius:6px;padding:5px 7px;color:var(--muted);background:var(--card);flex:none;margin-top:1px}.opt.pick{border-color:var(--logo);background:var(--yellow)}.idk{appearance:none;background:none;border:0;color:var(--muted);font:500 15px var(--body);cursor:pointer;text-decoration:underline;text-underline-offset:3px;align-self:flex-start;padding:4px 0}.idk:hover{color:var(--ink)}.result-head{display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:center}.big{font-family:var(--display);font-weight:800;font-size:clamp(88px,20vw,132px);line-height:.85;letter-spacing:-0.06em;color:var(--logo)}\n.lvlname{font-family:var(--display);font-size:28px;font-weight:700;line-height:1.1;letter-spacing:-0.03em}.scores{display:flex;flex-direction:column;gap:10px}.srow{display:grid;grid-template-columns:44px 1fr 96px;gap:12px;align-items:center;font-variant-numeric:tabular-nums}.srow b{font-family:var(--display)}.srow .bar{height:12px}.srow span{text-align:right;font-size:15px;color:var(--muted)}.srow.pass .bar i{background:var(--ink)}.srow.fail .bar i{background:var(--logo)}.srow.none .bar{opacity:.45}ul.next{margin:0;color:var(--body-ink);padding-left:20px;display:flex;flex-direction:column;gap:6px;max-width:62ch}.cta{background:var(--yellow);color:var(--ink);border-radius:24px;padding:26px 22px;display:flex;flex-direction:column;gap:14px}.cta h2{color:var(--ink)}.cta p{color:var(--ink)}details{border-top:1.5px solid var(--line);padding-top:18px}summary{cursor:pointer;font-weight:600;font-size:18px}.review{display:flex;flex-direction:column;gap:12px;margin-top:16px}.ritem{border:1.5px solid var(--line);border-radius:16px;padding:14px 16px;background:var(--card);display:flex;flex-direction:column;gap:6px;font-size:16px}.ritem .q{font-weight:600}.ritem .ok{color:var(--good)}\n.ritem .no{color:var(--bad)}.ritem .why{color:var(--muted);font-size:15px}.note{font-size:14px;color:var(--muted)}.sched{display:flex;flex-wrap:wrap;gap:8px}.sched span{background:var(--card);border-radius:999px;padding:7px 14px;font-weight:600;font-size:15px}.logo{width:96px;height:96px;display:block;margin-bottom:72px}.plan{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width:620px){.plan{grid-template-columns:1fr}}.pcard{appearance:none;text-align:left;font:inherit;color:var(--ink);background:var(--card);border:1.5px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:8px;cursor:pointer}.pcard:hover{border-color:var(--logo)}.pcard h3{margin:0;font-size:20px;font-weight:700;letter-spacing:-0.03em;line-height:1.2}.pcard p{font-size:15px;color:var(--muted)}.pcard .meta{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;color:var(--muted);margin-top:auto;padding-top:6px}.pcard .go{font-weight:600;color:var(--ink);display:inline-flex;align-items:center;gap:6px}.pcard.locked .go svg{flex:none}.misses{display:inline-flex;gap:4px;align-items:center}\n.misses i{width:8px;height:8px;border-radius:50%;background:var(--chip)}.misses i.x{background:var(--logo)}.lockbox{background:var(--yellow);border-radius:24px;padding:24px 22px;display:flex;flex-direction:column;gap:12px}.lesson-title{font-size:clamp(34px,6vw,52px)}.lesson-body{display:flex;flex-direction:column;gap:14px;max-width:680px;color:var(--body-ink)}.lesson-body h3{margin:12px 0 0;font-size:21px;font-weight:700;letter-spacing:-0.03em;color:var(--ink)}.lesson-body ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}.tbl{overflow-x:auto}.lesson-body table{border-collapse:collapse;width:100%;font-size:16px}.lesson-body th{text-align:left;font-weight:700;color:var(--ink);background:var(--chip);padding:10px 12px}.lesson-body td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}.watch{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;font-weight:600;color:var(--ink);background:var(--chip);border-radius:999px;padding:9px 16px;text-decoration:none}.watch:hover{background:var(--yellow)}\n.overlay{position:fixed;inset:0;background:rgba(26,24,20,.45);display:flex;align-items:center;justify-content:center;padding:20px;z-index:10}.dlg{background:var(--card);border-radius:24px;padding:28px 24px;max-width:460px;width:100%;display:flex;flex-direction:column;gap:14px}.lockicon{width:56px;height:56px;border-radius:16px;background:var(--logo);color:var(--ink);display:flex;align-items:center;justify-content:center}.planbox{position:relative}.planbox.locked .plan{pointer-events:none;user-select:none}.planbox.locked .pcard{cursor:default}.planbox.locked .pcard p,.planbox.locked .pcard .meta{filter:blur(5px);opacity:.8}.planbox.locked .pcard h3{filter:blur(1.5px)}.planbox.locked .pcard.ghost h3{filter:blur(6px)}.pcard .bars{display:flex;flex-direction:column;gap:7px;filter:blur(4px)}.pcard .bars i{display:block;height:10px;border-radius:5px;background:var(--chip)}.pcard .bars i:nth-child(2){width:82%}.pcard .bars i:nth-child(3){width:64%}.planlock{position:absolute;inset:-12px;display:flex;align-items:center;justify-content:center;padding:16px;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.75) 28%,rgba(255,255,255,.75) 72%,rgba(255,255,255,0) 100%)}\n.planlock-card{background:var(--yellow);border-radius:24px;padding:28px 26px;max-width:440px;width:100%;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;box-shadow:0 18px 50px rgba(26,24,20,.18)}.planlock-card h2{font-size:30px}.lockvid{position:relative;width:100%;max-width:260px;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--panel)}.lockvid .thumb{display:block;width:100%;height:100%;object-fit:cover;filter:blur(3px);transform:scale(1.08)}.lockvid-badge{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(26,24,20,.12)}.planlock-card p{color:var(--ink)}.planlock-card .btn{margin-top:4px}body{text-transform:lowercase}button,a,summary{text-transform:inherit}.lvl,.big,.step b,.srow b{text-transform:none}.tabs{display:flex;flex-wrap:wrap;gap:8px}.tabs button{appearance:none;border:0;cursor:pointer;font:600 16px/1 var(--body);text-transform:lowercase;padding:11px 18px;border-radius:999px;background:var(--chip);color:var(--ink)}.tabs button[aria-selected=\"true\"]{background:var(--logo)}.chat{display:flex;flex-direction:column;gap:10px;max-width:640px}.bubble{appearance:none;font:inherit;text-transform:inherit;text-align:left;cursor:pointer;border:0;border-radius:18px;padding:12px 16px;max-width:85%;background:var(--chip);color:var(--ink);display:flex;flex-direction:column;gap:4px}.bubble.r{align-self:flex-end;background:var(--yellow)}.bubble small{font-size:13px;font-weight:700;color:var(--muted)}.bubble .en{font-size:15px;color:var(--muted)}\n.bubble mark{background:none;color:inherit;font-weight:700;text-decoration:underline;text-decoration-color:var(--logo);text-decoration-thickness:3px;text-underline-offset:3px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}@media (max-width:620px){.cards{grid-template-columns:1fr 1fr}}.fcard{appearance:none;font:inherit;text-transform:inherit;cursor:pointer;border:1.5px solid var(--line);background:var(--card);color:var(--ink);border-radius:18px;min-height:120px;padding:16px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:19px;font-weight:700;letter-spacing:-0.02em}.fcard.flip{background:var(--yellow);border-color:var(--yellow);font-weight:500}.pq{display:flex;flex-direction:column;gap:14px}.pqi{border:1.5px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:12px}.pqi .q{font-size:19px;font-weight:700;letter-spacing:-0.02em}.pqi .opts{grid-template-columns:1fr 1fr}.opt.right{border-color:var(--good);background:#E8F5EE}.opt.wrong{border-color:var(--bad);background:#FDECEA}.pqi .why{font-size:15px;color:var(--muted)}.tabs button.lvl{text-transform:none}\n.reshead{font-size:15px;font-weight:700;color:var(--muted)}.rcard{text-decoration:none}.rcard .thumb{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;background:var(--chip)}.rcard .sub{display:flex;gap:14px;flex-wrap:wrap;font-size:14px;font-weight:600;margin-top:auto;padding-top:6px}.rcard .sub a{color:var(--ink);text-underline-offset:3px}\n.libgroup{display:flex;flex-direction:column;gap:14px}.libhead{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.libhead .lvl{font-family:var(--display);font-weight:800;font-size:30px;letter-spacing:-0.04em;color:var(--logo)}.libhead span.n{font-size:15px;color:var(--muted);font-weight:500}.toggle{appearance:none;border:0;background:none;cursor:pointer;align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:5px 8px 5px 4px;margin-left:-4px;border-radius:6px;font:500 15px/1.2 var(--body);text-transform:inherit;color:var(--muted)}.toggle:hover{background:rgba(55,53,47,.08);color:var(--ink)}.toggle svg{flex:none;transition:transform .2s ease}.toggle[aria-expanded=\"true\"] svg{transform:rotate(90deg)}.fold{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease}.fold.open{grid-template-rows:1fr}.fold-in{overflow:hidden;min-height:0}.fold-in>.plan{padding-top:12px}.foldwrap{display:flex;flex-direction:column}.foldwrap>.plan+.plan{padding-top:12px}.vcard{cursor:default}.vcard .thumb{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;background:var(--chip)}.vcard .meta{flex-wrap:wrap}.plan.mason{align-items:start}.mcol{display:flex;flex-direction:column;gap:12px;min-width:0}@media (max-width:620px){.plan.mason{display:flex;flex-direction:column}.mcol{display:contents}}.toggle:focus-visible{outline:2px solid var(--line);outline-offset:1px}.pcard .done{display:inline-flex;align-items:center;gap:6px;color:var(--good);font-weight:600}[hidden]{display:none!important}#result>.cta{display:none!important}@media (prefers-reduced-motion:reduce){*{transition:none!important}}</style></head><body><div class=\"wrap\"><section id=\"start\" class=\"stack\" style=\"gap:24px\"><img class=\"logo\" src=\"__LOGO__\" alt=\"el barrio\"><h1>what's your spanish level?</h1><p class=\"lede\">Answer as many as you can. The test gets harder as you go and stops once you reach your level, so beginners finish in a couple of minutes.</p><div class=\"facts\"><span class=\"fact\">Up to 50 questions</span><span class=\"fact\">About 10 minutes</span><span class=\"fact\">Mexican Spanish</span><span class=\"fact\">Levels <span class=\"lvl\">A1</span> to <span class=\"lvl\">C1</span></span></div><div class=\"track\" id=\"trackStart\"></div><div class=\"row\"><button class=\"btn\" id=\"go\" type=\"button\">start the test</button>\n<span class=\"note\">No signup. Your result shows at the end.</span></div><p class=\"note\" style=\"max-width:none\">Don't guess. If you don't know an answer, tap \"No s\\xe9\" so your level comes out accurate. This test covers grammar, vocabulary and reading.</p></section><section id=\"library\" class=\"stack\" hidden style=\"gap:28px\"><h1>el barrio lessons</h1><p class=\"lede\">Every lesson we teach, from your first verbs to <span class=\"lvl\">C1</span>. Each one has a short read, a conversation, flashcards and practice questions.</p><div class=\"row\"><button class=\"btn\" id=\"libTest\" type=\"button\">not sure where to start? take the level test</button></div><div class=\"tabs\" role=\"tablist\" id=\"libTabs\"></div><div class=\"stack\" id=\"libList\" style=\"gap:36px\"></div><div class=\"stack\" id=\"libRes\" style=\"gap:18px;margin-top:20px\"><h2>more resources</h2><p class=\"lede\" style=\"font-size:17px\">Apps and extras to keep you practicing.</p><div class=\"stack\" id=\"resList\" style=\"gap:28px\"></div></div></section><section id=\"quiz\" class=\"stack\" hidden style=\"gap:18px\"><div class=\"track\" id=\"trackQuiz\"></div><div class=\"card\"><div class=\"passage\" id=\"qPassage\" hidden></div><div class=\"prompt\" id=\"qPrompt\"></div><div class=\"hint\" id=\"qHint\" hidden></div><div class=\"opts\" id=\"qOpts\"></div><button class=\"idk\" id=\"idk\" type=\"button\">No s\\xe9 (I don't know)</button></div><p class=\"note\">Tip: press 1 to 4 to answer with your keyboard.</p></section>\n<section id=\"result\" class=\"stack\" hidden style=\"gap:28px\"><div class=\"result-head\"><div class=\"big\" id=\"rCode\"></div><div class=\"stack\" style=\"gap:6px\"><div class=\"lvlname\" id=\"rName\"></div><div class=\"tag\" id=\"rSub\"></div></div></div><p class=\"lede\" id=\"rDesc\"></p><div class=\"track\" id=\"trackResult\"></div><div class=\"stack\"><h2>how you scored</h2><div class=\"scores\" id=\"rScores\"></div><p class=\"note\">You pass a level with 7 out of 10.</p></div><div class=\"stack\" id=\"planWrap\"><h2>your study plan</h2><p class=\"note\" id=\"planNote\"></p><div class=\"planbox\" id=\"planBox\"><div class=\"plan\" id=\"plan\"></div><div class=\"planlock\" id=\"planLock\" hidden><div class=\"planlock-card\"><div class=\"lockvid\"><img class=\"thumb\" id=\"lockVidImg\" alt=\"\" onerror=\"this.style.visibility='hidden'\"><div class=\"lockvid-badge\"><div class=\"lockicon\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"28\" height=\"28\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"10.5\" width=\"16\" height=\"10.5\" rx=\"2.5\"/><path d=\"M8 10.5V7a4 4 0 0 1 8 0v3.5\"/></svg></div></div></div><p class=\"note\" id=\"lockVidCap\" style=\"color:var(--ink);margin-top:-4px\"></p><h2>unlock in el barrio</h2><p id=\"planLockText\"></p><a class=\"btn\" href=\"https://professordeggy.com\" target=\"_blank\" rel=\"noopener\" data-join>try el barrio free for 7 days</a></div></div></div>\n<div class=\"stack\" id=\"vidWrap\" hidden style=\"gap:12px;margin-top:14px\"><h2>videos for you</h2><p class=\"note\">Short video lessons on the topics you missed.</p><div class=\"plan\" id=\"vidPlan\"></div></div><div class=\"lockbox\" id=\"lockBox\" hidden><h2>unlock your lessons in el barrio</h2><p id=\"lockText\"></p><div class=\"row\"><a class=\"btn\" href=\"https://professordeggy.com\" target=\"_blank\" rel=\"noopener\" data-join>join el barrio</a></div></div><ul class=\"next\" id=\"rNext\" hidden></ul></div><div class=\"cta\"><h2 id=\"ctaTitle\">use it on a live call</h2><p id=\"ctaText\">Live Zoom calls six days a week with Diego and the El Barrio coaches. Come as you are, at any level.</p><div class=\"sched\"><span>mon 12pm</span><span>tue 6pm</span><span>wed 12pm</span><span>thu 3pm</span><span>thu 8pm</span><span>fri 8pm</span><span>sun 3pm</span></div><p class=\"note\" style=\"color:var(--ink)\">All times Eastern. Camera on.</p></div><details><summary>review your answers</summary><div class=\"review\" id=\"rReview\"></div></details><div class=\"row\"><button class=\"btn ghost\" id=\"again\" type=\"button\">take the test again</button><button class=\"btn ghost\" id=\"toLib\" type=\"button\" hidden>browse every lesson</button></div></section><section id=\"lesson\" class=\"stack\" hidden style=\"gap:24px\"><button class=\"idk\" id=\"backTop\" type=\"button\">back to my results</button><h1 class=\"lesson-title\" id=\"lTitle\"></h1>\n<p class=\"lede\" id=\"lBlurb\"></p><a class=\"watch\" id=\"lWatch\" href=\"#\" target=\"_blank\" rel=\"noopener\" hidden>watch diego explain it</a><div class=\"row\" id=\"lLinks\" style=\"gap:8px\" hidden></div><div class=\"plan\" id=\"lVideos\" hidden></div><div class=\"tabs\" role=\"tablist\" id=\"lTabs\"><button type=\"button\" role=\"tab\" data-tab=\"read\" aria-selected=\"true\">read</button><button type=\"button\" role=\"tab\" data-tab=\"convo\">conversation</button><button type=\"button\" role=\"tab\" data-tab=\"cards\">flashcards</button><button type=\"button\" role=\"tab\" data-tab=\"quiz\">practice</button></div><div class=\"tabpanel\" data-panel=\"read\"><div class=\"lesson-body\" id=\"lBody\"></div></div><div class=\"tabpanel\" data-panel=\"convo\" hidden><p class=\"note\">Tap a line to see it in English.</p><div class=\"chat\" id=\"lConvo\"></div></div><div class=\"tabpanel\" data-panel=\"cards\" hidden><p class=\"note\">Tap a card to flip it.</p><div class=\"cards\" id=\"lCards\"></div></div><div class=\"tabpanel\" data-panel=\"quiz\" hidden><div class=\"pq\" id=\"lQuiz\"></div><div class=\"row\" id=\"lQuizEnd\" hidden><span class=\"lvlname\" id=\"lQuizScore\"></span><button class=\"btn ghost\" id=\"lQuizAgain\" type=\"button\">try again</button></div></div><div class=\"stack\" id=\"lMissedWrap\"><h2>the questions you missed</h2><div class=\"review\" id=\"lMissed\"></div></div>\n<div class=\"row\"><button class=\"btn ghost\" id=\"backBottom\" type=\"button\">back to my results</button></div></section></div><div class=\"overlay\" id=\"lockDlg\" hidden><div class=\"dlg\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"dlgTitle\"><div class=\"lockicon\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"28\" height=\"28\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"10.5\" width=\"16\" height=\"10.5\" rx=\"2.5\"/><path d=\"M8 10.5V7a4 4 0 0 1 8 0v3.5\"/></svg></div><h2 id=\"dlgTitle\"></h2><p id=\"dlgText\"></p><div class=\"row\"><a class=\"btn\" href=\"https://professordeggy.com\" target=\"_blank\" rel=\"noopener\" data-join>join el barrio</a><button class=\"btn ghost\" id=\"dlgClose\" type=\"button\">not now</button></div></div>\n</div> <script>const MODE = \"open\"; /*MODE*/\nconst VIEW = \"test\"; /*VIEW*/\nvar EXTRA = {};\nconst JOIN_URL = \"https://professordeggy.com\";\nconst TOPICS = {\n\"present\":    {title:\"the present tense\", level:\"A1\", video:\"\", blurb:\"How verbs change their ending for each person.\"},\n\"ser-estar\":  {title:\"ser vs. estar\", level:\"A1\", video:\"\", blurb:\"Two verbs for \\\\\"to be\\\\\" and when each one fits.\"},\n\"gustar\":     {title:\"gustar\", level:\"A1\", video:\"\", blurb:\"Why it's me gustan los tacos, not me gusta los tacos.\"},\n\"questions\":  {title:\"question words\", level:\"A1\", video:\"\", blurb:\"Qu\\xe9, cu\\xe1l, cu\\xe1ntos, d\\xf3nde and when to use each one.\"},\n\"vocab\":      {title:\"everyday words\", level:\"A1\", video:\"\", blurb:\"Family words plus the tener expressions you use every day.\"},\n\"past\":       {title:\"talking about the past\", level:\"A2\", video:\"\", blurb:\"Preterite, imperfect and hab\\xeda + participle.\"},\n\"por-para\":   {title:\"por vs. para\", level:\"A2\", video:\"\", blurb:\"Two words for \\\\\"for\\\\\" that do different jobs.\"},\n\"pronouns\":   {title:\"object pronouns\", level:\"A2\", video:\"\", blurb:\"Lo, la, le, se lo and where they go in a sentence.\"},\n\"phrases\":    {title:\"verb phrases\", level:\"A2\", video:\"\", blurb:\"Ir a, estar + -ando and llevar + -ando.\"},\n\"comparing\":  {title:\"comparing and agreeing\", level:\"A2\", video:\"\", blurb:\"M\\xe1s … que, tan … como, tambi\\xe9n and tampoco.\"},\n\"subj\":       {title:\"the subjunctive\", level:\"B1\", video:\"\", blurb:\"Wishes, doubts, feelings and things that might not exist.\"},\n\"si\":         {title:\"si clauses\", level:\"B1\", video:\"\", blurb:\"\\\\\"If I had …, I would …\\\\\" in the present and the past.\"},\n\"mexican\":    {title:\"mexican expressions\", level:\"B1\", video:\"\", blurb:\"The slang and idioms you'll hear in everyday conversation.\"},\n\"reading\":    {title:\"reading for meaning\", level:\"B1\", video:\"\", blurb:\"How to catch what a text implies without saying it.\"},\n\"subj-past\":  {title:\"the past subjunctive\", level:\"B2\", video:\"\", blurb:\"Ayudara, fuera, hubieras and when they show up.\"},\n\"connectors\": {title:\"connectors\", level:\"B2\", video:\"\", blurb:\"Aunque, por lo tanto, con tal de que and friends.\"},\n\"formal\":     {title:\"formal spanish\", level:\"B2\", video:\"\", blurb:\"Register, the passive voice and formal vocabulary.\"},\n\"c1-subj\":    {title:\"advanced subjunctive\", level:\"C1\", video:\"\", blurb:\"Quienquiera que, me extra\\xf1a que, ni que and the perfect subjunctive.\"},\n\"c1-cond\":    {title:\"advanced conditions\", level:\"C1\", video:\"\", blurb:\"De haberlo sabido, con tal de que, a no ser que and mixed if-clauses.\"},\n\"c1-idioms\":  {title:\"idioms and colloquial speech\", level:\"C1\", video:\"\", blurb:\"The expressions natives use without thinking: \\xe9chale ganas, se me hace, hacerse bolas.\"},\n\"c1-register\":{title:\"register and formal writing\", level:\"C1\", video:\"\", blurb:\"Sounding right in emails, meetings and official Spanish.\"},\n\"c1-inference\":{title:\"reading between the lines\", level:\"C1\", video:\"\", blurb:\"Irony, understatement and what people mean when they don't say it.\"}\n};\nconst LESSONS = {\n\"present\": \\`\n<p>Spanish verbs change their ending to show who's doing the action. Learn one pattern per verb type and most verbs follow it.</p>\n<div class=\"tbl\"><table>\n<tr><th></th><th>hablar</th><th>comer</th><th>vivir</th></tr>\n<tr><td>yo</td><td>hablo</td><td>como</td><td>vivo</td></tr>\n<tr><td>t\\xfa</td><td>hablas</td><td>comes</td><td>vives</td></tr>\n<tr><td>\\xe9l, ella, usted</td><td>habla</td><td>come</td><td>vive</td></tr>\n<tr><td>nosotros</td><td>hablamos</td><td>comemos</td><td>vivimos</td></tr>\n<tr><td>ellos, ustedes</td><td>hablan</td><td>comen</td><td>viven</td></tr>\n</table></div>\n<h3>reflexive verbs</h3>\n<p>Verbs like llamarse put a small pronoun in front: me llamo, te llamas, se llama. Hola, me llamo Sof\\xeda.</p>\n<h3>asking favors</h3>\n<p>The present tense also works as a friendly request. \\xbfMe pasas la sal? sounds softer than a command like p\\xe1same la sal.</p>\n<h3>try it</h3>\n<ul><li>Mi hermana vive en Guadalajara.</li><li>Nosotros estudiamos los martes.</li><li>\\xbfMe prestas tu pluma?</li></ul>\\`,\n\"ser-estar\": \\`\n<p>Ser describes what something is. Estar describes where something is or how it is right now.</p>\n<div class=\"tbl\"><table>\n<tr><th>ser</th><th>estar</th></tr>\n<tr><td>who or what: Es maestra.</td><td>location: El ba\\xf1o est\\xe1 al fondo.</td></tr>\n<tr><td>origin: Soy de Monterrey.</td><td>feelings: Estoy cansado.</td></tr>\n<tr><td>time: Son las tres.</td><td>temporary states: La sopa est\\xe1 fr\\xeda.</td></tr>\n<tr><td>personality: Es muy amable.</td><td>in progress: Estoy comiendo.</td></tr>\n</table></div>\n<h3>quick checks</h3>\n<ul><li>Asking where a specific thing is? Always estar: \\xbfD\\xf3nde est\\xe1 el metro?</li><li>Telling time? Always ser: Es la una. Son las cinco.</li><li>Events are the exception: La fiesta es en mi casa.</li></ul>\\`,\n\"gustar\": \\`\n<p>Gustar works backwards from English. The thing you like is the subject of the sentence, so the verb matches that thing.</p>\n<ul><li>One thing or an action: Me gusta el caf\\xe9. Me gusta bailar.</li><li>More than one thing: Me gustan los tacos al pastor.</li></ul>\n<p>The small word in front tells you who likes it.</p>\n<div class=\"tbl\"><table>\n<tr><td>me</td><td>I like</td></tr><tr><td>te</td><td>you like</td></tr><tr><td>le</td><td>he, she or usted likes</td></tr><tr><td>nos</td><td>we like</td></tr><tr><td>les</td><td>they or ustedes like</td></tr>\n</table></div>\n<h3>same pattern</h3>\n<p>Encantar, importar and molestar all work like gustar: Me encantan las playas de Oaxaca. A mi mam\\xe1 le molesta el ruido.</p>\\`,\n\"questions\": \\`\n<p>Every question word carries an accent mark. Here's what each one asks for.</p>\n<div class=\"tbl\"><table>\n<tr><td>qu\\xe9</td><td>what</td><td>\\xbfQu\\xe9 quieres comer?</td></tr>\n<tr><td>cu\\xe1l</td><td>which (picking from options)</td><td>\\xbfCu\\xe1l prefieres?</td></tr>\n<tr><td>qui\\xe9n</td><td>who</td><td>\\xbfQui\\xe9n es ella?</td></tr>\n<tr><td>d\\xf3nde</td><td>where</td><td>\\xbfD\\xf3nde vives?</td></tr>\n<tr><td>cu\\xe1ndo</td><td>when</td><td>\\xbfCu\\xe1ndo llegas?</td></tr>\n<tr><td>c\\xf3mo</td><td>how</td><td>\\xbfC\\xf3mo est\\xe1s?</td></tr>\n<tr><td>cu\\xe1nto</td><td>how much / how many</td><td>\\xbfCu\\xe1nto cuesta?</td></tr>\n</table></div>\n<h3>cu\\xe1nto changes to match</h3>\n<p>Cu\\xe1nto matches the noun after it: \\xbfCu\\xe1ntos a\\xf1os tienes? \\xbfCu\\xe1ntas hermanas tienes? \\xbfCu\\xe1nta agua quieres?</p>\\`,\n\"vocab\": \\`\n<h3>tener expressions</h3>\n<p>Spanish uses tener (to have) where English uses \\\\\"to be\\\\\" for a lot of feelings and states.</p>\n<div class=\"tbl\"><table>\n<tr><td>tener hambre</td><td>to be hungry</td></tr><tr><td>tener sed</td><td>to be thirsty</td></tr><tr><td>tener fr\\xedo / calor</td><td>to be cold / hot</td></tr><tr><td>tener sue\\xf1o</td><td>to be sleepy</td></tr><tr><td>tener miedo</td><td>to be scared</td></tr><tr><td>tener prisa</td><td>to be in a hurry</td></tr><tr><td>tener raz\\xf3n</td><td>to be right</td></tr><tr><td>tener 30 a\\xf1os</td><td>to be 30 years old</td></tr>\n</table></div>\n<h3>family</h3>\n<div class=\"tbl\"><table>\n<tr><td>abuelo / abuela</td><td>grandpa / grandma</td></tr><tr><td>t\\xedo / t\\xeda</td><td>uncle / aunt</td></tr><tr><td>primo / prima</td><td>cousin</td></tr><tr><td>sobrino / sobrina</td><td>nephew / niece</td></tr><tr><td>suegro / suegra</td><td>father-in-law / mother-in-law</td></tr><tr><td>cu\\xf1ado / cu\\xf1ada</td><td>brother-in-law / sister-in-law</td></tr>\n</table></div>\n<p>You'll also hear mi jefa for \\\\\"my mom\\\\\" in casual Mexican Spanish.</p>\\`,\n\"past\": \\`\n<p>Spanish has two main past tenses. Think of a movie: the imperfect sets the scene while the preterite moves the plot.</p>\n<h3>preterite: it happened</h3>\n<p>Finished actions at a specific moment. Ayer fui al mercado. Comimos tacos. In Mexico, ya + preterite asks if something has happened: \\xbfYa viste la pel\\xedcula?</p>\n<h3>imperfect: it used to happen</h3>\n<p>Habits, background and descriptions. Cuando era ni\\xf1o, jugaba f\\xfatbol todos los d\\xedas. Hac\\xeda calor.</p>\n<h3>both together</h3>\n<p>Estaba lloviendo cuando son\\xf3 el tel\\xe9fono. The rain is the background. The phone ringing is the event.</p>\n<h3>hab\\xeda + participle</h3>\n<p>For something that happened before another past moment: Cuando llegamos al cine, la pel\\xedcula ya hab\\xeda empezado.</p>\\`,\n\"por-para\": \\`\n<p>Para points forward to a goal. Por looks back at a cause or describes the path.</p>\n<div class=\"tbl\"><table>\n<tr><th>para</th><th>por</th></tr>\n<tr><td>who it's for: Este regalo es para ti.</td><td>reason: Gracias por todo.</td></tr>\n<tr><td>purpose: Estudio para hablar con mi abuela.</td><td>exchange: Lo compr\\xe9 por 200 pesos.</td></tr>\n<tr><td>destination: Salgo para Puebla.</td><td>through: Caminamos por el parque.</td></tr>\n<tr><td>deadline: Es para el lunes.</td><td>duration: Trabaj\\xe9 por tres horas.</td></tr>\n</table></div>\n<h3>fixed phrases</h3>\n<p>Por favor, por fin, por eso, por ejemplo, para siempre.</p>\\`,\n\"pronouns\": \\`\n<p>Object pronouns replace a noun you already mentioned so you don't repeat it.</p>\n<h3>direct: what or whom</h3>\n<p>Lo, la, los, las. \\xbfConoces a Diego? S\\xed, lo conozco. \\xbfTienes las llaves? S\\xed, las tengo.</p>\n<h3>indirect: to whom</h3>\n<p>Le, les. Le di el libro a Ana. Les escrib\\xed a mis pap\\xe1s.</p>\n<h3>both at once</h3>\n<p>The indirect one goes first. Le and les turn into se in front of lo, la, los or las: Le di el libro a Ana → Se lo di.</p>\n<h3>where they go</h3>\n<p>Before a conjugated verb, or stuck to the end of an infinitive, a gerund or a command. Lo voy a comprar = Voy a comprarlo. D\\xe1melo.</p>\\`,\n\"phrases\": \\`\n<h3>ir a + infinitive</h3>\n<p>The easiest way to talk about the future. Voy a estudiar. Ma\\xf1ana va a llover.</p>\n<h3>estar + gerund</h3>\n<p>Something happening right now. Ahorita estoy haciendo la tarea. -ar verbs end in -ando. -er and -ir verbs end in -iendo.</p>\n<h3>llevar + time + gerund</h3>\n<p>How long you've been doing something. Llevo tres a\\xf1os estudiando espa\\xf1ol. \\xbfCu\\xe1nto tiempo llevas viviendo aqu\\xed?</p>\\`,\n\"comparing\": \\`\n<h3>comparing</h3>\n<ul><li>More or less: Mi carro es m\\xe1s r\\xe1pido que el tuyo. Es menos caro que el otro.</li><li>Equal: Es tan alto como su pap\\xe1.</li><li>Irregular: mejor, peor, mayor, menor. Este taco es mejor que ese.</li></ul>\n<h3>agreeing</h3>\n<p>Tambi\\xe9n agrees with something positive. Tampoco agrees with something negative.</p>\n<div class=\"tbl\"><table>\n<tr><td>Me gusta el mole.</td><td>A m\\xed tambi\\xe9n.</td></tr>\n<tr><td>No me gusta el picante.</td><td>A m\\xed tampoco.</td></tr>\n<tr><td>Me gusta el mole.</td><td>A m\\xed no. (disagree)</td></tr>\n<tr><td>No me gusta el picante.</td><td>A m\\xed s\\xed. (disagree)</td></tr>\n</table></div>\\`,\n\"subj\": \\`\n<p>The subjunctive is a verb form for things that aren't plain facts: wishes, doubts, feelings and things that might not exist.</p>\n<h3>how to make it</h3>\n<p>Take the yo form, drop the -o, then swap the vowel. -ar verbs get -e. -er and -ir verbs get -a. Hablo → hable. Como → coma. Tengo → tenga.</p>\n<p>Irregulars to know: ir → vaya, ser → sea, saber → sepa, haber → haya, estar → est\\xe9, dar → d\\xe9.</p>\n<h3>when to use it</h3>\n<div class=\"tbl\"><table>\n<tr><td>wishes</td><td>Espero que te vaya bien.</td></tr>\n<tr><td>doubt</td><td>No creo que tengas raz\\xf3n.</td></tr>\n<tr><td>feelings</td><td>Me extra\\xf1a que no haya llegado.</td></tr>\n<tr><td>unknown people or things</td><td>Busco a alguien que sepa n\\xe1huatl.</td></tr>\n<tr><td>cuando + future</td><td>Cuando llegues, av\\xedsame.</td></tr>\n<tr><td>denying a reason</td><td>No es que no quiera.</td></tr>\n</table></div>\n<p>Haya + participle (the perfect subjunctive) covers things that may already have happened: Quienquiera que haya hecho esto tendr\\xe1 que explicar.</p>\\`,\n\"si\": \\`\n<h3>likely situations</h3>\n<p>Si + present, then present or future. Si llueve, no voy.</p>\n<h3>imagined situations</h3>\n<p>Si + past subjunctive, then conditional. Si tuviera dinero, har\\xeda un viaje a Oaxaca.</p>\n<h3>things that didn't happen</h3>\n<p>Si + hubiera + participle, then habr\\xeda + participle. Si me hubieras dicho la verdad, no me habr\\xeda enojado.</p>\n<h3>the shortcut</h3>\n<p>De + haber + participle means \\\\\"if I had\\\\\": De haberlo sabido, no habr\\xeda venido.</p>\\`,\n\"mexican\": \\`\n<p>These come up constantly in conversation with Mexicans. Learn them as whole phrases.</p>\n<div class=\"tbl\"><table>\n<tr><td>\\xbfMe echas la mano?</td><td>Can you help me out?</td></tr>\n<tr><td>\\xa1Qu\\xe9 padre! / bien padre</td><td>How cool / super cool</td></tr>\n<tr><td>Me qued\\xe9 de a seis.</td><td>I was stunned.</td></tr>\n<tr><td>Se me hace que …</td><td>I think … / It seems to me …</td></tr>\n<tr><td>No le des vueltas.</td><td>Don't overthink it.</td></tr>\n<tr><td>Ahorita</td><td>In a bit (or never)</td></tr>\n<tr><td>\\xbfQu\\xe9 onda?</td><td>What's up?</td></tr>\n<tr><td>No manches.</td><td>No way.</td></tr>\n<tr><td>la chamba</td><td>work, a job</td></tr>\n</table></div>\\`,\n\"reading\": \\`\n<p>Reading questions test whether you caught what a text means, which is often more than what it says.</p>\n<h3>three habits</h3>\n<ul><li>Look for time words like al principio, ahora and hoy. They usually signal a change.</li><li>Watch incluso and hasta (even). They flag something surprising.</li><li>Notice phrases that tell you how to read something: equivale a, lo cual, viniendo de \\xe9l.</li></ul>\n<h3>daily practice</h3>\n<p>Read one short news story a day. Then say what happened in a single sentence in Spanish.</p>\\`,\n\"subj-past\": \\`\n<h3>how to make it</h3>\n<p>Take the ellos form of the preterite, drop -ron, add -ra. Ayudaron → ayudara. Fueron → fuera. Tuvieron → tuviera.</p>\n<h3>when it shows up</h3>\n<div class=\"tbl\"><table>\n<tr><td>a trigger in the past</td><td>Me pidi\\xf3 que le ayudara.</td></tr>\n<tr><td>ojal\\xe1 about the past</td><td>Ojal\\xe1 hubieras venido.</td></tr>\n<tr><td>ni que</td><td>Ni que fuera millonario.</td></tr>\n<tr><td>si clauses</td><td>Si tuviera tiempo, ir\\xeda.</td></tr>\n</table></div>\n<p>Hubiera + participle is the past perfect version: Ojal\\xe1 hubieras visto su cara.</p>\\`,\n\"connectors\": \\`\n<div class=\"tbl\"><table>\n<tr><th>job</th><th>connectors</th></tr>\n<tr><td>result</td><td>por lo tanto, as\\xed que, entonces</td></tr>\n<tr><td>contrast</td><td>sin embargo, en cambio, aunque</td></tr>\n<tr><td>condition</td><td>con tal de que, siempre y cuando, a menos que</td></tr>\n</table></div>\n<h3>always subjunctive</h3>\n<p>Con tal de que, siempre y cuando and a menos que always take the subjunctive. Te lo presto con tal de que me lo devuelvas.</p>\n<h3>aunque has two meanings</h3>\n<p>With the indicative it means \\\\\"even though\\\\\": Aunque llueve, salimos. With the subjunctive it means \\\\\"even if\\\\\": Aunque llueva, iremos.</p>\\`,\n\"formal\": \\`\n<h3>register</h3>\n<p>Match your Spanish to the situation. Formal emails use usted plus set phrases.</p>\n<div class=\"tbl\"><table>\n<tr><th>formal</th><th>casual</th></tr>\n<tr><td>Quedo a la espera de su respuesta.</td><td>Ah\\xed me dices.</td></tr>\n<tr><td>Saludos cordiales.</td><td>\\xc9chame un grito.</td></tr>\n<tr><td>\\xbfPodr\\xeda ayudarme?</td><td>\\xbfMe echas la mano?</td></tr>\n</table></div>\n<h3>the passive voice</h3>\n<p>Ser + participle, which matches the noun: El libro fue escrito por una autora chiapaneca. Las casas fueron construidas en 1950. In everyday speech, se is more common: Se construyeron las casas en 1950.</p>\n<h3>words with a formal meaning</h3>\n<p>Fallo means \\\\\"error\\\\\" day to day but \\\\\"verdict\\\\\" in court. Juicio can mean \\\\\"judgment\\\\\" or \\\\\"trial\\\\\".</p>\\`,\n\"c1-subj\": \\`\n<p>At C1 the subjunctive shows up in places that don't look like the classic triggers. These are the ones that trip up advanced speakers.</p>\n<h3>whoever, wherever, whatever</h3>\n<p>Quienquiera que, dondequiera que and lo que sea que take the subjunctive because the person, place or thing is unknown. Quienquiera que haya hecho esto tendr\\xe1 que dar explicaciones. Dondequiera que vayas, ll\\xe9vate un su\\xe9ter.</p>\n<h3>reacting to a fact</h3>\n<p>Even when something is true, reacting to it takes the subjunctive. Me extra\\xf1a que no haya llegado. Me sorprende que hables tan bien. Qu\\xe9 bueno que est\\xe9s aqu\\xed.</p>\n<h3>the perfect subjunctive</h3>\n<p>Haya + participle covers something that may already have happened. Ojal\\xe1 que hayas descansado. No creo que lo haya visto.</p>\n<h3>ni que + past subjunctive</h3>\n<p>A sarcastic \"it's not like…\". \\xa1Ni que fuera millonario! \\xa1Ni que tuvieras cinco a\\xf1os!</p>\\`,\n\"c1-cond\": \\`\n<p>Advanced speakers don't always use si. Spanish has shorter, more precise ways to set up a condition.</p>\n<h3>de + infinitive</h3>\n<p>De + infinitive replaces a si clause. De haberlo sabido, no habr\\xeda venido (had I known). De ser as\\xed, av\\xedsame (if that's the case).</p>\n<h3>conditions that need the subjunctive</h3>\n<div class=\"tbl\"><table>\n<tr><th>connector</th><th>meaning</th><th>example</th></tr>\n<tr><td>con tal de que</td><td>as long as</td><td>Te lo presto con tal de que me lo devuelvas.</td></tr>\n<tr><td>siempre y cuando</td><td>provided that</td><td>Puedes ir siempre y cuando regreses temprano.</td></tr>\n<tr><td>a no ser que</td><td>unless</td><td>Llegamos a las ocho, a no ser que haya tr\\xe1fico.</td></tr>\n<tr><td>en caso de que</td><td>in case</td><td>Lleva paraguas en caso de que llueva.</td></tr>\n</table></div>\n<h3>mixed if-clauses</h3>\n<p>A past condition with a present result: Si hubiera estudiado medicina, ahora ser\\xeda doctor.</p>\\`,\n\"c1-idioms\": \\`\n<p>At this level the grammar is there. What separates you from a native speaker is idioms. Learn them as whole chunks, never word by word.</p>\n<div class=\"tbl\"><table>\n<tr><td>darle vueltas a algo</td><td>to overthink something</td></tr>\n<tr><td>se me hace que…</td><td>I think… / it seems to me…</td></tr>\n<tr><td>echarle ganas</td><td>to give it your all</td></tr>\n<tr><td>ponerse las pilas</td><td>to get your act together</td></tr>\n<tr><td>hacerse bolas</td><td>to get mixed up</td></tr>\n<tr><td>dar el avi\\xf3n</td><td>to brush someone off</td></tr>\n<tr><td>no tener pelos en la lengua</td><td>to speak bluntly</td></tr>\n<tr><td>estar hasta el gorro</td><td>to be fed up</td></tr>\n</table></div>\n<h3>how to use them</h3>\n<p>Pick two a week. Use each one in conversation until it comes out on its own.</p>\\`,\n\"c1-register\": \\`\n<p>C1 means switching register on purpose. The same idea sounds different in a text to a friend, a work email or a legal document.</p>\n<div class=\"tbl\"><table>\n<tr><th>formal</th><th>neutral</th><th>casual</th></tr>\n<tr><td>Quedo a la espera de su respuesta.</td><td>Espero tu respuesta.</td><td>Ah\\xed me dices.</td></tr>\n<tr><td>Le agradecer\\xeda que me enviara…</td><td>\\xbfMe puedes mandar…?</td><td>P\\xe1same…</td></tr>\n<tr><td>Lamento informarle que…</td><td>Siento decirte que…</td><td>Qu\\xe9 crees…</td></tr>\n</table></div>\n<h3>formal vocabulary</h3>\n<p>Some everyday words take a technical meaning in formal settings. Fallo means verdict in court. Juicio means trial. Recurso means appeal. Plazo means deadline.</p>\n<h3>email openers and closers</h3>\n<ul><li>Estimado licenciado / Estimada doctora</li><li>Por medio de la presente…</li><li>Sin m\\xe1s por el momento, quedo a sus \\xf3rdenes.</li></ul>\\`,\n\"c1-inference\": \\`\n<p>Advanced Spanish is full of things people mean without saying. Catching them is what C1 reading and listening test.</p>\n<h3>signals to watch</h3>\n<ul><li>Viniendo de \\xe9l / de ella: judge the words by who said them.</li><li>Equivale a / viene siendo: it amounts to.</li><li>Dejar mucho que desear: a polite way to say it was bad.</li><li>No estuvo nada mal: understatement for it was good.</li><li>Lo voy a pensar: often a soft no.</li></ul>\n<h3>irony</h3>\n<p>\\xa1Qu\\xe9 puntual! said to someone who's an hour late means the opposite. Tone and context do the work.</p>\\`\n};\nEXTRA = {\n\"present\": {\nconvo:[\n[\"sofi\",\"Hola, \\xbfc\\xf3mo te *llamas*?\",\"Hi, what's your name?\"],\n[\"beto\",\"Me *llamo* Beto. \\xbfY t\\xfa?\",\"My name is Beto. And you?\"],\n[\"sofi\",\"Sofi. \\xbfD\\xf3nde *vives*?\",\"Sofi. Where do you live?\"],\n[\"beto\",\"*Vivo* en Coyoac\\xe1n pero *trabajo* en el centro.\",\"I live in Coyoac\\xe1n but I work downtown.\"],\n[\"sofi\",\"\\xa1Qu\\xe9 padre! Yo *estudio* all\\xe1.\",\"How cool! I study there.\"],\n[\"beto\",\"Oye, \\xbfme *pasas* la salsa?\",\"Hey, can you pass me the salsa?\"]],\ncards:[[\"hablo\",\"I speak\"],[\"comes\",\"you eat\"],[\"vive\",\"she lives\"],[\"trabajamos\",\"we work\"],[\"escriben\",\"they write\"],[\"me llamo\",\"my name is\"]],\nquiz:[\n{q:\"Ellos ___ en Monterrey.\",opts:[\"viven\",\"vive\",\"vivimos\",\"vivo\"],why:\"Ellos takes the -en ending on -ir verbs.\"},\n{q:\"\\xbfT\\xfa ___ caf\\xe9 en la ma\\xf1ana?\",opts:[\"tomas\",\"toma\",\"tomo\",\"toman\"],why:\"T\\xfa takes the -as ending on -ar verbs.\"},\n{q:\"Nosotros ___ tacos los viernes.\",opts:[\"comemos\",\"comen\",\"como\",\"comes\"],why:\"Nosotros takes -emos on -er verbs.\"},\n{q:\"Mi pap\\xe1 ___ en un hospital.\",opts:[\"trabaja\",\"trabajo\",\"trabajas\",\"trabajan\"],why:\"Mi pap\\xe1 is \\xe9l, so -a.\"},\n{q:\"Ella ___ Lupita.\",opts:[\"se llama\",\"me llamo\",\"te llamas\",\"llama\"],why:\"Llamarse is reflexive. For ella it's se llama.\"}]\n},\n\"ser-estar\": {\nconvo:[\n[\"beto\",\"\\xbfDe d\\xf3nde *eres*?\",\"Where are you from?\"],\n[\"sofi\",\"*Soy* de Puebla pero ahorita *estoy* en la Ciudad de M\\xe9xico.\",\"I'm from Puebla but right now I'm in Mexico City.\"],\n[\"beto\",\"\\xbfY a qu\\xe9 te dedicas?\",\"And what do you do?\"],\n[\"sofi\",\"*Soy* enfermera. Hoy *estoy* muy cansada.\",\"I'm a nurse. Today I'm really tired.\"],\n[\"beto\",\"\\xbfD\\xf3nde *est\\xe1* el ba\\xf1o?\",\"Where's the bathroom?\"],\n[\"sofi\",\"*Est\\xe1* al fondo. La fiesta *es* en el jard\\xedn, por cierto.\",\"It's in the back. The party is in the garden, by the way.\"]],\ncards:[[\"soy de Monterrey\",\"I'm from Monterrey\"],[\"estoy cansado\",\"I'm tired\"],[\"es maestra\",\"she's a teacher\"],[\"est\\xe1 en casa\",\"he's at home\"],[\"son las dos\",\"it's two o'clock\"],[\"la sopa est\\xe1 fr\\xeda\",\"the soup is cold\"]],\nquiz:[\n{q:\"Mi hermano ___ doctor.\",opts:[\"es\",\"est\\xe1\",\"hay\",\"tiene\"],why:\"Professions use ser.\"},\n{q:\"\\xbfC\\xf3mo ___ tu mam\\xe1? — Bien, gracias.\",opts:[\"est\\xe1\",\"es\",\"son\",\"hay\"],why:\"How someone is doing right now uses estar.\"},\n{q:\"La farmacia ___ en la esquina.\",opts:[\"est\\xe1\",\"es\",\"son\",\"hay\"],why:\"The location of a specific place uses estar.\"},\n{q:\"___ la una y cuarto.\",opts:[\"Es\",\"Son\",\"Est\\xe1\",\"Hay\"],why:\"One o'clock uses es. Every other hour uses son.\"},\n{q:\"Uy, mi caf\\xe9 ya ___ fr\\xedo.\",opts:[\"est\\xe1\",\"es\",\"son\",\"estoy\"],why:\"It cooled down, which is a change of state, so estar.\"}]\n},\n\"gustar\": {\nconvo:[\n[\"sofi\",\"\\xbfTe *gusta* el pozole?\",\"Do you like pozole?\"],\n[\"beto\",\"S\\xed, me *encanta*. Pero no me *gustan* los r\\xe1banos.\",\"Yes, I love it. But I don't like radishes.\"],\n[\"sofi\",\"A m\\xed tampoco. \\xbfY a tu hermana?\",\"Me neither. And your sister?\"],\n[\"beto\",\"A ella le *gustan* las tostadas.\",\"She likes tostadas.\"],\n[\"sofi\",\"A nosotros nos *gusta* cocinar los domingos.\",\"We like to cook on Sundays.\"]],\ncards:[[\"me gusta el caf\\xe9\",\"I like coffee\"],[\"me gustan los tacos\",\"I like tacos\"],[\"\\xbfte gusta bailar?\",\"do you like to dance?\"],[\"le encantan las playas\",\"she loves beaches\"],[\"nos gusta cocinar\",\"we like to cook\"],[\"les molesta el ruido\",\"noise bothers them\"]],\nquiz:[\n{q:\"Me ___ las pel\\xedculas de terror.\",opts:[\"gustan\",\"gusta\",\"gusto\",\"gustas\"],why:\"Las pel\\xedculas is plural, so gustan.\"},\n{q:\"\\xbfA ti te ___ cantar?\",opts:[\"gusta\",\"gustan\",\"gustas\",\"gusto\"],why:\"Actions (infinitives) always take gusta.\"},\n{q:\"A mis pap\\xe1s ___ gusta el mariachi.\",opts:[\"les\",\"le\",\"los\",\"nos\"],why:\"Mis pap\\xe1s is they, so les.\"},\n{q:\"A Sofi le ___ los perros.\",opts:[\"encantan\",\"encanta\",\"encantas\",\"encanto\"],why:\"Los perros is plural, so encantan.\"},\n{q:\"Nos ___ mucho el ruido.\",opts:[\"molesta\",\"molestan\",\"molestamos\",\"molesto\"],why:\"El ruido is singular, so molesta.\"}]\n},\n\"questions\": {\nconvo:[\n[\"beto\",\"Disculpe, \\xbf*d\\xf3nde* est\\xe1 el metro?\",\"Excuse me, where's the metro?\"],\n[\"se\\xf1ora\",\"All\\xe1, a dos cuadras.\",\"Over there, two blocks away.\"],\n[\"beto\",\"\\xbf*Cu\\xe1nto* cuesta el boleto?\",\"How much is the ticket?\"],\n[\"se\\xf1ora\",\"Cinco pesos. \\xbf*De d\\xf3nde* es usted?\",\"Five pesos. Where are you from?\"],\n[\"beto\",\"De Texas, pero vivo aqu\\xed. \\xbf*Cu\\xe1l* l\\xednea va a Xochimilco?\",\"Texas, but I live here. Which line goes to Xochimilco?\"],\n[\"se\\xf1ora\",\"La azul, y luego el tren ligero. \\xbf*Cu\\xe1ndo* lleg\\xf3 a M\\xe9xico?\",\"The blue one, then the light rail. When did you get to Mexico?\"]],\ncards:[[\"\\xbfqu\\xe9?\",\"what?\"],[\"\\xbfcu\\xe1l?\",\"which?\"],[\"\\xbfqui\\xe9n?\",\"who?\"],[\"\\xbfd\\xf3nde?\",\"where?\"],[\"\\xbfcu\\xe1ndo?\",\"when?\"],[\"\\xbfcu\\xe1ntos?\",\"how many?\"]],\nquiz:[\n{q:\"\\xbf___ hermanos tienes?\",opts:[\"Cu\\xe1ntos\",\"Cu\\xe1nto\",\"Cu\\xe1l\",\"Qu\\xe9\"],why:\"Hermanos is masculine plural, so cu\\xe1ntos.\"},\n{q:\"\\xbf___ es tu n\\xfamero de tel\\xe9fono?\",opts:[\"Cu\\xe1l\",\"Qu\\xe9\",\"C\\xf3mo\",\"Qui\\xe9n\"],why:\"Asking for a specific piece of info like a number uses cu\\xe1l.\"},\n{q:\"\\xbf___ es ese se\\xf1or?\",opts:[\"Qui\\xe9n\",\"Qu\\xe9\",\"Cu\\xe1l\",\"D\\xf3nde\"],why:\"Asking about a person uses qui\\xe9n.\"},\n{q:\"\\xbf___ vas a la playa? — En diciembre.\",opts:[\"Cu\\xe1ndo\",\"D\\xf3nde\",\"C\\xf3mo\",\"Qu\\xe9\"],why:\"The answer is a time, so cu\\xe1ndo.\"},\n{q:\"\\xbf___ agua quieres?\",opts:[\"Cu\\xe1nta\",\"Cu\\xe1nto\",\"Cu\\xe1ntas\",\"Cu\\xe1ntos\"],why:\"Agua is feminine, so cu\\xe1nta.\"}]\n},\n\"vocab\": {\nconvo:[\n[\"abuela\",\"Mijo, \\xbftienes *hambre*?\",\"Honey, are you hungry?\"],\n[\"beto\",\"No, abuela, pero tengo mucha *sed*.\",\"No, grandma, but I'm really thirsty.\"],\n[\"abuela\",\"Tu *prima* trajo agua de jamaica.\",\"Your cousin brought jamaica water.\"],\n[\"beto\",\"\\xbfY mi *t\\xedo*?\",\"And my uncle?\"],\n[\"abuela\",\"Ya se fue. Ten\\xeda *prisa*.\",\"He already left. He was in a hurry.\"],\n[\"beto\",\"Ay, y yo tengo *sue\\xf1o*.\",\"Ugh. And I'm sleepy.\"]],\ncards:[[\"tener hambre\",\"to be hungry\"],[\"tener sed\",\"to be thirsty\"],[\"tener fr\\xedo\",\"to be cold\"],[\"tener prisa\",\"to be in a hurry\"],[\"la suegra\",\"mother-in-law\"],[\"el sobrino\",\"nephew\"]],\nquiz:[\n{q:\"Abre la ventana, tengo mucho ___.\",opts:[\"calor\",\"sed\",\"hambre\",\"raz\\xf3n\"],why:\"Opening a window fixes being hot: tener calor.\"},\n{q:\"La hija de mi hermano es mi ___.\",opts:[\"sobrina\",\"prima\",\"t\\xeda\",\"nieta\"],why:\"Your sibling's daughter is your sobrina.\"},\n{q:\"Mi abuela ___ 80 a\\xf1os.\",opts:[\"tiene\",\"es\",\"est\\xe1\",\"hay\"],why:\"Age uses tener.\"},\n{q:\"—La tienda cierra a las 9, no a las 10. —Tienes ___, me equivoqu\\xe9.\",opts:[\"raz\\xf3n\",\"prisa\",\"miedo\",\"sue\\xf1o\"],why:\"Tener raz\\xf3n means to be right.\"},\n{q:\"El pap\\xe1 de mi esposa es mi ___.\",opts:[\"suegro\",\"cu\\xf1ado\",\"t\\xedo\",\"abuelo\"],why:\"Your spouse's dad is your suegro.\"}]\n},\n\"past\": {\nconvo:[\n[\"sofi\",\"\\xbfQu\\xe9 *hiciste* el fin de semana?\",\"What did you do this weekend?\"],\n[\"beto\",\"*Fui* a Oaxaca con mi familia.\",\"I went to Oaxaca with my family.\"],\n[\"sofi\",\"\\xa1Qu\\xe9 padre! \\xbfC\\xf3mo *estuvo*?\",\"How cool! How was it?\"],\n[\"beto\",\"Incre\\xedble. *Hac\\xeda* mucho calor pero *comimos* muy rico.\",\"Amazing. It was really hot but we ate really well.\"],\n[\"sofi\",\"Cuando *era* ni\\xf1a, *\\xedbamos* cada verano.\",\"When I was a kid, we used to go every summer.\"],\n[\"beto\",\"Cuando llegamos, mi hermano ya *hab\\xeda reservado* un tour.\",\"When we got there, my brother had already booked a tour.\"]],\ncards:[[\"fui\",\"I went\"],[\"comimos\",\"we ate\"],[\"jugaba\",\"I used to play\"],[\"era ni\\xf1o\",\"I was a kid\"],[\"hab\\xeda empezado\",\"it had started\"],[\"\\xbfya viste…?\",\"have you seen…?\"]],\nquiz:[\n{q:\"Ayer ___ tres horas.\",opts:[\"estudi\\xe9\",\"estudiaba\",\"estudio\",\"estudiar\\xe9\"],why:\"A finished action yesterday takes the preterite.\"},\n{q:\"De ni\\xf1a, siempre ___ con mis primas.\",opts:[\"jugaba\",\"jugu\\xe9\",\"juego\",\"jugar\\xe9\"],why:\"Habits in the past take the imperfect.\"},\n{q:\"\\xbfYa ___ el pastel? — S\\xed, est\\xe1 delicioso.\",opts:[\"probaste\",\"probabas\",\"pruebas\",\"probar\\xe1s\"],why:\"Ya + preterite asks if it already happened.\"},\n{q:\"___ lloviendo cuando sal\\xed de la casa.\",opts:[\"Estaba\",\"Estuvo\",\"Est\\xe1\",\"Estar\\xe9\"],why:\"The rain is background, so the imperfect.\"},\n{q:\"Cuando llegu\\xe9, ya se ___ ido.\",opts:[\"hab\\xedan\",\"han\",\"hayan\",\"habr\\xe1n\"],why:\"They left before I got there, so hab\\xeda + participle.\"}]\n},\n\"por-para\": {\nconvo:[\n[\"beto\",\"\\xbf*Para* qui\\xe9n es ese regalo?\",\"Who's that gift for?\"],\n[\"sofi\",\"*Para* mi mam\\xe1. Lo compr\\xe9 *por* 300 pesos.\",\"For my mom. I bought it for 300 pesos.\"],\n[\"beto\",\"\\xbfY cu\\xe1ndo se lo das?\",\"And when are you giving it to her?\"],\n[\"sofi\",\"Salgo *para* Puebla ma\\xf1ana. Voy a pasar *por* el centro.\",\"I leave for Puebla tomorrow. I'm going through downtown.\"],\n[\"beto\",\"Gracias *por* el avent\\xf3n la semana pasada, por cierto.\",\"Thanks for the ride last week, by the way.\"]],\ncards:[[\"para ti\",\"for you\"],[\"gracias por todo\",\"thanks for everything\"],[\"por 200 pesos\",\"for 200 pesos\"],[\"para el lunes\",\"by Monday\"],[\"por el parque\",\"through the park\"],[\"para aprender\",\"in order to learn\"]],\nquiz:[\n{q:\"Estudio espa\\xf1ol ___ hablar con mi abuela.\",opts:[\"para\",\"por\",\"a\",\"de\"],why:\"Purpose (in order to) uses para.\"},\n{q:\"Gracias ___ tu ayuda.\",opts:[\"por\",\"para\",\"a\",\"con\"],why:\"Thanks for a reason uses por.\"},\n{q:\"Caminamos ___ la playa toda la tarde.\",opts:[\"por\",\"para\",\"a\",\"de\"],why:\"Moving along or through a place uses por.\"},\n{q:\"La tarea es ___ ma\\xf1ana.\",opts:[\"para\",\"por\",\"a\",\"en\"],why:\"Deadlines use para.\"},\n{q:\"Cambi\\xe9 mi bici ___ una patineta.\",opts:[\"por\",\"para\",\"a\",\"de\"],why:\"Exchanges use por.\"}]\n},\n\"pronouns\": {\nconvo:[\n[\"sofi\",\"\\xbfViste a Diego?\",\"Did you see Diego?\"],\n[\"beto\",\"S\\xed, *lo* vi en la clase.\",\"Yes, I saw him in class.\"],\n[\"sofi\",\"\\xbfY *le* diste el libro?\",\"And did you give him the book?\"],\n[\"beto\",\"S\\xed, *se lo* di ayer.\",\"Yes, I gave it to him yesterday.\"],\n[\"sofi\",\"\\xbfY las llaves?\",\"And the keys?\"],\n[\"beto\",\"Ay, no. Voy a buscar*las* ahorita.\",\"Oh no. I'm going to look for them right now.\"]],\ncards:[[\"lo conozco\",\"I know him\"],[\"la veo\",\"I see her\"],[\"le escribo\",\"I write to him / her\"],[\"se lo di\",\"I gave it to him\"],[\"d\\xe1melo\",\"give it to me\"],[\"voy a comprarlo\",\"I'm going to buy it\"]],\nquiz:[\n{q:\"\\xbfTienes la llave? — S\\xed, ___ tengo.\",opts:[\"la\",\"lo\",\"le\",\"las\"],why:\"La llave is feminine singular, so la.\"},\n{q:\"\\xbfCompraste los boletos? — S\\xed, ___ compr\\xe9.\",opts:[\"los\",\"las\",\"les\",\"lo\"],why:\"Los boletos is masculine plural, so los.\"},\n{q:\"___ mand\\xe9 un mensaje a mi mam\\xe1.\",opts:[\"Le\",\"La\",\"Lo\",\"Se\"],why:\"To whom = indirect object, so le.\"},\n{q:\"\\xbfLe diste la carta a Pedro? — S\\xed, ___ di.\",opts:[\"se la\",\"le la\",\"se lo\",\"la le\"],why:\"Le turns into se before la. La carta is feminine.\"},\n{q:\"\\xbfY la camisa? Quiero ___.\",opts:[\"comprarla\",\"comprarlo\",\"la comprar\",\"comprarle\"],why:\"The pronoun sticks to the infinitive. Camisa is feminine.\"}]\n},\n\"phrases\": {\nconvo:[\n[\"sofi\",\"\\xbfQu\\xe9 *est\\xe1s haciendo*?\",\"What are you doing?\"],\n[\"beto\",\"*Estoy viendo* una serie en espa\\xf1ol.\",\"I'm watching a show in Spanish.\"],\n[\"sofi\",\"\\xbfCu\\xe1nto tiempo *llevas estudiando*?\",\"How long have you been studying?\"],\n[\"beto\",\"*Llevo* un a\\xf1o *estudiando*.\",\"I've been studying for a year.\"],\n[\"sofi\",\"\\xbfY qu\\xe9 *vas a hacer* ma\\xf1ana?\",\"And what are you going to do tomorrow?\"],\n[\"beto\",\"*Voy a ir* al cine con mis primos.\",\"I'm going to go to the movies with my cousins.\"]],\ncards:[[\"voy a comer\",\"I'm going to eat\"],[\"va a llover\",\"it's going to rain\"],[\"estoy hablando\",\"I'm talking\"],[\"est\\xe1n durmiendo\",\"they're sleeping\"],[\"llevo dos a\\xf1os aqu\\xed\",\"I've been here two years\"],[\"vamos a ver\",\"we'll see\"]],\nquiz:[\n{q:\"Ma\\xf1ana ___ a visitar a mi abuela.\",opts:[\"voy\",\"estoy\",\"llevo\",\"soy\"],why:\"Ir a + infinitive talks about plans.\"},\n{q:\"Shh, el beb\\xe9 est\\xe1 ___.\",opts:[\"durmiendo\",\"dormir\",\"duerme\",\"durmi\\xf3\"],why:\"Estar + gerund for something happening now.\"},\n{q:\"___ cinco a\\xf1os viviendo en Guadalajara.\",opts:[\"Llevo\",\"Voy\",\"Estoy\",\"Soy\"],why:\"Llevar + time + gerund says how long.\"},\n{q:\"\\xbfQu\\xe9 ___ haciendo ahorita?\",opts:[\"est\\xe1s\",\"vas\",\"llevas\",\"eres\"],why:\"What are you doing right now: est\\xe1s haciendo.\"},\n{q:\"Ellos van a ___ la pel\\xedcula.\",opts:[\"ver\",\"viendo\",\"visto\",\"ven\"],why:\"After ir a comes the infinitive.\"}]\n},\n\"comparing\": {\nconvo:[\n[\"beto\",\"Este taco es *m\\xe1s rico que* el otro.\",\"This taco is tastier than the other one.\"],\n[\"sofi\",\"S\\xed, pero es *m\\xe1s caro*.\",\"Yes, but it's more expensive.\"],\n[\"beto\",\"El de all\\xe1 es *tan bueno como* este.\",\"The one over there is as good as this one.\"],\n[\"sofi\",\"No me gusta la cebolla.\",\"I don't like onion.\"],\n[\"beto\",\"A m\\xed *tampoco*. Pero me encanta el cilantro.\",\"Me neither. But I love cilantro.\"],\n[\"sofi\",\"A m\\xed *tambi\\xe9n*.\",\"Me too.\"]],\ncards:[[\"m\\xe1s alto que\",\"taller than\"],[\"menos caro que\",\"cheaper than\"],[\"tan bueno como\",\"as good as\"],[\"mejor / peor\",\"better / worse\"],[\"a m\\xed tambi\\xe9n\",\"me too\"],[\"a m\\xed tampoco\",\"me neither\"]],\nquiz:[\n{q:\"Mi hermana es ___ alta que yo.\",opts:[\"m\\xe1s\",\"tan\",\"muy\",\"mucho\"],why:\"More … than: m\\xe1s … que.\"},\n{q:\"Este restaurante es ___ que el otro.\",opts:[\"mejor\",\"m\\xe1s mejor\",\"bueno\",\"buen\\xedsimo\"],why:\"Better is mejor. Never m\\xe1s mejor.\"},\n{q:\"Pedro es tan simp\\xe1tico ___ su hermano.\",opts:[\"como\",\"que\",\"de\",\"a\"],why:\"Equal comparisons: tan … como.\"},\n{q:\"— Me encanta el mole. — A m\\xed ___.\",opts:[\"tambi\\xe9n\",\"tampoco\",\"ni\",\"nunca\"],why:\"Agreeing with a positive: tambi\\xe9n.\"},\n{q:\"— No tengo hambre. — Yo ___.\",opts:[\"tampoco\",\"tambi\\xe9n\",\"nada\",\"ya\"],why:\"Agreeing with a negative: tampoco.\"}]\n},\n\"subj\": {\nconvo:[\n[\"sofi\",\"Ma\\xf1ana es mi entrevista.\",\"Tomorrow is my interview.\"],\n[\"beto\",\"\\xa1Espero que te *vaya* bien!\",\"I hope it goes well for you!\"],\n[\"sofi\",\"Gracias. No creo que me *den* el trabajo pero voy a intentarlo.\",\"Thanks. I don't think they'll give me the job but I'm going to try.\"],\n[\"beto\",\"Cuando *salgas*, ll\\xe1mame.\",\"When you get out, call me.\"],\n[\"sofi\",\"Ojal\\xe1 que no *haya* tr\\xe1fico.\",\"Hopefully there's no traffic.\"],\n[\"beto\",\"Oye, busco a alguien que me *lleve* al aeropuerto el viernes…\",\"Hey, I'm looking for someone to take me to the airport on Friday…\"]],\ncards:[[\"espero que te vaya bien\",\"I hope it goes well\"],[\"no creo que tenga raz\\xf3n\",\"I don't think he's right\"],[\"cuando llegues\",\"when you arrive\"],[\"ojal\\xe1 que llueva\",\"hopefully it rains\"],[\"busco a alguien que sepa\",\"I'm looking for someone who knows\"],[\"me alegra que est\\xe9s aqu\\xed\",\"I'm glad you're here\"]],\nquiz:[\n{q:\"Quiero que t\\xfa ___ a la fiesta.\",opts:[\"vengas\",\"vienes\",\"vendr\\xe1s\",\"viniste\"],why:\"Querer que + subjunctive.\"},\n{q:\"Ojal\\xe1 que ma\\xf1ana no ___.\",opts:[\"llueva\",\"llueve\",\"llover\\xe1\",\"llovi\\xf3\"],why:\"Ojal\\xe1 always takes the subjunctive.\"},\n{q:\"Dudo que \\xe9l ___ la verdad.\",opts:[\"sepa\",\"sabe\",\"sabr\\xe1\",\"supo\"],why:\"Doubt triggers the subjunctive.\"},\n{q:\"Cuando ___ dinero, voy a viajar.\",opts:[\"tenga\",\"tengo\",\"tendr\\xe9\",\"tuve\"],why:\"Cuando about the future takes the subjunctive.\"},\n{q:\"Me alegra que ___ aqu\\xed.\",opts:[\"est\\xe9s\",\"est\\xe1s\",\"estar\\xe1s\",\"estuviste\"],why:\"Feelings about something trigger the subjunctive.\"}]\n},\n\"si\": {\nconvo:[\n[\"beto\",\"Si *tuviera* m\\xe1s tiempo, *aprender\\xeda* n\\xe1huatl.\",\"If I had more time, I'd learn Nahuatl.\"],\n[\"sofi\",\"Yo tambi\\xe9n. Si *gano* la loter\\xeda, *voy* a viajar por todo M\\xe9xico.\",\"Me too. If I win the lottery, I'm going to travel all over Mexico.\"],\n[\"beto\",\"Ayer perd\\xed el cami\\xf3n.\",\"Yesterday I missed the bus.\"],\n[\"sofi\",\"Si *hubieras salido* antes, lo *habr\\xedas alcanzado*.\",\"If you had left earlier, you would have caught it.\"],\n[\"beto\",\"Ya s\\xe9. *De haberlo sabido*, me *habr\\xeda levantado* temprano.\",\"I know. Had I known, I would have gotten up early.\"]],\ncards:[[\"si llueve, no voy\",\"if it rains, I'm not going\"],[\"si tuviera dinero, viajar\\xeda\",\"if I had money, I'd travel\"],[\"si me hubieras dicho\",\"if you had told me\"],[\"no me habr\\xeda enojado\",\"I wouldn't have gotten mad\"],[\"de haberlo sabido\",\"had I known\"],[\"si pudiera, lo har\\xeda\",\"if I could, I'd do it\"]],\nquiz:[\n{q:\"Si ___ tiempo, te ayudo.\",opts:[\"tengo\",\"tuviera\",\"tendr\\xeda\",\"hubiera tenido\"],why:\"Likely situation: si + present.\"},\n{q:\"Si yo ___ rico, comprar\\xeda una casa en la playa.\",opts:[\"fuera\",\"soy\",\"ser\\xeda\",\"sea\"],why:\"Imagined situation: si + past subjunctive.\"},\n{q:\"Si me ___ invitado, habr\\xeda ido.\",opts:[\"hubieras\",\"habr\\xedas\",\"hab\\xedas\",\"hayas\"],why:\"Didn't happen: si + hubiera + participle.\"},\n{q:\"Si estudias, ___ el examen.\",opts:[\"pasar\\xe1s\",\"pasar\\xedas\",\"pasaras\",\"hubieras pasado\"],why:\"Si + present pairs with the future.\"},\n{q:\"___ sabido, no habr\\xeda venido.\",opts:[\"De haberlo\",\"Si lo\",\"Habiendo\",\"Haberlo de\"],why:\"De + haber + participle means had I known.\"}]\n},\n\"mexican\": {\nconvo:[\n[\"beto\",\"\\xbf*Qu\\xe9 onda*? \\xbfC\\xf3mo te fue en la *chamba*?\",\"What's up? How did work go?\"],\n[\"sofi\",\"*Bien padre*. Me dieron un aumento.\",\"Super good. They gave me a raise.\"],\n[\"beto\",\"\\xa1*No manches*! Me *qued\\xe9 de a seis*.\",\"No way! I'm stunned.\"],\n[\"sofi\",\"*Se me hace que* me lo merec\\xeda.\",\"I think I deserved it.\"],\n[\"beto\",\"Oye, \\xbfme *echas la mano* con la mudanza el s\\xe1bado?\",\"Hey, can you help me with the move on Saturday?\"],\n[\"sofi\",\"S\\xed, *ahorita* te digo a qu\\xe9 hora.\",\"Sure, I'll tell you what time in a bit.\"]],\ncards:[[\"\\xbfqu\\xe9 onda?\",\"what's up?\"],[\"la chamba\",\"work, a job\"],[\"\\xa1qu\\xe9 padre!\",\"how cool!\"],[\"no manches\",\"no way\"],[\"\\xbfme echas la mano?\",\"can you help me out?\"],[\"se me hace que…\",\"I think…\"]],\nquiz:[\n{q:\"\\\\\"\\xbfMe echas la mano?\\\\\" means…\",opts:[\"Can you help me?\",\"Can you throw your hand?\",\"Want to shake hands?\",\"Can you lend me money?\"],why:\"Echar la mano is to lend a hand.\"},\n{q:\"\\\\\"No manches\\\\\" means…\",opts:[\"No way!\",\"Don't stain it\",\"Don't go\",\"Not bad\"],why:\"No manches is a Mexican way to say no way.\"},\n{q:\"\\\\\"La chamba\\\\\" is…\",opts:[\"work\",\"a party\",\"a car\",\"a friend\"],why:\"Chamba is slang for work or a job.\"},\n{q:\"\\\\\"\\xa1Qu\\xe9 padre!\\\\\" means…\",opts:[\"How cool!\",\"What a dad!\",\"How sad!\",\"How expensive!\"],why:\"Padre means cool in Mexico.\"},\n{q:\"Someone says \\\\\"ahorita voy.\\\\\" When will they come?\",opts:[\"In a bit, maybe\",\"This exact second\",\"Tomorrow morning\",\"Next week\"],why:\"Ahorita is flexible. It can mean soon or not for a while.\"}]\n},\n\"reading\": {\nconvo:[\n[\"sofi\",\"\\xbfVas a la fiesta de Ana?\",\"Are you going to Ana's party?\"],\n[\"beto\",\"*Lo voy a pensar*.\",\"I'll think about it.\"],\n[\"sofi\",\"Aj\\xe1… *o sea* que no.\",\"Uh huh… so that means no.\"],\n[\"beto\",\"*Al principio* s\\xed quer\\xeda ir pero *ahora* tengo mucho trabajo.\",\"At first I did want to go but now I have a lot of work.\"],\n[\"sofi\",\"*Hasta* Lupita va a ir, y ella nunca sale.\",\"Even Lupita is going. She never goes out.\"],\n[\"beto\",\"Bueno, si *hasta* Lupita va… ah\\xed nos vemos.\",\"Well, if even Lupita's going… see you there.\"]],\ncards:[[\"al principio\",\"at first\"],[\"ahora\",\"now\"],[\"incluso\",\"even\"],[\"hasta\",\"even (or until)\"],[\"o sea\",\"meaning, so\"],[\"lo cual\",\"which\"]],\nquiz:[\n{passage:\"Carlos siempre llegaba tarde a la oficina. Desde que se mud\\xf3 cerca, es el primero en llegar.\",q:\"\\xbfQu\\xe9 cambi\\xf3?\",opts:[\"Ahora llega temprano\",\"Sigue llegando tarde\",\"Cambi\\xf3 de trabajo\",\"Ya no va a la oficina\"],why:\"Es el primero en llegar: he's the first one there now.\"},\n{passage:\"Incluso mi abuela, que odia la tecnolog\\xeda, ya usa WhatsApp.\",q:\"\\xbfQu\\xe9 piensa la abuela de la tecnolog\\xeda?\",opts:[\"No le gusta\",\"Le encanta\",\"La usa para trabajar\",\"No la conoce\"],why:\"Odia la tecnolog\\xeda: she hates it. Incluso flags the surprise.\"},\n{passage:\"Dijo que me llamar\\xeda. Eso fue hace tres semanas.\",q:\"\\xbfQu\\xe9 da a entender?\",opts:[\"No ha llamado\",\"Llam\\xf3 ayer\",\"Va a llamar hoy\",\"Llam\\xf3 tres veces\"],why:\"Three weeks have passed since the promise, so no call.\"},\n{passage:\"La comida estaba rica, aunque el servicio dej\\xf3 mucho que desear.\",q:\"\\xbfC\\xf3mo fue el servicio?\",opts:[\"Malo\",\"Excelente\",\"R\\xe1pido\",\"Gratis\"],why:\"Dejar mucho que desear means it was lacking.\"},\n{passage:\"Al principio no entend\\xeda nada en las reuniones familiares. Hoy hasta cuento chistes.\",q:\"\\xbfC\\xf3mo va su espa\\xf1ol?\",opts:[\"Mejor\\xf3 mucho\",\"Sigue igual\",\"Empeor\\xf3\",\"Ya no estudia\"],why:\"Al principio vs. hoy shows the change. Hasta flags how far it went.\"}]\n},\n\"subj-past\": {\nconvo:[\n[\"sofi\",\"Mi mam\\xe1 me pidi\\xf3 que la *ayudara* con la comida.\",\"My mom asked me to help her with the food.\"],\n[\"beto\",\"\\xbfY fuiste?\",\"And did you go?\"],\n[\"sofi\",\"Claro. Quer\\xeda que *llegara* temprano.\",\"Of course. She wanted me to get there early.\"],\n[\"beto\",\"Ojal\\xe1 me *hubieras invitado*.\",\"I wish you had invited me.\"],\n[\"sofi\",\"\\xa1Ni que *fueras* de la familia!\",\"As if you were family!\"],\n[\"beto\",\"Si *pudiera*, ser\\xeda tu primo.\",\"If I could, I'd be your cousin.\"]],\ncards:[[\"me pidi\\xf3 que le ayudara\",\"he asked me to help him\"],[\"quer\\xeda que fueras\",\"she wanted you to go\"],[\"ojal\\xe1 hubieras venido\",\"I wish you had come\"],[\"ni que fuera millonario\",\"it's not like I'm a millionaire\"],[\"si pudiera\",\"if I could\"],[\"como si nada\",\"as if nothing happened\"]],\nquiz:[\n{q:\"Te dije que ___ temprano, \\xa1y llegaste tarde!\",opts:[\"llegaras\",\"llegas\",\"llegar\\xe1s\",\"llegando\"],why:\"A request in the past takes the past subjunctive.\"},\n{q:\"Mi jefe quer\\xeda que yo ___ el s\\xe1bado.\",opts:[\"trabajara\",\"trabajo\",\"trabaj\\xe9\",\"trabajar\\xe9\"],why:\"Quer\\xeda que + past subjunctive.\"},\n{q:\"Ojal\\xe1 ___ venido a la boda.\",opts:[\"hubieras\",\"habr\\xedas\",\"has\",\"hab\\xedas\"],why:\"A wish about the past: ojal\\xe1 + hubiera.\"},\n{q:\"Habla como si ___ el jefe.\",opts:[\"fuera\",\"es\",\"sea\",\"ser\\xe1\"],why:\"Como si always takes the past subjunctive.\"},\n{q:\"Ni que ___ tan dif\\xedcil.\",opts:[\"fuera\",\"es\",\"sea\",\"ser\\xe1\"],why:\"Ni que always takes the past subjunctive.\"}]\n},\n\"connectors\": {\nconvo:[\n[\"beto\",\"Llovi\\xf3 toda la ma\\xf1ana; *por lo tanto*, cancelaron el partido.\",\"It rained all morning; therefore, they canceled the game.\"],\n[\"sofi\",\"Qu\\xe9 mal. *Sin embargo*, el concierto sigue en pie.\",\"That's too bad. However, the concert is still on.\"],\n[\"beto\",\"*Aunque* llueva, voy a ir.\",\"Even if it rains, I'm going.\"],\n[\"sofi\",\"Te presto mi paraguas *con tal de que* me lo devuelvas.\",\"I'll lend you my umbrella as long as you give it back.\"],\n[\"beto\",\"Trato hecho. *A menos que* lo pierda…\",\"Deal. Unless I lose it…\"]],\ncards:[[\"por lo tanto\",\"therefore\"],[\"sin embargo\",\"however\"],[\"aunque\",\"even though / even if\"],[\"con tal de que\",\"as long as\"],[\"a menos que\",\"unless\"],[\"en cambio\",\"on the other hand\"]],\nquiz:[\n{q:\"Estaba cansado; ___, se fue a dormir temprano.\",opts:[\"por lo tanto\",\"sin embargo\",\"aunque\",\"a menos que\"],why:\"A result: por lo tanto.\"},\n{q:\"No vamos a salir ___ deje de llover.\",opts:[\"a menos que\",\"por lo tanto\",\"sin embargo\",\"ya que\"],why:\"Unless: a menos que, with the subjunctive.\"},\n{q:\"___ estudi\\xf3 mucho, no pas\\xf3 el examen.\",opts:[\"Aunque\",\"Por lo tanto\",\"Con tal de que\",\"A menos que\"],why:\"Contrast with a fact: aunque + indicative.\"},\n{q:\"Te lo cuento con tal de que no se lo ___ a nadie.\",opts:[\"digas\",\"dices\",\"dir\\xe1s\",\"dijiste\"],why:\"Con tal de que always takes the subjunctive.\"},\n{q:\"Mi hermano es muy serio; mi hermana, ___, es muy chistosa.\",opts:[\"en cambio\",\"por lo tanto\",\"con tal de que\",\"a menos que\"],why:\"Contrast between two people: en cambio.\"}]\n},\n\"formal\": {\nconvo:[\n[\"sofi\",\"Buenos d\\xedas, licenciado. \\xbf*Podr\\xeda* ayudarme con un tr\\xe1mite?\",\"Good morning, sir. Could you help me with some paperwork?\"],\n[\"licenciado\",\"Con gusto. \\xbfEn qu\\xe9 le puedo servir?\",\"Gladly. How can I help you?\"],\n[\"sofi\",\"Necesito una constancia de estudios.\",\"I need a proof of enrollment.\"],\n[\"licenciado\",\"Las constancias *son emitidas* los lunes.\",\"Certificates are issued on Mondays.\"],\n[\"sofi\",\"Perfecto. *Quedo a la espera* de su correo.\",\"Perfect. I'll look out for your email.\"],\n[\"licenciado\",\"*Saludos cordiales*.\",\"Kind regards.\"]],\ncards:[[\"\\xbfpodr\\xeda…?\",\"could you…?\"],[\"quedo a la espera\",\"I look forward to hearing from you\"],[\"saludos cordiales\",\"kind regards\"],[\"fue escrito por\",\"was written by\"],[\"el fallo\",\"the verdict (in court)\"],[\"se venden casas\",\"houses for sale\"]],\nquiz:[\n{q:\"Which one is formal?\",opts:[\"\\xbfPodr\\xeda repetirlo, por favor?\",\"\\xbfQu\\xe9 dijiste?\",\"\\xbfEh?\",\"\\xbfC\\xf3mo dices?\"],why:\"Podr\\xeda plus usted is the polite form.\"},\n{q:\"La casa ___ construida en 1920.\",opts:[\"fue\",\"estuvo\",\"tuvo\",\"hizo\"],why:\"Passive voice: ser + participle.\"},\n{q:\"Los libros fueron ___ por estudiantes.\",opts:[\"escritos\",\"escrito\",\"escritas\",\"escribi\\xf3\"],why:\"The participle matches libros: masculine plural.\"},\n{q:\"In court, \\\\\"el fallo\\\\\" means…\",opts:[\"the verdict\",\"the mistake\",\"the failure\",\"the lawyer\"],why:\"In legal Spanish, fallo is the ruling.\"},\n{q:\"Best way to close a formal email:\",opts:[\"Saludos cordiales\",\"Ah\\xed nos vemos\",\"Bye\",\"\\xc9chame un grito\"],why:\"Saludos cordiales is standard formal.\"}]\n},\n\"c1-subj\": {\nconvo:[\n[\"sofi\",\"Me extra\\xf1a que Beto no *haya llegado*.\",\"It's weird that Beto hasn't shown up.\"],\n[\"lupita\",\"*Quienquiera que* lo *haya invitado* le dio mal la hora.\",\"Whoever invited him gave him the wrong time.\"],\n[\"sofi\",\"\\xbfY si se perdi\\xf3? *Dondequiera que est\\xe9*, que nos llame.\",\"What if he got lost? Wherever he is, he should call us.\"],\n[\"lupita\",\"\\xa1*Ni que fuera* la primera vez que viene!\",\"It's not like it's his first time coming!\"],\n[\"sofi\",\"Qu\\xe9 bueno que t\\xfa *est\\xe9s* aqu\\xed al menos.\",\"Good thing you're here at least.\"]],\ncards:[[\"quienquiera que sea\",\"whoever it is\"],[\"dondequiera que vayas\",\"wherever you go\"],[\"me extra\\xf1a que…\",\"it's strange that…\"],[\"qu\\xe9 bueno que est\\xe9s\",\"good thing you're here\"],[\"no creo que lo haya visto\",\"I don't think he's seen it\"],[\"\\xa1ni que fuera…!\",\"it's not like it's…!\"]],\nquiz:[\n{q:\"Dondequiera que ___, te voy a extra\\xf1ar.\",opts:[\"vayas\",\"vas\",\"ir\\xe1s\",\"fuiste\"],why:\"Dondequiera que points to an unknown place, so the subjunctive.\"},\n{q:\"Me sorprende que ___ tan bien.\",opts:[\"hables\",\"hablas\",\"hablar\\xe1s\",\"hablaste\"],why:\"Reacting to a fact still takes the subjunctive.\"},\n{q:\"Ojal\\xe1 que ___ descansado bien.\",opts:[\"hayas\",\"has\",\"hab\\xedas\",\"habr\\xe1s\"],why:\"Haya + participle for something that may already have happened.\"},\n{q:\"\\xa1Ni que ___ cinco a\\xf1os!\",opts:[\"tuvieras\",\"tienes\",\"tengas\",\"tendr\\xe1s\"],why:\"Ni que always takes the past subjunctive.\"},\n{q:\"Lo que sea que ___, d\\xedmelo.\",opts:[\"necesites\",\"necesitas\",\"necesitar\\xe1s\",\"necesitaste\"],why:\"Lo que sea que + subjunctive: whatever you need.\"}]\n},\n\"c1-cond\": {\nconvo:[\n[\"beto\",\"\\xbfPor qu\\xe9 no viniste a la carne asada?\",\"Why didn't you come to the cookout?\"],\n[\"sofi\",\"*De haberlo sabido*, habr\\xeda ido. Nadie me avis\\xf3.\",\"Had I known, I would have gone. Nobody told me.\"],\n[\"beto\",\"*Si hubieras revisado* tu WhatsApp, *sabr\\xedas* que te invit\\xe9.\",\"If you had checked your WhatsApp, you'd know I invited you.\"],\n[\"sofi\",\"Ay, perd\\xf3n. La pr\\xf3xima voy, *siempre y cuando* no *tenga* que trabajar.\",\"Sorry. Next time I'll go, as long as I don't have to work.\"],\n[\"beto\",\"Va. Lleva su\\xe9ter *en caso de que haga* fr\\xedo.\",\"Deal. Bring a sweater in case it gets cold.\"]],\ncards:[[\"de haberlo sabido\",\"had I known\"],[\"de ser as\\xed\",\"if that's the case\"],[\"siempre y cuando\",\"provided that\"],[\"a no ser que\",\"unless\"],[\"en caso de que\",\"in case\"],[\"con tal de que\",\"as long as\"]],\nquiz:[\n{q:\"___ as\\xed, av\\xedsame.\",opts:[\"De ser\",\"Si es de\",\"Siendo de\",\"De es\"],why:\"De + infinitive works like si: if that's the case.\"},\n{q:\"Te acompa\\xf1o ___ me invites un caf\\xe9.\",opts:[\"con tal de que\",\"por lo tanto\",\"sin embargo\",\"as\\xed que\"],why:\"Con tal de que sets a condition and takes the subjunctive.\"},\n{q:\"Lleva el paraguas en caso de que ___.\",opts:[\"llueva\",\"llueve\",\"llover\\xe1\",\"llovi\\xf3\"],why:\"En caso de que always takes the subjunctive.\"},\n{q:\"Si hubiera estudiado medicina, ahora ___ doctor.\",opts:[\"ser\\xeda\",\"fuera\",\"soy\",\"era\"],why:\"Past condition, present result: the conditional.\"},\n{q:\"Salimos a las ocho, a no ser que ___ tr\\xe1fico.\",opts:[\"haya\",\"hay\",\"habr\\xe1\",\"hubo\"],why:\"A no ser que means unless and takes the subjunctive.\"}]\n},\n\"c1-idioms\": {\nconvo:[\n[\"sofi\",\"Ya no le *des tantas vueltas* al examen.\",\"Stop overthinking the exam.\"],\n[\"beto\",\"Es que *me hice bolas* con el subjuntivo.\",\"I just got mixed up with the subjunctive.\"],\n[\"sofi\",\"*Ponte las pilas* y *\\xe9chale ganas*. T\\xfa puedes.\",\"Get your act together and give it your all. You can do it.\"],\n[\"beto\",\"*Se me hace que* mi profe me *da el avi\\xf3n* cuando pregunto.\",\"I think my teacher brushes me off when I ask.\"],\n[\"sofi\",\"Pues preg\\xfantale a Diego. \\xc9l *no tiene pelos en la lengua*.\",\"Then ask Diego. He doesn't hold back.\"]],\ncards:[[\"\\xe9chale ganas\",\"give it your all\"],[\"ponte las pilas\",\"get your act together\"],[\"me hice bolas\",\"I got mixed up\"],[\"me da el avi\\xf3n\",\"he brushes me off\"],[\"no tiene pelos en la lengua\",\"he speaks bluntly\"],[\"estoy hasta el gorro\",\"I'm fed up\"]],\nquiz:[\n{q:\"\\\\\"\\xc9chale ganas\\\\\" means…\",opts:[\"Give it your all\",\"Eat something\",\"Throw it away\",\"Calm down\"],why:\"Echarle ganas is to put in full effort.\"},\n{q:\"\\\\\"Me hice bolas\\\\\" means…\",opts:[\"I got confused\",\"I made balls\",\"I got fat\",\"I played soccer\"],why:\"Hacerse bolas is Mexican for getting mixed up.\"},\n{q:\"\\\\\"Ponte las pilas\\\\\" means…\",opts:[\"Get your act together\",\"Buy batteries\",\"Put on your shoes\",\"Relax\"],why:\"Ponerse las pilas is to get energized and focused.\"},\n{q:\"Your coworker \\\\\"no tiene pelos en la lengua.\\\\\" They…\",opts:[\"say exactly what they think\",\"are very polite\",\"talk too fast\",\"are bald\"],why:\"No tener pelos en la lengua is to speak bluntly.\"},\n{q:\"\\\\\"Ya estoy hasta el gorro\\\\\" means…\",opts:[\"I'm fed up\",\"I'm wearing a hat\",\"I'm cold\",\"I'm almost done\"],why:\"Estar hasta el gorro is to be fed up.\"}]\n},\n\"c1-register\": {\nconvo:[\n[\"sofi\",\"*Estimado* licenciado: *le agradecer\\xeda que me enviara* el contrato.\",\"Dear sir: I would appreciate it if you sent me the contract.\"],\n[\"licenciado\",\"Con gusto. El *plazo* para firmarlo vence el viernes.\",\"Gladly. The deadline to sign it is Friday.\"],\n[\"sofi\",\"Entendido. *Quedo a la espera* de su correo.\",\"Understood. I'll await your email.\"],\n[\"licenciado\",\"*Lamento informarle* que hubo un cambio en la cl\\xe1usula tres.\",\"I regret to inform you that there was a change in clause three.\"],\n[\"sofi\",\"*Sin m\\xe1s por el momento*, *quedo a sus \\xf3rdenes*.\",\"That's all for now. I remain at your service.\"]],\ncards:[[\"le agradecer\\xeda que…\",\"I would appreciate it if…\"],[\"lamento informarle\",\"I regret to inform you\"],[\"el plazo\",\"the deadline\"],[\"el fallo\",\"the verdict\"],[\"quedo a sus \\xf3rdenes\",\"at your service\"],[\"sin m\\xe1s por el momento\",\"that's all for now\"]],\nquiz:[\n{q:\"Most formal way to ask for a file:\",opts:[\"Le agradecer\\xeda que me enviara el archivo.\",\"P\\xe1same el archivo.\",\"\\xbfMe mandas el archivo?\",\"\\xc9chame el archivo.\"],why:\"Le agradecer\\xeda que + past subjunctive is the polite formal request.\"},\n{q:\"In a contract, \\\\\"el plazo\\\\\" is…\",opts:[\"the deadline\",\"the price\",\"the signature\",\"the lawyer\"],why:\"Plazo is the time limit or deadline.\"},\n{q:\"\\\\\"Lamento informarle que…\\\\\" opens…\",opts:[\"bad news\",\"a joke\",\"a thank-you\",\"an invitation\"],why:\"Lamento informarle is the formal lead-in to bad news.\"},\n{q:\"In court, \\\\\"el juicio\\\\\" is…\",opts:[\"the trial\",\"the judge\",\"the jury\",\"the fine\"],why:\"In legal Spanish, juicio is the trial.\"},\n{q:\"Best formal sign-off:\",opts:[\"Quedo a sus \\xf3rdenes.\",\"Nos vemos.\",\"Ah\\xed me dices.\",\"Bye.\"],why:\"Quedo a sus \\xf3rdenes is a standard formal close.\"}]\n},\n\"c1-inference\": {\nconvo:[\n[\"beto\",\"Llegu\\xe9 una hora tarde a la junta.\",\"I got to the meeting an hour late.\"],\n[\"sofi\",\"\\xa1Qu\\xe9 *puntual*!\",\"How punctual!\"],\n[\"beto\",\"Ya s\\xe9. Y mi jefe dijo que *lo iba a pensar* lo de mi aumento.\",\"I know. And my boss said he'd think about my raise.\"],\n[\"sofi\",\"*Viniendo de \\xe9l*, eso *equivale a* un no.\",\"Coming from him, that amounts to a no.\"],\n[\"beto\",\"Bueno, la presentaci\\xf3n *no estuvo nada mal*.\",\"Well, the presentation was pretty good.\"],\n[\"sofi\",\"Eso s\\xed. Aunque el caf\\xe9 *dej\\xf3 mucho que desear*.\",\"True. Though the coffee left a lot to be desired.\"]],\ncards:[[\"viniendo de \\xe9l\",\"coming from him\"],[\"equivale a\",\"it amounts to\"],[\"deja mucho que desear\",\"leaves a lot to be desired\"],[\"no estuvo nada mal\",\"it was pretty good\"],[\"lo voy a pensar\",\"I'll think about it (often no)\"],[\"\\xa1qu\\xe9 puntual!\",\"how punctual! (ironic)\"]],\nquiz:[\n{passage:\"Lleg\\xf3 a las diez para una cita de las nueve. —\\xa1Qu\\xe9 puntual! —le dijo su hermana.\",q:\"\\xbfQu\\xe9 quiso decir la hermana?\",opts:[\"Que lleg\\xf3 tarde\",\"Que lleg\\xf3 temprano\",\"Que la cita cambi\\xf3\",\"Que estaba contenta\"],why:\"Irony: \\xa1qu\\xe9 puntual! to someone an hour late means the opposite.\"},\n{passage:\"El hotel no estuvo nada mal; hasta pensamos regresar el pr\\xf3ximo a\\xf1o.\",q:\"\\xbfQu\\xe9 opinan del hotel?\",opts:[\"Les gust\\xf3\",\"No les gust\\xf3\",\"Fue muy caro\",\"No se quedaron ah\\xed\"],why:\"No estuvo nada mal is understatement. They want to go back.\"},\n{passage:\"Viniendo de mi suegra, un \\\\\"est\\xe1 bien\\\\\" es casi un aplauso.\",q:\"\\xbfQu\\xe9 da a entender?\",opts:[\"Su suegra rara vez elogia\",\"Su suegra aplaude mucho\",\"Su suegra no habla\",\"Su suegra est\\xe1 enferma\"],why:\"Viniendo de: from her, even a small compliment is big.\"},\n{passage:\"Prometi\\xf3 que lo iba a pensar, lo cual en su caso viene siendo un no.\",q:\"\\xbfQu\\xe9 va a pasar?\",opts:[\"Probablemente no acepte\",\"Va a aceptar ma\\xf1ana\",\"Ya acept\\xf3\",\"Va a preguntar a otros\"],why:\"Viene siendo un no: it amounts to a no.\"},\n{passage:\"El mesero tard\\xf3 una hora y se olvid\\xf3 de las bebidas. —\\xa1Qu\\xe9 servicio de primera! —dijo mi pap\\xe1.\",q:\"\\xbfQu\\xe9 le pareci\\xf3 el servicio al pap\\xe1?\",opts:[\"Malo\",\"Excelente\",\"R\\xe1pido\",\"Barato\"],why:\"Irony: \\xa1qu\\xe9 servicio de primera! after a bad experience means it was bad.\"}]\n}\n};\nconst LEVELS = [\n{code:\"A1\", name:\"Principiante\", short:\"Beginner\"},\n{code:\"A2\", name:\"B\\xe1sico\", short:\"Elementary\"},\n{code:\"B1\", name:\"Intermedio\", short:\"Intermediate\"},\n{code:\"B2\", name:\"Intermedio alto\", short:\"Upper intermediate\"},\n{code:\"C1\", name:\"Avanzado\", short:\"Advanced\"}\n];\nconst PASS = 7;\nconst BANK = {\nA1:[\n{topic:\"present\", q:\"Hola, me ___ Sof\\xeda.\", opts:[\"llamo\",\"llama\",\"llamas\",\"llamamos\"], a:0, why:\"With yo, llamarse becomes me llamo.\"},\n{topic:\"ser-estar\", q:\"\\xbfDe d\\xf3nde ___ t\\xfa?\", opts:[\"eres\",\"es\",\"est\\xe1s\",\"soy\"], a:0, why:\"Origin uses ser. The t\\xfa form is eres.\"},\n{topic:\"present\", q:\"Mi hermana ___ en Guadalajara.\", opts:[\"vive\",\"vives\",\"vivo\",\"viven\"], a:0, why:\"Ella (mi hermana) takes the third person singular: vive.\"},\n{topic:\"questions\", q:\"\\xbf___ a\\xf1os tienes?\", opts:[\"Cu\\xe1ntos\",\"Cu\\xe1l\",\"Qu\\xe9\",\"C\\xf3mo\"], a:0, why:\"A\\xf1os is countable and masculine, so cu\\xe1ntos.\"},\n{topic:\"vocab\", q:\"— \\xbfQuieres agua? — S\\xed, tengo ___.\", opts:[\"sed\",\"hambre\",\"fr\\xedo\",\"sue\\xf1o\"], a:0, why:\"Tener sed means to be thirsty.\"},\n{topic:\"vocab\", q:\"El pap\\xe1 de mi mam\\xe1 es mi ___.\", opts:[\"abuelo\",\"t\\xedo\",\"primo\",\"suegro\"], a:0, why:\"Your mom's dad is your grandfather, tu abuelo.\"},\n{topic:\"ser-estar\", q:\"Disculpe, \\xbfd\\xf3nde ___ el ba\\xf1o?\", opts:[\"est\\xe1\",\"es\",\"hay\",\"tiene\"], a:0, why:\"Location of a specific thing uses estar.\"},\n{topic:\"gustar\", q:\"A m\\xed me ___ los tacos al pastor.\", opts:[\"gustan\",\"gusta\",\"gusto\",\"gustas\"], a:0, why:\"The thing you like is plural (los tacos), so gustan.\"},\n{topic:\"ser-estar\", q:\"— \\xbfQu\\xe9 hora es? — ___ las tres y media.\", opts:[\"Son\",\"Es\",\"Est\\xe1n\",\"Hay\"], a:0, why:\"Any hour other than one uses son: son las tres.\"},\n{topic:\"ser-estar\", q:\"Hoy no puedo salir, ___ muy cansado.\", opts:[\"estoy\",\"soy\",\"tengo\",\"hay\"], a:0, why:\"Temporary states like being tired use estar.\"}\n],\nA2:[\n{topic:\"past\", q:\"Ayer ___ al mercado con mi mam\\xe1.\", opts:[\"fui\",\"iba\",\"voy\",\"fue\"], a:0, why:\"A single finished action yesterday takes the preterite. Ir with yo is fui.\"},\n{topic:\"past\", q:\"Cuando era ni\\xf1o, ___ f\\xfatbol todos los d\\xedas.\", opts:[\"jugaba\",\"jugu\\xe9\",\"juego\",\"jugar\\xe9\"], a:0, why:\"Repeated habits in the past use the imperfect: jugaba.\"},\n{topic:\"past\", q:\"— \\xbfYa ___ la pel\\xedcula? — S\\xed, la vi el s\\xe1bado.\", opts:[\"viste\",\"ves\",\"ve\\xedas\",\"ver\\xe1s\"], a:0, why:\"In Mexico, ya plus the preterite asks if something already happened: \\xbfya viste?\"},\n{topic:\"por-para\", q:\"Este regalo es ___ ti.\", opts:[\"para\",\"por\",\"a\",\"de\"], a:0, why:\"Para marks the recipient of something.\"},\n{topic:\"pronouns\", q:\"— \\xbfConoces a Diego? — S\\xed, ___ conozco.\", opts:[\"lo\",\"le\",\"la\",\"se\"], a:0, why:\"Diego is the direct object, masculine singular: lo.\"},\n{topic:\"phrases\", q:\"Mira esas nubes. Ma\\xf1ana ___ a llover.\", opts:[\"va\",\"voy\",\"van\",\"vamos\"], a:0, why:\"Ir a + infinitive talks about the future. Weather takes the third person singular: va a llover.\"},\n{topic:\"comparing\", q:\"Mi carro es ___ r\\xe1pido ___ el tuyo.\", opts:[\"m\\xe1s … que\",\"tan … que\",\"m\\xe1s … de\",\"tan … de\"], a:0, why:\"Comparisons of inequality use m\\xe1s … que.\"},\n{topic:\"comparing\", q:\"— No me gusta el picante. — A m\\xed ___.\", opts:[\"tampoco\",\"tambi\\xe9n\",\"ni\",\"nunca\"], a:0, why:\"Agreeing with a negative statement uses tampoco.\"},\n{topic:\"phrases\", q:\"Ahorita no puedo, estoy ___ la tarea.\", opts:[\"haciendo\",\"hecho\",\"hacer\",\"hago\"], a:0, why:\"Estar + gerund (haciendo) describes something in progress.\"},\n{topic:\"present\", q:\"\\xbfMe ___ la sal, por favor?\", opts:[\"pasas\",\"pasar\",\"pas\\xe9\",\"pasando\"], a:0, why:\"A casual request to a friend uses the present tense t\\xfa form: \\xbfme pasas…?\"}\n],\nB1:[\n{topic:\"subj\", q:\"Espero que ___ bien en tu examen.\", opts:[\"te vaya\",\"te va\",\"te iba\",\"te fue\"], a:0, why:\"Esperar que triggers the subjunctive: que te vaya bien.\"},\n{topic:\"si\", q:\"Si tuviera dinero, ___ un viaje a Oaxaca.\", opts:[\"har\\xeda\",\"har\\xe9\",\"hago\",\"hice\"], a:0, why:\"Si + imperfect subjunctive pairs with the conditional: har\\xeda.\"},\n{topic:\"subj\", q:\"Cuando ___ a la ciudad, av\\xedsame.\", opts:[\"llegues\",\"llegas\",\"llegar\\xe1s\",\"llegaste\"], a:0, why:\"Cuando about a future event takes the subjunctive: cuando llegues.\"},\n{topic:\"phrases\", q:\"Llevo tres a\\xf1os ___ espa\\xf1ol.\", opts:[\"estudiando\",\"estudiar\",\"estudiado\",\"estudio\"], a:0, why:\"Llevar + time + gerund says how long you've been doing something.\"},\n{topic:\"pronouns\", q:\"Le di el libro a Ana. → Ayer ___ di.\", opts:[\"se lo\",\"le lo\",\"la lo\",\"se la\"], a:0, why:\"Le changes to se before lo. El libro is masculine, so se lo.\"},\n{topic:\"past\", q:\"Cuando llegamos al cine, la pel\\xedcula ya ___.\", opts:[\"hab\\xeda empezado\",\"ha empezado\",\"empiece\",\"empezar\\xe1\"], a:0, why:\"An action finished before another past action uses the pluperfect: hab\\xeda empezado.\"},\n{topic:\"subj\", q:\"No creo que ___ raz\\xf3n.\", opts:[\"tengas\",\"tienes\",\"tendr\\xe1s\",\"tuviste\"], a:0, why:\"No creo que expresses doubt, so it takes the subjunctive.\"},\n{topic:\"subj\", q:\"Busco a alguien que ___ hablar n\\xe1huatl.\", opts:[\"sepa\",\"sabe\",\"sab\\xeda\",\"supo\"], a:0, why:\"You don't know if this person exists yet, so the subjunctive: sepa.\"},\n{topic:\"mexican\", q:\"Your friend asks: \\\\\"\\xbfMe echas la mano con la mudanza?\\\\\" What do they want?\", opts:[\"Help with the move\",\"A handshake\",\"A ride to the airport\",\"Money for rent\"], a:0, why:\"Echar la mano means to lend a hand.\"},\n{topic:\"reading\", passage:\"Mariana dej\\xf3 su trabajo en la oficina hace dos a\\xf1os. Al principio extra\\xf1aba el sueldo fijo, pero ahora tiene su propio puesto de comida y dice que nunca hab\\xeda sido tan feliz.\", q:\"\\xbfQu\\xe9 sabemos de Mariana?\", opts:[\"Hoy est\\xe1 m\\xe1s contenta que antes\",\"Todav\\xeda trabaja en la oficina\",\"Nunca extra\\xf1\\xf3 su sueldo\",\"Quiere volver a la oficina\"], a:0, why:\"Nunca hab\\xeda sido tan feliz means she's never been this happy.\"}\n],\nB2:[\n{topic:\"si\", q:\"Si me ___ dicho la verdad, no me habr\\xeda enojado.\", opts:[\"hubieras\",\"habr\\xedas\",\"hab\\xedas\",\"hayas\"], a:0, why:\"Past hypotheticals use si + pluperfect subjunctive: si me hubieras dicho.\"},\n{topic:\"subj-past\", q:\"Me pidi\\xf3 que le ___ con la mudanza.\", opts:[\"ayudara\",\"ayudo\",\"ayudar\\xeda\",\"ayud\\xe9\"], a:0, why:\"Pedir que in the past takes the imperfect subjunctive: ayudara.\"},\n{topic:\"connectors\", q:\"___ llueva, iremos al partido.\", opts:[\"Aunque\",\"Porque\",\"Ya que\",\"Puesto que\"], a:0, why:\"Aunque + subjunctive means even if: we're going no matter what.\"},\n{topic:\"subj\", q:\"No es que no ___ ir, es que no tengo tiempo.\", opts:[\"quiera\",\"quiero\",\"querr\\xe9\",\"quise\"], a:0, why:\"No es que denies a reason, so it takes the subjunctive.\"},\n{topic:\"formal\", q:\"El libro ___ escrito por una autora chiapaneca.\", opts:[\"fue\",\"estuvo\",\"tuvo\",\"hubo\"], a:0, why:\"The passive voice uses ser + participle: fue escrito.\"},\n{topic:\"subj-past\", q:\"\\xa1Qu\\xe9 l\\xe1stima! Ojal\\xe1 ___ venido a la fiesta ayer.\", opts:[\"hubieras\",\"habr\\xedas\",\"has\",\"hab\\xedas\"], a:0, why:\"A wish about the past that didn't happen uses ojal\\xe1 + pluperfect subjunctive.\"},\n{topic:\"mexican\", q:\"Your friend says: \\\\\"Ese concierto estuvo bien padre.\\\\\" How was it?\", opts:[\"Great\",\"Boring\",\"Too expensive\",\"Full of parents\"], a:0, why:\"In Mexico, padre means cool or great. Bien works like muy.\"},\n{topic:\"mexican\", q:\"\\\\\"Cuando me dijo el precio, me qued\\xe9 de a seis.\\\\\" How did they feel?\", opts:[\"Shocked\",\"Calm\",\"Confused about the math\",\"Ready to buy six\"], a:0, why:\"Quedarse de a seis is Mexican slang for being stunned.\"},\n{topic:\"connectors\", q:\"El proyecto se retras\\xf3; ___, tuvimos que trabajar el fin de semana.\", opts:[\"por lo tanto\",\"sin embargo\",\"en cambio\",\"a pesar de\"], a:0, why:\"Por lo tanto introduces a consequence: therefore.\"},\n{topic:\"reading\", passage:\"Aunque la mayor\\xeda de los vecinos se opuso al principio, el nuevo mercado termin\\xf3 por convertirse en el coraz\\xf3n de la colonia. Hoy, incluso quienes firmaron en contra hacen ah\\xed sus compras.\", q:\"\\xbfQu\\xe9 pas\\xf3 con quienes se opusieron al mercado?\", opts:[\"Ahora tambi\\xe9n compran ah\\xed\",\"Lograron cerrarlo\",\"Se mudaron de la colonia\",\"Siguen sin ir\"], a:0, why:\"Incluso quienes firmaron en contra hacen ah\\xed sus compras: even the opponents shop there now.\"}\n],\nC1:[\n{topic:\"c1-cond\", q:\"De ___ sabido, no habr\\xeda venido.\", opts:[\"haberlo\",\"haber lo\",\"habi\\xe9ndolo\",\"lo haber\"], a:0, why:\"De + perfect infinitive works like a si clause: had I known. The pronoun attaches: haberlo.\"},\n{topic:\"c1-subj\", q:\"Quienquiera que ___ hecho esto tendr\\xe1 que dar explicaciones.\", opts:[\"haya\",\"ha\",\"hab\\xeda\",\"habr\\xe1\"], a:0, why:\"Quienquiera que refers to an unknown person, so the subjunctive: haya hecho.\"},\n{topic:\"c1-idioms\", q:\"\\\\\"No le des m\\xe1s vueltas al asunto.\\\\\" What's the advice?\", opts:[\"Stop overthinking it\",\"Don't walk around it\",\"Don't come back to it\",\"Stop spinning in circles\"], a:0, why:\"Darle vueltas a algo means to keep turning something over in your head.\"},\n{topic:\"c1-idioms\", q:\"\\\\\"Se me hace que va a llover.\\\\\" What does the speaker mean?\", opts:[\"I think it's going to rain\",\"Rain makes me feel bad\",\"I'm making it rain\",\"It's raining on me\"], a:0, why:\"In Mexico, se me hace que means I think or it seems to me.\"},\n{topic:\"c1-register\", q:\"Which closing fits a formal email to a client?\", opts:[\"Quedo a la espera de su respuesta.\",\"Ah\\xed me dices.\",\"\\xc9chame un grito.\",\"Luego me cuentas.\"], a:0, why:\"The others are casual. Quedo a la espera is standard formal register.\"},\n{topic:\"c1-subj\", q:\"Me extra\\xf1a que todav\\xeda no ___ llegado.\", opts:[\"haya\",\"ha\",\"hab\\xeda\",\"habr\\xe1\"], a:0, why:\"Expressions of surprise (me extra\\xf1a que) take the subjunctive.\"},\n{topic:\"c1-register\", q:\"\\\\\"Tras una larga deliberaci\\xf3n, el jurado emiti\\xf3 su fallo.\\\\\" What is \\\\\"fallo\\\\\" here?\", opts:[\"Verdict\",\"Mistake\",\"Failure\",\"Absence\"], a:0, why:\"In a legal context fallo means ruling or verdict.\"},\n{topic:\"c1-subj\", q:\"Ni que ___ millonario para comprarme eso.\", opts:[\"fuera\",\"era\",\"sea\",\"ser\\xeda\"], a:0, why:\"Ni que always takes the imperfect subjunctive: it's not like I'm a millionaire.\"},\n{topic:\"c1-cond\", q:\"Te lo presto ___ me lo devuelvas ma\\xf1ana.\", opts:[\"con tal de que\",\"a pesar de que\",\"ya que\",\"puesto que\"], a:0, why:\"Con tal de que sets a condition: as long as you give it back.\"},\n{topic:\"c1-inference\", passage:\"Dijo que lo pensar\\xeda, lo cual, viniendo de \\xe9l, equivale a un no rotundo.\", q:\"\\xbfQu\\xe9 se entiende?\", opts:[\"No va a aceptar\",\"Probablemente va a aceptar\",\"Necesita m\\xe1s informaci\\xf3n\",\"Ya acept\\xf3\"], a:0, why:\"Equivale a un no rotundo: coming from him, that means a flat no.\"}\n]\n};\nconst RESULTS = {\npre:{code:\"A0\", name:\"Primeros pasos\", short:\"Just starting\",\ndesc:\"You're right at the start. A few words feel familiar but full sentences are still new. This is the best place to begin.\",\nnext:[\"Greetings and introducing yourself\",\"Ser vs. estar for the basics\",\"Numbers, days and telling time\",\"Present tense of everyday verbs\"],\ncta:\"El Barrio has a beginner path built for day one. Start there, then hop on a live call when you're ready.\"},\nA1:{desc:\"You can introduce yourself, order food and ask simple questions. Short present-tense sentences feel comfortable.\",\nnext:[\"Talking about the past with the preterite\",\"Habits with the imperfect (jugaba, viv\\xeda)\",\"Object pronouns: lo, la, le\",\"Making plans with ir a + infinitive\"],\ncta:\"Live calls are the fastest way past A1. Show up, listen, say one sentence. That's how it starts.\"},\nA2:{desc:\"You can talk about your day, last weekend and your plans. Everyday conversations work when people slow down for you.\",\nnext:[\"Your first subjunctive: espero que, quiero que\",\"Mixing preterite and imperfect in stories\",\"Si clauses with tuviera / har\\xeda\",\"Following natives at full speed\"],\ncta:\"You know enough to hold a conversation. Now you need reps. Our live calls give you a place to use it every week.\"},\nB1:{desc:\"You can hold a conversation on familiar topics, tell stories in the past and give your opinion. Fast native speech still loses you sometimes.\",\nnext:[\"Past subjunctive: pidi\\xf3 que, si hubieras\",\"Connectors like por lo tanto and sin embargo\",\"Mexican expressions: padre, de a seis, se me hace\",\"Debating a point without freezing up\"],\ncta:\"B1 is where most learners stall. Daily conversation with natives is what gets you through it.\"},\nB2:{desc:\"You follow most conversations, argue a point and pick up on slang. Mistakes still happen but rarely get in the way.\",\nnext:[\"Advanced subjunctive: quienquiera que, ni que\",\"Switching register between formal and casual\",\"Idioms and double meanings\",\"Speed and accent\"],\ncta:\"Join the calls to sharpen speed and slang with Diego and the coaches.\"},\nC1:{desc:\"You handle nuance, register and idioms with ease. What's left is polish: accent, speed and the expressions only locals use.\",\nnext:[\"Regional Mexican slang\",\"Humor, sarcasm and double meanings\",\"Speaking at full speed without translating\",\"Helping others learn (it locks it in)\"],\ncta:\"Come hang out on the calls. Advanced speakers keep the conversation alive for everyone.\"}\n};\nconst $ = id => document.getElementById(id);\nlet state;\nfunction shuffle(arr){\nconst a = arr.slice();\nfor(let i=a.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));[a[i],a[j]]=[a[j],a[i]];}\nreturn a;\n}\nfunction buildLevel(i){\nreturn BANK[LEVELS[i].code].map(item=>{\nconst order = shuffle(item.opts.map((_,k)=>k));\nreturn {...item, order};\n});\n}\nfunction renderTrack(el, opts){\nconst cur = opts.current ?? -1, scores = opts.scores || [];\nel.innerHTML = LEVELS.map((L,i)=>{\nlet cls=\"step\", fill=0;\nif(scores[i]!=null){ cls += scores[i]>=PASS ? \" done\" : \" miss\"; fill = 100; }\nelse if(i===cur){ cls+=\" cur\"; fill = opts.progress||0; }\nreturn \\`<div class=\"\\${cls}\"><div class=\"bar\"><i style=\"width:\\${fill}%\"></i></div><b>\\${L.code}</b><small>\\${L.short}</small></div>\\`;\n}).join(\"\");\n}\nfunction start(){\nstate = {lvl:0, idx:0, items:buildLevel(0), scores:[], log:[], correct:0};\n$(\"start\").hidden = true; $(\"result\").hidden = true; $(\"lesson\").hidden = true; $(\"library\").hidden = true; $(\"quiz\").hidden = false;\nshowQ();\nwindow.scrollTo({top:0});\n}\nfunction fmtPrompt(q){\nconst esc = s => s.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\");\nreturn esc(q).replace(\"___\",'<span class=\"blank\" aria-label=\"blank\"></span>');\n}\nfunction showQ(){\nconst it = state.items[state.idx];\nconst L = LEVELS[state.lvl];\nrenderTrack($(\"trackQuiz\"), {current:state.lvl, scores:state.scores, progress:state.idx*10});\n$(\"qPassage\").hidden = !it.passage;\n$(\"qPassage\").textContent = it.passage || \"\";\n$(\"qPrompt\").innerHTML = fmtPrompt(it.q);\n$(\"qHint\").hidden = !it.q.includes(\"___\");\n$(\"qHint\").textContent = \"Pick the word that fills the blank.\";\n$(\"qOpts\").innerHTML = it.order.map((k,n)=>\n\\`<button class=\"opt\" type=\"button\" data-k=\"\\${k}\"><kbd>\\${n+1}</kbd><span>\\${it.opts[k]}</span></button>\\`\n).join(\"\");\n$(\"qOpts\").querySelectorAll(\".opt\").forEach(b=>b.addEventListener(\"click\",()=>answer(+b.dataset.k, b)));\nstate.locked = false;\n}\nfunction answer(k, btn){\nif(state.locked) return;\nstate.locked = true;\nconst it = state.items[state.idx];\nconst ok = k === it.a;\nif(ok) state.correct++;\nstate.log.push({topic:it.topic, level:LEVELS[state.lvl].code, q:it.q, passage:it.passage, pick:k===-1?null:it.opts[k], right:it.opts[it.a], ok, why:it.why});\nif(btn) btn.classList.add(\"pick\");\nsetTimeout(advance, btn ? 220 : 0);\n}\nfunction advance(){\nstate.idx++;\nif(state.idx < 10){ showQ(); return; }\nstate.scores.push(state.correct);\nconst passed = state.correct >= PASS;\nif(passed && state.lvl < LEVELS.length-1){\nstate.lvl++; state.idx=0; state.correct=0; state.items=buildLevel(state.lvl);\nshowQ();\n} else finish();\n}\nfunction evaluate(scores){\nlet passed = 0;\nfor(const s of scores){ if(s>=PASS) passed++; else break; }\nreturn {passed, nextScore: scores[passed]};\n}\nfunction finish(){\nconst {passed, nextScore} = evaluate(state.scores);\nconst key = passed===0 ? \"pre\" : LEVELS[passed-1].code;\nconst R = RESULTS[key];\nconst L = passed ? LEVELS[passed-1] : null;\n$(\"rCode\").textContent = L ? L.code : \"A0\";\n$(\"rName\").textContent = L ? \\`\\${L.name} \\xb7 \\${L.short}\\` : \\`\\${R.name} \\xb7 \\${R.short}\\`;\nlet sub = \"\";\nif(passed < LEVELS.length && nextScore!=null && nextScore>=4){\nsub = \\`You got \\${nextScore} of 10 at <span class=\"lvl\">\\${LEVELS[passed].code}</span>, so you're already on your way there.\\`;\n} else if(passed === LEVELS.length){\nsub = \"You passed every level in the test.\";\n} else if(passed===0){\nsub = \"Everyone starts here.\";\n} else {\nsub = \\`Next stop: <span class=\"lvl\">\\${LEVELS[passed].code}</span>.\\`;\n}\n$(\"rSub\").innerHTML = sub;\n$(\"rDesc\").textContent = R.desc;\n$(\"rNext\").innerHTML = R.next.map(n=>\\`<li>\\${n}</li>\\`).join(\"\");\nrenderPlan();\n$(\"ctaText\").textContent = R.cta;\nrenderTrack($(\"trackResult\"), {scores:state.scores});\n$(\"rScores\").innerHTML = LEVELS.map((Lv,i)=>{\nconst s = state.scores[i];\nconst cls = s==null ? \"none\" : (s>=PASS ? \"pass\" : \"fail\");\nconst label = s==null ? \"not reached\" : \\`\\${s}/10\\`;\nreturn \\`<div class=\"srow \\${cls}\"><b>\\${Lv.code}</b><div class=\"bar\"><i style=\"width:\\${s==null?0:s*10}%\"></i></div><span>\\${label}</span></div>\\`;\n}).join(\"\");\nconst esc = s => String(s).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\");\n$(\"rReview\").innerHTML = state.log.map((r,i)=>\\`\n<div class=\"ritem\">\n\\${r.passage?\\`<div class=\"passage\" style=\"font-size:15px\">\\${esc(r.passage)}</div>\\`:\"\"}\n<div class=\"q\">\\${esc(r.q)}</div>\n\\${r.ok\n? \\`<div class=\"ok\">✓ \\${esc(r.right)}</div>\\`\n: \\`<div class=\"no\">✗ \\${r.pick?esc(r.pick):\"No s\\xe9\"}</div><div class=\"ok\">Correct: \\${esc(r.right)}</div>\\`}\n<div class=\"why\">\\${esc(r.why)}</div>\n</div>\\`).join(\"\");\n$(\"quiz\").hidden = true; $(\"result\").hidden = false;\nwindow.scrollTo({top:0});\n}\nconst LV = c => LEVELS.findIndex(l=>l.code===c);\nconst LOCK_SVG = '<svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"10.5\" width=\"16\" height=\"10.5\" rx=\"2.5\"/><path d=\"M8 10.5V7a4 4 0 0 1 8 0v3.5\"/></svg>';\nfunction buildPlan(){\nconst miss={}, total={};\nstate.log.forEach(r=>{ total[r.topic]=(total[r.topic]||0)+1; if(!r.ok) miss[r.topic]=(miss[r.topic]||0)+1; });\nreturn Object.keys(miss).map(id=>({id, miss:miss[id], total:total[id], ...TOPICS[id]}))\n.sort((a,b)=> LV(a.level)-LV(b.level) || b.miss-a.miss)\n.slice(0,6);\n}\nfunction renderPlan(){\nconst plan = buildPlan();\nstate.plan = plan;\nconst locked = MODE===\"locked\";\n$(\"rNext\").hidden = plan.length>0;\n$(\"plan\").hidden = plan.length===0;\nif(!plan.length){\ndocument.querySelector(\"#result > .cta\").hidden = false;\n$(\"planNote\").textContent = \"You didn't miss a single question. Here's what to sharpen next.\";\n$(\"lockBox\").hidden = true;\n$(\"planLock\").hidden = true; $(\"planBox\").classList.remove(\"locked\");\n$(\"vidWrap\").hidden = true;\nreturn;\n}\n$(\"planNote\").textContent = locked\n? \\`We picked \\${plan.length} lesson\\${plan.length>1?\"s\":\"\"} from the questions you missed. Start with the first one.\\`\n: \\`We picked \\${plan.length} lesson\\${plan.length>1?\"s\":\"\"} from the questions you missed. Start with the first one.\\`;\n$(\"plan\").innerHTML = plan.map((t,i)=>\\`\n<button class=\"pcard\\${locked?\" locked\":\"\"}\" type=\"button\" data-topic=\"\\${t.id}\">\n<h3>\\${t.title}</h3>\n<p>\\${t.blurb}</p>\n\\${locked?'<div class=\"bars\"><i></i><i></i><i></i></div>':''}\n<div class=\"meta\">\n<span class=\"misses\" title=\"missed \\${t.miss} of \\${t.total}\">\\${\"<i class=\\\\\"x\\\\\"></i>\".repeat(t.miss)}\\${\"<i></i>\".repeat(t.total-t.miss)}<span style=\"margin-left:6px\">missed \\${t.miss} of \\${t.total}</span></span>\n<span class=\"go\">\\${locked?LOCK_SVG+\" members only\":\"read the lesson\"}</span>\n</div>\n</button>\\`).join(\"\");\nconst missedIds = plan.map(t=>t.id);\nconst vids = RESOURCES.filter(r=>r.yt && r.topics.some(t=>missedIds.includes(t)));\n$(\"vidWrap\").hidden = locked || !vids.length;\n$(\"vidPlan\").innerHTML = locked ? \"\" : vids.map(videoCard).join(\"\");\nif(locked){\nconst v = vids[0] || RESOURCES.find(r=>r.yt);\n$(\"lockVidImg\").src = \\`https://i.ytimg.com/vi/\\${v.yt}/hqdefault.jpg\\`;\n$(\"lockVidCap\").textContent = \\`video lesson: \\${v.title}\\`;\n}\nif(locked){\nconst ghosts = [\"m\\xe1s pr\\xe1ctica\",\"repaso\"];\nfor(let g=0; plan.length+g<4 && g<ghosts.length; g++){\n$(\"plan\").insertAdjacentHTML(\"beforeend\", \\`<div class=\"pcard locked ghost\"><h3>\\${ghosts[g]}</h3><p>Bonus practice picked for your level.</p><div class=\"bars\"><i></i><i></i><i></i></div><div class=\"meta\"><span>extra</span><span class=\"go\">\\${LOCK_SVG} members only</span></div></div>\\`);\n}\n}\n$(\"planBox\").classList.toggle(\"locked\", locked);\n$(\"planLock\").hidden = !locked;\nif(locked) $(\"planLockText\").textContent = \\`Your \\${plan.length} lesson\\${plan.length>1?\"s are\":\" is\"} ready inside El Barrio, plus video lessons and live calls six days a week.\\`;\n$(\"plan\").querySelectorAll(\".pcard\").forEach(b=>b.addEventListener(\"click\",()=>openTopic(b.dataset.topic)));\n$(\"lockBox\").hidden = true;\ndocument.querySelector(\"#result > .cta\").hidden = locked;\ndocument.querySelector(\"#result > .cta\").hidden = locked;\ndocument.querySelector(\"#result > .cta\").hidden = locked;\nif(locked){\n$(\"lockText\").textContent = \\`Your \\${plan.length} lesson\\${plan.length>1?\"s are\":\" is\"} waiting inside El Barrio, along with live calls six days a week. Try it free for 7 days.\\`;\n}\n}\nfunction openTopic(id, from){\nconst t = TOPICS[id];\nif(!state) state = {log:[]};\nstate.from = from || \"results\";\nif(MODE===\"locked\" || !LESSONS[id]){\n$(\"dlgTitle\").textContent = \\`\"\\${t.title}\" is inside el barrio\\`;\n$(\"dlgText\").textContent = \"Join El Barrio to unlock every lesson in your study plan, plus live calls six days a week. Your first 7 days are free.\";\n$(\"lockDlg\").hidden = false;\n$(\"dlgClose\").focus();\nreturn;\n}\nstate.scrollY = window.scrollY;\n$(\"lTitle\").textContent = t.title;\n$(\"lBlurb\").textContent = t.blurb;\n$(\"lWatch\").hidden = !t.video;\nif(t.video) $(\"lWatch\").href = t.video;\n$(\"lBody\").innerHTML = LESSONS[id];\nconst links = RESOURCES.filter(r=>r.topics.includes(id) && !r.yt);\nconst vids = RESOURCES.filter(r=>r.topics.includes(id) && r.yt);\n$(\"lLinks\").hidden = !links.length;\n$(\"lLinks\").innerHTML = links.map(r=>\\`<a class=\"watch\" href=\"\\${resUrl(r)}\" target=\"_blank\" rel=\"noopener\">\\${r.lessonLabel}</a>\\`).join(\"\");\n$(\"lVideos\").hidden = !vids.length;\n$(\"lVideos\").innerHTML = vids.map(videoCard).join(\"\");\nrenderExtra(id);\nconst esc = s => String(s).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\");\nconst missed = state.log.filter(r=>r.topic===id && !r.ok);\n$(\"lMissedWrap\").hidden = !missed.length;\n$(\"lMissed\").innerHTML = missed.map(r=>\\`\n<div class=\"ritem\">\n\\${r.passage?\\`<div class=\"passage\" style=\"font-size:15px\">\\${esc(r.passage)}</div>\\`:\"\"}\n<div class=\"q\">\\${esc(r.q)}</div>\n<div class=\"no\">✗ \\${r.pick?esc(r.pick):\"No s\\xe9\"}</div><div class=\"ok\">Correct: \\${esc(r.right)}</div>\n<div class=\"why\">\\${esc(r.why)}</div>\n</div>\\`).join(\"\");\nconst back = state.from===\"library\" ? \"back to all lessons\" : \"back to my results\";\n$(\"backTop\").textContent = back; $(\"backBottom\").textContent = back;\n$(\"result\").hidden = true; $(\"library\").hidden = true; $(\"lesson\").hidden = false;\nwindow.scrollTo({top:0});\n}\nfunction markup(t){ return String(t).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/\\\\*([^*]+)\\\\*/g,\"<mark>$1</mark>\"); }\nfunction setTab(name){\n$(\"lTabs\").querySelectorAll(\"button\").forEach(b=>b.setAttribute(\"aria-selected\", b.dataset.tab===name?\"true\":\"false\"));\ndocument.querySelectorAll(\"#lesson .tabpanel\").forEach(p=>p.hidden = p.dataset.panel!==name);\n}\n$(\"lTabs\").querySelectorAll(\"button\").forEach(b=>b.addEventListener(\"click\",()=>setTab(b.dataset.tab)));\nfunction renderExtra(id){\nconst x = EXTRA[id];\n$(\"lTabs\").hidden = !x;\nsetTab(\"read\");\nif(!x) return;\nconst first = x.convo[0][0];\n$(\"lConvo\").innerHTML = x.convo.map(([who,es,en])=>\\`\n<button type=\"button\" class=\"bubble\\${who===first?\"\":\" r\"}\"><small>\\${who}</small><span>\\${markup(es)}</span><span class=\"en\" hidden>\\${markup(en)}</span></button>\\`).join(\"\");\n$(\"lConvo\").querySelectorAll(\".bubble\").forEach(b=>b.addEventListener(\"click\",()=>{ const e=b.querySelector(\".en\"); e.hidden=!e.hidden; }));\n$(\"lCards\").innerHTML = shuffle(x.cards).map(([f,bk])=>\\`<button type=\"button\" class=\"fcard\" data-f=\"\\${f.replace(/\"/g,\"&quot;\")}\" data-b=\"\\${bk.replace(/\"/g,\"&quot;\")}\">\\${f}</button>\\`).join(\"\");\n$(\"lCards\").querySelectorAll(\".fcard\").forEach(c=>c.addEventListener(\"click\",()=>{ const on=c.classList.toggle(\"flip\"); c.textContent = on?c.dataset.b:c.dataset.f; }));\nrenderPractice(id);\n}\nfunction renderPractice(id){\nconst x = EXTRA[id]; let answered=0, right=0;\n$(\"lQuizEnd\").hidden = true;\n$(\"lQuiz\").innerHTML = x.quiz.map((it,i)=>{\nconst order = shuffle(it.opts.map((_,k)=>k));\nreturn \\`<div class=\"pqi\" data-i=\"\\${i}\">\n\\${it.passage?\\`<div class=\"passage\" style=\"font-size:16px\">\\${markup(it.passage)}</div>\\`:\"\"}\n<div class=\"q\">\\${markup(it.q).replace(\"___\",'<span class=\"blank\"></span>')}</div>\n<div class=\"opts\">\\${order.map(k=>\\`<button type=\"button\" class=\"opt\" data-k=\"\\${k}\"><span>\\${markup(it.opts[k])}</span></button>\\`).join(\"\")}</div>\n<div class=\"why\" hidden>\\${markup(it.why)}</div></div>\\`;\n}).join(\"\");\n$(\"lQuiz\").querySelectorAll(\".pqi\").forEach(box=>{\nbox.querySelectorAll(\".opt\").forEach(b=>b.addEventListener(\"click\",()=>{\nif(box.dataset.done) return; box.dataset.done=\"1\";\nconst ok = b.dataset.k===\"0\"; answered++; if(ok) right++;\nb.classList.add(ok?\"right\":\"wrong\");\nif(!ok) box.querySelector('.opt[data-k=\"0\"]').classList.add(\"right\");\nbox.querySelector(\".why\").hidden=false;\nif(answered===x.quiz.length){ $(\"lQuizScore\").textContent = \\`\\${right} of \\${x.quiz.length} right\\`; $(\"lQuizEnd\").hidden=false; saveProg(id, right, x.quiz.length); }\n}));\n});\n$(\"lQuizAgain\").onclick = ()=>renderPractice(id);\n}\nfunction backToResults(){\n$(\"lesson\").hidden = true;\nif(state.from===\"library\"){ renderLibrary(); $(\"library\").hidden = false; }\nelse $(\"result\").hidden = false;\nwindow.scrollTo({top:state.scrollY||0});\n}\nconst PKEY = \"elbarrio-lessons-v1\";\nfunction getProg(){ try{ return JSON.parse(localStorage.getItem(PKEY)||\"{}\"); }catch(e){ return {}; } }\nfunction saveProg(id, right, total){\ntry{ const p = getProg(); if(!p[id] || right > p[id].r) p[id] = {r:right, t:total}; localStorage.setItem(PKEY, JSON.stringify(p)); }catch(e){}\n}\nconst RESOURCES = [\n{group:\"apps\", title:\"subjunctive trainer\", blurb:\"Drill the Spanish subjunctive with an interactive practice app.\", url:\"https://subjunctivetrainer.netlify.app/\", cta:\"open app\", topics:[\"subj\",\"subj-past\",\"c1-subj\"], lessonLabel:\"practice in the subjunctive trainer\"},\n{group:\"apps\", title:\"mexicanismos vol. 1\", blurb:\"Learn everyday Mexican slang and expressions.\", url:\"https://mexicanismospartone.netlify.app/\", cta:\"open app\", topics:[\"mexican\",\"c1-idioms\"], lessonLabel:\"practice in mexicanismos\"},\n{level:\"A2\", title:\"por vs. para\", blurb:\"Video lesson 1 on when to use por and when to use para.\", yt:\"ODLP528vVao\", topics:[\"por-para\"]},\n{level:\"A2\", title:\"por versus para in Spanish\", blurb:\"Video lesson 2, the long version of the companion reel.\", yt:\"HKDvcDZuUpM\", extra:{label:\"companion reel\", url:\"https://www.instagram.com/reel/DY2VfUJxPBb/\"}, topics:[\"por-para\"]},\n{level:\"A1\", title:\"different ways of saying OK in Mexican Spanish\", blurb:\"Video lesson 3 on the everyday ways to say OK.\", yt:\"urRcxn9g4s8\", topics:[\"vocab\",\"mexican\"]},\n{group:\"listen and download\", title:\"el barrio playlist\", blurb:\"Our Spanish playlist on Spotify.\", url:\"https://open.spotify.com/playlist/2bG3EfhklRAmTzFmea63TU\", cta:\"open in spotify\", topics:[]},\n{group:\"listen and download\", title:\"the road to fluency\", blurb:\"Download the road to fluency guide.\", url:\"https://professor-deggy.kit.com/3f48eb2260\", cta:\"download\", topics:[]}\n];\nconst resUrl = r => r.yt ? \"https://youtu.be/\"+r.yt : r.url;\nfunction videoCard(r){\nreturn \\`<div class=\"pcard vcard\">\n<a href=\"\\${resUrl(r)}\" target=\"_blank\" rel=\"noopener\" aria-label=\"watch \\${r.title}\"><img class=\"thumb\" src=\"https://i.ytimg.com/vi/\\${r.yt}/hqdefault.jpg\" alt=\"\" loading=\"lazy\" onerror=\"this.style.visibility='hidden'\"></a>\n<h3>\\${r.title}</h3><p>\\${r.blurb}</p>\n<div class=\"meta\"><span>video lesson</span><span class=\"go\" style=\"gap:14px\"><a href=\"\\${resUrl(r)}\" target=\"_blank\" rel=\"noopener\" style=\"color:inherit\">watch on youtube</a>\\${r.extra?\\`<a href=\"\\${r.extra.url}\" target=\"_blank\" rel=\"noopener\" style=\"color:inherit\">\\${r.extra.label}</a>\\`:\"\"}</span></div>\n</div>\\`;\n}\nfunction renderResources(){\nconst items = RESOURCES.filter(r=>!r.yt);\nconst groups = [...new Set(items.map(r=>r.group))];\n$(\"resList\").innerHTML = groups.map(g=>\\`<div class=\"stack\" style=\"gap:12px\"><div class=\"reshead\">\\${g}</div><div class=\"plan\">\\${\nitems.filter(r=>r.group===g).map(r=>\\`<div class=\"pcard rcard\">\n<h3>\\${r.title}</h3>\\${r.blurb?\\`<p>\\${r.blurb}</p>\\`:\"\"}\n<div class=\"sub\"><a href=\"\\${resUrl(r)}\" target=\"_blank\" rel=\"noopener\">\\${r.cta}</a></div>\n</div>\\`).join(\"\")}</div></div>\\`).join(\"\");\n}\nlet libLevel = \"all\";\nconst libOpen = {};\nconst LIB_PEEK = 2;\nconst CARET = '<svg viewBox=\"0 0 16 16\" width=\"14\" height=\"14\" aria-hidden=\"true\"><path d=\"M6 4l4 4-4 4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>';\nfunction renderLibrary(){\nconst prog = getProg();\nconst ids = Object.keys(TOPICS).filter(id=>LESSONS[id]);\n$(\"libTabs\").innerHTML = [\"all\"].concat(LEVELS.map(l=>l.code)).map(c=>\n\\`<button type=\"button\" role=\"tab\" data-lv=\"\\${c}\" aria-selected=\"\\${c===libLevel}\"\\${c===\"all\"?\"\":' class=\"lvl\"'}>\\${c===\"all\"?\"all levels\":c}</button>\\`).join(\"\");\n$(\"libTabs\").querySelectorAll(\"button\").forEach(b=>b.addEventListener(\"click\",()=>{ libLevel=b.dataset.lv; renderLibrary(); }));\nconst lessonCard = (id, cls=\"\")=>{\nconst t = TOPICS[id], x = EXTRA[id], pr = prog[id];\nconst left = pr ? \\`<span class=\"done\">✓ practice \\${pr.r} of \\${pr.t}</span>\\` : \\`<span>\\${x?x.quiz.length+\" practice questions\":\"read\"}</span>\\`;\nreturn \\`<button class=\"pcard\\${cls}\" type=\"button\" data-topic=\"\\${id}\"><h3>\\${t.title}</h3><p>\\${t.blurb}</p>\n<div class=\"meta\">\\${left}<span class=\"go\">open the lesson</span></div></button>\\`;\n};\n$(\"libList\").innerHTML = LEVELS.filter(L=>libLevel===\"all\"||L.code===libLevel).map(L=>{\nconst list = ids.filter(id=>TOPICS[id].level===L.code);\nconst vids = RESOURCES.filter(r=>r.yt && r.level===L.code);\nif(!list.length && !vids.length) return \"\";\nconst grids = (ls, vs) => {\nif(!ls.length && !vs.length) return \"\";\nconst odd = vs.length && ls.length%2;\nconst full = odd ? ls.slice(0,-1) : ls;\nlet out = full.length ? \\`<div class=\"plan\">\\${full.map(id=>lessonCard(id)).join(\"\")}</div>\\` : \"\";\nif(vs.length){\nconst tail = (odd ? [[1, lessonCard(ls[ls.length-1])]] : []).concat(vs.map(v=>[2.7, videoCard(v)]));\nconst cols = [[],[]], h = [0,0];\ntail.forEach(([w,html],i)=>{ const c = h[1]<h[0] ? 1 : 0; cols[c].push(html.replace(/^<(\\\\w+) class=\"/, \\`<$1 style=\"order:\\${i}\" class=\"\\`)); h[c] += w; });\nout += \\`<div class=\"plan mason\">\\${cols.map(c=>\\`<div class=\"mcol\">\\${c.join(\"\")}</div>\\`).join(\"\")}</div>\\`;\n}\nreturn out;\n};\nconst count = \\`\\${list.length} lesson\\${list.length===1?\"\":\"s\"}\\${vids.length?\\` \\xb7 \\${vids.length} video\\${vids.length===1?\"\":\"s\"}\\`:\"\"}\\`;\nconst canFold = libLevel===\"all\" && list.length+vids.length>LIB_PEEK;\nconst head = \\`<div class=\"libhead\"><span class=\"lvl\">\\${L.code}</span><h2>\\${L.short}</h2><span class=\"n\">\\${count}</span></div>\\`;\nif(!canFold) return \\`<div class=\"libgroup\" id=\"lib-\\${L.code}\">\\${head}<div class=\"foldwrap\">\\${grids(list, vids)}</div></div>\\`;\nconst open = !!libOpen[L.code], rest = list.length+vids.length-LIB_PEEK;\nconst peekL = list.slice(0,LIB_PEEK), peekV = vids.slice(0, Math.max(0, LIB_PEEK-peekL.length));\nreturn \\`<div class=\"libgroup\" id=\"lib-\\${L.code}\">\\${head}\n<div class=\"foldwrap\">\\${grids(peekL, peekV)}\n<div class=\"fold\\${open?\" open\":\"\"}\"><div class=\"fold-in\">\\${grids(list.slice(LIB_PEEK), vids.slice(peekV.length))}</div></div></div>\n<button class=\"toggle\" type=\"button\" data-more=\"\\${L.code}\" data-rest=\"\\${rest}\" aria-expanded=\"\\${open}\">\\${CARET}<span>\\${open?\"show less\":\\`\\${rest} more\\`}</span></button></div>\\`;\n}).join(\"\");\n$(\"libList\").querySelectorAll(\".toggle\").forEach(b=>b.addEventListener(\"click\",()=>{\nconst c=b.dataset.more, open=!libOpen[c]; libOpen[c]=open;\nb.setAttribute(\"aria-expanded\", open);\nb.querySelector(\"span\").textContent = open ? \"show less\" : \\`\\${b.dataset.rest} more\\`;\nb.previousElementSibling.querySelector(\".fold\").classList.toggle(\"open\", open);\n}));\n$(\"libList\").querySelectorAll(\"button.pcard\").forEach(b=>b.addEventListener(\"click\",()=>{ state = state || {log:[]}; state.scrollY = window.scrollY; openTopic(b.dataset.topic, \"library\"); }));\n}\nfunction showLibrary(){\nif(!state) state = {log:[]};\nrenderResources();\n[\"start\",\"quiz\",\"result\",\"lesson\"].forEach(k=>$(k).hidden = true);\nrenderLibrary(); $(\"library\").hidden = false;\nwindow.scrollTo({top:0});\n}\n$(\"backTop\").addEventListener(\"click\", backToResults);\n$(\"backBottom\").addEventListener(\"click\", backToResults);\n$(\"dlgClose\").addEventListener(\"click\", ()=>{ $(\"lockDlg\").hidden = true; });\n$(\"lockDlg\").addEventListener(\"click\", e=>{ if(e.target.id===\"lockDlg\") $(\"lockDlg\").hidden = true; });\ndocument.addEventListener(\"keydown\", e=>{ if(e.key===\"Escape\") $(\"lockDlg\").hidden = true; });\ndocument.querySelectorAll(\"[data-join]\").forEach(a=>a.href = JOIN_URL);\n$(\"go\").addEventListener(\"click\", start);\n$(\"again\").addEventListener(\"click\", start);\n$(\"idk\").addEventListener(\"click\", ()=>answer(-1, null));\ndocument.addEventListener(\"keydown\", e=>{\nif($(\"quiz\").hidden) return;\nconst n = parseInt(e.key,10);\nif(n>=1 && n<=4){\nconst b = $(\"qOpts\").querySelectorAll(\".opt\")[n-1];\nif(b) b.click();\n}\n});\nrenderTrack($(\"trackStart\"), {});\n$(\"library\").prepend(document.querySelector(\"#start .logo\").cloneNode());\n$(\"libTest\").addEventListener(\"click\", start);\n$(\"toLib\").hidden = MODE!==\"open\";\n$(\"toLib\").addEventListener(\"click\", showLibrary);\nif(VIEW===\"library\") showLibrary();</script>\n</body>\n</html>\n`;/**\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 900\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LevelTestMembers(props){const{joinUrl,view,style}=props;const html=React.useMemo(()=>{let page=PAGE.replace(\"__LOGO__\",LOGO);if(joinUrl)page=page.replace('const JOIN_URL = \"https://professordeggy.com\";',\"const JOIN_URL = \"+JSON.stringify(joinUrl)+\";\");if(view===\"library\")page=page.replace('const VIEW = \"test\";','const VIEW = \"library\";');return page;},[joinUrl,view]);return /*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",background:\"#FFFFFF\"},children:/*#__PURE__*/_jsx(\"iframe\",{title:view===\"library\"?\"el barrio lessons\":\"spanish level test\",srcDoc:html,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",border:0,display:\"block\"}})});}addPropertyControls(LevelTestMembers,{joinUrl:{type:ControlType.String,title:\"Join link\",defaultValue:\"https://professordeggy.com\"},view:{type:ControlType.Enum,title:\"Opens on\",options:[\"test\",\"library\"],optionTitles:[\"Level test\",\"Lesson library\"],defaultValue:\"test\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LevelTestMembers\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1200\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"900\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LevelTestMembers.map"],"mappings":"A,0KAylCG,SAAwBS,EAAiB,EAAM,CAAC,GAAK,CAAC,UAAQ,OAAK,SAAOC,EAAYC,EAAKX,MAAkB,CAAC,IAAIY,EAAKC,EAAK,QAAQ,WAAWC,CAAI,EAAyN,OAApNC,IAAQ,EAAKH,EAAK,QAAQ,iDAAiD,oBAAoB,KAAK,UAAUG,CAAO,EAAE,GAAG,GAAKC,IAAO,YAAU,EAAKJ,EAAK,QAAQ,uBAAuB,yBAAyB,GAASA,CAAK,EAAE,CAACG,EAAQC,CAAI,CAAC,EAAE,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGC,EAAM,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,WAAW,SAAS,EAAE,SAAsB,gBAAK,SAAS,CAAC,MAAMD,IAAO,UAAU,oBAAoB,qBAAqB,OAAOL,EAAK,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,OAAO,EAAE,QAAQ,OAAO,CAAC,CAAC,CAAC,CAAC,CAAE,C,kDAvlCrmB,EAAK,65CAAs6C,EAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAulC10BH,EAAoBC,EAAiB,CAAC,QAAQ,CAAC,KAAKF,EAAY,OAAO,MAAM,YAAY,aAAa,4BAA4B,EAAE,KAAK,CAAC,KAAKA,EAAY,KAAK,MAAM,WAAW,QAAQ,CAAC,OAAO,SAAS,EAAE,aAAa,CAAC,aAAa,gBAAgB,EAAE,aAAa,MAAM,CAAC,CAAC,C"}