diff --git a/package-lock.json b/package-lock.json index e1a68b8..8d4260e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "quizdown", - "version": "0.4.0", + "version": "0.4.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 32433f3..00322c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "quizdown", - "version": "0.4.0", + "version": "0.4.1", "description": "Markdown for generating interactive quiz apps in the browser.", "private": false, "type": "module", diff --git a/public/build/quizdown.js b/public/build/quizdown.js index 5d3292c..4f53b8c 100644 --- a/public/build/quizdown.js +++ b/public/build/quizdown.js @@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** */function Cn(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(e);sn.slice(0,t+1).join("-"))).reverse()}function Un(e,t=Rn().fallbackLocale){const n=qn(e);return t?[...new Set([...n,...qn(t)])]:n}function Kn(){return Dn}jn.subscribe((e=>{Dn=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)}));const Bn=jn.set;jn.set=e=>{if(function(e){if(null==e)return;const t=Un(e);for(let e=0;ePn.set(!0)),t):Pn.set(!0),In(e).then((()=>{Bn(e)})).finally((()=>{clearTimeout(n),Pn.set(!1)}))}return Bn(e)},jn.update=e=>Bn(e(Dn));const Fn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}},Xn=(e,t)=>{const{formats:n}=Rn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Gn=Fn((e=>{var{locale:t,format:n}=e,i=Cn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Xn("number",n)),new Intl.NumberFormat(t,i)})),Vn=Fn((e=>{var{locale:t,format:n}=e,i=Cn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Xn("date",n):0===Object.keys(i).length&&(i=Xn("date","short")),new Intl.DateTimeFormat(t,i)})),Hn=Fn((e=>{var{locale:t,format:n}=e,i=Cn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Xn("time",n):0===Object.keys(i).length&&(i=Xn("time","short")),new Intl.DateTimeFormat(t,i)})),Wn=Fn(((e,t=Kn())=>new vn(e,t,Rn().formats,{ignoreTag:Rn().ignoreTag}))),Yn=(e,t={})=>{"object"==typeof e&&(e=(t=e).id);const{values:n,locale:i=Kn(),default:s}=t;if(null==i)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let r=zn(e,i);if(r){if("string"!=typeof r)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof r}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),r}else Rn().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${Un(i).join('", "')}".${On(Kn())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),r=s||e;if(!n)return r;let o=r;try{o=Wn(r,i).format(n)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return o},Jn=(e,t)=>((e={})=>{var{locale:t=Kn()}=e,n=Cn(e,["locale"]);return Hn(Object.assign({locale:t},n))})(t).format(e),Zn=(e,t)=>((e={})=>{var{locale:t=Kn()}=e,n=Cn(e,["locale"]);return Vn(Object.assign({locale:t},n))})(t).format(e),Qn=(e,t)=>((e={})=>{var{locale:t=Kn()}=e,n=Cn(e,["locale"]);return Gn(Object.assign({locale:t},n))})(t).format(e),ei=(e,t=Kn())=>zn(e,t),ti=Oe([jn,_n],(()=>Yn));Oe([jn],(()=>Jn)),Oe([jn],(()=>Zn)),Oe([jn],(()=>Qn)),Oe([jn,_n],(()=>ei));var ni={next:"Next",previous:"Previous",evaluate:"Evaluate",reset:"One more time!",hint:"Show hint",resultsTitle:"Your quiz results",resultsText:"You have answered {points} out of {total} questions correctly!"},ii={next:"Weiter",previous:"Zurück",evaluate:"Zum Ergebnis",reset:"Noch einmal!",hint:"Tipp anzeigen",resultsTitle:"Ihr Ergebnis",resultsText:"Sie haben {points} von {total} Fragen richtig beantwortet!"},si={next:"Suivant",previous:"Précédent",evaluate:"Réponse",reset:"Recommencer!",hint:"Indice",resultsTitle:"Vos résultats",resultsText:"Vous avez répondu correctement à {points} questions sur {total}!"},ri={next:"Siguiente",previous:"Anterior",evaluate:"Respuesta",reset:"Otra vez!",hint:"Pista",resultsTitle:"Resultados",resultsText:"Ha acertado a {points} preguntas de {total}!"};function oi(e){Sn("de",ii),Sn("en",ni),Sn("fr",si),Sn("es",ri),function(e){const{formats:t}=e,n=Cn(e,["formats"]),i=e.initialLocale||e.fallbackLocale;Object.assign(Mn,n,{initialLocale:i}),t&&("number"in t&&Object.assign(Mn.formats.number,t.number),"date"in t&&Object.assign(Mn.formats.date,t.date),"time"in t&&Object.assign(Mn.formats.time,t.time)),jn.set(i)}({fallbackLocale:"en",initialLocale:null===e?"undefined"==typeof window?null:window.navigator.language||window.navigator.languages[0]:e})}function ai(e){E(e,"svelte-najif3",".card.svelte-najif3{box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2);border-radius:0 0 4px 4px}")}function li(e){let t,n;const i=e[1].default,s=f(i,e,e[0],null);return{c(){t=L("div"),s&&s.c(),D(t,"class","card svelte-najif3")},m(e,i){A(e,t,i),s&&s.m(t,null),n=!0},p(e,[t]){s&&s.p&&(!n||1&t)&&p(s,i,e,e[0],n?t:-1,null,null)},i(e){n||(ge(s,e),n=!0)},o(e){ye(s,e),n=!1},d(e){e&&N(t),s&&s.d(e)}}}function ci(e,t,n){let{$$slots:i={},$$scope:s}=t;return e.$$set=e=>{"$$scope"in e&&n(0,s=e.$$scope)},[s,i]}class ui extends Se{constructor(e){super(),$e(this,e,ci,li,a,{},ai)}}function fi(e){E(e,"svelte-15b7mrd",".credits.svelte-15b7mrd a.svelte-15b7mrd{color:gray;text-decoration:none}.credits.svelte-15b7mrd a.svelte-15b7mrd:hover{text-decoration:underline}.credits.svelte-15b7mrd.svelte-15b7mrd{margin-top:1rem;font-size:small;text-align:end;color:lightgray}")}function hi(t){let n,i;return{c(){n=L("div"),i=L("a"),i.textContent="quizdown v0.4.0",D(i,"href","https://github.com/bonartm/quizdown-js"),D(i,"class","svelte-15b7mrd"),D(n,"class","credits svelte-15b7mrd")},m(e,t){A(e,n,t),S(n,i)},p:e,i:e,o:e,d(e){e&&N(n)}}}class pi extends Se{constructor(e){super(),$e(this,e,null,hi,a,{},fi)}}function di(e){let t,n,i,s;const r=e[6].default,o=f(r,e,e[5],null);return{c(){t=L("div"),n=L("div"),o&&o.c(),re((()=>e[7].call(n))),q(t,"height",e[1]+"px")},m(r,a){A(r,t,a),S(t,n),o&&o.m(n,null),i=function(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=L("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const i=U();let s;return i?(n.src="data:text/html,