From 2ef56298baf3cbbb4deb859d8feb5edcb3d2f02d Mon Sep 17 00:00:00 2001 From: blmage Date: Sun, 6 Nov 2022 22:24:34 +0100 Subject: [PATCH] Update production build and bump extension version --- dist/manifest.json | 2 +- dist/src/observer.js | 2 +- dist/src/ui.js | 6 +++--- package.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/manifest.json b/dist/manifest.json index 491f134..1dd833f 100644 --- a/dist/manifest.json +++ b/dist/manifest.json @@ -1,6 +1,6 @@ { "name": "Duolingo TTS Controls", - "version": "2.4.0", + "version": "2.4.1", "description": "Provides playback controls for some of the challenges on Duolingo.", "permissions": [ "https://*.duolingo.com/" diff --git a/dist/src/observer.js b/dist/src/observer.js index ea3c663..9339920 100644 --- a/dist/src/observer.js +++ b/dist/src/observer.js @@ -1 +1 @@ -!function(){"use strict";const e=()=>{},t=e=>"number"==typeof e&&Number.isFinite(e),n=e=>"string"==typeof e,a=Array.isArray,l=e=>"object"==typeof e&&!!e&&!a(e),o=e=>"function"==typeof e,s=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r=e=>{for(let t in e)if(s(e,t))return!1;return!0},i=e=>{let t=null;if("/"===e.charAt(0)&&("/"===e.charAt(1)?e=`https://${e}`:t=e),null===t)try{t=new URL(e).pathname}catch(n){t=e}return t},u=e=>`__duo-toolbox__-${e}`,d=u("global_variables"),c=(e,t)=>(l(window[d])||(window[d]={}),s(window[d],e)?window[d][e]:t),p=(e,t)=>{l(window[d])||(window[d]={}),window[d][e]=t},f=(e,t,n)=>{const a=t(c(e,n));return p(e,a),a},v=u("original_function"),g=u("override_version"),_=(t,n,a,r=1)=>((e,t,n,a,l=1)=>{s(window,e)&&t(window[e])?n(window[e]):f("pending_global_listeners",((o={})=>{var s;if(!o[e]){o[e]={};let n=window[e];Object.defineProperty(window,e,{get:()=>n,set:a=>{t(a)?(Object.defineProperty(window,e,{value:a,configurable:!0,enumerable:!0,writable:!0}),Object.values(o[e]).forEach((e=>e.callback(a)))):n=a},configurable:!0})}return l>(Number(null===(s=o[e][a])||void 0===s?void 0:s.version)||0)&&(o[e][a]={callback:n,version:l}),o}))})(t,o,(t=>((t,n,a,o=1)=>{var s;if(l(t)&&o>(Number(null===(s=t[n])||void 0===s?void 0:s[g])||0)){var r;const l=(null===(r=t[n])||void 0===r?void 0:r[v])||t[n]||e;t[n]=a(l),t[n][v]=l,t[n][g]=o}})(null==t?void 0:t.prototype,n,a,r)),`instance_method:${n}`,r),h=u("logging_iframe"),m=()=>(()=>{let e=document.getElementById(h);return e&&e.isConnected||(e=document.createElement("iframe"),e.id=h,e.style.display="none",document.body.appendChild(e)),e})().contentWindow.console,y=(...e)=>m().error(...e),b=["characterIntro","characterMatch","characterPuzzle","characterSelect","characterTrace","selectPronunciation","selectTranscription"],w=e=>{var t,n;return(null===(t=e.metadata)||void 0===t?void 0:t.source_language)||e.sourceLanguage||(null===(n=e.metadata)||void 0===n?void 0:n.learning_language)},O=e=>{var t;return(null===(t=e.metadata)||void 0===t?void 0:t.target_language)||e.targetLanguage||w(e)},k="effect",x="tts_sentence",K="tts_word",$="tts_morpheme",j="unknown",V="normal",L="slow",M="howler",T="rate",q="volume",E=u("forced_setting"),S=e=>l(e)&&!!e[E],N=e=>e.value,I=e=>({[E]:!0,value:e}),P=(e,n)=>T===e&&t(n)||q===e&&n>=0&&n<=1,R=(e,n)=>((e,t,n,a=1)=>{if(!l(e))return;const o=u(`${t}_override_version`);a>(Number(e[o])||0)&&Object.defineProperty(e,t,n(Object.getOwnPropertyDescriptor(e,t)))})(HTMLMediaElement,n,(n=>({...n,set:function(a){const l=D[e];t(a)?(this[l.originalValueKey]=a,s(this,l.valueKey)&&(a=this[l.isRelativeKey]?H(e,a*this[l.valueKey]):this[l.valueKey])):S(a)&&(a=N(a)),t(a)&&(this[l.listenerValueKey]=a),n.set.call(this,a)}}))),C=(e,t)=>_("Howl",t,(n=>function(){const a=this,l=arguments,o=D[e];let r=!1;const i=a._queue.length;(1===l.length||2===l.length&&void 0===l[1])&&-1===a._getSoundIds().indexOf(l[0])&&(S(l[0])?(r=!0,l[0]=N(l[0])):P(e,l[0])&&(a[o.originalValueKey]=l[0],s(a,o.valueKey)&&(r=!0,a[o.isRelativeKey]?l[0]=H(e,l[0]*a[o.valueKey]):l[0]=a[o.valueKey])),r&&(a[o.listenerValueKey]=l[0]));const u=n.apply(a,arguments);return r&&i({...a,functions:{audio:{applyOverride:()=>R(e,n),getter:e=>e[t],setter:(e,n)=>e[t]=n,hasQueuedUpdate:()=>!1},[M]:{applyOverride:()=>C(e,n),getter:e=>e[n](),setter:(e,t)=>e[n](t),hasQueuedUpdate:e=>e._queue.find((e=>e.event===n))}},priorityKey:u(`${e}_priority`),isRelativeKey:u(`${e}_is_relative`),valueKey:u(`forced_${e}_value`),originalValueKey:u(`original_${e}_value`),listenerValueKey:u(`${e}_value`)}),D={[T]:A(T,"playbackRate","rate",{minValue:.5,maxValue:4,defaultValue:1}),[q]:A(q,"volume","volume",{minValue:0,maxValue:1,defaultValue:1})},H=(e,t)=>D[e]?Math.max(D[e].minValue,Math.min(t,D[e].maxValue)):t,z="event_listeners",B=()=>{return`__listener::${e="last_event_listener_id",f(`__counter::${e}__`,(e=>e+1),0)}__`;var e},U=e=>{var t;return(null===(t=c(z,{}))||void 0===t?void 0:t[e])||{}},Q=(e,t)=>{f(z,(n=>Object.assign(n||{},{[e]:t})))},X=e=>!r(U(e)),F=(e,t)=>{const n=U(e);return r(n)?null:t(Object.values(n))},J=(e,t,n=B())=>{const a=U(e);return a[n]=t,Q(e,a),()=>G(e,n)},W=(e,t,n,l,o=J,s=B())=>{const r=`__${t}::${e}__`;var i;i=r,U(t)[i]||o(t,((...t)=>{const n=l(...t);a(n)&&Y(e,...n)}),r);const u=J(e,n,s);return()=>{u(),X(e)||G(t,r)}},G=(e,t)=>{const n=U(e);delete n[t],Q(e,n)},Y=(e,...t)=>F(e,(e=>e.flatMap((e=>{try{return[e(...t)]}catch(e){return[]}})))),Z="practice_session_loaded",ee="practice_challenges_loaded",te="pre_fetched_session_loaded",ne="story_loaded",ae="alphabets_loaded",le="forum_discussion_loaded",oe="dictionary_lexeme_loaded",se="sound_initialized",re={[ae]:/\/[\d]{4}-[\d]{2}-[\d]{2}\/alphabets\/courses\/(?[^/]+)\/(?[^/?]+)\/?/g,[oe]:/\/api\/1\/dictionary_page/g,[le]:/\/comments\/([\d]+)/g,[Z]:/\/[\d]{4}-[\d]{2}-[\d]{2}\/sessions/g,[ne]:/\/api2\/stories/g,user_data_loaded:/\/[\d]{4}-[\d]{2}-[\d]{2}\/users\/[\d]+/g},ie=(e,t,n=B())=>(_("XMLHttpRequest","open",(e=>function(t,n,a,o,s){let r,i;for(const[e,t]of Object.entries(re))if(i=Array.from(n.matchAll(t))[0],i){r=e;break}return r&&F(r,(e=>{this.addEventListener("load",(()=>{try{const t=l(this.response)?this.response:JSON.parse(this.responseText);e.forEach((e=>e(t,i.groups||{})))}catch(e){y(e,`Could not handle the XHR result (event: ${r}): `)}}))})),e.call(this,t,n,a,o,s)}),2),J(e,t,n)),ue=(e,t=B())=>{const a=te,l=e=>F(a,(t=>{e.addEventListener("success",(()=>{try{t.forEach((t=>t(e.result)))}catch(e){y(e,`Could not handle the IDBRequest result (event: ${a}): `)}}))}));return _("IDBIndex","get",(e=>function(t){const a=e.call(this,t);return n(t)&&t&&"prefetchedSessions"===this.objectStore.name&&l(a),a})),_("IDBObjectStore","get",(e=>function(t){const n=e.call(this,t);return"prefetchedSessions"===this.name&&l(n),n})),J(a,e,t)},de=e=>{const t=e=>{let t;if(l(e)){var n;t=[{challenges:[e.challenges,e.adaptiveChallenges,null===(n=e.adaptiveInterleavedChallenges)||void 0===n?void 0:n.challenges].filter(a).flat(),sessionMetaData:e.metadata||{}}]}return t},n=W(ee,Z,e,t,ie),o=W(ee,te,e,t,((e,t,n)=>ue(t,n)));return()=>{n(),o()}},ce=(e,t)=>({url:e,type:x,speed:V,language:t}),pe=(e,t)=>({url:e,type:K,speed:V,language:t}),fe=(e,t)=>({url:e,type:$,speed:V,language:t}),ve=Object.fromEntries(["/sounds/7abe057dc8446ad325229edd6d8fd250.mp3","/sounds/2aae0ea735c8e9ed884107d6f0a09e35.mp3","/sounds/421d48c53ad6d52618dba715722278e0.mp3","/sounds/37d8f0b39dcfe63872192c89653a93f6.mp3","/sounds/0a27c1ee63dd220647e8410a0029aed2.mp3","/sounds/a28ff0a501ef5f33ca78c0afc45ee53e.mp3","/sounds/2e4669d8cf839272f0731f8afa488caf.mp3","/sounds/f0b6ab4396d5891241ef4ca73b4de13a.mp3"].map((e=>{return[e,(t=e,{url:t,type:k,speed:V,language:null})];var t}))),ge=/\/duolingo-data\/tts\/(?[a-z-_]+)\/token\//i,_e="sound_type_map",he=()=>c(_e,ve),me=[j,x,K,$,k],ye=[V,L],be=(e,t)=>((e,t,n)=>{for(const a of e){const e=Number(a(t,n));if(!isNaN(e)&&0!==e)return e}return 0})([(e,t)=>me.indexOf(e.type)-me.indexOf(t.type),(e,t)=>ye.indexOf(e.speed)-ye.indexOf(t.speed)],e,t),we=e=>{const t=he()||{};for(const n of e){const e=i(n.url);(!t[e]||be(n,t[e])>0)&&(t[e]=n)}p(_e,t)},Oe="sound_detection_listeners_version",ke="sound_detection_unregistration_callbacks",xe=(e,t,n)=>{var a;return{url:e.url,type:t,speed:(null===(a=e.speed)||void 0===a?void 0:a.value)||V,language:n}},Ke=()=>{const e=2<=(Number(c(Oe))||0);var t,o,s,r,i;!!c(ke)&&e||(e||$e(),p(Oe,2),p(ke,[(i=e=>(e=>{const t=e.learningLanguage;a(null==e?void 0:e.elements)&&we(e.elements.map((e=>{var t;return(null==e||null===(t=e.line)||void 0===t?void 0:t.content)||(null==e?void 0:e.learningLanguageTitleContent)})).flatMap((e=>[null==e?void 0:e.audio,null==e?void 0:e.audioPrefix,null==e?void 0:e.audioSuffix])).map((e=>null==e?void 0:e.url)).filter(n).map((e=>ce(e,t))))})(e),ie(ne,i)),(s=(e,t)=>((e,t)=>{const l=t.toLanguage;a(null==e?void 0:e.alphabets)&&n(null==t?void 0:t.toLanguage)&&we(e.alphabets.flatMap((e=>null==e?void 0:e.groups)).flatMap((e=>null==e?void 0:e.characters)).flat().map((e=>null==e?void 0:e.ttsUrl)).filter(n).map((e=>fe(e,l))))})(e,t),ie(ae,s,r)),(o=e=>{var t;n(null==(t=e)?void 0:t.tts_url)&&we([ce(t.tts_url,t.sentence_language)])},ie(le,o)),(t=e=>(e=>{const t=[],l=e.learning_language;n(e.tts)&&t.push(pe(e.tts,l)),a(e.alternative_forms)&&t.push(e.alternative_forms.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>ce(e,l)))),we(t.flat())})(e),ie(oe,t)),de((e=>(e=>{const t=[];for(const i of e){var o;const e=i.type,u=w(i),d=O(i);if(n(i.tts)){const n=b.indexOf(e)>=0?fe:ce;t.push(n(i.tts,u))}if(n(i.slowTts)&&t.push({url:i.slowTts,type:x,speed:L,language:u}),n(i.solutionTts)&&t.push(ce(i.solutionTts,d)),a(i.choices)){const a=-1===b.indexOf(e)?pe:fe;t.push(i.choices.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>a(e,d))))}if(a(i.tokens)&&t.push(i.tokens.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>pe(e,u)))),a(i.questionTokens)&&t.push(i.questionTokens.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>pe(e,d)))),a(null===(o=i.metadata)||void 0===o?void 0:o.speakers))for(const e of i.metadata.speakers){var s,r;l(null===(s=e.tts)||void 0===s?void 0:s.tokens)&&t.push(Object.values(e.tts.tokens).filter((e=>n(e.url))).map((e=>xe(e,K,d)))),a(null===(r=e.tts)||void 0===r?void 0:r.sentence)&&t.push(e.tts.sentence.filter((e=>n(e.url))).map((e=>xe(e,x,d))))}if(a(i.pairs)){const a=-1===b.indexOf(e)?pe:fe;t.push(i.pairs.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>a(e,d))))}a(i.options)&&t.push(i.options.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>pe(e,d))))}we(t.flat())})(e.challenges)))]))},$e=()=>{const e=c(ke);!a(e)||X(se)||X("sound_playback_requested")||X("sound_playback_cancelled")||X("sound_playback_confirmed")||(e.forEach((e=>e())),p(Oe,null),p(ke,null))},je=(e,t,n)=>{const a=(e=>{const t=he()[e];if(l(t))return t;const n=e.match(ge);return n?pe(e,n.language):null})(i(t));return{url:t,type:(null==a?void 0:a.type)||j,speed:(null==a?void 0:a.speed)||V,language:null==a?void 0:a.language,playbackStrategy:n,sound:e}};(e=>{_("Howl","init",(e=>function(t){var n;p("is_howler_used",!0);const a=e.call(this,t),l=String(this._src||(null===(n=this._parent)||void 0===n?void 0:n._src)||"").trim();return""!==l&&Y(se,je(this,l,M)),a})),Ke();const t=J(se,e)})(e)}(); +!function(){"use strict";const e=()=>{},t=e=>"number"==typeof e&&Number.isFinite(e),n=e=>"string"==typeof e,a=Array.isArray,l=e=>"object"==typeof e&&!!e&&!a(e),o=e=>"function"==typeof e,r=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s=e=>{for(let t in e)if(r(e,t))return!1;return!0},i=e=>{let t=null;if("/"===e.charAt(0)&&("/"===e.charAt(1)?e=`https://${e}`:t=e),null===t)try{t=new URL(e).pathname}catch(n){t=e}return t},u=e=>`__duo-toolbox__-${e}`,d=u("global_variables"),c=(e,t)=>(l(window[d])||(window[d]={}),r(window[d],e)?window[d][e]:t),p=(e,t)=>{l(window[d])||(window[d]={}),window[d][e]=t},f=(e,t,n)=>{const a=t(c(e,n));return p(e,a),a},v=(e,t,n,a,l=1)=>{r(window,e)&&t(window[e])?n(window[e]):f("pending_global_listeners",((o={})=>{var r;if(!o[e]){o[e]={};let n=window[e];Object.defineProperty(window,e,{get:()=>n,set:a=>{t(a)?(Object.defineProperty(window,e,{value:a,configurable:!0,enumerable:!0,writable:!0}),Object.values(o[e]).forEach((e=>e.callback(a)))):n=a},configurable:!0})}return l>(Number(null===(r=o[e][a])||void 0===r?void 0:r.version)||0)&&(o[e][a]={callback:n,version:l}),o}))},g=u("original_function"),h=u("override_version"),_=(t,n,a,o=1)=>{var r;if(l(t)&&o>(Number(null===(r=t[n])||void 0===r?void 0:r[h])||0)){var s;const l=(null===(s=t[n])||void 0===s?void 0:s[g])||t[n]||e;t[n]=a(l),t[n][g]=l,t[n][h]=o}},m=(e,t,n,a=1)=>v(e,o,(e=>_(null==e?void 0:e.prototype,t,n,a)),`instance_method:${t}`,a),y=u("logging_iframe"),b=()=>(()=>{let e=document.getElementById(y);return e&&e.isConnected||(e=document.createElement("iframe"),e.id=y,e.style.display="none",document.body.appendChild(e)),e})().contentWindow.console,w=(...e)=>b().error(...e),O=["characterIntro","characterMatch","characterPuzzle","characterSelect","characterTrace","selectPronunciation","selectTranscription"],k=e=>{var t,n;return(null===(t=e.metadata)||void 0===t?void 0:t.source_language)||e.sourceLanguage||(null===(n=e.metadata)||void 0===n?void 0:n.learning_language)},x=e=>{var t;return(null===(t=e.metadata)||void 0===t?void 0:t.target_language)||e.targetLanguage||k(e)},K="effect",j="tts_sentence",$="tts_word",V="tts_morpheme",L="unknown",q="normal",E="slow",M="howler",S="rate",T="volume",N=u("forced_setting"),R=e=>l(e)&&!!e[N],A=e=>e.value,C=e=>({[N]:!0,value:e}),I=(e,n)=>S===e&&t(n)||T===e&&n>=0&&n<=1,P=(e,n)=>((e,t,n,a=1)=>{if(!l(e))return;const o=u(`${t}_override_version`);a>(Number(e[o])||0)&&Object.defineProperty(e,t,n(Object.getOwnPropertyDescriptor(e,t)))})(HTMLMediaElement,n,(n=>({...n,set:function(a){const l=z[e];t(a)?(this[l.originalValueKey]=a,r(this,l.valueKey)&&(a=this[l.isRelativeKey]?B(e,a*this[l.valueKey]):this[l.valueKey])):R(a)&&(a=A(a)),t(a)&&(this[l.listenerValueKey]=a),n.set.call(this,a)}}))),D=(e,t)=>m("Howl",t,(n=>function(){const a=this,l=arguments,o=z[e];let s=!1;const i=a._queue.length;(1===l.length||2===l.length&&void 0===l[1])&&-1===a._getSoundIds().indexOf(l[0])&&(R(l[0])?(s=!0,l[0]=A(l[0])):I(e,l[0])&&(a[o.originalValueKey]=l[0],r(a,o.valueKey)&&(s=!0,a[o.isRelativeKey]?l[0]=B(e,l[0]*a[o.valueKey]):l[0]=a[o.valueKey])),s&&(a[o.listenerValueKey]=l[0]));const u=n.apply(a,arguments);return s&&i({...a,functions:{audio:{applyOverride:()=>P(e,n),getter:e=>e[t],setter:(e,n)=>e[t]=n,hasQueuedUpdate:()=>!1},[M]:{applyOverride:()=>D(e,n),getter:e=>e[n](),setter:(e,t)=>e[n](t),hasQueuedUpdate:e=>e._queue.find((e=>e.event===n))}},priorityKey:u(`${e}_priority`),isRelativeKey:u(`${e}_is_relative`),valueKey:u(`forced_${e}_value`),originalValueKey:u(`original_${e}_value`),listenerValueKey:u(`${e}_value`)}),z={[S]:H(S,"playbackRate","rate",{minValue:.5,maxValue:4,defaultValue:1}),[T]:H(T,"volume","volume",{minValue:0,maxValue:1,defaultValue:1})},B=(e,t)=>z[e]?Math.max(z[e].minValue,Math.min(t,z[e].maxValue)):t,U="event_listeners",Q=()=>{return`__listener::${e="last_event_listener_id",f(`__counter::${e}__`,(e=>e+1),0)}__`;var e},X=e=>{var t;return(null===(t=c(U,{}))||void 0===t?void 0:t[e])||{}},F=(e,t)=>{f(U,(n=>Object.assign(n||{},{[e]:t})))},J=e=>!s(X(e)),W=(e,t)=>{const n=X(e);return s(n)?null:t(Object.values(n))},G=(e,t,n=Q())=>{const a=X(e);return a[n]=t,F(e,a),()=>Z(e,n)},Y=(e,t,n,l,o=G,r=Q())=>{const s=`__${t}::${e}__`;var i;i=s,X(t)[i]||o(t,((...t)=>{const n=l(...t);a(n)&&ee(e,...n)}),s);const u=G(e,n,r);return()=>{u(),J(e)||Z(t,s)}},Z=(e,t)=>{const n=X(e);delete n[t],F(e,n)},ee=(e,...t)=>W(e,(e=>e.flatMap((e=>{try{return[e(...t)]}catch(e){return[]}})))),te="practice_session_loaded",ne="practice_challenges_loaded",ae="pre_fetched_session_loaded",le="story_loaded",oe="alphabets_loaded",re="forum_discussion_loaded",se="dictionary_lexeme_loaded",ie="sound_initialized",ue={[oe]:/\/[\d]{4}-[\d]{2}-[\d]{2}\/alphabets\/courses\/(?[^/]+)\/(?[^/?]+)\/?/g,[se]:/\/api\/1\/dictionary_page/g,[re]:/\/comments\/([\d]+)/g,[te]:/\/[\d]{4}-[\d]{2}-[\d]{2}\/sessions/g,[le]:/\/api2\/stories/g,user_data_loaded:/\/[\d]{4}-[\d]{2}-[\d]{2}\/users\/[\d]+/g},de=(e,t,n=Q())=>(m("XMLHttpRequest","open",(e=>function(t,n,a,o,r){let s,i;for(const[e,t]of Object.entries(ue))if(i=Array.from(n.matchAll(t))[0],i){s=e;break}return s&&W(s,(e=>{this.addEventListener("load",(()=>{try{const t=l(this.response)?this.response:JSON.parse(this.responseText);e.forEach((e=>e(t,i.groups||{})))}catch(e){w(e,`Could not handle the XHR result (event: ${s}): `)}}))})),e.call(this,t,n,a,o,r)}),2),((e,t,n=1)=>{v(e,o,(()=>_(window,e,t,n)),"global",n)})("fetch",(e=>function(t,n){const a=t instanceof Request?t.url:String(t);let l,o,r=null;for(const[e,t]of Object.entries(ue))if(o=Array.from(a.matchAll(t))[0],o){l=e;break}return l&&(r=W(l,(e=>t=>{try{e.forEach((e=>e(t,o.groups||{})))}catch(e){w(e,`Could not handle the fetch result (event: ${l}): `)}}))),e.call(this,t,n).then((e=>{if(!r)return e;const t=e.clone();return e.json().then((e=>(r(e),t))).catch((()=>t))}))})),G(e,t,n)),ce=(e,t=Q())=>{const a=ae,l=e=>W(a,(t=>{e.addEventListener("success",(()=>{try{t.forEach((t=>t(e.result)))}catch(e){w(e,`Could not handle the IDBRequest result (event: ${a}): `)}}))}));return m("IDBIndex","get",(e=>function(t){const a=e.call(this,t);return n(t)&&t&&"prefetchedSessions"===this.objectStore.name&&l(a),a})),m("IDBObjectStore","get",(e=>function(t){const n=e.call(this,t);return"prefetchedSessions"===this.name&&l(n),n})),G(a,e,t)},pe=e=>{const t=e=>{let t;if(l(e)){var n;t=[{challenges:[e.challenges,e.adaptiveChallenges,null===(n=e.adaptiveInterleavedChallenges)||void 0===n?void 0:n.challenges].filter(a).flat(),sessionMetaData:e.metadata||{}}]}return t},n=Y(ne,te,e,t,de),o=Y(ne,ae,e,t,((e,t,n)=>ce(t,n)));return()=>{n(),o()}},fe=(e,t)=>({url:e,type:j,speed:q,language:t}),ve=(e,t)=>({url:e,type:$,speed:q,language:t}),ge=(e,t)=>({url:e,type:V,speed:q,language:t}),he=Object.fromEntries(["/sounds/7abe057dc8446ad325229edd6d8fd250.mp3","/sounds/2aae0ea735c8e9ed884107d6f0a09e35.mp3","/sounds/421d48c53ad6d52618dba715722278e0.mp3","/sounds/37d8f0b39dcfe63872192c89653a93f6.mp3","/sounds/0a27c1ee63dd220647e8410a0029aed2.mp3","/sounds/a28ff0a501ef5f33ca78c0afc45ee53e.mp3","/sounds/2e4669d8cf839272f0731f8afa488caf.mp3","/sounds/f0b6ab4396d5891241ef4ca73b4de13a.mp3"].map((e=>{return[e,(t=e,{url:t,type:K,speed:q,language:null})];var t}))),_e=/\/duolingo-data\/tts\/(?[a-z-_]+)\/token\//i,me="sound_type_map",ye=()=>c(me,he),be=[L,j,$,V,K],we=[q,E],Oe=(e,t)=>((e,t,n)=>{for(const a of e){const e=Number(a(t,n));if(!isNaN(e)&&0!==e)return e}return 0})([(e,t)=>be.indexOf(e.type)-be.indexOf(t.type),(e,t)=>we.indexOf(e.speed)-we.indexOf(t.speed)],e,t),ke=e=>{const t=ye()||{};for(const n of e){const e=i(n.url);(!t[e]||Oe(n,t[e])>0)&&(t[e]=n)}p(me,t)},xe="sound_detection_listeners_version",Ke="sound_detection_unregistration_callbacks",je=(e,t,n)=>{var a;return{url:e.url,type:t,speed:(null===(a=e.speed)||void 0===a?void 0:a.value)||q,language:n}},$e=()=>{const e=2<=(Number(c(xe))||0);var t,o,r,s,i;!!c(Ke)&&e||(e||Ve(),p(xe,2),p(Ke,[(i=e=>(e=>{const t=e.learningLanguage;a(null==e?void 0:e.elements)&&ke(e.elements.map((e=>{var t;return(null==e||null===(t=e.line)||void 0===t?void 0:t.content)||(null==e?void 0:e.learningLanguageTitleContent)})).flatMap((e=>[null==e?void 0:e.audio,null==e?void 0:e.audioPrefix,null==e?void 0:e.audioSuffix])).map((e=>null==e?void 0:e.url)).filter(n).map((e=>fe(e,t))))})(e),de(le,i)),(r=(e,t)=>((e,t)=>{const l=t.toLanguage;a(null==e?void 0:e.alphabets)&&n(null==t?void 0:t.toLanguage)&&ke(e.alphabets.flatMap((e=>null==e?void 0:e.groups)).flatMap((e=>null==e?void 0:e.characters)).flat().map((e=>null==e?void 0:e.ttsUrl)).filter(n).map((e=>ge(e,l))))})(e,t),de(oe,r,s)),(o=e=>{var t;n(null==(t=e)?void 0:t.tts_url)&&ke([fe(t.tts_url,t.sentence_language)])},de(re,o)),(t=e=>(e=>{const t=[],l=e.learning_language;n(e.tts)&&t.push(ve(e.tts,l)),a(e.alternative_forms)&&t.push(e.alternative_forms.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>fe(e,l)))),ke(t.flat())})(e),de(se,t)),pe((e=>(e=>{const t=[];for(const i of e){var o;const e=i.type,u=k(i),d=x(i);if(n(i.tts)){const n=O.indexOf(e)>=0?ge:fe;t.push(n(i.tts,u))}if(n(i.slowTts)&&t.push({url:i.slowTts,type:j,speed:E,language:u}),n(i.solutionTts)&&t.push(fe(i.solutionTts,d)),a(i.choices)){const a=-1===O.indexOf(e)?ve:ge;t.push(i.choices.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>a(e,d))))}if(a(i.tokens)&&t.push(i.tokens.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>ve(e,u)))),a(i.questionTokens)&&t.push(i.questionTokens.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>ve(e,d)))),a(null===(o=i.metadata)||void 0===o?void 0:o.speakers))for(const e of i.metadata.speakers){var r,s;l(null===(r=e.tts)||void 0===r?void 0:r.tokens)&&t.push(Object.values(e.tts.tokens).filter((e=>n(e.url))).map((e=>je(e,$,d)))),a(null===(s=e.tts)||void 0===s?void 0:s.sentence)&&t.push(e.tts.sentence.filter((e=>n(e.url))).map((e=>je(e,j,d))))}if(a(i.pairs)){const a=-1===O.indexOf(e)?ve:ge;t.push(i.pairs.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>a(e,d))))}a(i.options)&&t.push(i.options.map((e=>null==e?void 0:e.tts)).filter(n).map((e=>ve(e,d))))}ke(t.flat())})(e.challenges)))]))},Ve=()=>{const e=c(Ke);!a(e)||J(ie)||J("sound_playback_requested")||J("sound_playback_cancelled")||J("sound_playback_confirmed")||(e.forEach((e=>e())),p(xe,null),p(Ke,null))},Le=(e,t,n)=>{const a=(e=>{const t=ye()[e];if(l(t))return t;const n=e.match(_e);return n?ve(e,n.language):null})(i(t));return{url:t,type:(null==a?void 0:a.type)||L,speed:(null==a?void 0:a.speed)||q,language:null==a?void 0:a.language,playbackStrategy:n,sound:e}};(e=>{m("Howl","init",(e=>function(t){var n;p("is_howler_used",!0);const a=e.call(this,t),l=String(this._src||(null===(n=this._parent)||void 0===n?void 0:n._src)||"").trim();return""!==l&&ee(ie,Le(this,l,M)),a})),$e();const t=G(ie,e)})(e)}(); diff --git a/dist/src/ui.js b/dist/src/ui.js index 45175f5..9a636f4 100644 --- a/dist/src/ui.js +++ b/dist/src/ui.js @@ -1,8 +1,8 @@ -!function(){"use strict";var e,n,t,r,o,a,i,l={},c=[],u=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(e,n){for(var t in n)e[t]=n[t];return e}function f(e){var n=e.parentNode;n&&n.removeChild(e)}function d(e,n,t){var r,o,a,i=arguments,l={};for(a in n)"key"==a?r=n[a]:"ref"==a?o=n[a]:l[a]=n[a];if(arguments.length>3)for(t=[t],a=3;a1&&C(o,n,t),n=w(t,o,o,e.__k,null,o.__e,n),"function"==typeof e.type&&(e.__d=n)))}function E(n,t,r,o,a,i,u,f,d){var p,h,v,y,g,w,k,O,E,S,N,M=t.type;if(void 0!==t.constructor)return null;(p=e.__b)&&p(t);try{e:if("function"==typeof M){if(O=t.props,E=(p=M.contextType)&&o[p.__c],S=p?E?E.props.value:p.__:o,r.__c?k=(h=t.__c=r.__c).__=h.__E:("prototype"in M&&M.prototype.render?t.__c=h=new M(O,S):(t.__c=h=new m(O,S),h.constructor=M,h.render=z),E&&E.sub(h),h.props=O,h.state||(h.state={}),h.context=S,h.__n=o,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=M.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,M.getDerivedStateFromProps(O,h.__s))),y=h.props,g=h.state,v)null==M.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==M.getDerivedStateFromProps&&O!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(O,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(O,h.__s,S)||t.__v===r.__v){h.props=O,h.state=h.__s,t.__v!==r.__v&&(h.__d=!1),h.__v=t,t.__e=r.__e,t.__k=r.__k,h.__h.length&&u.push(h),C(t,f,n);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(O,h.__s,S),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(y,g,w)}))}h.context=S,h.props=O,h.state=h.__s,(p=e.__r)&&p(t),h.__d=!1,h.__v=t,h.__P=n,p=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(o=s(s({},o),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(w=h.getSnapshotBeforeUpdate(y,g)),N=null!=p&&p.type==_&&null==p.key?p.props.children:p,b(n,Array.isArray(N)?N:[N],t,r,o,a,i,u,f,d),h.base=t.__e,h.__h.length&&u.push(h),k&&(h.__E=h.__=null),h.__e=!1}else null==i&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,n,t,r,o,a,i,u){var s,f,d,p,_,m=t.props,h=n.props;if(o="svg"===n.type||o,null!=a)for(s=0;s3)for(t=[t],a=3;a3)for(t=[t],a=3;a1&&C(o,n,t),n=w(t,o,o,e.__k,null,o.__e,n),"function"==typeof e.type&&(e.__d=n)))}function E(n,t,r,o,a,i,u,f,d){var p,h,v,y,g,w,k,O,E,S,N,M=t.type;if(void 0!==t.constructor)return null;(p=e.__b)&&p(t);try{e:if("function"==typeof M){if(O=t.props,E=(p=M.contextType)&&o[p.__c],S=p?E?E.props.value:p.__:o,r.__c?k=(h=t.__c=r.__c).__=h.__E:("prototype"in M&&M.prototype.render?t.__c=h=new M(O,S):(t.__c=h=new m(O,S),h.constructor=M,h.render=z),E&&E.sub(h),h.props=O,h.state||(h.state={}),h.context=S,h.__n=o,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=M.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,M.getDerivedStateFromProps(O,h.__s))),y=h.props,g=h.state,v)null==M.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==M.getDerivedStateFromProps&&O!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(O,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(O,h.__s,S)||t.__v===r.__v){h.props=O,h.state=h.__s,t.__v!==r.__v&&(h.__d=!1),h.__v=t,t.__e=r.__e,t.__k=r.__k,h.__h.length&&u.push(h),C(t,f,n);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(O,h.__s,S),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(y,g,w)}))}h.context=S,h.props=O,h.state=h.__s,(p=e.__r)&&p(t),h.__d=!1,h.__v=t,h.__P=n,p=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(o=s(s({},o),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(w=h.getSnapshotBeforeUpdate(y,g)),N=null!=p&&p.type==_&&null==p.key?p.props.children:p,b(n,Array.isArray(N)?N:[N],t,r,o,a,i,u,f,d),h.base=t.__e,h.__h.length&&u.push(h),k&&(h.__E=h.__=null),h.__e=!1}else null==i&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,n,t,r,o,a,i,u){var s,f,d,p,_,m=t.props,h=n.props;if(o="svg"===n.type||o,null!=a)for(s=0;s3)for(t=[t],a=3;a0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function ae(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ie(e){return Object.keys(e||{}).reduce((function(n,t){return n+"".concat(t,": ").concat(e[t],";")}),"")}function le(e){return e.size!==re.size||e.x!==re.x||e.y!==re.y||e.rotate!==re.rotate||e.flipX||e.flipY}function ce(e){var n=e.transform,t=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(t/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),i="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(a," ").concat(i," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var ue={x:0,y:0,width:"100%",height:"100%"};function se(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||n)&&(e.attributes.fill="black"),e}function fe(e){var n=e.icons,t=n.main,r=n.mask,o=e.prefix,a=e.iconName,i=e.transform,l=e.symbol,c=e.title,u=e.maskId,s=e.titleId,f=e.extra,d=e.watchable,p=void 0!==d&&d,_=r.found?r:t,m=_.width,h=_.height,v="fak"===o,y=v?"":"fa-w-".concat(Math.ceil(m/h*16)),g=[J.replacementClass,a?"".concat(J.familyPrefix,"-").concat(a):"",y].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:j({},f.attributes,{"data-prefix":o,"data-icon":a,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(h)})},w=v&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/h*16*.0625,"em")}:{};p&&(b.attributes["data-fa-i2svg"]=""),c&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(s||oe())},children:[c]});var k=j({},b,{prefix:o,iconName:a,main:t,mask:r,maskId:u,transform:i,symbol:l,styles:j({},w,f.styles)}),x=r.found&&t.found?function(e){var n,t=e.children,r=e.attributes,o=e.main,a=e.mask,i=e.maskId,l=e.transform,c=o.width,u=o.icon,s=a.width,f=a.icon,d=ce({transform:l,containerWidth:s,iconWidth:c}),p={tag:"rect",attributes:j({},ue,{fill:"white"})},_=u.children?{children:u.children.map(se)}:{},m={tag:"g",attributes:j({},d.inner),children:[se(j({tag:u.tag,attributes:j({},u.attributes,d.path)},_))]},h={tag:"g",attributes:j({},d.outer),children:[m]},v="mask-".concat(i||oe()),y="clip-".concat(i||oe()),g={tag:"mask",attributes:j({},ue,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,h]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(n=f,"g"===n.tag?n.children:[n])},g]};return t.push(b,{tag:"rect",attributes:j({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")")},ue)}),{children:t,attributes:r}}(k):function(e){var n=e.children,t=e.attributes,r=e.main,o=e.transform,a=ie(e.styles);if(a.length>0&&(t.style=a),le(o)){var i=ce({transform:o,containerWidth:r.width,iconWidth:r.width});n.push({tag:"g",attributes:j({},i.outer),children:[{tag:"g",attributes:j({},i.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:j({},r.icon.attributes,i.path)}]}]})}else n.push(r.icon);return{children:n,attributes:t}}(k),O=x.children,C=x.attributes;return k.children=O,k.attributes=C,l?function(e){var n=e.prefix,t=e.iconName,r=e.children,o=e.attributes,a=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:j({},o,{id:!0===a?"".concat(n,"-").concat(J.familyPrefix,"-").concat(t):a}),children:r}]}]}(k):function(e){var n=e.children,t=e.main,r=e.mask,o=e.attributes,a=e.styles,i=e.transform;if(le(i)&&t.found&&!r.found){var l={x:t.width/t.height/2,y:.5};o.style=ie(j({},a,{"transform-origin":"".concat(l.x+i.x/16,"em ").concat(l.y+i.y/16,"em")}))}return[{tag:"svg",attributes:o,children:n}]}(k)}J.measurePerformance&&q&&q.mark&&q.measure;var de=function(e,n,t,r){var o,a,i,l=Object.keys(e),c=l.length,u=void 0!==r?function(e,n){return function(t,r,o,a){return e.call(n,t,r,o,a)}}(n,r):n;for(void 0===t?(o=1,i=e[l[0]]):(o=0,i=t);o2&&void 0!==arguments[2]?arguments[2]:{},r=t.skipHooks,o=void 0!==r&&r,a=Object.keys(n).reduce((function(e,t){var r=n[t];return!!r.icon?e[r.iconName]=r.icon:e[t]=r,e}),{});"function"!=typeof ne.hooks.addPack||o?ne.styles[e]=j({},ne.styles[e]||{},a):ne.hooks.addPack(e,a),"fas"===e&&pe("fa",n)}var _e=ne.styles,me=ne.shims,he=function(){var e=function(e){return de(_e,(function(n,t,r){return n[r]=de(t,e,{}),n}),{})};e((function(e,n,t){return n[3]&&(e[n[3]]=t),e})),e((function(e,n,t){var r=n[2];return e[t]=t,r.forEach((function(n){e[n]=t})),e}));var n="far"in _e;de(me,(function(e,t){var r=t[0],o=t[1],a=t[2];return"far"!==o||n||(o="fas"),e[r]={prefix:o,iconName:a},e}),{})};function ve(e,n,t){if(e&&e[n]&&e[n][t])return{prefix:n,iconName:t,icon:e[n][t]}}function ye(e){var n=e.tag,t=e.attributes,r=void 0===t?{}:t,o=e.children,a=void 0===o?[]:o;return"string"==typeof e?ae(e):"<".concat(n," ").concat(function(e){return Object.keys(e||{}).reduce((function(n,t){return n+"".concat(t,'="').concat(ae(e[t]),'" ')}),"").trim()}(r),">").concat(a.map(ye).join(""),"")}he(),ne.styles;function ge(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ge.prototype=Object.create(Error.prototype),ge.prototype.constructor=ge;var be={fill:"currentColor"},we={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};j({},be,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"});var ke=j({},we,{attributeName:"opacity"});function xe(e){var n=e[0],t=e[1],r=I(e.slice(4),1)[0];return{found:!0,width:n,height:t,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(J.familyPrefix,"-").concat(X)},children:[{tag:"path",attributes:{class:"".concat(J.familyPrefix,"-").concat(G),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(J.familyPrefix,"-").concat(Y),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}j({},be,{cx:"256",cy:"364",r:"28"}),j({},we,{attributeName:"r",values:"28;14;28;28;14;28;"}),j({},ke,{values:"1;0;1;1;0;1;"}),j({},be,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),j({},ke,{values:"1;0;0;0;0;1;"}),j({},be,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),j({},ke,{values:"0;0;1;1;0;0;"}),ne.styles,ne.styles;var Oe=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var n,t,r;return n=e,t=[{key:"add",value:function(){for(var e=this,n=arguments.length,t=new Array(n),r=0;r-1;o--){var a=t[o],i=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=a)}V.head.insertBefore(n,r)}}(function(){var e="fa",n=$,t=J.familyPrefix,r=J.replacementClass,o='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(t!==e||r!==n){var a=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(n),"g");o=o.replace(a,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(l,".".concat(r))}return o}()),ze=!0)}function Ee(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ye(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(B){var n=V.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function Se(e){var n=e.prefix,t=void 0===n?"fa":n,r=e.iconName;if(r)return ve(Me.definitions,t,r)||ve(ne.styles,t,r)}var Ne,Me=new Oe,ze=!1,Te=function(e){return function(e){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,n){var t=n.toLowerCase().split("-"),r=t[0],o=t.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),n):n}(e)},Ae=(Ne=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.transform,r=void 0===t?re:t,o=n.symbol,a=void 0!==o&&o,i=n.mask,l=void 0===i?null:i,c=n.maskId,u=void 0===c?null:c,s=n.title,f=void 0===s?null:s,d=n.titleId,p=void 0===d?null:d,_=n.classes,m=void 0===_?[]:_,h=n.attributes,v=void 0===h?{}:h,y=n.styles,g=void 0===y?{}:y;if(e){var b=e.prefix,w=e.iconName,k=e.icon;return Ee(j({type:"icon"},e),(function(){return Ce(),J.autoA11y&&(f?v["aria-labelledby"]="".concat(J.replacementClass,"-title-").concat(p||oe()):(v["aria-hidden"]="true",v.focusable="false")),fe({icons:{main:xe(k),mask:l?xe(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:w,transform:j({},re,r),symbol:a,title:f,maskId:u,titleId:p,extra:{attributes:v,styles:g,classes:m}})}))}},function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=(e||{}).icon?e:Se(e||{}),r=n.mask;return r&&(r=(r||{}).icon?r:Se(r||{})),Ne(t,j({},n,{mask:r}))});const Pe=()=>{},Le=e=>"number"==typeof e&&Number.isFinite(e),je=e=>"string"==typeof e,Ie=Array.isArray,De=e=>"object"==typeof e&&!!e&&!Ie(e),Ke=e=>"function"==typeof e,Ue=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),He=e=>{for(let n in e)if(Ue(e,n))return!1;return!0},Re=(e,n)=>e>n,Fe=(e,n)=>((e,n,t)=>{let r,o;if(Ie(e))for(let a=0,i=e.length;a{let n=null;if("/"===e.charAt(0)&&("/"===e.charAt(1)?e=`https://${e}`:n=e),null===n)try{n=new URL(e).pathname}catch(t){n=e}return n},Ve=e=>`__duo-toolbox__-${e}`,qe=Ve("global_variables"),Be=(e,n)=>(De(window[qe])||(window[qe]={}),Ue(window[qe],e)?window[qe][e]:n),$e=(e,n)=>{De(window[qe])||(window[qe]={}),window[qe][e]=n},Xe=(e,n,t)=>{const r=n(Be(e,t));return $e(e,r),r},Ye=e=>Xe(`__counter::${e}__`,(e=>e+1),0),Ge=Ve("original_function"),Ze=Ve("override_version"),Qe=(e,n,t,r=1)=>((e,n,t,r,o=1)=>{Ue(window,e)&&n(window[e])?t(window[e]):Xe("pending_global_listeners",((a={})=>{var i;if(!a[e]){a[e]={};let t=window[e];Object.defineProperty(window,e,{get:()=>t,set:r=>{n(r)?(Object.defineProperty(window,e,{value:r,configurable:!0,enumerable:!0,writable:!0}),Object.values(a[e]).forEach((e=>e.callback(r)))):t=r},configurable:!0})}return o>(Number(null===(i=a[e][r])||void 0===i?void 0:i.version)||0)&&(a[e][r]={callback:t,version:o}),a}))})(e,Ke,(e=>((e,n,t,r=1)=>{var o;if(De(e)&&r>(Number(null===(o=e[n])||void 0===o?void 0:o[Ze])||0)){var a;const o=(null===(a=e[n])||void 0===a?void 0:a[Ge])||e[n]||Pe;e[n]=t(o),e[n][Ge]=o,e[n][Ze]=r}})(null==e?void 0:e.prototype,n,t,r)),`instance_method:${n}`,r),Je=Ve("logging_iframe"),en=e=>{e.preventDefault(),e.stopPropagation()},nn=()=>document.activeElement&&["input","select","textarea"].indexOf(document.activeElement.tagName.toLowerCase())>=0?document.activeElement:null,tn=()=>(()=>{let e=document.getElementById(Je);return e&&e.isConnected||(e=document.createElement("iframe"),e.id=Je,e.style.display="none",document.body.appendChild(e)),e})().contentWindow.console,rn=(...e)=>tn().error(...e),on=["characterIntro","characterMatch","characterPuzzle","characterSelect","characterTrace","selectPronunciation","selectTranscription"],an=e=>{var n,t;return(null===(n=e.metadata)||void 0===n?void 0:n.source_language)||e.sourceLanguage||(null===(t=e.metadata)||void 0===t?void 0:t.learning_language)},ln=e=>{var n;return(null===(n=e.metadata)||void 0===n?void 0:n.target_language)||e.targetLanguage||an(e)},cn=Number.MAX_SAFE_INTEGER,un=Math.round(cn/4),sn=Math.round(2*un),fn=Math.round(3*un),dn="effect",pn="tts_sentence",_n="tts_word",mn="tts_morpheme",hn="unknown",vn="normal",yn="slow",gn="audio",bn="howler",wn=[gn,bn],kn="rate",xn="volume",On=Ve("forced_setting"),Cn=e=>De(e)&&!!e[On],En=e=>e.value,Sn=e=>({[On]:!0,value:e}),Nn=(e,n)=>kn===e&&Le(n)||xn===e&&n>=0&&n<=1,Mn=(e,n)=>((e,n,t,r=1)=>{if(!De(e))return;const o=Ve(`${n}_override_version`);r>(Number(e[o])||0)&&Object.defineProperty(e,n,t(Object.getOwnPropertyDescriptor(e,n)))})(HTMLMediaElement,n,(n=>({...n,set:function(t){const r=An[e];Le(t)?(this[r.originalValueKey]=t,Ue(this,r.valueKey)&&(t=this[r.isRelativeKey]?Ln(e,t*this[r.valueKey]):this[r.valueKey])):Cn(t)&&(t=En(t)),Le(t)&&(this[r.listenerValueKey]=t),n.set.call(this,t)}}))),zn=(e,n)=>Qe("Howl",n,(t=>function(){const r=this,o=arguments,a=An[e];let i=!1;const l=r._queue.length;(1===o.length||2===o.length&&void 0===o[1])&&-1===r._getSoundIds().indexOf(o[0])&&(Cn(o[0])?(i=!0,o[0]=En(o[0])):Nn(e,o[0])&&(r[a.originalValueKey]=o[0],Ue(r,a.valueKey)&&(i=!0,r[a.isRelativeKey]?o[0]=Ln(e,o[0]*r[a.valueKey]):o[0]=r[a.valueKey])),i&&(r[a.listenerValueKey]=o[0]));const c=t.apply(r,arguments);return i&&l({...r,functions:{[gn]:{applyOverride:()=>Mn(e,t),getter:e=>e[n],setter:(e,t)=>e[n]=t,hasQueuedUpdate:()=>!1},[bn]:{applyOverride:()=>zn(e,t),getter:e=>e[t](),setter:(e,n)=>e[t](n),hasQueuedUpdate:e=>e._queue.find((e=>e.event===t))}},priorityKey:Ve(`${e}_priority`),isRelativeKey:Ve(`${e}_is_relative`),valueKey:Ve(`forced_${e}_value`),originalValueKey:Ve(`original_${e}_value`),listenerValueKey:Ve(`${e}_value`)}),An={[kn]:Tn(kn,"playbackRate","rate",{minValue:.5,maxValue:4,defaultValue:1}),[xn]:Tn(xn,"volume","volume",{minValue:0,maxValue:1,defaultValue:1})},Pn=e=>{const n=An[e];if(!n)throw new Error(`Unknown sound setting: "${e}".`);return n},Ln=(e,n)=>An[e]?Math.max(An[e].minValue,Math.min(n,An[e].maxValue)):n,jn=(e,n,t,r,o=!1,a=1)=>{const i=Pn(e);if(a>=(Number(t[i.priorityKey])||0)){const l=Ln(e,n),c=((e,n)=>{if(-1===wn.indexOf(n))throw new Error(`Unknown sound playback strategy: "${n}".`);return Pn(e).functions[n]})(e,r);c.applyOverride(),t[i.valueKey]=l,t[i.priorityKey]=a,t[i.isRelativeKey]=o,Ue(t,i.originalValueKey)||(t[i.originalValueKey]=c.getter(t)),c.hasQueuedUpdate(t)||c.setter(t,Sn(Ln(e,l*(o?t[i.originalValueKey]:1))))}},In=(e,n)=>gn===n?e.currentTime:(e=>{if("loaded"!==e.state())return 0;const n=!!e._playLock;let t;n&&(e._playLock=!1);const r=e._getSoundIds();for(let n=0;n`__listener::${Ye("last_event_listener_id")}__`,Un=e=>{var n;return(null===(n=Be(Dn,{}))||void 0===n?void 0:n[e])||{}},Hn=(e,n)=>{Xe(Dn,(t=>Object.assign(t||{},{[e]:n})))},Rn=e=>!He(Un(e)),Fn=(e,n)=>{const t=Un(e);return He(t)?null:n(Object.values(t))},Wn=(e,n,t=Kn())=>{const r=Un(e);return r[t]=n,Hn(e,r),()=>qn(e,t)},Vn=(e,n,t,r,o=Wn,a=Kn())=>{const i=`__${n}::${e}__`;var l;l=i,Un(n)[l]||o(n,((...n)=>{const t=r(...n);Ie(t)&&Bn(e,...t)}),i);const c=Wn(e,t,a);return()=>{c(),Rn(e)||qn(n,i)}},qn=(e,n)=>{const t=Un(e);delete t[n],Hn(e,t)},Bn=(e,...n)=>Fn(e,(e=>e.flatMap((e=>{try{return[e(...n)]}catch(e){return[]}})))),$n="practice_session_loaded",Xn="practice_challenges_loaded",Yn="pre_fetched_session_loaded",Gn="story_loaded",Zn="alphabets_loaded",Qn="forum_discussion_loaded",Jn="dictionary_lexeme_loaded",et="sound_initialized",nt="sound_playback_requested",tt="sound_playback_confirmed",rt="sound_playback_cancelled",ot={[Zn]:/\/[\d]{4}-[\d]{2}-[\d]{2}\/alphabets\/courses\/(?[^/]+)\/(?[^/?]+)\/?/g,[Jn]:/\/api\/1\/dictionary_page/g,[Qn]:/\/comments\/([\d]+)/g,[$n]:/\/[\d]{4}-[\d]{2}-[\d]{2}\/sessions/g,[Gn]:/\/api2\/stories/g,user_data_loaded:/\/[\d]{4}-[\d]{2}-[\d]{2}\/users\/[\d]+/g},at=(e,n,t=Kn())=>(Qe("XMLHttpRequest","open",(e=>function(n,t,r,o,a){let i,l;for(const[e,n]of Object.entries(ot))if(l=Array.from(t.matchAll(n))[0],l){i=e;break}return i&&Fn(i,(e=>{this.addEventListener("load",(()=>{try{const n=De(this.response)?this.response:JSON.parse(this.responseText);e.forEach((e=>e(n,l.groups||{})))}catch(e){rn(e,`Could not handle the XHR result (event: ${i}): `)}}))})),e.call(this,n,t,r,o,a)}),2),Wn(e,n,t)),it=(e,n=Kn())=>{const t=Yn,r=e=>Fn(t,(n=>{e.addEventListener("success",(()=>{try{n.forEach((n=>n(e.result)))}catch(e){rn(e,`Could not handle the IDBRequest result (event: ${t}): `)}}))}));return Qe("IDBIndex","get",(e=>function(n){const t=e.call(this,n);return je(n)&&n&&"prefetchedSessions"===this.objectStore.name&&r(t),t})),Qe("IDBObjectStore","get",(e=>function(n){const t=e.call(this,n);return"prefetchedSessions"===this.name&&r(t),t})),Wn(t,e,n)},lt=e=>{const n=e=>{let n;if(De(e)){var t;n=[{challenges:[e.challenges,e.adaptiveChallenges,null===(t=e.adaptiveInterleavedChallenges)||void 0===t?void 0:t.challenges].filter(Ie).flat(),sessionMetaData:e.metadata||{}}]}return n},t=Vn(Xn,$n,e,n,at),r=Vn(Xn,Yn,e,n,((e,n,t)=>it(n,t)));return()=>{t(),r()}},ct=(e,n)=>({url:e,type:pn,speed:vn,language:n}),ut=(e,n)=>({url:e,type:_n,speed:vn,language:n}),st=(e,n)=>({url:e,type:mn,speed:vn,language:n}),ft=Object.fromEntries(["/sounds/7abe057dc8446ad325229edd6d8fd250.mp3","/sounds/2aae0ea735c8e9ed884107d6f0a09e35.mp3","/sounds/421d48c53ad6d52618dba715722278e0.mp3","/sounds/37d8f0b39dcfe63872192c89653a93f6.mp3","/sounds/0a27c1ee63dd220647e8410a0029aed2.mp3","/sounds/a28ff0a501ef5f33ca78c0afc45ee53e.mp3","/sounds/2e4669d8cf839272f0731f8afa488caf.mp3","/sounds/f0b6ab4396d5891241ef4ca73b4de13a.mp3"].map((e=>{return[e,(n=e,{url:n,type:dn,speed:vn,language:null})];var n}))),dt=/\/duolingo-data\/tts\/(?[a-z-_]+)\/token\//i,pt="sound_type_map",_t="is_howler_used",mt=()=>Be(pt,ft),ht=[hn,pn,_n,mn,dn],vt=[vn,yn],yt=(e,n)=>((e,n,t)=>{for(const r of e){const e=Number(r(n,t));if(!isNaN(e)&&0!==e)return e}return 0})([(e,n)=>ht.indexOf(e.type)-ht.indexOf(n.type),(e,n)=>vt.indexOf(e.speed)-vt.indexOf(n.speed)],e,n),gt=e=>{const n=mt()||{};for(const t of e){const e=We(t.url);(!n[e]||yt(t,n[e])>0)&&(n[e]=t)}$e(pt,n)},bt="sound_detection_listeners_version",wt="sound_detection_unregistration_callbacks",kt=(e,n,t)=>{var r;return{url:e.url,type:n,speed:(null===(r=e.speed)||void 0===r?void 0:r.value)||vn,language:t}},xt=()=>{const e=2<=(Number(Be(bt))||0);var n,t,r,o,a;!!Be(wt)&&e||(e||Ot(),$e(bt,2),$e(wt,[(a=e=>(e=>{const n=e.learningLanguage;Ie(null==e?void 0:e.elements)&>(e.elements.map((e=>{var n;return(null==e||null===(n=e.line)||void 0===n?void 0:n.content)||(null==e?void 0:e.learningLanguageTitleContent)})).flatMap((e=>[null==e?void 0:e.audio,null==e?void 0:e.audioPrefix,null==e?void 0:e.audioSuffix])).map((e=>null==e?void 0:e.url)).filter(je).map((e=>ct(e,n))))})(e),at(Gn,a)),(r=(e,n)=>((e,n)=>{const t=n.toLanguage;Ie(null==e?void 0:e.alphabets)&&je(null==n?void 0:n.toLanguage)&>(e.alphabets.flatMap((e=>null==e?void 0:e.groups)).flatMap((e=>null==e?void 0:e.characters)).flat().map((e=>null==e?void 0:e.ttsUrl)).filter(je).map((e=>st(e,t))))})(e,n),at(Zn,r,o)),(t=e=>{var n;je(null==(n=e)?void 0:n.tts_url)&>([ct(n.tts_url,n.sentence_language)])},at(Qn,t)),(n=e=>(e=>{const n=[],t=e.learning_language;je(e.tts)&&n.push(ut(e.tts,t)),Ie(e.alternative_forms)&&n.push(e.alternative_forms.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>ct(e,t)))),gt(n.flat())})(e),at(Jn,n)),lt((e=>(e=>{const n=[];for(const a of e){var t;const e=a.type,i=an(a),l=ln(a);if(je(a.tts)){const t=on.indexOf(e)>=0?st:ct;n.push(t(a.tts,i))}if(je(a.slowTts)&&n.push({url:a.slowTts,type:pn,speed:yn,language:i}),je(a.solutionTts)&&n.push(ct(a.solutionTts,l)),Ie(a.choices)){const t=-1===on.indexOf(e)?ut:st;n.push(a.choices.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>t(e,l))))}if(Ie(a.tokens)&&n.push(a.tokens.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>ut(e,i)))),Ie(a.questionTokens)&&n.push(a.questionTokens.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>ut(e,l)))),Ie(null===(t=a.metadata)||void 0===t?void 0:t.speakers))for(const e of a.metadata.speakers){var r,o;De(null===(r=e.tts)||void 0===r?void 0:r.tokens)&&n.push(Object.values(e.tts.tokens).filter((e=>je(e.url))).map((e=>kt(e,_n,l)))),Ie(null===(o=e.tts)||void 0===o?void 0:o.sentence)&&n.push(e.tts.sentence.filter((e=>je(e.url))).map((e=>kt(e,pn,l))))}if(Ie(a.pairs)){const t=-1===on.indexOf(e)?ut:st;n.push(a.pairs.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>t(e,l))))}Ie(a.options)&&n.push(a.options.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>ut(e,l))))}gt(n.flat())})(e.challenges)))]))},Ot=()=>{const e=Be(wt);!Ie(e)||Rn(et)||Rn(nt)||Rn(rt)||Rn(tt)||(e.forEach((e=>e())),$e(bt,null),$e(wt,null))},Ct=(e,n,t)=>{const r=(e=>{const n=mt()[e];if(De(n))return n;const t=e.match(dt);return t?ut(e,t.language):null})(We(n));return{url:n,type:(null==r?void 0:r.type)||hn,speed:(null==r?void 0:r.speed)||vn,language:null==r?void 0:r.language,playbackStrategy:t,sound:e}},Et=(e,n)=>{Qe("Howl","play",(e=>function(n){var t;$e(_t,!0);const r=String(this._src||(null===(t=this._parent)||void 0===t?void 0:t._src)||"").trim();return""!==r?((e,n,t,r)=>{const o=Ct(e,n,t);let a=!1;try{var i;a=null===(i=Bn(nt,o))||void 0===i?void 0:i.some((e=>!1===e)),Bn(a?rt:tt,o)}catch(e){rn(e,`Could not handle playback for sound "${n}" (using "${t}"): `)}return a?null:r()})(this,r,bn,(()=>e.call(this,n))):e.call(this,n)})),xt();const t=Wn(e,n);return()=>{t(),Ot()}},St=(e,n)=>{Xe("mutexes",(t=>(De(t[e])||(t[e]={currentHolder:null,pendingHolders:[]}),t[e]=n(t[e]),t)),{})},Nt=async(e,{priority:n=sn,timeoutDelay:t=null,onSupersessionRequest:r=Pe}={})=>new Promise(((o,a)=>{const i=Ye("last_mutex_holder_id"),l=t>0?setTimeout((()=>{St(e,(e=>({...e,pendingHolders:e.pendingHolders.filter((e=>i!==e.uniqueId))}))),a()}),t):null,c=()=>{l&&clearTimeout(l),o((()=>((e,n)=>{St(e,(e=>{var t;if((null===(t=e.currentHolder)||void 0===t?void 0:t.uniqueId)!==n)return;const r=Fe(e.pendingHolders,(e=>e.priority));return r?(setTimeout((()=>r.onAcquired())),e.currentHolder=r,e.pendingHolders=e.pendingHolders.filter((e=>e.uniqueId!==r.uniqueId))):e.currentHolder=null,e}))})(e,i)))},u={uniqueId:i,priority:n,onAcquired:c,onSupersessionRequest:r};St(e,(e=>(e.currentHolder?(e.pendingHolders.push(u),u.priority>e.currentHolder.priority&&setTimeout((()=>e.currentHolder.onSupersessionRequest()))):(e.currentHolder=u,setTimeout((()=>c()))),e)))}));var Mt,zt,Tt,At="_duo-ttsc_",Pt=["0","1","2","3","4","5","6","7","8","9"],Lt="basic",jt="cartoon",It=[Lt,jt],Dt=0,Kt=[],Ut=e.__r,Ht=e.diffed,Rt=e.__c,Ft=e.unmount;function Wt(n,t){e.__h&&e.__h(zt,n,Dt||t),Dt=0;var r=zt.__H||(zt.__H={__:[],__h:[]});return n>=r.__.length&&r.__.push({}),r.__[n]}function Vt(e){return Dt=1,qt(tr,e)}function qt(e,n,t){var r=Wt(Mt++,2);return r.t=e,r.__c||(r.__c=zt,r.__=[t?t(n):tr(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}]),r.__}function Bt(n,t){var r=Wt(Mt++,3);!e.__s&&nr(r.__H,t)&&(r.__=n,r.__H=t,zt.__H.__h.push(r))}function $t(n,t){var r=Wt(Mt++,4);!e.__s&&nr(r.__H,t)&&(r.__=n,r.__H=t,zt.__h.push(r))}function Xt(e){return Dt=5,Yt((function(){return{current:e}}),[])}function Yt(e,n){var t=Wt(Mt++,7);return nr(t.__H,n)?(t.__H=n,t.__h=e,t.__=e()):t.__}function Gt(e,n){return Dt=8,Yt((function(){return e}),n)}function Zt(){Kt.some((function(n){if(n.__P)try{n.__H.__h.forEach(Jt),n.__H.__h.forEach(er),n.__H.__h=[]}catch(t){return n.__H.__h=[],e.__e(t,n.__v),!0}})),Kt=[]}e.__r=function(e){Ut&&Ut(e),Mt=0;var n=(zt=e.__c).__H;n&&(n.__h.forEach(Jt),n.__h.forEach(er),n.__h=[])},e.diffed=function(n){Ht&&Ht(n);var t=n.__c;t&&t.__H&&t.__H.__h.length&&(1!==Kt.push(t)&&Tt===e.requestAnimationFrame||((Tt=e.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),Qt&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);Qt&&(n=requestAnimationFrame(t))})(Zt))},e.__c=function(n,t){t.some((function(n){try{n.__h.forEach(Jt),n.__h=n.__h.filter((function(e){return!e.__||er(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],e.__e(r,n.__v)}})),Rt&&Rt(n,t)},e.unmount=function(n){Ft&&Ft(n);var t=n.__c;if(t&&t.__H)try{t.__H.__.forEach(Jt)}catch(n){e.__e(n,t.__v)}};var Qt="function"==typeof requestAnimationFrame;function Jt(e){"function"==typeof e.u&&e.u()}function er(e){e.u=e.__()}function nr(e,n){return!e||n.some((function(n,t){return n!==e[t]}))}function tr(e,n){return"function"==typeof n?n(e):n}var rr=Object.freeze({__proto__:null,useState:Vt,useReducer:qt,useEffect:Bt,useLayoutEffect:$t,useRef:Xt,useImperativeHandle:function(e,n,t){Dt=6,$t((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:Yt,useCallback:Gt,useContext:function(e){var n=zt.context[e.__c],t=Wt(Mt++,9);return t.__c=e,n?(null==t.__&&(t.__=!0,n.sub(zt)),n.props.value):e.__},useDebugValue:function(n,t){e.useDebugValue&&e.useDebugValue(t?t(n):n)},useErrorBoundary:function(e){var n=Wt(Mt++,10),t=Vt();return n.__=e,zt.componentDidCatch||(zt.componentDidCatch=function(e){n.__&&n.__(e),t[1](e)}),[t[0],function(){t[1](void 0)}]}});function or(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}function ar(e){if(e.__esModule)return e;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var ir=ar(rr),lr=ar(A),cr=or((function(e,n){var t=ir,r=lr;function o(e,n){for(var t in n)e[t]=n[t];return e}function a(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function i(e){this.props=e}function l(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:a(this.props,e)}function o(n){return this.shouldComponentUpdate=t,r.createElement(e,n)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(i.prototype=new r.Component).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,n){return a(this.props,e)||a(this.state,n)};var c=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)};var u="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function s(e){function n(n,t){var r=o({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=u,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var f=function(e,n){return e?r.toChildArray(r.toChildArray(e).map(n)):null},d={map:f,forEach:f,count:function(e){return e?r.toChildArray(e).length:0},only:function(e){var n=r.toChildArray(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:r.toChildArray},p=r.options.__e;function _(e){return e&&((e=o({},e)).__c=null,e.__k=e.__k&&e.__k.map(_)),e}function m(e){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(m)),e}function h(){this.__u=0,this.t=null,this.__b=null}function v(e){var n=e.__.__c;return n&&n.o&&n.o(e)}function y(e){var n,t,o;function a(a){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){o=e})),o)throw o;if(!t)throw n;return r.createElement(t,a)}return a.displayName="Lazy",a.__f=!0,a}function g(){this.u=null,this.i=null}r.options.__e=function(e,n,t){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n.__c);p(e,n,t)},(h.prototype=new r.Component).__c=function(e,n){var t=this;null==t.t&&(t.t=[]),t.t.push(n);var r=v(t.__v),o=!1,a=function(){o||(o=!0,n.componentWillUnmount=n.__c,r?r(i):i())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){a(),n.__c&&n.__c()};var i=function(){var e;if(!--t.__u)for(t.__v.__k[0]=m(t.state.o),t.setState({o:t.__b=null});e=t.t.pop();)e.forceUpdate()};t.__u++||t.setState({o:t.__b=t.__v.__k[0]}),e.then(a,a)},h.prototype.componentWillUnmount=function(){this.t=[]},h.prototype.render=function(e,n){return this.__b&&(this.__v.__k&&(this.__v.__k[0]=_(this.__b)),this.__b=null),[r.createElement(r.Fragment,null,n.o?null:e.children),n.o&&e.fallback]};var b=function(e,n,t){if(++t[1]===t[0]&&e.i.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.i.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]0;)n+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return n}function ae(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ie(e){return Object.keys(e||{}).reduce((function(n,t){return n+"".concat(t,": ").concat(e[t],";")}),"")}function le(e){return e.size!==re.size||e.x!==re.x||e.y!==re.y||e.rotate!==re.rotate||e.flipX||e.flipY}function ce(e){var n=e.transform,t=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(t/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),i="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(a," ").concat(i," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var ue={x:0,y:0,width:"100%",height:"100%"};function se(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||n)&&(e.attributes.fill="black"),e}function fe(e){var n=e.icons,t=n.main,r=n.mask,o=e.prefix,a=e.iconName,i=e.transform,l=e.symbol,c=e.title,u=e.maskId,s=e.titleId,f=e.extra,d=e.watchable,p=void 0!==d&&d,_=r.found?r:t,m=_.width,h=_.height,v="fak"===o,y=v?"":"fa-w-".concat(Math.ceil(m/h*16)),g=[J.replacementClass,a?"".concat(J.familyPrefix,"-").concat(a):"",y].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),b={children:[],attributes:j({},f.attributes,{"data-prefix":o,"data-icon":a,class:g,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(h)})},w=v&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/h*16*.0625,"em")}:{};p&&(b.attributes["data-fa-i2svg"]=""),c&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(s||oe())},children:[c]});var k=j({},b,{prefix:o,iconName:a,main:t,mask:r,maskId:u,transform:i,symbol:l,styles:j({},w,f.styles)}),x=r.found&&t.found?function(e){var n,t=e.children,r=e.attributes,o=e.main,a=e.mask,i=e.maskId,l=e.transform,c=o.width,u=o.icon,s=a.width,f=a.icon,d=ce({transform:l,containerWidth:s,iconWidth:c}),p={tag:"rect",attributes:j({},ue,{fill:"white"})},_=u.children?{children:u.children.map(se)}:{},m={tag:"g",attributes:j({},d.inner),children:[se(j({tag:u.tag,attributes:j({},u.attributes,d.path)},_))]},h={tag:"g",attributes:j({},d.outer),children:[m]},v="mask-".concat(i||oe()),y="clip-".concat(i||oe()),g={tag:"mask",attributes:j({},ue,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,h]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(n=f,"g"===n.tag?n.children:[n])},g]};return t.push(b,{tag:"rect",attributes:j({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")")},ue)}),{children:t,attributes:r}}(k):function(e){var n=e.children,t=e.attributes,r=e.main,o=e.transform,a=ie(e.styles);if(a.length>0&&(t.style=a),le(o)){var i=ce({transform:o,containerWidth:r.width,iconWidth:r.width});n.push({tag:"g",attributes:j({},i.outer),children:[{tag:"g",attributes:j({},i.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:j({},r.icon.attributes,i.path)}]}]})}else n.push(r.icon);return{children:n,attributes:t}}(k),O=x.children,C=x.attributes;return k.children=O,k.attributes=C,l?function(e){var n=e.prefix,t=e.iconName,r=e.children,o=e.attributes,a=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:j({},o,{id:!0===a?"".concat(n,"-").concat(J.familyPrefix,"-").concat(t):a}),children:r}]}]}(k):function(e){var n=e.children,t=e.main,r=e.mask,o=e.attributes,a=e.styles,i=e.transform;if(le(i)&&t.found&&!r.found){var l={x:t.width/t.height/2,y:.5};o.style=ie(j({},a,{"transform-origin":"".concat(l.x+i.x/16,"em ").concat(l.y+i.y/16,"em")}))}return[{tag:"svg",attributes:o,children:n}]}(k)}J.measurePerformance&&q&&q.mark&&q.measure;var de=function(e,n,t,r){var o,a,i,l=Object.keys(e),c=l.length,u=void 0!==r?function(e,n){return function(t,r,o,a){return e.call(n,t,r,o,a)}}(n,r):n;for(void 0===t?(o=1,i=e[l[0]]):(o=0,i=t);o2&&void 0!==arguments[2]?arguments[2]:{},r=t.skipHooks,o=void 0!==r&&r,a=Object.keys(n).reduce((function(e,t){var r=n[t];return!!r.icon?e[r.iconName]=r.icon:e[t]=r,e}),{});"function"!=typeof ne.hooks.addPack||o?ne.styles[e]=j({},ne.styles[e]||{},a):ne.hooks.addPack(e,a),"fas"===e&&pe("fa",n)}var _e=ne.styles,me=ne.shims,he=function(){var e=function(e){return de(_e,(function(n,t,r){return n[r]=de(t,e,{}),n}),{})};e((function(e,n,t){return n[3]&&(e[n[3]]=t),e})),e((function(e,n,t){var r=n[2];return e[t]=t,r.forEach((function(n){e[n]=t})),e}));var n="far"in _e;de(me,(function(e,t){var r=t[0],o=t[1],a=t[2];return"far"!==o||n||(o="fas"),e[r]={prefix:o,iconName:a},e}),{})};function ve(e,n,t){if(e&&e[n]&&e[n][t])return{prefix:n,iconName:t,icon:e[n][t]}}function ye(e){var n=e.tag,t=e.attributes,r=void 0===t?{}:t,o=e.children,a=void 0===o?[]:o;return"string"==typeof e?ae(e):"<".concat(n," ").concat(function(e){return Object.keys(e||{}).reduce((function(n,t){return n+"".concat(t,'="').concat(ae(e[t]),'" ')}),"").trim()}(r),">").concat(a.map(ye).join(""),"")}he(),ne.styles;function ge(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ge.prototype=Object.create(Error.prototype),ge.prototype.constructor=ge;var be={fill:"currentColor"},we={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};j({},be,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"});var ke=j({},we,{attributeName:"opacity"});function xe(e){var n=e[0],t=e[1],r=I(e.slice(4),1)[0];return{found:!0,width:n,height:t,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(J.familyPrefix,"-").concat(X)},children:[{tag:"path",attributes:{class:"".concat(J.familyPrefix,"-").concat(G),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(J.familyPrefix,"-").concat(Y),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}j({},be,{cx:"256",cy:"364",r:"28"}),j({},we,{attributeName:"r",values:"28;14;28;28;14;28;"}),j({},ke,{values:"1;0;1;1;0;1;"}),j({},be,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),j({},ke,{values:"1;0;0;0;0;1;"}),j({},be,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),j({},ke,{values:"0;0;1;1;0;0;"}),ne.styles,ne.styles;var Oe=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var n,t,r;return n=e,t=[{key:"add",value:function(){for(var e=this,n=arguments.length,t=new Array(n),r=0;r-1;o--){var a=t[o],i=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=a)}V.head.insertBefore(n,r)}}(function(){var e="fa",n=$,t=J.familyPrefix,r=J.replacementClass,o='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(t!==e||r!==n){var a=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(n),"g");o=o.replace(a,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(l,".".concat(r))}return o}()),ze=!0)}function Ee(e,n){return Object.defineProperty(e,"abstract",{get:n}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ye(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(B){var n=V.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function Se(e){var n=e.prefix,t=void 0===n?"fa":n,r=e.iconName;if(r)return ve(Me.definitions,t,r)||ve(ne.styles,t,r)}var Ne,Me=new Oe,ze=!1,Ae=function(e){return function(e){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,n){var t=n.toLowerCase().split("-"),r=t[0],o=t.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),n):n}(e)},Te=(Ne=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.transform,r=void 0===t?re:t,o=n.symbol,a=void 0!==o&&o,i=n.mask,l=void 0===i?null:i,c=n.maskId,u=void 0===c?null:c,s=n.title,f=void 0===s?null:s,d=n.titleId,p=void 0===d?null:d,_=n.classes,m=void 0===_?[]:_,h=n.attributes,v=void 0===h?{}:h,y=n.styles,g=void 0===y?{}:y;if(e){var b=e.prefix,w=e.iconName,k=e.icon;return Ee(j({type:"icon"},e),(function(){return Ce(),J.autoA11y&&(f?v["aria-labelledby"]="".concat(J.replacementClass,"-title-").concat(p||oe()):(v["aria-hidden"]="true",v.focusable="false")),fe({icons:{main:xe(k),mask:l?xe(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:w,transform:j({},re,r),symbol:a,title:f,maskId:u,titleId:p,extra:{attributes:v,styles:g,classes:m}})}))}},function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=(e||{}).icon?e:Se(e||{}),r=n.mask;return r&&(r=(r||{}).icon?r:Se(r||{})),Ne(t,j({},n,{mask:r}))});const Pe=()=>{},Le=e=>"number"==typeof e&&Number.isFinite(e),je=e=>"string"==typeof e,Ie=Array.isArray,De=e=>"object"==typeof e&&!!e&&!Ie(e),Ke=e=>"function"==typeof e,Ue=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),He=e=>{for(let n in e)if(Ue(e,n))return!1;return!0},Re=(e,n)=>e>n,Fe=(e,n)=>((e,n,t)=>{let r,o;if(Ie(e))for(let a=0,i=e.length;a{let n=null;if("/"===e.charAt(0)&&("/"===e.charAt(1)?e=`https://${e}`:n=e),null===n)try{n=new URL(e).pathname}catch(t){n=e}return n},Ve=e=>`__duo-toolbox__-${e}`,qe=Ve("global_variables"),Be=(e,n)=>(De(window[qe])||(window[qe]={}),Ue(window[qe],e)?window[qe][e]:n),$e=(e,n)=>{De(window[qe])||(window[qe]={}),window[qe][e]=n},Xe=(e,n,t)=>{const r=n(Be(e,t));return $e(e,r),r},Ye=e=>Xe(`__counter::${e}__`,(e=>e+1),0),Ge=(e,n,t,r,o=1)=>{Ue(window,e)&&n(window[e])?t(window[e]):Xe("pending_global_listeners",((a={})=>{var i;if(!a[e]){a[e]={};let t=window[e];Object.defineProperty(window,e,{get:()=>t,set:r=>{n(r)?(Object.defineProperty(window,e,{value:r,configurable:!0,enumerable:!0,writable:!0}),Object.values(a[e]).forEach((e=>e.callback(r)))):t=r},configurable:!0})}return o>(Number(null===(i=a[e][r])||void 0===i?void 0:i.version)||0)&&(a[e][r]={callback:t,version:o}),a}))},Ze=Ve("original_function"),Qe=Ve("override_version"),Je=(e,n,t,r=1)=>{var o;if(De(e)&&r>(Number(null===(o=e[n])||void 0===o?void 0:o[Qe])||0)){var a;const o=(null===(a=e[n])||void 0===a?void 0:a[Ze])||e[n]||Pe;e[n]=t(o),e[n][Ze]=o,e[n][Qe]=r}},en=(e,n,t,r=1)=>Ge(e,Ke,(e=>Je(null==e?void 0:e.prototype,n,t,r)),`instance_method:${n}`,r),nn=Ve("logging_iframe"),tn=e=>{e.preventDefault(),e.stopPropagation()},rn=()=>document.activeElement&&["input","select","textarea"].indexOf(document.activeElement.tagName.toLowerCase())>=0?document.activeElement:null,on=()=>(()=>{let e=document.getElementById(nn);return e&&e.isConnected||(e=document.createElement("iframe"),e.id=nn,e.style.display="none",document.body.appendChild(e)),e})().contentWindow.console,an=(...e)=>on().error(...e),ln=["characterIntro","characterMatch","characterPuzzle","characterSelect","characterTrace","selectPronunciation","selectTranscription"],cn=e=>{var n,t;return(null===(n=e.metadata)||void 0===n?void 0:n.source_language)||e.sourceLanguage||(null===(t=e.metadata)||void 0===t?void 0:t.learning_language)},un=e=>{var n;return(null===(n=e.metadata)||void 0===n?void 0:n.target_language)||e.targetLanguage||cn(e)},sn=Number.MAX_SAFE_INTEGER,fn=Math.round(sn/4),dn=Math.round(2*fn),pn=Math.round(3*fn),_n="effect",mn="tts_sentence",hn="tts_word",vn="tts_morpheme",yn="unknown",gn="normal",bn="slow",wn="audio",kn="howler",xn=[wn,kn],On="rate",Cn="volume",En=Ve("forced_setting"),Sn=e=>De(e)&&!!e[En],Nn=e=>e.value,Mn=e=>({[En]:!0,value:e}),zn=(e,n)=>On===e&&Le(n)||Cn===e&&n>=0&&n<=1,An=(e,n)=>((e,n,t,r=1)=>{if(!De(e))return;const o=Ve(`${n}_override_version`);r>(Number(e[o])||0)&&Object.defineProperty(e,n,t(Object.getOwnPropertyDescriptor(e,n)))})(HTMLMediaElement,n,(n=>({...n,set:function(t){const r=Ln[e];Le(t)?(this[r.originalValueKey]=t,Ue(this,r.valueKey)&&(t=this[r.isRelativeKey]?In(e,t*this[r.valueKey]):this[r.valueKey])):Sn(t)&&(t=Nn(t)),Le(t)&&(this[r.listenerValueKey]=t),n.set.call(this,t)}}))),Tn=(e,n)=>en("Howl",n,(t=>function(){const r=this,o=arguments,a=Ln[e];let i=!1;const l=r._queue.length;(1===o.length||2===o.length&&void 0===o[1])&&-1===r._getSoundIds().indexOf(o[0])&&(Sn(o[0])?(i=!0,o[0]=Nn(o[0])):zn(e,o[0])&&(r[a.originalValueKey]=o[0],Ue(r,a.valueKey)&&(i=!0,r[a.isRelativeKey]?o[0]=In(e,o[0]*r[a.valueKey]):o[0]=r[a.valueKey])),i&&(r[a.listenerValueKey]=o[0]));const c=t.apply(r,arguments);return i&&l({...r,functions:{[wn]:{applyOverride:()=>An(e,t),getter:e=>e[n],setter:(e,t)=>e[n]=t,hasQueuedUpdate:()=>!1},[kn]:{applyOverride:()=>Tn(e,t),getter:e=>e[t](),setter:(e,n)=>e[t](n),hasQueuedUpdate:e=>e._queue.find((e=>e.event===t))}},priorityKey:Ve(`${e}_priority`),isRelativeKey:Ve(`${e}_is_relative`),valueKey:Ve(`forced_${e}_value`),originalValueKey:Ve(`original_${e}_value`),listenerValueKey:Ve(`${e}_value`)}),Ln={[On]:Pn(On,"playbackRate","rate",{minValue:.5,maxValue:4,defaultValue:1}),[Cn]:Pn(Cn,"volume","volume",{minValue:0,maxValue:1,defaultValue:1})},jn=e=>{const n=Ln[e];if(!n)throw new Error(`Unknown sound setting: "${e}".`);return n},In=(e,n)=>Ln[e]?Math.max(Ln[e].minValue,Math.min(n,Ln[e].maxValue)):n,Dn=(e,n,t,r,o=!1,a=1)=>{const i=jn(e);if(a>=(Number(t[i.priorityKey])||0)){const l=In(e,n),c=((e,n)=>{if(-1===xn.indexOf(n))throw new Error(`Unknown sound playback strategy: "${n}".`);return jn(e).functions[n]})(e,r);c.applyOverride(),t[i.valueKey]=l,t[i.priorityKey]=a,t[i.isRelativeKey]=o,Ue(t,i.originalValueKey)||(t[i.originalValueKey]=c.getter(t)),c.hasQueuedUpdate(t)||c.setter(t,Mn(In(e,l*(o?t[i.originalValueKey]:1))))}},Kn=(e,n)=>wn===n?e.currentTime:(e=>{if("loaded"!==e.state())return 0;const n=!!e._playLock;let t;n&&(e._playLock=!1);const r=e._getSoundIds();for(let n=0;n`__listener::${Ye("last_event_listener_id")}__`,Rn=e=>{var n;return(null===(n=Be(Un,{}))||void 0===n?void 0:n[e])||{}},Fn=(e,n)=>{Xe(Un,(t=>Object.assign(t||{},{[e]:n})))},Wn=e=>!He(Rn(e)),Vn=(e,n)=>{const t=Rn(e);return He(t)?null:n(Object.values(t))},qn=(e,n,t=Hn())=>{const r=Rn(e);return r[t]=n,Fn(e,r),()=>$n(e,t)},Bn=(e,n,t,r,o=qn,a=Hn())=>{const i=`__${n}::${e}__`;var l;l=i,Rn(n)[l]||o(n,((...n)=>{const t=r(...n);Ie(t)&&Xn(e,...t)}),i);const c=qn(e,t,a);return()=>{c(),Wn(e)||$n(n,i)}},$n=(e,n)=>{const t=Rn(e);delete t[n],Fn(e,t)},Xn=(e,...n)=>Vn(e,(e=>e.flatMap((e=>{try{return[e(...n)]}catch(e){return[]}})))),Yn="practice_session_loaded",Gn="practice_challenges_loaded",Zn="pre_fetched_session_loaded",Qn="story_loaded",Jn="alphabets_loaded",et="forum_discussion_loaded",nt="dictionary_lexeme_loaded",tt="sound_initialized",rt="sound_playback_requested",ot="sound_playback_confirmed",at="sound_playback_cancelled",it={[Jn]:/\/[\d]{4}-[\d]{2}-[\d]{2}\/alphabets\/courses\/(?[^/]+)\/(?[^/?]+)\/?/g,[nt]:/\/api\/1\/dictionary_page/g,[et]:/\/comments\/([\d]+)/g,[Yn]:/\/[\d]{4}-[\d]{2}-[\d]{2}\/sessions/g,[Qn]:/\/api2\/stories/g,user_data_loaded:/\/[\d]{4}-[\d]{2}-[\d]{2}\/users\/[\d]+/g},lt=(e,n,t=Hn())=>(en("XMLHttpRequest","open",(e=>function(n,t,r,o,a){let i,l;for(const[e,n]of Object.entries(it))if(l=Array.from(t.matchAll(n))[0],l){i=e;break}return i&&Vn(i,(e=>{this.addEventListener("load",(()=>{try{const n=De(this.response)?this.response:JSON.parse(this.responseText);e.forEach((e=>e(n,l.groups||{})))}catch(e){an(e,`Could not handle the XHR result (event: ${i}): `)}}))})),e.call(this,n,t,r,o,a)}),2),((e,n,t=1)=>{Ge(e,Ke,(()=>Je(window,e,n,t)),"global",t)})("fetch",(e=>function(n,t){const r=n instanceof Request?n.url:String(n);let o,a,i=null;for(const[e,n]of Object.entries(it))if(a=Array.from(r.matchAll(n))[0],a){o=e;break}return o&&(i=Vn(o,(e=>n=>{try{e.forEach((e=>e(n,a.groups||{})))}catch(e){an(e,`Could not handle the fetch result (event: ${o}): `)}}))),e.call(this,n,t).then((e=>{if(!i)return e;const n=e.clone();return e.json().then((e=>(i(e),n))).catch((()=>n))}))})),qn(e,n,t)),ct=(e,n=Hn())=>{const t=Zn,r=e=>Vn(t,(n=>{e.addEventListener("success",(()=>{try{n.forEach((n=>n(e.result)))}catch(e){an(e,`Could not handle the IDBRequest result (event: ${t}): `)}}))}));return en("IDBIndex","get",(e=>function(n){const t=e.call(this,n);return je(n)&&n&&"prefetchedSessions"===this.objectStore.name&&r(t),t})),en("IDBObjectStore","get",(e=>function(n){const t=e.call(this,n);return"prefetchedSessions"===this.name&&r(t),t})),qn(t,e,n)},ut=e=>{const n=e=>{let n;if(De(e)){var t;n=[{challenges:[e.challenges,e.adaptiveChallenges,null===(t=e.adaptiveInterleavedChallenges)||void 0===t?void 0:t.challenges].filter(Ie).flat(),sessionMetaData:e.metadata||{}}]}return n},t=Bn(Gn,Yn,e,n,lt),r=Bn(Gn,Zn,e,n,((e,n,t)=>ct(n,t)));return()=>{t(),r()}},st=(e,n)=>({url:e,type:mn,speed:gn,language:n}),ft=(e,n)=>({url:e,type:hn,speed:gn,language:n}),dt=(e,n)=>({url:e,type:vn,speed:gn,language:n}),pt=Object.fromEntries(["/sounds/7abe057dc8446ad325229edd6d8fd250.mp3","/sounds/2aae0ea735c8e9ed884107d6f0a09e35.mp3","/sounds/421d48c53ad6d52618dba715722278e0.mp3","/sounds/37d8f0b39dcfe63872192c89653a93f6.mp3","/sounds/0a27c1ee63dd220647e8410a0029aed2.mp3","/sounds/a28ff0a501ef5f33ca78c0afc45ee53e.mp3","/sounds/2e4669d8cf839272f0731f8afa488caf.mp3","/sounds/f0b6ab4396d5891241ef4ca73b4de13a.mp3"].map((e=>{return[e,(n=e,{url:n,type:_n,speed:gn,language:null})];var n}))),_t=/\/duolingo-data\/tts\/(?[a-z-_]+)\/token\//i,mt="sound_type_map",ht="is_howler_used",vt=()=>Be(mt,pt),yt=[yn,mn,hn,vn,_n],gt=[gn,bn],bt=(e,n)=>((e,n,t)=>{for(const r of e){const e=Number(r(n,t));if(!isNaN(e)&&0!==e)return e}return 0})([(e,n)=>yt.indexOf(e.type)-yt.indexOf(n.type),(e,n)=>gt.indexOf(e.speed)-gt.indexOf(n.speed)],e,n),wt=e=>{const n=vt()||{};for(const t of e){const e=We(t.url);(!n[e]||bt(t,n[e])>0)&&(n[e]=t)}$e(mt,n)},kt="sound_detection_listeners_version",xt="sound_detection_unregistration_callbacks",Ot=(e,n,t)=>{var r;return{url:e.url,type:n,speed:(null===(r=e.speed)||void 0===r?void 0:r.value)||gn,language:t}},Ct=()=>{const e=2<=(Number(Be(kt))||0);var n,t,r,o,a;!!Be(xt)&&e||(e||Et(),$e(kt,2),$e(xt,[(a=e=>(e=>{const n=e.learningLanguage;Ie(null==e?void 0:e.elements)&&wt(e.elements.map((e=>{var n;return(null==e||null===(n=e.line)||void 0===n?void 0:n.content)||(null==e?void 0:e.learningLanguageTitleContent)})).flatMap((e=>[null==e?void 0:e.audio,null==e?void 0:e.audioPrefix,null==e?void 0:e.audioSuffix])).map((e=>null==e?void 0:e.url)).filter(je).map((e=>st(e,n))))})(e),lt(Qn,a)),(r=(e,n)=>((e,n)=>{const t=n.toLanguage;Ie(null==e?void 0:e.alphabets)&&je(null==n?void 0:n.toLanguage)&&wt(e.alphabets.flatMap((e=>null==e?void 0:e.groups)).flatMap((e=>null==e?void 0:e.characters)).flat().map((e=>null==e?void 0:e.ttsUrl)).filter(je).map((e=>dt(e,t))))})(e,n),lt(Jn,r,o)),(t=e=>{var n;je(null==(n=e)?void 0:n.tts_url)&&wt([st(n.tts_url,n.sentence_language)])},lt(et,t)),(n=e=>(e=>{const n=[],t=e.learning_language;je(e.tts)&&n.push(ft(e.tts,t)),Ie(e.alternative_forms)&&n.push(e.alternative_forms.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>st(e,t)))),wt(n.flat())})(e),lt(nt,n)),ut((e=>(e=>{const n=[];for(const a of e){var t;const e=a.type,i=cn(a),l=un(a);if(je(a.tts)){const t=ln.indexOf(e)>=0?dt:st;n.push(t(a.tts,i))}if(je(a.slowTts)&&n.push({url:a.slowTts,type:mn,speed:bn,language:i}),je(a.solutionTts)&&n.push(st(a.solutionTts,l)),Ie(a.choices)){const t=-1===ln.indexOf(e)?ft:dt;n.push(a.choices.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>t(e,l))))}if(Ie(a.tokens)&&n.push(a.tokens.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>ft(e,i)))),Ie(a.questionTokens)&&n.push(a.questionTokens.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>ft(e,l)))),Ie(null===(t=a.metadata)||void 0===t?void 0:t.speakers))for(const e of a.metadata.speakers){var r,o;De(null===(r=e.tts)||void 0===r?void 0:r.tokens)&&n.push(Object.values(e.tts.tokens).filter((e=>je(e.url))).map((e=>Ot(e,hn,l)))),Ie(null===(o=e.tts)||void 0===o?void 0:o.sentence)&&n.push(e.tts.sentence.filter((e=>je(e.url))).map((e=>Ot(e,mn,l))))}if(Ie(a.pairs)){const t=-1===ln.indexOf(e)?ft:dt;n.push(a.pairs.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>t(e,l))))}Ie(a.options)&&n.push(a.options.map((e=>null==e?void 0:e.tts)).filter(je).map((e=>ft(e,l))))}wt(n.flat())})(e.challenges)))]))},Et=()=>{const e=Be(xt);!Ie(e)||Wn(tt)||Wn(rt)||Wn(at)||Wn(ot)||(e.forEach((e=>e())),$e(kt,null),$e(xt,null))},St=(e,n,t)=>{const r=(e=>{const n=vt()[e];if(De(n))return n;const t=e.match(_t);return t?ft(e,t.language):null})(We(n));return{url:n,type:(null==r?void 0:r.type)||yn,speed:(null==r?void 0:r.speed)||gn,language:null==r?void 0:r.language,playbackStrategy:t,sound:e}},Nt=(e,n)=>{en("Howl","play",(e=>function(n){var t;$e(ht,!0);const r=String(this._src||(null===(t=this._parent)||void 0===t?void 0:t._src)||"").trim();return""!==r?((e,n,t,r)=>{const o=St(e,n,t);let a=!1;try{var i;a=null===(i=Xn(rt,o))||void 0===i?void 0:i.some((e=>!1===e)),Xn(a?at:ot,o)}catch(e){an(e,`Could not handle playback for sound "${n}" (using "${t}"): `)}return a?null:r()})(this,r,kn,(()=>e.call(this,n))):e.call(this,n)})),Ct();const t=qn(e,n);return()=>{t(),Et()}},Mt=(e,n)=>{Xe("mutexes",(t=>(De(t[e])||(t[e]={currentHolder:null,pendingHolders:[]}),t[e]=n(t[e]),t)),{})},zt=async(e,{priority:n=dn,timeoutDelay:t=null,onSupersessionRequest:r=Pe}={})=>new Promise(((o,a)=>{const i=Ye("last_mutex_holder_id"),l=t>0?setTimeout((()=>{Mt(e,(e=>({...e,pendingHolders:e.pendingHolders.filter((e=>i!==e.uniqueId))}))),a()}),t):null,c=()=>{l&&clearTimeout(l),o((()=>((e,n)=>{Mt(e,(e=>{var t;if((null===(t=e.currentHolder)||void 0===t?void 0:t.uniqueId)!==n)return;const r=Fe(e.pendingHolders,(e=>e.priority));return r?(setTimeout((()=>r.onAcquired())),e.currentHolder=r,e.pendingHolders=e.pendingHolders.filter((e=>e.uniqueId!==r.uniqueId))):e.currentHolder=null,e}))})(e,i)))},u={uniqueId:i,priority:n,onAcquired:c,onSupersessionRequest:r};Mt(e,(e=>(e.currentHolder?(e.pendingHolders.push(u),u.priority>e.currentHolder.priority&&setTimeout((()=>e.currentHolder.onSupersessionRequest()))):(e.currentHolder=u,setTimeout((()=>c()))),e)))}));var At,Tt,Pt,Lt="_duo-ttsc_",jt=["0","1","2","3","4","5","6","7","8","9"],It="basic",Dt="cartoon",Kt=[It,Dt],Ut=0,Ht=[],Rt=e.__r,Ft=e.diffed,Wt=e.__c,Vt=e.unmount;function qt(n,t){e.__h&&e.__h(Tt,n,Ut||t),Ut=0;var r=Tt.__H||(Tt.__H={__:[],__h:[]});return n>=r.__.length&&r.__.push({}),r.__[n]}function Bt(e){return Ut=1,$t(or,e)}function $t(e,n,t){var r=qt(At++,2);return r.t=e,r.__c||(r.__c=Tt,r.__=[t?t(n):or(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}]),r.__}function Xt(n,t){var r=qt(At++,3);!e.__s&&rr(r.__H,t)&&(r.__=n,r.__H=t,Tt.__H.__h.push(r))}function Yt(n,t){var r=qt(At++,4);!e.__s&&rr(r.__H,t)&&(r.__=n,r.__H=t,Tt.__h.push(r))}function Gt(e){return Ut=5,Zt((function(){return{current:e}}),[])}function Zt(e,n){var t=qt(At++,7);return rr(t.__H,n)?(t.__H=n,t.__h=e,t.__=e()):t.__}function Qt(e,n){return Ut=8,Zt((function(){return e}),n)}function Jt(){Ht.some((function(n){if(n.__P)try{n.__H.__h.forEach(nr),n.__H.__h.forEach(tr),n.__H.__h=[]}catch(t){return n.__H.__h=[],e.__e(t,n.__v),!0}})),Ht=[]}e.__r=function(e){Rt&&Rt(e),At=0;var n=(Tt=e.__c).__H;n&&(n.__h.forEach(nr),n.__h.forEach(tr),n.__h=[])},e.diffed=function(n){Ft&&Ft(n);var t=n.__c;t&&t.__H&&t.__H.__h.length&&(1!==Ht.push(t)&&Pt===e.requestAnimationFrame||((Pt=e.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),er&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);er&&(n=requestAnimationFrame(t))})(Jt))},e.__c=function(n,t){t.some((function(n){try{n.__h.forEach(nr),n.__h=n.__h.filter((function(e){return!e.__||tr(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],e.__e(r,n.__v)}})),Wt&&Wt(n,t)},e.unmount=function(n){Vt&&Vt(n);var t=n.__c;if(t&&t.__H)try{t.__H.__.forEach(nr)}catch(n){e.__e(n,t.__v)}};var er="function"==typeof requestAnimationFrame;function nr(e){"function"==typeof e.u&&e.u()}function tr(e){e.u=e.__()}function rr(e,n){return!e||n.some((function(n,t){return n!==e[t]}))}function or(e,n){return"function"==typeof n?n(e):n}var ar=Object.freeze({__proto__:null,useState:Bt,useReducer:$t,useEffect:Xt,useLayoutEffect:Yt,useRef:Gt,useImperativeHandle:function(e,n,t){Ut=6,Yt((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:Zt,useCallback:Qt,useContext:function(e){var n=Tt.context[e.__c],t=qt(At++,9);return t.__c=e,n?(null==t.__&&(t.__=!0,n.sub(Tt)),n.props.value):e.__},useDebugValue:function(n,t){e.useDebugValue&&e.useDebugValue(t?t(n):n)},useErrorBoundary:function(e){var n=qt(At++,10),t=Bt();return n.__=e,Tt.componentDidCatch||(Tt.componentDidCatch=function(e){n.__&&n.__(e),t[1](e)}),[t[0],function(){t[1](void 0)}]}});function ir(e,n,t){return e(t={path:n,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&t.path)}},t.exports),t.exports}function lr(e){if(e.__esModule)return e;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var cr=lr(ar),ur=lr(T),sr=ir((function(e,n){var t=cr,r=ur;function o(e,n){for(var t in n)e[t]=n[t];return e}function a(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function i(e){this.props=e}function l(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:a(this.props,e)}function o(n){return this.shouldComponentUpdate=t,r.createElement(e,n)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(i.prototype=new r.Component).isPureReactComponent=!0,i.prototype.shouldComponentUpdate=function(e,n){return a(this.props,e)||a(this.state,n)};var c=r.options.__b;r.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),c&&c(e)};var u="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function s(e){function n(n,t){var r=o({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=u,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var f=function(e,n){return e?r.toChildArray(r.toChildArray(e).map(n)):null},d={map:f,forEach:f,count:function(e){return e?r.toChildArray(e).length:0},only:function(e){var n=r.toChildArray(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:r.toChildArray},p=r.options.__e;function _(e){return e&&((e=o({},e)).__c=null,e.__k=e.__k&&e.__k.map(_)),e}function m(e){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(m)),e}function h(){this.__u=0,this.t=null,this.__b=null}function v(e){var n=e.__.__c;return n&&n.o&&n.o(e)}function y(e){var n,t,o;function a(a){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){o=e})),o)throw o;if(!t)throw n;return r.createElement(t,a)}return a.displayName="Lazy",a.__f=!0,a}function g(){this.u=null,this.i=null}r.options.__e=function(e,n,t){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n.__c);p(e,n,t)},(h.prototype=new r.Component).__c=function(e,n){var t=this;null==t.t&&(t.t=[]),t.t.push(n);var r=v(t.__v),o=!1,a=function(){o||(o=!0,n.componentWillUnmount=n.__c,r?r(i):i())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){a(),n.__c&&n.__c()};var i=function(){var e;if(!--t.__u)for(t.__v.__k[0]=m(t.state.o),t.setState({o:t.__b=null});e=t.t.pop();)e.forceUpdate()};t.__u++||t.setState({o:t.__b=t.__v.__k[0]}),e.then(a,a)},h.prototype.componentWillUnmount=function(){this.t=[]},h.prototype.render=function(e,n){return this.__b&&(this.__v.__k&&(this.__v.__k[0]=_(this.__b)),this.__b=null),[r.createElement(r.Fragment,null,n.o?null:e.children),n.o&&e.fallback]};var b=function(e,n,t){if(++t[1]===t[0]&&e.i.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.i.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]Ln(kn,yn===e?1:.5),wr=e=>Ln(kn,yn===e?2.5:2),kr=()=>Ln(xn,.05),xr=()=>Ln(xn,1),Or=(e,n)=>Math.max(br(e),Math.min(n,wr(e))),Cr=e=>Math.max(kr(),Math.min(e,xr())),Er=e=>"".concat(At,"tts_rate_").concat(e),Sr=e=>"".concat(At,"tts_volume_").concat(e),Nr=e=>Or(e,Number(localStorage.getItem(Er(e)))||1),Mr=e=>Cr(Number(localStorage.getItem(Sr(e)))||1),zr=e=>In(e,bn),Tr=(e,n,t)=>{jn(kn,e,t,bn,!1,fn),jn(xn,n,t,bn,!1,fn)};function Ar(){}function Pr(){}Pr.resetWarningCache=Ar;var Lr=or((function(e){e.exports=function(){function e(e,n,t,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:Pr,resetWarningCache:Ar};return t.PropTypes=t,t}()}));function jr(e){return jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(e)}function Ir(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Dr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Kr(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Hr(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n0||!Array.isArray(n)&&n?Ir({},e,n):{}}function Br(e){var n=e.forwardedRef,t=Ur(e,["forwardedRef"]),r=t.icon,o=t.mask,a=t.symbol,i=t.className,l=t.title,c=t.titleId,u=Vr(r),s=qr("classes",[].concat(Hr(function(e){var n,t=e.spin,r=e.pulse,o=e.fixedWidth,a=e.inverse,i=e.border,l=e.listItem,c=e.flip,u=e.size,s=e.rotation,f=e.pull,d=(Ir(n={"fa-spin":t,"fa-pulse":r,"fa-fw":o,"fa-inverse":a,"fa-border":i,"fa-li":l,"fa-flip-horizontal":"horizontal"===c||"both"===c,"fa-flip-vertical":"vertical"===c||"both"===c},"fa-".concat(u),null!=u),Ir(n,"fa-rotate-".concat(s),null!=s&&0!==s),Ir(n,"fa-pull-".concat(f),null!=f),Ir(n,"fa-swap-opacity",e.swapOpacity),n);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(t)),Hr(i.split(" ")))),f=qr("transform","string"==typeof t.transform?Te(t.transform):t.transform),d=qr("mask",Vr(o)),p=Ae(u,Kr({},s,{},f,{},d,{symbol:a,title:l,titleId:c}));if(!p)return function(){var e;!Wr&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var _=p.abstract,m={ref:n};return Object.keys(t).forEach((function(e){Br.defaultProps.hasOwnProperty(e)||(m[e]=t[e])})),$r(_[0],m)}Br.displayName="FontAwesomeIcon",Br.propTypes={border:Lr.bool,className:Lr.string,mask:Lr.oneOfType([Lr.object,Lr.array,Lr.string]),fixedWidth:Lr.bool,inverse:Lr.bool,flip:Lr.oneOf(["horizontal","vertical","both"]),icon:Lr.oneOfType([Lr.object,Lr.array,Lr.string]),listItem:Lr.bool,pull:Lr.oneOf(["right","left"]),pulse:Lr.bool,rotation:Lr.oneOf([0,90,180,270]),size:Lr.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Lr.bool,symbol:Lr.oneOfType([Lr.bool,Lr.string]),title:Lr.string,transform:Lr.oneOfType([Lr.string,Lr.object]),swapOpacity:Lr.bool},Br.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var $r=function e(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t)return t;var o=(t.children||[]).map((function(t){return e(n,t)})),a=Object.keys(t.attributes||{}).reduce((function(e,n){var r=t.attributes[n];switch(n){case"class":e.attrs.className=r,delete t.attributes.class;break;case"style":e.attrs.style=Fr(r);break;default:0===n.indexOf("aria-")||0===n.indexOf("data-")?e.attrs[n.toLowerCase()]=r:e.attrs[Rr(n)]=r}return e}),{attrs:{}}),i=r.style,l=void 0===i?{}:i,c=Ur(r,["style"]);return a.attrs.style=Kr({},a.attrs.style,{},l),n.apply(void 0,[t.tag,Kr({},a.attrs,{},c)].concat(Hr(o)))}.bind(null,cr.createElement),Xr=Symbol("base"),Yr=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Gt((t=>(Ie(t)?t:[t]).flatMap((t=>{var r=[];return e[Xr]&&e[Xr][t]&&r.push(...e[Xr][t]),n.forEach((n=>{n&&e[n]&&e[n][t]&&r.push(...e[n][t])})),r})).join(" ")),n.concat([e]))},Gr="pause",Zr="pin",Qr="play",Jr="speed_normal",eo="speed_slow",no="stop",to="toggle",ro=[Gr,Zr,Qr,Jr,eo,no,to],oo={[Gr]:"pause",[Zr]:"thumbtack",[Qr]:"play",[Jr]:["fas","volume"],[eo]:["fas","turtle"],[no]:"stop",[to]:"cog"},ao={[Zr]:"s",[Jr]:"s",[eo]:"s",[to]:"s"},io=e=>{var{type:n,disabled:t=!1,active:r=!1,onClick:o=Pe}=e,a=Xt(null),i=Yr(fo,[n]);Bt((()=>{t&&a.current&&document.activeElement===a.current&&a.current.blur()}));var l=[co,"BUTTON__".concat(n),r&&uo];return d("div",{className:i(lo)},d("button",{ref:a,disabled:t,onClick:o,onKeyUp:e=>e.preventDefault(),className:i(l)},d(Br,{icon:oo[n],size:ao[n]||"xs",fixedWidth:!0,className:i(so)})))},lo="wrapper",co="button",uo="button__active",so="icon",fo={[Xr]:Object.assign({[lo]:["_1OCDB"],[co]:["WOZnx","_275sd","_1ZefG","_3f9XI","".concat(At,"control-button")],[uo]:["k6MEx"],[so]:["_3cbXv","".concat(At,"control-button-icon")]},Object.fromEntries(ro.map((e=>["BUTTON__".concat(e),["".concat(At,"control-button_").concat(e)]]))))},po="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function _o(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on".concat(n),(function(){t(window.event)}))}function mo(e,n){for(var t=n.slice(0,n.length-1),r=0;r=0;)n[t-1]+=",",n.splice(t,1),t=n.lastIndexOf("");return n}for(var vo={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":po?173:189,"=":po?61:187,";":po?59:186,"'":222,"[":219,"]":221,"\\":220},yo={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},go={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},bo={16:!1,18:!1,17:!1,91:!1},wo={},ko=1;ko<20;ko++)vo["f".concat(ko)]=111+ko;var xo=[],Oo="all",Co=[],Eo=function(e){return vo[e.toLowerCase()]||yo[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function So(e){Oo=e||"all"}function No(){return Oo||"all"}var Mo=function(e){var n=e.key,t=e.scope,r=e.method,o=e.splitKey,a=void 0===o?"+":o;ho(n).forEach((function(e){var n=e.split(a),o=n.length,i=n[o-1],l="*"===i?"*":Eo(i);if(wo[l]){t||(t=No());var c=o>1?mo(yo,n):[];wo[l]=wo[l].map((function(e){return(!r||e.method===r)&&e.scope===t&&function(e,n){for(var t=e.length>=n.length?e:n,r=e.length>=n.length?n:e,o=!0,a=0;a0,bo)Object.prototype.hasOwnProperty.call(bo,o)&&(!bo[o]&&n.mods.indexOf(+o)>-1||bo[o]&&-1===n.mods.indexOf(+o))&&(r=!1);(0!==n.mods.length||bo[16]||bo[18]||bo[17]||bo[91])&&!r&&"*"!==n.shortcut||!1===n.method(e,n)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function To(e){var n=wo["*"],t=e.keyCode||e.which||e.charCode;if(Ao.filter.call(this,e)){if(93!==t&&224!==t||(t=91),-1===xo.indexOf(t)&&229!==t&&xo.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(n){var t=go[n];e[n]&&-1===xo.indexOf(t)?xo.push(t):!e[n]&&xo.indexOf(t)>-1?xo.splice(xo.indexOf(t),1):"metaKey"===n&&e[n]&&3===xo.length&&(e.ctrlKey||e.shiftKey||e.altKey||(xo=xo.slice(xo.indexOf(t))))})),t in bo){for(var r in bo[t]=!0,yo)yo[r]===t&&(Ao[r]=!0);if(!n)return}for(var o in bo)Object.prototype.hasOwnProperty.call(bo,o)&&(bo[o]=e[go[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===xo.indexOf(17)&&xo.push(17),-1===xo.indexOf(18)&&xo.push(18),bo[17]=!0,bo[18]=!0);var a=No();if(n)for(var i=0;i1&&(o=mo(yo,e)),(e="*"===(e=e[e.length-1])?"*":Eo(e))in wo||(wo[e]=[]),wo[e].push({keyup:c,keydown:u,scope:a,mods:o,shortcut:r[l],method:t,key:r[l],splitKey:s});void 0!==i&&!function(e){return Co.indexOf(e)>-1}(i)&&window&&(Co.push(i),_o(i,"keydown",(function(e){To(e)})),_o(window,"focus",(function(){xo=[]})),_o(i,"keyup",(function(e){To(e),function(e){var n=e.keyCode||e.which||e.charCode,t=xo.indexOf(n);if(t>=0&&xo.splice(t,1),e.key&&"meta"===e.key.toLowerCase()&&xo.splice(0,xo.length),93!==n&&224!==n||(n=91),n in bo)for(var r in bo[n]=!1,yo)yo[r]===n&&(Ao[r]=!1)}(e)})))}var Po={setScope:So,getScope:No,deleteScope:function(e,n){var t,r;for(var o in e||(e=No()),wo)if(Object.prototype.hasOwnProperty.call(wo,o))for(t=wo[o],r=0;r1?n-1:0),r=1;r{var{type:n,value:t=1,min:r=t,max:o=t,step:a=.1,hint:i="",disabled:l=!1,onChangeStart:c=Pe,onChange:u=Pe,onChangeEnd:s=Pe}=e,f=Xt(!1),p=Gt((e=>{var n=e.target.value;f.current?u(n):(f.current=!0,c(n))}),[c,u,f]),_=Gt((e=>{f.current&&(f.current=!1,s(e.target.value))}),[s,f]),m=Yr($o,[n]);return d("div",{className:m(Wo)},d("input",{type:"range",min:r,max:o,step:a,value:t,disabled:l,onKeyDown:e=>e.preventDefault(),onKeyUp:e=>e.preventDefault(),onInput:p,onChange:_,onMouseUp:_,className:m(Vo)}),""!==i&&d("span",{className:m(qo)},d(Br,{icon:Ro[n],className:m([Bo])}),i))},Wo="wrapper",Vo="input",qo="hint",Bo="button",$o={[Xr]:{[Wo]:["".concat(At,"slider")],[Vo]:["_2YmyD","_2_zk1","_2Z5hP","".concat(At,"slider-input")],[qo]:["_3cbXv","".concat(At,"slider-hint")],[Bo]:["".concat(At,"slider-hint-icon")]}},Xo=e=>{var{formStyle:n=Lt,ttsSpeed:t=vn,selected:r=!1,focused:o=!1,howl:a=null}=e,[i,l,c]=(e=>{var[n,t,r]=hr(Nr(e));return[n,t,Gt((n=>{var t=Number(n),o=Or(e,isNaN(t)?1:t);r(o),localStorage.setItem(Er(e),String(o))}),[e,r])]})(t),[u,s,f]=(e=>{var[n,t,r]=hr(Mr(e));return[n,t,Gt((n=>{var t=Number(n),o=Cr(isNaN(t)?1:t);r(o),localStorage.setItem(Sr(e),String(o))}),[e,r])]})(t),[p,_]=Vt(0),[m,h,v]=hr(0),[y,g,b]=hr(!1),[w,k,x]=hr(!1),O=Xt(0),C=Gt((()=>!g.current||k.current),[g,k]),[E,S]=Vt(!1),[N,M]=Vt(!1),[z,T]=Vt(!1),[,A,P]=fr((()=>S(!0)),200,!1),L=Gt((()=>{S(!1),A()}),[S,A]),[,j,I]=fr((()=>T(!1)),750,!1),D=Gt((()=>{T(!0),j()}),[T,j]),K=yr(((e,n,t)=>e&&Tr(n,t,e)),{delay:50,defer:!0},a),U=Gt((e=>{c(e),K(e,s.current)}),[s,c,K]),H=Gt((e=>{f(e),K(l.current,e)}),[l,f,K]),R=Xt(null),F=Xt(!1),W=Gt((e=>{var n=Math.round(10*Number(e))/10;return isNaN(n)?null:Math.max(0,Math.min(n,p))}),[p]),V=Gt((e=>{v(e),R.current=null}),[v,R]),q=Gt((e=>{v(e),R.current=e}),[v,R]),B=Xt(new Set),$=Xt(!1),X=Gt((()=>B.current.size>0),[B]),Y=Gt((e=>{var n,t=W(e);null!==t&&(X()?n=!$.current:(a&&a.seek(t),n=C()),n?q(t):V(t));return t}),[a,W,V,q,C,X,$]),G=Gt(((e,n)=>{B.current.add(e),Y(n),1===B.current.size&&(a&&y?($.current=!w,a.pause()):$.current=!1)}),[a,y,w,B,$,Y]),Z=Gt(((e,n)=>{B.current.delete(e);var t=Y(n);0===B.current.size&&(a&&(null!==t&&a.seek(t),$.current&&(Q.current=!0,a.play())),$.current=!1)}),[a,B,$,Y]),Q=Xt(!1),J=Gt((()=>{a&&!X()&&(Q.current=!0,a.play())}),[a,X]),ee=Gt((()=>{if(a){a.pause();var e=zr(a);e>=p-.2&&a.seek(e)}}),[a,p]),ne=Gt((()=>{a&&(F.current=!0,a.stop())}),[a]),te=Gt((()=>{var e=W(h.current);null!==e&&(O.current=e)}),[h,O,W]),re=e=>{var{keys:n,onKeyDown:t=null,onKeyUp:r=null,deps:a=[]}=e;return Do(n,((e,n)=>{en(e),e.stopImmediatePropagation(),"keyup"===e.type?r(n.shortcut,e):t(n.shortcut,e)}),{enabled:o,enableOnTags:["INPUT"],keyup:Ke(r),keydown:Ke(t)},a)},oe=e=>{var{keys:n,onKeyDown:t=Pe,onKeyUp:r=Pe,deps:o=[]}=e;return re({keys:n,onKeyDown:(e,n)=>{D(),t(e,n)},onKeyUp:(e,n)=>{I(),r(e,n)},deps:o.concat(D,I)})};oe({keys:"<, ctrl+left, >, ctrl+right",onKeyDown:e=>["<","ctrl+left"].includes(e)?l.current>br(t)&&U(l.current-.1):l.current"down"===e?s.current>kr()&&H(s.current-gr):s.currentY("end"===e?p:0),deps:[p,Y]}),oe({keys:Pt.map((e=>"num_".concat(e))).join(","),onKeyDown:e=>{var n,t=(null===(n=e.match(/num_(\d+)/))||void 0===n?void 0:n[1])||0;Y(W(p*Number(t)/10))},deps:[p,W,Y]}),oe({keys:"left, right",onKeyDown:(e,n)=>{var t="left"===e?Math.max(0,h.current-.1):Math.min(p,h.current+.1);n.repeat?t!==h.current&&Y(t):G(e,t)},onKeyUp:e=>{null!==h.current&&Z(e,h.current)},deps:[p,h,Y,G,Z]}),re({keys:"k, space, ctrl+up",onKeyDown:()=>!y||w?J():ee(),deps:[y,w,J,ee]}),re({keys:"p, ctrl+down",onKeyDown:()=>te(),deps:[te]});var ae=Xt(!1);Bt((()=>{if(a){var e=a.playing(),n=zr(a);_(a.duration()),V(n||0),b(e),x(!e&&n>0);var t=function(){_(this.duration())},r=function(e){ae.current||Q.current&&!(this._getSoundIds().length>1)?(b(!0),x(!1),R.current=null,ae.current=!1,Q.current=!1):(ae.current=!0,this.seek(h.current,e))},o=()=>{x(!0),R.current=zr(a)};return a.once("load",t),a.on("play",r),a.on("pause",o),()=>{a&&(a.off("load",t),a.off("play",r),a.off("pause",o))}}}),[a,l,h,_,V,b,x,R,ae]);var ie=Xt(!1),le=Gt((function(){if(!ie.current){var e=F.current||null===R.current||R.current>=p?O.current:R.current;F.current&&(R.current=null,F.current=!1),b(!1),v(e),this.seek(e)}}),[p,b,O,R,F,v,ie]);Bt((()=>{if(a)return a.on("end",le),a.on("stop",le),()=>{a.off("end",le),a.off("stop",le)}}),[a,le]),mr((()=>{a&&(ie.current=!0,a.stop(),a.seek(0))})),pr((()=>{if(a&&a.playing()){var e=zr(a);w||e===m||e===R.current||V(e)}}),y&&!w?75:null);var ce=De(a),ue=1===i?"1x":"".concat(i.toFixed(1),"x"),se=ce?"".concat(m.toFixed(1),"s / ").concat(p.toFixed(1),"s"):"? / ?",fe=_r("(hover: none), (pointer: none), (pointer: coarse)"),de=[o&&Zo,r&&Go,(z||N||E&&!fe)&&Qo],pe=Yr(na,[n]);return d("div",{onMouseEnter:P,onMouseLeave:L,className:pe([Yo,...de])},d("div",{className:pe(Jo)},d(io,!y||w?{type:Qr,disabled:!ce,onClick:J}:{type:Gr,disabled:!ce,onClick:ee}),d(io,{type:no,disabled:!ce||!y,onClick:ne}),d(io,{type:Zr,disabled:!ce,onClick:te}),d(io,{type:to,active:N,onClick:()=>M(!N)}),(r||o)&&d(Br,{icon:"keyboard",className:pe(ea)})),d(Fo,{type:Ko,value:m,min:0,max:p,step:.1,hint:se,disabled:!ce,onChangeStart:e=>G("slider",e),onChange:Y,onChangeEnd:e=>Z("slider",e)}),d(Fo,{type:Uo,value:i,min:br(t),max:wr(t),step:.1,hint:ue,onChangeStart:U,onChange:U,onChangeEnd:U}),d(Fo,{type:Ho,value:u,min:kr(),max:xr(),step:gr,hint:"".concat(Math.round(100*u),"%"),onChangeStart:H,onChange:H,onChangeEnd:H}))},Yo="wrapper",Go="wrapper__selected",Zo="wrapper__focused",Qo="wrapper__opened",Jo="button_wrapper",ea="keyboard_hint",na={[Xr]:Object.assign({[Yo]:["".concat(At,"control-panel")],[Go]:["".concat(At,"selected")],[Zo]:["".concat(At,"focused")],[Qo]:["_2ti2i","".concat(At,"opened")],[Jo]:["gcfYU","".concat(At,"control-buttons")],[ea]:["".concat(At,"control-keyboard-hint")]})};J.autoAddCss=!1,Me.add({prefix:"far",iconName:"clock",icon:[512,512,[],"f017","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"]},{prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},{prefix:"fas",iconName:"keyboard",icon:[576,512,[],"f11c","M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"]},{prefix:"fas",iconName:"pause",icon:[448,512,[],"f04c","M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"]},{prefix:"fas",iconName:"play",icon:[448,512,[],"f04b","M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"]},{prefix:"fas",iconName:"stop",icon:[448,512,[],"f04d","M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]},{prefix:"far",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M128 288c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm154.65-97.08l16.24-48.71c1.16-3.45 3.18-6.35 4.92-9.43-4.73-2.76-9.94-4.78-15.81-4.78-17.67 0-32 14.33-32 32 0 15.78 11.63 28.29 26.65 30.92zM176 176c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zM288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm212.27 400H75.73C57.56 397.63 48 359.12 48 320 48 187.66 155.66 80 288 80s240 107.66 240 240c0 39.12-9.56 77.63-27.73 112zM416 320c0 17.67 14.33 32 32 32s32-14.33 32-32-14.33-32-32-32-32 14.33-32 32zm-56.41-182.77c-12.72-4.23-26.16 2.62-30.38 15.17l-45.34 136.01C250.49 290.58 224 318.06 224 352c0 11.72 3.38 22.55 8.88 32h110.25c5.5-9.45 8.88-20.28 8.88-32 0-19.45-8.86-36.66-22.55-48.4l45.34-136.01c4.17-12.57-2.64-26.17-15.21-30.36zM432 208c0-15.8-11.66-28.33-26.72-30.93-.07.21-.07.43-.14.65l-19.5 58.49c4.37 2.24 9.11 3.8 14.36 3.8 17.67-.01 32-14.34 32-32.01z"]},{prefix:"fas",iconName:"thumbtack",icon:[384,512,[],"f08d","M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"]},{prefix:"fas",iconName:"turtle",icon:[576,512,[],"f726","M68.25 256h279.51c23.54 0 40.97-19.8 35.1-40.04C362.84 146.97 292.33 64 208.41 64h-.82c-83.91 0-154.43 82.97-174.44 151.96C27.27 236.2 44.71 256 68.25 256zm484.03-118.75l-48.65-34.75c-35.17-17.42-80.49 1.57-86.81 40.31-.54 3.32-.82 6.72-.82 10.19v71.22c-.03 13.88-4.6 27.18-13.27 38.44-12.42 16.11-31.25 25.34-51.68 25.34H18.6C8.33 288 0 296.33 0 306.6c0 8 5.12 15.11 12.71 17.64l98.29 22.1L66.17 424c-6.16 10.67 1.54 24 13.86 24h36.95c5.71 0 11-3.05 13.86-8l40.3-69.8c25.99 8.52 45.55 13.8 84.87 13.8s58.89-5.28 84.87-13.8l40.3 69.8c2.86 4.95 8.14 8 13.86 8h36.95c12.32 0 20.01-13.33 13.86-24l-47.21-81.76c21.25-8.42 40.36-21.78 54.81-40.53 14.08-18.28 22.47-39.4 25.29-61.7h40.62c31.29 0 56.65-25.36 56.65-56.65a56.7 56.7 0 0 0-23.73-46.11zM480 176c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"]},{prefix:"far",iconName:"volume",icon:[480,512,[],"f6a8","M394.23 100.85c-11.19-7.09-26.03-3.8-33.12 7.41s-3.78 26.03 7.41 33.12C408.27 166.6 432 209.44 432 256s-23.73 89.41-63.48 114.62c-11.19 7.09-14.5 21.92-7.41 33.12 6.51 10.28 21.12 15.03 33.12 7.41C447.94 377.09 480 319.09 480 256s-32.06-121.09-85.77-155.15zm-56 78.28c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.37-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.87s-17.54-61.33-45.78-76.87zM231.81 64c-5.91 0-11.92 2.18-16.78 7.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c4.87 4.87 10.88 7.05 16.78 7.05 12.33 0 24.19-9.52 24.19-24.02V88.02C256 73.51 244.13 64 231.81 64zM208 366.05L145.94 304H48v-96h97.94L208 145.95v220.1z"]},{prefix:"fas",iconName:"volume",icon:[480,512,[],"f6a8","M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.53 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"]});var ta={},ra=null,oa=null,aa=null,ia=null,la=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body,r=Array.from(t.querySelectorAll(Ma[e][n]));return r.forEach((t=>{t.classList.add("".concat(At).concat(e),"".concat(At).concat(e,"_").concat(n))})),r},ca=()=>Object.keys(ta),ua=()=>Object.values(ta).find((e=>e.isSelected)),sa=e=>{if(ta[e]&&ta[e].panelWrapper.isConnected){var{formStyle:n,isSelected:t,isFocused:r,panelWrapper:o,soundData:a}=ta[e];T(d(Xo,{formStyle:n,ttsSpeed:e,selected:t,focused:t&&r,howl:a.sound}),o),t&&ra&&T(d(io,{onClick:fa,type:e===yn?eo:Jr}),ra)}},fa=()=>{var e=ua()||Object.values(ta)[0];if(e){var n=ca(),t=(n.indexOf(e.ttsType)+1)%n.length;(e=>{if(ta[e]&&ta[e].panelWrapper.isConnected){var n=ua(),t=!(null==n||!n.isFocused);if(n&&(n.isSelected=!1,n.isFocused=!1,sa(n.ttsType)),(null==n?void 0:n.ttsType)!==e){var r=ta[e];r.isSelected=!0,r.isFocused=t,sa(e)}}})(n[t])}},da=()=>{ia&&(ia(),ia=null)},pa=()=>{var e=ua();return e?(ia?Promise.resolve():aa||(aa=Nt("hotkeys",{timeoutDelay:20,priority:sn,onSupersessionRequest:_a}).then((e=>{ia=e})).finally((()=>{aa=null})))).then((()=>{e.isFocused=!0,sa(e.ttsType)})):Promise.reject()},_a=()=>{var e=ua();null!=e&&e.isFocused&&(e.isFocused=!1,sa(e.ttsType)),da()},ma=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Object.entries(ta).forEach((n=>{var[t,r]=n;!e&&r.panelWrapper.isConnected||(T("",r.panelWrapper),delete ta[t],r.isFocused&&da())}))};setInterval((()=>ma()),100);var ha=e=>{var n=null,t=It.find((e=>([n]=la(Ca,e),!!n)));if(n!==oa&&(ma(!0),oa=n,n)){var r=la(Ea,t,n).flatMap((e=>la(Sa,t,e)));0!==r.length&&(r.length>1?((ra=document.createElement("div")).classList.add("".concat(At,"switch-button")),n.append(ra)):ra=null,r.forEach(((r,o)=>{var a=r.matches(Ma[Na][t])?yn:vn,i=e[a];if(i){((e,n)=>{Tr(Nr(e),Mr(e),n)})(i.speed,i.sound);var l=document.createElement("div");l.classList.add(...za),n.insertBefore(l,ra),ta[a]={formStyle:t,ttsType:a,isSelected:0===o,isFocused:!1,panelWrapper:l,playbackButton:r,soundData:i},sa(a)}})))}},va=new Set,ya={},ga={};lt((e=>{var{challenges:n}=e;return n.forEach((e=>{var n=je(e.tts)&&e.tts.trim(),t=je(e.slowTts)&&e.slowTts.trim();n&&va.add(n),t&&(va.add(t),n&&(ya[t]=[n],ya[n]=[t]))}))})),(e=>{Qe("Howl","init",(e=>function(n){var t;$e(_t,!0);const r=e.call(this,n),o=String(this._src||(null===(t=this._parent)||void 0===t?void 0:t._src)||"").trim();return""!==o&&Bn(et,Ct(this,o,bn)),r})),xt();const n=Wn(et,e)})((e=>{va.has(e.url)&&(ga[e.url]=e)})),Et(nt,(e=>{if(bn===e.playbackStrategy&&va.has(e.url)){ga[e.url]=e;var n=Object.fromEntries([e.url,...ya[e.url]||[]].map((e=>ga[e])).filter(De).map((e=>[e.speed,e])));setTimeout((()=>ha(n)))}return!0}));var ba=!1,wa=()=>{var e=nn();return e&&!Object.values(ta).some((n=>n.isSelected&&n.panelWrapper.contains(e)))?e:void 0};document.addEventListener("focusin",(()=>!ba&&wa()&&_a()));var ka={control:()=>{var e,n=ua();n&&(n.isFocused?(_a(),null===(e=document.querySelector(Ta))||void 0===e||e.focus()):pa().then((()=>{var e;return null===(e=wa())||void 0===e?void 0:e.blur()})).catch(Pe))},tab:()=>{if(ca().length>1){var e=Object.values(ta).find((e=>e.isSelected&&e.isFocused));e&&(fa(),ba=!0,e.playbackButton.focus(),ba=!1)}}},xa=new Set,Oa=null;document.addEventListener("keydown",(e=>{13===e.keyCode&&""===e.key||(Oa=0===xa.size?e.code:null,xa.add(e.code))})),document.addEventListener("keyup",(e=>{if(e.code===Oa){var n=e.key.toLowerCase();ka[n]&&(en(e),ka[n](e))}xa.delete(e.code),Oa=null})),window.addEventListener("blur",(()=>{xa.clear(),Oa=null}));var Ca="playback-buttons-wrapper",Ea="playback-button-wrapper",Sa="playback-button",Na="slow-playback-button",Ma={[Ca]:{[Lt]:"._863KE:first-child ._3L7Fu",[jt]:"._863KE:first-child ._2O14B"},[Ea]:{[Lt]:".sgs9X",[jt]:".sgs9X"},[Sa]:{[Lt]:"._1x6bc",[jt]:"._2kfEr"},[Na]:{[Lt]:"._1Uoqa",[jt]:"._1Vrvu"}},za=["".concat(At,"control-form"),"_1wJYQ"],Ta=['input[data-test="challenge-text-input"]','textarea[data-test="challenge-translate-input"]'].join(", ")}(); +function fr(){for(var e=0,n=0,t=arguments.length;nIn(On,bn===e?1:.5),xr=e=>In(On,bn===e?2.5:2),Or=()=>In(Cn,.05),Cr=()=>In(Cn,1),Er=(e,n)=>Math.max(kr(e),Math.min(n,xr(e))),Sr=e=>Math.max(Or(),Math.min(e,Cr())),Nr=e=>"".concat(Lt,"tts_rate_").concat(e),Mr=e=>"".concat(Lt,"tts_volume_").concat(e),zr=e=>Er(e,Number(localStorage.getItem(Nr(e)))||1),Ar=e=>Sr(Number(localStorage.getItem(Mr(e)))||1),Tr=e=>Kn(e,kn),Pr=(e,n,t)=>{Dn(On,e,t,kn,!1,pn),Dn(Cn,n,t,kn,!1,pn)};function Lr(){}function jr(){}jr.resetWarningCache=Lr;var Ir=ir((function(e){e.exports=function(){function e(e,n,t,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:jr,resetWarningCache:Lr};return t.PropTypes=t,t}()}));function Dr(e){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(e)}function Kr(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ur(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Hr(e){for(var n=1;n=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Fr(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n0||!Array.isArray(n)&&n?Kr({},e,n):{}}function Xr(e){var n=e.forwardedRef,t=Rr(e,["forwardedRef"]),r=t.icon,o=t.mask,a=t.symbol,i=t.className,l=t.title,c=t.titleId,u=Br(r),s=$r("classes",[].concat(Fr(function(e){var n,t=e.spin,r=e.pulse,o=e.fixedWidth,a=e.inverse,i=e.border,l=e.listItem,c=e.flip,u=e.size,s=e.rotation,f=e.pull,d=(Kr(n={"fa-spin":t,"fa-pulse":r,"fa-fw":o,"fa-inverse":a,"fa-border":i,"fa-li":l,"fa-flip-horizontal":"horizontal"===c||"both"===c,"fa-flip-vertical":"vertical"===c||"both"===c},"fa-".concat(u),null!=u),Kr(n,"fa-rotate-".concat(s),null!=s&&0!==s),Kr(n,"fa-pull-".concat(f),null!=f),Kr(n,"fa-swap-opacity",e.swapOpacity),n);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(t)),Fr(i.split(" ")))),f=$r("transform","string"==typeof t.transform?Ae(t.transform):t.transform),d=$r("mask",Br(o)),p=Te(u,Hr({},s,{},f,{},d,{symbol:a,title:l,titleId:c}));if(!p)return function(){var e;!qr&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var _=p.abstract,m={ref:n};return Object.keys(t).forEach((function(e){Xr.defaultProps.hasOwnProperty(e)||(m[e]=t[e])})),Yr(_[0],m)}Xr.displayName="FontAwesomeIcon",Xr.propTypes={border:Ir.bool,className:Ir.string,mask:Ir.oneOfType([Ir.object,Ir.array,Ir.string]),fixedWidth:Ir.bool,inverse:Ir.bool,flip:Ir.oneOf(["horizontal","vertical","both"]),icon:Ir.oneOfType([Ir.object,Ir.array,Ir.string]),listItem:Ir.bool,pull:Ir.oneOf(["right","left"]),pulse:Ir.bool,rotation:Ir.oneOf([0,90,180,270]),size:Ir.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ir.bool,symbol:Ir.oneOfType([Ir.bool,Ir.string]),title:Ir.string,transform:Ir.oneOfType([Ir.string,Ir.object]),swapOpacity:Ir.bool},Xr.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var Yr=function e(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t)return t;var o=(t.children||[]).map((function(t){return e(n,t)})),a=Object.keys(t.attributes||{}).reduce((function(e,n){var r=t.attributes[n];switch(n){case"class":e.attrs.className=r,delete t.attributes.class;break;case"style":e.attrs.style=Vr(r);break;default:0===n.indexOf("aria-")||0===n.indexOf("data-")?e.attrs[n.toLowerCase()]=r:e.attrs[Wr(n)]=r}return e}),{attrs:{}}),i=r.style,l=void 0===i?{}:i,c=Rr(r,["style"]);return a.attrs.style=Hr({},a.attrs.style,{},l),n.apply(void 0,[t.tag,Hr({},a.attrs,{},c)].concat(Fr(o)))}.bind(null,sr.createElement),Gr=Symbol("base"),Zr=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Qt((t=>(Ie(t)?t:[t]).flatMap((t=>{var r=[];return e[Gr]&&e[Gr][t]&&r.push(...e[Gr][t]),n.forEach((n=>{n&&e[n]&&e[n][t]&&r.push(...e[n][t])})),r})).join(" ")),n.concat([e]))},Qr="pause",Jr="pin",eo="play",no="speed_normal",to="speed_slow",ro="stop",oo="toggle",ao=[Qr,Jr,eo,no,to,ro,oo],io={[Qr]:"pause",[Jr]:"thumbtack",[eo]:"play",[no]:["fas","volume"],[to]:["fas","turtle"],[ro]:"stop",[oo]:"cog"},lo={[Jr]:"s",[no]:"s",[to]:"s",[oo]:"s"},co=e=>{var{type:n,disabled:t=!1,active:r=!1,onClick:o=Pe}=e,a=Gt(null),i=Zr(_o,[n]);Xt((()=>{t&&a.current&&document.activeElement===a.current&&a.current.blur()}));var l=[so,"BUTTON__".concat(n),r&&fo];return d("div",{className:i(uo)},d("button",{ref:a,disabled:t,onClick:o,onKeyUp:e=>e.preventDefault(),className:i(l)},d(Xr,{icon:io[n],size:lo[n]||"xs",fixedWidth:!0,className:i(po)})))},uo="wrapper",so="button",fo="button__active",po="icon",_o={[Gr]:Object.assign({[uo]:["_1OCDB"],[so]:["WOZnx","_275sd","_1ZefG","_3f9XI","".concat(Lt,"control-button")],[fo]:["k6MEx"],[po]:["_3cbXv","".concat(Lt,"control-button-icon")]},Object.fromEntries(ao.map((e=>["BUTTON__".concat(e),["".concat(Lt,"control-button_").concat(e)]]))))},mo="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function ho(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on".concat(n),(function(){t(window.event)}))}function vo(e,n){for(var t=n.slice(0,n.length-1),r=0;r=0;)n[t-1]+=",",n.splice(t,1),t=n.lastIndexOf("");return n}for(var go={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":mo?173:189,"=":mo?61:187,";":mo?59:186,"'":222,"[":219,"]":221,"\\":220},bo={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},wo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ko={16:!1,18:!1,17:!1,91:!1},xo={},Oo=1;Oo<20;Oo++)go["f".concat(Oo)]=111+Oo;var Co=[],Eo="all",So=[],No=function(e){return go[e.toLowerCase()]||bo[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Mo(e){Eo=e||"all"}function zo(){return Eo||"all"}var Ao=function(e){var n=e.key,t=e.scope,r=e.method,o=e.splitKey,a=void 0===o?"+":o;yo(n).forEach((function(e){var n=e.split(a),o=n.length,i=n[o-1],l="*"===i?"*":No(i);if(xo[l]){t||(t=zo());var c=o>1?vo(bo,n):[];xo[l]=xo[l].map((function(e){return(!r||e.method===r)&&e.scope===t&&function(e,n){for(var t=e.length>=n.length?e:n,r=e.length>=n.length?n:e,o=!0,a=0;a0,ko)Object.prototype.hasOwnProperty.call(ko,o)&&(!ko[o]&&n.mods.indexOf(+o)>-1||ko[o]&&-1===n.mods.indexOf(+o))&&(r=!1);(0!==n.mods.length||ko[16]||ko[18]||ko[17]||ko[91])&&!r&&"*"!==n.shortcut||!1===n.method(e,n)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Po(e){var n=xo["*"],t=e.keyCode||e.which||e.charCode;if(Lo.filter.call(this,e)){if(93!==t&&224!==t||(t=91),-1===Co.indexOf(t)&&229!==t&&Co.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(n){var t=wo[n];e[n]&&-1===Co.indexOf(t)?Co.push(t):!e[n]&&Co.indexOf(t)>-1?Co.splice(Co.indexOf(t),1):"metaKey"===n&&e[n]&&3===Co.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Co=Co.slice(Co.indexOf(t))))})),t in ko){for(var r in ko[t]=!0,bo)bo[r]===t&&(Lo[r]=!0);if(!n)return}for(var o in ko)Object.prototype.hasOwnProperty.call(ko,o)&&(ko[o]=e[wo[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Co.indexOf(17)&&Co.push(17),-1===Co.indexOf(18)&&Co.push(18),ko[17]=!0,ko[18]=!0);var a=zo();if(n)for(var i=0;i1&&(o=vo(bo,e)),(e="*"===(e=e[e.length-1])?"*":No(e))in xo||(xo[e]=[]),xo[e].push({keyup:c,keydown:u,scope:a,mods:o,shortcut:r[l],method:t,key:r[l],splitKey:s});void 0!==i&&!function(e){return So.indexOf(e)>-1}(i)&&window&&(So.push(i),ho(i,"keydown",(function(e){Po(e)})),ho(window,"focus",(function(){Co=[]})),ho(i,"keyup",(function(e){Po(e),function(e){var n=e.keyCode||e.which||e.charCode,t=Co.indexOf(n);if(t>=0&&Co.splice(t,1),e.key&&"meta"===e.key.toLowerCase()&&Co.splice(0,Co.length),93!==n&&224!==n||(n=91),n in ko)for(var r in ko[n]=!1,bo)bo[r]===n&&(Lo[r]=!1)}(e)})))}var jo={setScope:Mo,getScope:zo,deleteScope:function(e,n){var t,r;for(var o in e||(e=zo()),xo)if(Object.prototype.hasOwnProperty.call(xo,o))for(t=xo[o],r=0;r1?n-1:0),r=1;r{var{type:n,value:t=1,min:r=t,max:o=t,step:a=.1,hint:i="",disabled:l=!1,onChangeStart:c=Pe,onChange:u=Pe,onChangeEnd:s=Pe}=e,f=Gt(!1),p=Qt((e=>{var n=e.target.value;f.current?u(n):(f.current=!0,c(n))}),[c,u,f]),_=Qt((e=>{f.current&&(f.current=!1,s(e.target.value))}),[s,f]),m=Zr(Yo,[n]);return d("div",{className:m(qo)},d("input",{type:"range",min:r,max:o,step:a,value:t,disabled:l,onKeyDown:e=>e.preventDefault(),onKeyUp:e=>e.preventDefault(),onInput:p,onChange:_,onMouseUp:_,className:m(Bo)}),""!==i&&d("span",{className:m($o)},d(Xr,{icon:Wo[n],className:m([Xo])}),i))},qo="wrapper",Bo="input",$o="hint",Xo="button",Yo={[Gr]:{[qo]:["".concat(Lt,"slider")],[Bo]:["_2YmyD","_2_zk1","_2Z5hP","".concat(Lt,"slider-input")],[$o]:["_3cbXv","".concat(Lt,"slider-hint")],[Xo]:["".concat(Lt,"slider-hint-icon")]}},Go=e=>{var{formStyle:n=It,ttsSpeed:t=gn,selected:r=!1,focused:o=!1,howl:a=null}=e,[i,l,c]=(e=>{var[n,t,r]=yr(zr(e));return[n,t,Qt((n=>{var t=Number(n),o=Er(e,isNaN(t)?1:t);r(o),localStorage.setItem(Nr(e),String(o))}),[e,r])]})(t),[u,s,f]=(e=>{var[n,t,r]=yr(Ar(e));return[n,t,Qt((n=>{var t=Number(n),o=Sr(isNaN(t)?1:t);r(o),localStorage.setItem(Mr(e),String(o))}),[e,r])]})(t),[p,_]=Bt(0),[m,h,v]=yr(0),[y,g,b]=yr(!1),[w,k,x]=yr(!1),O=Gt(0),C=Qt((()=>!g.current||k.current),[g,k]),[E,S]=Bt(!1),[N,M]=Bt(!1),[z,A]=Bt(!1),[,T,P]=pr((()=>S(!0)),200,!1),L=Qt((()=>{S(!1),T()}),[S,T]),[,j,I]=pr((()=>A(!1)),750,!1),D=Qt((()=>{A(!0),j()}),[A,j]),K=br(((e,n,t)=>e&&Pr(n,t,e)),{delay:50,defer:!0},a),U=Qt((e=>{c(e),K(e,s.current)}),[s,c,K]),H=Qt((e=>{f(e),K(l.current,e)}),[l,f,K]),R=Gt(null),F=Gt(!1),W=Qt((e=>{var n=Math.round(10*Number(e))/10;return isNaN(n)?null:Math.max(0,Math.min(n,p))}),[p]),V=Qt((e=>{v(e),R.current=null}),[v,R]),q=Qt((e=>{v(e),R.current=e}),[v,R]),B=Gt(new Set),$=Gt(!1),X=Qt((()=>B.current.size>0),[B]),Y=Qt((e=>{var n,t=W(e);null!==t&&(X()?n=!$.current:(a&&a.seek(t),n=C()),n?q(t):V(t));return t}),[a,W,V,q,C,X,$]),G=Qt(((e,n)=>{B.current.add(e),Y(n),1===B.current.size&&(a&&y?($.current=!w,a.pause()):$.current=!1)}),[a,y,w,B,$,Y]),Z=Qt(((e,n)=>{B.current.delete(e);var t=Y(n);0===B.current.size&&(a&&(null!==t&&a.seek(t),$.current&&(Q.current=!0,a.play())),$.current=!1)}),[a,B,$,Y]),Q=Gt(!1),J=Qt((()=>{a&&!X()&&(Q.current=!0,a.play())}),[a,X]),ee=Qt((()=>{if(a){a.pause();var e=Tr(a);e>=p-.2&&a.seek(e)}}),[a,p]),ne=Qt((()=>{a&&(F.current=!0,a.stop())}),[a]),te=Qt((()=>{var e=W(h.current);null!==e&&(O.current=e)}),[h,O,W]),re=e=>{var{keys:n,onKeyDown:t=null,onKeyUp:r=null,deps:a=[]}=e;return Uo(n,((e,n)=>{tn(e),e.stopImmediatePropagation(),"keyup"===e.type?r(n.shortcut,e):t(n.shortcut,e)}),{enabled:o,enableOnTags:["INPUT"],keyup:Ke(r),keydown:Ke(t)},a)},oe=e=>{var{keys:n,onKeyDown:t=Pe,onKeyUp:r=Pe,deps:o=[]}=e;return re({keys:n,onKeyDown:(e,n)=>{D(),t(e,n)},onKeyUp:(e,n)=>{I(),r(e,n)},deps:o.concat(D,I)})};oe({keys:"<, ctrl+left, >, ctrl+right",onKeyDown:e=>["<","ctrl+left"].includes(e)?l.current>kr(t)&&U(l.current-.1):l.current"down"===e?s.current>Or()&&H(s.current-wr):s.currentY("end"===e?p:0),deps:[p,Y]}),oe({keys:jt.map((e=>"num_".concat(e))).join(","),onKeyDown:e=>{var n,t=(null===(n=e.match(/num_(\d+)/))||void 0===n?void 0:n[1])||0;Y(W(p*Number(t)/10))},deps:[p,W,Y]}),oe({keys:"left, right",onKeyDown:(e,n)=>{var t="left"===e?Math.max(0,h.current-.1):Math.min(p,h.current+.1);n.repeat?t!==h.current&&Y(t):G(e,t)},onKeyUp:e=>{null!==h.current&&Z(e,h.current)},deps:[p,h,Y,G,Z]}),re({keys:"k, space, ctrl+up",onKeyDown:()=>!y||w?J():ee(),deps:[y,w,J,ee]}),re({keys:"p, ctrl+down",onKeyDown:()=>te(),deps:[te]});var ae=Gt(!1);Xt((()=>{if(a){var e=a.playing(),n=Tr(a);_(a.duration()),V(n||0),b(e),x(!e&&n>0);var t=function(){_(this.duration())},r=function(e){ae.current||Q.current&&!(this._getSoundIds().length>1)?(b(!0),x(!1),R.current=null,ae.current=!1,Q.current=!1):(ae.current=!0,this.seek(h.current,e))},o=()=>{x(!0),R.current=Tr(a)};return a.once("load",t),a.on("play",r),a.on("pause",o),()=>{a&&(a.off("load",t),a.off("play",r),a.off("pause",o))}}}),[a,l,h,_,V,b,x,R,ae]);var ie=Gt(!1),le=Qt((function(){if(!ie.current){var e=F.current||null===R.current||R.current>=p?O.current:R.current;F.current&&(R.current=null,F.current=!1),b(!1),v(e),this.seek(e)}}),[p,b,O,R,F,v,ie]);Xt((()=>{if(a)return a.on("end",le),a.on("stop",le),()=>{a.off("end",le),a.off("stop",le)}}),[a,le]),vr((()=>{a&&(ie.current=!0,a.stop(),a.seek(0))})),mr((()=>{if(a&&a.playing()){var e=Tr(a);w||e===m||e===R.current||V(e)}}),y&&!w?75:null);var ce=De(a),ue=1===i?"1x":"".concat(i.toFixed(1),"x"),se=ce?"".concat(m.toFixed(1),"s / ").concat(p.toFixed(1),"s"):"? / ?",fe=hr("(hover: none), (pointer: none), (pointer: coarse)"),de=[o&&Jo,r&&Qo,(z||N||E&&!fe)&&ea],pe=Zr(ra,[n]);return d("div",{onMouseEnter:P,onMouseLeave:L,className:pe([Zo,...de])},d("div",{className:pe(na)},d(co,!y||w?{type:eo,disabled:!ce,onClick:J}:{type:Qr,disabled:!ce,onClick:ee}),d(co,{type:ro,disabled:!ce||!y,onClick:ne}),d(co,{type:Jr,disabled:!ce,onClick:te}),d(co,{type:oo,active:N,onClick:()=>M(!N)}),(r||o)&&d(Xr,{icon:"keyboard",className:pe(ta)})),d(Vo,{type:Ho,value:m,min:0,max:p,step:.1,hint:se,disabled:!ce,onChangeStart:e=>G("slider",e),onChange:Y,onChangeEnd:e=>Z("slider",e)}),d(Vo,{type:Ro,value:i,min:kr(t),max:xr(t),step:.1,hint:ue,onChangeStart:U,onChange:U,onChangeEnd:U}),d(Vo,{type:Fo,value:u,min:Or(),max:Cr(),step:wr,hint:"".concat(Math.round(100*u),"%"),onChangeStart:H,onChange:H,onChangeEnd:H}))},Zo="wrapper",Qo="wrapper__selected",Jo="wrapper__focused",ea="wrapper__opened",na="button_wrapper",ta="keyboard_hint",ra={[Gr]:Object.assign({[Zo]:["".concat(Lt,"control-panel")],[Qo]:["".concat(Lt,"selected")],[Jo]:["".concat(Lt,"focused")],[ea]:["_2ti2i","".concat(Lt,"opened")],[na]:["gcfYU","".concat(Lt,"control-buttons")],[ta]:["".concat(Lt,"control-keyboard-hint")]})};J.autoAddCss=!1,Me.add({prefix:"far",iconName:"clock",icon:[512,512,[],"f017","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"]},{prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},{prefix:"fas",iconName:"keyboard",icon:[576,512,[],"f11c","M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"]},{prefix:"fas",iconName:"pause",icon:[448,512,[],"f04c","M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"]},{prefix:"fas",iconName:"play",icon:[448,512,[],"f04b","M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"]},{prefix:"fas",iconName:"stop",icon:[448,512,[],"f04d","M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]},{prefix:"far",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M128 288c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm154.65-97.08l16.24-48.71c1.16-3.45 3.18-6.35 4.92-9.43-4.73-2.76-9.94-4.78-15.81-4.78-17.67 0-32 14.33-32 32 0 15.78 11.63 28.29 26.65 30.92zM176 176c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zM288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm212.27 400H75.73C57.56 397.63 48 359.12 48 320 48 187.66 155.66 80 288 80s240 107.66 240 240c0 39.12-9.56 77.63-27.73 112zM416 320c0 17.67 14.33 32 32 32s32-14.33 32-32-14.33-32-32-32-32 14.33-32 32zm-56.41-182.77c-12.72-4.23-26.16 2.62-30.38 15.17l-45.34 136.01C250.49 290.58 224 318.06 224 352c0 11.72 3.38 22.55 8.88 32h110.25c5.5-9.45 8.88-20.28 8.88-32 0-19.45-8.86-36.66-22.55-48.4l45.34-136.01c4.17-12.57-2.64-26.17-15.21-30.36zM432 208c0-15.8-11.66-28.33-26.72-30.93-.07.21-.07.43-.14.65l-19.5 58.49c4.37 2.24 9.11 3.8 14.36 3.8 17.67-.01 32-14.34 32-32.01z"]},{prefix:"fas",iconName:"thumbtack",icon:[384,512,[],"f08d","M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"]},{prefix:"fas",iconName:"turtle",icon:[576,512,[],"f726","M68.25 256h279.51c23.54 0 40.97-19.8 35.1-40.04C362.84 146.97 292.33 64 208.41 64h-.82c-83.91 0-154.43 82.97-174.44 151.96C27.27 236.2 44.71 256 68.25 256zm484.03-118.75l-48.65-34.75c-35.17-17.42-80.49 1.57-86.81 40.31-.54 3.32-.82 6.72-.82 10.19v71.22c-.03 13.88-4.6 27.18-13.27 38.44-12.42 16.11-31.25 25.34-51.68 25.34H18.6C8.33 288 0 296.33 0 306.6c0 8 5.12 15.11 12.71 17.64l98.29 22.1L66.17 424c-6.16 10.67 1.54 24 13.86 24h36.95c5.71 0 11-3.05 13.86-8l40.3-69.8c25.99 8.52 45.55 13.8 84.87 13.8s58.89-5.28 84.87-13.8l40.3 69.8c2.86 4.95 8.14 8 13.86 8h36.95c12.32 0 20.01-13.33 13.86-24l-47.21-81.76c21.25-8.42 40.36-21.78 54.81-40.53 14.08-18.28 22.47-39.4 25.29-61.7h40.62c31.29 0 56.65-25.36 56.65-56.65a56.7 56.7 0 0 0-23.73-46.11zM480 176c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"]},{prefix:"far",iconName:"volume",icon:[480,512,[],"f6a8","M394.23 100.85c-11.19-7.09-26.03-3.8-33.12 7.41s-3.78 26.03 7.41 33.12C408.27 166.6 432 209.44 432 256s-23.73 89.41-63.48 114.62c-11.19 7.09-14.5 21.92-7.41 33.12 6.51 10.28 21.12 15.03 33.12 7.41C447.94 377.09 480 319.09 480 256s-32.06-121.09-85.77-155.15zm-56 78.28c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.37-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.87s-17.54-61.33-45.78-76.87zM231.81 64c-5.91 0-11.92 2.18-16.78 7.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c4.87 4.87 10.88 7.05 16.78 7.05 12.33 0 24.19-9.52 24.19-24.02V88.02C256 73.51 244.13 64 231.81 64zM208 366.05L145.94 304H48v-96h97.94L208 145.95v220.1z"]},{prefix:"fas",iconName:"volume",icon:[480,512,[],"f6a8","M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.53 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"]});var oa={},aa=null,ia=null,la=null,ca=null,ua=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body,r=Array.from(t.querySelectorAll(Aa[e][n]));return r.forEach((t=>{t.classList.add("".concat(Lt).concat(e),"".concat(Lt).concat(e,"_").concat(n))})),r},sa=()=>Object.keys(oa),fa=()=>Object.values(oa).find((e=>e.isSelected)),da=e=>{if(oa[e]&&oa[e].panelWrapper.isConnected){var{formStyle:n,isSelected:t,isFocused:r,panelWrapper:o,soundData:a}=oa[e];A(d(Go,{formStyle:n,ttsSpeed:e,selected:t,focused:t&&r,howl:a.sound}),o),t&&aa&&A(d(co,{onClick:pa,type:e===bn?to:no}),aa)}},pa=()=>{var e=fa()||Object.values(oa)[0];if(e){var n=sa(),t=(n.indexOf(e.ttsType)+1)%n.length;(e=>{if(oa[e]&&oa[e].panelWrapper.isConnected){var n=fa(),t=!(null==n||!n.isFocused);if(n&&(n.isSelected=!1,n.isFocused=!1,da(n.ttsType)),(null==n?void 0:n.ttsType)!==e){var r=oa[e];r.isSelected=!0,r.isFocused=t,da(e)}}})(n[t])}},_a=()=>{ca&&(ca(),ca=null)},ma=()=>{var e=fa();return e?(ca?Promise.resolve():la||(la=zt("hotkeys",{timeoutDelay:20,priority:dn,onSupersessionRequest:ha}).then((e=>{ca=e})).finally((()=>{la=null})))).then((()=>{e.isFocused=!0,da(e.ttsType)})):Promise.reject()},ha=()=>{var e=fa();null!=e&&e.isFocused&&(e.isFocused=!1,da(e.ttsType)),_a()},va=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Object.entries(oa).forEach((n=>{var[t,r]=n;!e&&r.panelWrapper.isConnected||(A("",r.panelWrapper),delete oa[t],r.isFocused&&_a())}))};setInterval((()=>va()),100);var ya=e=>{var n=null,t=Kt.find((e=>([n]=ua(Sa,e),!!n)));if(n!==ia&&(va(!0),ia=n,n)){var r=ua(Na,t,n).flatMap((e=>ua(Ma,t,e)));0!==r.length&&(r.length>1?((aa=document.createElement("div")).classList.add("".concat(Lt,"switch-button")),n.append(aa)):aa=null,r.forEach(((r,o)=>{var a=r.matches(Aa[za][t])?bn:gn,i=e[a];if(i){((e,n)=>{Pr(zr(e),Ar(e),n)})(i.speed,i.sound);var l=document.createElement("div");l.classList.add(...Ta),n.insertBefore(l,aa),oa[a]={formStyle:t,ttsType:a,isSelected:0===o,isFocused:!1,panelWrapper:l,playbackButton:r,soundData:i},da(a)}})))}},ga=new Set,ba={},wa={};ut((e=>{var{challenges:n}=e;return n.forEach((e=>{var n=je(e.tts)&&e.tts.trim(),t=je(e.slowTts)&&e.slowTts.trim();n&&ga.add(n),t&&(ga.add(t),n&&(ba[t]=[n],ba[n]=[t]))}))})),(e=>{en("Howl","init",(e=>function(n){var t;$e(ht,!0);const r=e.call(this,n),o=String(this._src||(null===(t=this._parent)||void 0===t?void 0:t._src)||"").trim();return""!==o&&Xn(tt,St(this,o,kn)),r})),Ct();const n=qn(tt,e)})((e=>{ga.has(e.url)&&(wa[e.url]=e)})),Nt(rt,(e=>{if(kn===e.playbackStrategy&&ga.has(e.url)){wa[e.url]=e;var n=Object.fromEntries([e.url,...ba[e.url]||[]].map((e=>wa[e])).filter(De).map((e=>[e.speed,e])));setTimeout((()=>ya(n)))}return!0}));var ka=!1,xa=()=>{var e=rn();return e&&!Object.values(oa).some((n=>n.isSelected&&n.panelWrapper.contains(e)))?e:void 0};document.addEventListener("focusin",(()=>!ka&&xa()&&ha()));var Oa={control:()=>{var e,n=fa();n&&(n.isFocused?(ha(),null===(e=document.querySelector(Pa))||void 0===e||e.focus()):ma().then((()=>{var e;return null===(e=xa())||void 0===e?void 0:e.blur()})).catch(Pe))},tab:()=>{if(sa().length>1){var e=Object.values(oa).find((e=>e.isSelected&&e.isFocused));e&&(pa(),ka=!0,e.playbackButton.focus(),ka=!1)}}},Ca=new Set,Ea=null;document.addEventListener("keydown",(e=>{13===e.keyCode&&""===e.key||(Ea=0===Ca.size?e.code:null,Ca.add(e.code))})),document.addEventListener("keyup",(e=>{if(e.code===Ea){var n=e.key.toLowerCase();Oa[n]&&(tn(e),Oa[n](e))}Ca.delete(e.code),Ea=null})),window.addEventListener("blur",(()=>{Ca.clear(),Ea=null}));var Sa="playback-buttons-wrapper",Na="playback-button-wrapper",Ma="playback-button",za="slow-playback-button",Aa={[Sa]:{[It]:"._863KE:first-child ._3L7Fu",[Dt]:"._863KE:first-child ._2O14B"},[Na]:{[It]:".sgs9X",[Dt]:".sgs9X"},[Ma]:{[It]:"._1x6bc",[Dt]:"._2kfEr"},[za]:{[It]:"._1Uoqa",[Dt]:"._1Vrvu"}},Ta=["".concat(Lt,"control-form"),"_1wJYQ"],Pa=['input[data-test="challenge-text-input"]','textarea[data-test="challenge-translate-input"]'].join(", ")}(); diff --git a/package.json b/package.json index d116e7d..3bb4917 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "A small browser extension providing playback controls for some of the challenges on Duolingo.", "license": "MIT", "author": "blmage", - "version": "2.4.0", + "version": "2.4.1", "scripts": { "build": "rollup -c --environment production", "build-debug": "rollup -c --environment development",