1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7549],{11241:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});var r=n(14232),i=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1],i=(0,r.useCallback)(function(e){return function(r){t?r.preventDefault():(n(!0),null==e||e(r))}},[t]);return{isDisabled:t,handleClick:i}}},15071:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>eA});var r=n(63857),i=n(42969),a=n(60180),o=n.n(a),l=n(14232),s=n(64191),c=n(89099),d=n(77328),u=n.n(d),m=n(5720),f=n(99634),p=n(26900),_=n(74359),h=n(48278),v=n(11322),g=n(77226),b=n(53403),y=n(68567),w=n(43526),x=n(34451),k=n(32217),O=n(12727),j=n(53553),A=n(69152),z=n(4724),S=n(99500),P=n(4285),L=n(63521),C=n(26137),I=n(81523),E=n(17852),N=n(85289),M=n(20993),R=n(5646),T=n(90316),D=n(98245),H=R.Ay.div.withConfig({componentId:"sc-1h6pbyf-0"})(["width:100vw;height:100dvh;display:flex;align-items:center;justify-content:center;"]),F=(0,R.Ay)(T.A).withConfig({componentId:"sc-1h6pbyf-1"})(function(e){var t=e.theme;return(0,R.AH)(["max-height:",";margin:auto;display:block;"],t.sz.s40)}),W=R.Ay.div.withConfig({componentId:"sc-1h6pbyf-2"})(function(e){var t=e.theme;return(0,R.AH)(["align-items:center;display:flex;height:100%;min-height:100dvh;@media (max-width:","){min-height:unset;}"],t.sz.md)}),U=(0,R.Ay)(D.A).withConfig({componentId:"sc-1h6pbyf-3"})(function(e){var t=e.theme;return(0,R.AH)(["display:flex;gap:",";padding:"," ",";@media (max-width:1440px){max-width:1000px;}"],t.sz.s6,t.sz.s2,t.sz.s4)}),B=n(96557),V=n(66185),q=n(66978),Z=n(11241),$=n(99539),K=n(92148),G=(0,m.YK)({header:{id:"onboarding_skill_selection_header_focus",defaultMessage:"Which sounds most like you?"},subheader:{id:"onboarding_skill_selection_subheader_focus",defaultMessage:"Choose what best describes what you can do today."},pathHeader:{id:"onboarding_skill_selection_header_path",defaultMessage:"Choose your course starting level"},pathSubheader:{id:"onboarding_skill_selection_subheader_path",defaultMessage:"Pick the option that describes you best."},changeLaterNote:{id:"onboarding_skill_selection_change_later_focus",defaultMessage:"You can always change this later"},next:{id:"Next"},back:{id:"web_header_back"},level0Name:{id:"onboarding_skill_level_0_name_focus",defaultMessage:"Iâm just starting out"},level0Description:{id:"onboarding_skill_level_0_description_focus",defaultMessage:"I recognise basic words and phrases."},level1Name:{id:"onboarding_skill_level_1_name_focus",defaultMessage:"I understand more than I can say"},level1Description:{id:"onboarding_skill_level_1_description_focus",defaultMessage:"I understand useful everyday language, but speaking is harder."},level2Name:{id:"onboarding_skill_level_2_name_focus",defaultMessage:"I can have simple conversations"},level2Description:{id:"onboarding_skill_level_2_description_focus",defaultMessage:"I can go back and forth on familiar, everyday topics."},level3Name:{id:"onboarding_skill_level_3_name_focus",defaultMessage:"I can hold my own in conversation"},level3Description:{id:"onboarding_skill_level_3_description_focus",defaultMessage:"I can follow longer conversations and express myself, even if I donât always sound natural."}}),Y={0:{name:G.level0Name,description:G.level0Description},1:{name:G.level1Name,description:G.level1Description},2:{name:G.level2Name,description:G.level2Description},3:{name:G.level3Name,description:G.level3Description}},Q=n(15644),X=n(71109),J=R.Ay.div.withConfig({componentId:"sc-1tngzkp-0"})(function(e){var t=e.theme;return(0,R.AH)(["display:flex;flex-direction:column;align-items:center;gap:",";max-width:",";margin:auto;padding-bottom:",";width:100%;@media (max-width:","){align-items:start;gap:",";padding-bottom:",";}"],t.sz.s8,t.sz.sm,t.sz.s32,t.sz.md,t.sz.s4,t.sz.s40)}),ee=R.Ay.div.withConfig({componentId:"sc-1tngzkp-1"})(function(e){var t=e.theme;return(0,R.AH)(["text-align:center;color:",";width:max-content;",";@media (max-width:","){width:auto;padding-top:",";",";}@media (max-width:","){text-align:left;}"],t.co.secondary0,t.typography.heading.desktop.m,t.sz.md,t.sz.s3,t.typography.heading.mobile.s,t.sz.sm)}),et=R.Ay.div.withConfig({componentId:"sc-1tngzkp-2"})(function(e){var t=e.theme;return(0,R.AH)(["text-align:center;color:",";margin-top:",";",";@media (max-width:","){",";}@media (max-width:","){text-align:left;}"],t.co.secondary30,t.sz.s3,t.typography.heading.desktop.xxs,t.sz.md,t.typography.heading.mobile.xs,t.sz.
1sm)}),en=X.U,er=R.Ay.div.attrs(Q.ft).withConfig({componentId:"sc-1tngzkp-3"})(function(e){var t=e.theme;return(0,R.AH)(["width:",";"],t.sz.s6)}),ei=R.Ay.div.withConfig({componentId:"sc-1tngzkp-4"})(function(e){var t=e.theme;return(0,R.AH)(["display:flex;flex-direction:column;align-items:flex-start;text-align:start;gap:",";"],t.sz.s1)}),ea=R.Ay.div.withConfig({componentId:"sc-1tngzkp-5"})(function(e){var t=e.theme;return(0,R.AH)(["color:",";",";@media (max-width:","){",";}"],t.co.secondary0,t.typography.heading.desktop.xxs,t.sz.md,t.typography.heading.mobile.xxs)}),eo=R.Ay.div.withConfig({componentId:"sc-1tngzkp-6"})(function(e){var t=e.theme;return(0,R.AH)(["color:",";",";"],t.co.secondary30,t.typography.paragraph.s)}),el=R.Ay.div.withConfig({componentId:"sc-1tngzkp-7"})(function(e){var t=e.theme;return(0,R.AH)(["display:flex;flex-direction:column;align-items:center;gap:",";width:100%;margin:auto;"],t.sz.s2)}),es=R.Ay.button.withConfig({componentId:"sc-1tngzkp-8"})(function(e){var t=e.theme,n=e.$selected;return(0,R.AH)(["position:relative;display:flex;align-items:flex-start;flex-direction:row;gap:",";border-radius:",";box-shadow:"," "," "," "," ",";border:1px solid ",";padding:",";cursor:pointer;background-color:",";text-align:start;width:100%;@media (max-width:","){gap:",";}&:hover{background-color:",";}"],t.sz.s4,t.bo.medium,t.sz.s0,t.sz.s1,t.sz.s0,t.sz.s0,n?t.co.success50:t.co.secondary90,n?t.co.success40:t.co.secondary90,t.sz.s3,n?t.co.success95:t.co.neutral99,t.sz.sm,t.sz.s2,n?t.co.success95:t.co.neutral98)}),ec=n(37876);function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var em=function(e){return(0,ec.jsx)("svg",eu(eu({},e),{},{children:(0,ec.jsx)("path",{fill:"#04bc88",d:"M19.909 7.767c-.008-.698-.442-1.297-1.075-1.591l-6.077-2.823a2 2 0 0 0-1.76.036L5.085 6.441c-.596.308-.998.891-1.003 1.562-.018 2.748.621 10.036 7.615 12.864.213.085.45.085.663 0 6.977-2.822 7.583-10.266 7.549-13.1"})}))};em.defaultProps={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};var ef=function(e){return(0,ec.jsxs)("svg",eu(eu({},e),{},{children:[(0,ec.jsx)("path",{fill:"#04bc88",d:"M20.846 6.345c-.018-.694-.445-1.29-1.072-1.586l-7.87-3.73a2 2 0 0 0-1.789.037l-7.652 4.03c-.59.31-.985.889-.998 1.556-.064 3.19.514 12.72 9.325 16.356.26.106.552.106.812 0 8.793-3.627 9.326-13.367 9.244-16.663"}),(0,ec.jsx)("path",{fill:"#fff",d:"M8.238 9.578 8.21 7.996c-.005-.317.142-.47.425-.474l.233-.004c.716-.013 1.208-.454 1.53-1.076.178-.32.377-.373.627-.378l1.299-.022c.25-.005.42.176.423.392l.19 10.84c.004.25-.16.42-.41.424l-2.081.037c-.25.004-.42-.16-.424-.41l-.128-7.36-1.232.022c-.25.004-.42-.16-.424-.41"})]}))};ef.defaultProps={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 24"};var ep=function(e){return(0,ec.jsxs)("svg",eu(eu({},e),{},{children:[(0,ec.jsx)("path",{fill:"#04bc88",d:"M20.846 6.345c-.018-.694-.445-1.29-1.072-1.586l-7.87-3.73a2 2 0 0 0-1.789.037l-7.652 4.03c-.59.31-.985.889-.998 1.556-.064 3.19.514 12.72 9.325 16.356.26.106.552.106.812 0 8.793-3.627 9.326-13.367 9.244-16.663"}),(0,ec.jsx)("path",{fill:"#fff",d:"m14.95 16.97-7.326.127a.38.38 0 0 1-.381-.368l-.026-1.484c-.008-.422.192-.613.3-.693l2.88-2.41c1.233-1.021 1.923-1.736 1.908-2.596-.013-.765-.615-1.208-1.349-1.195-.906.016-1.362.727-1.526 1.23-.163.456-.379.647-.803.514l-1.43-.444c-.267-.105-.396-.321-.339-.62.349-1.505 1.696-3.123 4.164-3.166 2.25-.04 4.053 1.226 4.093 3.492.031 1.812-1.508 3.182-2.817 4.252l-1.279 1.038 3.89-.068a.36.36 0 0 1 .381.369l.029 1.64a.36.36 0 0 1-.368.381"})]}))};ep.defaultProps={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 24"};var e_=function(e){return(0,ec.jsxs)("svg",eu(eu({},e),{},{children:[(0,ec.jsx)("path",{fill:"#04bc88",d:"M20.846 6.345c-.018-.694-.445-1.29-1.072-1.586l-7.87-3.73a2 2 0 0 0-1.789.037l-7.652 4.03c-.59.31-.985.889-.998 1.556-.064 3.19.514 12.72 9.325 16.356.26.106.552.106.812 0 8.793-3.627 9.326-13.367 9.244-16.663"}),(0,ec.jsx)("path",{fill:"#fff",d:"m10.689 10.418.31-.006c.651-.011 1.265-.38 1.252-1.098-.011-.636-.524-1.034-1.192-1.023-.766.014-1.163.624-1.384 1.035-.141.313-.352.365-.599.255l-1.51-.593c-.312-.125-.414-.351-.305-.663.42-1.1 1.637-2.425 3.984-2.466 2.086-.037 3.72 1.092 3.753 2.95.018 1.027-.57 1.935-1.477 2.276 1.163.322 2.156 1.153 2.185 2.816.041 2.347-1.857 3.815-4.465 3.86-2.673.047-4.624-1.5-4.664-3.782l-.005-.278c-.004-.212.172-.394.417-.398l2.054-.036c.244-.004.427.172.43.384l.002.081c.016.913.615 1.604 1.707 1.585 1.043-.019 1.57-.664 1.557-1.38-.013-.734-.593-1.295-1.636-1.277l
1-.391.007a.39.39 0 0 1-.399-.4l-.024-1.419c-.005-.244.155-.426.4-.43"})]}))};e_.defaultProps={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 24"};var eh=function(e){return(0,ec.jsxs)("svg",eu(eu({},e),{},{children:[(0,ec.jsx)("path",{fill:"#04bc88",d:"M20.846 6.345c-.018-.694-.445-1.29-1.072-1.586l-7.87-3.73a2 2 0 0 0-1.789.037l-7.652 4.03c-.59.31-.985.889-.998 1.556-.064 3.19.514 12.72 9.325 16.356.26.106.552.106.812 0 8.793-3.627 9.326-13.367 9.244-16.663"}),(0,ec.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"m6.76 14.757 4.666-.082.041 2.39c.005.244.17.404.414.4l2.065-.037c.244-.004.42-.17.416-.413l-.042-2.39.96-.017c.243-.005.403-.17.399-.414l-.027-1.496c-.004-.244-.17-.403-.413-.399l-.96.017-.102-5.886c-.004-.211-.186-.387-.43-.383l-2.91.051c-.277.005-.437.138-.563.335L6.56 11.735c-.237.378-.248.687-.241 1.061l.027 1.561c.004.244.17.404.413.4m4.626-2.39-2.52.043 2.458-3.572z",clipRule:"evenodd"})]}))};eh.defaultProps={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 24"};var ev=function(e){return(0,ec.jsxs)("svg",eu(eu({},e),{},{children:[(0,ec.jsx)("path",{fill:"#04bc88",d:"M20.846 6.345c-.018-.694-.445-1.29-1.072-1.586l-7.87-3.73a2 2 0 0 0-1.789.037l-7.652 4.03c-.59.31-.985.889-.998 1.556-.064 3.19.514 12.72 9.325 16.356.26.106.552.106.812 0 8.793-3.627 9.326-13.367 9.244-16.663"}),(0,ec.jsx)("path",{fill:"#fff",d:"M11.13 17.673c-1.786.03-3.236-.655-4.094-1.763-.194-.25-.088-.52.146-.714l1.074-.967c.358-.323.662-.107.84.064.369.357 1.074.914 1.912.9.996-.018 1.745-.6 1.73-1.485-.017-.949-.847-1.377-1.637-1.363a2.2 2.2 0 0 0-1.335.513.5.5 0 0 1-.41.102l-1.793-.364q-.31-.066-.29-.374l.269-5.397c.011-.237.167-.398.404-.402l6.433-.112c.237-.004.398.15.402.388l.03 1.739c.005.237-.15.398-.388.402l-4.647.08L9.68 10.6c.578-.374 1.255-.56 2.03-.573 1.96-.035 3.816 1.245 3.857 3.569.037 2.134-1.67 4.03-4.436 4.078"})]}))};ev.defaultProps={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 22 24"};var eg=(0,m.YK)({header:{id:"onboarding_skill_selection_header_simplified"},subheader:{id:"onboarding_skill_selection_subheader_simplified"}}),eb={l0:em,l1:ef,l2:ep,l3:e_,l4:eh,l5:ev},ey=function(e){var t=eb[e.name];return(0,ec.jsx)(q.g,{Svg:t})},ew=function(e){var t,n=e.flagUrl,r=e.language,i=e.skillLevels,a=e.onSelect,o=e.onSelect0,s=e.isNewOnboardingFlow,c=void 0!==s&&s,d=e.isPathExperience,u=void 0!==d&&d,f=e.hasNativeSpeakerIntro,p=void 0!==f&&f,_=e.onPrevious,h=(0,m.tz)(),v=(0,B.Ub)({maxWidth:V.A.sz.md}),g=(0,Z.R)(),b=g.isDisabled,y=g.handleClick,w=(0,l.useState)(0),x=w[0],k=w[1],O=(0,l.useRef)(x);O.current=x;var j=u?G.pathHeader:G.header,A=u?G.pathSubheader:G.subheader,z=h.formatMessage(c?j:eg.header),S=h.formatMessage(c?A:eg.subheader),P=y(function(){var e=null==i?void 0:i[O.current];if(e){if(null===e.skillLevelId)return void o();a(e.skillLevelId)}}),L=function(){return P({})};return(0,K.g)({enabled:c&&!b,optionCount:null!=(t=null==i?void 0:i.length)?t:0,onSelectIndex:function(e){O.current=e,k(e)},onNext:L}),(0,ec.jsxs)(J,{"data-testid":"level-select",children:[c&&(0,ec.jsx)(C.So,{currentStep:p?C.We+1:1,totalSteps:p?C._e:C.fm}),n&&!v&&(0,ec.jsx)(en,{src:n,alt:void 0===r?"":r,"data-testid":"flag"}),(0,ec.jsxs)("div",{children:[(0,ec.jsx)(ee,{"data-testid":"level-select-header",children:z}),(0,ec.jsx)(et,{"data-testid":"level-select-subheader",children:S})]}),(0,ec.jsx)(el,{children:null==i?void 0:i.map(function(e,t){var n=e.name,r=e.description,i=e.skillLevelId,l=c?Y[t]:void 0,s=l?h.formatMessage(l.name):n,d=l?h.formatMessage(l.description):r;return(0,ec.jsxs)(es,{type:"button",$selected:c&&x===t,onClick:c?function(){return k(t)}:y(function(){return null===i?o():a(i)}),disabled:!c&&b,"data-testid":"level-select-button-".concat(t),children:[(0,ec.jsx)(er,{"data-testid":"level-icon",children:(0,ec.jsx)(ey,{name:"l".concat(t)})}),(0,ec.jsxs)(ei,{children:[(0,ec.jsx)(ea,{children:s}),(0,ec.jsx)(eo,{children:d})]})]},n)})}),c&&(0,ec.jsx)($.e,{onNext:L,nextLabel:h.formatMessage(G.next),onPrevious:p?_:void 0,previousLabel:h.formatMessage(G.back),nextDisabled:b,nextTestId:"level-select-next",previousTestId:"level-select-previous",note:h.formatMessage(G.changeLaterNote)})]})};function ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ek=(0,m.YK)({header:{id:"sizzle_reel_header"}}),eO=function(e,t,n){var r={};return e&&(r.skill_level=e),t&&(r[E.y]=E.m),n&&(r[C.N1]="true"),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ex(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({pathname:b.b.wordlists.select},Object.keys(r).length>0?{query:r}:{})},ej=function(){var e,t,n,i,a=(0,c.useRouter)(),s=(0,y.A)().safePush,d=a.query,u=d.source,m=d.origin,E=d.plans,R=d.next,T=d[C.N1],D=(0,h.S)(),B=(0,P.hF)().experienceType,V=(0,l.useState)(),q=V[0],Z=V[1],$=(0,l.useState)(),K=$[0],G=$[1],Y=(0,f.u)().user,Q="2025"===B,X="true"===T,J=(0,_.I)({queryKey:["skillFrameworks",D],queryFn:function(){return D?p.EN.getSkillFrameworks(D):null}}).data;(0,l.useEffect)(function(){var e;null!=J&&null!=(e=J.skillFrameworks)&&e.length&&Z(J.skillFrameworks[0].skillFrameworkId)},[q,null==J?void 0:J.skillFrameworks]);var ee=(0,_.I)({queryKey:["skillLevels",D,q],queryFn:function(){return D&&q?p.EN.getSkillLevels(D,q):null},enabled:!!q}).data,et=null!=(e=(0,z.Rc)(L.Vd))?e:"string"==typeof u?u:null,en=(0,z.Rc)(L.pR),er=(0,I.h)(D),ei=er.isEligibleForPathways,ea=er.isEligibleFor2026Onboarding,eo=er.isEligibleForTracksAndThemes,el=er.isLoading,es=ea&&(null!=(t=null==ee||null==(n=ee.skillLevels)?void 0:n.length)?t:0)===4,ed=(0,l.useMemo)(function(){return Q?eO(K,es,X):"true"===E?{pathname:b.b.onboarding.choosePlan}:(0,O.VV)(null==R?void 0:R.toString())},[X,Q,K,E,R,es]);(0,l.useEffect)(function(){p.mq.trackUserAction("screen_viewed","language_level_selection_screen",D,!!(null!=Y&&Y.isPro))},[]),(0,l.useEffect)(function(){"onboarding"===m&&null!=Y&&Y.id&&Q&&(0,k.wG)(A.dX,String(Y.id))},[m,null==Y?void 0:Y.id,Q]);var eu=(0,_.I)({queryKey:["pathsOverview",u],queryFn:function(){return p.s2.getPathsOverview({source_language_locale:u})},enabled:!!u}).data,em=null==eu||null==(i=eu.paths)?void 0:i.find(function(e){return e.languagePairId===D});return((0,l.useEffect)(function(){null!=J&&J.skillFrameworks&&Y&&B&&0===J.skillFrameworks.length&&s(ed)},[ed,m,s,null==J?void 0:J.skillFrameworks,Y,B]),Y&&J&&ee&&!el)?(0,ec.jsxs)(W,{children:[(0,ec.jsx)(M.A,{}),(0,ec.jsx)(U,{$centerAlignItems:!0,children:(0,ec.jsx)(ew,{flagUrl:null==em?void 0:em.flagUrl,language:null==em?void 0:em.targetLanguageName,isNewOnboardingFlow:es,isPathExperience:ei,hasNativeSpeakerIntro:X,onPrevious:X?function(){var e;et&&s((0,w.f)(b.b.onboarding.nativeSpeakerVideo,{source:et,step:(0,x.U9)(et,null!=(e=null==em?void 0:em.targetLanguageLocale)?e:en)?"fullscreen":"complete"}))}:void 0,onSelect:function(e){G(e),p.mq.trackUserAction("clicked_language_level_button","language_level_selection_screen",D,!!(null!=Y&&Y.isPro),{level:String(e)});var t,n,r=null==ee||null==(t=ee.skillLevels)?void 0:t.find(function(t){return t.skillLevelId===e});D&&q&&e&&!eo&&p.sl.postSkillLevelSelection(D,{skill_framework_id:q,skill_level_id:e}).catch(function(e){(0,j.W)(e instanceof Error?e:Error(String(e)),{})});var i=null==ee||null==(n=ee.skillLevels)?void 0:n.findIndex(function(e){return e.skillLevelId===(null==r?void 0:r.skillLevelId)});es&&D&&"number"==typeof i&&i>=0&&(0,N.pz)(D,i),i&&null!=ee&&ee.skillLevels&&((0,v.YH)({event:{schema:g.Ng,data:{skill_level:4===(null==ee?void 0:ee.skillLevels.length)?({0:"learn_from_scratch",1:"beginner",2:"elementary",3:"intermediate"})[i]:({0:"learn_from_scratch",1:"skip_learning_the_alphabet",2:"beginner",3:"elementary",4:"intermediate"})[i],skill_level_id:e}},context:[(0,g.NX)(Y.id,Y.isPro,Y.dateJoined,Y.username),(0,g.qL)(D)]}),"2025"===B&&(0,k.cw)(A.Gw,String(Y.id))),s(Q?eO(e,es,X):"true"===E?{pathname:b.b.onboarding.choosePlan}:(0,O.VV)(null==R?void 0:R.toString()))},onSelect0:(0,r.A)(o().mark(function e(){var t,n;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:p.mq.trackUserAction("clicked_language_level_button","language_level_selection_screen",D,!!(null!=Y&&Y.isPro),{level:"0"}),(0,S.nd)()&&(0,z.lS)(A.zF,"true"),n=null==ee||null==(t=ee.skillLevels)?void 0:t.findIndex(function(e){return null===e.skillLevelId}),es&&D&&"number"==typeof n&&n>=0&&(0,N.pz)(D,n),(0,v.YH)({event:{schema:g.Ng,data:{skill_level:"learn_from_scratch",skill_level_id:null}},context:[(0,g.NX)(Y.id,Y.isPro,Y.dateJoined,Y.username),(0,g.qL)(D)]}),s(ed);case 6:case"end":return e.stop()}},e)})),skillLevels:null==ee?void 0:ee.skillLevels})})]}):(0,ec.jsx)(H,{children:(0,ec.jsx)(F,{})})};let eA=function(){var e=(0,m.tz)();return(0,ec.jsxs)(ec.Fragment,{children:[(0,ec.jsx)(u(),{children:(0,ec.jsxs)("title",{children:[e.formatMessage(ek.header)," - Memrise"]})}),(0,ec.jsx)(s.co,{children:(0,ec.jsx)(ej,{})})]})}},15410:(e,t,n)=>{"use strict";var r=n(83095);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?i(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0});var o={default:function(){return m},noSSR:function(){return u}};for(var l in o)Object.defineProperty(t,l,{enumerable:!0,get:o[l]});var s=n(64252);n(37876),n(14232);var c=s._(n(73477));function d(e){return{default:(null==e?void 0:e.default)||e}}function u(e,t){return delete t.webpack,delete t.modules,e(t)}function m(e,t){var n=c.default,r={loading:function(e){return e.error,e.isLoading,e.pastDelay,null}};e instanceof Promise?r.loader=function(){return e}:"function"==typeof e?r.loader=e:"object"==typeof e&&(r=a(a({},r),e));var i=(r=a(a({},r),t)).loader;return(r.loadableGenerated&&(r=a(a({},r),r.loadableGenerated),delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n(a(a({},r),{},{loader:function(){return null!=i?i().then(d):Promise.resolve(d(function(){return null}))}})):(delete r.webpack,delete r.modules,u(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17852:(e,t,n)=>{"use strict";n.d(t,{m:()=>i,y:()=>r});var r="onboarding_flow",i="focus"},18847:(e,t,n)=>{e.exports=n(15410)},20993:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(14232),i=n(18847),a=n.n(i),o=n(5646),l=n(2553),s=o.Ay.button.withConfig({componentId:"sc-uy8l55-0"})(function(e){var t=e.theme;return(0,o.AH)(["position:fixed;width:",";height:",";top:",";right:",";border-radius:",";background-color:",";border:none;z-index:",";&:hover{cursor:pointer;}"],t.sz.s12,t.sz.s12,t.sz.s20,t.sz.s4,t.sz.s2,t.co.secondary20,t.zi.debug)}),c=(0,o.Ay)(l.A).withConfig({componentId:"sc-uy8l55-1"})(function(e){var t=e.theme;return(0,o.AH)(["font-size:",";color:",";"],t.DEPRECATED_ty.largest,t.co.neutral99)}),d=n(37876);let u=function(e){var t=e.className,n=e.onClick;return(0,d.jsx)(s,{onClick:n,"data-testid":"devToolsButton",title:"Toggle dev tools","aria-label":"Toggle dev tools",className:t,children:(0,d.jsx)(c,{name:"devTools"})})};var m=n(59647),f=a()(function(){return Promise.all([n.e(4559),n.e(1988)]).then(n.bind(n,51988))},{loadableGenerated:{webpack:function(){return[51988]}}});let p=function(e){var t=e.page,n=e.sessionType,i=e.languagePairId,a=e.className,o=e.setCountry,l=(0,r.useState)(!1),s=l[0],c=l[1],p=(0,r.useState)(!1),_=p[0],h=p[1],v=(0,r.useCallback)(function(){h(!0),c(function(e){return!e})},[c]);return(0,m.P)()?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u,{onClick:v,className:a}),_&&(0,d.jsx)(f,{isOpen:s,handleClose:v,page:t,sessionType:n,languagePairId:i,setCountry:o})]}):null}},26137:(e,t,n)=>{"use strict";n.d(t,{N1:()=>u,We:()=>s,So:()=>f,fm:()=>c,_e:()=>d});var r=n(5720),i=n(5646),a=i.Ay.div.withConfig({componentId:"sc-1uw1uzw-0"})(function(e){var t=e.theme;return(0,i.AH)(["display:flex;align-items:center;justify-content:center;gap:",";padding:"," "," ",";width:100%;"],t.sz.s2,t.sz.s4,t.sz.s4,t.sz.s2)}),o=i.Ay.div.withConfig({componentId:"sc-1uw1uzw-1"})(function(e){var t=e.theme,n=e.$status;return(0,i.AH)(["border-radius:",";background-color:",";width:",";height:",";transition:width 150ms ease,height 150ms ease,background-color 150ms ease;"],t.bo.round,"unseen"===n?t.co.secondary90:t.co.secondary30,"current"===n?t.sz.s3:t.sz.s2,"current"===n?t.sz.s3:t.sz.s2)}),l=n(37876),s=5,c=4,d=9,u="native_speaker_intro",m=(0,r.YK)({label:{defaultMessage:"Onboarding progress",id:"onboarding_progress_indicator_label"}}),f=function(e){var t=e.currentStep,n=e.totalSteps,i=void 0===n?c:n,s=(0,r.tz)();return(0,l.jsx)(a,{role:"progressbar","aria-label":s.formatMessage(m.label),"aria-valuenow":t,"aria-valuemin":1,"aria-valuemax":i,"data-testid":"onboarding-progress-indicator",children:Array.from({length:i},function(e,n){var r=n+1;return(0,l.jsx)(o,{$status:r<t?"seen":r===t?"current":"unseen","data-testid":"onboarding-step-dot-".concat(r)},r)})})}},32217:(e,t,n)=>{"use strict";n.d(t,{Pq:()=>c,cw:()=>u,wG:()=>d});var r=n(44478),i=n(4724),a=function(e,t){var n=(0,i.qy)(e,t);return n?n.split(","):[]},o=function(e,t,n){return a(e,t).includes(n)},l=function(e,t,n){if(o(e,t,n))return!1;var l=a(e,t),s=[].concat((0,r.A)(l),[n]);return(0,i.U5)(e,t,s.join(",")),!0},s=function(e,t,n){var r=a(e,t),o=r.filter(function(e){return e!==n});return o.length>0?(0,i.U5)(e,t,o.join(",")):(0,i.WD)(e,t),r.length>
1o.length},c=function(e,t){return o(i.Lg,e,t)},d=function(e,t){return l(i.Lg,e,t)},u=function(e,t){return s(i.Lg,e,t)}},34451:(e,t,n)=>{"use strict";n.d(t,{AL:()=>h,Pw:()=>l,U9:()=>u,xc:()=>s});var r=n(42969),i=n(27925);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l="https://static.memrise.com/uploads/items/videos/IAV_LWLQ32026_ES_Ai_F_172937_a3516556.mp4",s="https://static.memrise.com/uploads/tutorial/emma-introduction.mp4",c=new Set(["en","en-us"]),d=new Set(["es","es-es"]),u=function(e,t){return!!e&&!!t&&c.has(e.toLowerCase())&&d.has(t.toLowerCase())},m={es:{phoneticSpelling:"meh POH-ness oon kah-FEH?",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_LWLQ32025_ES_CARLOS_M_172937_01f4a1b9__172937__m_normalized.mp4"},fr:{phoneticSpelling:"too VUH uhn kah-FAY?",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_ALX22FR02_ELLIOT949_116661_5eb1f93a__116661__m.mp4"},de:{phoneticSpelling:"SHPRIKHST doo ENG-lish?",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/94720__f__1533832588_normalized.mp4"},it:{phoneticSpelling:"eel kahf-FEH eh deh-leet-SYOH-zoh",videoUrl:"https://static.memrise.com/uploads/babylon/6/videos/il+caffe%CC%80+e%CC%80+delizioso/medium/1.mp4"},tr:{phoneticSpelling:"kah-VEH lez-zet-LEE",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_LWLQ42024_TR_FATMA_M_32546_20c22e8f__32546__m_normalized.mp4"},pt:{phoneticSpelling:"oo kah-FEH eh duh-lee-SYOH-zoo",videoUrl:"https://static.memrise.com/uploads/babylon/15/videos/o+cafe%CC%81+e%CC%81+delicioso/medium/1.mp4"},"pt-br":{phoneticSpelling:"oong kah-FEH kohng LAY-chee",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_LWLQ42024_BR_ADRIANO_M_26827_50bbeb7a__26827__m_normalized.mp4"},nl:{phoneticSpelling:"hay HOWT vahn KOF-fee",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_LWLQ42024_NL_REMON_M_20781_6d36ec09__20781__m_normalized.mp4"},sv:{phoneticSpelling:"hahn TIK-er om KAHF-feh",videoUrl:"https://static.memrise.com/uploads/things/video/medium/1000133572_170219_1312_16.mp4"},no:{phoneticSpelling:"KAHF-feh air GOT",videoUrl:"https://static.memrise.com/uploads/things/video/medium/1000136099_170216_1236_21.mp4"},pl:{phoneticSpelling:"kah-NAHP-kah",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_LWLQ32025_PL_WIKTORIA_F_64286_12da1270__64286__f_normalized.mp4"},da:{phoneticSpelling:"KAH-feh air meen UN-lings-drik",videoUrl:"https://static.memrise.com/uploads/things/video/medium/1000127319_170202_1327_20.mp4"},is:{phoneticSpelling:"KAHF-fee air GOHT",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_LWLQ32024_IS_FLEMMING_F_250148_37021196__250148__f_normalized.mp4"},sl:{phoneticSpelling:"sehm nah POH-tee",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_LWLQ12025_SL_MARTINA_F_271625_57ac5c4f__271625__f_normalized.mp4"},id:{phoneticSpelling:"gee-MAH-nah kah-BAR-nyah?",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_LWLQ32025_ID_IQI_M_288719_c217a5d1__288719__m.mp4"},yo:{phoneticSpelling:"eh-LOH nee?",videoUrl:"https://static.memrise.com/uploads/items/videos/medium/IAV_Q42024_YO_Ibukunoluwa_M_266299_4ba33cb7__266299__m_normalized.mp4"}},f={en:{es:0x3bc0a1de0102,fr:0x3ba53c710102,de:0x3b9bf9450102,it:0x3b9c6e600102,tr:0x3b9ca6710102,pt:0x3b9c85480102,"pt-br":0x3b9c90dd0102,nl:0x3b9c7a900102,sv:0x3b9cd3c40102,no:0x3b9cdda30102,pl:0x3ba0c2540102,da:0x3b9cbb570102,is:0x3bd4390a0102,sl:0x3bd74e280102,id:0x3bd8c5810102,yo:0x3bd720080102},"en-us":{es:0x3bc0a1ea0102,fr:0x3ba54a800102,de:0x3b9e3a680102,it:0x3b9e43e70102,tr:0x3b9e2eef0102,pt:0x3b9e24140102,"pt-br":0x3b9e19b10102,nl:0x3b9e4fa00102,sv:0x3b9df9a00102,no:0x3b9e037a0102,pl:0x3ba0ce960102,da:0x3b9deed60102,is:0x3bd4a4140102,sl:0x3bd751a00102,id:0x3bd8c5cc0102,yo:0x3bd727e50102}},p=function(e){return Object.fromEntries(Object.entries(m).map(function(t){var n=(0,i.A)(t,2),r=n[0],a=n[1];return[r,o(o({},a),{},{videoUrl:u(e,r)?l:a.videoUrl,learnableId:f[e][r]})]}))},_={en:p("en"),"en-us":p("en-us")},h=function(e,t){var n,r;return null!=(n=null==(r=_[e.toLowerCase()])?void 0:r[t.toLowerCase()])?n:null}},36313:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/select-level",function(){return n(15071)}])},59647:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var r=n(99634),i=n(8090),a=function(){var e,t=(0,r.u)(),n=(0,i.T)();return void 0!==n&&(n||(null==(e=t.user)?void 0:e.isStaff))}},71109:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var r=n(5646),i=n(15644),a=r.Ay.img.attrs(i.ft).withConfig({componentId:"sc-7hm6n0-0"})(function(e){var t=e.theme;return(0,r.AH)(["width:",";height:",";border-radius:",";background:",";"],t.sz.s14,t.sz.s14,t.bo.round,t.co.neutral60)})},73477:(e,t,n)=>{"use strict";var r=n(83095),i=n(26097),a=n(95835);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});var c=n(64252)._(n(14232)),d=n(78079),u=[],m=[],f=!1;function p(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}var _=a(function e(t,n){i(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()},[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"==typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){e._update({pastDelay:!0})},n.delay)),"number"==typeof n.timeout&&(this._timeout=setTimeout(function(){e._update({timedOut:!0})},n.timeout))),this._res.promise.then(function(){e._update({}),e._clearTimeouts()}).catch(function(t){e._update({}),e._clearTimeouts()}),this._update({})}},{key:"_update",value:function(e){this._state=l(l({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(function(e){return e()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]);function h(e){return function(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function i(){if(!r){var t=new _(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!f){var a=n.webpack&&1?n.webpack():n.modules;a&&m.push(function(e){var t,n=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return s(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,void 0):void 0}}(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(o)throw i}}}}(a);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e.includes(r))return i()}}catch(e){n.e(e)}finally{n.f()}})}function o(e,t){i(),(a=c.default.useContext(d.LoadableContext))&&Array.isArray(n.modules)&&n.modules.forEach(function(e){a(e)});var a,o=c.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return c.default.useImperativeHandle(t,function(){return{retry:r.retry}},[]),c.default.useMemo(function(){var t;return o.loading||o.error?c.default.createElement(n.loading,{isLoading:o.loading,pastDelay:o.pastDelay,timedOut:o.timedOut,error:o.error,retry:r.retry}):o.loaded?c.default.createElement((t=o.loaded)&&t.default?t.default:t,e):null},[e,o])}return o.preload=function(){return i()},o.displayName="LoadableComponent",c.default.forwardRef(o)}(p,e)}function v(e,t){for(var n=[];e.length;){var r=e.pop();n.push(r(t))}return Promise.all(n).then(function(){if(e.length)return v(e,t)})}h.preloadAll=function(){return new Promise(function(e,t){v(u).then(e,t)})},h.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(function(t){var n=function(){return f=!0,t()};v(m,e).then(n,n)})},window.__NEXT_PRELOADREADY=h.preloadReady;var g=h},77226:(e,t,n)=>{"use strict";n.d(t,{XA:()=>o,r:()=>a,ln:()=>s,V5:()=>l,W8:()=>d,wP:()=>c,Ng:()=>u,bm:()=>m,Lu:()=>f,qL:()=>p,NX:()=>_});let r=JSON.parse('{"x":[{"event_name":"CommunicateTabOfficialClicked","braze_event_name":"communicate_tab_clicked","trackers":["BRAZE"]},{"event_name":"HomeTabOfficialClicked","braze_event_name":"home_tab_clicked","trackers":["BRAZE"]},{"event_name":"ImmerseTabOfficialClicked","braze_event_name":"immerse_tab_clicked","trackers":["BRAZE"]},{"event_name":"LearningRemindersSet","braze_event_name":"user_reminder_set","trackers":["BRAZE"]},{"event_name":"LearnTabOfficialClicked","braze_event_name":"learn_tab_clicked","trackers":["BRAZE"]},{"event_name":"SkillLevelSelected","braze_event_name":"user_skill_selected","snowplow_event_name":"iglu:com.memrise/skill_level_selected/jsonschema/1-0-1","trackers":["BRAZE","SNOWPLOW"]},{"event_name":"AccountCreationCompleted","braze_event_name":"user_account_created","trackers":["BRAZE"]},{"event_name":"CommunicateSessionEnd","braze_event_name":"communicate_session_completed","snowplow_event_name":"iglu:com.memrise/communicate_session_completed/jsonschema/1-0-1","trackers":["BRAZE","SNOWPLOW"]},{"event_name":"CommunicateSessionStart","braze_event_name":"communicate_session_started","snowplow_event_name":"iglu:com.memrise/communicate_session_started/jsonschema/1-0-1","trackers":["BRAZE","SNOWPLOW"]},{"event_name":"ContentMediaCompleted","braze_event_name":"immerse_media_completed","snowplow_event_name":"iglu:com.memrise/content_media_completed/jsonschema/1-0-1","trackers":["BRAZE","SNOWPLOW"]},{"event_name":"ContentMediaStarted","braze_event_name":"immerse_media_started","snowplow_event_name":"iglu:com.memrise/content_media_started/jsonschema/1-0-1","trackers":["BRAZE","SNOWPLOW"]},{"event_name":"UserDailyGoalAchieved","braze_event_name":"user_dailygoal_achieved","trackers":["BRAZE"]},{"event_name":"DailyGoalEdit","snowplow_event_name":"iglu:com.memrise/daily_goal_set/jsonschema/1-0-1","trackers":["SNOWPLOW"]},{"event_name":"LearningSessionCompleted","braze_event_name":"learn_session_completed","snowplow_event_name":"iglu:com.memrise/learning_session_completed/jsonschema/1-0-1","trackers":["BRAZE","SNOWPLOW"]},{"event_name":"LearningSessionStarted","braze_event_name":"learn_session_started","snowplow_event_name":"iglu:com.memrise/learning_session_started/jsonschema/1-0-1","trackers":["BRAZE","SNOWPLOW"]},{"event_name":"UserStreakAchieved","braze_event_name":"user_streak_achieved","trackers":["BRAZE"]},{"event_name":"WordsLearnedGoalEdited","braze_event_name":"learn_wordgoal_selected","trackers":["BRAZE"]},{"event_name":"OrderCompleted","braze_event_name":"user_order_completed","trackers":["BRAZE"]},{"event_name":"ScenarioCompleted","braze_event_name":"learn_scenario_completed","trackers":["BRAZE"]},{"event_name":"ProTrialCommitmentSelected","braze_event_name":"pro_trial_commitment_selected","trackers":["BRAZE"]},{"event_name":"ProTrialFeaturesSelected","braze_event_name":"pro_trial_features_selected","trackers":["BRAZE"]}]}');var i=function(e){var t,n;return null!=(t=null==(n=r.x.find(function(t){return t.event_name===e}))?void 0:n.snowplow_event_name)?t:""},a=i("CommunicateSessionStart"),o=i("CommunicateSessionEnd"),l=i("ContentMediaStarted"),s=i("ContentMediaCompleted"),c=i("LearningSessionStarted"),d=i("LearningSessionCompleted"),u=i("SkillLevelSelected"),m=function(e,t,n){return{schema:"iglu:com.memrise/cl
1ient_entity/jsonschema/1-0-0",data:{type:["memrise-android","memrise-ios","memrise-web"].includes(e)?e:"unknown",os_version:null!=t?t:null,app_version:null!=n?n:null}}},f=function(e,t,n,r,i){return{schema:"iglu:com.memrise/content_media_entity/jsonschema/1-0-1",data:{content_media_id:e,difficulty_rating:null!=t?t:null,duration_seconds:null!=n?n:null,media_type:null!=r?r:null,url:null!=i?i:null}}},p=function(e,t,n,r,i){return{schema:"iglu:com.memrise/language_pair_entity/jsonschema/1-0-1",data:{language_pair_id:e,target_language_locale:null!=t?t:null,target_language_name:null!=n?n:null,source_language_locale:null!=r?r:null,source_language_name:null!=i?i:null}}},_=function(e,t,n,r){return{schema:"iglu:com.memrise/user_entity/jsonschema/1-0-1",data:{user_id:e,is_pro:t,datetime_joined_utc:null!=n?n:null,username:null!=r?r:null}}}},78079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});var r=n(64252)._(n(14232)).default.createContext(null)},81523:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(74359),i=n(26900),a=n(85127),o=function(e){var t="number"==typeof e,n=(0,r.I)({queryKey:["eligibility",e],queryFn:function(){return i.w8.getEligibility(e)},enabled:t,gcTime:a.To,staleTime:a.To}),o=n.data,l=n.isLoading;return{eligibility:null!=o?o:null,isLoading:t&&l,isEligibleForPathways:!!(null!=o&&o.isEligibleForPathways),isEligibleFor2026Onboarding:!!(null!=o&&o.isEligibleFor2026Onboarding),isEligibleForTracksAndThemes:!!(null!=o&&o.isEligibleForTracksAndThemes)}}}
1,85289:(e,t,n)=>{"use strict";n.d(t,{B_:()=>l,pz:()=>a,yO:()=>o});var r=n(4724),i=function(e){return"ONBOARDING_LEVEL_INDEX_".concat(e)},a=function(e,t){(0,r.lS)(i(e),String(t))},o=function(e){var t=(0,r.Rc)(i(e));if(null==t||""===t)return null;var n=parseInt(t,10);return Number.isNaN(n)?null:n},l=function(e){return 0===o(e)}},92148:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var r=n(13645),i=["1","2","3","4","5","6"],a=function(e){var t=e.enabled,n=e.optionCount,a=e.onSelectIndex,o=e.onNext;(0,r.A)([].concat(i),t?function(e,t){var r=Number(t)-1;r>=0&&r<n&&a(r)}:void 0),(0,r.A)("enter",t?o:void 0)}},98245:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5646);let i=r.Ay.div.withConfig({componentId:"sc-1jv6lv2-0"})(function(e){var t=e.theme,n=e.$maxWidth,i=e.$paddingX,a=e.$centerAlignItems,o=e.$fullWidth,l=void 0!==o&&o;return(0,r.AH)(["box-sizing:content-box;margin-left:",";margin-right:",";max-width:",";width:",";padding:0 ",";",""],l?0:"auto",l?0:"auto",l?"none":t.sz[void 0===n?"xxl":n],l?"100%":"auto",t.sz[void 0===i?"s0":i],void 0!==a&&a&&"\n display: flex;\n flex-direction: column;\n align-items: center;\n ")})},99500:(e,t,n)=>{"use strict";n.d(t,{O2:()=>o,_i:()=>d,nd:()=>c,zY:()=>s,ze:()=>l});var r=n(4724),i=n(63521),a=n(69152),o="https://arabic-script-from-scratch-memrise.replit.app",l=["en","en-us"],s=["ar"],c=function(){var e,t,n=(null!=(e=(0,r.Rc)(i.Vd))?e:"").toLowerCase(),a=(null!=(t=(0,r.Rc)(i.pR))?t:"").toLowerCase();return l.includes(n)&&s.includes(a)},d=function(){var e=(0,r.Rc)(a.zF);return c()&&"true"===e}},99539:(e,t,n)=>{"use strict";n.d(t,{e:()=>_});var r=n(5720),i=n(96557),a=n(61542),o=n(66185),l=n(5646),s=n(36877),c=l.Ay.div.withConfig({componentId:"sc-uzirrq-0"})(function(e){var t=e.theme,n=e.$attachBelowContent;return(0,l.AH)(["padding:",";display:flex;justify-content:center;position:fixed;z-index:",";bottom:",";left:",";right:",";background:linear-gradient( 180deg,",","," );@media (max-width:","){padding:",";}",""],t.sz.s6,t.zi.z5,t.sz.s0,t.sz.s0,t.sz.s0,(0,s.No)(.1,t.co.neutral99),t.co.neutral99,t.sz.md,t.sz.s4,n&&(0,l.AH)(["@media (max-width:","){position:static;z-index:auto;bottom:auto;left:auto;right:auto;width:100%;padding:",";background:none;}"],t.sz.md,t.sz.s0))}),d=l.Ay.div.withConfig({componentId:"sc-uzirrq-1"})(function(e){var t=e.theme,n=e.$hasPrevious;return(0,l.AH)(["display:flex;flex-direction:column;align-items:center;gap:",";width:100%;max-width:",";@media (min-width:","){max-width:",";}"],t.sz.s3,t.sz.sm,t.sz.md,n?t.sz.m:t.sz.sm)}),u=l.Ay.p.withConfig({componentId:"sc-uzirrq-2"})(function(e){var t=e.theme;return(0,l.AH)(["margin:",";text-align:center;color:",";",";@media (max-width:","){",";}"],t.sz.s0,t.co.secondary30,t.typography.heading.desktop.xxs,t.sz.md,t.typography.heading.mobile.xs)}),m=l.Ay.div.withConfig({componentId:"sc-uzirrq-3"})(function(e){var t=e.theme,n=e.$hasPrevious;return(0,l.AH)(["display:flex;flex-direction:",";align-items:stretch;gap:",";width:100%;@media (min-width:","){flex-direction:row;align-items:center;justify-content:center;> *:last-child{flex:1;min-width:",";}}"],n?"column-reverse":"column",t.sz.s3,t.sz.md,t.sz.s40)}),f=n(37876),p=(0,r.YK)({previous:{id:"onboarding_nav_previous",defaultMessage:"Previous"}}),_=function(e){var t=e.onNext,n=e.nextLabel,l=e.onPrevious,s=e.previousLabel,_=e.nextDisabled,h=e.nextTestId,v=e.previousTestId,g=e.note,b=e.showNext,y=void 0===b||b,w=e.attachBelowContent,x=(0,r.tz)(),k=(0,i.Ub)({maxWidth:o.A.sz.md});return y||l?(0,f.jsx)(c,{$attachBelowContent:void 0!==w&&w,"data-testid":"onboarding-nav-footer",children:(0,f.jsxs)(d,{$hasPrevious:!!l,children:[g&&(0,f.jsx)(u,{children:g}),(0,f.jsxs)(m,{$hasPrevious:!!l,children:[l&&(0,f.jsx)(a.$n,{buttonType:"secondary",buttonSize:"large",wide:k,onClick:l,"data-testid":void 0===v?"onboarding-previous":v,children:null!=s?s:x.formatMessage(p.previous)}),y&&(0,f.jsx)(a.$n,{buttonType:"primary",buttonSize:"large",wide:!0,onClick:t,disabled:void 0!==_&&_,"data-testid":void 0===h?"onboarding-next":h,children:n})]})]})}):null}}},e=>{e.O(0,[6593,636,8792],()=>e(e.s=36313)),_N_E=e.O()}]); 2//# sourceMappingURL=select-level-019ae194741be13e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.