@bdelab/roar-sre 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@ function(e){for(var t=[],n=0;n<e.elements.length;n++){var i=e.elements[n];if(i.n
|
|
|
14
14
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
15
15
|
* MIT Licensed
|
|
16
16
|
*/
|
|
17
|
-
!function(t){var n,i,a,s=mt,r=e.extname,o=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var t=o.exec(e),n=t&&s[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}t.charset=l,t.charsets={lookup:l},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var i=t.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=o.exec(e),i=n&&t.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=r("x."+e).toLowerCase().substr(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),n=t.extensions,i=t.types,a=["nginx","apache",void 0,"iana"],Object.keys(s).forEach((function(e){var t=s[e],r=t.extensions;if(r&&r.length){n[e]=r;for(var o=0;o<r.length;o++){var c=r[o];if(i[c]){var l=a.indexOf(s[i[c]].source),u=a.indexOf(t.source);if("application/octet-stream"!==i[c]&&(l>u||l===u&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))}(dt);var ft=i(dt),ht="undefined"!=typeof window?window:{screen:{},navigator:{}},gt=(ht.matchMedia||function(){return{matches:!1}}).bind(ht),vt={get passive(){return!0}},yt=function(){};ht.addEventListener&&ht.addEventListener("p",yt,vt),ht.removeEventListener&&ht.removeEventListener("p",yt,!1);var bt="ontouchstart"in ht,wt=bt||"TouchEvent"in ht&>("(any-pointer: coarse)").matches,xt=(ht.navigator.maxTouchPoints||0)>0||wt,_t=ht.navigator.userAgent||"",Et=gt("(pointer: coarse)").matches&&/iPad|Macintosh/.test(_t)&&Math.min(ht.screen.width||0,ht.screen.height||0)>=768,St=(gt("(pointer: coarse)").matches||!gt("(pointer: fine)").matches&&bt)&&!/Windows.*Firefox/.test(_t),kt=gt("(any-pointer: fine)").matches||gt("(any-hover: hover)").matches||Et||!bt,Tt=!xt||!kt&&St?xt?"touchOnly":"mouseOnly":"hybrid",It="mouseOnly"===Tt?"mouse":"touchOnly"===Tt||St?"touch":"mouse";function Rt(e){return e||(new URLSearchParams(window.location.search).get("lng")||"en")}function At(){return"touchOnly"===Tt||"hybrid"===Tt&&"touch"===It?"mobile":"desktop"}function jt(e,t,n,i,a,s,r){return r&&s&&"device"===a||s&&"device"===a?"".concat(e,"/").concat(n,"/").concat(i,"/").concat(t):r&&s&&"shared"===a||s&&"shared"===a?"".concat(e,"/").concat(n,"/shared/").concat(t):"device"===a?"".concat(e,"/").concat(i,"/").concat(t):"shared/device"===a?"".concat(e,"/shared/").concat(i,"/").concat(t):"languageSpecific"===a?"".concat(e,"/").concat(n,"/").concat(t):"default"===a?"".concat(e,"/").concat(t):"".concat(e,"/shared/").concat(t)}function Ot(e){var t=ft.lookup(e);if(!t)throw new Error("Unrecognized file extension in path: ".concat(e));if(t.startsWith("image/"))return"images";if(t.startsWith("audio/"))return"audio";if(t.startsWith("video/"))return"video";throw new Error("Unsupported MIME type for file: ".concat(e,". Only image, audio, and video files are supported."))}var Lt=function(e,t,n,i){var a=315576e5,s=new Date,r=function(e){var t=Number(e);return Object.is(t,NaN)||0===t?null:t},o=r(e),c=r(t),l=r(n),u=r(i),p={age:l,ageMonths:u};if(o&&c){p.birthMonth=o,p.birthYear=c;var d=new Date(c,o-1,s.getDate()),m=(s-d)/a;p.age=Math.floor(m),p.ageMonths=u||Math.floor(12*m)}else if(c){p.birthYear=c,p.birthMonth=s.getMonth()+1;var f=new Date(c,p.birthMonth-1,s.getDate()),h=(s-f)/a;p.age=Math.floor(h),p.ageMonths=u||Math.floor(12*h)}else if(u){var g=new Date;g.setMonth(g.getMonth()-u),p.birthYear=g.getFullYear(),p.birthMonth=g.getMonth()+1,p.age=Math.floor((s-g)/a)}else l?(p.birthYear=s.getFullYear()-l,p.birthMonth=s.getMonth()+1,p.ageMonths=12*l):(p.birthMonth=null,p.birthYear=null);return p};const Ct={name:"preload",parameters:{auto_preload:{type:d.BOOL,pretty_name:"Auto-preload",default:!1},trials:{type:d.TIMELINE,pretty_name:"Trials",default:[]},images:{type:d.STRING,pretty_name:"Images",default:[],array:!0},audio:{type:d.STRING,pretty_name:"Audio",default:[],array:!0},video:{type:d.STRING,pretty_name:"Video",default:[],array:!0},message:{type:d.HTML_STRING,pretty_name:"Message",default:null},show_progress_bar:{type:d.BOOL,pretty_name:"Show progress bar",default:!0},continue_after_error:{type:d.BOOL,pretty_name:"Continue after error",default:!1},error_message:{type:d.HTML_STRING,pretty_name:"Error message",default:"The experiment failed to load."},show_detailed_errors:{type:d.BOOL,pretty_name:"Show detailed errors",default:!1},max_load_time:{type:d.INT,pretty_name:"Max load time",default:null},on_error:{type:d.FUNCTION,pretty_name:"On error",default:null},on_success:{type:d.FUNCTION,pretty_name:"On success",default:null}}};class Pt{constructor(e){this.jsPsych=e}trial(e,t){var n=null,i=!1,a=[],s=[],r=[],o=[],c=this.jsPsych.getSafeModeStatus(),l=[],u=[],p=[];if(t.auto_preload){var d=this.jsPsych.getTimeline(),m=this.jsPsych.pluginAPI.getAutoPreloadList(d);l=l.concat(m.images),u=u.concat(m.audio),p=p.concat(m.video)}if(t.trials.length>0){var f=this.jsPsych.pluginAPI.getAutoPreloadList(t.trials);l=l.concat(f.images),u=u.concat(f.audio),p=p.concat(f.video)}l=l.concat(t.images),u=u.concat(t.audio),p=p.concat(t.video),l=this.jsPsych.utils.unique(l.flat()),u=this.jsPsych.utils.unique(u.flat()),p=this.jsPsych.utils.unique(p.flat()),c&&(p=[]);var h="";null!==t.message&&(h+=t.message),t.show_progress_bar&&(h+="\n <div id='jspsych-loading-progress-bar-container' style='height: 10px; width: 300px; background-color: #ddd; margin: auto;'>\n <div id='jspsych-loading-progress-bar' style='height: 10px; width: 0%; background-color: #777;'></div>\n </div>"),e.innerHTML=h;const g=()=>{if(_++,t.show_progress_bar){var n=_/x*100,i=e.querySelector("#jspsych-loading-progress-bar");null!==i&&(i.style.width=n+"%")}},v=()=>{void 0!==i&&!1===i&&(this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),n=!0,w())},y=()=>{this.jsPsych.pluginAPI.cancelPreloads(),void 0===n||!1!==n&&null!==n||(i=!0,E<x&&(n=!1),T("timeout"),o.push("<p><strong>Loading timed out.</strong><br>Consider compressing your stimuli files, loading your files in smaller batches,<br>and/or increasing the <i>max_load_time</i> parameter.</p>"),t.continue_after_error?w():b())},b=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),e.innerHTML=t.error_message,t.show_detailed_errors&&(e.innerHTML+="<p><strong>Error details:</strong></p>",o.forEach((t=>{e.innerHTML+=t})))},w=()=>{this.jsPsych.pluginAPI.clearAllTimeouts();var t={success:n,timeout:i,failed_images:a,failed_audio:s,failed_video:r};e.innerHTML="",this.jsPsych.finishTrial(t)};null!==t.max_load_time&&this.jsPsych.pluginAPI.setTimeout(y,t.max_load_time);var x=l.length+u.length+p.length,_=0,E=0;if(0==x)v();else{const e=e=>{this.jsPsych.pluginAPI.preloadVideo(p,e,k,S)},t=e=>{this.jsPsych.pluginAPI.preloadAudio(u,e,k,S)},n=e=>{this.jsPsych.pluginAPI.preloadImages(l,e,k,S)};p.length>0&&e((()=>{})),u.length>0&&t((()=>{})),l.length>0&&n((()=>{}))}function S(e){g(),null==n&&(n=!1);var i="unknown file";e.source&&(i=e.source),e.error&&e.error.path&&e.error.path.length>0&&("img"==e.error.path[0].localName?a.push(i):"audio"==e.error.path[0].localName?s.push(i):"video"==e.error.path[0].localName&&r.push(i));var c="<p><strong>Error loading file: "+i+"</strong><br>";e.error.statusText&&(c+="File request response status: "+e.error.statusText+"<br>"),"404"==e.error&&(c+="404 - file not found.<br>"),void 0!==e.error.loaded&&null!==e.error.loaded&&0!==e.error.loaded?c+=e.error.loaded+" bytes transferred.":c+="File did not begin loading. Check that file path is correct and reachable by the browser,<br>and that loading is not blocked by cross-origin resource sharing (CORS) errors.",c+="</p>",o.push(c),T(i),_==x&&(t.continue_after_error?w():b())}function k(e){g(),function(e){null!==t.on_success&&t.on_success(e)}(e),++E==x?v():_==x&&(t.continue_after_error?w():b())}function T(e){null!==t.on_error&&t.on_error(e)}}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){return this.jsPsych.pluginAPI.mergeSimulationData({success:!0,timeout:!1,failed_images:[],failed_audio:[],failed_video:[]},t)}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.jsPsych.getDisplayElement();this.trial(i,e),n()}}function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,s,r,o=[],c=!0,l=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=s.call(n)).done)&&(o.push(i.value),o.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ut(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Pt.info=Ct;var zt={default:{languageSpecific:{device:["bird-end.mp3","bird-halfway.mp3","bird-intro.mp3","cat-end.mp3","cat-halfway.mp3","cat-intro.mp3","deer-end.mp3","deer-halfway.mp3","deer-intro.mp3","dog-end.mp3","dog-halfway.mp3","dog-intro.mp3","end-ns.mp3","feedback-0-correct.mp3","feedback-0-incorrect.mp3","feedback-1-correct.mp3","feedback-1-incorrect.mp3","feedback-2-correct.mp3","feedback-2-incorrect.mp3","feedback-3-correct.mp3","feedback-3-incorrect.mp3","grade-select.mp3","halfway-ns.mp3","introduction-ns.mp3","introduction.mp3","post-practice-instruction.mp3","post-practice-reminder.mp3","practice-instruction.mp3","student-select.mp3"],shared:[]},shared:["neutral-sound-2.wav","neutral-sound-sub.mp3","neutral-sound.mp3","academy-background.png","bird-happy.gif","bird-talking.gif","bird.png","cat-happy.gif","cat-talking.gif","cat.png","classroom-background.png","deer-happy.gif","deer-talking.gif","deer.png","dog-happy.gif","dog-talking.gif","dog.png","false-flash-key.gif","false-key.png","grade-keyboard.png","grade-keys.png","practice-left.png","practice-right.png","roar-sre-keyboard.png","roar-sre-practice-keyboard.png","true-flash-key.gif","true-key.png","rightArrowBlankShort.png","leftArrowBlankShort.png","false-flash-key-split.gif","false-static-key-split.png","true-flash-key-split.gif","true-static-key-split.png"]}};const Mt="mobile"===At(),Vt="https://storage.googleapis.com/roar-sre",Nt=function(e,t,n){var i={images:{},video:{},audio:{}},a=Rt(n),s=At(),r=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.forEach((function(e){var c=Ot(e),l=pt.parse(e).name,u=l.replace(/^([A-Z])|[\s-_](\w)/g,(function(e,t,n,i){return n?n.toUpperCase():t.toLowerCase()})),p=jt(t,e,a,s,n,r,o);i[c][u]=p}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Array.isArray(e)?r(e,"default"):(e.languageSpecific&&(Array.isArray(e.languageSpecific)?r(e.languageSpecific,"languageSpecific"):c(e.languageSpecific,t)),e.device&&r(e.device,"device"),e.shared&&l(e.shared))},c=function(e,t){Object.entries(e).forEach((function(e){var n=Ft(e,2),i=n[0],a=n[1];r(a,i,!0,t)}))},l=function(e){Array.isArray(e)?r(e,"shared"):Object.entries(e).forEach((function(e){var t=Ft(e,2),n=t[0],i=t[1];r(i,"device"===n?"shared/device":"shared")}))};return e.preload&&Object.entries(e.preload).forEach((function(e){var t=Ft(e,2);t[0];var n=t[1];o(n)})),e.default&&o(e.default,!0),i}(zt,Vt),qt=function(e,t,n){var i={},a=Rt(n),s=At();function r(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e.forEach((function(e){var l=Ot(e),u=jt(t,e,a,s,r,o,c);i[n]||(i[n]={type:Pt,message:"The experiment is loading",show_progress_bar:!0,continue_after_error:!1,error_message:"",show_detailed_errors:!0,max_load_time:null,on_error:null,on_success:null,images:[],audio:[],video:[]}),i[n][l].push(u)}))}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Array.isArray(t)?r(t,e,"default"):(t.languageSpecific&&function(e,t,n){Array.isArray(t)?r(t,e,"languageSpecific"):function(e,t,n){Object.entries(t).forEach((function(t){var i=Ft(t,2),a=i[0];r(i[1],e,a,!0,n)}))}(e,t,n)}(e,t.languageSpecific,n),t.device&&r(t.device,e,"device"),t.shared&&function(e,t){Array.isArray(t)?r(t,e,"shared"):Object.entries(t).forEach((function(t){var n=Ft(t,2),i=n[0];r(n[1],e,"device"===i?"shared/device":"shared")}))}(e,t.shared))}return e.preload&&Object.entries(e.preload).forEach((function(e){var t=Ft(e,2);o(t[0],t[1])})),e.default&&o("default",e.default,!0),i}(zt,Vt).default,$t=e=>{const t=[...e];for(let e=t.length-1;e>0;e--){const n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t},Dt={timeline:[{type:D,questions:[{prompt:"Lab ID:",name:"labId",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.labId=e.response.labId,r.session.set("config",t)}}],conditional_function:()=>"otherLabs"===r.session.get("config").recruitment&&null===r.session.get("config").labId},Bt={timeline:[{type:D,questions:[{prompt:"Participant ID:",name:"pid",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.pid=e.response.pid,r.session.set("config",t)}}],conditional_function:function(){return null===r.session.get("config").pid&&"demo"!==r.session.get("config").recruitment}},Kt={timeline:[{type:K,questions:[{prompt:' <div>\n <p class=" consent_form_title">STANFORD UNIVERSITY CONSENT FORM</p>\n <p class=" consent_form_text">\n <b>PURPOSE OF THE STUDY</b> \n <br>\n Data collected through games in the web-browser will help researchers understand relationships between academic skills, reading proficiency, cognition, perception, and/or attitudes towards reading and school in individuals with a broad range of reading skills.\n <br><br>\n <b>STUDY PROCEDURES</b> \n <br>\n In this study, you will be asked to complete computer tasks via a computer screen. Audio will be presented via headphones or speakers.\n <br><br>\n <b>PRIVACY AND DATA COLLECTION</b> <br>\n We will do our best to ensure your privacy. Data that is collected through this online experiment is stored separately from identifying information such as your name. For the sake of payment, sometimes we store an email address you provide, but this is stored separately from the responses that are recorded in the online experiment. Each participant is assigned a code and that is used rather than names. This is called “coded data” and we try to ensure that the identity of our research participants is kept confidential. Data collected as part of this study may be used for many years to help discover trends in the population and explore changes due to development and education. In addition, coded data may be shared online or with collaborators to allow for new and unforeseen discoveries. Researchers may choose to include coded data in publications to support findings, or they may choose to release coded data alongside findings for replicability.\n <br>\n <br>\n We will collect mouse and click, scores earned, button presses and their timestamps, or other data that may be derived from your behavior on our page. This data will be stored on servers. Incomplete data may be logged if you quit out of the experiment early. If you would like to void your data, you may request it through our contact email. \n <br>\n <br>\n <b>COMPENSATION</b>\n <br> \n Participation in this study is voluntary and you will not receive financial compensation.\n <br>\n <br>\n <b>RISKS, STRESS, OR DISCOMFORT</b>\n <br>\n If there is any reason to believe you are not safe to participate in any of the tasks, please contact us at <a href="url">readingresearch@stanford.edu</a>. Some people may experience some physical discomfort or boredom due to being asked to sit for long periods. For computer tasks, some people may also experience dry eyes or eye fatigue. For some tasks that are untimed, breaks can be taken as needed during the session.\n <br>\n <br>\n <b>CONTACT INFORMATION </b>\n <br>\n If you have any additional questions or concerns about our research, feel free to email us at <a href="url">readingresearch@stanford.edu</a>. We will be more than happy to help!\n <br>\n <br>\n For general information regarding questions or concerns about your rights as a research participant, please call 1-866-680-2906 to reach the Administrative Panel on Human Subjects in Medical Research, Stanford University.\n </p>\n </div>\n ',options:["<b>I agree to participate in this research. Participation in this research is voluntary, and I can stop at any time without penalty. <br> I feel that I understand what I am getting into, and I know I am free to leave the experiment at any time by simply closing the web browser.\n </b>"],required:!0,required_message:"You must check the box to continue",name:"Agree"}]}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},Yt={timeline:[{type:W,preamble:"<div><h1>Please share a bit more to help us understand your data!</h1><p>This information is optional.</p></div>",html:'\n <div className="item">\n <span htmlFor="instructions" class = "survey_form_text">How old are you? (Please type a number)</span>\n <input type = "text" id = "age" name="age" style = "font-size: 2vh" value=""/>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">What is your current grade or highest level of education?</span>\n <select id = "edu" name = "edu" style = "font-size: 2vh">\n <option value=""></option>\n <option value="prek">preK</option>\n <option value="k1">K1</option>\n <option value="k2">K2</option>\n <option value="1">Grade 1</option>\n <option value="2">Grade 2</option>\n <option value="3">Grade 3</option>\n <option value="4">Grade 4</option>\n <option value="5">Grade 5</option>\n <option value="6">Grade 6</option>\n <option value="7">Grade 7</option>\n <option value="8">Grade 8</option>\n <option value="9">Grade 9</option>\n <option value="10">Grade 10</option>\n <option value="11">Grade 11</option>\n <option value="12">Grade 12</option>\n <option value="college">College</option>\n <option value="proSchool">Professional School</option>\n <option value="gradSchool">Graduate School</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Is English your first language?</span>\n <select id = "ell" name = "ell" style = "font-size: 2vh">\n <option value=""></option>\n <option value="1">No</option>\n <option value="0">Yes</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Have you taken this game before?</span>\n <select id = "retake" name = "retake" style = "font-size: 2vh">\n <option value=""></option>\n <option value="0">No</option>\n <option value="1">Yes</option>\n </select>\n </div>\n <br>',autocomplete:!0,on_finish:e=>{const t={};for(const n in e.response)""===e.response[n]?t[n]=null:t[n]="retake"===n||"ell"===n?parseInt(e.response[n],10):e.response[n];t.grade=r.session.get("config").userMetadata.grade;const n=r.session.get("config"),i=Lt(null,null,t.age);n.userMetadata={...n.userMetadata,...t,...i},r.session.set("config",n)}}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent||null===r.session.get("config").userMetadata.birthMonth},Wt={type:G,stimulus:()=>Nt.audio.gradeSelect,prompt:()=>Mt?`\n <div class="mobile-grade-select">\n <h3>${Fe.t("introduction.gradeSelect.text1")}</h3>\n <p>${Fe.t("introduction.gradeSelect.text2Mobile")}</p>\n <p>${Fe.t("introduction.gradeSelect.text3")}</p>\n <div class="button">${Fe.t("introduction.gradeSelect.text4Mobile")}</div>\n </div>\n `:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${Fe.t("introduction.gradeSelect.text1")}</h3>\n <p>${Fe.t("introduction.gradeSelect.text2")}</p>\n <p>${Fe.t("introduction.gradeSelect.text3")}</p>\n <img width="50%" src="${Nt.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${Fe.t("introduction.gradeSelect.text4")}</div>\n </div>`,keyboard_choices:Mt?"NO_KEYS":["1","2","3","4","5","6","7","8"],button_choices:Mt?["1st Grade","2nd Grade","3rd Grade","4th Grade","5th Grade","6th Grade","7th Grade","8th Grade or higher"]:[],button_html:'<button class="grade-btn">%choice%</button>',prompt_above_buttons:!0,on_load:()=>{document.body.style.background="rgb(250, 246, 236)"},on_finish:async e=>{document.body.style.background="white";const t=e.button_response??e.keyboard_response;Mt?r.session.set("tosrecCorpusId","tosrec"+t+1):r.session.set("tosrecCorpusId","tosrec"+t);const n=r.session.get("config");n.userMetadata={...n.userMetadata,grade:Number(Mt?t+1:t)},r.session.set("config",n)}},Ht=["K","PK","TK","PreKindergarten","TransitionalKindergarten","Kindergarten","InfantToddler","Preschool"].map((e=>e.toLowerCase()));const Gt=[ot,Dt,Bt,Kt,Yt,{timeline:[Wt],conditional_function:()=>{const e=r.session.get("config").userMetadata.grade;return!function(e){return!!(e>0&&e<=12||("string"==typeof e||e instanceof String)&&Ht.includes(e.toLowerCase()))}(e)||(r.session.set("tosrecCorpusId","tosrec"+e),!1)}}];var Jt=function(){this.__data__=[],this.size=0};var Qt=function(e,t){return e===t||e!=e&&t!=t},Zt=Qt;var Xt=function(e,t){for(var n=e.length;n--;)if(Zt(e[n][0],t))return n;return-1},en=Xt,tn=Array.prototype.splice;var nn=Xt;var an=Xt;var sn=Xt;var rn=Jt,on=function(e){var t=this.__data__,n=en(t,e);return!(n<0)&&(n==t.length-1?t.pop():tn.call(t,n,1),--this.size,!0)},cn=function(e){var t=this.__data__,n=nn(t,e);return n<0?void 0:t[n][1]},ln=function(e){return an(this.__data__,e)>-1},un=function(e,t){var n=this.__data__,i=sn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function pn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}pn.prototype.clear=rn,pn.prototype.delete=on,pn.prototype.get=cn,pn.prototype.has=ln,pn.prototype.set=un;var dn=pn,mn=dn;var fn=function(){this.__data__=new mn,this.size=0};var hn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var gn=function(e){return this.__data__.get(e)};var vn=function(e){return this.__data__.has(e)},yn="object"==typeof n&&n&&n.Object===Object&&n,bn=yn,wn="object"==typeof self&&self&&self.Object===Object&&self,xn=bn||wn||Function("return this")(),_n=xn.Symbol,En=_n,Sn=Object.prototype,kn=Sn.hasOwnProperty,Tn=Sn.toString,In=En?En.toStringTag:void 0;var Rn=function(e){var t=kn.call(e,In),n=e[In];try{e[In]=void 0;var i=!0}catch(e){}var a=Tn.call(e);return i&&(t?e[In]=n:delete e[In]),a},An=Object.prototype.toString;var jn=Rn,On=function(e){return An.call(e)},Ln=_n?_n.toStringTag:void 0;var Cn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ln&&Ln in Object(e)?jn(e):On(e)};var Pn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Fn=Cn,Un=Pn;var zn,Mn=function(e){if(!Un(e))return!1;var t=Fn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Vn=xn["__core-js_shared__"],Nn=(zn=/[^.]+$/.exec(Vn&&Vn.keys&&Vn.keys.IE_PROTO||""))?"Symbol(src)_1."+zn:"";var qn=function(e){return!!Nn&&Nn in e},$n=Function.prototype.toString;var Dn=function(e){if(null!=e){try{return $n.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Bn=Mn,Kn=qn,Yn=Pn,Wn=Dn,Hn=/^\[object .+?Constructor\]$/,Gn=Function.prototype,Jn=Object.prototype,Qn=Gn.toString,Zn=Jn.hasOwnProperty,Xn=RegExp("^"+Qn.call(Zn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ei=function(e){return!(!Yn(e)||Kn(e))&&(Bn(e)?Xn:Hn).test(Wn(e))},ti=function(e,t){return null==e?void 0:e[t]};var ni=function(e,t){var n=ti(e,t);return ei(n)?n:void 0},ii=ni(xn,"Map"),ai=ni(Object,"create"),si=ai;var ri=function(){this.__data__=si?si(null):{},this.size=0};var oi=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ci=ai,li=Object.prototype.hasOwnProperty;var ui=function(e){var t=this.__data__;if(ci){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return li.call(t,e)?t[e]:void 0},pi=ai,di=Object.prototype.hasOwnProperty;var mi=ai;var fi=ri,hi=oi,gi=ui,vi=function(e){var t=this.__data__;return pi?void 0!==t[e]:di.call(t,e)},yi=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mi&&void 0===t?"__lodash_hash_undefined__":t,this};function bi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}bi.prototype.clear=fi,bi.prototype.delete=hi,bi.prototype.get=gi,bi.prototype.has=vi,bi.prototype.set=yi;var wi=bi,xi=dn,_i=ii;var Ei=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Si=function(e,t){var n=e.__data__;return Ei(t)?n["string"==typeof t?"string":"hash"]:n.map},ki=Si;var Ti=Si;var Ii=Si;var Ri=Si;var Ai=function(){this.size=0,this.__data__={hash:new wi,map:new(_i||xi),string:new wi}},ji=function(e){var t=ki(this,e).delete(e);return this.size-=t?1:0,t},Oi=function(e){return Ti(this,e).get(e)},Li=function(e){return Ii(this,e).has(e)},Ci=function(e,t){var n=Ri(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Pi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Pi.prototype.clear=Ai,Pi.prototype.delete=ji,Pi.prototype.get=Oi,Pi.prototype.has=Li,Pi.prototype.set=Ci;var Fi=Pi,Ui=dn,zi=ii,Mi=Fi;var Vi=dn,Ni=fn,qi=hn,$i=gn,Di=vn,Bi=function(e,t){var n=this.__data__;if(n instanceof Ui){var i=n.__data__;if(!zi||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mi(i)}return n.set(e,t),this.size=n.size,this};function Ki(e){var t=this.__data__=new Vi(e);this.size=t.size}Ki.prototype.clear=Ni,Ki.prototype.delete=qi,Ki.prototype.get=$i,Ki.prototype.has=Di,Ki.prototype.set=Bi;var Yi=Ki;var Wi=Fi,Hi=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Gi=function(e){return this.__data__.has(e)};function Ji(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wi;++t<n;)this.add(e[t])}Ji.prototype.add=Ji.prototype.push=Hi,Ji.prototype.has=Gi;var Qi=Ji,Zi=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},Xi=function(e,t){return e.has(t)};var ea=function(e,t,n,i,a,s){var r=1&n,o=e.length,c=t.length;if(o!=c&&!(r&&c>o))return!1;var l=s.get(e),u=s.get(t);if(l&&u)return l==t&&u==e;var p=-1,d=!0,m=2&n?new Qi:void 0;for(s.set(e,t),s.set(t,e);++p<o;){var f=e[p],h=t[p];if(i)var g=r?i(h,f,p,t,e,s):i(f,h,p,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(m){if(!Zi(t,(function(e,t){if(!Xi(m,t)&&(f===e||a(f,e,n,i,s)))return m.push(t)}))){d=!1;break}}else if(f!==h&&!a(f,h,n,i,s)){d=!1;break}}return s.delete(e),s.delete(t),d},ta=xn.Uint8Array;var na=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n};var ia=ta,aa=Qt,sa=ea,ra=na,oa=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},ca=_n?_n.prototype:void 0,la=ca?ca.valueOf:void 0;var ua=function(e,t,n,i,a,s,r){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new ia(e),new ia(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return aa(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=ra;case"[object Set]":var c=1&i;if(o||(o=oa),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var u=sa(o(e),o(t),i,a,s,r);return r.delete(e),u;case"[object Symbol]":if(la)return la.call(e)==la.call(t)}return!1};var pa=function(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e},da=Array.isArray,ma=pa,fa=da;var ha=function(e,t,n){var i=t(e);return fa(e)?i:ma(i,n(e))};var ga=function(){return[]},va=function(e,t){for(var n=-1,i=null==e?0:e.length,a=0,s=[];++n<i;){var r=e[n];t(r,n,e)&&(s[a++]=r)}return s},ya=ga,ba=Object.prototype.propertyIsEnumerable,wa=Object.getOwnPropertySymbols,xa=wa?function(e){return null==e?[]:(e=Object(e),va(wa(e),(function(t){return ba.call(e,t)})))}:ya;var _a=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i};var Ea=function(e){return null!=e&&"object"==typeof e},Sa=Cn,ka=Ea;var Ta=function(e){return ka(e)&&"[object Arguments]"==Sa(e)},Ia=Ea,Ra=Object.prototype,Aa=Ra.hasOwnProperty,ja=Ra.propertyIsEnumerable,Oa=Ta(function(){return arguments}())?Ta:function(e){return Ia(e)&&Aa.call(e,"callee")&&!ja.call(e,"callee")},La={exports:{}};var Ca=function(){return!1};!function(e,t){var n=xn,i=Ca,a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,r=s&&s.exports===a?n.Buffer:void 0,o=(r?r.isBuffer:void 0)||i;e.exports=o}(La,La.exports);var Pa=La.exports,Fa=/^(?:0|[1-9]\d*)$/;var Ua=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Fa.test(e))&&e>-1&&e%1==0&&e<t};var za=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ma=Cn,Va=za,Na=Ea,qa={};qa["[object Float32Array]"]=qa["[object Float64Array]"]=qa["[object Int8Array]"]=qa["[object Int16Array]"]=qa["[object Int32Array]"]=qa["[object Uint8Array]"]=qa["[object Uint8ClampedArray]"]=qa["[object Uint16Array]"]=qa["[object Uint32Array]"]=!0,qa["[object Arguments]"]=qa["[object Array]"]=qa["[object ArrayBuffer]"]=qa["[object Boolean]"]=qa["[object DataView]"]=qa["[object Date]"]=qa["[object Error]"]=qa["[object Function]"]=qa["[object Map]"]=qa["[object Number]"]=qa["[object Object]"]=qa["[object RegExp]"]=qa["[object Set]"]=qa["[object String]"]=qa["[object WeakMap]"]=!1;var $a=function(e){return Na(e)&&Va(e.length)&&!!qa[Ma(e)]};var Da=function(e){return function(t){return e(t)}},Ba={exports:{}};!function(e,t){var n=yn,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&n.process,r=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=r}(Ba,Ba.exports);var Ka=Ba.exports,Ya=$a,Wa=Da,Ha=Ka&&Ka.isTypedArray,Ga=Ha?Wa(Ha):Ya,Ja=_a,Qa=Oa,Za=da,Xa=Pa,es=Ua,ts=Ga,ns=Object.prototype.hasOwnProperty;var is=function(e,t){var n=Za(e),i=!n&&Qa(e),a=!n&&!i&&Xa(e),s=!n&&!i&&!a&&ts(e),r=n||i||a||s,o=r?Ja(e.length,String):[],c=o.length;for(var l in e)!t&&!ns.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||es(l,c))||o.push(l);return o},as=Object.prototype;var ss=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||as)};var rs=function(e,t){return function(n){return e(t(n))}},os=rs(Object.keys,Object),cs=ss,ls=os,us=Object.prototype.hasOwnProperty;var ps=Mn,ds=za;var ms=function(e){return null!=e&&ds(e.length)&&!ps(e)},fs=is,hs=function(e){if(!cs(e))return ls(e);var t=[];for(var n in Object(e))us.call(e,n)&&"constructor"!=n&&t.push(n);return t},gs=ms;var vs=function(e){return gs(e)?fs(e):hs(e)},ys=ha,bs=xa,ws=vs;var xs=function(e){return ys(e,ws,bs)},_s=xs,Es=Object.prototype.hasOwnProperty;var Ss=function(e,t,n,i,a,s){var r=1&n,o=_s(e),c=o.length;if(c!=_s(t).length&&!r)return!1;for(var l=c;l--;){var u=o[l];if(!(r?u in t:Es.call(t,u)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var f=r;++l<c;){var h=e[u=o[l]],g=t[u];if(i)var v=r?i(g,h,u,t,e,s):i(h,g,u,e,t,s);if(!(void 0===v?h===g||a(h,g,n,i,s):v)){m=!1;break}f||(f="constructor"==u)}if(m&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(m=!1)}return s.delete(e),s.delete(t),m},ks=ni(xn,"DataView"),Ts=ii,Is=ni(xn,"Promise"),Rs=ni(xn,"Set"),As=ni(xn,"WeakMap"),js=Cn,Os=Dn,Ls="[object Map]",Cs="[object Promise]",Ps="[object Set]",Fs="[object WeakMap]",Us="[object DataView]",zs=Os(ks),Ms=Os(Ts),Vs=Os(Is),Ns=Os(Rs),qs=Os(As),$s=js;(ks&&$s(new ks(new ArrayBuffer(1)))!=Us||Ts&&$s(new Ts)!=Ls||Is&&$s(Is.resolve())!=Cs||Rs&&$s(new Rs)!=Ps||As&&$s(new As)!=Fs)&&($s=function(e){var t=js(e),n="[object Object]"==t?e.constructor:void 0,i=n?Os(n):"";if(i)switch(i){case zs:return Us;case Ms:return Ls;case Vs:return Cs;case Ns:return Ps;case qs:return Fs}return t});var Ds=$s,Bs=Yi,Ks=ea,Ys=ua,Ws=Ss,Hs=Ds,Gs=da,Js=Pa,Qs=Ga,Zs="[object Arguments]",Xs="[object Array]",er="[object Object]",tr=Object.prototype.hasOwnProperty;var nr=function(e,t,n,i,a,s){var r=Gs(e),o=Gs(t),c=r?Xs:Hs(e),l=o?Xs:Hs(t),u=(c=c==Zs?er:c)==er,p=(l=l==Zs?er:l)==er,d=c==l;if(d&&Js(e)){if(!Js(t))return!1;r=!0,u=!1}if(d&&!u)return s||(s=new Bs),r||Qs(e)?Ks(e,t,n,i,a,s):Ys(e,t,c,n,i,a,s);if(!(1&n)){var m=u&&tr.call(e,"__wrapped__"),f=p&&tr.call(t,"__wrapped__");if(m||f){var h=m?e.value():e,g=f?t.value():t;return s||(s=new Bs),a(h,g,n,i,s)}}return!!d&&(s||(s=new Bs),Ws(e,t,n,i,a,s))},ir=Ea;var ar=function e(t,n,i,a,s){return t===n||(null==t||null==n||!ir(t)&&!ir(n)?t!=t&&n!=n:nr(t,n,i,a,e,s))},sr=Yi,rr=ar;var or=Pn;var cr=function(e){return e==e&&!or(e)},lr=cr,ur=vs;var pr=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},dr=function(e,t,n,i){var a=n.length,s=a,r=!i;if(null==e)return!s;for(e=Object(e);a--;){var o=n[a];if(r&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<s;){var c=(o=n[a])[0],l=e[c],u=o[1];if(r&&o[2]){if(void 0===l&&!(c in e))return!1}else{var p=new sr;if(i)var d=i(l,u,c,e,t,p);if(!(void 0===d?rr(u,l,3,i,p):d))return!1}}return!0},mr=function(e){for(var t=ur(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,lr(a)]}return t},fr=pr;var hr=function(e){var t=mr(e);return 1==t.length&&t[0][2]?fr(t[0][0],t[0][1]):function(n){return n===e||dr(n,e,t)}},gr=Cn,vr=Ea;var yr=function(e){return"symbol"==typeof e||vr(e)&&"[object Symbol]"==gr(e)},br=da,wr=yr,xr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_r=/^\w*$/;var Er=function(e,t){if(br(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!wr(e))||(_r.test(e)||!xr.test(e)||null!=t&&e in Object(t))},Sr=Fi;function kr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],s=n.cache;if(s.has(a))return s.get(a);var r=e.apply(this,i);return n.cache=s.set(a,r)||s,r};return n.cache=new(kr.Cache||Sr),n}kr.Cache=Sr;var Tr=kr;var Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rr=/\\(\\)?/g,Ar=function(e){var t=Tr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ir,(function(e,n,i,a){t.push(i?a.replace(Rr,"$1"):n||e)})),t}));var jr=function(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a},Or=jr,Lr=da,Cr=yr,Pr=_n?_n.prototype:void 0,Fr=Pr?Pr.toString:void 0;var Ur=function e(t){if("string"==typeof t)return t;if(Lr(t))return Or(t,e)+"";if(Cr(t))return Fr?Fr.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},zr=Ur;var Mr=da,Vr=Er,Nr=Ar,qr=function(e){return null==e?"":zr(e)};var $r=function(e,t){return Mr(e)?e:Vr(e,t)?[e]:Nr(qr(e))},Dr=yr;var Br=function(e){if("string"==typeof e||Dr(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Kr=$r,Yr=Br;var Wr=function(e,t){for(var n=0,i=(t=Kr(t,e)).length;null!=e&&n<i;)e=e[Yr(t[n++])];return n&&n==i?e:void 0},Hr=Wr;var Gr=function(e,t,n){var i=null==e?void 0:Hr(e,t);return void 0===i?n:i};var Jr=$r,Qr=Oa,Zr=da,Xr=Ua,eo=za,to=Br;var no=function(e,t,n){for(var i=-1,a=(t=Jr(t,e)).length,s=!1;++i<a;){var r=to(t[i]);if(!(s=null!=e&&n(e,r)))break;e=e[r]}return s||++i!=a?s:!!(a=null==e?0:e.length)&&eo(a)&&Xr(r,a)&&(Zr(e)||Qr(e))},io=function(e,t){return null!=e&&t in Object(e)},ao=no;var so=function(e,t){return null!=e&&ao(e,t,io)},ro=ar,oo=Gr,co=so,lo=Er,uo=cr,po=pr,mo=Br;var fo=function(e,t){return lo(e)&&uo(t)?po(mo(e),t):function(n){var i=oo(n,e);return void 0===i&&i===t?co(n,e):ro(t,i,3)}};var ho=function(e){return e};var go=Wr;var vo=function(e){return function(t){return go(t,e)}},yo=function(e){return function(t){return null==t?void 0:t[e]}},bo=vo,wo=Er,xo=Br;var _o=function(e){return wo(e)?yo(xo(e)):bo(e)},Eo=hr,So=fo,ko=ho,To=da,Io=_o;var Ro=function(e){return"function"==typeof e?e:null==e?ko:"object"==typeof e?To(e)?So(e[0],e[1]):Eo(e):Io(e)};var Ao=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},jo=ni,Oo=function(){try{var e=jo(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Lo=Oo;var Co=function(e,t,n){"__proto__"==t&&Lo?Lo(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Po=Co,Fo=Qt,Uo=Object.prototype.hasOwnProperty;var zo=function(e,t,n){var i=e[t];Uo.call(e,t)&&Fo(i,n)&&(void 0!==n||t in e)||Po(e,t,n)},Mo=zo,Vo=$r,No=Ua,qo=Pn,$o=Br;var Do=function(e,t,n,i){if(!qo(e))return e;for(var a=-1,s=(t=Vo(t,e)).length,r=s-1,o=e;null!=o&&++a<s;){var c=$o(t[a]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=r){var u=o[c];void 0===(l=i?i(u,c,o):void 0)&&(l=qo(u)?u:No(t[a+1])?[]:{})}Mo(o,c,l),o=o[c]}return e},Bo=Wr,Ko=Do,Yo=$r;var Wo=function(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var r=t[i],o=Bo(e,r);n(o,r)&&Ko(s,Yo(r,e),o)}return s},Ho=rs(Object.getPrototypeOf,Object),Go=pa,Jo=Ho,Qo=xa,Zo=ga,Xo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Go(t,Qo(e)),e=Jo(e);return t}:Zo;var ec=Pn,tc=ss,nc=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ic=Object.prototype.hasOwnProperty;var ac=is,sc=function(e){if(!ec(e))return nc(e);var t=tc(e),n=[];for(var i in e)("constructor"!=i||!t&&ic.call(e,i))&&n.push(i);return n},rc=ms;var oc=function(e){return rc(e)?ac(e,!0):sc(e)},cc=ha,lc=Xo,uc=oc;var pc=function(e){return cc(e,uc,lc)},dc=jr,mc=Ro,fc=Wo,hc=pc;var gc=function(e,t){if(null==e)return{};var n=dc(hc(e),(function(e){return[e]}));return t=mc(t),fc(e,n,(function(e,n){return t(e,n[0])}))},vc=Ro,yc=Ao,bc=gc;var wc=i((function(e,t){return bc(e,yc(vc(t)))}));var xc=i((function(e){return null===e})),_c=/\s/;var Ec=function(e){for(var t=e.length;t--&&_c.test(e.charAt(t)););return t},Sc=/^\s+/;var kc=function(e){return e?e.slice(0,Ec(e)+1).replace(Sc,""):e},Tc=Pn,Ic=yr,Rc=/^[-+]0x[0-9a-f]+$/i,Ac=/^0b[01]+$/i,jc=/^0o[0-7]+$/i,Oc=parseInt;var Lc=i((function(e){if("number"==typeof e)return e;if(Ic(e))return NaN;if(Tc(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Tc(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=kc(e);var n=Ac.test(e);return n||jc.test(e)?Oc(e.slice(2),n?2:8):Rc.test(e)?NaN:+e}));var Cc=i((function(e){return void 0===e}));const Pc=function(e){const t=new q(e);return Object.defineProperties(t,Object.fromEntries(Object.entries({init:"`jsPsych.init()` was replaced by `initJsPsych()` in jsPsych v7.",ALL_KEYS:'jsPsych.ALL_KEYS was replaced by the "ALL_KEYS" string in jsPsych v7.',NO_KEYS:'jsPsych.NO_KEYS was replaced by the "NO_KEYS" string in jsPsych v7.',currentTimelineNodeID:"`currentTimelineNodeID()` was renamed to `getCurrentTimelineNodeID()` in jsPsych v7.",progress:"`progress()` was renamed to `getProgress()` in jsPsych v7.",startTime:"`startTime()` was renamed to `getStartTime()` in jsPsych v7.",totalTime:"`totalTime()` was renamed to `getTotalTime()` in jsPsych v7.",currentTrial:"`currentTrial()` was renamed to `getCurrentTrial()` in jsPsych v7.",initSettings:"`initSettings()` was renamed to `getInitSettings()` in jsPsych v7.",allTimelineVariables:"`allTimelineVariables()` was renamed to `getAllTimelineVariables()` in jsPsych v7."}).map((([e,t])=>[e,{get(){throw new l(t)}}])))),t}({show_progress_bar:!1,auto_update_progress_bar:!1,message_progress_bar:`${Fe.t("progressBar")}`,on_finish:()=>{document.body.style.cursor="auto"}});var Fc=i((function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i}));var Uc=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},zc=zo,Mc=Co;var Vc=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,r=t.length;++s<r;){var o=t[s],c=i?i(n[o],e[o],o,n,e):void 0;void 0===c&&(c=e[o]),a?Mc(n,o,c):zc(n,o,c)}return n},Nc=Vc,qc=vs;var $c=function(e,t){return e&&Nc(t,qc(t),e)},Dc=Vc,Bc=oc;var Kc=function(e,t){return e&&Dc(t,Bc(t),e)},Yc={exports:{}};!function(e,t){var n=xn,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,r=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(Yc,Yc.exports);var Wc=Yc.exports;var Hc=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Gc=Vc,Jc=xa;var Qc=function(e,t){return Gc(e,Jc(e),t)},Zc=Vc,Xc=Xo;var el=function(e,t){return Zc(e,Xc(e),t)},tl=Object.prototype.hasOwnProperty;var nl=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tl.call(e,"index")&&(n.index=e.index,n.input=e.input),n},il=ta;var al=function(e){var t=new e.constructor(e.byteLength);return new il(t).set(new il(e)),t},sl=al;var rl=function(e,t){var n=t?sl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},ol=/\w*$/;var cl=function(e){var t=new e.constructor(e.source,ol.exec(e));return t.lastIndex=e.lastIndex,t},ll=_n?_n.prototype:void 0,ul=ll?ll.valueOf:void 0;var pl=al;var dl=al,ml=rl,fl=cl,hl=function(e){return ul?Object(ul.call(e)):{}},gl=function(e,t){var n=t?pl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var vl=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return dl(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return ml(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return gl(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return fl(e);case"[object Symbol]":return hl(e)}},yl=Pn,bl=Object.create,wl=function(){function e(){}return function(t){if(!yl(t))return{};if(bl)return bl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),xl=Ho,_l=ss;var El=function(e){return"function"!=typeof e.constructor||_l(e)?{}:wl(xl(e))},Sl=Ds,kl=Ea;var Tl=function(e){return kl(e)&&"[object Map]"==Sl(e)},Il=Da,Rl=Ka&&Ka.isMap,Al=Rl?Il(Rl):Tl,jl=Ds,Ol=Ea;var Ll=function(e){return Ol(e)&&"[object Set]"==jl(e)},Cl=Da,Pl=Ka&&Ka.isSet,Fl=Pl?Cl(Pl):Ll,Ul=Yi,zl=Uc,Ml=zo,Vl=$c,Nl=Kc,ql=Wc,$l=Hc,Dl=Qc,Bl=el,Kl=xs,Yl=pc,Wl=Ds,Hl=nl,Gl=vl,Jl=El,Ql=da,Zl=Pa,Xl=Al,eu=Pn,tu=Fl,nu=vs,iu=oc,au="[object Arguments]",su="[object Function]",ru="[object Object]",ou={};ou[au]=ou["[object Array]"]=ou["[object ArrayBuffer]"]=ou["[object DataView]"]=ou["[object Boolean]"]=ou["[object Date]"]=ou["[object Float32Array]"]=ou["[object Float64Array]"]=ou["[object Int8Array]"]=ou["[object Int16Array]"]=ou["[object Int32Array]"]=ou["[object Map]"]=ou["[object Number]"]=ou[ru]=ou["[object RegExp]"]=ou["[object Set]"]=ou["[object String]"]=ou["[object Symbol]"]=ou["[object Uint8Array]"]=ou["[object Uint8ClampedArray]"]=ou["[object Uint16Array]"]=ou["[object Uint32Array]"]=!0,ou["[object Error]"]=ou[su]=ou["[object WeakMap]"]=!1;var cu=function e(t,n,i,a,s,r){var o,c=1&n,l=2&n,u=4&n;if(i&&(o=s?i(t,a,s,r):i(t)),void 0!==o)return o;if(!eu(t))return t;var p=Ql(t);if(p){if(o=Hl(t),!c)return $l(t,o)}else{var d=Wl(t),m=d==su||"[object GeneratorFunction]"==d;if(Zl(t))return ql(t,c);if(d==ru||d==au||m&&!s){if(o=l||m?{}:Jl(t),!c)return l?Bl(t,Nl(o,t)):Dl(t,Vl(o,t))}else{if(!ou[d])return s?t:{};o=Gl(t,d,c)}}r||(r=new Ul);var f=r.get(t);if(f)return f;r.set(t,o),tu(t)?t.forEach((function(a){o.add(e(a,n,i,a,t,r))})):Xl(t)&&t.forEach((function(a,s){o.set(s,e(a,n,i,s,t,r))}));var h=p?void 0:(u?l?Yl:Kl:l?iu:nu)(t);return zl(h||t,(function(a,s){h&&(a=t[s=a]),Ml(o,s,e(a,n,i,s,t,r))})),o};var lu=Wr,uu=function(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(a);++i<a;)s[i]=e[i+t];return s};var pu=function(e,t){return t.length<2?e:lu(e,uu(t,0,-1))},du=$r,mu=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},fu=pu,hu=Br;var gu=function(e,t){return t=du(t,e),null==(e=fu(e,t))||delete e[hu(mu(t))]},vu=Cn,yu=Ho,bu=Ea,wu=Function.prototype,xu=Object.prototype,_u=wu.toString,Eu=xu.hasOwnProperty,Su=_u.call(Object);var ku=function(e){if(!bu(e)||"[object Object]"!=vu(e))return!1;var t=yu(e);if(null===t)return!0;var n=Eu.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_u.call(n)==Su};var Tu=function(e){return ku(e)?void 0:e},Iu=Oa,Ru=da,Au=_n?_n.isConcatSpreadable:void 0;var ju=pa,Ou=function(e){return Ru(e)||Iu(e)||!!(Au&&e&&e[Au])};var Lu=function e(t,n,i,a,s){var r=-1,o=t.length;for(i||(i=Ou),s||(s=[]);++r<o;){var c=t[r];n>0&&i(c)?n>1?e(c,n-1,i,a,s):ju(s,c):a||(s[s.length]=c)}return s},Cu=Lu;var Pu=function(e){return(null==e?0:e.length)?Cu(e,1):[]};var Fu=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Uu=Math.max;var zu=function(e,t,n){return t=Uu(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=Uu(i.length-t,0),r=Array(s);++a<s;)r[a]=i[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=i[a];return o[t]=n(r),Fu(e,this,o)}};var Mu=function(e){return function(){return e}},Vu=Oo,Nu=Vu?function(e,t){return Vu(e,"toString",{configurable:!0,enumerable:!1,value:Mu(t),writable:!0})}:ho,qu=Date.now;var $u=function(e){var t=0,n=0;return function(){var i=qu(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Nu),Du=Pu,Bu=zu,Ku=$u;var Yu=jr,Wu=cu,Hu=gu,Gu=$r,Ju=Vc,Qu=Tu,Zu=pc,Xu=function(e){return Ku(Bu(e,void 0,Du),e+"")}((function(e,t){var n={};if(null==e)return n;var i=!1;t=Yu(t,(function(t){return t=Gu(t,e),i||(i=t.length>1),t})),Ju(e,Zu(e),n),i&&(n=Wu(n,7,Qu));for(var a=t.length;a--;)Hu(n,t[a]);return n})),ep=i(Xu),tp=jr;var np=function(e,t){return tp(t,(function(t){return[t,e[t]]}))},ip=Ds,ap=na,sp=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n};var rp=i(function(e){return function(t){var n=ip(t);return"[object Map]"==n?ap(t):"[object Set]"==n?sp(t):np(t,e(t))}}(vs)),op={exports:{}};op.exports=function e(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function i(){var t=n.URL||n.webkitURL||null,i=e.toString();return c.BLOB_URL||(c.BLOB_URL=t.createObjectURL(new Blob(["(",i,")();"],{type:"text/javascript"})))}var a=!n.document&&!!n.postMessage,s=a&&/blob:/i.test((n.location||{}).protocol),r={},o=0,c={};if(c.parse=u,c.unparse=p,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!a&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=w,c.ParserHandle=y,c.NetworkStreamer=m,c.FileStreamer=f,c.StringStreamer=h,c.ReadableStreamStreamer=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=v),n.jQuery){var l=n.jQuery;l.fn.parse=function(e){var t=e.config||{},i=[];return this.each((function(e){if("INPUT"!==l(this).prop("tagName").toUpperCase()||"file"!==l(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var a=0;a<this.files.length;a++)i.push({file:this.files[a],inputElem:this,instanceConfig:l.extend({},t)})})),a(),this;function a(){if(0!==i.length){var t=i[0];if(R(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void s("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void r();"object"==typeof n.config&&(t.instanceConfig=l.extend(t.instanceConfig,n.config))}else if("skip"===n)return void r()}var a=t.instanceConfig.complete;t.instanceConfig.complete=function(e){R(a)&&a(e,t.file,t.inputElem),r()},c.parse(t.file,t.instanceConfig)}else R(e.complete)&&e.complete()}function s(t,n,i,a){R(e.error)&&e.error({name:t},n,i,a)}function r(){i.splice(0,1),a()}}}function u(e,t){var i=(t=t||{}).dynamicTyping||!1;if(R(i)&&(t.dynamicTypingFunction=i,i={}),t.dynamicTyping=i,t.transform=!!R(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var a=x();return a.userStep=t.step,a.userChunk=t.chunk,a.userComplete=t.complete,a.userError=t.error,t.step=R(t.step),t.chunk=R(t.chunk),t.complete=R(t.complete),t.error=R(t.error),delete t.worker,void a.postMessage({input:e,config:t,workerId:a.id})}var s=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(s=new v(t)).getStream():("string"==typeof e?s=t.download?new m(t):new h(t):!0===e.readable&&R(e.read)&&R(e.on)?s=new g(t):(n.File&&e instanceof File||e instanceof Object)&&(s=new f(t)),s.stream(e))}function p(e,t){var n=!1,i=!0,a=",",s="\r\n",r='"',o=r+r,l=!1,u=null,p=!1;m();var d=new RegExp(b(r),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,l);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,l)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function m(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(a=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(r=t.quoteChar),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+r),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(p=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function f(e,t,n){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(o&&i){for(var l=0;l<e.length;l++)l>0&&(r+=a),r+=h(e[l],l);t.length>0&&(r+=s)}for(var u=0;u<t.length;u++){var p=o?e.length:t[u].length,d=!1,m=o?0===Object.keys(t[u]).length:0===t[u].length;if(n&&!o&&(d="greedy"===n?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===n&&o){for(var f=[],g=0;g<p;g++){var v=c?e[g]:g;f.push(t[u][v])}d=""===f.join("").trim()}if(!d){for(var y=0;y<p;y++){y>0&&!m&&(r+=a);var b=o&&c?e[y]:y;r+=h(t[u][b],y)}u<t.length-1&&(!n||p>0&&!m)&&(r+=s)}}return r}function h(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;p&&"string"==typeof e&&p.test(e)&&(e="'"+e,i=!0);var s=e.toString().replace(d,o);return(i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||g(s,c.BAD_DELIMITERS)||s.indexOf(a)>-1||" "===s.charAt(0)||" "===s.charAt(s.length-1))?r+s+r:s}function g(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function d(e){function t(e){var t=T(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new y(t),this._handle.streamer=this,this._config=t}this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},t.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&R(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var a=this._partialLine+e;this._partialLine="";var r=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var o=r.meta.cursor;this._finished||(this._partialLine=a.substring(o-this._baseIndex),this._baseIndex=o),r&&r.data&&(this._rowCount+=r.data.length);var l=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(s)n.postMessage({results:r,workerId:c.WORKER_ID,finished:l});else if(R(this._config.chunk)&&!t){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);r=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!l||!R(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){R(this._config.error)?this._config.error(e):s&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function m(e){var t;function n(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),d.call(this,e),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),a||(t.onload=I(this._chunkLoaded,this),t.onerror=I(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}a&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function f(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),d.call(this,e);var i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=I(this._chunkLoaded,this),t.onerror=I(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var a=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,a)}var s=t.readAsText(e,this._config.encoding);i||this._chunkLoaded({target:{result:s}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function h(e){var t;e=e||{},d.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function g(e){e=e||{},d.call(this,e);var t=[],n=!0,i=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=I((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=I((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=I((function(){this._streamCleanUp(),i=!0,this._streamData("")}),this),this._streamCleanUp=I((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function v(e){var n=t.Duplex,i=T(e),a=!0,s=!1,r=[],o=null;this._onCsvData=function(e){var t=e.data;o.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){o.push(null)},i.step=I(this._onCsvData,this),i.complete=I(this._onCsvComplete,this),d.call(this,i),this._nextChunk=function(){s&&1===r.length&&(this._finished=!0),r.length?r.shift()():a=!0},this._addToParseQueue=function(e,t){r.push(I((function(){if(this.parseChunk("string"==typeof e?e:e.toString(i.encoding)),R(t))return t()}),this)),a&&(a=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){s=!0,this._addToParseQueue("")},this.getStream=function(){return o},(o=new n({readableObjectMode:!0,decodeStrings:!1,read:I(this._onRead,this),write:I(this._onWrite,this)})).once("finish",I(this._onWriteComplete,this))}function y(e){var t,n,i,a=Math.pow(2,53),s=-a,r=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,l=this,u=0,p=0,d=!1,m=!1,f=[],h={data:[],errors:[],meta:{}};if(R(e.step)){var g=e.step;e.step=function(t){if(h=t,_())x();else{if(x(),0===h.data.length)return;u+=t.data.length,e.preview&&u>e.preview?n.abort():(h.data=h.data[0],g(h,l))}}}function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function y(e){if(r.test(e)){var t=parseFloat(e);if(t>s&&t<a)return!0}return!1}function x(){return h&&i&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(h.data=h.data.filter((function(e){return!v(e)}))),_()&&E(),I()}function _(){return e.header&&0===f.length}function E(){if(h)if(Array.isArray(h.data[0])){for(var t=0;_()&&t<h.data.length;t++)h.data[t].forEach(n);h.data.splice(0,1)}else h.data.forEach(n);function n(t,n){R(e.transformHeader)&&(t=e.transformHeader(t,n)),f.push(t)}}function S(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function k(e,t){return S(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(y(t)?parseFloat(t):o.test(t)?new Date(t):""===t?null:t):t}function I(){if(!h||!e.header&&!e.dynamicTyping&&!e.transform)return h;function t(t,n){var i,a=e.header?{}:[];for(i=0;i<t.length;i++){var s=i,r=t[i];e.header&&(s=i>=f.length?"__parsed_extra":f[i]),e.transform&&(r=e.transform(r,s)),r=k(s,r),"__parsed_extra"===s?(a[s]=a[s]||[],a[s].push(r)):a[s]=r}return e.header&&(i>f.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+i,p+n):i<f.length&&O("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+i,p+n)),a}var n=1;return!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(t),n=h.data.length):h.data=t(h.data,0),e.header&&h.meta&&(h.meta.fields=f),p+=n,h}function A(t,n,i,a,s){var r,o,l,u;s=s||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var p=0;p<s.length;p++){var d=s[p],m=0,f=0,h=0;l=void 0;for(var g=new w({comments:a,delimiter:d,newline:n,preview:10}).parse(t),y=0;y<g.data.length;y++)if(i&&v(g.data[y]))h++;else{var b=g.data[y].length;f+=b,void 0!==l?b>0&&(m+=Math.abs(b-l),l=b):l=b}g.data.length>0&&(f/=g.data.length-h),(void 0===o||m<=o)&&(void 0===u||f>u)&&f>1.99&&(o=m,r=d,u=f)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function j(e,t){e=e.substring(0,1048576);var n=new RegExp(b(t)+"([^]*?)"+b(t),"gm"),i=(e=e.replace(n,"")).split("\r"),a=e.split("\n"),s=a.length>1&&a[0].length<i[0].length;if(1===i.length||s)return"\n";for(var r=0,o=0;o<i.length;o++)"\n"===i[o][0]&&r++;return r>=i.length/2?"\r\n":"\r"}function O(e,t,n,i){var a={type:e,code:t,message:n};void 0!==i&&(a.row=i),h.errors.push(a)}this.parse=function(a,s,r){var o=e.quoteChar||'"';if(e.newline||(e.newline=j(a,o)),i=!1,e.delimiter)R(e.delimiter)&&(e.delimiter=e.delimiter(a),h.meta.delimiter=e.delimiter);else{var l=A(a,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);l.successful?e.delimiter=l.bestDelimiter:(i=!0,e.delimiter=c.DefaultDelimiter),h.meta.delimiter=e.delimiter}var u=T(e);return e.preview&&e.header&&u.preview++,t=a,n=new w(u),h=n.parse(t,s,r),x(),d?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),t=R(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(d=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,n.abort(),h.meta.aborted=!0,R(e.complete)&&e.complete(h),t=""}}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(e){var t,n=(e=e||{}).delimiter,i=e.newline,a=e.comments,s=e.step,r=e.preview,o=e.fastMode,l=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(l=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),a===n)throw new Error("Comment character same as delimiter");!0===a?a="#":("string"!=typeof a||c.BAD_DELIMITERS.indexOf(a)>-1)&&(a=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var u=0,p=!1;this.parse=function(e,c,d){if("string"!=typeof e)throw new Error("Input must be a string");var m=e.length,f=n.length,h=i.length,g=a.length,v=R(s);u=0;var y=[],w=[],x=[],_=0;if(!e)return U();if(o||!1!==o&&-1===e.indexOf(t)){for(var E=e.split(i),S=0;S<E.length;S++){if(x=E[S],u+=x.length,S!==E.length-1)u+=i.length;else if(d)return U();if(!a||x.substring(0,g)!==a){if(v){if(y=[],L(x.split(n)),z(),p)return U()}else L(x.split(n));if(r&&S>=r)return y=y.slice(0,r),U(!0)}}return U()}for(var k=e.indexOf(n,u),T=e.indexOf(i,u),I=new RegExp(b(l)+b(t),"g"),A=e.indexOf(t,u);;)if(e[u]!==t)if(a&&0===x.length&&e.substring(u,u+g)===a){if(-1===T)return U();u=T+h,T=e.indexOf(i,u),k=e.indexOf(n,u)}else if(-1!==k&&(k<T||-1===T))x.push(e.substring(u,k)),u=k+f,k=e.indexOf(n,u);else{if(-1===T)break;if(x.push(e.substring(u,T)),F(T+h),v&&(z(),p))return U();if(r&&y.length>=r)return U(!0)}else for(A=u,u++;;){if(-1===(A=e.indexOf(t,A+1)))return d||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:y.length,index:u}),P();if(A===m-1)return P(e.substring(u,A).replace(I,t));if(t!==l||e[A+1]!==l){if(t===l||0===A||e[A-1]!==l){-1!==k&&k<A+1&&(k=e.indexOf(n,A+1)),-1!==T&&T<A+1&&(T=e.indexOf(i,A+1));var j=C(-1===T?k:Math.min(k,T));if(e.substr(A+1+j,f)===n){x.push(e.substring(u,A).replace(I,t)),u=A+1+j+f,e[A+1+j+f]!==t&&(A=e.indexOf(t,u)),k=e.indexOf(n,u),T=e.indexOf(i,u);break}var O=C(T);if(e.substring(A+1+O,A+1+O+h)===i){if(x.push(e.substring(u,A).replace(I,t)),F(A+1+O+h),k=e.indexOf(n,u),A=e.indexOf(t,u),v&&(z(),p))return U();if(r&&y.length>=r)return U(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:y.length,index:u}),A++}}else A++}return P();function L(e){y.push(e),_=u}function C(t){var n=0;if(-1!==t){var i=e.substring(A+1,t);i&&""===i.trim()&&(n=i.length)}return n}function P(t){return d||(void 0===t&&(t=e.substring(u)),x.push(t),u=m,L(x),v&&z()),U()}function F(t){u=t,L(x),x=[],T=e.indexOf(i,u)}function U(e){return{data:y,errors:w,meta:{delimiter:n,linebreak:i,aborted:p,truncated:!!e,cursor:_+(c||0)}}}function z(){s(U()),y=[],w=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return u}}function x(){if(!c.WORKERS_SUPPORTED)return!1;var e=i(),t=new n.Worker(e);return t.onmessage=_,t.id=o++,r[t.id]=t,t}function _(e){var t=e.data,n=r[t.workerId],i=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){i=!0,E(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(R(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},a),!i);s++);delete t.results}else R(n.userChunk)&&(n.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!i&&E(t.workerId,t.results)}function E(e,t){var n=r[e];R(n.userComplete)&&n.userComplete(t),n.terminate(),delete r[e]}function S(){throw new Error("Not implemented.")}function k(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var i=c.parse(t.input,t.config);i&&n.postMessage({workerId:c.WORKER_ID,results:i,finished:!0})}}function T(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=T(e[n]);return t}function I(e,t){return function(){e.apply(t,arguments)}}function R(e){return"function"==typeof e}return s&&(n.onmessage=k),m.prototype=Object.create(d.prototype),m.prototype.constructor=m,f.prototype=Object.create(d.prototype),f.prototype.constructor=f,h.prototype=Object.create(h.prototype),h.prototype.constructor=h,g.prototype=Object.create(d.prototype),g.prototype.constructor=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(v.prototype=Object.create(d.prototype),v.prototype.constructor=v),c}();var cp=op.exports;class lp{constructor(){this.tableURL="https://storage.googleapis.com/roar-sre/scores/sre_lookup_v1.csv",this.lookupTable=[],this.tableLoaded=!1}async initTable(){return new Promise(((e,t)=>{const n=r.session.get("config").userMetadata?.grade;n||t();this.gradeForScore=n,n<1&&(this.gradeForScore=1),n>8&&(this.gradeForScore=8),cp.parse(this.tableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{this.gradeForScore===Number(e.data.grade)&&this.lookupTable.push(ep(e.data,[""]))},complete:()=>{this.tableLoaded=!0,e()}})}))}computedScoreCallback=async e=>{const t=Fc(rp(e).map((([e,t])=>{const n="practice"===e?"practice":"test";return[e,{sreScore:(t[n]?.numCorrect||0)-(t[n]?.numIncorrect||0)}]}))),n=Math.max(t.lab?.sreScore||0,0);t.composite={sreScore:n};const i=r.session.get("config").userMetadata?.grade;if(i){this.tableLoaded||await this.initTable();const e=this.lookupTable.find((e=>e.sreScore===n));if(void 0!==e){const{grade:i,sreScore:a,...s}=e;t.composite={sreScore:n,...s}}}return t}}const up={practice:st[Fe.language].corpusPractice,lab:st[Fe.language].corpusLab,ai:st[Fe.language].corpusAI,tosrec:st[Fe.language].corpusTOSREC,aiV1P1:st[Fe.language].corpusAIV1P1,aiV1P2:st[Fe.language].corpusAIV1P2},pp=e=>e.reduce(((e,t)=>{const n={sentence:t.sentence,direction:t.direction,answer:t.answer,difficulty:t.difficulty,itemId:t.itemId};return e.push(n),e}),[]),dp=e=>e.reduce(((e,t)=>{const n={sentence:t.sentence,grade:t.grade,direction:t.direction,answer:t.answer,itemId:t.itemId};return e.push(n),e}),[]),mp={practice:(fp=up.practice,fp.reduce(((e,t)=>{const n={sentence:t.sentence,answer:t.answer,correct_response:t.correctresponse};return e.push(n),e}),[])),lab:pp(up.lab),ai:$t(pp(up.ai)).slice(0,130),aiV1P1:pp(up.aiV1P1),aiV1P2:pp(up.aiV1P2),tosrec1:dp(up.tosrec).filter((e=>1===e.grade)),tosrec2:dp(up.tosrec).filter((e=>2===e.grade)),tosrec3:dp(up.tosrec).filter((e=>3===e.grade)),tosrec4:dp(up.tosrec).filter((e=>4===e.grade)),tosrec5:dp(up.tosrec).filter((e=>5===e.grade)),tosrec6:dp(up.tosrec).filter((e=>6===e.grade)),tosrec7:dp(up.tosrec).filter((e=>7===e.grade)),tosrec8:dp(up.tosrec).filter((e=>8===e.grade))};var fp;function hp(e,t){let n;return n=["true","false"].includes(e?.toLocaleLowerCase())?e?.toLocaleLowerCase():!(Lc(t)>=6),n}function gp(e){return"3minParallelAIFormV1"===e?Math.random()<.5?$t(["lab","aiV1P1"]):$t(["lab","aiV1P2"]):["lab","ai"]}const vp=e=>{e.displayElement&&(Pc.opts.display_element=e.displayElement);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};Pc.opts.on_finish=t(Pc.opts.on_finish,(()=>{e.firekit.finishRun(),e.experimentFinished&&e.experimentFinished()}));const n=new lp;Pc.opts.on_data_update=t(Pc.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,n.computedScoreCallback.bind(n))})),window.addEventListener("error",(t=>{const{msg:n,url:i,lineNo:a,columnNo:s,error:r}=t;e.firekit?.writeTrial({assessment_stage:"error",lastTrial:Pc.data.getLastTrialData().trials[0],message:String(n),source:i||null,lineNo:String(a||null),colNo:String(s||null),error:JSON.stringify(r||null),timeStamp:(new Date).toISOString()})})),r.session.has("initialized")&&r.local("initialized")||(r.session.set("practiceIndex",0),r.session.set("currentBlockIndex",0),r.session.set("trialNumBlock",0),r.session.set("trialNumTotal",0),r.session.set("demoCounter",0),r.session.set("nextStimulus",null),r.session.set("response",""),r.session.set("dataCorrect",""),r.session.set("keyResponse",""),r.session.set("gradeKeyResponse",[]),r.session.set("currentCorpus",[]),r.session.set("timeOut",!1),r.session.set("practiceCorpus",mp.practice),r.session.set("currentTrialCorrect",!0),r.session.set("coinTrackingIndex",0),r.session.set("initialized",!0)),r.session},yp=e=>({timeline:Gt,on_timeline_finish:async()=>{e.pid=e.pid||(()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<16;n++)e+=t.charAt(Math.floor(62*Math.random()));return e})(),await e.firekit.updateUser({assessmentPid:e.pid,labId:e.labId,...e.userMetadata})}});!function(e){var t=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var s=t&&t.prototype instanceof v?t:v,r=Object.create(s.prototype),o=new j(i||[]);return a(r,"_invoke",{value:T(e,n,o)}),r}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function v(){}function y(){}function b(){}var w={};l(w,r,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(O([])));_&&_!==n&&i.call(_,r)&&(w=_);var E=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(a,s,r,o){var c=p(e[a],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,r,o)}),(function(e){n("throw",e,r,o)})):t.resolve(u).then((function(e){l.value=e,r(l)}),(function(e){return n("throw",e,r,o)}))}o(c.arg)}var s;a(this,"_invoke",{value:function(e,i){function a(){return new t((function(t,a){n(e,i,t,a)}))}return s=s?s.then(a,a):a()}})}function T(e,t,n){var i=d;return function(a,s){if(i===f)throw new Error("Generator is already running");if(i===h){if("throw"===a)throw s;return L()}for(n.method=a,n.arg=s;;){var r=n.delegate;if(r){var o=I(r,n);if(o){if(o===g)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=p(e,t,n);if("normal"===c.type){if(i=n.done?h:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function I(e,n){var i=n.method,a=e.iterator[i];if(a===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=p(a,e.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,g;var r=s.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function O(e){if(e){var n=e[r];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,s=function n(){for(;++a<e.length;)if(i.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:L}}function L(){return{value:t,done:!0}}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(k.prototype),l(k.prototype,o,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,i,a,s){void 0===s&&(s=Promise);var r=new k(u(t,n,i,a),s);return e.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},S(E),l(E,c,"Generator"),l(E,r,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=O,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(i,a){return o.type="throw",o.arg=e,n.next=i,a&&(n.method="next",n.arg=t),!!a}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],o=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var c=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(c&&l){if(this.prev<r.catchLoc)return a(r.catchLoc,!0);if(this.prev<r.finallyLoc)return a(r.finallyLoc)}else if(c){if(this.prev<r.catchLoc)return a(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return a(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var r=s?s.completion:{};return r.type=e,r.arg=t,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:O(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var bp={exports:{}};
|
|
17
|
+
!function(t){var n,i,a,s=mt,r=e.extname,o=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var t=o.exec(e),n=t&&s[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}t.charset=l,t.charsets={lookup:l},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var i=t.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=o.exec(e),i=n&&t.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=r("x."+e).toLowerCase().substr(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),n=t.extensions,i=t.types,a=["nginx","apache",void 0,"iana"],Object.keys(s).forEach((function(e){var t=s[e],r=t.extensions;if(r&&r.length){n[e]=r;for(var o=0;o<r.length;o++){var c=r[o];if(i[c]){var l=a.indexOf(s[i[c]].source),u=a.indexOf(t.source);if("application/octet-stream"!==i[c]&&(l>u||l===u&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))}(dt);var ft=i(dt),ht="undefined"!=typeof window?window:{screen:{},navigator:{}},gt=(ht.matchMedia||function(){return{matches:!1}}).bind(ht),vt={get passive(){return!0}},yt=function(){};ht.addEventListener&&ht.addEventListener("p",yt,vt),ht.removeEventListener&&ht.removeEventListener("p",yt,!1);var bt="ontouchstart"in ht,wt=bt||"TouchEvent"in ht&>("(any-pointer: coarse)").matches,xt=(ht.navigator.maxTouchPoints||0)>0||wt,_t=ht.navigator.userAgent||"",Et=gt("(pointer: coarse)").matches&&/iPad|Macintosh/.test(_t)&&Math.min(ht.screen.width||0,ht.screen.height||0)>=768,St=(gt("(pointer: coarse)").matches||!gt("(pointer: fine)").matches&&bt)&&!/Windows.*Firefox/.test(_t),kt=gt("(any-pointer: fine)").matches||gt("(any-hover: hover)").matches||Et||!bt,Tt=!xt||!kt&&St?xt?"touchOnly":"mouseOnly":"hybrid",It="mouseOnly"===Tt?"mouse":"touchOnly"===Tt||St?"touch":"mouse";function Rt(e){return e||(new URLSearchParams(window.location.search).get("lng")||"en")}function At(){return"touchOnly"===Tt||"hybrid"===Tt&&"touch"===It?"mobile":"desktop"}function jt(e,t,n,i,a,s,r){return r&&s&&"device"===a||s&&"device"===a?"".concat(e,"/").concat(n,"/").concat(i,"/").concat(t):r&&s&&"shared"===a||s&&"shared"===a?"".concat(e,"/").concat(n,"/shared/").concat(t):"device"===a?"".concat(e,"/").concat(i,"/").concat(t):"shared/device"===a?"".concat(e,"/shared/").concat(i,"/").concat(t):"languageSpecific"===a?"".concat(e,"/").concat(n,"/").concat(t):"default"===a?"".concat(e,"/").concat(t):"".concat(e,"/shared/").concat(t)}function Ot(e){var t=ft.lookup(e);if(!t)throw new Error("Unrecognized file extension in path: ".concat(e));if(t.startsWith("image/"))return"images";if(t.startsWith("audio/"))return"audio";if(t.startsWith("video/"))return"video";throw new Error("Unsupported MIME type for file: ".concat(e,". Only image, audio, and video files are supported."))}var Lt=function(e,t,n,i){var a=315576e5,s=new Date,r=function(e){var t=Number(e);return Object.is(t,NaN)||0===t?null:t},o=r(e),c=r(t),l=r(n),u=r(i),p={age:l,ageMonths:u};if(o&&c){p.birthMonth=o,p.birthYear=c;var d=new Date(c,o-1,s.getDate()),m=(s-d)/a;p.age=Math.floor(m),p.ageMonths=u||Math.floor(12*m)}else if(c){p.birthYear=c,p.birthMonth=s.getMonth()+1;var f=new Date(c,p.birthMonth-1,s.getDate()),h=(s-f)/a;p.age=Math.floor(h),p.ageMonths=u||Math.floor(12*h)}else if(u){var g=new Date;g.setMonth(g.getMonth()-u),p.birthYear=g.getFullYear(),p.birthMonth=g.getMonth()+1,p.age=Math.floor((s-g)/a)}else l?(p.birthYear=s.getFullYear()-l,p.birthMonth=s.getMonth()+1,p.ageMonths=12*l):(p.birthMonth=null,p.birthYear=null);return p};const Ct={name:"preload",parameters:{auto_preload:{type:d.BOOL,pretty_name:"Auto-preload",default:!1},trials:{type:d.TIMELINE,pretty_name:"Trials",default:[]},images:{type:d.STRING,pretty_name:"Images",default:[],array:!0},audio:{type:d.STRING,pretty_name:"Audio",default:[],array:!0},video:{type:d.STRING,pretty_name:"Video",default:[],array:!0},message:{type:d.HTML_STRING,pretty_name:"Message",default:null},show_progress_bar:{type:d.BOOL,pretty_name:"Show progress bar",default:!0},continue_after_error:{type:d.BOOL,pretty_name:"Continue after error",default:!1},error_message:{type:d.HTML_STRING,pretty_name:"Error message",default:"The experiment failed to load."},show_detailed_errors:{type:d.BOOL,pretty_name:"Show detailed errors",default:!1},max_load_time:{type:d.INT,pretty_name:"Max load time",default:null},on_error:{type:d.FUNCTION,pretty_name:"On error",default:null},on_success:{type:d.FUNCTION,pretty_name:"On success",default:null}}};class Pt{constructor(e){this.jsPsych=e}trial(e,t){var n=null,i=!1,a=[],s=[],r=[],o=[],c=this.jsPsych.getSafeModeStatus(),l=[],u=[],p=[];if(t.auto_preload){var d=this.jsPsych.getTimeline(),m=this.jsPsych.pluginAPI.getAutoPreloadList(d);l=l.concat(m.images),u=u.concat(m.audio),p=p.concat(m.video)}if(t.trials.length>0){var f=this.jsPsych.pluginAPI.getAutoPreloadList(t.trials);l=l.concat(f.images),u=u.concat(f.audio),p=p.concat(f.video)}l=l.concat(t.images),u=u.concat(t.audio),p=p.concat(t.video),l=this.jsPsych.utils.unique(l.flat()),u=this.jsPsych.utils.unique(u.flat()),p=this.jsPsych.utils.unique(p.flat()),c&&(p=[]);var h="";null!==t.message&&(h+=t.message),t.show_progress_bar&&(h+="\n <div id='jspsych-loading-progress-bar-container' style='height: 10px; width: 300px; background-color: #ddd; margin: auto;'>\n <div id='jspsych-loading-progress-bar' style='height: 10px; width: 0%; background-color: #777;'></div>\n </div>"),e.innerHTML=h;const g=()=>{if(_++,t.show_progress_bar){var n=_/x*100,i=e.querySelector("#jspsych-loading-progress-bar");null!==i&&(i.style.width=n+"%")}},v=()=>{void 0!==i&&!1===i&&(this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),n=!0,w())},y=()=>{this.jsPsych.pluginAPI.cancelPreloads(),void 0===n||!1!==n&&null!==n||(i=!0,E<x&&(n=!1),T("timeout"),o.push("<p><strong>Loading timed out.</strong><br>Consider compressing your stimuli files, loading your files in smaller batches,<br>and/or increasing the <i>max_load_time</i> parameter.</p>"),t.continue_after_error?w():b())},b=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),e.innerHTML=t.error_message,t.show_detailed_errors&&(e.innerHTML+="<p><strong>Error details:</strong></p>",o.forEach((t=>{e.innerHTML+=t})))},w=()=>{this.jsPsych.pluginAPI.clearAllTimeouts();var t={success:n,timeout:i,failed_images:a,failed_audio:s,failed_video:r};e.innerHTML="",this.jsPsych.finishTrial(t)};null!==t.max_load_time&&this.jsPsych.pluginAPI.setTimeout(y,t.max_load_time);var x=l.length+u.length+p.length,_=0,E=0;if(0==x)v();else{const e=e=>{this.jsPsych.pluginAPI.preloadVideo(p,e,k,S)},t=e=>{this.jsPsych.pluginAPI.preloadAudio(u,e,k,S)},n=e=>{this.jsPsych.pluginAPI.preloadImages(l,e,k,S)};p.length>0&&e((()=>{})),u.length>0&&t((()=>{})),l.length>0&&n((()=>{}))}function S(e){g(),null==n&&(n=!1);var i="unknown file";e.source&&(i=e.source),e.error&&e.error.path&&e.error.path.length>0&&("img"==e.error.path[0].localName?a.push(i):"audio"==e.error.path[0].localName?s.push(i):"video"==e.error.path[0].localName&&r.push(i));var c="<p><strong>Error loading file: "+i+"</strong><br>";e.error.statusText&&(c+="File request response status: "+e.error.statusText+"<br>"),"404"==e.error&&(c+="404 - file not found.<br>"),void 0!==e.error.loaded&&null!==e.error.loaded&&0!==e.error.loaded?c+=e.error.loaded+" bytes transferred.":c+="File did not begin loading. Check that file path is correct and reachable by the browser,<br>and that loading is not blocked by cross-origin resource sharing (CORS) errors.",c+="</p>",o.push(c),T(i),_==x&&(t.continue_after_error?w():b())}function k(e){g(),function(e){null!==t.on_success&&t.on_success(e)}(e),++E==x?v():_==x&&(t.continue_after_error?w():b())}function T(e){null!==t.on_error&&t.on_error(e)}}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){return this.jsPsych.pluginAPI.mergeSimulationData({success:!0,timeout:!1,failed_images:[],failed_audio:[],failed_video:[]},t)}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.jsPsych.getDisplayElement();this.trial(i,e),n()}}function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,s,r,o=[],c=!0,l=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=s.call(n)).done)&&(o.push(i.value),o.length!==t);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ut(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Pt.info=Ct;var zt={default:{languageSpecific:{device:["bird-end.mp3","bird-halfway.mp3","bird-intro.mp3","cat-end.mp3","cat-halfway.mp3","cat-intro.mp3","deer-end.mp3","deer-halfway.mp3","deer-intro.mp3","dog-end.mp3","dog-halfway.mp3","dog-intro.mp3","end-ns.mp3","feedback-0-correct.mp3","feedback-0-incorrect.mp3","feedback-1-correct.mp3","feedback-1-incorrect.mp3","feedback-2-correct.mp3","feedback-2-incorrect.mp3","feedback-3-correct.mp3","feedback-3-incorrect.mp3","grade-select.mp3","halfway-ns.mp3","introduction-ns.mp3","introduction.mp3","post-practice-instruction.mp3","post-practice-reminder.mp3","practice-instruction.mp3","student-select.mp3"],shared:[]},shared:["neutral-sound-2.wav","neutral-sound-sub.mp3","neutral-sound.mp3","academy-background.png","bird-happy.gif","bird-talking.gif","bird.png","cat-happy.gif","cat-talking.gif","cat.png","classroom-background.png","deer-happy.gif","deer-talking.gif","deer.png","dog-happy.gif","dog-talking.gif","dog.png","false-flash-key.gif","false-key.png","grade-keyboard.png","grade-keys.png","practice-left.png","practice-right.png","roar-sre-keyboard.png","roar-sre-practice-keyboard.png","true-flash-key.gif","true-key.png","rightArrowBlankShort.png","leftArrowBlankShort.png","false-flash-key-split.gif","false-static-key-split.png","true-flash-key-split.gif","true-static-key-split.png"]}};const Mt="mobile"===At(),Vt="https://storage.googleapis.com/roar-sre",Nt=function(e,t,n){var i={images:{},video:{},audio:{}},a=Rt(n),s=At(),r=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.forEach((function(e){var c=Ot(e),l=pt.parse(e).name,u=l.replace(/^([A-Z])|[\s-_](\w)/g,(function(e,t,n,i){return n?n.toUpperCase():t.toLowerCase()})),p=jt(t,e,a,s,n,r,o);i[c][u]=p}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Array.isArray(e)?r(e,"default"):(e.languageSpecific&&(Array.isArray(e.languageSpecific)?r(e.languageSpecific,"languageSpecific"):c(e.languageSpecific,t)),e.device&&r(e.device,"device"),e.shared&&l(e.shared))},c=function(e,t){Object.entries(e).forEach((function(e){var n=Ft(e,2),i=n[0],a=n[1];r(a,i,!0,t)}))},l=function(e){Array.isArray(e)?r(e,"shared"):Object.entries(e).forEach((function(e){var t=Ft(e,2),n=t[0],i=t[1];r(i,"device"===n?"shared/device":"shared")}))};return e.preload&&Object.entries(e.preload).forEach((function(e){var t=Ft(e,2);t[0];var n=t[1];o(n)})),e.default&&o(e.default,!0),i}(zt,Vt),qt=function(e,t,n){var i={},a=Rt(n),s=At();function r(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e.forEach((function(e){var l=Ot(e),u=jt(t,e,a,s,r,o,c);i[n]||(i[n]={type:Pt,message:"The experiment is loading",show_progress_bar:!0,continue_after_error:!1,error_message:"",show_detailed_errors:!0,max_load_time:null,on_error:null,on_success:null,images:[],audio:[],video:[]}),i[n][l].push(u)}))}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Array.isArray(t)?r(t,e,"default"):(t.languageSpecific&&function(e,t,n){Array.isArray(t)?r(t,e,"languageSpecific"):function(e,t,n){Object.entries(t).forEach((function(t){var i=Ft(t,2),a=i[0];r(i[1],e,a,!0,n)}))}(e,t,n)}(e,t.languageSpecific,n),t.device&&r(t.device,e,"device"),t.shared&&function(e,t){Array.isArray(t)?r(t,e,"shared"):Object.entries(t).forEach((function(t){var n=Ft(t,2),i=n[0];r(n[1],e,"device"===i?"shared/device":"shared")}))}(e,t.shared))}return e.preload&&Object.entries(e.preload).forEach((function(e){var t=Ft(e,2);o(t[0],t[1])})),e.default&&o("default",e.default,!0),i}(zt,Vt).default,$t=e=>{const t=[...e];for(let e=t.length-1;e>0;e--){const n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t},Dt={timeline:[{type:D,questions:[{prompt:"Lab ID:",name:"labId",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.labId=e.response.labId,r.session.set("config",t)}}],conditional_function:()=>"otherLabs"===r.session.get("config").recruitment&&null===r.session.get("config").labId},Bt={timeline:[{type:D,questions:[{prompt:"Participant ID:",name:"pid",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{const t=r.session.get("config");t.pid=e.response.pid,r.session.set("config",t)}}],conditional_function:function(){return null===r.session.get("config").pid&&"demo"!==r.session.get("config").recruitment}},Kt={timeline:[{type:K,questions:[{prompt:' <div>\n <p class=" consent_form_title">STANFORD UNIVERSITY CONSENT FORM</p>\n <p class=" consent_form_text">\n <b>PURPOSE OF THE STUDY</b> \n <br>\n Data collected through games in the web-browser will help researchers understand relationships between academic skills, reading proficiency, cognition, perception, and/or attitudes towards reading and school in individuals with a broad range of reading skills.\n <br><br>\n <b>STUDY PROCEDURES</b> \n <br>\n In this study, you will be asked to complete computer tasks via a computer screen. Audio will be presented via headphones or speakers.\n <br><br>\n <b>PRIVACY AND DATA COLLECTION</b> <br>\n We will do our best to ensure your privacy. Data that is collected through this online experiment is stored separately from identifying information such as your name. For the sake of payment, sometimes we store an email address you provide, but this is stored separately from the responses that are recorded in the online experiment. Each participant is assigned a code and that is used rather than names. This is called “coded data” and we try to ensure that the identity of our research participants is kept confidential. Data collected as part of this study may be used for many years to help discover trends in the population and explore changes due to development and education. In addition, coded data may be shared online or with collaborators to allow for new and unforeseen discoveries. Researchers may choose to include coded data in publications to support findings, or they may choose to release coded data alongside findings for replicability.\n <br>\n <br>\n We will collect mouse and click, scores earned, button presses and their timestamps, or other data that may be derived from your behavior on our page. This data will be stored on servers. Incomplete data may be logged if you quit out of the experiment early. If you would like to void your data, you may request it through our contact email. \n <br>\n <br>\n <b>COMPENSATION</b>\n <br> \n Participation in this study is voluntary and you will not receive financial compensation.\n <br>\n <br>\n <b>RISKS, STRESS, OR DISCOMFORT</b>\n <br>\n If there is any reason to believe you are not safe to participate in any of the tasks, please contact us at <a href="url">readingresearch@stanford.edu</a>. Some people may experience some physical discomfort or boredom due to being asked to sit for long periods. For computer tasks, some people may also experience dry eyes or eye fatigue. For some tasks that are untimed, breaks can be taken as needed during the session.\n <br>\n <br>\n <b>CONTACT INFORMATION </b>\n <br>\n If you have any additional questions or concerns about our research, feel free to email us at <a href="url">readingresearch@stanford.edu</a>. We will be more than happy to help!\n <br>\n <br>\n For general information regarding questions or concerns about your rights as a research participant, please call 1-866-680-2906 to reach the Administrative Panel on Human Subjects in Medical Research, Stanford University.\n </p>\n </div>\n ',options:["<b>I agree to participate in this research. Participation in this research is voluntary, and I can stop at any time without penalty. <br> I feel that I understand what I am getting into, and I know I am free to leave the experiment at any time by simply closing the web browser.\n </b>"],required:!0,required_message:"You must check the box to continue",name:"Agree"}]}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent},Yt={timeline:[{type:W,preamble:"<div><h1>Please share a bit more to help us understand your data!</h1><p>This information is optional.</p></div>",html:'\n <div className="item">\n <span htmlFor="instructions" class = "survey_form_text">How old are you? (Please type a number)</span>\n <input type = "text" id = "age" name="age" style = "font-size: 2vh" value=""/>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">What is your current grade or highest level of education?</span>\n <select id = "edu" name = "edu" style = "font-size: 2vh">\n <option value=""></option>\n <option value="prek">preK</option>\n <option value="k1">K1</option>\n <option value="k2">K2</option>\n <option value="1">Grade 1</option>\n <option value="2">Grade 2</option>\n <option value="3">Grade 3</option>\n <option value="4">Grade 4</option>\n <option value="5">Grade 5</option>\n <option value="6">Grade 6</option>\n <option value="7">Grade 7</option>\n <option value="8">Grade 8</option>\n <option value="9">Grade 9</option>\n <option value="10">Grade 10</option>\n <option value="11">Grade 11</option>\n <option value="12">Grade 12</option>\n <option value="college">College</option>\n <option value="proSchool">Professional School</option>\n <option value="gradSchool">Graduate School</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Is English your first language?</span>\n <select id = "ell" name = "ell" style = "font-size: 2vh">\n <option value=""></option>\n <option value="1">No</option>\n <option value="0">Yes</option>\n </select>\n </div>\n <br>\n <div className="item">\n <span class = "survey_form_text">Have you taken this game before?</span>\n <select id = "retake" name = "retake" style = "font-size: 2vh">\n <option value=""></option>\n <option value="0">No</option>\n <option value="1">Yes</option>\n </select>\n </div>\n <br>',autocomplete:!0,on_finish:e=>{const t={};for(const n in e.response)""===e.response[n]?t[n]=null:t[n]="retake"===n||"ell"===n?parseInt(e.response[n],10):e.response[n];t.grade=r.session.get("config").userMetadata.grade;const n=r.session.get("config"),i=Lt(null,null,t.age);n.userMetadata={...n.userMetadata,...t,...i},r.session.set("config",n)}}],conditional_function:()=>"demo"===r.session.get("config").recruitment||r.session.get("config").consent||null===r.session.get("config").userMetadata.birthMonth},Wt={type:G,stimulus:()=>Nt.audio.gradeSelect,prompt:()=>Mt?`\n <div class="mobile-grade-select">\n <h3>${Fe.t("introduction.gradeSelect.text1")}</h3>\n <p>${Fe.t("introduction.gradeSelect.text2Mobile")}</p>\n <p>${Fe.t("introduction.gradeSelect.text3")}</p>\n <div class="button">${Fe.t("introduction.gradeSelect.text4Mobile")}</div>\n </div>\n `:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${Fe.t("introduction.gradeSelect.text1")}</h3>\n <p>${Fe.t("introduction.gradeSelect.text2")}</p>\n <p>${Fe.t("introduction.gradeSelect.text3")}</p>\n <img width="50%" src="${Nt.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${Fe.t("introduction.gradeSelect.text4")}</div>\n </div>`,keyboard_choices:Mt?"NO_KEYS":["1","2","3","4","5","6","7","8"],button_choices:Mt?["1st Grade","2nd Grade","3rd Grade","4th Grade","5th Grade","6th Grade","7th Grade","8th Grade or higher"]:[],button_html:'<button class="grade-btn">%choice%</button>',prompt_above_buttons:!0,on_load:()=>{document.body.style.background="rgb(250, 246, 236)"},on_finish:async e=>{document.body.style.background="white";const t=e.button_response??e.keyboard_response;Mt?r.session.set("tosrecCorpusId","tosrec"+t+1):r.session.set("tosrecCorpusId","tosrec"+t);const n=r.session.get("config");n.userMetadata={...n.userMetadata,grade:Number(Mt?t+1:t)},r.session.set("config",n)}},Ht=["K","PK","TK","PreKindergarten","TransitionalKindergarten","Kindergarten","InfantToddler","Preschool"].map((e=>e.toLowerCase()));const Gt=[ot,Dt,Bt,Kt,Yt,{timeline:[Wt],conditional_function:()=>{const e=r.session.get("config").userMetadata.grade;return!function(e){return!!(e>0&&e<=12||("string"==typeof e||e instanceof String)&&Ht.includes(e.toLowerCase()))}(e)||(r.session.set("tosrecCorpusId","tosrec"+e),!1)}}];var Jt=function(){this.__data__=[],this.size=0};var Qt=function(e,t){return e===t||e!=e&&t!=t},Zt=Qt;var Xt=function(e,t){for(var n=e.length;n--;)if(Zt(e[n][0],t))return n;return-1},en=Xt,tn=Array.prototype.splice;var nn=Xt;var an=Xt;var sn=Xt;var rn=Jt,on=function(e){var t=this.__data__,n=en(t,e);return!(n<0)&&(n==t.length-1?t.pop():tn.call(t,n,1),--this.size,!0)},cn=function(e){var t=this.__data__,n=nn(t,e);return n<0?void 0:t[n][1]},ln=function(e){return an(this.__data__,e)>-1},un=function(e,t){var n=this.__data__,i=sn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function pn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}pn.prototype.clear=rn,pn.prototype.delete=on,pn.prototype.get=cn,pn.prototype.has=ln,pn.prototype.set=un;var dn=pn,mn=dn;var fn=function(){this.__data__=new mn,this.size=0};var hn=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var gn=function(e){return this.__data__.get(e)};var vn=function(e){return this.__data__.has(e)},yn="object"==typeof n&&n&&n.Object===Object&&n,bn=yn,wn="object"==typeof self&&self&&self.Object===Object&&self,xn=bn||wn||Function("return this")(),_n=xn.Symbol,En=_n,Sn=Object.prototype,kn=Sn.hasOwnProperty,Tn=Sn.toString,In=En?En.toStringTag:void 0;var Rn=function(e){var t=kn.call(e,In),n=e[In];try{e[In]=void 0;var i=!0}catch(e){}var a=Tn.call(e);return i&&(t?e[In]=n:delete e[In]),a},An=Object.prototype.toString;var jn=Rn,On=function(e){return An.call(e)},Ln=_n?_n.toStringTag:void 0;var Cn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ln&&Ln in Object(e)?jn(e):On(e)};var Pn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Fn=Cn,Un=Pn;var zn,Mn=function(e){if(!Un(e))return!1;var t=Fn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Vn=xn["__core-js_shared__"],Nn=(zn=/[^.]+$/.exec(Vn&&Vn.keys&&Vn.keys.IE_PROTO||""))?"Symbol(src)_1."+zn:"";var qn=function(e){return!!Nn&&Nn in e},$n=Function.prototype.toString;var Dn=function(e){if(null!=e){try{return $n.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Bn=Mn,Kn=qn,Yn=Pn,Wn=Dn,Hn=/^\[object .+?Constructor\]$/,Gn=Function.prototype,Jn=Object.prototype,Qn=Gn.toString,Zn=Jn.hasOwnProperty,Xn=RegExp("^"+Qn.call(Zn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ei=function(e){return!(!Yn(e)||Kn(e))&&(Bn(e)?Xn:Hn).test(Wn(e))},ti=function(e,t){return null==e?void 0:e[t]};var ni=function(e,t){var n=ti(e,t);return ei(n)?n:void 0},ii=ni(xn,"Map"),ai=ni(Object,"create"),si=ai;var ri=function(){this.__data__=si?si(null):{},this.size=0};var oi=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ci=ai,li=Object.prototype.hasOwnProperty;var ui=function(e){var t=this.__data__;if(ci){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return li.call(t,e)?t[e]:void 0},pi=ai,di=Object.prototype.hasOwnProperty;var mi=ai;var fi=ri,hi=oi,gi=ui,vi=function(e){var t=this.__data__;return pi?void 0!==t[e]:di.call(t,e)},yi=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mi&&void 0===t?"__lodash_hash_undefined__":t,this};function bi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}bi.prototype.clear=fi,bi.prototype.delete=hi,bi.prototype.get=gi,bi.prototype.has=vi,bi.prototype.set=yi;var wi=bi,xi=dn,_i=ii;var Ei=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Si=function(e,t){var n=e.__data__;return Ei(t)?n["string"==typeof t?"string":"hash"]:n.map},ki=Si;var Ti=Si;var Ii=Si;var Ri=Si;var Ai=function(){this.size=0,this.__data__={hash:new wi,map:new(_i||xi),string:new wi}},ji=function(e){var t=ki(this,e).delete(e);return this.size-=t?1:0,t},Oi=function(e){return Ti(this,e).get(e)},Li=function(e){return Ii(this,e).has(e)},Ci=function(e,t){var n=Ri(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Pi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Pi.prototype.clear=Ai,Pi.prototype.delete=ji,Pi.prototype.get=Oi,Pi.prototype.has=Li,Pi.prototype.set=Ci;var Fi=Pi,Ui=dn,zi=ii,Mi=Fi;var Vi=dn,Ni=fn,qi=hn,$i=gn,Di=vn,Bi=function(e,t){var n=this.__data__;if(n instanceof Ui){var i=n.__data__;if(!zi||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mi(i)}return n.set(e,t),this.size=n.size,this};function Ki(e){var t=this.__data__=new Vi(e);this.size=t.size}Ki.prototype.clear=Ni,Ki.prototype.delete=qi,Ki.prototype.get=$i,Ki.prototype.has=Di,Ki.prototype.set=Bi;var Yi=Ki;var Wi=Fi,Hi=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Gi=function(e){return this.__data__.has(e)};function Ji(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wi;++t<n;)this.add(e[t])}Ji.prototype.add=Ji.prototype.push=Hi,Ji.prototype.has=Gi;var Qi=Ji,Zi=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},Xi=function(e,t){return e.has(t)};var ea=function(e,t,n,i,a,s){var r=1&n,o=e.length,c=t.length;if(o!=c&&!(r&&c>o))return!1;var l=s.get(e),u=s.get(t);if(l&&u)return l==t&&u==e;var p=-1,d=!0,m=2&n?new Qi:void 0;for(s.set(e,t),s.set(t,e);++p<o;){var f=e[p],h=t[p];if(i)var g=r?i(h,f,p,t,e,s):i(f,h,p,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(m){if(!Zi(t,(function(e,t){if(!Xi(m,t)&&(f===e||a(f,e,n,i,s)))return m.push(t)}))){d=!1;break}}else if(f!==h&&!a(f,h,n,i,s)){d=!1;break}}return s.delete(e),s.delete(t),d},ta=xn.Uint8Array;var na=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n};var ia=ta,aa=Qt,sa=ea,ra=na,oa=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},ca=_n?_n.prototype:void 0,la=ca?ca.valueOf:void 0;var ua=function(e,t,n,i,a,s,r){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new ia(e),new ia(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return aa(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=ra;case"[object Set]":var c=1&i;if(o||(o=oa),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var u=sa(o(e),o(t),i,a,s,r);return r.delete(e),u;case"[object Symbol]":if(la)return la.call(e)==la.call(t)}return!1};var pa=function(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e},da=Array.isArray,ma=pa,fa=da;var ha=function(e,t,n){var i=t(e);return fa(e)?i:ma(i,n(e))};var ga=function(){return[]},va=function(e,t){for(var n=-1,i=null==e?0:e.length,a=0,s=[];++n<i;){var r=e[n];t(r,n,e)&&(s[a++]=r)}return s},ya=ga,ba=Object.prototype.propertyIsEnumerable,wa=Object.getOwnPropertySymbols,xa=wa?function(e){return null==e?[]:(e=Object(e),va(wa(e),(function(t){return ba.call(e,t)})))}:ya;var _a=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i};var Ea=function(e){return null!=e&&"object"==typeof e},Sa=Cn,ka=Ea;var Ta=function(e){return ka(e)&&"[object Arguments]"==Sa(e)},Ia=Ea,Ra=Object.prototype,Aa=Ra.hasOwnProperty,ja=Ra.propertyIsEnumerable,Oa=Ta(function(){return arguments}())?Ta:function(e){return Ia(e)&&Aa.call(e,"callee")&&!ja.call(e,"callee")},La={exports:{}};var Ca=function(){return!1};!function(e,t){var n=xn,i=Ca,a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,r=s&&s.exports===a?n.Buffer:void 0,o=(r?r.isBuffer:void 0)||i;e.exports=o}(La,La.exports);var Pa=La.exports,Fa=/^(?:0|[1-9]\d*)$/;var Ua=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Fa.test(e))&&e>-1&&e%1==0&&e<t};var za=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ma=Cn,Va=za,Na=Ea,qa={};qa["[object Float32Array]"]=qa["[object Float64Array]"]=qa["[object Int8Array]"]=qa["[object Int16Array]"]=qa["[object Int32Array]"]=qa["[object Uint8Array]"]=qa["[object Uint8ClampedArray]"]=qa["[object Uint16Array]"]=qa["[object Uint32Array]"]=!0,qa["[object Arguments]"]=qa["[object Array]"]=qa["[object ArrayBuffer]"]=qa["[object Boolean]"]=qa["[object DataView]"]=qa["[object Date]"]=qa["[object Error]"]=qa["[object Function]"]=qa["[object Map]"]=qa["[object Number]"]=qa["[object Object]"]=qa["[object RegExp]"]=qa["[object Set]"]=qa["[object String]"]=qa["[object WeakMap]"]=!1;var $a=function(e){return Na(e)&&Va(e.length)&&!!qa[Ma(e)]};var Da=function(e){return function(t){return e(t)}},Ba={exports:{}};!function(e,t){var n=yn,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i&&n.process,r=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=r}(Ba,Ba.exports);var Ka=Ba.exports,Ya=$a,Wa=Da,Ha=Ka&&Ka.isTypedArray,Ga=Ha?Wa(Ha):Ya,Ja=_a,Qa=Oa,Za=da,Xa=Pa,es=Ua,ts=Ga,ns=Object.prototype.hasOwnProperty;var is=function(e,t){var n=Za(e),i=!n&&Qa(e),a=!n&&!i&&Xa(e),s=!n&&!i&&!a&&ts(e),r=n||i||a||s,o=r?Ja(e.length,String):[],c=o.length;for(var l in e)!t&&!ns.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||es(l,c))||o.push(l);return o},as=Object.prototype;var ss=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||as)};var rs=function(e,t){return function(n){return e(t(n))}},os=rs(Object.keys,Object),cs=ss,ls=os,us=Object.prototype.hasOwnProperty;var ps=Mn,ds=za;var ms=function(e){return null!=e&&ds(e.length)&&!ps(e)},fs=is,hs=function(e){if(!cs(e))return ls(e);var t=[];for(var n in Object(e))us.call(e,n)&&"constructor"!=n&&t.push(n);return t},gs=ms;var vs=function(e){return gs(e)?fs(e):hs(e)},ys=ha,bs=xa,ws=vs;var xs=function(e){return ys(e,ws,bs)},_s=xs,Es=Object.prototype.hasOwnProperty;var Ss=function(e,t,n,i,a,s){var r=1&n,o=_s(e),c=o.length;if(c!=_s(t).length&&!r)return!1;for(var l=c;l--;){var u=o[l];if(!(r?u in t:Es.call(t,u)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var f=r;++l<c;){var h=e[u=o[l]],g=t[u];if(i)var v=r?i(g,h,u,t,e,s):i(h,g,u,e,t,s);if(!(void 0===v?h===g||a(h,g,n,i,s):v)){m=!1;break}f||(f="constructor"==u)}if(m&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(m=!1)}return s.delete(e),s.delete(t),m},ks=ni(xn,"DataView"),Ts=ii,Is=ni(xn,"Promise"),Rs=ni(xn,"Set"),As=ni(xn,"WeakMap"),js=Cn,Os=Dn,Ls="[object Map]",Cs="[object Promise]",Ps="[object Set]",Fs="[object WeakMap]",Us="[object DataView]",zs=Os(ks),Ms=Os(Ts),Vs=Os(Is),Ns=Os(Rs),qs=Os(As),$s=js;(ks&&$s(new ks(new ArrayBuffer(1)))!=Us||Ts&&$s(new Ts)!=Ls||Is&&$s(Is.resolve())!=Cs||Rs&&$s(new Rs)!=Ps||As&&$s(new As)!=Fs)&&($s=function(e){var t=js(e),n="[object Object]"==t?e.constructor:void 0,i=n?Os(n):"";if(i)switch(i){case zs:return Us;case Ms:return Ls;case Vs:return Cs;case Ns:return Ps;case qs:return Fs}return t});var Ds=$s,Bs=Yi,Ks=ea,Ys=ua,Ws=Ss,Hs=Ds,Gs=da,Js=Pa,Qs=Ga,Zs="[object Arguments]",Xs="[object Array]",er="[object Object]",tr=Object.prototype.hasOwnProperty;var nr=function(e,t,n,i,a,s){var r=Gs(e),o=Gs(t),c=r?Xs:Hs(e),l=o?Xs:Hs(t),u=(c=c==Zs?er:c)==er,p=(l=l==Zs?er:l)==er,d=c==l;if(d&&Js(e)){if(!Js(t))return!1;r=!0,u=!1}if(d&&!u)return s||(s=new Bs),r||Qs(e)?Ks(e,t,n,i,a,s):Ys(e,t,c,n,i,a,s);if(!(1&n)){var m=u&&tr.call(e,"__wrapped__"),f=p&&tr.call(t,"__wrapped__");if(m||f){var h=m?e.value():e,g=f?t.value():t;return s||(s=new Bs),a(h,g,n,i,s)}}return!!d&&(s||(s=new Bs),Ws(e,t,n,i,a,s))},ir=Ea;var ar=function e(t,n,i,a,s){return t===n||(null==t||null==n||!ir(t)&&!ir(n)?t!=t&&n!=n:nr(t,n,i,a,e,s))},sr=Yi,rr=ar;var or=Pn;var cr=function(e){return e==e&&!or(e)},lr=cr,ur=vs;var pr=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},dr=function(e,t,n,i){var a=n.length,s=a,r=!i;if(null==e)return!s;for(e=Object(e);a--;){var o=n[a];if(r&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<s;){var c=(o=n[a])[0],l=e[c],u=o[1];if(r&&o[2]){if(void 0===l&&!(c in e))return!1}else{var p=new sr;if(i)var d=i(l,u,c,e,t,p);if(!(void 0===d?rr(u,l,3,i,p):d))return!1}}return!0},mr=function(e){for(var t=ur(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,lr(a)]}return t},fr=pr;var hr=function(e){var t=mr(e);return 1==t.length&&t[0][2]?fr(t[0][0],t[0][1]):function(n){return n===e||dr(n,e,t)}},gr=Cn,vr=Ea;var yr=function(e){return"symbol"==typeof e||vr(e)&&"[object Symbol]"==gr(e)},br=da,wr=yr,xr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_r=/^\w*$/;var Er=function(e,t){if(br(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!wr(e))||(_r.test(e)||!xr.test(e)||null!=t&&e in Object(t))},Sr=Fi;function kr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],s=n.cache;if(s.has(a))return s.get(a);var r=e.apply(this,i);return n.cache=s.set(a,r)||s,r};return n.cache=new(kr.Cache||Sr),n}kr.Cache=Sr;var Tr=kr;var Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rr=/\\(\\)?/g,Ar=function(e){var t=Tr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ir,(function(e,n,i,a){t.push(i?a.replace(Rr,"$1"):n||e)})),t}));var jr=function(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a},Or=jr,Lr=da,Cr=yr,Pr=_n?_n.prototype:void 0,Fr=Pr?Pr.toString:void 0;var Ur=function e(t){if("string"==typeof t)return t;if(Lr(t))return Or(t,e)+"";if(Cr(t))return Fr?Fr.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},zr=Ur;var Mr=da,Vr=Er,Nr=Ar,qr=function(e){return null==e?"":zr(e)};var $r=function(e,t){return Mr(e)?e:Vr(e,t)?[e]:Nr(qr(e))},Dr=yr;var Br=function(e){if("string"==typeof e||Dr(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Kr=$r,Yr=Br;var Wr=function(e,t){for(var n=0,i=(t=Kr(t,e)).length;null!=e&&n<i;)e=e[Yr(t[n++])];return n&&n==i?e:void 0},Hr=Wr;var Gr=function(e,t,n){var i=null==e?void 0:Hr(e,t);return void 0===i?n:i};var Jr=$r,Qr=Oa,Zr=da,Xr=Ua,eo=za,to=Br;var no=function(e,t,n){for(var i=-1,a=(t=Jr(t,e)).length,s=!1;++i<a;){var r=to(t[i]);if(!(s=null!=e&&n(e,r)))break;e=e[r]}return s||++i!=a?s:!!(a=null==e?0:e.length)&&eo(a)&&Xr(r,a)&&(Zr(e)||Qr(e))},io=function(e,t){return null!=e&&t in Object(e)},ao=no;var so=function(e,t){return null!=e&&ao(e,t,io)},ro=ar,oo=Gr,co=so,lo=Er,uo=cr,po=pr,mo=Br;var fo=function(e,t){return lo(e)&&uo(t)?po(mo(e),t):function(n){var i=oo(n,e);return void 0===i&&i===t?co(n,e):ro(t,i,3)}};var ho=function(e){return e};var go=Wr;var vo=function(e){return function(t){return go(t,e)}},yo=function(e){return function(t){return null==t?void 0:t[e]}},bo=vo,wo=Er,xo=Br;var _o=function(e){return wo(e)?yo(xo(e)):bo(e)},Eo=hr,So=fo,ko=ho,To=da,Io=_o;var Ro=function(e){return"function"==typeof e?e:null==e?ko:"object"==typeof e?To(e)?So(e[0],e[1]):Eo(e):Io(e)};var Ao=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},jo=ni,Oo=function(){try{var e=jo(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Lo=Oo;var Co=function(e,t,n){"__proto__"==t&&Lo?Lo(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Po=Co,Fo=Qt,Uo=Object.prototype.hasOwnProperty;var zo=function(e,t,n){var i=e[t];Uo.call(e,t)&&Fo(i,n)&&(void 0!==n||t in e)||Po(e,t,n)},Mo=zo,Vo=$r,No=Ua,qo=Pn,$o=Br;var Do=function(e,t,n,i){if(!qo(e))return e;for(var a=-1,s=(t=Vo(t,e)).length,r=s-1,o=e;null!=o&&++a<s;){var c=$o(t[a]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=r){var u=o[c];void 0===(l=i?i(u,c,o):void 0)&&(l=qo(u)?u:No(t[a+1])?[]:{})}Mo(o,c,l),o=o[c]}return e},Bo=Wr,Ko=Do,Yo=$r;var Wo=function(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var r=t[i],o=Bo(e,r);n(o,r)&&Ko(s,Yo(r,e),o)}return s},Ho=rs(Object.getPrototypeOf,Object),Go=pa,Jo=Ho,Qo=xa,Zo=ga,Xo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Go(t,Qo(e)),e=Jo(e);return t}:Zo;var ec=Pn,tc=ss,nc=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ic=Object.prototype.hasOwnProperty;var ac=is,sc=function(e){if(!ec(e))return nc(e);var t=tc(e),n=[];for(var i in e)("constructor"!=i||!t&&ic.call(e,i))&&n.push(i);return n},rc=ms;var oc=function(e){return rc(e)?ac(e,!0):sc(e)},cc=ha,lc=Xo,uc=oc;var pc=function(e){return cc(e,uc,lc)},dc=jr,mc=Ro,fc=Wo,hc=pc;var gc=function(e,t){if(null==e)return{};var n=dc(hc(e),(function(e){return[e]}));return t=mc(t),fc(e,n,(function(e,n){return t(e,n[0])}))},vc=Ro,yc=Ao,bc=gc;var wc=i((function(e,t){return bc(e,yc(vc(t)))}));var xc=i((function(e){return null===e})),_c=/\s/;var Ec=function(e){for(var t=e.length;t--&&_c.test(e.charAt(t)););return t},Sc=/^\s+/;var kc=function(e){return e?e.slice(0,Ec(e)+1).replace(Sc,""):e},Tc=Pn,Ic=yr,Rc=/^[-+]0x[0-9a-f]+$/i,Ac=/^0b[01]+$/i,jc=/^0o[0-7]+$/i,Oc=parseInt;var Lc=i((function(e){if("number"==typeof e)return e;if(Ic(e))return NaN;if(Tc(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Tc(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=kc(e);var n=Ac.test(e);return n||jc.test(e)?Oc(e.slice(2),n?2:8):Rc.test(e)?NaN:+e}));var Cc=i((function(e){return void 0===e}));const Pc=function(e){const t=new q(e);return Object.defineProperties(t,Object.fromEntries(Object.entries({init:"`jsPsych.init()` was replaced by `initJsPsych()` in jsPsych v7.",ALL_KEYS:'jsPsych.ALL_KEYS was replaced by the "ALL_KEYS" string in jsPsych v7.',NO_KEYS:'jsPsych.NO_KEYS was replaced by the "NO_KEYS" string in jsPsych v7.',currentTimelineNodeID:"`currentTimelineNodeID()` was renamed to `getCurrentTimelineNodeID()` in jsPsych v7.",progress:"`progress()` was renamed to `getProgress()` in jsPsych v7.",startTime:"`startTime()` was renamed to `getStartTime()` in jsPsych v7.",totalTime:"`totalTime()` was renamed to `getTotalTime()` in jsPsych v7.",currentTrial:"`currentTrial()` was renamed to `getCurrentTrial()` in jsPsych v7.",initSettings:"`initSettings()` was renamed to `getInitSettings()` in jsPsych v7.",allTimelineVariables:"`allTimelineVariables()` was renamed to `getAllTimelineVariables()` in jsPsych v7."}).map((([e,t])=>[e,{get(){throw new l(t)}}])))),t}({show_progress_bar:!1,auto_update_progress_bar:!1,message_progress_bar:`${Fe.t("progressBar")}`,on_finish:()=>{document.body.style.cursor="auto"}});var Fc=i((function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i}));var Uc=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},zc=zo,Mc=Co;var Vc=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,r=t.length;++s<r;){var o=t[s],c=i?i(n[o],e[o],o,n,e):void 0;void 0===c&&(c=e[o]),a?Mc(n,o,c):zc(n,o,c)}return n},Nc=Vc,qc=vs;var $c=function(e,t){return e&&Nc(t,qc(t),e)},Dc=Vc,Bc=oc;var Kc=function(e,t){return e&&Dc(t,Bc(t),e)},Yc={exports:{}};!function(e,t){var n=xn,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,r=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(Yc,Yc.exports);var Wc=Yc.exports;var Hc=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Gc=Vc,Jc=xa;var Qc=function(e,t){return Gc(e,Jc(e),t)},Zc=Vc,Xc=Xo;var el=function(e,t){return Zc(e,Xc(e),t)},tl=Object.prototype.hasOwnProperty;var nl=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tl.call(e,"index")&&(n.index=e.index,n.input=e.input),n},il=ta;var al=function(e){var t=new e.constructor(e.byteLength);return new il(t).set(new il(e)),t},sl=al;var rl=function(e,t){var n=t?sl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},ol=/\w*$/;var cl=function(e){var t=new e.constructor(e.source,ol.exec(e));return t.lastIndex=e.lastIndex,t},ll=_n?_n.prototype:void 0,ul=ll?ll.valueOf:void 0;var pl=al;var dl=al,ml=rl,fl=cl,hl=function(e){return ul?Object(ul.call(e)):{}},gl=function(e,t){var n=t?pl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var vl=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return dl(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return ml(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return gl(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return fl(e);case"[object Symbol]":return hl(e)}},yl=Pn,bl=Object.create,wl=function(){function e(){}return function(t){if(!yl(t))return{};if(bl)return bl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),xl=Ho,_l=ss;var El=function(e){return"function"!=typeof e.constructor||_l(e)?{}:wl(xl(e))},Sl=Ds,kl=Ea;var Tl=function(e){return kl(e)&&"[object Map]"==Sl(e)},Il=Da,Rl=Ka&&Ka.isMap,Al=Rl?Il(Rl):Tl,jl=Ds,Ol=Ea;var Ll=function(e){return Ol(e)&&"[object Set]"==jl(e)},Cl=Da,Pl=Ka&&Ka.isSet,Fl=Pl?Cl(Pl):Ll,Ul=Yi,zl=Uc,Ml=zo,Vl=$c,Nl=Kc,ql=Wc,$l=Hc,Dl=Qc,Bl=el,Kl=xs,Yl=pc,Wl=Ds,Hl=nl,Gl=vl,Jl=El,Ql=da,Zl=Pa,Xl=Al,eu=Pn,tu=Fl,nu=vs,iu=oc,au="[object Arguments]",su="[object Function]",ru="[object Object]",ou={};ou[au]=ou["[object Array]"]=ou["[object ArrayBuffer]"]=ou["[object DataView]"]=ou["[object Boolean]"]=ou["[object Date]"]=ou["[object Float32Array]"]=ou["[object Float64Array]"]=ou["[object Int8Array]"]=ou["[object Int16Array]"]=ou["[object Int32Array]"]=ou["[object Map]"]=ou["[object Number]"]=ou[ru]=ou["[object RegExp]"]=ou["[object Set]"]=ou["[object String]"]=ou["[object Symbol]"]=ou["[object Uint8Array]"]=ou["[object Uint8ClampedArray]"]=ou["[object Uint16Array]"]=ou["[object Uint32Array]"]=!0,ou["[object Error]"]=ou[su]=ou["[object WeakMap]"]=!1;var cu=function e(t,n,i,a,s,r){var o,c=1&n,l=2&n,u=4&n;if(i&&(o=s?i(t,a,s,r):i(t)),void 0!==o)return o;if(!eu(t))return t;var p=Ql(t);if(p){if(o=Hl(t),!c)return $l(t,o)}else{var d=Wl(t),m=d==su||"[object GeneratorFunction]"==d;if(Zl(t))return ql(t,c);if(d==ru||d==au||m&&!s){if(o=l||m?{}:Jl(t),!c)return l?Bl(t,Nl(o,t)):Dl(t,Vl(o,t))}else{if(!ou[d])return s?t:{};o=Gl(t,d,c)}}r||(r=new Ul);var f=r.get(t);if(f)return f;r.set(t,o),tu(t)?t.forEach((function(a){o.add(e(a,n,i,a,t,r))})):Xl(t)&&t.forEach((function(a,s){o.set(s,e(a,n,i,s,t,r))}));var h=p?void 0:(u?l?Yl:Kl:l?iu:nu)(t);return zl(h||t,(function(a,s){h&&(a=t[s=a]),Ml(o,s,e(a,n,i,s,t,r))})),o};var lu=Wr,uu=function(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(a);++i<a;)s[i]=e[i+t];return s};var pu=function(e,t){return t.length<2?e:lu(e,uu(t,0,-1))},du=$r,mu=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},fu=pu,hu=Br;var gu=function(e,t){return t=du(t,e),null==(e=fu(e,t))||delete e[hu(mu(t))]},vu=Cn,yu=Ho,bu=Ea,wu=Function.prototype,xu=Object.prototype,_u=wu.toString,Eu=xu.hasOwnProperty,Su=_u.call(Object);var ku=function(e){if(!bu(e)||"[object Object]"!=vu(e))return!1;var t=yu(e);if(null===t)return!0;var n=Eu.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&_u.call(n)==Su};var Tu=function(e){return ku(e)?void 0:e},Iu=Oa,Ru=da,Au=_n?_n.isConcatSpreadable:void 0;var ju=pa,Ou=function(e){return Ru(e)||Iu(e)||!!(Au&&e&&e[Au])};var Lu=function e(t,n,i,a,s){var r=-1,o=t.length;for(i||(i=Ou),s||(s=[]);++r<o;){var c=t[r];n>0&&i(c)?n>1?e(c,n-1,i,a,s):ju(s,c):a||(s[s.length]=c)}return s},Cu=Lu;var Pu=function(e){return(null==e?0:e.length)?Cu(e,1):[]};var Fu=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Uu=Math.max;var zu=function(e,t,n){return t=Uu(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=Uu(i.length-t,0),r=Array(s);++a<s;)r[a]=i[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=i[a];return o[t]=n(r),Fu(e,this,o)}};var Mu=function(e){return function(){return e}},Vu=Oo,Nu=Vu?function(e,t){return Vu(e,"toString",{configurable:!0,enumerable:!1,value:Mu(t),writable:!0})}:ho,qu=Date.now;var $u=function(e){var t=0,n=0;return function(){var i=qu(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Nu),Du=Pu,Bu=zu,Ku=$u;var Yu=jr,Wu=cu,Hu=gu,Gu=$r,Ju=Vc,Qu=Tu,Zu=pc,Xu=function(e){return Ku(Bu(e,void 0,Du),e+"")}((function(e,t){var n={};if(null==e)return n;var i=!1;t=Yu(t,(function(t){return t=Gu(t,e),i||(i=t.length>1),t})),Ju(e,Zu(e),n),i&&(n=Wu(n,7,Qu));for(var a=t.length;a--;)Hu(n,t[a]);return n})),ep=i(Xu),tp=jr;var np=function(e,t){return tp(t,(function(t){return[t,e[t]]}))},ip=Ds,ap=na,sp=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n};var rp=i(function(e){return function(t){var n=ip(t);return"[object Map]"==n?ap(t):"[object Set]"==n?sp(t):np(t,e(t))}}(vs)),op={exports:{}};op.exports=function e(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function i(){var t=n.URL||n.webkitURL||null,i=e.toString();return c.BLOB_URL||(c.BLOB_URL=t.createObjectURL(new Blob(["(",i,")();"],{type:"text/javascript"})))}var a=!n.document&&!!n.postMessage,s=a&&/blob:/i.test((n.location||{}).protocol),r={},o=0,c={};if(c.parse=u,c.unparse=p,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!a&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=w,c.ParserHandle=y,c.NetworkStreamer=m,c.FileStreamer=f,c.StringStreamer=h,c.ReadableStreamStreamer=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=v),n.jQuery){var l=n.jQuery;l.fn.parse=function(e){var t=e.config||{},i=[];return this.each((function(e){if("INPUT"!==l(this).prop("tagName").toUpperCase()||"file"!==l(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var a=0;a<this.files.length;a++)i.push({file:this.files[a],inputElem:this,instanceConfig:l.extend({},t)})})),a(),this;function a(){if(0!==i.length){var t=i[0];if(R(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void s("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void r();"object"==typeof n.config&&(t.instanceConfig=l.extend(t.instanceConfig,n.config))}else if("skip"===n)return void r()}var a=t.instanceConfig.complete;t.instanceConfig.complete=function(e){R(a)&&a(e,t.file,t.inputElem),r()},c.parse(t.file,t.instanceConfig)}else R(e.complete)&&e.complete()}function s(t,n,i,a){R(e.error)&&e.error({name:t},n,i,a)}function r(){i.splice(0,1),a()}}}function u(e,t){var i=(t=t||{}).dynamicTyping||!1;if(R(i)&&(t.dynamicTypingFunction=i,i={}),t.dynamicTyping=i,t.transform=!!R(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var a=x();return a.userStep=t.step,a.userChunk=t.chunk,a.userComplete=t.complete,a.userError=t.error,t.step=R(t.step),t.chunk=R(t.chunk),t.complete=R(t.complete),t.error=R(t.error),delete t.worker,void a.postMessage({input:e,config:t,workerId:a.id})}var s=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(s=new v(t)).getStream():("string"==typeof e?s=t.download?new m(t):new h(t):!0===e.readable&&R(e.read)&&R(e.on)?s=new g(t):(n.File&&e instanceof File||e instanceof Object)&&(s=new f(t)),s.stream(e))}function p(e,t){var n=!1,i=!0,a=",",s="\r\n",r='"',o=r+r,l=!1,u=null,p=!1;m();var d=new RegExp(b(r),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,l);if("object"==typeof e[0])return f(u||Object.keys(e[0]),e,l)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function m(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(a=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(r=t.quoteChar),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+r),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(p=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}function f(e,t,n){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(o&&i){for(var l=0;l<e.length;l++)l>0&&(r+=a),r+=h(e[l],l);t.length>0&&(r+=s)}for(var u=0;u<t.length;u++){var p=o?e.length:t[u].length,d=!1,m=o?0===Object.keys(t[u]).length:0===t[u].length;if(n&&!o&&(d="greedy"===n?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===n&&o){for(var f=[],g=0;g<p;g++){var v=c?e[g]:g;f.push(t[u][v])}d=""===f.join("").trim()}if(!d){for(var y=0;y<p;y++){y>0&&!m&&(r+=a);var b=o&&c?e[y]:y;r+=h(t[u][b],y)}u<t.length-1&&(!n||p>0&&!m)&&(r+=s)}}return r}function h(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;p&&"string"==typeof e&&p.test(e)&&(e="'"+e,i=!0);var s=e.toString().replace(d,o);return(i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||g(s,c.BAD_DELIMITERS)||s.indexOf(a)>-1||" "===s.charAt(0)||" "===s.charAt(s.length-1))?r+s+r:s}function g(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function d(e){function t(e){var t=T(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new y(t),this._handle.streamer=this,this._config=t}this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},t.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&R(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i)}this.isFirstChunk=!1,this._halted=!1;var a=this._partialLine+e;this._partialLine="";var r=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var o=r.meta.cursor;this._finished||(this._partialLine=a.substring(o-this._baseIndex),this._baseIndex=o),r&&r.data&&(this._rowCount+=r.data.length);var l=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(s)n.postMessage({results:r,workerId:c.WORKER_ID,finished:l});else if(R(this._config.chunk)&&!t){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);r=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!l||!R(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){R(this._config.error)?this._config.error(e):s&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function m(e){var t;function n(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),d.call(this,e),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),a||(t.onload=I(this._chunkLoaded,this),t.onerror=I(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}a&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function f(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),d.call(this,e);var i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=I(this._chunkLoaded,this),t.onerror=I(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var a=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,a)}var s=t.readAsText(e,this._config.encoding);i||this._chunkLoaded({target:{result:s}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function h(e){var t;e=e||{},d.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function g(e){e=e||{},d.call(this,e);var t=[],n=!0,i=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=I((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=I((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=I((function(){this._streamCleanUp(),i=!0,this._streamData("")}),this),this._streamCleanUp=I((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function v(e){var n=t.Duplex,i=T(e),a=!0,s=!1,r=[],o=null;this._onCsvData=function(e){var t=e.data;o.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){o.push(null)},i.step=I(this._onCsvData,this),i.complete=I(this._onCsvComplete,this),d.call(this,i),this._nextChunk=function(){s&&1===r.length&&(this._finished=!0),r.length?r.shift()():a=!0},this._addToParseQueue=function(e,t){r.push(I((function(){if(this.parseChunk("string"==typeof e?e:e.toString(i.encoding)),R(t))return t()}),this)),a&&(a=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){s=!0,this._addToParseQueue("")},this.getStream=function(){return o},(o=new n({readableObjectMode:!0,decodeStrings:!1,read:I(this._onRead,this),write:I(this._onWrite,this)})).once("finish",I(this._onWriteComplete,this))}function y(e){var t,n,i,a=Math.pow(2,53),s=-a,r=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,l=this,u=0,p=0,d=!1,m=!1,f=[],h={data:[],errors:[],meta:{}};if(R(e.step)){var g=e.step;e.step=function(t){if(h=t,_())x();else{if(x(),0===h.data.length)return;u+=t.data.length,e.preview&&u>e.preview?n.abort():(h.data=h.data[0],g(h,l))}}}function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function y(e){if(r.test(e)){var t=parseFloat(e);if(t>s&&t<a)return!0}return!1}function x(){return h&&i&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(h.data=h.data.filter((function(e){return!v(e)}))),_()&&E(),I()}function _(){return e.header&&0===f.length}function E(){if(h)if(Array.isArray(h.data[0])){for(var t=0;_()&&t<h.data.length;t++)h.data[t].forEach(n);h.data.splice(0,1)}else h.data.forEach(n);function n(t,n){R(e.transformHeader)&&(t=e.transformHeader(t,n)),f.push(t)}}function S(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function k(e,t){return S(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(y(t)?parseFloat(t):o.test(t)?new Date(t):""===t?null:t):t}function I(){if(!h||!e.header&&!e.dynamicTyping&&!e.transform)return h;function t(t,n){var i,a=e.header?{}:[];for(i=0;i<t.length;i++){var s=i,r=t[i];e.header&&(s=i>=f.length?"__parsed_extra":f[i]),e.transform&&(r=e.transform(r,s)),r=k(s,r),"__parsed_extra"===s?(a[s]=a[s]||[],a[s].push(r)):a[s]=r}return e.header&&(i>f.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+i,p+n):i<f.length&&O("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+i,p+n)),a}var n=1;return!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(t),n=h.data.length):h.data=t(h.data,0),e.header&&h.meta&&(h.meta.fields=f),p+=n,h}function A(t,n,i,a,s){var r,o,l,u;s=s||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var p=0;p<s.length;p++){var d=s[p],m=0,f=0,h=0;l=void 0;for(var g=new w({comments:a,delimiter:d,newline:n,preview:10}).parse(t),y=0;y<g.data.length;y++)if(i&&v(g.data[y]))h++;else{var b=g.data[y].length;f+=b,void 0!==l?b>0&&(m+=Math.abs(b-l),l=b):l=b}g.data.length>0&&(f/=g.data.length-h),(void 0===o||m<=o)&&(void 0===u||f>u)&&f>1.99&&(o=m,r=d,u=f)}return e.delimiter=r,{successful:!!r,bestDelimiter:r}}function j(e,t){e=e.substring(0,1048576);var n=new RegExp(b(t)+"([^]*?)"+b(t),"gm"),i=(e=e.replace(n,"")).split("\r"),a=e.split("\n"),s=a.length>1&&a[0].length<i[0].length;if(1===i.length||s)return"\n";for(var r=0,o=0;o<i.length;o++)"\n"===i[o][0]&&r++;return r>=i.length/2?"\r\n":"\r"}function O(e,t,n,i){var a={type:e,code:t,message:n};void 0!==i&&(a.row=i),h.errors.push(a)}this.parse=function(a,s,r){var o=e.quoteChar||'"';if(e.newline||(e.newline=j(a,o)),i=!1,e.delimiter)R(e.delimiter)&&(e.delimiter=e.delimiter(a),h.meta.delimiter=e.delimiter);else{var l=A(a,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);l.successful?e.delimiter=l.bestDelimiter:(i=!0,e.delimiter=c.DefaultDelimiter),h.meta.delimiter=e.delimiter}var u=T(e);return e.preview&&e.header&&u.preview++,t=a,n=new w(u),h=n.parse(t,s,r),x(),d?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),t=R(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(d=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,n.abort(),h.meta.aborted=!0,R(e.complete)&&e.complete(h),t=""}}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w(e){var t,n=(e=e||{}).delimiter,i=e.newline,a=e.comments,s=e.step,r=e.preview,o=e.fastMode,l=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(l=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),a===n)throw new Error("Comment character same as delimiter");!0===a?a="#":("string"!=typeof a||c.BAD_DELIMITERS.indexOf(a)>-1)&&(a=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var u=0,p=!1;this.parse=function(e,c,d){if("string"!=typeof e)throw new Error("Input must be a string");var m=e.length,f=n.length,h=i.length,g=a.length,v=R(s);u=0;var y=[],w=[],x=[],_=0;if(!e)return U();if(o||!1!==o&&-1===e.indexOf(t)){for(var E=e.split(i),S=0;S<E.length;S++){if(x=E[S],u+=x.length,S!==E.length-1)u+=i.length;else if(d)return U();if(!a||x.substring(0,g)!==a){if(v){if(y=[],L(x.split(n)),z(),p)return U()}else L(x.split(n));if(r&&S>=r)return y=y.slice(0,r),U(!0)}}return U()}for(var k=e.indexOf(n,u),T=e.indexOf(i,u),I=new RegExp(b(l)+b(t),"g"),A=e.indexOf(t,u);;)if(e[u]!==t)if(a&&0===x.length&&e.substring(u,u+g)===a){if(-1===T)return U();u=T+h,T=e.indexOf(i,u),k=e.indexOf(n,u)}else if(-1!==k&&(k<T||-1===T))x.push(e.substring(u,k)),u=k+f,k=e.indexOf(n,u);else{if(-1===T)break;if(x.push(e.substring(u,T)),F(T+h),v&&(z(),p))return U();if(r&&y.length>=r)return U(!0)}else for(A=u,u++;;){if(-1===(A=e.indexOf(t,A+1)))return d||w.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:y.length,index:u}),P();if(A===m-1)return P(e.substring(u,A).replace(I,t));if(t!==l||e[A+1]!==l){if(t===l||0===A||e[A-1]!==l){-1!==k&&k<A+1&&(k=e.indexOf(n,A+1)),-1!==T&&T<A+1&&(T=e.indexOf(i,A+1));var j=C(-1===T?k:Math.min(k,T));if(e.substr(A+1+j,f)===n){x.push(e.substring(u,A).replace(I,t)),u=A+1+j+f,e[A+1+j+f]!==t&&(A=e.indexOf(t,u)),k=e.indexOf(n,u),T=e.indexOf(i,u);break}var O=C(T);if(e.substring(A+1+O,A+1+O+h)===i){if(x.push(e.substring(u,A).replace(I,t)),F(A+1+O+h),k=e.indexOf(n,u),A=e.indexOf(t,u),v&&(z(),p))return U();if(r&&y.length>=r)return U(!0);break}w.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:y.length,index:u}),A++}}else A++}return P();function L(e){y.push(e),_=u}function C(t){var n=0;if(-1!==t){var i=e.substring(A+1,t);i&&""===i.trim()&&(n=i.length)}return n}function P(t){return d||(void 0===t&&(t=e.substring(u)),x.push(t),u=m,L(x),v&&z()),U()}function F(t){u=t,L(x),x=[],T=e.indexOf(i,u)}function U(e){return{data:y,errors:w,meta:{delimiter:n,linebreak:i,aborted:p,truncated:!!e,cursor:_+(c||0)}}}function z(){s(U()),y=[],w=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return u}}function x(){if(!c.WORKERS_SUPPORTED)return!1;var e=i(),t=new n.Worker(e);return t.onmessage=_,t.id=o++,r[t.id]=t,t}function _(e){var t=e.data,n=r[t.workerId],i=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){i=!0,E(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(R(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},a),!i);s++);delete t.results}else R(n.userChunk)&&(n.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!i&&E(t.workerId,t.results)}function E(e,t){var n=r[e];R(n.userComplete)&&n.userComplete(t),n.terminate(),delete r[e]}function S(){throw new Error("Not implemented.")}function k(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var i=c.parse(t.input,t.config);i&&n.postMessage({workerId:c.WORKER_ID,results:i,finished:!0})}}function T(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=T(e[n]);return t}function I(e,t){return function(){e.apply(t,arguments)}}function R(e){return"function"==typeof e}return s&&(n.onmessage=k),m.prototype=Object.create(d.prototype),m.prototype.constructor=m,f.prototype=Object.create(d.prototype),f.prototype.constructor=f,h.prototype=Object.create(h.prototype),h.prototype.constructor=h,g.prototype=Object.create(d.prototype),g.prototype.constructor=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(v.prototype=Object.create(d.prototype),v.prototype.constructor=v),c}();var cp=op.exports;class lp{constructor(){this.tableURL="https://storage.googleapis.com/roar-sre/scores/sre_lookup_v1.csv",this.lookupTable=[],this.tableLoaded=!1}async initTable(){return new Promise(((e,t)=>{const n=r.session.get("config").userMetadata?.grade;n||t();this.gradeForScore="string"==typeof n||n instanceof String||n<1?1:n>8?8:Number(n),cp.parse(this.tableURL,{download:!0,header:!0,dynamicTyping:!0,skipEmptyLines:!0,step:e=>{this.gradeForScore===Number(e.data.grade)&&this.lookupTable.push(ep(e.data,[""]))},complete:()=>{this.tableLoaded=!0,e()}})}))}computedScoreCallback=async e=>{const t=Fc(rp(e).map((([e,t])=>{const n="practice"===e?"practice":"test";return[e,{sreScore:(t[n]?.numCorrect||0)-(t[n]?.numIncorrect||0)}]}))),n=Math.max(t.lab?.sreScore||0,0);t.composite={sreScore:n};const i=r.session.get("config").userMetadata?.grade;if(i){this.tableLoaded||await this.initTable();const e=this.lookupTable.find((e=>e.sreScore===n));if(void 0!==e){const{grade:i,sreScore:a,...s}=e;t.composite={sreScore:n,...s}}}return t}}const up={practice:st[Fe.language].corpusPractice,lab:st[Fe.language].corpusLab,ai:st[Fe.language].corpusAI,tosrec:st[Fe.language].corpusTOSREC,aiV1P1:st[Fe.language].corpusAIV1P1,aiV1P2:st[Fe.language].corpusAIV1P2},pp=e=>e.reduce(((e,t)=>{const n={sentence:t.sentence,direction:t.direction,answer:t.answer,difficulty:t.difficulty,itemId:t.itemId};return e.push(n),e}),[]),dp=e=>e.reduce(((e,t)=>{const n={sentence:t.sentence,grade:t.grade,direction:t.direction,answer:t.answer,itemId:t.itemId};return e.push(n),e}),[]),mp={practice:(fp=up.practice,fp.reduce(((e,t)=>{const n={sentence:t.sentence,answer:t.answer,correct_response:t.correctresponse};return e.push(n),e}),[])),lab:pp(up.lab),ai:$t(pp(up.ai)).slice(0,130),aiV1P1:pp(up.aiV1P1),aiV1P2:pp(up.aiV1P2),tosrec1:dp(up.tosrec).filter((e=>1===e.grade)),tosrec2:dp(up.tosrec).filter((e=>2===e.grade)),tosrec3:dp(up.tosrec).filter((e=>3===e.grade)),tosrec4:dp(up.tosrec).filter((e=>4===e.grade)),tosrec5:dp(up.tosrec).filter((e=>5===e.grade)),tosrec6:dp(up.tosrec).filter((e=>6===e.grade)),tosrec7:dp(up.tosrec).filter((e=>7===e.grade)),tosrec8:dp(up.tosrec).filter((e=>8===e.grade))};var fp;function hp(e,t){let n;return n=["true","false"].includes(e?.toLocaleLowerCase())?e?.toLocaleLowerCase():!(Lc(t)>=6),n}function gp(e){return"3minParallelAIFormV1"===e?Math.random()<.5?$t(["lab","aiV1P1"]):$t(["lab","aiV1P2"]):["lab","ai"]}const vp=e=>{e.displayElement&&(Pc.opts.display_element=e.displayElement);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};Pc.opts.on_finish=t(Pc.opts.on_finish,(()=>{e.firekit.finishRun(),e.experimentFinished&&e.experimentFinished()}));const n=new lp;Pc.opts.on_data_update=t(Pc.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,n.computedScoreCallback.bind(n))})),window.addEventListener("error",(t=>{const{msg:n,url:i,lineNo:a,columnNo:s,error:r}=t;e.firekit?.writeTrial({assessment_stage:"error",lastTrial:Pc.data.getLastTrialData().trials[0],message:String(n),source:i||null,lineNo:String(a||null),colNo:String(s||null),error:JSON.stringify(r||null),timeStamp:(new Date).toISOString()})})),r.session.has("initialized")&&r.local("initialized")||(r.session.set("practiceIndex",0),r.session.set("currentBlockIndex",0),r.session.set("trialNumBlock",0),r.session.set("trialNumTotal",0),r.session.set("demoCounter",0),r.session.set("nextStimulus",null),r.session.set("response",""),r.session.set("dataCorrect",""),r.session.set("keyResponse",""),r.session.set("gradeKeyResponse",[]),r.session.set("currentCorpus",[]),r.session.set("timeOut",!1),r.session.set("practiceCorpus",mp.practice),r.session.set("currentTrialCorrect",!0),r.session.set("coinTrackingIndex",0),r.session.set("initialized",!0)),r.session},yp=e=>({timeline:Gt,on_timeline_finish:async()=>{e.pid=e.pid||(()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<16;n++)e+=t.charAt(Math.floor(62*Math.random()));return e})(),await e.firekit.updateUser({assessmentPid:e.pid,labId:e.labId,...e.userMetadata})}});!function(e){var t=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var s=t&&t.prototype instanceof v?t:v,r=Object.create(s.prototype),o=new j(i||[]);return a(r,"_invoke",{value:T(e,n,o)}),r}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",m="suspendedYield",f="executing",h="completed",g={};function v(){}function y(){}function b(){}var w={};l(w,r,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(O([])));_&&_!==n&&i.call(_,r)&&(w=_);var E=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(a,s,r,o){var c=p(e[a],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,r,o)}),(function(e){n("throw",e,r,o)})):t.resolve(u).then((function(e){l.value=e,r(l)}),(function(e){return n("throw",e,r,o)}))}o(c.arg)}var s;a(this,"_invoke",{value:function(e,i){function a(){return new t((function(t,a){n(e,i,t,a)}))}return s=s?s.then(a,a):a()}})}function T(e,t,n){var i=d;return function(a,s){if(i===f)throw new Error("Generator is already running");if(i===h){if("throw"===a)throw s;return L()}for(n.method=a,n.arg=s;;){var r=n.delegate;if(r){var o=I(r,n);if(o){if(o===g)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=p(e,t,n);if("normal"===c.type){if(i=n.done?h:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=h,n.method="throw",n.arg=c.arg)}}}function I(e,n){var i=n.method,a=e.iterator[i];if(a===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=p(a,e.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,g;var r=s.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function O(e){if(e){var n=e[r];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,s=function n(){for(;++a<e.length;)if(i.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:L}}function L(){return{value:t,done:!0}}return y.prototype=b,a(E,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},S(k.prototype),l(k.prototype,o,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,i,a,s){void 0===s&&(s=Promise);var r=new k(u(t,n,i,a),s);return e.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},S(E),l(E,c,"Generator"),l(E,r,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=O,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(i,a){return o.type="throw",o.arg=e,n.next=i,a&&(n.method="next",n.arg=t),!!a}for(var s=this.tryEntries.length-1;s>=0;--s){var r=this.tryEntries[s],o=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var c=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(c&&l){if(this.prev<r.catchLoc)return a(r.catchLoc,!0);if(this.prev<r.finallyLoc)return a(r.finallyLoc)}else if(c){if(this.prev<r.catchLoc)return a(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return a(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var s=a;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var r=s?s.completion:{};return r.type=e,r.arg=t,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:O(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var bp={exports:{}};
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Lodash <https://lodash.com/>
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bdelab/roar-sre",
|
|
3
3
|
"description": "The ROAR hackathon version of the timed sentence reading efficiency",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.6",
|
|
5
5
|
"author": "Jasmine Tran <jasetran@stanford.edu>",
|
|
6
|
-
"module": "lib/
|
|
6
|
+
"module": "lib/index.3eb1289b.js",
|
|
7
|
+
"main": "lib/index.3eb1289b.js",
|
|
7
8
|
"type": "module",
|
|
8
9
|
"files": [
|
|
9
10
|
"lib"
|
|
@@ -12,8 +13,9 @@
|
|
|
12
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
13
14
|
"build:dev": "npx webpack --mode production --env dbmode=development",
|
|
14
15
|
"build:prod": "npx webpack --mode production --env dbmode=production",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
16
|
+
"package": "npx rollup -c",
|
|
17
|
+
"postpackage": "node postBuildPackage.js",
|
|
18
|
+
"prepublishOnly": "npm run package",
|
|
17
19
|
"dev": "npx webpack serve --open --mode development --env dbmode=development",
|
|
18
20
|
"prod": "npx webpack serve --open --mode development --env dbmode=production"
|
|
19
21
|
},
|
|
@@ -79,4 +81,4 @@
|
|
|
79
81
|
"webpack-cli": "^5.0.1",
|
|
80
82
|
"webpack-merge": "^5.8.0"
|
|
81
83
|
}
|
|
82
|
-
}
|
|
84
|
+
}
|