@bdelab/roar-sre 1.0.2 → 1.0.3

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.
@@ -22,4 +22,4 @@ function(e){for(var t=[],n=0;n<e.elements.length;n++){var i=e.elements[n];if(i.n
22
22
  * Released under MIT license <https://lodash.com/license>
23
23
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
24
24
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
25
- */!function(e,n){(function(){var i,a="Expected a function",s="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,l=64,p=128,u=256,d=1/0,m=9007199254740991,f=NaN,h=4294967295,g=[["ary",p],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",l],["rearg",u]],v="[object Arguments]",y="[object Array]",b="[object Boolean]",x="[object Date]",w="[object Error]",_="[object Function]",E="[object GeneratorFunction]",S="[object Map]",T="[object Number]",k="[object Object]",I="[object Promise]",R="[object RegExp]",A="[object Set]",O="[object String]",j="[object Symbol]",C="[object WeakMap]",L="[object ArrayBuffer]",F="[object DataView]",U="[object Float32Array]",P="[object Float64Array]",z="[object Int8Array]",N="[object Int16Array]",q="[object Int32Array]",M="[object Uint8Array]",D="[object Uint8ClampedArray]",$="[object Uint16Array]",B="[object Uint32Array]",Y=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,G=RegExp(H.source),J=RegExp(W.source),Z=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),se=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",je="["+Ee+"]",Ce="["+Ae+"]",Le="["+Se+"]",Fe="\\d+",Ue="["+Te+"]",Pe="["+ke+"]",ze="[^"+Ee+Ae+Fe+Te+ke+Ie+"]",Ne="\\ud83c[\\udffb-\\udfff]",qe="[^"+Ee+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Ie+"]",Be="\\u200d",Ye="(?:"+Pe+"|"+ze+")",Ve="(?:"+$e+"|"+ze+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Le+"|"+Ne+")"+"?",Ge="["+Re+"]?",Je=Ge+We+("(?:"+Be+"(?:"+[qe,Me,De].join("|")+")"+Ge+We+")*"),Ze="(?:"+[Ue,Me,De].join("|")+")"+Je,Qe="(?:"+[qe+Le+"?",Le,Me,De,je].join("|")+")",Xe=RegExp(Oe,"g"),et=RegExp(Le,"g"),tt=RegExp(Ne+"(?="+Ne+")|"+Qe+Je,"g"),nt=RegExp([$e+"?"+Pe+"+"+Ke+"(?="+[Ce,$e,"$"].join("|")+")",Ve+"+"+He+"(?="+[Ce,$e+Ye,"$"].join("|")+")",$e+"?"+Ye+"+"+Ke,$e+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fe,Ze].join("|"),"g"),it=RegExp("["+Be+Ee+Se+Re+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[U]=ot[P]=ot[z]=ot[N]=ot[q]=ot[M]=ot[D]=ot[$]=ot[B]=!0,ot[v]=ot[y]=ot[L]=ot[b]=ot[F]=ot[x]=ot[w]=ot[_]=ot[S]=ot[T]=ot[k]=ot[R]=ot[A]=ot[O]=ot[C]=!1;var ct={};ct[v]=ct[y]=ct[L]=ct[F]=ct[b]=ct[x]=ct[U]=ct[P]=ct[z]=ct[N]=ct[q]=ct[S]=ct[T]=ct[k]=ct[R]=ct[A]=ct[O]=ct[j]=ct[M]=ct[D]=ct[$]=ct[B]=!0,ct[w]=ct[_]=ct[C]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pt=parseFloat,ut=parseInt,dt="object"==typeof t&&t&&t.Object===Object&&t,mt="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||mt||Function("return this")(),ht=n&&!n.nodeType&&n,gt=ht&&e&&!e.nodeType&&e,vt=gt&&gt.exports===ht,yt=vt&&dt.process,bt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),xt=bt&&bt.isArrayBuffer,wt=bt&&bt.isDate,_t=bt&&bt.isMap,Et=bt&&bt.isRegExp,St=bt&&bt.isSet,Tt=bt&&bt.isTypedArray;function kt(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)}function It(e,t,n,i){for(var a=-1,s=null==e?0:e.length;++a<s;){var r=e[a];t(i,r,n(r),e)}return i}function Rt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function jt(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}function Ct(e,t){return!!(null==e?0:e.length)&&$t(e,t,0)>-1}function Lt(e,t,n){for(var i=-1,a=null==e?0:e.length;++i<a;)if(n(t,e[i]))return!0;return!1}function Ft(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}function Ut(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}function Pt(e,t,n,i){var a=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++a]);++a<s;)n=t(n,e[a],a,e);return n}function zt(e,t,n,i){var a=null==e?0:e.length;for(i&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Nt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var qt=Kt("length");function Mt(e,t,n){var i;return n(e,(function(e,n,a){if(t(e,n,a))return i=n,!1})),i}function Dt(e,t,n,i){for(var a=e.length,s=n+(i?1:-1);i?s--:++s<a;)if(t(e[s],s,e))return s;return-1}function $t(e,t,n){return t==t?function(e,t,n){var i=n-1,a=e.length;for(;++i<a;)if(e[i]===t)return i;return-1}(e,t,n):Dt(e,Yt,n)}function Bt(e,t,n,i){for(var a=n-1,s=e.length;++a<s;)if(i(e[a],t))return a;return-1}function Yt(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Kt(e){return function(t){return null==t?i:t[e]}}function Ht(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,n,i,a){return a(e,(function(e,a,s){n=i?(i=!1,e):t(n,e,a,s)})),n}function Gt(e,t){for(var n,a=-1,s=e.length;++a<s;){var r=t(e[a]);r!==i&&(n=n===i?r:n+r)}return n}function Jt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Zt(e){return e?e.slice(0,hn(e)+1).replace(se,""):e}function Qt(e){return function(t){return e(t)}}function Xt(e,t){return Ft(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&$t(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&$t(t,e[n],0)>-1;);return n}var an=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),sn=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(e){return"\\"+lt[e]}function on(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function pn(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var o=e[n];o!==t&&o!==r||(e[n]=r,s[a++]=n)}return s}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function mn(e){return on(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):qt(e)}function fn(e){return on(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var gn=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n,re=(t=null==t?ft:vn.defaults(ft.Object(),t,vn.pick(ft,st))).Array,Ee=t.Date,Se=t.Error,Te=t.Function,ke=t.Math,Ie=t.Object,Re=t.RegExp,Ae=t.String,Oe=t.TypeError,je=re.prototype,Ce=Te.prototype,Le=Ie.prototype,Fe=t["__core-js_shared__"],Ue=Ce.toString,Pe=Le.hasOwnProperty,ze=0,Ne=(n=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",qe=Le.toString,Me=Ue.call(Ie),De=ft._,$e=Re("^"+Ue.call(Pe).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=vt?t.Buffer:i,Ye=t.Symbol,Ve=t.Uint8Array,Ke=Be?Be.allocUnsafe:i,He=ln(Ie.getPrototypeOf,Ie),We=Ie.create,Ge=Le.propertyIsEnumerable,Je=je.splice,Ze=Ye?Ye.isConcatSpreadable:i,Qe=Ye?Ye.iterator:i,tt=Ye?Ye.toStringTag:i,it=function(){try{var e=ds(Ie,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,dt=Ee&&Ee.now!==ft.Date.now&&Ee.now,mt=t.setTimeout!==ft.setTimeout&&t.setTimeout,ht=ke.ceil,gt=ke.floor,yt=Ie.getOwnPropertySymbols,bt=Be?Be.isBuffer:i,qt=t.isFinite,Ht=je.join,yn=ln(Ie.keys,Ie),bn=ke.max,xn=ke.min,wn=Ee.now,_n=t.parseInt,En=ke.random,Sn=je.reverse,Tn=ds(t,"DataView"),kn=ds(t,"Map"),In=ds(t,"Promise"),Rn=ds(t,"Set"),An=ds(t,"WeakMap"),On=ds(Ie,"create"),jn=An&&new An,Cn={},Ln=Ns(Tn),Fn=Ns(kn),Un=Ns(In),Pn=Ns(Rn),zn=Ns(An),Nn=Ye?Ye.prototype:i,qn=Nn?Nn.valueOf:i,Mn=Nn?Nn.toString:i;function Dn(e){if(to(e)&&!Yr(e)&&!(e instanceof Vn)){if(e instanceof Yn)return e;if(Pe.call(e,"__wrapped__"))return qs(e)}return new Yn(e)}var $n=function(){function e(){}return function(t){if(!eo(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Yn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Kn(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])}}function Hn(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])}}function Wn(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])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Zn(e,t){var n=Yr(e),i=!n&&Br(e),a=!n&&!i&&Wr(e),s=!n&&!i&&!a&&lo(e),r=n||i||a||s,o=r?Jt(e.length,Ae):[],c=o.length;for(var l in e)!t&&!Pe.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bs(l,c))||o.push(l);return o}function Qn(e){var t=e.length;return t?e[Gi(0,t-1)]:i}function Xn(e,t){return Us(Oa(e),ci(t,0,e.length))}function ei(e){return Us(Oa(e))}function ti(e,t,n){(n!==i&&!Mr(e[t],n)||n===i&&!(t in e))&&ri(e,t,n)}function ni(e,t,n){var a=e[t];Pe.call(e,t)&&Mr(a,n)&&(n!==i||t in e)||ri(e,t,n)}function ii(e,t){for(var n=e.length;n--;)if(Mr(e[n][0],t))return n;return-1}function ai(e,t,n,i){return mi(e,(function(e,a,s){t(i,e,n(e),s)})),i}function si(e,t){return e&&ja(t,Co(t),e)}function ri(e,t,n){"__proto__"==t&&it?it(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function oi(e,t){for(var n=-1,a=t.length,s=re(a),r=null==e;++n<a;)s[n]=r?i:Io(e,t[n]);return s}function ci(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function li(e,t,n,a,s,r){var o,c=1&t,l=2&t,p=4&t;if(n&&(o=s?n(e,a,s,r):n(e)),o!==i)return o;if(!eo(e))return e;var u=Yr(e);if(u){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Oa(e,o)}else{var d=hs(e),m=d==_||d==E;if(Wr(e))return Sa(e,c);if(d==k||d==v||m&&!s){if(o=l||m?{}:vs(e),!c)return l?function(e,t){return ja(e,fs(e),t)}(e,function(e,t){return e&&ja(t,Lo(t),e)}(o,e)):function(e,t){return ja(e,ms(e),t)}(e,si(o,e))}else{if(!ct[d])return s?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case L:return Ta(e);case b:case x:return new i(+e);case F:return function(e,t){var n=t?Ta(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case U:case P:case z:case N:case q:case M:case D:case $:case B:return ka(e,n);case S:return new i;case T:case O:return new i(e);case R:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new i;case j:return a=e,qn?Ie(qn.call(a)):{}}var a}(e,d,c)}}r||(r=new Jn);var f=r.get(e);if(f)return f;r.set(e,o),ro(e)?e.forEach((function(i){o.add(li(i,t,n,i,e,r))})):no(e)&&e.forEach((function(i,a){o.set(a,li(i,t,n,a,e,r))}));var h=u?i:(p?l?ss:as:l?Lo:Co)(e);return Rt(h||e,(function(i,a){h&&(i=e[a=i]),ni(o,a,li(i,t,n,a,e,r))})),o}function pi(e,t,n){var a=n.length;if(null==e)return!a;for(e=Ie(e);a--;){var s=n[a],r=t[s],o=e[s];if(o===i&&!(s in e)||!r(o))return!1}return!0}function ui(e,t,n){if("function"!=typeof e)throw new Oe(a);return js((function(){e.apply(i,n)}),t)}function di(e,t,n,i){var a=-1,s=Ct,r=!0,o=e.length,c=[],l=t.length;if(!o)return c;n&&(t=Ft(t,Qt(n))),i?(s=Lt,r=!1):t.length>=200&&(s=en,r=!1,t=new Gn(t));e:for(;++a<o;){var p=e[a],u=null==n?p:n(p);if(p=i||0!==p?p:0,r&&u==u){for(var d=l;d--;)if(t[d]===u)continue e;c.push(p)}else s(t,u,i)||c.push(p)}return c}Dn.templateSettings={escape:Z,evaluate:Q,interpolate:X,variable:"",imports:{_:Dn}},Dn.prototype=Bn.prototype,Dn.prototype.constructor=Dn,Yn.prototype=$n(Bn.prototype),Yn.prototype.constructor=Yn,Vn.prototype=$n(Bn.prototype),Vn.prototype.constructor=Vn,Kn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Kn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===s?i:n}return Pe.call(t,e)?t[e]:i},Kn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==i:Pe.call(t,e)},Kn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===i?s:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},Hn.prototype.get=function(e){var t=this.__data__,n=ii(t,e);return n<0?i:t[n][1]},Hn.prototype.has=function(e){return ii(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,i=ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(kn||Hn),string:new Kn}},Wn.prototype.delete=function(e){var t=ps(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return ps(this,e).get(e)},Wn.prototype.has=function(e){return ps(this,e).has(e)},Wn.prototype.set=function(e,t){var n=ps(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,s),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var i=n.__data__;if(!kn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(i)}return n.set(e,t),this.size=n.size,this};var mi=Fa(wi),fi=Fa(_i,!0);function hi(e,t){var n=!0;return mi(e,(function(e,i,a){return n=!!t(e,i,a)})),n}function gi(e,t,n){for(var a=-1,s=e.length;++a<s;){var r=e[a],o=t(r);if(null!=o&&(c===i?o==o&&!co(o):n(o,c)))var c=o,l=r}return l}function vi(e,t){var n=[];return mi(e,(function(e,i,a){t(e,i,a)&&n.push(e)})),n}function yi(e,t,n,i,a){var s=-1,r=e.length;for(n||(n=ys),a||(a=[]);++s<r;){var o=e[s];t>0&&n(o)?t>1?yi(o,t-1,n,i,a):Ut(a,o):i||(a[a.length]=o)}return a}var bi=Ua(),xi=Ua(!0);function wi(e,t){return e&&bi(e,t,Co)}function _i(e,t){return e&&xi(e,t,Co)}function Ei(e,t){return jt(t,(function(t){return Zr(e[t])}))}function Si(e,t){for(var n=0,a=(t=xa(t,e)).length;null!=e&&n<a;)e=e[zs(t[n++])];return n&&n==a?e:i}function Ti(e,t,n){var i=t(e);return Yr(e)?i:Ut(i,n(e))}function ki(e){return null==e?e===i?"[object Undefined]":"[object Null]":tt&&tt in Ie(e)?function(e){var t=Pe.call(e,tt),n=e[tt];try{e[tt]=i;var a=!0}catch(e){}var s=qe.call(e);a&&(t?e[tt]=n:delete e[tt]);return s}(e):function(e){return qe.call(e)}(e)}function Ii(e,t){return e>t}function Ri(e,t){return null!=e&&Pe.call(e,t)}function Ai(e,t){return null!=e&&t in Ie(e)}function Oi(e,t,n){for(var a=n?Lt:Ct,s=e[0].length,r=e.length,o=r,c=re(r),l=1/0,p=[];o--;){var u=e[o];o&&t&&(u=Ft(u,Qt(t))),l=xn(u.length,l),c[o]=!n&&(t||s>=120&&u.length>=120)?new Gn(o&&u):i}u=e[0];var d=-1,m=c[0];e:for(;++d<s&&p.length<l;){var f=u[d],h=t?t(f):f;if(f=n||0!==f?f:0,!(m?en(m,h):a(p,h,n))){for(o=r;--o;){var g=c[o];if(!(g?en(g,h):a(e[o],h,n)))continue e}m&&m.push(h),p.push(f)}}return p}function ji(e,t,n){var a=null==(e=Rs(e,t=xa(t,e)))?e:e[zs(Js(t))];return null==a?i:kt(a,e,n)}function Ci(e){return to(e)&&ki(e)==v}function Li(e,t,n,a,s){return e===t||(null==e||null==t||!to(e)&&!to(t)?e!=e&&t!=t:function(e,t,n,a,s,r){var o=Yr(e),c=Yr(t),l=o?y:hs(e),p=c?y:hs(t),u=(l=l==v?k:l)==k,d=(p=p==v?k:p)==k,m=l==p;if(m&&Wr(e)){if(!Wr(t))return!1;o=!0,u=!1}if(m&&!u)return r||(r=new Jn),o||lo(e)?ns(e,t,n,a,s,r):function(e,t,n,i,a,s,r){switch(n){case F:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!s(new Ve(e),new Ve(t)));case b:case x:case T:return Mr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case R:case O:return e==t+"";case S:var o=cn;case A:var c=1&i;if(o||(o=un),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var p=ns(o(e),o(t),i,a,s,r);return r.delete(e),p;case j:if(qn)return qn.call(e)==qn.call(t)}return!1}(e,t,l,n,a,s,r);if(!(1&n)){var f=u&&Pe.call(e,"__wrapped__"),h=d&&Pe.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,_=h?t.value():t;return r||(r=new Jn),s(g,_,n,a,r)}}if(!m)return!1;return r||(r=new Jn),function(e,t,n,a,s,r){var o=1&n,c=as(e),l=c.length,p=as(t),u=p.length;if(l!=u&&!o)return!1;var d=l;for(;d--;){var m=c[d];if(!(o?m in t:Pe.call(t,m)))return!1}var f=r.get(e),h=r.get(t);if(f&&h)return f==t&&h==e;var g=!0;r.set(e,t),r.set(t,e);var v=o;for(;++d<l;){var y=e[m=c[d]],b=t[m];if(a)var x=o?a(b,y,m,t,e,r):a(y,b,m,e,t,r);if(!(x===i?y===b||s(y,b,n,a,r):x)){g=!1;break}v||(v="constructor"==m)}if(g&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,n,a,s,r)}(e,t,n,a,Li,s))}function Fi(e,t,n,a){var s=n.length,r=s,o=!a;if(null==e)return!r;for(e=Ie(e);s--;){var c=n[s];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<r;){var l=(c=n[s])[0],p=e[l],u=c[1];if(o&&c[2]){if(p===i&&!(l in e))return!1}else{var d=new Jn;if(a)var m=a(p,u,l,e,t,d);if(!(m===i?Li(u,p,3,a,d):m))return!1}}return!0}function Ui(e){return!(!eo(e)||(t=e,Ne&&Ne in t))&&(Zr(e)?$e:ve).test(Ns(e));var t}function Pi(e){return"function"==typeof e?e:null==e?ac:"object"==typeof e?Yr(e)?$i(e[0],e[1]):Di(e):mc(e)}function zi(e){if(!Ss(e))return yn(e);var t=[];for(var n in Ie(e))Pe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ni(e){if(!eo(e))return function(e){var t=[];if(null!=e)for(var n in Ie(e))t.push(n);return t}(e);var t=Ss(e),n=[];for(var i in e)("constructor"!=i||!t&&Pe.call(e,i))&&n.push(i);return n}function qi(e,t){return e<t}function Mi(e,t){var n=-1,i=Kr(e)?re(e.length):[];return mi(e,(function(e,a,s){i[++n]=t(e,a,s)})),i}function Di(e){var t=us(e);return 1==t.length&&t[0][2]?ks(t[0][0],t[0][1]):function(n){return n===e||Fi(n,e,t)}}function $i(e,t){return ws(e)&&Ts(t)?ks(zs(e),t):function(n){var a=Io(n,e);return a===i&&a===t?Ro(n,e):Li(t,a,3)}}function Bi(e,t,n,a,s){e!==t&&bi(t,(function(r,o){if(s||(s=new Jn),eo(r))!function(e,t,n,a,s,r,o){var c=As(e,n),l=As(t,n),p=o.get(l);if(p)return void ti(e,n,p);var u=r?r(c,l,n+"",e,t,o):i,d=u===i;if(d){var m=Yr(l),f=!m&&Wr(l),h=!m&&!f&&lo(l);u=l,m||f||h?Yr(c)?u=c:Hr(c)?u=Oa(c):f?(d=!1,u=Sa(l,!0)):h?(d=!1,u=ka(l,!0)):u=[]:ao(l)||Br(l)?(u=c,Br(c)?u=yo(c):eo(c)&&!Zr(c)||(u=vs(l))):d=!1}d&&(o.set(l,u),s(u,l,a,r,o),o.delete(l));ti(e,n,u)}(e,t,o,n,Bi,a,s);else{var c=a?a(As(e,o),r,o+"",e,t,s):i;c===i&&(c=r),ti(e,o,c)}}),Lo)}function Yi(e,t){var n=e.length;if(n)return bs(t+=t<0?n:0,n)?e[t]:i}function Vi(e,t,n){t=t.length?Ft(t,(function(e){return Yr(e)?function(t){return Si(t,1===e.length?e[0]:e)}:e})):[ac];var i=-1;t=Ft(t,Qt(ls()));var a=Mi(e,(function(e,n,a){var s=Ft(t,(function(t){return t(e)}));return{criteria:s,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,(function(e,t){return function(e,t,n){var i=-1,a=e.criteria,s=t.criteria,r=a.length,o=n.length;for(;++i<r;){var c=Ia(a[i],s[i]);if(c)return i>=o?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ki(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var r=t[i],o=Si(e,r);n(o,r)&&ea(s,xa(r,e),o)}return s}function Hi(e,t,n,i){var a=i?Bt:$t,s=-1,r=t.length,o=e;for(e===t&&(t=Oa(t)),n&&(o=Ft(e,Qt(n)));++s<r;)for(var c=0,l=t[s],p=n?n(l):l;(c=a(o,p,c,i))>-1;)o!==e&&Je.call(o,c,1),Je.call(e,c,1);return e}function Wi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var a=t[n];if(n==i||a!==s){var s=a;bs(a)?Je.call(e,a,1):da(e,a)}}return e}function Gi(e,t){return e+gt(En()*(t-e+1))}function Ji(e,t){var n="";if(!e||t<1||t>m)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Zi(e,t){return Cs(Is(e,t,ac),e+"")}function Qi(e){return Qn(Do(e))}function Xi(e,t){var n=Do(e);return Us(n,ci(t,0,n.length))}function ea(e,t,n,a){if(!eo(e))return e;for(var s=-1,r=(t=xa(t,e)).length,o=r-1,c=e;null!=c&&++s<r;){var l=zs(t[s]),p=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(s!=o){var u=c[l];(p=a?a(u,l,c):i)===i&&(p=eo(u)?u:bs(t[s+1])?[]:{})}ni(c,l,p),c=c[l]}return e}var ta=jn?function(e,t){return jn.set(e,t),e}:ac,na=it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:ac;function ia(e){return Us(Do(e))}function aa(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=re(a);++i<a;)s[i]=e[i+t];return s}function sa(e,t){var n;return mi(e,(function(e,i,a){return!(n=t(e,i,a))})),!!n}function ra(e,t,n){var i=0,a=null==e?i:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;i<a;){var s=i+a>>>1,r=e[s];null!==r&&!co(r)&&(n?r<=t:r<t)?i=s+1:a=s}return a}return oa(e,t,ac,n)}function oa(e,t,n,a){var s=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=n(t))!=t,c=null===t,l=co(t),p=t===i;s<r;){var u=gt((s+r)/2),d=n(e[u]),m=d!==i,f=null===d,h=d==d,g=co(d);if(o)var v=a||h;else v=p?h&&(a||m):c?h&&m&&(a||!f):l?h&&m&&!f&&(a||!g):!f&&!g&&(a?d<=t:d<t);v?s=u+1:r=u}return xn(r,4294967294)}function ca(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var r=e[n],o=t?t(r):r;if(!n||!Mr(o,c)){var c=o;s[a++]=0===r?0:r}}return s}function la(e){return"number"==typeof e?e:co(e)?f:+e}function pa(e){if("string"==typeof e)return e;if(Yr(e))return Ft(e,pa)+"";if(co(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ua(e,t,n){var i=-1,a=Ct,s=e.length,r=!0,o=[],c=o;if(n)r=!1,a=Lt;else if(s>=200){var l=t?null:Ja(e);if(l)return un(l);r=!1,a=en,c=new Gn}else c=t?[]:o;e:for(;++i<s;){var p=e[i],u=t?t(p):p;if(p=n||0!==p?p:0,r&&u==u){for(var d=c.length;d--;)if(c[d]===u)continue e;t&&c.push(u),o.push(p)}else a(c,u,n)||(c!==o&&c.push(u),o.push(p))}return o}function da(e,t){return null==(e=Rs(e,t=xa(t,e)))||delete e[zs(Js(t))]}function ma(e,t,n,i){return ea(e,t,n(Si(e,t)),i)}function fa(e,t,n,i){for(var a=e.length,s=i?a:-1;(i?s--:++s<a)&&t(e[s],s,e););return n?aa(e,i?0:s,i?s+1:a):aa(e,i?s+1:0,i?a:s)}function ha(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,Ut([e],t.args))}),n)}function ga(e,t,n){var i=e.length;if(i<2)return i?ua(e[0]):[];for(var a=-1,s=re(i);++a<i;)for(var r=e[a],o=-1;++o<i;)o!=a&&(s[a]=di(s[a]||r,e[o],t,n));return ua(yi(s,1),t,n)}function va(e,t,n){for(var a=-1,s=e.length,r=t.length,o={};++a<s;){var c=a<r?t[a]:i;n(o,e[a],c)}return o}function ya(e){return Hr(e)?e:[]}function ba(e){return"function"==typeof e?e:ac}function xa(e,t){return Yr(e)?e:ws(e,t)?[e]:Ps(bo(e))}var wa=Zi;function _a(e,t,n){var a=e.length;return n=n===i?a:n,!t&&n>=a?e:aa(e,t,n)}var Ea=lt||function(e){return ft.clearTimeout(e)};function Sa(e,t){if(t)return e.slice();var n=e.length,i=Ke?Ke(n):new e.constructor(n);return e.copy(i),i}function Ta(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function ka(e,t){var n=t?Ta(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ia(e,t){if(e!==t){var n=e!==i,a=null===e,s=e==e,r=co(e),o=t!==i,c=null===t,l=t==t,p=co(t);if(!c&&!p&&!r&&e>t||r&&o&&l&&!c&&!p||a&&o&&l||!n&&l||!s)return 1;if(!a&&!r&&!p&&e<t||p&&n&&s&&!a&&!r||c&&n&&s||!o&&s||!l)return-1}return 0}function Ra(e,t,n,i){for(var a=-1,s=e.length,r=n.length,o=-1,c=t.length,l=bn(s-r,0),p=re(c+l),u=!i;++o<c;)p[o]=t[o];for(;++a<r;)(u||a<s)&&(p[n[a]]=e[a]);for(;l--;)p[o++]=e[a++];return p}function Aa(e,t,n,i){for(var a=-1,s=e.length,r=-1,o=n.length,c=-1,l=t.length,p=bn(s-o,0),u=re(p+l),d=!i;++a<p;)u[a]=e[a];for(var m=a;++c<l;)u[m+c]=t[c];for(;++r<o;)(d||a<s)&&(u[m+n[r]]=e[a++]);return u}function Oa(e,t){var n=-1,i=e.length;for(t||(t=re(i));++n<i;)t[n]=e[n];return t}function ja(e,t,n,a){var s=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var c=t[r],l=a?a(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),s?ri(n,c,l):ni(n,c,l)}return n}function Ca(e,t){return function(n,i){var a=Yr(n)?It:ai,s=t?t():{};return a(n,e,ls(i,2),s)}}function La(e){return Zi((function(t,n){var a=-1,s=n.length,r=s>1?n[s-1]:i,o=s>2?n[2]:i;for(r=e.length>3&&"function"==typeof r?(s--,r):i,o&&xs(n[0],n[1],o)&&(r=s<3?i:r,s=1),t=Ie(t);++a<s;){var c=n[a];c&&e(t,c,a,r)}return t}))}function Fa(e,t){return function(n,i){if(null==n)return n;if(!Kr(n))return e(n,i);for(var a=n.length,s=t?a:-1,r=Ie(n);(t?s--:++s<a)&&!1!==i(r[s],s,r););return n}}function Ua(e){return function(t,n,i){for(var a=-1,s=Ie(t),r=i(t),o=r.length;o--;){var c=r[e?o:++a];if(!1===n(s[c],c,s))break}return t}}function Pa(e){return function(t){var n=on(t=bo(t))?fn(t):i,a=n?n[0]:t.charAt(0),s=n?_a(n,1).join(""):t.slice(1);return a[e]()+s}}function za(e){return function(t){return Pt(Qo(Yo(t).replace(Xe,"")),e,"")}}function Na(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),i=e.apply(n,t);return eo(i)?i:n}}function qa(e){return function(t,n,a){var s=Ie(t);if(!Kr(t)){var r=ls(n,3);t=Co(t),n=function(e){return r(s[e],e,s)}}var o=e(t,n,a);return o>-1?s[r?t[o]:o]:i}}function Ma(e){return is((function(t){var n=t.length,s=n,r=Yn.prototype.thru;for(e&&t.reverse();s--;){var o=t[s];if("function"!=typeof o)throw new Oe(a);if(r&&!c&&"wrapper"==os(o))var c=new Yn([],!0)}for(s=c?s:n;++s<n;){var l=os(o=t[s]),p="wrapper"==l?rs(o):i;c=p&&_s(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?c[os(p[0])].apply(c,p[3]):1==o.length&&_s(o)?c[l]():c.thru(o)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&Yr(i))return c.plant(i).value();for(var a=0,s=n?t[a].apply(this,e):i;++a<n;)s=t[a].call(this,s);return s}}))}function Da(e,t,n,a,s,r,o,c,l,u){var d=t&p,m=1&t,f=2&t,h=24&t,g=512&t,v=f?i:Na(e);return function p(){for(var y=arguments.length,b=re(y),x=y;x--;)b[x]=arguments[x];if(h)var w=cs(p),_=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,w);if(a&&(b=Ra(b,a,s,h)),r&&(b=Aa(b,r,o,h)),y-=_,h&&y<u){var E=pn(b,w);return Wa(e,t,Da,p.placeholder,n,b,E,c,l,u-y)}var S=m?n:this,T=f?S[e]:e;return y=b.length,c?b=function(e,t){var n=e.length,a=xn(t.length,n),s=Oa(e);for(;a--;){var r=t[a];e[a]=bs(r,n)?s[r]:i}return e}(b,c):g&&y>1&&b.reverse(),d&&l<y&&(b.length=l),this&&this!==ft&&this instanceof p&&(T=v||Na(T)),T.apply(S,b)}}function $a(e,t){return function(n,i){return function(e,t,n,i){return wi(e,(function(e,a,s){t(i,n(e),a,s)})),i}(n,e,t(i),{})}}function Ba(e,t){return function(n,a){var s;if(n===i&&a===i)return t;if(n!==i&&(s=n),a!==i){if(s===i)return a;"string"==typeof n||"string"==typeof a?(n=pa(n),a=pa(a)):(n=la(n),a=la(a)),s=e(n,a)}return s}}function Ya(e){return is((function(t){return t=Ft(t,Qt(ls())),Zi((function(n){var i=this;return e(t,(function(e){return kt(e,i,n)}))}))}))}function Va(e,t){var n=(t=t===i?" ":pa(t)).length;if(n<2)return n?Ji(t,e):t;var a=Ji(t,ht(e/mn(t)));return on(t)?_a(fn(a),0,e).join(""):a.slice(0,e)}function Ka(e){return function(t,n,a){return a&&"number"!=typeof a&&xs(t,n,a)&&(n=a=i),t=fo(t),n===i?(n=t,t=0):n=fo(n),function(e,t,n,i){for(var a=-1,s=bn(ht((t-e)/(n||1)),0),r=re(s);s--;)r[i?s:++a]=e,e+=n;return r}(t,n,a=a===i?t<n?1:-1:fo(a),e)}}function Ha(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vo(t),n=vo(n)),e(t,n)}}function Wa(e,t,n,a,s,r,o,p,u,d){var m=8&t;t|=m?c:l,4&(t&=~(m?l:c))||(t&=-4);var f=[e,t,s,m?r:i,m?o:i,m?i:r,m?i:o,p,u,d],h=n.apply(i,f);return _s(e)&&Os(h,f),h.placeholder=a,Ls(h,e,t)}function Ga(e){var t=ke[e];return function(e,n){if(e=vo(e),(n=null==n?0:xn(ho(n),292))&&qt(e)){var i=(bo(e)+"e").split("e");return+((i=(bo(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Ja=Rn&&1/un(new Rn([,-0]))[1]==d?function(e){return new Rn(e)}:lc;function Za(e){return function(t){var n=hs(t);return n==S?cn(t):n==A?dn(t):function(e,t){return Ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qa(e,t,n,s,d,m,f,h){var g=2&t;if(!g&&"function"!=typeof e)throw new Oe(a);var v=s?s.length:0;if(v||(t&=-97,s=d=i),f=f===i?f:bn(ho(f),0),h=h===i?h:ho(h),v-=d?d.length:0,t&l){var y=s,b=d;s=d=i}var x=g?i:rs(e),w=[e,t,n,s,d,y,b,m,f,h];if(x&&function(e,t){var n=e[1],i=t[1],a=n|i,s=a<131,o=i==p&&8==n||i==p&&n==u&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!s&&!o)return e;1&i&&(e[2]=t[2],a|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Ra(l,c,t[4]):c,e[4]=l?pn(e[3],r):t[4]}(c=t[5])&&(l=e[5],e[5]=l?Aa(l,c,t[6]):c,e[6]=l?pn(e[5],r):t[6]);(c=t[7])&&(e[7]=c);i&p&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(w,x),e=w[0],t=w[1],n=w[2],s=w[3],d=w[4],!(h=w[9]=w[9]===i?g?0:e.length:bn(w[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==o?function(e,t,n){var a=Na(e);return function s(){for(var r=arguments.length,o=re(r),c=r,l=cs(s);c--;)o[c]=arguments[c];var p=r<3&&o[0]!==l&&o[r-1]!==l?[]:pn(o,l);return(r-=p.length)<n?Wa(e,t,Da,s.placeholder,i,o,p,i,i,n-r):kt(this&&this!==ft&&this instanceof s?a:e,this,o)}}(e,t,h):t!=c&&33!=t||d.length?Da.apply(i,w):function(e,t,n,i){var a=1&t,s=Na(e);return function t(){for(var r=-1,o=arguments.length,c=-1,l=i.length,p=re(l+o),u=this&&this!==ft&&this instanceof t?s:e;++c<l;)p[c]=i[c];for(;o--;)p[c++]=arguments[++r];return kt(u,a?n:this,p)}}(e,t,n,s);else var _=function(e,t,n){var i=1&t,a=Na(e);return function t(){return(this&&this!==ft&&this instanceof t?a:e).apply(i?n:this,arguments)}}(e,t,n);return Ls((x?ta:Os)(_,w),e,t)}function Xa(e,t,n,a){return e===i||Mr(e,Le[n])&&!Pe.call(a,n)?t:e}function es(e,t,n,a,s,r){return eo(e)&&eo(t)&&(r.set(t,e),Bi(e,t,i,es,r),r.delete(t)),e}function ts(e){return ao(e)?i:e}function ns(e,t,n,a,s,r){var o=1&n,c=e.length,l=t.length;if(c!=l&&!(o&&l>c))return!1;var p=r.get(e),u=r.get(t);if(p&&u)return p==t&&u==e;var d=-1,m=!0,f=2&n?new Gn:i;for(r.set(e,t),r.set(t,e);++d<c;){var h=e[d],g=t[d];if(a)var v=o?a(g,h,d,t,e,r):a(h,g,d,e,t,r);if(v!==i){if(v)continue;m=!1;break}if(f){if(!Nt(t,(function(e,t){if(!en(f,t)&&(h===e||s(h,e,n,a,r)))return f.push(t)}))){m=!1;break}}else if(h!==g&&!s(h,g,n,a,r)){m=!1;break}}return r.delete(e),r.delete(t),m}function is(e){return Cs(Is(e,i,Vs),e+"")}function as(e){return Ti(e,Co,ms)}function ss(e){return Ti(e,Lo,fs)}var rs=jn?function(e){return jn.get(e)}:lc;function os(e){for(var t=e.name+"",n=Cn[t],i=Pe.call(Cn,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}function cs(e){return(Pe.call(Dn,"placeholder")?Dn:e).placeholder}function ls(){var e=Dn.iteratee||sc;return e=e===sc?Pi:e,arguments.length?e(arguments[0],arguments[1]):e}function ps(e,t){var n,i,a=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function us(e){for(var t=Co(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,Ts(a)]}return t}function ds(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ui(n)?n:i}var ms=yt?function(e){return null==e?[]:(e=Ie(e),jt(yt(e),(function(t){return Ge.call(e,t)})))}:gc,fs=yt?function(e){for(var t=[];e;)Ut(t,ms(e)),e=He(e);return t}:gc,hs=ki;function gs(e,t,n){for(var i=-1,a=(t=xa(t,e)).length,s=!1;++i<a;){var r=zs(t[i]);if(!(s=null!=e&&n(e,r)))break;e=e[r]}return s||++i!=a?s:!!(a=null==e?0:e.length)&&Xr(a)&&bs(r,a)&&(Yr(e)||Br(e))}function vs(e){return"function"!=typeof e.constructor||Ss(e)?{}:$n(He(e))}function ys(e){return Yr(e)||Br(e)||!!(Ze&&e&&e[Ze])}function bs(e,t){var n=typeof e;return!!(t=null==t?m:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function xs(e,t,n){if(!eo(n))return!1;var i=typeof t;return!!("number"==i?Kr(n)&&bs(t,n.length):"string"==i&&t in n)&&Mr(n[t],e)}function ws(e,t){if(Yr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!co(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ie(t))}function _s(e){var t=os(e),n=Dn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var i=rs(n);return!!i&&e===i[0]}(Tn&&hs(new Tn(new ArrayBuffer(1)))!=F||kn&&hs(new kn)!=S||In&&hs(In.resolve())!=I||Rn&&hs(new Rn)!=A||An&&hs(new An)!=C)&&(hs=function(e){var t=ki(e),n=t==k?e.constructor:i,a=n?Ns(n):"";if(a)switch(a){case Ln:return F;case Fn:return S;case Un:return I;case Pn:return A;case zn:return C}return t});var Es=Fe?Zr:vc;function Ss(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Ts(e){return e==e&&!eo(e)}function ks(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ie(n)))}}function Is(e,t,n){return t=bn(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=bn(i.length-t,0),r=re(s);++a<s;)r[a]=i[t+a];a=-1;for(var o=re(t+1);++a<t;)o[a]=i[a];return o[t]=n(r),kt(e,this,o)}}function Rs(e,t){return t.length<2?e:Si(e,aa(t,0,-1))}function As(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Os=Fs(ta),js=mt||function(e,t){return ft.setTimeout(e,t)},Cs=Fs(na);function Ls(e,t,n){var i=t+"";return Cs(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Rt(g,(function(n){var i="_."+n[0];t&n[1]&&!Ct(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(i),n)))}function Fs(e){var t=0,n=0;return function(){var a=wn(),s=16-(a-n);if(n=a,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Us(e,t){var n=-1,a=e.length,s=a-1;for(t=t===i?a:t;++n<t;){var r=Gi(n,s),o=e[r];e[r]=e[n],e[n]=o}return e.length=t,e}var Ps=function(e){var t=Fr(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(ne,(function(e,n,i,a){t.push(i?a.replace(de,"$1"):n||e)})),t}));function zs(e){if("string"==typeof e||co(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ns(e){if(null!=e){try{return Ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function qs(e){if(e instanceof Vn)return e.clone();var t=new Yn(e.__wrapped__,e.__chain__);return t.__actions__=Oa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ms=Zi((function(e,t){return Hr(e)?di(e,yi(t,1,Hr,!0)):[]})),Ds=Zi((function(e,t){var n=Js(t);return Hr(n)&&(n=i),Hr(e)?di(e,yi(t,1,Hr,!0),ls(n,2)):[]})),$s=Zi((function(e,t){var n=Js(t);return Hr(n)&&(n=i),Hr(e)?di(e,yi(t,1,Hr,!0),i,n):[]}));function Bs(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:ho(n);return a<0&&(a=bn(i+a,0)),Dt(e,ls(t,3),a)}function Ys(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=a-1;return n!==i&&(s=ho(n),s=n<0?bn(a+s,0):xn(s,a-1)),Dt(e,ls(t,3),s,!0)}function Vs(e){return(null==e?0:e.length)?yi(e,1):[]}function Ks(e){return e&&e.length?e[0]:i}var Hs=Zi((function(e){var t=Ft(e,ya);return t.length&&t[0]===e[0]?Oi(t):[]})),Ws=Zi((function(e){var t=Js(e),n=Ft(e,ya);return t===Js(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Oi(n,ls(t,2)):[]})),Gs=Zi((function(e){var t=Js(e),n=Ft(e,ya);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Oi(n,i,t):[]}));function Js(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Zs=Zi(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?Hi(e,t):e}var Xs=is((function(e,t){var n=null==e?0:e.length,i=oi(e,t);return Wi(e,Ft(t,(function(e){return bs(e,n)?+e:e})).sort(Ia)),i}));function er(e){return null==e?e:Sn.call(e)}var tr=Zi((function(e){return ua(yi(e,1,Hr,!0))})),nr=Zi((function(e){var t=Js(e);return Hr(t)&&(t=i),ua(yi(e,1,Hr,!0),ls(t,2))})),ir=Zi((function(e){var t=Js(e);return t="function"==typeof t?t:i,ua(yi(e,1,Hr,!0),i,t)}));function ar(e){if(!e||!e.length)return[];var t=0;return e=jt(e,(function(e){if(Hr(e))return t=bn(e.length,t),!0})),Jt(t,(function(t){return Ft(e,Kt(t))}))}function sr(e,t){if(!e||!e.length)return[];var n=ar(e);return null==t?n:Ft(n,(function(e){return kt(t,i,e)}))}var rr=Zi((function(e,t){return Hr(e)?di(e,t):[]})),or=Zi((function(e){return ga(jt(e,Hr))})),cr=Zi((function(e){var t=Js(e);return Hr(t)&&(t=i),ga(jt(e,Hr),ls(t,2))})),lr=Zi((function(e){var t=Js(e);return t="function"==typeof t?t:i,ga(jt(e,Hr),i,t)})),pr=Zi(ar);var ur=Zi((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,sr(e,n)}));function dr(e){var t=Dn(e);return t.__chain__=!0,t}function mr(e,t){return t(e)}var fr=is((function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,s=function(t){return oi(t,e)};return!(t>1||this.__actions__.length)&&a instanceof Vn&&bs(n)?((a=a.slice(n,+n+(t?1:0))).__actions__.push({func:mr,args:[s],thisArg:i}),new Yn(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(s)}));var hr=Ca((function(e,t,n){Pe.call(e,n)?++e[n]:ri(e,n,1)}));var gr=qa(Bs),vr=qa(Ys);function yr(e,t){return(Yr(e)?Rt:mi)(e,ls(t,3))}function br(e,t){return(Yr(e)?At:fi)(e,ls(t,3))}var xr=Ca((function(e,t,n){Pe.call(e,n)?e[n].push(t):ri(e,n,[t])}));var wr=Zi((function(e,t,n){var i=-1,a="function"==typeof t,s=Kr(e)?re(e.length):[];return mi(e,(function(e){s[++i]=a?kt(t,e,n):ji(e,t,n)})),s})),_r=Ca((function(e,t,n){ri(e,n,t)}));function Er(e,t){return(Yr(e)?Ft:Mi)(e,ls(t,3))}var Sr=Ca((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Tr=Zi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xs(e,t[0],t[1])?t=[]:n>2&&xs(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,yi(t,1),[])})),kr=dt||function(){return ft.Date.now()};function Ir(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Qa(e,p,i,i,i,i,t)}function Rr(e,t){var n;if("function"!=typeof t)throw new Oe(a);return e=ho(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ar=Zi((function(e,t,n){var i=1;if(n.length){var a=pn(n,cs(Ar));i|=c}return Qa(e,i,t,n,a)})),Or=Zi((function(e,t,n){var i=3;if(n.length){var a=pn(n,cs(Or));i|=c}return Qa(t,i,e,n,a)}));function jr(e,t,n){var s,r,o,c,l,p,u=0,d=!1,m=!1,f=!0;if("function"!=typeof e)throw new Oe(a);function h(t){var n=s,a=r;return s=r=i,u=t,c=e.apply(a,n)}function g(e){var n=e-p;return p===i||n>=t||n<0||m&&e-u>=o}function v(){var e=kr();if(g(e))return y(e);l=js(v,function(e){var n=t-(e-p);return m?xn(n,o-(e-u)):n}(e))}function y(e){return l=i,f&&s?h(e):(s=r=i,c)}function b(){var e=kr(),n=g(e);if(s=arguments,r=this,p=e,n){if(l===i)return function(e){return u=e,l=js(v,t),d?h(e):c}(p);if(m)return Ea(l),l=js(v,t),h(p)}return l===i&&(l=js(v,t)),c}return t=vo(t)||0,eo(n)&&(d=!!n.leading,o=(m="maxWait"in n)?bn(vo(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){l!==i&&Ea(l),u=0,s=p=r=l=i},b.flush=function(){return l===i?c:y(kr())},b}var Cr=Zi((function(e,t){return ui(e,1,t)})),Lr=Zi((function(e,t,n){return ui(e,vo(t)||0,n)}));function Fr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(a);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(Fr.Cache||Wn),n}function Ur(e){if("function"!=typeof e)throw new Oe(a);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)}}Fr.Cache=Wn;var Pr=wa((function(e,t){var n=(t=1==t.length&&Yr(t[0])?Ft(t[0],Qt(ls())):Ft(yi(t,1),Qt(ls()))).length;return Zi((function(i){for(var a=-1,s=xn(i.length,n);++a<s;)i[a]=t[a].call(this,i[a]);return kt(e,this,i)}))})),zr=Zi((function(e,t){var n=pn(t,cs(zr));return Qa(e,c,i,t,n)})),Nr=Zi((function(e,t){var n=pn(t,cs(Nr));return Qa(e,l,i,t,n)})),qr=is((function(e,t){return Qa(e,u,i,i,i,t)}));function Mr(e,t){return e===t||e!=e&&t!=t}var Dr=Ha(Ii),$r=Ha((function(e,t){return e>=t})),Br=Ci(function(){return arguments}())?Ci:function(e){return to(e)&&Pe.call(e,"callee")&&!Ge.call(e,"callee")},Yr=re.isArray,Vr=xt?Qt(xt):function(e){return to(e)&&ki(e)==L};function Kr(e){return null!=e&&Xr(e.length)&&!Zr(e)}function Hr(e){return to(e)&&Kr(e)}var Wr=bt||vc,Gr=wt?Qt(wt):function(e){return to(e)&&ki(e)==x};function Jr(e){if(!to(e))return!1;var t=ki(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ao(e)}function Zr(e){if(!eo(e))return!1;var t=ki(e);return t==_||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qr(e){return"number"==typeof e&&e==ho(e)}function Xr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function eo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function to(e){return null!=e&&"object"==typeof e}var no=_t?Qt(_t):function(e){return to(e)&&hs(e)==S};function io(e){return"number"==typeof e||to(e)&&ki(e)==T}function ao(e){if(!to(e)||ki(e)!=k)return!1;var t=He(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ue.call(n)==Me}var so=Et?Qt(Et):function(e){return to(e)&&ki(e)==R};var ro=St?Qt(St):function(e){return to(e)&&hs(e)==A};function oo(e){return"string"==typeof e||!Yr(e)&&to(e)&&ki(e)==O}function co(e){return"symbol"==typeof e||to(e)&&ki(e)==j}var lo=Tt?Qt(Tt):function(e){return to(e)&&Xr(e.length)&&!!ot[ki(e)]};var po=Ha(qi),uo=Ha((function(e,t){return e<=t}));function mo(e){if(!e)return[];if(Kr(e))return oo(e)?fn(e):Oa(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=hs(e);return(t==S?cn:t==A?un:Do)(e)}function fo(e){return e?(e=vo(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ho(e){var t=fo(e),n=t%1;return t==t?n?t-n:t:0}function go(e){return e?ci(ho(e),0,h):0}function vo(e){if("number"==typeof e)return e;if(co(e))return f;if(eo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ge.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):he.test(e)?f:+e}function yo(e){return ja(e,Lo(e))}function bo(e){return null==e?"":pa(e)}var xo=La((function(e,t){if(Ss(t)||Kr(t))ja(t,Co(t),e);else for(var n in t)Pe.call(t,n)&&ni(e,n,t[n])})),wo=La((function(e,t){ja(t,Lo(t),e)})),_o=La((function(e,t,n,i){ja(t,Lo(t),e,i)})),Eo=La((function(e,t,n,i){ja(t,Co(t),e,i)})),So=is(oi);var To=Zi((function(e,t){e=Ie(e);var n=-1,a=t.length,s=a>2?t[2]:i;for(s&&xs(t[0],t[1],s)&&(a=1);++n<a;)for(var r=t[n],o=Lo(r),c=-1,l=o.length;++c<l;){var p=o[c],u=e[p];(u===i||Mr(u,Le[p])&&!Pe.call(e,p))&&(e[p]=r[p])}return e})),ko=Zi((function(e){return e.push(i,es),kt(Uo,i,e)}));function Io(e,t,n){var a=null==e?i:Si(e,t);return a===i?n:a}function Ro(e,t){return null!=e&&gs(e,t,Ai)}var Ao=$a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=qe.call(t)),e[t]=n}),tc(ac)),Oo=$a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=qe.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),ls),jo=Zi(ji);function Co(e){return Kr(e)?Zn(e):zi(e)}function Lo(e){return Kr(e)?Zn(e,!0):Ni(e)}var Fo=La((function(e,t,n){Bi(e,t,n)})),Uo=La((function(e,t,n,i){Bi(e,t,n,i)})),Po=is((function(e,t){var n={};if(null==e)return n;var i=!1;t=Ft(t,(function(t){return t=xa(t,e),i||(i=t.length>1),t})),ja(e,ss(e),n),i&&(n=li(n,7,ts));for(var a=t.length;a--;)da(n,t[a]);return n}));var zo=is((function(e,t){return null==e?{}:function(e,t){return Ki(e,t,(function(t,n){return Ro(e,n)}))}(e,t)}));function No(e,t){if(null==e)return{};var n=Ft(ss(e),(function(e){return[e]}));return t=ls(t),Ki(e,n,(function(e,n){return t(e,n[0])}))}var qo=Za(Co),Mo=Za(Lo);function Do(e){return null==e?[]:Xt(e,Co(e))}var $o=za((function(e,t,n){return t=t.toLowerCase(),e+(n?Bo(t):t)}));function Bo(e){return Zo(bo(e).toLowerCase())}function Yo(e){return(e=bo(e))&&e.replace(xe,an).replace(et,"")}var Vo=za((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ko=za((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ho=Pa("toLowerCase");var Wo=za((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Go=za((function(e,t,n){return e+(n?" ":"")+Zo(t)}));var Jo=za((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zo=Pa("toUpperCase");function Qo(e,t,n){return e=bo(e),(t=n?i:t)===i?function(e){return at.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(t)||[]}var Xo=Zi((function(e,t){try{return kt(e,i,t)}catch(e){return Jr(e)?e:new Se(e)}})),ec=is((function(e,t){return Rt(t,(function(t){t=zs(t),ri(e,t,Ar(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Ma(),ic=Ma(!0);function ac(e){return e}function sc(e){return Pi("function"==typeof e?e:li(e,1))}var rc=Zi((function(e,t){return function(n){return ji(n,e,t)}})),oc=Zi((function(e,t){return function(n){return ji(e,n,t)}}));function cc(e,t,n){var i=Co(t),a=Ei(t,i);null!=n||eo(t)&&(a.length||!i.length)||(n=t,t=e,e=this,a=Ei(t,Co(t)));var s=!(eo(n)&&"chain"in n&&!n.chain),r=Zr(e);return Rt(a,(function(n){var i=t[n];e[n]=i,r&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__);return(n.__actions__=Oa(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ut([this.value()],arguments))})})),e}function lc(){}var pc=Ya(Ft),uc=Ya(Ot),dc=Ya(Nt);function mc(e){return ws(e)?Kt(zs(e)):function(e){return function(t){return Si(t,e)}}(e)}var fc=Ka(),hc=Ka(!0);function gc(){return[]}function vc(){return!1}var yc=Ba((function(e,t){return e+t}),0),bc=Ga("ceil"),xc=Ba((function(e,t){return e/t}),1),wc=Ga("floor");var _c,Ec=Ba((function(e,t){return e*t}),1),Sc=Ga("round"),Tc=Ba((function(e,t){return e-t}),0);return Dn.after=function(e,t){if("function"!=typeof t)throw new Oe(a);return e=ho(e),function(){if(--e<1)return t.apply(this,arguments)}},Dn.ary=Ir,Dn.assign=xo,Dn.assignIn=wo,Dn.assignInWith=_o,Dn.assignWith=Eo,Dn.at=So,Dn.before=Rr,Dn.bind=Ar,Dn.bindAll=ec,Dn.bindKey=Or,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Yr(e)?e:[e]},Dn.chain=dr,Dn.chunk=function(e,t,n){t=(n?xs(e,t,n):t===i)?1:bn(ho(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var s=0,r=0,o=re(ht(a/t));s<a;)o[r++]=aa(e,s,s+=t);return o},Dn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,a=[];++t<n;){var s=e[t];s&&(a[i++]=s)}return a},Dn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=re(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ut(Yr(n)?Oa(n):[n],yi(t,1))},Dn.cond=function(e){var t=null==e?0:e.length,n=ls();return e=t?Ft(e,(function(e){if("function"!=typeof e[1])throw new Oe(a);return[n(e[0]),e[1]]})):[],Zi((function(n){for(var i=-1;++i<t;){var a=e[i];if(kt(a[0],this,n))return kt(a[1],this,n)}}))},Dn.conforms=function(e){return function(e){var t=Co(e);return function(n){return pi(n,e,t)}}(li(e,1))},Dn.constant=tc,Dn.countBy=hr,Dn.create=function(e,t){var n=$n(e);return null==t?n:si(n,t)},Dn.curry=function e(t,n,a){var s=Qa(t,8,i,i,i,i,i,n=a?i:n);return s.placeholder=e.placeholder,s},Dn.curryRight=function e(t,n,a){var s=Qa(t,o,i,i,i,i,i,n=a?i:n);return s.placeholder=e.placeholder,s},Dn.debounce=jr,Dn.defaults=To,Dn.defaultsDeep=ko,Dn.defer=Cr,Dn.delay=Lr,Dn.difference=Ms,Dn.differenceBy=Ds,Dn.differenceWith=$s,Dn.drop=function(e,t,n){var a=null==e?0:e.length;return a?aa(e,(t=n||t===i?1:ho(t))<0?0:t,a):[]},Dn.dropRight=function(e,t,n){var a=null==e?0:e.length;return a?aa(e,0,(t=a-(t=n||t===i?1:ho(t)))<0?0:t):[]},Dn.dropRightWhile=function(e,t){return e&&e.length?fa(e,ls(t,3),!0,!0):[]},Dn.dropWhile=function(e,t){return e&&e.length?fa(e,ls(t,3),!0):[]},Dn.fill=function(e,t,n,a){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&xs(e,t,n)&&(n=0,a=s),function(e,t,n,a){var s=e.length;for((n=ho(n))<0&&(n=-n>s?0:s+n),(a=a===i||a>s?s:ho(a))<0&&(a+=s),a=n>a?0:go(a);n<a;)e[n++]=t;return e}(e,t,n,a)):[]},Dn.filter=function(e,t){return(Yr(e)?jt:vi)(e,ls(t,3))},Dn.flatMap=function(e,t){return yi(Er(e,t),1)},Dn.flatMapDeep=function(e,t){return yi(Er(e,t),d)},Dn.flatMapDepth=function(e,t,n){return n=n===i?1:ho(n),yi(Er(e,t),n)},Dn.flatten=Vs,Dn.flattenDeep=function(e){return(null==e?0:e.length)?yi(e,d):[]},Dn.flattenDepth=function(e,t){return(null==e?0:e.length)?yi(e,t=t===i?1:ho(t)):[]},Dn.flip=function(e){return Qa(e,512)},Dn.flow=nc,Dn.flowRight=ic,Dn.fromPairs=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},Dn.functions=function(e){return null==e?[]:Ei(e,Co(e))},Dn.functionsIn=function(e){return null==e?[]:Ei(e,Lo(e))},Dn.groupBy=xr,Dn.initial=function(e){return(null==e?0:e.length)?aa(e,0,-1):[]},Dn.intersection=Hs,Dn.intersectionBy=Ws,Dn.intersectionWith=Gs,Dn.invert=Ao,Dn.invertBy=Oo,Dn.invokeMap=wr,Dn.iteratee=sc,Dn.keyBy=_r,Dn.keys=Co,Dn.keysIn=Lo,Dn.map=Er,Dn.mapKeys=function(e,t){var n={};return t=ls(t,3),wi(e,(function(e,i,a){ri(n,t(e,i,a),e)})),n},Dn.mapValues=function(e,t){var n={};return t=ls(t,3),wi(e,(function(e,i,a){ri(n,i,t(e,i,a))})),n},Dn.matches=function(e){return Di(li(e,1))},Dn.matchesProperty=function(e,t){return $i(e,li(t,1))},Dn.memoize=Fr,Dn.merge=Fo,Dn.mergeWith=Uo,Dn.method=rc,Dn.methodOf=oc,Dn.mixin=cc,Dn.negate=Ur,Dn.nthArg=function(e){return e=ho(e),Zi((function(t){return Yi(t,e)}))},Dn.omit=Po,Dn.omitBy=function(e,t){return No(e,Ur(ls(t)))},Dn.once=function(e){return Rr(2,e)},Dn.orderBy=function(e,t,n,a){return null==e?[]:(Yr(t)||(t=null==t?[]:[t]),Yr(n=a?i:n)||(n=null==n?[]:[n]),Vi(e,t,n))},Dn.over=pc,Dn.overArgs=Pr,Dn.overEvery=uc,Dn.overSome=dc,Dn.partial=zr,Dn.partialRight=Nr,Dn.partition=Sr,Dn.pick=zo,Dn.pickBy=No,Dn.property=mc,Dn.propertyOf=function(e){return function(t){return null==e?i:Si(e,t)}},Dn.pull=Zs,Dn.pullAll=Qs,Dn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,ls(n,2)):e},Dn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,i,n):e},Dn.pullAt=Xs,Dn.range=fc,Dn.rangeRight=hc,Dn.rearg=qr,Dn.reject=function(e,t){return(Yr(e)?jt:vi)(e,Ur(ls(t,3)))},Dn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,a=[],s=e.length;for(t=ls(t,3);++i<s;){var r=e[i];t(r,i,e)&&(n.push(r),a.push(i))}return Wi(e,a),n},Dn.rest=function(e,t){if("function"!=typeof e)throw new Oe(a);return Zi(e,t=t===i?t:ho(t))},Dn.reverse=er,Dn.sampleSize=function(e,t,n){return t=(n?xs(e,t,n):t===i)?1:ho(t),(Yr(e)?Xn:Xi)(e,t)},Dn.set=function(e,t,n){return null==e?e:ea(e,t,n)},Dn.setWith=function(e,t,n,a){return a="function"==typeof a?a:i,null==e?e:ea(e,t,n,a)},Dn.shuffle=function(e){return(Yr(e)?ei:ia)(e)},Dn.slice=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&xs(e,t,n)?(t=0,n=a):(t=null==t?0:ho(t),n=n===i?a:ho(n)),aa(e,t,n)):[]},Dn.sortBy=Tr,Dn.sortedUniq=function(e){return e&&e.length?ca(e):[]},Dn.sortedUniqBy=function(e,t){return e&&e.length?ca(e,ls(t,2)):[]},Dn.split=function(e,t,n){return n&&"number"!=typeof n&&xs(e,t,n)&&(t=n=i),(n=n===i?h:n>>>0)?(e=bo(e))&&("string"==typeof t||null!=t&&!so(t))&&!(t=pa(t))&&on(e)?_a(fn(e),0,n):e.split(t,n):[]},Dn.spread=function(e,t){if("function"!=typeof e)throw new Oe(a);return t=null==t?0:bn(ho(t),0),Zi((function(n){var i=n[t],a=_a(n,0,t);return i&&Ut(a,i),kt(e,this,a)}))},Dn.tail=function(e){var t=null==e?0:e.length;return t?aa(e,1,t):[]},Dn.take=function(e,t,n){return e&&e.length?aa(e,0,(t=n||t===i?1:ho(t))<0?0:t):[]},Dn.takeRight=function(e,t,n){var a=null==e?0:e.length;return a?aa(e,(t=a-(t=n||t===i?1:ho(t)))<0?0:t,a):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?fa(e,ls(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?fa(e,ls(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new Oe(a);return eo(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),jr(e,t,{leading:i,maxWait:t,trailing:s})},Dn.thru=mr,Dn.toArray=mo,Dn.toPairs=qo,Dn.toPairsIn=Mo,Dn.toPath=function(e){return Yr(e)?Ft(e,zs):co(e)?[e]:Oa(Ps(bo(e)))},Dn.toPlainObject=yo,Dn.transform=function(e,t,n){var i=Yr(e),a=i||Wr(e)||lo(e);if(t=ls(t,4),null==n){var s=e&&e.constructor;n=a?i?new s:[]:eo(e)&&Zr(s)?$n(He(e)):{}}return(a?Rt:wi)(e,(function(e,i,a){return t(n,e,i,a)})),n},Dn.unary=function(e){return Ir(e,1)},Dn.union=tr,Dn.unionBy=nr,Dn.unionWith=ir,Dn.uniq=function(e){return e&&e.length?ua(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?ua(e,ls(t,2)):[]},Dn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ua(e,i,t):[]},Dn.unset=function(e,t){return null==e||da(e,t)},Dn.unzip=ar,Dn.unzipWith=sr,Dn.update=function(e,t,n){return null==e?e:ma(e,t,ba(n))},Dn.updateWith=function(e,t,n,a){return a="function"==typeof a?a:i,null==e?e:ma(e,t,ba(n),a)},Dn.values=Do,Dn.valuesIn=function(e){return null==e?[]:Xt(e,Lo(e))},Dn.without=rr,Dn.words=Qo,Dn.wrap=function(e,t){return zr(ba(t),e)},Dn.xor=or,Dn.xorBy=cr,Dn.xorWith=lr,Dn.zip=pr,Dn.zipObject=function(e,t){return va(e||[],t||[],ni)},Dn.zipObjectDeep=function(e,t){return va(e||[],t||[],ea)},Dn.zipWith=ur,Dn.entries=qo,Dn.entriesIn=Mo,Dn.extend=wo,Dn.extendWith=_o,cc(Dn,Dn),Dn.add=yc,Dn.attempt=Xo,Dn.camelCase=$o,Dn.capitalize=Bo,Dn.ceil=bc,Dn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vo(n))==n?n:0),t!==i&&(t=(t=vo(t))==t?t:0),ci(vo(e),t,n)},Dn.clone=function(e){return li(e,4)},Dn.cloneDeep=function(e){return li(e,5)},Dn.cloneDeepWith=function(e,t){return li(e,5,t="function"==typeof t?t:i)},Dn.cloneWith=function(e,t){return li(e,4,t="function"==typeof t?t:i)},Dn.conformsTo=function(e,t){return null==t||pi(e,t,Co(t))},Dn.deburr=Yo,Dn.defaultTo=function(e,t){return null==e||e!=e?t:e},Dn.divide=xc,Dn.endsWith=function(e,t,n){e=bo(e),t=pa(t);var a=e.length,s=n=n===i?a:ci(ho(n),0,a);return(n-=t.length)>=0&&e.slice(n,s)==t},Dn.eq=Mr,Dn.escape=function(e){return(e=bo(e))&&J.test(e)?e.replace(W,sn):e},Dn.escapeRegExp=function(e){return(e=bo(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},Dn.every=function(e,t,n){var a=Yr(e)?Ot:hi;return n&&xs(e,t,n)&&(t=i),a(e,ls(t,3))},Dn.find=gr,Dn.findIndex=Bs,Dn.findKey=function(e,t){return Mt(e,ls(t,3),wi)},Dn.findLast=vr,Dn.findLastIndex=Ys,Dn.findLastKey=function(e,t){return Mt(e,ls(t,3),_i)},Dn.floor=wc,Dn.forEach=yr,Dn.forEachRight=br,Dn.forIn=function(e,t){return null==e?e:bi(e,ls(t,3),Lo)},Dn.forInRight=function(e,t){return null==e?e:xi(e,ls(t,3),Lo)},Dn.forOwn=function(e,t){return e&&wi(e,ls(t,3))},Dn.forOwnRight=function(e,t){return e&&_i(e,ls(t,3))},Dn.get=Io,Dn.gt=Dr,Dn.gte=$r,Dn.has=function(e,t){return null!=e&&gs(e,t,Ri)},Dn.hasIn=Ro,Dn.head=Ks,Dn.identity=ac,Dn.includes=function(e,t,n,i){e=Kr(e)?e:Do(e),n=n&&!i?ho(n):0;var a=e.length;return n<0&&(n=bn(a+n,0)),oo(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&$t(e,t,n)>-1},Dn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:ho(n);return a<0&&(a=bn(i+a,0)),$t(e,t,a)},Dn.inRange=function(e,t,n){return t=fo(t),n===i?(n=t,t=0):n=fo(n),function(e,t,n){return e>=xn(t,n)&&e<bn(t,n)}(e=vo(e),t,n)},Dn.invoke=jo,Dn.isArguments=Br,Dn.isArray=Yr,Dn.isArrayBuffer=Vr,Dn.isArrayLike=Kr,Dn.isArrayLikeObject=Hr,Dn.isBoolean=function(e){return!0===e||!1===e||to(e)&&ki(e)==b},Dn.isBuffer=Wr,Dn.isDate=Gr,Dn.isElement=function(e){return to(e)&&1===e.nodeType&&!ao(e)},Dn.isEmpty=function(e){if(null==e)return!0;if(Kr(e)&&(Yr(e)||"string"==typeof e||"function"==typeof e.splice||Wr(e)||lo(e)||Br(e)))return!e.length;var t=hs(e);if(t==S||t==A)return!e.size;if(Ss(e))return!zi(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},Dn.isEqual=function(e,t){return Li(e,t)},Dn.isEqualWith=function(e,t,n){var a=(n="function"==typeof n?n:i)?n(e,t):i;return a===i?Li(e,t,i,n):!!a},Dn.isError=Jr,Dn.isFinite=function(e){return"number"==typeof e&&qt(e)},Dn.isFunction=Zr,Dn.isInteger=Qr,Dn.isLength=Xr,Dn.isMap=no,Dn.isMatch=function(e,t){return e===t||Fi(e,t,us(t))},Dn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Fi(e,t,us(t),n)},Dn.isNaN=function(e){return io(e)&&e!=+e},Dn.isNative=function(e){if(Es(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ui(e)},Dn.isNil=function(e){return null==e},Dn.isNull=function(e){return null===e},Dn.isNumber=io,Dn.isObject=eo,Dn.isObjectLike=to,Dn.isPlainObject=ao,Dn.isRegExp=so,Dn.isSafeInteger=function(e){return Qr(e)&&e>=-9007199254740991&&e<=m},Dn.isSet=ro,Dn.isString=oo,Dn.isSymbol=co,Dn.isTypedArray=lo,Dn.isUndefined=function(e){return e===i},Dn.isWeakMap=function(e){return to(e)&&hs(e)==C},Dn.isWeakSet=function(e){return to(e)&&"[object WeakSet]"==ki(e)},Dn.join=function(e,t){return null==e?"":Ht.call(e,t)},Dn.kebabCase=Vo,Dn.last=Js,Dn.lastIndexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=a;return n!==i&&(s=(s=ho(n))<0?bn(a+s,0):xn(s,a-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,s):Dt(e,Yt,s,!0)},Dn.lowerCase=Ko,Dn.lowerFirst=Ho,Dn.lt=po,Dn.lte=uo,Dn.max=function(e){return e&&e.length?gi(e,ac,Ii):i},Dn.maxBy=function(e,t){return e&&e.length?gi(e,ls(t,2),Ii):i},Dn.mean=function(e){return Vt(e,ac)},Dn.meanBy=function(e,t){return Vt(e,ls(t,2))},Dn.min=function(e){return e&&e.length?gi(e,ac,qi):i},Dn.minBy=function(e,t){return e&&e.length?gi(e,ls(t,2),qi):i},Dn.stubArray=gc,Dn.stubFalse=vc,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=Ec,Dn.nth=function(e,t){return e&&e.length?Yi(e,ho(t)):i},Dn.noConflict=function(){return ft._===this&&(ft._=De),this},Dn.noop=lc,Dn.now=kr,Dn.pad=function(e,t,n){e=bo(e);var i=(t=ho(t))?mn(e):0;if(!t||i>=t)return e;var a=(t-i)/2;return Va(gt(a),n)+e+Va(ht(a),n)},Dn.padEnd=function(e,t,n){e=bo(e);var i=(t=ho(t))?mn(e):0;return t&&i<t?e+Va(t-i,n):e},Dn.padStart=function(e,t,n){e=bo(e);var i=(t=ho(t))?mn(e):0;return t&&i<t?Va(t-i,n)+e:e},Dn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(bo(e).replace(se,""),t||0)},Dn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xs(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fo(e),t===i?(t=e,e=0):t=fo(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var s=En();return xn(e+s*(t-e+pt("1e-"+((s+"").length-1))),t)}return Gi(e,t)},Dn.reduce=function(e,t,n){var i=Yr(e)?Pt:Wt,a=arguments.length<3;return i(e,ls(t,4),n,a,mi)},Dn.reduceRight=function(e,t,n){var i=Yr(e)?zt:Wt,a=arguments.length<3;return i(e,ls(t,4),n,a,fi)},Dn.repeat=function(e,t,n){return t=(n?xs(e,t,n):t===i)?1:ho(t),Ji(bo(e),t)},Dn.replace=function(){var e=arguments,t=bo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(e,t,n){var a=-1,s=(t=xa(t,e)).length;for(s||(s=1,e=i);++a<s;){var r=null==e?i:e[zs(t[a])];r===i&&(a=s,r=n),e=Zr(r)?r.call(e):r}return e},Dn.round=Sc,Dn.runInContext=e,Dn.sample=function(e){return(Yr(e)?Qn:Qi)(e)},Dn.size=function(e){if(null==e)return 0;if(Kr(e))return oo(e)?mn(e):e.length;var t=hs(e);return t==S||t==A?e.size:zi(e).length},Dn.snakeCase=Wo,Dn.some=function(e,t,n){var a=Yr(e)?Nt:sa;return n&&xs(e,t,n)&&(t=i),a(e,ls(t,3))},Dn.sortedIndex=function(e,t){return ra(e,t)},Dn.sortedIndexBy=function(e,t,n){return oa(e,t,ls(n,2))},Dn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=ra(e,t);if(i<n&&Mr(e[i],t))return i}return-1},Dn.sortedLastIndex=function(e,t){return ra(e,t,!0)},Dn.sortedLastIndexBy=function(e,t,n){return oa(e,t,ls(n,2),!0)},Dn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ra(e,t,!0)-1;if(Mr(e[n],t))return n}return-1},Dn.startCase=Go,Dn.startsWith=function(e,t,n){return e=bo(e),n=null==n?0:ci(ho(n),0,e.length),t=pa(t),e.slice(n,n+t.length)==t},Dn.subtract=Tc,Dn.sum=function(e){return e&&e.length?Gt(e,ac):0},Dn.sumBy=function(e,t){return e&&e.length?Gt(e,ls(t,2)):0},Dn.template=function(e,t,n){var a=Dn.templateSettings;n&&xs(e,t,n)&&(t=i),e=bo(e),t=_o({},t,a,Xa);var s,r,o=_o({},t.imports,a.imports,Xa),c=Co(o),l=Xt(o,c),p=0,u=t.interpolate||we,d="__p += '",m=Re((t.escape||we).source+"|"+u.source+"|"+(u===X?me:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(m,(function(t,n,i,a,o,c){return i||(i=a),d+=e.slice(p,c).replace(_e,rn),n&&(s=!0,d+="' +\n__e("+n+") +\n'"),o&&(r=!0,d+="';\n"+o+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=c+t.length,t})),d+="';\n";var h=Pe.call(t,"variable")&&t.variable;if(h){if(ue.test(h))throw new Se("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(r?d.replace(Y,""):d).replace(V,"$1").replace(K,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Xo((function(){return Te(c,f+"return "+d).apply(i,l)}));if(g.source=d,Jr(g))throw g;return g},Dn.times=function(e,t){if((e=ho(e))<1||e>m)return[];var n=h,i=xn(e,h);t=ls(t),e-=h;for(var a=Jt(i,t);++n<e;)t(n);return a},Dn.toFinite=fo,Dn.toInteger=ho,Dn.toLength=go,Dn.toLower=function(e){return bo(e).toLowerCase()},Dn.toNumber=vo,Dn.toSafeInteger=function(e){return e?ci(ho(e),-9007199254740991,m):0===e?e:0},Dn.toString=bo,Dn.toUpper=function(e){return bo(e).toUpperCase()},Dn.trim=function(e,t,n){if((e=bo(e))&&(n||t===i))return Zt(e);if(!e||!(t=pa(t)))return e;var a=fn(e),s=fn(t);return _a(a,tn(a,s),nn(a,s)+1).join("")},Dn.trimEnd=function(e,t,n){if((e=bo(e))&&(n||t===i))return e.slice(0,hn(e)+1);if(!e||!(t=pa(t)))return e;var a=fn(e);return _a(a,0,nn(a,fn(t))+1).join("")},Dn.trimStart=function(e,t,n){if((e=bo(e))&&(n||t===i))return e.replace(se,"");if(!e||!(t=pa(t)))return e;var a=fn(e);return _a(a,tn(a,fn(t))).join("")},Dn.truncate=function(e,t){var n=30,a="...";if(eo(t)){var s="separator"in t?t.separator:s;n="length"in t?ho(t.length):n,a="omission"in t?pa(t.omission):a}var r=(e=bo(e)).length;if(on(e)){var o=fn(e);r=o.length}if(n>=r)return e;var c=n-mn(a);if(c<1)return a;var l=o?_a(o,0,c).join(""):e.slice(0,c);if(s===i)return l+a;if(o&&(c+=l.length-c),so(s)){if(e.slice(c).search(s)){var p,u=l;for(s.global||(s=Re(s.source,bo(fe.exec(s))+"g")),s.lastIndex=0;p=s.exec(u);)var d=p.index;l=l.slice(0,d===i?c:d)}}else if(e.indexOf(pa(s),c)!=c){var m=l.lastIndexOf(s);m>-1&&(l=l.slice(0,m))}return l+a},Dn.unescape=function(e){return(e=bo(e))&&G.test(e)?e.replace(H,gn):e},Dn.uniqueId=function(e){var t=++ze;return bo(e)+t},Dn.upperCase=Jo,Dn.upperFirst=Zo,Dn.each=yr,Dn.eachRight=br,Dn.first=Ks,cc(Dn,(_c={},wi(Dn,(function(e,t){Pe.call(Dn.prototype,t)||(_c[t]=e)})),_c),{chain:!1}),Dn.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dn[e].placeholder=Dn})),Rt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:bn(ho(n),0);var a=this.__filtered__&&!t?new Vn(this):this.clone();return a.__filtered__?a.__takeCount__=xn(n,a.__takeCount__):a.__views__.push({size:xn(n,h),type:e+(a.__dir__<0?"Right":"")}),a},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ls(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Rt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ac)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zi((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return ji(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ur(ls(e)))},Vn.prototype.slice=function(e,t){e=ho(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ho(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(h)},wi(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),s=Dn[a?"take"+("last"==t?"Right":""):t],r=a||/^find/.test(t);s&&(Dn.prototype[t]=function(){var t=this.__wrapped__,o=a?[1]:arguments,c=t instanceof Vn,l=o[0],p=c||Yr(t),u=function(e){var t=s.apply(Dn,Ut([e],o));return a&&d?t[0]:t};p&&n&&"function"==typeof l&&1!=l.length&&(c=p=!1);var d=this.__chain__,m=!!this.__actions__.length,f=r&&!d,h=c&&!m;if(!r&&p){t=h?t:new Vn(this);var g=e.apply(t,o);return g.__actions__.push({func:mr,args:[u],thisArg:i}),new Yn(g,d)}return f&&h?e.apply(this,o):(g=this.thru(u),f?a?g.value()[0]:g.value():g)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var a=this.value();return t.apply(Yr(a)?a:[],e)}return this[n]((function(n){return t.apply(Yr(n)?n:[],e)}))}})),wi(Vn.prototype,(function(e,t){var n=Dn[t];if(n){var i=n.name+"";Pe.call(Cn,i)||(Cn[i]=[]),Cn[i].push({name:t,func:n})}})),Cn[Da(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Oa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oa(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Yr(e),i=t<0,a=n?e.length:0,s=function(e,t,n){var i=-1,a=n.length;for(;++i<a;){var s=n[i],r=s.size;switch(s.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=xn(t,e+r);break;case"takeRight":e=bn(e,t-r)}}return{start:e,end:t}}(0,a,this.__views__),r=s.start,o=s.end,c=o-r,l=i?o:r-1,p=this.__iteratees__,u=p.length,d=0,m=xn(c,this.__takeCount__);if(!n||!i&&a==c&&m==c)return ha(e,this.__actions__);var f=[];e:for(;c--&&d<m;){for(var h=-1,g=e[l+=t];++h<u;){var v=p[h],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}f[d++]=g}return f},Dn.prototype.at=fr,Dn.prototype.chain=function(){return dr(this)},Dn.prototype.commit=function(){return new Yn(this.value(),this.__chain__)},Dn.prototype.next=function(){this.__values__===i&&(this.__values__=mo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Dn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var a=qs(n);a.__index__=0,a.__values__=i,t?s.__wrapped__=a:t=a;var s=a;n=n.__wrapped__}return s.__wrapped__=e,t},Dn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:mr,args:[er],thisArg:i}),new Yn(t,this.__chain__)}return this.thru(er)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return ha(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Qe&&(Dn.prototype[Qe]=function(){return this}),Dn}();gt?((gt.exports=vn)._=vn,ht._=vn):ft._=vn}).call(t)}($t,$t.exports);var Bt=$t.exports;const Yt={type:W,stimulus:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?sn.audio[Bt.camelCase("introductionNs")]:sn.audio[Bt.camelCase("introduction")],choices:"ALL_KEYS",prompt:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Fe.t("introduction.intro.text1")} </h3>\n <p> ${Fe.t("introduction.intro.text2")} </p> \n <p> ${Fe.t("introduction.intro.text3")} </p>\n </div>\n <div class="button"> ${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.continue")}`})} </div>\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Fe.t("introduction.intro.text4")} </h3>\n <p> ${Fe.t("introduction.intro.text5")} </p> \n <p> ${Fe.t("introduction.intro.text6")} </p> \n <p> ${Fe.t("introduction.intro.text3")} </p>\n </div>\n <div class="button">${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.continue")}`})}</div>\n </div>\n `},Vt={timeline:[{type:W,stimulus:()=>sn.audio.postPracticeInstruction,prompt:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${Fe.t("practice.postPracticeIntro.text1")}</h3>\n <p>${Fe.t("practice.postPracticeIntro.text2")}</p>\n <p>${Fe.t("practice.postPracticeIntro.text3")}</p>\n <p>${Fe.t("practice.postPracticeIntro.text4")}</p>\n <p>${Fe.t("practice.postPracticeIntro.text5")}</p>\n <div class="button">${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.continue")}`})}</div>\n </div>\n `},{type:W,stimulus:()=>sn.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>Remember!</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${Fe.t("practice.postPracticeReminder.text1")} </p>\n <img width="70%" src="${sn.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${Fe.t("practice.postPracticeReminder.text2")} </p>\n <img width="70%" src="${sn.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b> ${Fe.t("practice.postPracticeReminder.text3")} </b></p>\n <p><b> ${Fe.t("practice.postPracticeReminder.text4")} </b></p>\n <div class="button">${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.begin")}`})} </div>\n </div>`,on_finish:e=>{s.session.set("indexTracking",0)}}]},Kt={name:"html-keyboard-response",parameters:{stimulus:{type:u.HTML_STRING,pretty_name:"Stimulus",default:void 0},choices:{type:u.KEYS,pretty_name:"Choices",default:"ALL_KEYS"},prompt:{type:u.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:u.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:u.INT,pretty_name:"Trial duration",default:null},response_ends_trial:{type:u.BOOL,pretty_name:"Response ends trial",default:!0}}};class Ht{constructor(e){this.jsPsych=e}trial(e,t){var n='<div id="jspsych-html-keyboard-response-stimulus">'+t.stimulus+"</div>";null!==t.prompt&&(n+=t.prompt),e.innerHTML=n;var i={rt:null,key:null};const a=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==s&&this.jsPsych.pluginAPI.cancelKeyboardResponse(s);var n={rt:i.rt,stimulus:t.stimulus,response:i.key};e.innerHTML="",this.jsPsych.finishTrial(n)};if("NO_KEYS"!=t.choices)var s=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:n=>{e.querySelector("#jspsych-html-keyboard-response-stimulus").className+=" responded",null==i.key&&(i=n),t.response_ends_trial&&a()},valid_responses:t.choices,rt_method:"performance",persist:!1,allow_held_key:!1});null!==t.stimulus_duration&&this.jsPsych.pluginAPI.setTimeout((()=>{e.querySelector("#jspsych-html-keyboard-response-stimulus").style.visibility="hidden"}),t.stimulus_duration),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(a,t.trial_duration)}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){const n={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),response:this.jsPsych.pluginAPI.getValidKey(e.choices)},i=this.jsPsych.pluginAPI.mergeSimulationData(n,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,i),i}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.create_simulation_data(e,t),a=this.jsPsych.getDisplayElement();this.trial(a,e),n(),null!==i.rt&&this.jsPsych.pluginAPI.pressKey(i.response,i.rt)}}Ht.info=Kt;const Wt={type:W,stimulus:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?sn.audio[Bt.camelCase("halfwayNs")]:sn.audio[Bt.camelCase(`${s.session("character")}Halfway`)],prompt:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${i18next.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${i18next.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n <div class="button"> ${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.continue")}`})} </div>\n </div>\n `:`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${sn.images[Bt.camelCase(`${s.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle" id="halfway-position">\n <p> ${i18next.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${i18next.t("gameBreak.halfwayScreen.text3")}</p>\n </div>\n </div>\n </div>\n <div class="button"> ${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.continue")}`})} </div>\n </div>`,choices:"ALL_KEYS",on_finish:e=>{s.session.set("indexTracking",0)}},Gt={timeline:[{type:W,stimulus:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?sn.audio[Bt.camelCase("endNs")]:sn.audio[Bt.camelCase(`${s.session("character")}End`)],prompt:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${i18next.t("gameBreak.endScreen.text1")} </h3>\n <p> ${i18next.t("gameBreak.endScreen.text2")} </p> \n </div>\n <div class="button">${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.save")}`})}</div>\n </div>\n `:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${sn.images.classroomBackground}" alt= "classroom" style="width:100%;"> \n </div>\n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3> ${i18next.t("gameBreak.endScreen.text3")} </h3>\n <p> ${s.session("character_name")} ${i18next.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${sn.images[Bt.camelCase(`${s.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n <div class="button">${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.save")}`})}</div>\n </div>\n `,choices:"ALL_KEYS",data:{save_trial:!1}},{timeline:[{type:Ht,stimulus:()=>`<div class="jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${i18next.t("gameBreak.debrief.text1")}</h3>\n <p>${i18next.t("gameBreak.debrief.text2")}</p>\n </div>\n <div class="button">${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.close")}`})}</div>\n </div>`}],conditional_function:()=>"demo"===s.session.get("config").userMode},{type:J,fullscreen_mode:!1,delay_after:0}]},Jt={1:{character:"dog",characterName:"Amy",characterActivity:"go to track practice"},2:{character:"cat",characterName:"Carson",characterActivity:"go to debate club"},3:{character:"bird",characterName:"Jaiden",characterActivity:"hang out with my friends"},4:{character:"deer",characterName:"Dylan",characterActivity:"volunteer at the soup kitchen"}},Zt=[1,2,3,4],Qt=["dog","cat","bird","deer"],Xt={timeline:[{type:W,stimulus:()=>sn.audio.studentSelect,prompt:()=>` <div class="jspsych-content-modified">\n <div class="class-container">\n <img src=${sn.images.classroomBackground} alt="background" style="width:100%;"> \n </div> \n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3>${Fe.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${Fe.t("characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n <div class="number">\n ${Zt.map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}\n </div>\n <div class="student">\n ${Qt.map((e=>`<img src=${sn.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${Fe.t("navigation.studentSelect")} \n </div>\n </div>\n `,choices:["1","2","3","4"],data:{save_trial:!1},on_finish:e=>{s.session.set("character",Jt[e.response].character),s.session.set("character_name",Jt[e.response].characterName),s.session.set("character_activity",Jt[e.response].characterActivity)}},{type:W,stimulus:()=>sn.audio[Bt.camelCase(`${s.session("character")}Intro`)],prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${sn.images[Bt.camelCase(`${s.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${Fe.t("characterSelect.studentIntro.paragraph1")} ${s.session("character_name")}. </p>\n <p> ${Fe.t("characterSelect.studentIntro.paragraph2")} ${s.session("character_activity")}. </p>\n <p> ${Fe.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n <div class="button">${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.continue")}`})}</div>\n </div>`,choices:"ALL_KEYS"}],conditional_function:()=>!("nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6)},en=e=>({timeline:[{type:Ht,stimulus:()=>(0===s.session("indexTracking")&&(setTimeout((()=>s.session.set("timeOut",!0)),18e4),"lab"===e||"ai"===e?s.session.set("currentCorpus",qt[e]):s.session.set("currentCorpus",qt[s.session("tosrecCorpusId")])),`<div class = stimulus_div><p class = 'stimulus'>${s.session("currentCorpus")[s.session("indexTracking")].sentence}</p></div>`),prompt:`<div><img class="lower" src="${sn.images.roarSreKeyboard}" alt="arrow keys"></div>`,choices:["ArrowLeft","ArrowRight"],data:{assessment_stage:"test_response"},on_finish:t=>{"arrowleft"===t.response?s.session.set("keyResponse","left"):s.session.set("keyResponse","right"),t.correct=Ut.pluginAPI.compareKeys(s.session("keyResponse"),s.session("currentCorpus")[s.session("indexTracking")].direction),t.correct?s.session.set("dataCorrect",1):s.session.set("dataCorrect",0),Ut.data.addDataToLastTrial({save_trial:!s.session("timeOut"),pid:s.session.get("config").pid,blockId:e,corpusId:"lab"===e||"ai"==e?e:s.session("tosrecCorpusId"),trialNumBlock:s.session("indexTracking")+1,itemId:s.session("currentCorpus")[s.session("indexTracking")].itemId,item:s.session("currentCorpus")[s.session("indexTracking")].sentence,truefalse:s.session("currentCorpus")[s.session("indexTracking")].answer,correct:s.session("dataCorrect")})}},{type:W,stimulus:()=>sn.audio.neutralSoundSub,prompt:`<div><img class="lower" src="${sn.images.roarSreKeyboard}" alt="arrow keys"></div>`,choices:[],trial_duration:200,response_allowed_while_playing:!1,trial_ends_after_audio:!0}],loop_function:function(e){return s.session("indexTracking")===s.session("currentCorpus").length-1||s.session("timeOut")?(s.session.set("indexTracking",0),s.session.set("timeOut",!1),!1):(s.session.transact("indexTracking",(e=>e+1)),!0)}}),tn={type:W,stimulus:()=>sn.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${Fe.t("practice.intro.text1")}</h2>\n <p>${Fe.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="column_2_upper" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> \n ${Fe.t("practice.intro.text3")} \n </p>\n <img width="60%" src="${sn.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="column_2_upper" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> \n ${Fe.t("practice.intro.text4")} \n </p>\n <img width="60%" src="${sn.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${Fe.t("practice.intro.text5")}</b> </p> \n <div class="button">${Fe.t("practice.intro.text6")}</div>\n </div>\n `,choices:"ALL_KEYS",on_finish:e=>{s.session.set("indexTracking",-1)}},nn={type:Ht,stimulus:()=>(console.log("indexTracking: ",s.session("indexTracking")),s.session.transact("indexTracking",(e=>e+1)),console.log("indexTracking after: ",s.session("indexTracking")),console.log("practice corpus:",s.session("practiceCorpus")),`\n <div class = stimulus_div>\n <p class = 'stimulus'>${s.session("practiceCorpus")[s.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>`\n <div> \n <img class="lower" src="${sn.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,choices:["ArrowLeft","ArrowRight"],data:{assessment_stage:"practice_response",corpusId:"practice",save_trial:!0},on_finish:e=>{e.correct=Ut.pluginAPI.compareKeys(e.response,s.session("practiceCorpus")[s.session("indexTracking")].correct_response),s.session.set("arrowResponse",e.response),e.correct?(s.session.set("dataCorrect",1),s.session.set("feedbackResponse","Correct!")):(s.session.set("dataCorrect",0),s.session.set("feedbackResponse","That's not quite right."));const t="arrowleft"===e.response;s.session.set("responseLR",t?"left":"right"),s.session.set("answerRP",t?"false":"true"),s.session.set("responseColor",t?"orange":"blue");const n="arrowleft"===s.session("practiceCorpus")[s.session("indexTracking")].correct_response;s.session.set("correctLR",n?"left":"right"),s.session.set("correctRP",n?"false":"true"),s.session.set("answerColor",n?"orange":"blue"),Ut.data.addDataToLastTrial({pid:s.session.get("config").pid,blockId:"practice",corpusId:"practice",correct:s.session("dataCorrect"),trialNumBlock:s.session("indexTracking"),item:s.session("practiceCorpus")[s.session("indexTracking")].sentence,truefalse:s.session("practiceCorpus")[s.session("indexTracking")].answer})}},an={type:W,response_allowed_while_playing:()=>s.session.get("config").skipInstructions,stimulus:()=>1===s.session("dataCorrect")?sn.audio[Bt.camelCase(`feedback-${s.session("indexTracking")}-correct`)]:sn.audio[Bt.camelCase(`feedback-${s.session("indexTracking")}-incorrect`)],prompt:()=>`\n <div class = stimulus_div>\n <p class="feedback">\n <span class=${s.session("responseColor")}>${s.session("feedbackResponse")} ${Fe.t("practice.feedback.text1",{arrow:"left"===s.session("responseLR")?Fe.t("terms.left"):Fe.t("terms.right"),type:"true"==s.session("answerRP")?Fe.t("terms.true"):Fe.t("terms.false")})}</span>\n <br></br> \n "${s.session("practiceCorpus")[s.session("indexTracking")].sentence}"\n <span class=${s.session("answerColor")}> ${Fe.t("practice.feedback.text2",{arrow:"left"===s.session("correctLR")?Fe.t("terms.left"):Fe.t("terms.right"),type:"true"==s.session("correctRP")?Fe.t("terms.true"):Fe.t("terms.false")})}</span>\n </p>\n </div>\n <img class="lower" src= "${"false"===s.session("correctRP")?sn.images.falseFlashKey:sn.images.trueFlashKey}" alt="arrow keys">`,choices:()=>"false"===s.session("correctRP")?["ArrowLeft"]:["ArrowRight"]};let sn,rn;function on(e){const t="https://storage.googleapis.com/roar-sre";sn=function(e,t,n){var i={images:{},video:{},audio:{}},a=kt(n),s=It(),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=At(e),l=Tt.parse(e).name.replace(/^([A-Z])|[\s-_](\w)/g,(function(e,t,n,i){return n?n.toUpperCase():t.toLowerCase()})),p=Rt(t,e,a,s,n,r,o);i[c][l]=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=Ct(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=Ct(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=Ct(e,2);t[0];var n=t[1];o(n)})),e.default&&o(e.default,!0),i}(Dt,t),rn=Ft(Dt,t).default,Ic(e);const n=Rc(e),i=[rn,...n.timeline];return(()=>{s.session.set("timeOut",!1),s.session.set("practiceCorpus",qt.practice);const e={timeline:[nn,an],repetitions:4};i.push(Yt),i.push(Xt),i.push(tn),i.push(e),i.push(Vt),i.push(en("lab")),i.push(Wt),i.push(en("ai")),i.push(Gt)})(),{jsPsych:Ut,timeline:i}}const cn=[st,{timeline:[{type:$,questions:[{prompt:"Lab ID:",name:"labId",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{s.session.get("config").labId=e.response.labId;const t="yeatmanlab"===s.session.get("config").labId?["prod","roar-prod"]:["external",s.session.get("config").labId];roarConfig.rootDoc="production"===ROAR_DB_DOC?t:["dev","roar-sre"]}}],conditional_function:()=>{if("otherLabs"===s.session.get("config").taskVariant){if(null===s.session.get("config").labId)return!0;{const e="yeatmanlab"===s.session.get("config").labId?["prod","roar-prod"]:["external",s.session.get("config").labId];return roarConfig.rootDoc="production"===ROAR_DB_DOC?e:["dev","roar-sre"],!1}}return!1}},{timeline:[{type:$,questions:[{prompt:"Participant ID:",name:"pid",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{s.session.get("config").pid=e.response.pid}}],conditional_function:function(){return null===s.session.get("config").pid&&"demo"!==s.session.get("config").userMode}},{timeline:[{type:Y,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:()=>Boolean("demo"===s.session.get("config").userMode||"otherLabs"===s.session.get("config").taskVariant&&!0===s.session.get("config").consent)},{timeline:[{type:K,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=>{let t={};for(const n in e.response)""===e.response[n]?t[n]=null:t[n]="retake"===n||"ell"===n?parseInt(e.response[n]):e.response[n];t.grade=s.session.get("config").userMetadata.grade,s.session.get("config").userMetadata=t}}],conditional_function:()=>Boolean("demo"===s.session.get("config").userMode||"otherLabs"===s.session.get("config").taskVariant&&!0===s.session.get("config").consent)},{timeline:[{type:W,stimulus:()=>sn.audio.gradeSelect,prompt:()=>`\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="${sn.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${Fe.t("introduction.gradeSelect.text4")}</div>\n </div>`,choices:["1","2","3","4","5","6","7","8"],on_finish:e=>{s.session.set("tosrecCorpusId","tosrec"+e.response),s.session.get("config").userMetadata.grade=e.response}}],conditional_function:()=>{const e=s.session.get("config").userMetadata.grade;return!(e&&e-Math.round(e)==0&&e<=8&&e>=1)||(s.session.set("tosrecCorpusId","tosrec"+e),!1)}}];var ln=function(){this.__data__=[],this.size=0};var pn=function(e,t){return e===t||e!=e&&t!=t},un=pn;var dn=function(e,t){for(var n=e.length;n--;)if(un(e[n][0],t))return n;return-1},mn=dn,fn=Array.prototype.splice;var hn=dn;var gn=dn;var vn=dn;var yn=ln,bn=function(e){var t=this.__data__,n=mn(t,e);return!(n<0)&&(n==t.length-1?t.pop():fn.call(t,n,1),--this.size,!0)},xn=function(e){var t=this.__data__,n=hn(t,e);return n<0?void 0:t[n][1]},wn=function(e){return gn(this.__data__,e)>-1},_n=function(e,t){var n=this.__data__,i=vn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function En(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])}}En.prototype.clear=yn,En.prototype.delete=bn,En.prototype.get=xn,En.prototype.has=wn,En.prototype.set=_n;var Sn=En,Tn=Sn;var kn=function(){this.__data__=new Tn,this.size=0};var In=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Rn=function(e){return this.__data__.get(e)};var An=function(e){return this.__data__.has(e)},On="object"==typeof t&&t&&t.Object===Object&&t,jn=On,Cn="object"==typeof self&&self&&self.Object===Object&&self,Ln=jn||Cn||Function("return this")(),Fn=Ln.Symbol,Un=Fn,Pn=Object.prototype,zn=Pn.hasOwnProperty,Nn=Pn.toString,qn=Un?Un.toStringTag:void 0;var Mn=function(e){var t=zn.call(e,qn),n=e[qn];try{e[qn]=void 0;var i=!0}catch(e){}var a=Nn.call(e);return i&&(t?e[qn]=n:delete e[qn]),a},Dn=Object.prototype.toString;var $n=Mn,Bn=function(e){return Dn.call(e)},Yn=Fn?Fn.toStringTag:void 0;var Vn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Yn&&Yn in Object(e)?$n(e):Bn(e)};var Kn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Hn=Vn,Wn=Kn;var Gn,Jn=function(e){if(!Wn(e))return!1;var t=Hn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Zn=Ln["__core-js_shared__"],Qn=(Gn=/[^.]+$/.exec(Zn&&Zn.keys&&Zn.keys.IE_PROTO||""))?"Symbol(src)_1."+Gn:"";var Xn=function(e){return!!Qn&&Qn in e},ei=Function.prototype.toString;var ti=function(e){if(null!=e){try{return ei.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ni=Jn,ii=Xn,ai=Kn,si=ti,ri=/^\[object .+?Constructor\]$/,oi=Function.prototype,ci=Object.prototype,li=oi.toString,pi=ci.hasOwnProperty,ui=RegExp("^"+li.call(pi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var di=function(e){return!(!ai(e)||ii(e))&&(ni(e)?ui:ri).test(si(e))},mi=function(e,t){return null==e?void 0:e[t]};var fi=function(e,t){var n=mi(e,t);return di(n)?n:void 0},hi=fi(Ln,"Map"),gi=fi(Object,"create"),vi=gi;var yi=function(){this.__data__=vi?vi(null):{},this.size=0};var bi=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},xi=gi,wi=Object.prototype.hasOwnProperty;var _i=function(e){var t=this.__data__;if(xi){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return wi.call(t,e)?t[e]:void 0},Ei=gi,Si=Object.prototype.hasOwnProperty;var Ti=gi;var ki=yi,Ii=bi,Ri=_i,Ai=function(e){var t=this.__data__;return Ei?void 0!==t[e]:Si.call(t,e)},Oi=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ti&&void 0===t?"__lodash_hash_undefined__":t,this};function ji(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])}}ji.prototype.clear=ki,ji.prototype.delete=Ii,ji.prototype.get=Ri,ji.prototype.has=Ai,ji.prototype.set=Oi;var Ci=ji,Li=Sn,Fi=hi;var Ui=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Pi=function(e,t){var n=e.__data__;return Ui(t)?n["string"==typeof t?"string":"hash"]:n.map},zi=Pi;var Ni=Pi;var qi=Pi;var Mi=Pi;var Di=function(){this.size=0,this.__data__={hash:new Ci,map:new(Fi||Li),string:new Ci}},$i=function(e){var t=zi(this,e).delete(e);return this.size-=t?1:0,t},Bi=function(e){return Ni(this,e).get(e)},Yi=function(e){return qi(this,e).has(e)},Vi=function(e,t){var n=Mi(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Ki(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])}}Ki.prototype.clear=Di,Ki.prototype.delete=$i,Ki.prototype.get=Bi,Ki.prototype.has=Yi,Ki.prototype.set=Vi;var Hi=Ki,Wi=Sn,Gi=hi,Ji=Hi;var Zi=Sn,Qi=kn,Xi=In,ea=Rn,ta=An,na=function(e,t){var n=this.__data__;if(n instanceof Wi){var i=n.__data__;if(!Gi||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ji(i)}return n.set(e,t),this.size=n.size,this};function ia(e){var t=this.__data__=new Zi(e);this.size=t.size}ia.prototype.clear=Qi,ia.prototype.delete=Xi,ia.prototype.get=ea,ia.prototype.has=ta,ia.prototype.set=na;var aa=ia;var sa=Hi,ra=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oa=function(e){return this.__data__.has(e)};function ca(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new sa;++t<n;)this.add(e[t])}ca.prototype.add=ca.prototype.push=ra,ca.prototype.has=oa;var la=ca,pa=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},ua=function(e,t){return e.has(t)};var da=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),p=s.get(t);if(l&&p)return l==t&&p==e;var u=-1,d=!0,m=2&n?new la:void 0;for(s.set(e,t),s.set(t,e);++u<o;){var f=e[u],h=t[u];if(i)var g=r?i(h,f,u,t,e,s):i(f,h,u,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(m){if(!pa(t,(function(e,t){if(!ua(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};var ma=Ln.Uint8Array,fa=pn,ha=da,ga=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n},va=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},ya=Fn?Fn.prototype:void 0,ba=ya?ya.valueOf:void 0;var xa=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 ma(e),new ma(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return fa(+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=ga;case"[object Set]":var c=1&i;if(o||(o=va),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var p=ha(o(e),o(t),i,a,s,r);return r.delete(e),p;case"[object Symbol]":if(ba)return ba.call(e)==ba.call(t)}return!1};var wa=function(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e},_a=Array.isArray,Ea=wa,Sa=_a;var Ta=function(e,t,n){var i=t(e);return Sa(e)?i:Ea(i,n(e))};var ka=function(){return[]},Ia=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},Ra=ka,Aa=Object.prototype.propertyIsEnumerable,Oa=Object.getOwnPropertySymbols,ja=Oa?function(e){return null==e?[]:(e=Object(e),Ia(Oa(e),(function(t){return Aa.call(e,t)})))}:Ra;var Ca=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i};var La=function(e){return null!=e&&"object"==typeof e},Fa=Vn,Ua=La;var Pa=function(e){return Ua(e)&&"[object Arguments]"==Fa(e)},za=La,Na=Object.prototype,qa=Na.hasOwnProperty,Ma=Na.propertyIsEnumerable,Da=Pa(function(){return arguments}())?Pa:function(e){return za(e)&&qa.call(e,"callee")&&!Ma.call(e,"callee")},$a={exports:{}};var Ba=function(){return!1};!function(e,t){var n=Ln,i=Ba,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}($a,$a.exports);var Ya=$a.exports,Va=/^(?:0|[1-9]\d*)$/;var Ka=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Va.test(e))&&e>-1&&e%1==0&&e<t};var Ha=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Wa=Vn,Ga=Ha,Ja=La,Za={};Za["[object Float32Array]"]=Za["[object Float64Array]"]=Za["[object Int8Array]"]=Za["[object Int16Array]"]=Za["[object Int32Array]"]=Za["[object Uint8Array]"]=Za["[object Uint8ClampedArray]"]=Za["[object Uint16Array]"]=Za["[object Uint32Array]"]=!0,Za["[object Arguments]"]=Za["[object Array]"]=Za["[object ArrayBuffer]"]=Za["[object Boolean]"]=Za["[object DataView]"]=Za["[object Date]"]=Za["[object Error]"]=Za["[object Function]"]=Za["[object Map]"]=Za["[object Number]"]=Za["[object Object]"]=Za["[object RegExp]"]=Za["[object Set]"]=Za["[object String]"]=Za["[object WeakMap]"]=!1;var Qa=function(e){return Ja(e)&&Ga(e.length)&&!!Za[Wa(e)]};var Xa=function(e){return function(t){return e(t)}},es={exports:{}};!function(e,t){var n=On,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}(es,es.exports);var ts=es.exports,ns=Qa,is=Xa,as=ts&&ts.isTypedArray,ss=as?is(as):ns,rs=Ca,os=Da,cs=_a,ls=Ya,ps=Ka,us=ss,ds=Object.prototype.hasOwnProperty;var ms=function(e,t){var n=cs(e),i=!n&&os(e),a=!n&&!i&&ls(e),s=!n&&!i&&!a&&us(e),r=n||i||a||s,o=r?rs(e.length,String):[],c=o.length;for(var l in e)!t&&!ds.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ps(l,c))||o.push(l);return o},fs=Object.prototype;var hs=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fs)};var gs=function(e,t){return function(n){return e(t(n))}},vs=gs(Object.keys,Object),ys=hs,bs=vs,xs=Object.prototype.hasOwnProperty;var ws=Jn,_s=Ha;var Es=function(e){return null!=e&&_s(e.length)&&!ws(e)},Ss=ms,Ts=function(e){if(!ys(e))return bs(e);var t=[];for(var n in Object(e))xs.call(e,n)&&"constructor"!=n&&t.push(n);return t},ks=Es;var Is=function(e){return ks(e)?Ss(e):Ts(e)},Rs=Ta,As=ja,Os=Is;var js=function(e){return Rs(e,Os,As)},Cs=Object.prototype.hasOwnProperty;var Ls=function(e,t,n,i,a,s){var r=1&n,o=js(e),c=o.length;if(c!=js(t).length&&!r)return!1;for(var l=c;l--;){var p=o[l];if(!(r?p in t:Cs.call(t,p)))return!1}var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var f=r;++l<c;){var h=e[p=o[l]],g=t[p];if(i)var v=r?i(g,h,p,t,e,s):i(h,g,p,e,t,s);if(!(void 0===v?h===g||a(h,g,n,i,s):v)){m=!1;break}f||(f="constructor"==p)}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},Fs=fi(Ln,"DataView"),Us=hi,Ps=fi(Ln,"Promise"),zs=fi(Ln,"Set"),Ns=fi(Ln,"WeakMap"),qs=Vn,Ms=ti,Ds="[object Map]",$s="[object Promise]",Bs="[object Set]",Ys="[object WeakMap]",Vs="[object DataView]",Ks=Ms(Fs),Hs=Ms(Us),Ws=Ms(Ps),Gs=Ms(zs),Js=Ms(Ns),Zs=qs;(Fs&&Zs(new Fs(new ArrayBuffer(1)))!=Vs||Us&&Zs(new Us)!=Ds||Ps&&Zs(Ps.resolve())!=$s||zs&&Zs(new zs)!=Bs||Ns&&Zs(new Ns)!=Ys)&&(Zs=function(e){var t=qs(e),n="[object Object]"==t?e.constructor:void 0,i=n?Ms(n):"";if(i)switch(i){case Ks:return Vs;case Hs:return Ds;case Ws:return $s;case Gs:return Bs;case Js:return Ys}return t});var Qs=aa,Xs=da,er=xa,tr=Ls,nr=Zs,ir=_a,ar=Ya,sr=ss,rr="[object Arguments]",or="[object Array]",cr="[object Object]",lr=Object.prototype.hasOwnProperty;var pr=function(e,t,n,i,a,s){var r=ir(e),o=ir(t),c=r?or:nr(e),l=o?or:nr(t),p=(c=c==rr?cr:c)==cr,u=(l=l==rr?cr:l)==cr,d=c==l;if(d&&ar(e)){if(!ar(t))return!1;r=!0,p=!1}if(d&&!p)return s||(s=new Qs),r||sr(e)?Xs(e,t,n,i,a,s):er(e,t,c,n,i,a,s);if(!(1&n)){var m=p&&lr.call(e,"__wrapped__"),f=u&&lr.call(t,"__wrapped__");if(m||f){var h=m?e.value():e,g=f?t.value():t;return s||(s=new Qs),a(h,g,n,i,s)}}return!!d&&(s||(s=new Qs),tr(e,t,n,i,a,s))},ur=La;var dr=function e(t,n,i,a,s){return t===n||(null==t||null==n||!ur(t)&&!ur(n)?t!=t&&n!=n:pr(t,n,i,a,e,s))},mr=aa,fr=dr;var hr=Kn;var gr=function(e){return e==e&&!hr(e)},vr=gr,yr=Is;var br=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},xr=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],p=o[1];if(r&&o[2]){if(void 0===l&&!(c in e))return!1}else{var u=new mr;if(i)var d=i(l,p,c,e,t,u);if(!(void 0===d?fr(p,l,3,i,u):d))return!1}}return!0},wr=function(e){for(var t=yr(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,vr(a)]}return t},_r=br;var Er=function(e){var t=wr(e);return 1==t.length&&t[0][2]?_r(t[0][0],t[0][1]):function(n){return n===e||xr(n,e,t)}},Sr=Vn,Tr=La;var kr=function(e){return"symbol"==typeof e||Tr(e)&&"[object Symbol]"==Sr(e)},Ir=_a,Rr=kr,Ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Or=/^\w*$/;var jr=function(e,t){if(Ir(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Rr(e))||(Or.test(e)||!Ar.test(e)||null!=t&&e in Object(t))},Cr=Hi;function Lr(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(Lr.Cache||Cr),n}Lr.Cache=Cr;var Fr=Lr;var Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pr=/\\(\\)?/g,zr=function(e){var t=Fr(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(Ur,(function(e,n,i,a){t.push(i?a.replace(Pr,"$1"):n||e)})),t}));var Nr=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},qr=Nr,Mr=_a,Dr=kr,$r=Fn?Fn.prototype:void 0,Br=$r?$r.toString:void 0;var Yr=function e(t){if("string"==typeof t)return t;if(Mr(t))return qr(t,e)+"";if(Dr(t))return Br?Br.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Vr=Yr;var Kr=_a,Hr=jr,Wr=zr,Gr=function(e){return null==e?"":Vr(e)};var Jr=function(e,t){return Kr(e)?e:Hr(e,t)?[e]:Wr(Gr(e))},Zr=kr;var Qr=function(e){if("string"==typeof e||Zr(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Xr=Jr,eo=Qr;var to=function(e,t){for(var n=0,i=(t=Xr(t,e)).length;null!=e&&n<i;)e=e[eo(t[n++])];return n&&n==i?e:void 0},no=to;var io=function(e,t,n){var i=null==e?void 0:no(e,t);return void 0===i?n:i};var ao=Jr,so=Da,ro=_a,oo=Ka,co=Ha,lo=Qr;var po=function(e,t,n){for(var i=-1,a=(t=ao(t,e)).length,s=!1;++i<a;){var r=lo(t[i]);if(!(s=null!=e&&n(e,r)))break;e=e[r]}return s||++i!=a?s:!!(a=null==e?0:e.length)&&co(a)&&oo(r,a)&&(ro(e)||so(e))},uo=function(e,t){return null!=e&&t in Object(e)},mo=po;var fo=function(e,t){return null!=e&&mo(e,t,uo)},ho=dr,go=io,vo=fo,yo=jr,bo=gr,xo=br,wo=Qr;var _o=function(e,t){return yo(e)&&bo(t)?xo(wo(e),t):function(n){var i=go(n,e);return void 0===i&&i===t?vo(n,e):ho(t,i,3)}};var Eo=to;var So=function(e){return function(t){return Eo(t,e)}},To=function(e){return function(t){return null==t?void 0:t[e]}},ko=So,Io=jr,Ro=Qr;var Ao=function(e){return Io(e)?To(Ro(e)):ko(e)},Oo=Er,jo=_o,Co=function(e){return e},Lo=_a,Fo=Ao;var Uo=function(e){return"function"==typeof e?e:null==e?Co:"object"==typeof e?Lo(e)?jo(e[0],e[1]):Oo(e):Fo(e)};var Po=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)}},zo=fi,No=function(){try{var e=zo(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var qo=function(e,t,n){"__proto__"==t&&No?No(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Mo=pn,Do=Object.prototype.hasOwnProperty;var $o=function(e,t,n){var i=e[t];Do.call(e,t)&&Mo(i,n)&&(void 0!==n||t in e)||qo(e,t,n)},Bo=Jr,Yo=Ka,Vo=Kn,Ko=Qr;var Ho=function(e,t,n,i){if(!Vo(e))return e;for(var a=-1,s=(t=Bo(t,e)).length,r=s-1,o=e;null!=o&&++a<s;){var c=Ko(t[a]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=r){var p=o[c];void 0===(l=i?i(p,c,o):void 0)&&(l=Vo(p)?p:Yo(t[a+1])?[]:{})}$o(o,c,l),o=o[c]}return e},Wo=to,Go=Ho,Jo=Jr;var Zo=function(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var r=t[i],o=Wo(e,r);n(o,r)&&Go(s,Jo(r,e),o)}return s},Qo=gs(Object.getPrototypeOf,Object),Xo=wa,ec=Qo,tc=ja,nc=ka,ic=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Xo(t,tc(e)),e=ec(e);return t}:nc;var ac=Kn,sc=hs,rc=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},oc=Object.prototype.hasOwnProperty;var cc=ms,lc=function(e){if(!ac(e))return rc(e);var t=sc(e),n=[];for(var i in e)("constructor"!=i||!t&&oc.call(e,i))&&n.push(i);return n},pc=Es;var uc=Ta,dc=ic,mc=function(e){return pc(e)?cc(e,!0):lc(e)};var fc=Nr,hc=Uo,gc=Zo,vc=function(e){return uc(e,mc,dc)};var yc=function(e,t){if(null==e)return{};var n=fc(vc(e),(function(e){return[e]}));return t=hc(t),gc(e,n,(function(e,n){return t(e,n[0])}))},bc=Uo,xc=Po,wc=yc;var _c=n((function(e,t){return wc(e,xc(bc(t)))}));var Ec=n((function(e){return null===e}));var Sc=n((function(e){return void 0===e}));const Tc=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,t.test?.thetaEstimate||null]))),kc=(e,t)=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,t]))),Ic=e=>{e.displayElement&&(Ut.opts.display_element=e.display_element);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};Ut.opts.on_finish=t(Ut.opts.on_finish,(()=>{e.firekit.finishRun(),e.experimentFinished&&e.experimentFinished()})),Ut.opts.on_data_update=t(Ut.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,Tc,kc)})),window.addEventListener("error",(t=>{const{msg:n,url:i,lineNo:a,columnNo:s,error:r}=t;e.firekit?.writeTrial({assessment_stage:"error",lastTrial:Ut.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()})})),s.session.has("initialized")&&s.local("initialized")||(s.session.set("practiceIndex",0),s.session.set("currentBlockIndex",0),s.session.set("trialNumBlock",0),s.session.set("trialNumTotal",0),s.session.set("demoCounter",0),s.session.set("nextStimulus",null),s.session.set("response",""),s.session.set("dataCorrect",""),s.session.set("keyResponse",""),s.session.set("gradeKeyResponse",[]),s.session.set("currentCorpus",[]),s.session.set("currentTrialCorrect",!0),s.session.set("coinTrackingIndex",0),s.session.set("initialized",!0)),s.session},Rc=e=>({timeline:cn,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})}});class Ac{constructor(e,t,n,i){this.gameParams=t,this.userParams=n,this.firekit=e,this.displayElement=i}async init(){await this.firekit.startRun();const e=await(async(e,t,n)=>{const i=_c(_c(t,Ec),Sc),{userMode:a,pid:s,labId:r,taskVariant:o,userMetadata:c,urlParams:l,consent:p,language:u,skipInstructions:d,grade:m}=i;s&&s.split("-")[0];const f={pid:s,labId:r,userMode:a,taskVariant:o||"pilot",consent:p||!0,userMetadata:{grade:m},startTime:new Date,urlParams:l,firekit:e,language:u,skipInstructions:d||!0,displayElement:n||null};return null!==f.pid&&await f.firekit.updateUser({assessmentPid:f.pid,...c}),f})(this.firekit,{...this.gameParams,...this.userParams},this.displayElement);return s.session.set("config",e),on(e)}async run(){const{jsPsych:e,timeline:t}=await this.init();e.run(t),await(e=>{const t=n=>{e()?n():setTimeout((e=>t(n)),400)};return new Promise(t)})((()=>!0===this.firekit.run.completed))}}export{Ac as default};
25
+ */!function(e,n){(function(){var i,a="Expected a function",s="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,l=64,p=128,u=256,d=1/0,m=9007199254740991,f=NaN,h=4294967295,g=[["ary",p],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",l],["rearg",u]],v="[object Arguments]",y="[object Array]",b="[object Boolean]",x="[object Date]",w="[object Error]",_="[object Function]",E="[object GeneratorFunction]",S="[object Map]",T="[object Number]",k="[object Object]",I="[object Promise]",R="[object RegExp]",A="[object Set]",O="[object String]",j="[object Symbol]",C="[object WeakMap]",L="[object ArrayBuffer]",F="[object DataView]",U="[object Float32Array]",P="[object Float64Array]",z="[object Int8Array]",N="[object Int16Array]",q="[object Int32Array]",M="[object Uint8Array]",D="[object Uint8ClampedArray]",$="[object Uint16Array]",B="[object Uint32Array]",Y=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,G=RegExp(H.source),J=RegExp(W.source),Z=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),se=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",je="["+Ee+"]",Ce="["+Ae+"]",Le="["+Se+"]",Fe="\\d+",Ue="["+Te+"]",Pe="["+ke+"]",ze="[^"+Ee+Ae+Fe+Te+ke+Ie+"]",Ne="\\ud83c[\\udffb-\\udfff]",qe="[^"+Ee+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+Ie+"]",Be="\\u200d",Ye="(?:"+Pe+"|"+ze+")",Ve="(?:"+$e+"|"+ze+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Le+"|"+Ne+")"+"?",Ge="["+Re+"]?",Je=Ge+We+("(?:"+Be+"(?:"+[qe,Me,De].join("|")+")"+Ge+We+")*"),Ze="(?:"+[Ue,Me,De].join("|")+")"+Je,Qe="(?:"+[qe+Le+"?",Le,Me,De,je].join("|")+")",Xe=RegExp(Oe,"g"),et=RegExp(Le,"g"),tt=RegExp(Ne+"(?="+Ne+")|"+Qe+Je,"g"),nt=RegExp([$e+"?"+Pe+"+"+Ke+"(?="+[Ce,$e,"$"].join("|")+")",Ve+"+"+He+"(?="+[Ce,$e+Ye,"$"].join("|")+")",$e+"?"+Ye+"+"+Ke,$e+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fe,Ze].join("|"),"g"),it=RegExp("["+Be+Ee+Se+Re+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[U]=ot[P]=ot[z]=ot[N]=ot[q]=ot[M]=ot[D]=ot[$]=ot[B]=!0,ot[v]=ot[y]=ot[L]=ot[b]=ot[F]=ot[x]=ot[w]=ot[_]=ot[S]=ot[T]=ot[k]=ot[R]=ot[A]=ot[O]=ot[C]=!1;var ct={};ct[v]=ct[y]=ct[L]=ct[F]=ct[b]=ct[x]=ct[U]=ct[P]=ct[z]=ct[N]=ct[q]=ct[S]=ct[T]=ct[k]=ct[R]=ct[A]=ct[O]=ct[j]=ct[M]=ct[D]=ct[$]=ct[B]=!0,ct[w]=ct[_]=ct[C]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pt=parseFloat,ut=parseInt,dt="object"==typeof t&&t&&t.Object===Object&&t,mt="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||mt||Function("return this")(),ht=n&&!n.nodeType&&n,gt=ht&&e&&!e.nodeType&&e,vt=gt&&gt.exports===ht,yt=vt&&dt.process,bt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),xt=bt&&bt.isArrayBuffer,wt=bt&&bt.isDate,_t=bt&&bt.isMap,Et=bt&&bt.isRegExp,St=bt&&bt.isSet,Tt=bt&&bt.isTypedArray;function kt(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)}function It(e,t,n,i){for(var a=-1,s=null==e?0:e.length;++a<s;){var r=e[a];t(i,r,n(r),e)}return i}function Rt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function jt(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}function Ct(e,t){return!!(null==e?0:e.length)&&$t(e,t,0)>-1}function Lt(e,t,n){for(var i=-1,a=null==e?0:e.length;++i<a;)if(n(t,e[i]))return!0;return!1}function Ft(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}function Ut(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}function Pt(e,t,n,i){var a=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++a]);++a<s;)n=t(n,e[a],a,e);return n}function zt(e,t,n,i){var a=null==e?0:e.length;for(i&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Nt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var qt=Kt("length");function Mt(e,t,n){var i;return n(e,(function(e,n,a){if(t(e,n,a))return i=n,!1})),i}function Dt(e,t,n,i){for(var a=e.length,s=n+(i?1:-1);i?s--:++s<a;)if(t(e[s],s,e))return s;return-1}function $t(e,t,n){return t==t?function(e,t,n){var i=n-1,a=e.length;for(;++i<a;)if(e[i]===t)return i;return-1}(e,t,n):Dt(e,Yt,n)}function Bt(e,t,n,i){for(var a=n-1,s=e.length;++a<s;)if(i(e[a],t))return a;return-1}function Yt(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Kt(e){return function(t){return null==t?i:t[e]}}function Ht(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,n,i,a){return a(e,(function(e,a,s){n=i?(i=!1,e):t(n,e,a,s)})),n}function Gt(e,t){for(var n,a=-1,s=e.length;++a<s;){var r=t(e[a]);r!==i&&(n=n===i?r:n+r)}return n}function Jt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Zt(e){return e?e.slice(0,hn(e)+1).replace(se,""):e}function Qt(e){return function(t){return e(t)}}function Xt(e,t){return Ft(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&$t(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&$t(t,e[n],0)>-1;);return n}var an=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),sn=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(e){return"\\"+lt[e]}function on(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function pn(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var o=e[n];o!==t&&o!==r||(e[n]=r,s[a++]=n)}return s}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function mn(e){return on(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):qt(e)}function fn(e){return on(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var gn=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n,re=(t=null==t?ft:vn.defaults(ft.Object(),t,vn.pick(ft,st))).Array,Ee=t.Date,Se=t.Error,Te=t.Function,ke=t.Math,Ie=t.Object,Re=t.RegExp,Ae=t.String,Oe=t.TypeError,je=re.prototype,Ce=Te.prototype,Le=Ie.prototype,Fe=t["__core-js_shared__"],Ue=Ce.toString,Pe=Le.hasOwnProperty,ze=0,Ne=(n=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",qe=Le.toString,Me=Ue.call(Ie),De=ft._,$e=Re("^"+Ue.call(Pe).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=vt?t.Buffer:i,Ye=t.Symbol,Ve=t.Uint8Array,Ke=Be?Be.allocUnsafe:i,He=ln(Ie.getPrototypeOf,Ie),We=Ie.create,Ge=Le.propertyIsEnumerable,Je=je.splice,Ze=Ye?Ye.isConcatSpreadable:i,Qe=Ye?Ye.iterator:i,tt=Ye?Ye.toStringTag:i,it=function(){try{var e=ds(Ie,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,dt=Ee&&Ee.now!==ft.Date.now&&Ee.now,mt=t.setTimeout!==ft.setTimeout&&t.setTimeout,ht=ke.ceil,gt=ke.floor,yt=Ie.getOwnPropertySymbols,bt=Be?Be.isBuffer:i,qt=t.isFinite,Ht=je.join,yn=ln(Ie.keys,Ie),bn=ke.max,xn=ke.min,wn=Ee.now,_n=t.parseInt,En=ke.random,Sn=je.reverse,Tn=ds(t,"DataView"),kn=ds(t,"Map"),In=ds(t,"Promise"),Rn=ds(t,"Set"),An=ds(t,"WeakMap"),On=ds(Ie,"create"),jn=An&&new An,Cn={},Ln=Ns(Tn),Fn=Ns(kn),Un=Ns(In),Pn=Ns(Rn),zn=Ns(An),Nn=Ye?Ye.prototype:i,qn=Nn?Nn.valueOf:i,Mn=Nn?Nn.toString:i;function Dn(e){if(to(e)&&!Yr(e)&&!(e instanceof Vn)){if(e instanceof Yn)return e;if(Pe.call(e,"__wrapped__"))return qs(e)}return new Yn(e)}var $n=function(){function e(){}return function(t){if(!eo(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Yn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Kn(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])}}function Hn(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])}}function Wn(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])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Wn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Zn(e,t){var n=Yr(e),i=!n&&Br(e),a=!n&&!i&&Wr(e),s=!n&&!i&&!a&&lo(e),r=n||i||a||s,o=r?Jt(e.length,Ae):[],c=o.length;for(var l in e)!t&&!Pe.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bs(l,c))||o.push(l);return o}function Qn(e){var t=e.length;return t?e[Gi(0,t-1)]:i}function Xn(e,t){return Us(Oa(e),ci(t,0,e.length))}function ei(e){return Us(Oa(e))}function ti(e,t,n){(n!==i&&!Mr(e[t],n)||n===i&&!(t in e))&&ri(e,t,n)}function ni(e,t,n){var a=e[t];Pe.call(e,t)&&Mr(a,n)&&(n!==i||t in e)||ri(e,t,n)}function ii(e,t){for(var n=e.length;n--;)if(Mr(e[n][0],t))return n;return-1}function ai(e,t,n,i){return mi(e,(function(e,a,s){t(i,e,n(e),s)})),i}function si(e,t){return e&&ja(t,Co(t),e)}function ri(e,t,n){"__proto__"==t&&it?it(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function oi(e,t){for(var n=-1,a=t.length,s=re(a),r=null==e;++n<a;)s[n]=r?i:Io(e,t[n]);return s}function ci(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function li(e,t,n,a,s,r){var o,c=1&t,l=2&t,p=4&t;if(n&&(o=s?n(e,a,s,r):n(e)),o!==i)return o;if(!eo(e))return e;var u=Yr(e);if(u){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Oa(e,o)}else{var d=hs(e),m=d==_||d==E;if(Wr(e))return Sa(e,c);if(d==k||d==v||m&&!s){if(o=l||m?{}:vs(e),!c)return l?function(e,t){return ja(e,fs(e),t)}(e,function(e,t){return e&&ja(t,Lo(t),e)}(o,e)):function(e,t){return ja(e,ms(e),t)}(e,si(o,e))}else{if(!ct[d])return s?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case L:return Ta(e);case b:case x:return new i(+e);case F:return function(e,t){var n=t?Ta(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case U:case P:case z:case N:case q:case M:case D:case $:case B:return ka(e,n);case S:return new i;case T:case O:return new i(e);case R:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new i;case j:return a=e,qn?Ie(qn.call(a)):{}}var a}(e,d,c)}}r||(r=new Jn);var f=r.get(e);if(f)return f;r.set(e,o),ro(e)?e.forEach((function(i){o.add(li(i,t,n,i,e,r))})):no(e)&&e.forEach((function(i,a){o.set(a,li(i,t,n,a,e,r))}));var h=u?i:(p?l?ss:as:l?Lo:Co)(e);return Rt(h||e,(function(i,a){h&&(i=e[a=i]),ni(o,a,li(i,t,n,a,e,r))})),o}function pi(e,t,n){var a=n.length;if(null==e)return!a;for(e=Ie(e);a--;){var s=n[a],r=t[s],o=e[s];if(o===i&&!(s in e)||!r(o))return!1}return!0}function ui(e,t,n){if("function"!=typeof e)throw new Oe(a);return js((function(){e.apply(i,n)}),t)}function di(e,t,n,i){var a=-1,s=Ct,r=!0,o=e.length,c=[],l=t.length;if(!o)return c;n&&(t=Ft(t,Qt(n))),i?(s=Lt,r=!1):t.length>=200&&(s=en,r=!1,t=new Gn(t));e:for(;++a<o;){var p=e[a],u=null==n?p:n(p);if(p=i||0!==p?p:0,r&&u==u){for(var d=l;d--;)if(t[d]===u)continue e;c.push(p)}else s(t,u,i)||c.push(p)}return c}Dn.templateSettings={escape:Z,evaluate:Q,interpolate:X,variable:"",imports:{_:Dn}},Dn.prototype=Bn.prototype,Dn.prototype.constructor=Dn,Yn.prototype=$n(Bn.prototype),Yn.prototype.constructor=Yn,Vn.prototype=$n(Bn.prototype),Vn.prototype.constructor=Vn,Kn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Kn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===s?i:n}return Pe.call(t,e)?t[e]:i},Kn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==i:Pe.call(t,e)},Kn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===i?s:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},Hn.prototype.get=function(e){var t=this.__data__,n=ii(t,e);return n<0?i:t[n][1]},Hn.prototype.has=function(e){return ii(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,i=ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(kn||Hn),string:new Kn}},Wn.prototype.delete=function(e){var t=ps(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return ps(this,e).get(e)},Wn.prototype.has=function(e){return ps(this,e).has(e)},Wn.prototype.set=function(e,t){var n=ps(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,s),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var i=n.__data__;if(!kn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(i)}return n.set(e,t),this.size=n.size,this};var mi=Fa(wi),fi=Fa(_i,!0);function hi(e,t){var n=!0;return mi(e,(function(e,i,a){return n=!!t(e,i,a)})),n}function gi(e,t,n){for(var a=-1,s=e.length;++a<s;){var r=e[a],o=t(r);if(null!=o&&(c===i?o==o&&!co(o):n(o,c)))var c=o,l=r}return l}function vi(e,t){var n=[];return mi(e,(function(e,i,a){t(e,i,a)&&n.push(e)})),n}function yi(e,t,n,i,a){var s=-1,r=e.length;for(n||(n=ys),a||(a=[]);++s<r;){var o=e[s];t>0&&n(o)?t>1?yi(o,t-1,n,i,a):Ut(a,o):i||(a[a.length]=o)}return a}var bi=Ua(),xi=Ua(!0);function wi(e,t){return e&&bi(e,t,Co)}function _i(e,t){return e&&xi(e,t,Co)}function Ei(e,t){return jt(t,(function(t){return Zr(e[t])}))}function Si(e,t){for(var n=0,a=(t=xa(t,e)).length;null!=e&&n<a;)e=e[zs(t[n++])];return n&&n==a?e:i}function Ti(e,t,n){var i=t(e);return Yr(e)?i:Ut(i,n(e))}function ki(e){return null==e?e===i?"[object Undefined]":"[object Null]":tt&&tt in Ie(e)?function(e){var t=Pe.call(e,tt),n=e[tt];try{e[tt]=i;var a=!0}catch(e){}var s=qe.call(e);a&&(t?e[tt]=n:delete e[tt]);return s}(e):function(e){return qe.call(e)}(e)}function Ii(e,t){return e>t}function Ri(e,t){return null!=e&&Pe.call(e,t)}function Ai(e,t){return null!=e&&t in Ie(e)}function Oi(e,t,n){for(var a=n?Lt:Ct,s=e[0].length,r=e.length,o=r,c=re(r),l=1/0,p=[];o--;){var u=e[o];o&&t&&(u=Ft(u,Qt(t))),l=xn(u.length,l),c[o]=!n&&(t||s>=120&&u.length>=120)?new Gn(o&&u):i}u=e[0];var d=-1,m=c[0];e:for(;++d<s&&p.length<l;){var f=u[d],h=t?t(f):f;if(f=n||0!==f?f:0,!(m?en(m,h):a(p,h,n))){for(o=r;--o;){var g=c[o];if(!(g?en(g,h):a(e[o],h,n)))continue e}m&&m.push(h),p.push(f)}}return p}function ji(e,t,n){var a=null==(e=Rs(e,t=xa(t,e)))?e:e[zs(Js(t))];return null==a?i:kt(a,e,n)}function Ci(e){return to(e)&&ki(e)==v}function Li(e,t,n,a,s){return e===t||(null==e||null==t||!to(e)&&!to(t)?e!=e&&t!=t:function(e,t,n,a,s,r){var o=Yr(e),c=Yr(t),l=o?y:hs(e),p=c?y:hs(t),u=(l=l==v?k:l)==k,d=(p=p==v?k:p)==k,m=l==p;if(m&&Wr(e)){if(!Wr(t))return!1;o=!0,u=!1}if(m&&!u)return r||(r=new Jn),o||lo(e)?ns(e,t,n,a,s,r):function(e,t,n,i,a,s,r){switch(n){case F:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!s(new Ve(e),new Ve(t)));case b:case x:case T:return Mr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case R:case O:return e==t+"";case S:var o=cn;case A:var c=1&i;if(o||(o=un),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var p=ns(o(e),o(t),i,a,s,r);return r.delete(e),p;case j:if(qn)return qn.call(e)==qn.call(t)}return!1}(e,t,l,n,a,s,r);if(!(1&n)){var f=u&&Pe.call(e,"__wrapped__"),h=d&&Pe.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,_=h?t.value():t;return r||(r=new Jn),s(g,_,n,a,r)}}if(!m)return!1;return r||(r=new Jn),function(e,t,n,a,s,r){var o=1&n,c=as(e),l=c.length,p=as(t),u=p.length;if(l!=u&&!o)return!1;var d=l;for(;d--;){var m=c[d];if(!(o?m in t:Pe.call(t,m)))return!1}var f=r.get(e),h=r.get(t);if(f&&h)return f==t&&h==e;var g=!0;r.set(e,t),r.set(t,e);var v=o;for(;++d<l;){var y=e[m=c[d]],b=t[m];if(a)var x=o?a(b,y,m,t,e,r):a(y,b,m,e,t,r);if(!(x===i?y===b||s(y,b,n,a,r):x)){g=!1;break}v||(v="constructor"==m)}if(g&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,n,a,s,r)}(e,t,n,a,Li,s))}function Fi(e,t,n,a){var s=n.length,r=s,o=!a;if(null==e)return!r;for(e=Ie(e);s--;){var c=n[s];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<r;){var l=(c=n[s])[0],p=e[l],u=c[1];if(o&&c[2]){if(p===i&&!(l in e))return!1}else{var d=new Jn;if(a)var m=a(p,u,l,e,t,d);if(!(m===i?Li(u,p,3,a,d):m))return!1}}return!0}function Ui(e){return!(!eo(e)||(t=e,Ne&&Ne in t))&&(Zr(e)?$e:ve).test(Ns(e));var t}function Pi(e){return"function"==typeof e?e:null==e?ac:"object"==typeof e?Yr(e)?$i(e[0],e[1]):Di(e):mc(e)}function zi(e){if(!Ss(e))return yn(e);var t=[];for(var n in Ie(e))Pe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ni(e){if(!eo(e))return function(e){var t=[];if(null!=e)for(var n in Ie(e))t.push(n);return t}(e);var t=Ss(e),n=[];for(var i in e)("constructor"!=i||!t&&Pe.call(e,i))&&n.push(i);return n}function qi(e,t){return e<t}function Mi(e,t){var n=-1,i=Kr(e)?re(e.length):[];return mi(e,(function(e,a,s){i[++n]=t(e,a,s)})),i}function Di(e){var t=us(e);return 1==t.length&&t[0][2]?ks(t[0][0],t[0][1]):function(n){return n===e||Fi(n,e,t)}}function $i(e,t){return ws(e)&&Ts(t)?ks(zs(e),t):function(n){var a=Io(n,e);return a===i&&a===t?Ro(n,e):Li(t,a,3)}}function Bi(e,t,n,a,s){e!==t&&bi(t,(function(r,o){if(s||(s=new Jn),eo(r))!function(e,t,n,a,s,r,o){var c=As(e,n),l=As(t,n),p=o.get(l);if(p)return void ti(e,n,p);var u=r?r(c,l,n+"",e,t,o):i,d=u===i;if(d){var m=Yr(l),f=!m&&Wr(l),h=!m&&!f&&lo(l);u=l,m||f||h?Yr(c)?u=c:Hr(c)?u=Oa(c):f?(d=!1,u=Sa(l,!0)):h?(d=!1,u=ka(l,!0)):u=[]:ao(l)||Br(l)?(u=c,Br(c)?u=yo(c):eo(c)&&!Zr(c)||(u=vs(l))):d=!1}d&&(o.set(l,u),s(u,l,a,r,o),o.delete(l));ti(e,n,u)}(e,t,o,n,Bi,a,s);else{var c=a?a(As(e,o),r,o+"",e,t,s):i;c===i&&(c=r),ti(e,o,c)}}),Lo)}function Yi(e,t){var n=e.length;if(n)return bs(t+=t<0?n:0,n)?e[t]:i}function Vi(e,t,n){t=t.length?Ft(t,(function(e){return Yr(e)?function(t){return Si(t,1===e.length?e[0]:e)}:e})):[ac];var i=-1;t=Ft(t,Qt(ls()));var a=Mi(e,(function(e,n,a){var s=Ft(t,(function(t){return t(e)}));return{criteria:s,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,(function(e,t){return function(e,t,n){var i=-1,a=e.criteria,s=t.criteria,r=a.length,o=n.length;for(;++i<r;){var c=Ia(a[i],s[i]);if(c)return i>=o?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ki(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var r=t[i],o=Si(e,r);n(o,r)&&ea(s,xa(r,e),o)}return s}function Hi(e,t,n,i){var a=i?Bt:$t,s=-1,r=t.length,o=e;for(e===t&&(t=Oa(t)),n&&(o=Ft(e,Qt(n)));++s<r;)for(var c=0,l=t[s],p=n?n(l):l;(c=a(o,p,c,i))>-1;)o!==e&&Je.call(o,c,1),Je.call(e,c,1);return e}function Wi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var a=t[n];if(n==i||a!==s){var s=a;bs(a)?Je.call(e,a,1):da(e,a)}}return e}function Gi(e,t){return e+gt(En()*(t-e+1))}function Ji(e,t){var n="";if(!e||t<1||t>m)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Zi(e,t){return Cs(Is(e,t,ac),e+"")}function Qi(e){return Qn(Do(e))}function Xi(e,t){var n=Do(e);return Us(n,ci(t,0,n.length))}function ea(e,t,n,a){if(!eo(e))return e;for(var s=-1,r=(t=xa(t,e)).length,o=r-1,c=e;null!=c&&++s<r;){var l=zs(t[s]),p=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(s!=o){var u=c[l];(p=a?a(u,l,c):i)===i&&(p=eo(u)?u:bs(t[s+1])?[]:{})}ni(c,l,p),c=c[l]}return e}var ta=jn?function(e,t){return jn.set(e,t),e}:ac,na=it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:ac;function ia(e){return Us(Do(e))}function aa(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=re(a);++i<a;)s[i]=e[i+t];return s}function sa(e,t){var n;return mi(e,(function(e,i,a){return!(n=t(e,i,a))})),!!n}function ra(e,t,n){var i=0,a=null==e?i:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;i<a;){var s=i+a>>>1,r=e[s];null!==r&&!co(r)&&(n?r<=t:r<t)?i=s+1:a=s}return a}return oa(e,t,ac,n)}function oa(e,t,n,a){var s=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=n(t))!=t,c=null===t,l=co(t),p=t===i;s<r;){var u=gt((s+r)/2),d=n(e[u]),m=d!==i,f=null===d,h=d==d,g=co(d);if(o)var v=a||h;else v=p?h&&(a||m):c?h&&m&&(a||!f):l?h&&m&&!f&&(a||!g):!f&&!g&&(a?d<=t:d<t);v?s=u+1:r=u}return xn(r,4294967294)}function ca(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var r=e[n],o=t?t(r):r;if(!n||!Mr(o,c)){var c=o;s[a++]=0===r?0:r}}return s}function la(e){return"number"==typeof e?e:co(e)?f:+e}function pa(e){if("string"==typeof e)return e;if(Yr(e))return Ft(e,pa)+"";if(co(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ua(e,t,n){var i=-1,a=Ct,s=e.length,r=!0,o=[],c=o;if(n)r=!1,a=Lt;else if(s>=200){var l=t?null:Ja(e);if(l)return un(l);r=!1,a=en,c=new Gn}else c=t?[]:o;e:for(;++i<s;){var p=e[i],u=t?t(p):p;if(p=n||0!==p?p:0,r&&u==u){for(var d=c.length;d--;)if(c[d]===u)continue e;t&&c.push(u),o.push(p)}else a(c,u,n)||(c!==o&&c.push(u),o.push(p))}return o}function da(e,t){return null==(e=Rs(e,t=xa(t,e)))||delete e[zs(Js(t))]}function ma(e,t,n,i){return ea(e,t,n(Si(e,t)),i)}function fa(e,t,n,i){for(var a=e.length,s=i?a:-1;(i?s--:++s<a)&&t(e[s],s,e););return n?aa(e,i?0:s,i?s+1:a):aa(e,i?s+1:0,i?a:s)}function ha(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,Ut([e],t.args))}),n)}function ga(e,t,n){var i=e.length;if(i<2)return i?ua(e[0]):[];for(var a=-1,s=re(i);++a<i;)for(var r=e[a],o=-1;++o<i;)o!=a&&(s[a]=di(s[a]||r,e[o],t,n));return ua(yi(s,1),t,n)}function va(e,t,n){for(var a=-1,s=e.length,r=t.length,o={};++a<s;){var c=a<r?t[a]:i;n(o,e[a],c)}return o}function ya(e){return Hr(e)?e:[]}function ba(e){return"function"==typeof e?e:ac}function xa(e,t){return Yr(e)?e:ws(e,t)?[e]:Ps(bo(e))}var wa=Zi;function _a(e,t,n){var a=e.length;return n=n===i?a:n,!t&&n>=a?e:aa(e,t,n)}var Ea=lt||function(e){return ft.clearTimeout(e)};function Sa(e,t){if(t)return e.slice();var n=e.length,i=Ke?Ke(n):new e.constructor(n);return e.copy(i),i}function Ta(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function ka(e,t){var n=t?Ta(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ia(e,t){if(e!==t){var n=e!==i,a=null===e,s=e==e,r=co(e),o=t!==i,c=null===t,l=t==t,p=co(t);if(!c&&!p&&!r&&e>t||r&&o&&l&&!c&&!p||a&&o&&l||!n&&l||!s)return 1;if(!a&&!r&&!p&&e<t||p&&n&&s&&!a&&!r||c&&n&&s||!o&&s||!l)return-1}return 0}function Ra(e,t,n,i){for(var a=-1,s=e.length,r=n.length,o=-1,c=t.length,l=bn(s-r,0),p=re(c+l),u=!i;++o<c;)p[o]=t[o];for(;++a<r;)(u||a<s)&&(p[n[a]]=e[a]);for(;l--;)p[o++]=e[a++];return p}function Aa(e,t,n,i){for(var a=-1,s=e.length,r=-1,o=n.length,c=-1,l=t.length,p=bn(s-o,0),u=re(p+l),d=!i;++a<p;)u[a]=e[a];for(var m=a;++c<l;)u[m+c]=t[c];for(;++r<o;)(d||a<s)&&(u[m+n[r]]=e[a++]);return u}function Oa(e,t){var n=-1,i=e.length;for(t||(t=re(i));++n<i;)t[n]=e[n];return t}function ja(e,t,n,a){var s=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var c=t[r],l=a?a(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),s?ri(n,c,l):ni(n,c,l)}return n}function Ca(e,t){return function(n,i){var a=Yr(n)?It:ai,s=t?t():{};return a(n,e,ls(i,2),s)}}function La(e){return Zi((function(t,n){var a=-1,s=n.length,r=s>1?n[s-1]:i,o=s>2?n[2]:i;for(r=e.length>3&&"function"==typeof r?(s--,r):i,o&&xs(n[0],n[1],o)&&(r=s<3?i:r,s=1),t=Ie(t);++a<s;){var c=n[a];c&&e(t,c,a,r)}return t}))}function Fa(e,t){return function(n,i){if(null==n)return n;if(!Kr(n))return e(n,i);for(var a=n.length,s=t?a:-1,r=Ie(n);(t?s--:++s<a)&&!1!==i(r[s],s,r););return n}}function Ua(e){return function(t,n,i){for(var a=-1,s=Ie(t),r=i(t),o=r.length;o--;){var c=r[e?o:++a];if(!1===n(s[c],c,s))break}return t}}function Pa(e){return function(t){var n=on(t=bo(t))?fn(t):i,a=n?n[0]:t.charAt(0),s=n?_a(n,1).join(""):t.slice(1);return a[e]()+s}}function za(e){return function(t){return Pt(Qo(Yo(t).replace(Xe,"")),e,"")}}function Na(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),i=e.apply(n,t);return eo(i)?i:n}}function qa(e){return function(t,n,a){var s=Ie(t);if(!Kr(t)){var r=ls(n,3);t=Co(t),n=function(e){return r(s[e],e,s)}}var o=e(t,n,a);return o>-1?s[r?t[o]:o]:i}}function Ma(e){return is((function(t){var n=t.length,s=n,r=Yn.prototype.thru;for(e&&t.reverse();s--;){var o=t[s];if("function"!=typeof o)throw new Oe(a);if(r&&!c&&"wrapper"==os(o))var c=new Yn([],!0)}for(s=c?s:n;++s<n;){var l=os(o=t[s]),p="wrapper"==l?rs(o):i;c=p&&_s(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?c[os(p[0])].apply(c,p[3]):1==o.length&&_s(o)?c[l]():c.thru(o)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&Yr(i))return c.plant(i).value();for(var a=0,s=n?t[a].apply(this,e):i;++a<n;)s=t[a].call(this,s);return s}}))}function Da(e,t,n,a,s,r,o,c,l,u){var d=t&p,m=1&t,f=2&t,h=24&t,g=512&t,v=f?i:Na(e);return function p(){for(var y=arguments.length,b=re(y),x=y;x--;)b[x]=arguments[x];if(h)var w=cs(p),_=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,w);if(a&&(b=Ra(b,a,s,h)),r&&(b=Aa(b,r,o,h)),y-=_,h&&y<u){var E=pn(b,w);return Wa(e,t,Da,p.placeholder,n,b,E,c,l,u-y)}var S=m?n:this,T=f?S[e]:e;return y=b.length,c?b=function(e,t){var n=e.length,a=xn(t.length,n),s=Oa(e);for(;a--;){var r=t[a];e[a]=bs(r,n)?s[r]:i}return e}(b,c):g&&y>1&&b.reverse(),d&&l<y&&(b.length=l),this&&this!==ft&&this instanceof p&&(T=v||Na(T)),T.apply(S,b)}}function $a(e,t){return function(n,i){return function(e,t,n,i){return wi(e,(function(e,a,s){t(i,n(e),a,s)})),i}(n,e,t(i),{})}}function Ba(e,t){return function(n,a){var s;if(n===i&&a===i)return t;if(n!==i&&(s=n),a!==i){if(s===i)return a;"string"==typeof n||"string"==typeof a?(n=pa(n),a=pa(a)):(n=la(n),a=la(a)),s=e(n,a)}return s}}function Ya(e){return is((function(t){return t=Ft(t,Qt(ls())),Zi((function(n){var i=this;return e(t,(function(e){return kt(e,i,n)}))}))}))}function Va(e,t){var n=(t=t===i?" ":pa(t)).length;if(n<2)return n?Ji(t,e):t;var a=Ji(t,ht(e/mn(t)));return on(t)?_a(fn(a),0,e).join(""):a.slice(0,e)}function Ka(e){return function(t,n,a){return a&&"number"!=typeof a&&xs(t,n,a)&&(n=a=i),t=fo(t),n===i?(n=t,t=0):n=fo(n),function(e,t,n,i){for(var a=-1,s=bn(ht((t-e)/(n||1)),0),r=re(s);s--;)r[i?s:++a]=e,e+=n;return r}(t,n,a=a===i?t<n?1:-1:fo(a),e)}}function Ha(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vo(t),n=vo(n)),e(t,n)}}function Wa(e,t,n,a,s,r,o,p,u,d){var m=8&t;t|=m?c:l,4&(t&=~(m?l:c))||(t&=-4);var f=[e,t,s,m?r:i,m?o:i,m?i:r,m?i:o,p,u,d],h=n.apply(i,f);return _s(e)&&Os(h,f),h.placeholder=a,Ls(h,e,t)}function Ga(e){var t=ke[e];return function(e,n){if(e=vo(e),(n=null==n?0:xn(ho(n),292))&&qt(e)){var i=(bo(e)+"e").split("e");return+((i=(bo(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Ja=Rn&&1/un(new Rn([,-0]))[1]==d?function(e){return new Rn(e)}:lc;function Za(e){return function(t){var n=hs(t);return n==S?cn(t):n==A?dn(t):function(e,t){return Ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qa(e,t,n,s,d,m,f,h){var g=2&t;if(!g&&"function"!=typeof e)throw new Oe(a);var v=s?s.length:0;if(v||(t&=-97,s=d=i),f=f===i?f:bn(ho(f),0),h=h===i?h:ho(h),v-=d?d.length:0,t&l){var y=s,b=d;s=d=i}var x=g?i:rs(e),w=[e,t,n,s,d,y,b,m,f,h];if(x&&function(e,t){var n=e[1],i=t[1],a=n|i,s=a<131,o=i==p&&8==n||i==p&&n==u&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!s&&!o)return e;1&i&&(e[2]=t[2],a|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Ra(l,c,t[4]):c,e[4]=l?pn(e[3],r):t[4]}(c=t[5])&&(l=e[5],e[5]=l?Aa(l,c,t[6]):c,e[6]=l?pn(e[5],r):t[6]);(c=t[7])&&(e[7]=c);i&p&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(w,x),e=w[0],t=w[1],n=w[2],s=w[3],d=w[4],!(h=w[9]=w[9]===i?g?0:e.length:bn(w[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==o?function(e,t,n){var a=Na(e);return function s(){for(var r=arguments.length,o=re(r),c=r,l=cs(s);c--;)o[c]=arguments[c];var p=r<3&&o[0]!==l&&o[r-1]!==l?[]:pn(o,l);return(r-=p.length)<n?Wa(e,t,Da,s.placeholder,i,o,p,i,i,n-r):kt(this&&this!==ft&&this instanceof s?a:e,this,o)}}(e,t,h):t!=c&&33!=t||d.length?Da.apply(i,w):function(e,t,n,i){var a=1&t,s=Na(e);return function t(){for(var r=-1,o=arguments.length,c=-1,l=i.length,p=re(l+o),u=this&&this!==ft&&this instanceof t?s:e;++c<l;)p[c]=i[c];for(;o--;)p[c++]=arguments[++r];return kt(u,a?n:this,p)}}(e,t,n,s);else var _=function(e,t,n){var i=1&t,a=Na(e);return function t(){return(this&&this!==ft&&this instanceof t?a:e).apply(i?n:this,arguments)}}(e,t,n);return Ls((x?ta:Os)(_,w),e,t)}function Xa(e,t,n,a){return e===i||Mr(e,Le[n])&&!Pe.call(a,n)?t:e}function es(e,t,n,a,s,r){return eo(e)&&eo(t)&&(r.set(t,e),Bi(e,t,i,es,r),r.delete(t)),e}function ts(e){return ao(e)?i:e}function ns(e,t,n,a,s,r){var o=1&n,c=e.length,l=t.length;if(c!=l&&!(o&&l>c))return!1;var p=r.get(e),u=r.get(t);if(p&&u)return p==t&&u==e;var d=-1,m=!0,f=2&n?new Gn:i;for(r.set(e,t),r.set(t,e);++d<c;){var h=e[d],g=t[d];if(a)var v=o?a(g,h,d,t,e,r):a(h,g,d,e,t,r);if(v!==i){if(v)continue;m=!1;break}if(f){if(!Nt(t,(function(e,t){if(!en(f,t)&&(h===e||s(h,e,n,a,r)))return f.push(t)}))){m=!1;break}}else if(h!==g&&!s(h,g,n,a,r)){m=!1;break}}return r.delete(e),r.delete(t),m}function is(e){return Cs(Is(e,i,Vs),e+"")}function as(e){return Ti(e,Co,ms)}function ss(e){return Ti(e,Lo,fs)}var rs=jn?function(e){return jn.get(e)}:lc;function os(e){for(var t=e.name+"",n=Cn[t],i=Pe.call(Cn,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}function cs(e){return(Pe.call(Dn,"placeholder")?Dn:e).placeholder}function ls(){var e=Dn.iteratee||sc;return e=e===sc?Pi:e,arguments.length?e(arguments[0],arguments[1]):e}function ps(e,t){var n,i,a=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function us(e){for(var t=Co(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,Ts(a)]}return t}function ds(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ui(n)?n:i}var ms=yt?function(e){return null==e?[]:(e=Ie(e),jt(yt(e),(function(t){return Ge.call(e,t)})))}:gc,fs=yt?function(e){for(var t=[];e;)Ut(t,ms(e)),e=He(e);return t}:gc,hs=ki;function gs(e,t,n){for(var i=-1,a=(t=xa(t,e)).length,s=!1;++i<a;){var r=zs(t[i]);if(!(s=null!=e&&n(e,r)))break;e=e[r]}return s||++i!=a?s:!!(a=null==e?0:e.length)&&Xr(a)&&bs(r,a)&&(Yr(e)||Br(e))}function vs(e){return"function"!=typeof e.constructor||Ss(e)?{}:$n(He(e))}function ys(e){return Yr(e)||Br(e)||!!(Ze&&e&&e[Ze])}function bs(e,t){var n=typeof e;return!!(t=null==t?m:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function xs(e,t,n){if(!eo(n))return!1;var i=typeof t;return!!("number"==i?Kr(n)&&bs(t,n.length):"string"==i&&t in n)&&Mr(n[t],e)}function ws(e,t){if(Yr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!co(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ie(t))}function _s(e){var t=os(e),n=Dn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var i=rs(n);return!!i&&e===i[0]}(Tn&&hs(new Tn(new ArrayBuffer(1)))!=F||kn&&hs(new kn)!=S||In&&hs(In.resolve())!=I||Rn&&hs(new Rn)!=A||An&&hs(new An)!=C)&&(hs=function(e){var t=ki(e),n=t==k?e.constructor:i,a=n?Ns(n):"";if(a)switch(a){case Ln:return F;case Fn:return S;case Un:return I;case Pn:return A;case zn:return C}return t});var Es=Fe?Zr:vc;function Ss(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Ts(e){return e==e&&!eo(e)}function ks(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ie(n)))}}function Is(e,t,n){return t=bn(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=bn(i.length-t,0),r=re(s);++a<s;)r[a]=i[t+a];a=-1;for(var o=re(t+1);++a<t;)o[a]=i[a];return o[t]=n(r),kt(e,this,o)}}function Rs(e,t){return t.length<2?e:Si(e,aa(t,0,-1))}function As(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Os=Fs(ta),js=mt||function(e,t){return ft.setTimeout(e,t)},Cs=Fs(na);function Ls(e,t,n){var i=t+"";return Cs(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Rt(g,(function(n){var i="_."+n[0];t&n[1]&&!Ct(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(i),n)))}function Fs(e){var t=0,n=0;return function(){var a=wn(),s=16-(a-n);if(n=a,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Us(e,t){var n=-1,a=e.length,s=a-1;for(t=t===i?a:t;++n<t;){var r=Gi(n,s),o=e[r];e[r]=e[n],e[n]=o}return e.length=t,e}var Ps=function(e){var t=Fr(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(ne,(function(e,n,i,a){t.push(i?a.replace(de,"$1"):n||e)})),t}));function zs(e){if("string"==typeof e||co(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ns(e){if(null!=e){try{return Ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function qs(e){if(e instanceof Vn)return e.clone();var t=new Yn(e.__wrapped__,e.__chain__);return t.__actions__=Oa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ms=Zi((function(e,t){return Hr(e)?di(e,yi(t,1,Hr,!0)):[]})),Ds=Zi((function(e,t){var n=Js(t);return Hr(n)&&(n=i),Hr(e)?di(e,yi(t,1,Hr,!0),ls(n,2)):[]})),$s=Zi((function(e,t){var n=Js(t);return Hr(n)&&(n=i),Hr(e)?di(e,yi(t,1,Hr,!0),i,n):[]}));function Bs(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:ho(n);return a<0&&(a=bn(i+a,0)),Dt(e,ls(t,3),a)}function Ys(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=a-1;return n!==i&&(s=ho(n),s=n<0?bn(a+s,0):xn(s,a-1)),Dt(e,ls(t,3),s,!0)}function Vs(e){return(null==e?0:e.length)?yi(e,1):[]}function Ks(e){return e&&e.length?e[0]:i}var Hs=Zi((function(e){var t=Ft(e,ya);return t.length&&t[0]===e[0]?Oi(t):[]})),Ws=Zi((function(e){var t=Js(e),n=Ft(e,ya);return t===Js(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Oi(n,ls(t,2)):[]})),Gs=Zi((function(e){var t=Js(e),n=Ft(e,ya);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Oi(n,i,t):[]}));function Js(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Zs=Zi(Qs);function Qs(e,t){return e&&e.length&&t&&t.length?Hi(e,t):e}var Xs=is((function(e,t){var n=null==e?0:e.length,i=oi(e,t);return Wi(e,Ft(t,(function(e){return bs(e,n)?+e:e})).sort(Ia)),i}));function er(e){return null==e?e:Sn.call(e)}var tr=Zi((function(e){return ua(yi(e,1,Hr,!0))})),nr=Zi((function(e){var t=Js(e);return Hr(t)&&(t=i),ua(yi(e,1,Hr,!0),ls(t,2))})),ir=Zi((function(e){var t=Js(e);return t="function"==typeof t?t:i,ua(yi(e,1,Hr,!0),i,t)}));function ar(e){if(!e||!e.length)return[];var t=0;return e=jt(e,(function(e){if(Hr(e))return t=bn(e.length,t),!0})),Jt(t,(function(t){return Ft(e,Kt(t))}))}function sr(e,t){if(!e||!e.length)return[];var n=ar(e);return null==t?n:Ft(n,(function(e){return kt(t,i,e)}))}var rr=Zi((function(e,t){return Hr(e)?di(e,t):[]})),or=Zi((function(e){return ga(jt(e,Hr))})),cr=Zi((function(e){var t=Js(e);return Hr(t)&&(t=i),ga(jt(e,Hr),ls(t,2))})),lr=Zi((function(e){var t=Js(e);return t="function"==typeof t?t:i,ga(jt(e,Hr),i,t)})),pr=Zi(ar);var ur=Zi((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,sr(e,n)}));function dr(e){var t=Dn(e);return t.__chain__=!0,t}function mr(e,t){return t(e)}var fr=is((function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,s=function(t){return oi(t,e)};return!(t>1||this.__actions__.length)&&a instanceof Vn&&bs(n)?((a=a.slice(n,+n+(t?1:0))).__actions__.push({func:mr,args:[s],thisArg:i}),new Yn(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(s)}));var hr=Ca((function(e,t,n){Pe.call(e,n)?++e[n]:ri(e,n,1)}));var gr=qa(Bs),vr=qa(Ys);function yr(e,t){return(Yr(e)?Rt:mi)(e,ls(t,3))}function br(e,t){return(Yr(e)?At:fi)(e,ls(t,3))}var xr=Ca((function(e,t,n){Pe.call(e,n)?e[n].push(t):ri(e,n,[t])}));var wr=Zi((function(e,t,n){var i=-1,a="function"==typeof t,s=Kr(e)?re(e.length):[];return mi(e,(function(e){s[++i]=a?kt(t,e,n):ji(e,t,n)})),s})),_r=Ca((function(e,t,n){ri(e,n,t)}));function Er(e,t){return(Yr(e)?Ft:Mi)(e,ls(t,3))}var Sr=Ca((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Tr=Zi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xs(e,t[0],t[1])?t=[]:n>2&&xs(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,yi(t,1),[])})),kr=dt||function(){return ft.Date.now()};function Ir(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Qa(e,p,i,i,i,i,t)}function Rr(e,t){var n;if("function"!=typeof t)throw new Oe(a);return e=ho(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ar=Zi((function(e,t,n){var i=1;if(n.length){var a=pn(n,cs(Ar));i|=c}return Qa(e,i,t,n,a)})),Or=Zi((function(e,t,n){var i=3;if(n.length){var a=pn(n,cs(Or));i|=c}return Qa(t,i,e,n,a)}));function jr(e,t,n){var s,r,o,c,l,p,u=0,d=!1,m=!1,f=!0;if("function"!=typeof e)throw new Oe(a);function h(t){var n=s,a=r;return s=r=i,u=t,c=e.apply(a,n)}function g(e){var n=e-p;return p===i||n>=t||n<0||m&&e-u>=o}function v(){var e=kr();if(g(e))return y(e);l=js(v,function(e){var n=t-(e-p);return m?xn(n,o-(e-u)):n}(e))}function y(e){return l=i,f&&s?h(e):(s=r=i,c)}function b(){var e=kr(),n=g(e);if(s=arguments,r=this,p=e,n){if(l===i)return function(e){return u=e,l=js(v,t),d?h(e):c}(p);if(m)return Ea(l),l=js(v,t),h(p)}return l===i&&(l=js(v,t)),c}return t=vo(t)||0,eo(n)&&(d=!!n.leading,o=(m="maxWait"in n)?bn(vo(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){l!==i&&Ea(l),u=0,s=p=r=l=i},b.flush=function(){return l===i?c:y(kr())},b}var Cr=Zi((function(e,t){return ui(e,1,t)})),Lr=Zi((function(e,t,n){return ui(e,vo(t)||0,n)}));function Fr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(a);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(Fr.Cache||Wn),n}function Ur(e){if("function"!=typeof e)throw new Oe(a);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)}}Fr.Cache=Wn;var Pr=wa((function(e,t){var n=(t=1==t.length&&Yr(t[0])?Ft(t[0],Qt(ls())):Ft(yi(t,1),Qt(ls()))).length;return Zi((function(i){for(var a=-1,s=xn(i.length,n);++a<s;)i[a]=t[a].call(this,i[a]);return kt(e,this,i)}))})),zr=Zi((function(e,t){var n=pn(t,cs(zr));return Qa(e,c,i,t,n)})),Nr=Zi((function(e,t){var n=pn(t,cs(Nr));return Qa(e,l,i,t,n)})),qr=is((function(e,t){return Qa(e,u,i,i,i,t)}));function Mr(e,t){return e===t||e!=e&&t!=t}var Dr=Ha(Ii),$r=Ha((function(e,t){return e>=t})),Br=Ci(function(){return arguments}())?Ci:function(e){return to(e)&&Pe.call(e,"callee")&&!Ge.call(e,"callee")},Yr=re.isArray,Vr=xt?Qt(xt):function(e){return to(e)&&ki(e)==L};function Kr(e){return null!=e&&Xr(e.length)&&!Zr(e)}function Hr(e){return to(e)&&Kr(e)}var Wr=bt||vc,Gr=wt?Qt(wt):function(e){return to(e)&&ki(e)==x};function Jr(e){if(!to(e))return!1;var t=ki(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ao(e)}function Zr(e){if(!eo(e))return!1;var t=ki(e);return t==_||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qr(e){return"number"==typeof e&&e==ho(e)}function Xr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function eo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function to(e){return null!=e&&"object"==typeof e}var no=_t?Qt(_t):function(e){return to(e)&&hs(e)==S};function io(e){return"number"==typeof e||to(e)&&ki(e)==T}function ao(e){if(!to(e)||ki(e)!=k)return!1;var t=He(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ue.call(n)==Me}var so=Et?Qt(Et):function(e){return to(e)&&ki(e)==R};var ro=St?Qt(St):function(e){return to(e)&&hs(e)==A};function oo(e){return"string"==typeof e||!Yr(e)&&to(e)&&ki(e)==O}function co(e){return"symbol"==typeof e||to(e)&&ki(e)==j}var lo=Tt?Qt(Tt):function(e){return to(e)&&Xr(e.length)&&!!ot[ki(e)]};var po=Ha(qi),uo=Ha((function(e,t){return e<=t}));function mo(e){if(!e)return[];if(Kr(e))return oo(e)?fn(e):Oa(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=hs(e);return(t==S?cn:t==A?un:Do)(e)}function fo(e){return e?(e=vo(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ho(e){var t=fo(e),n=t%1;return t==t?n?t-n:t:0}function go(e){return e?ci(ho(e),0,h):0}function vo(e){if("number"==typeof e)return e;if(co(e))return f;if(eo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ge.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):he.test(e)?f:+e}function yo(e){return ja(e,Lo(e))}function bo(e){return null==e?"":pa(e)}var xo=La((function(e,t){if(Ss(t)||Kr(t))ja(t,Co(t),e);else for(var n in t)Pe.call(t,n)&&ni(e,n,t[n])})),wo=La((function(e,t){ja(t,Lo(t),e)})),_o=La((function(e,t,n,i){ja(t,Lo(t),e,i)})),Eo=La((function(e,t,n,i){ja(t,Co(t),e,i)})),So=is(oi);var To=Zi((function(e,t){e=Ie(e);var n=-1,a=t.length,s=a>2?t[2]:i;for(s&&xs(t[0],t[1],s)&&(a=1);++n<a;)for(var r=t[n],o=Lo(r),c=-1,l=o.length;++c<l;){var p=o[c],u=e[p];(u===i||Mr(u,Le[p])&&!Pe.call(e,p))&&(e[p]=r[p])}return e})),ko=Zi((function(e){return e.push(i,es),kt(Uo,i,e)}));function Io(e,t,n){var a=null==e?i:Si(e,t);return a===i?n:a}function Ro(e,t){return null!=e&&gs(e,t,Ai)}var Ao=$a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=qe.call(t)),e[t]=n}),tc(ac)),Oo=$a((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=qe.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),ls),jo=Zi(ji);function Co(e){return Kr(e)?Zn(e):zi(e)}function Lo(e){return Kr(e)?Zn(e,!0):Ni(e)}var Fo=La((function(e,t,n){Bi(e,t,n)})),Uo=La((function(e,t,n,i){Bi(e,t,n,i)})),Po=is((function(e,t){var n={};if(null==e)return n;var i=!1;t=Ft(t,(function(t){return t=xa(t,e),i||(i=t.length>1),t})),ja(e,ss(e),n),i&&(n=li(n,7,ts));for(var a=t.length;a--;)da(n,t[a]);return n}));var zo=is((function(e,t){return null==e?{}:function(e,t){return Ki(e,t,(function(t,n){return Ro(e,n)}))}(e,t)}));function No(e,t){if(null==e)return{};var n=Ft(ss(e),(function(e){return[e]}));return t=ls(t),Ki(e,n,(function(e,n){return t(e,n[0])}))}var qo=Za(Co),Mo=Za(Lo);function Do(e){return null==e?[]:Xt(e,Co(e))}var $o=za((function(e,t,n){return t=t.toLowerCase(),e+(n?Bo(t):t)}));function Bo(e){return Zo(bo(e).toLowerCase())}function Yo(e){return(e=bo(e))&&e.replace(xe,an).replace(et,"")}var Vo=za((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ko=za((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ho=Pa("toLowerCase");var Wo=za((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Go=za((function(e,t,n){return e+(n?" ":"")+Zo(t)}));var Jo=za((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zo=Pa("toUpperCase");function Qo(e,t,n){return e=bo(e),(t=n?i:t)===i?function(e){return at.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(t)||[]}var Xo=Zi((function(e,t){try{return kt(e,i,t)}catch(e){return Jr(e)?e:new Se(e)}})),ec=is((function(e,t){return Rt(t,(function(t){t=zs(t),ri(e,t,Ar(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Ma(),ic=Ma(!0);function ac(e){return e}function sc(e){return Pi("function"==typeof e?e:li(e,1))}var rc=Zi((function(e,t){return function(n){return ji(n,e,t)}})),oc=Zi((function(e,t){return function(n){return ji(e,n,t)}}));function cc(e,t,n){var i=Co(t),a=Ei(t,i);null!=n||eo(t)&&(a.length||!i.length)||(n=t,t=e,e=this,a=Ei(t,Co(t)));var s=!(eo(n)&&"chain"in n&&!n.chain),r=Zr(e);return Rt(a,(function(n){var i=t[n];e[n]=i,r&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__);return(n.__actions__=Oa(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ut([this.value()],arguments))})})),e}function lc(){}var pc=Ya(Ft),uc=Ya(Ot),dc=Ya(Nt);function mc(e){return ws(e)?Kt(zs(e)):function(e){return function(t){return Si(t,e)}}(e)}var fc=Ka(),hc=Ka(!0);function gc(){return[]}function vc(){return!1}var yc=Ba((function(e,t){return e+t}),0),bc=Ga("ceil"),xc=Ba((function(e,t){return e/t}),1),wc=Ga("floor");var _c,Ec=Ba((function(e,t){return e*t}),1),Sc=Ga("round"),Tc=Ba((function(e,t){return e-t}),0);return Dn.after=function(e,t){if("function"!=typeof t)throw new Oe(a);return e=ho(e),function(){if(--e<1)return t.apply(this,arguments)}},Dn.ary=Ir,Dn.assign=xo,Dn.assignIn=wo,Dn.assignInWith=_o,Dn.assignWith=Eo,Dn.at=So,Dn.before=Rr,Dn.bind=Ar,Dn.bindAll=ec,Dn.bindKey=Or,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Yr(e)?e:[e]},Dn.chain=dr,Dn.chunk=function(e,t,n){t=(n?xs(e,t,n):t===i)?1:bn(ho(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var s=0,r=0,o=re(ht(a/t));s<a;)o[r++]=aa(e,s,s+=t);return o},Dn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,a=[];++t<n;){var s=e[t];s&&(a[i++]=s)}return a},Dn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=re(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Ut(Yr(n)?Oa(n):[n],yi(t,1))},Dn.cond=function(e){var t=null==e?0:e.length,n=ls();return e=t?Ft(e,(function(e){if("function"!=typeof e[1])throw new Oe(a);return[n(e[0]),e[1]]})):[],Zi((function(n){for(var i=-1;++i<t;){var a=e[i];if(kt(a[0],this,n))return kt(a[1],this,n)}}))},Dn.conforms=function(e){return function(e){var t=Co(e);return function(n){return pi(n,e,t)}}(li(e,1))},Dn.constant=tc,Dn.countBy=hr,Dn.create=function(e,t){var n=$n(e);return null==t?n:si(n,t)},Dn.curry=function e(t,n,a){var s=Qa(t,8,i,i,i,i,i,n=a?i:n);return s.placeholder=e.placeholder,s},Dn.curryRight=function e(t,n,a){var s=Qa(t,o,i,i,i,i,i,n=a?i:n);return s.placeholder=e.placeholder,s},Dn.debounce=jr,Dn.defaults=To,Dn.defaultsDeep=ko,Dn.defer=Cr,Dn.delay=Lr,Dn.difference=Ms,Dn.differenceBy=Ds,Dn.differenceWith=$s,Dn.drop=function(e,t,n){var a=null==e?0:e.length;return a?aa(e,(t=n||t===i?1:ho(t))<0?0:t,a):[]},Dn.dropRight=function(e,t,n){var a=null==e?0:e.length;return a?aa(e,0,(t=a-(t=n||t===i?1:ho(t)))<0?0:t):[]},Dn.dropRightWhile=function(e,t){return e&&e.length?fa(e,ls(t,3),!0,!0):[]},Dn.dropWhile=function(e,t){return e&&e.length?fa(e,ls(t,3),!0):[]},Dn.fill=function(e,t,n,a){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&xs(e,t,n)&&(n=0,a=s),function(e,t,n,a){var s=e.length;for((n=ho(n))<0&&(n=-n>s?0:s+n),(a=a===i||a>s?s:ho(a))<0&&(a+=s),a=n>a?0:go(a);n<a;)e[n++]=t;return e}(e,t,n,a)):[]},Dn.filter=function(e,t){return(Yr(e)?jt:vi)(e,ls(t,3))},Dn.flatMap=function(e,t){return yi(Er(e,t),1)},Dn.flatMapDeep=function(e,t){return yi(Er(e,t),d)},Dn.flatMapDepth=function(e,t,n){return n=n===i?1:ho(n),yi(Er(e,t),n)},Dn.flatten=Vs,Dn.flattenDeep=function(e){return(null==e?0:e.length)?yi(e,d):[]},Dn.flattenDepth=function(e,t){return(null==e?0:e.length)?yi(e,t=t===i?1:ho(t)):[]},Dn.flip=function(e){return Qa(e,512)},Dn.flow=nc,Dn.flowRight=ic,Dn.fromPairs=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},Dn.functions=function(e){return null==e?[]:Ei(e,Co(e))},Dn.functionsIn=function(e){return null==e?[]:Ei(e,Lo(e))},Dn.groupBy=xr,Dn.initial=function(e){return(null==e?0:e.length)?aa(e,0,-1):[]},Dn.intersection=Hs,Dn.intersectionBy=Ws,Dn.intersectionWith=Gs,Dn.invert=Ao,Dn.invertBy=Oo,Dn.invokeMap=wr,Dn.iteratee=sc,Dn.keyBy=_r,Dn.keys=Co,Dn.keysIn=Lo,Dn.map=Er,Dn.mapKeys=function(e,t){var n={};return t=ls(t,3),wi(e,(function(e,i,a){ri(n,t(e,i,a),e)})),n},Dn.mapValues=function(e,t){var n={};return t=ls(t,3),wi(e,(function(e,i,a){ri(n,i,t(e,i,a))})),n},Dn.matches=function(e){return Di(li(e,1))},Dn.matchesProperty=function(e,t){return $i(e,li(t,1))},Dn.memoize=Fr,Dn.merge=Fo,Dn.mergeWith=Uo,Dn.method=rc,Dn.methodOf=oc,Dn.mixin=cc,Dn.negate=Ur,Dn.nthArg=function(e){return e=ho(e),Zi((function(t){return Yi(t,e)}))},Dn.omit=Po,Dn.omitBy=function(e,t){return No(e,Ur(ls(t)))},Dn.once=function(e){return Rr(2,e)},Dn.orderBy=function(e,t,n,a){return null==e?[]:(Yr(t)||(t=null==t?[]:[t]),Yr(n=a?i:n)||(n=null==n?[]:[n]),Vi(e,t,n))},Dn.over=pc,Dn.overArgs=Pr,Dn.overEvery=uc,Dn.overSome=dc,Dn.partial=zr,Dn.partialRight=Nr,Dn.partition=Sr,Dn.pick=zo,Dn.pickBy=No,Dn.property=mc,Dn.propertyOf=function(e){return function(t){return null==e?i:Si(e,t)}},Dn.pull=Zs,Dn.pullAll=Qs,Dn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,ls(n,2)):e},Dn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hi(e,t,i,n):e},Dn.pullAt=Xs,Dn.range=fc,Dn.rangeRight=hc,Dn.rearg=qr,Dn.reject=function(e,t){return(Yr(e)?jt:vi)(e,Ur(ls(t,3)))},Dn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,a=[],s=e.length;for(t=ls(t,3);++i<s;){var r=e[i];t(r,i,e)&&(n.push(r),a.push(i))}return Wi(e,a),n},Dn.rest=function(e,t){if("function"!=typeof e)throw new Oe(a);return Zi(e,t=t===i?t:ho(t))},Dn.reverse=er,Dn.sampleSize=function(e,t,n){return t=(n?xs(e,t,n):t===i)?1:ho(t),(Yr(e)?Xn:Xi)(e,t)},Dn.set=function(e,t,n){return null==e?e:ea(e,t,n)},Dn.setWith=function(e,t,n,a){return a="function"==typeof a?a:i,null==e?e:ea(e,t,n,a)},Dn.shuffle=function(e){return(Yr(e)?ei:ia)(e)},Dn.slice=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&xs(e,t,n)?(t=0,n=a):(t=null==t?0:ho(t),n=n===i?a:ho(n)),aa(e,t,n)):[]},Dn.sortBy=Tr,Dn.sortedUniq=function(e){return e&&e.length?ca(e):[]},Dn.sortedUniqBy=function(e,t){return e&&e.length?ca(e,ls(t,2)):[]},Dn.split=function(e,t,n){return n&&"number"!=typeof n&&xs(e,t,n)&&(t=n=i),(n=n===i?h:n>>>0)?(e=bo(e))&&("string"==typeof t||null!=t&&!so(t))&&!(t=pa(t))&&on(e)?_a(fn(e),0,n):e.split(t,n):[]},Dn.spread=function(e,t){if("function"!=typeof e)throw new Oe(a);return t=null==t?0:bn(ho(t),0),Zi((function(n){var i=n[t],a=_a(n,0,t);return i&&Ut(a,i),kt(e,this,a)}))},Dn.tail=function(e){var t=null==e?0:e.length;return t?aa(e,1,t):[]},Dn.take=function(e,t,n){return e&&e.length?aa(e,0,(t=n||t===i?1:ho(t))<0?0:t):[]},Dn.takeRight=function(e,t,n){var a=null==e?0:e.length;return a?aa(e,(t=a-(t=n||t===i?1:ho(t)))<0?0:t,a):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?fa(e,ls(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?fa(e,ls(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new Oe(a);return eo(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),jr(e,t,{leading:i,maxWait:t,trailing:s})},Dn.thru=mr,Dn.toArray=mo,Dn.toPairs=qo,Dn.toPairsIn=Mo,Dn.toPath=function(e){return Yr(e)?Ft(e,zs):co(e)?[e]:Oa(Ps(bo(e)))},Dn.toPlainObject=yo,Dn.transform=function(e,t,n){var i=Yr(e),a=i||Wr(e)||lo(e);if(t=ls(t,4),null==n){var s=e&&e.constructor;n=a?i?new s:[]:eo(e)&&Zr(s)?$n(He(e)):{}}return(a?Rt:wi)(e,(function(e,i,a){return t(n,e,i,a)})),n},Dn.unary=function(e){return Ir(e,1)},Dn.union=tr,Dn.unionBy=nr,Dn.unionWith=ir,Dn.uniq=function(e){return e&&e.length?ua(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?ua(e,ls(t,2)):[]},Dn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ua(e,i,t):[]},Dn.unset=function(e,t){return null==e||da(e,t)},Dn.unzip=ar,Dn.unzipWith=sr,Dn.update=function(e,t,n){return null==e?e:ma(e,t,ba(n))},Dn.updateWith=function(e,t,n,a){return a="function"==typeof a?a:i,null==e?e:ma(e,t,ba(n),a)},Dn.values=Do,Dn.valuesIn=function(e){return null==e?[]:Xt(e,Lo(e))},Dn.without=rr,Dn.words=Qo,Dn.wrap=function(e,t){return zr(ba(t),e)},Dn.xor=or,Dn.xorBy=cr,Dn.xorWith=lr,Dn.zip=pr,Dn.zipObject=function(e,t){return va(e||[],t||[],ni)},Dn.zipObjectDeep=function(e,t){return va(e||[],t||[],ea)},Dn.zipWith=ur,Dn.entries=qo,Dn.entriesIn=Mo,Dn.extend=wo,Dn.extendWith=_o,cc(Dn,Dn),Dn.add=yc,Dn.attempt=Xo,Dn.camelCase=$o,Dn.capitalize=Bo,Dn.ceil=bc,Dn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vo(n))==n?n:0),t!==i&&(t=(t=vo(t))==t?t:0),ci(vo(e),t,n)},Dn.clone=function(e){return li(e,4)},Dn.cloneDeep=function(e){return li(e,5)},Dn.cloneDeepWith=function(e,t){return li(e,5,t="function"==typeof t?t:i)},Dn.cloneWith=function(e,t){return li(e,4,t="function"==typeof t?t:i)},Dn.conformsTo=function(e,t){return null==t||pi(e,t,Co(t))},Dn.deburr=Yo,Dn.defaultTo=function(e,t){return null==e||e!=e?t:e},Dn.divide=xc,Dn.endsWith=function(e,t,n){e=bo(e),t=pa(t);var a=e.length,s=n=n===i?a:ci(ho(n),0,a);return(n-=t.length)>=0&&e.slice(n,s)==t},Dn.eq=Mr,Dn.escape=function(e){return(e=bo(e))&&J.test(e)?e.replace(W,sn):e},Dn.escapeRegExp=function(e){return(e=bo(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},Dn.every=function(e,t,n){var a=Yr(e)?Ot:hi;return n&&xs(e,t,n)&&(t=i),a(e,ls(t,3))},Dn.find=gr,Dn.findIndex=Bs,Dn.findKey=function(e,t){return Mt(e,ls(t,3),wi)},Dn.findLast=vr,Dn.findLastIndex=Ys,Dn.findLastKey=function(e,t){return Mt(e,ls(t,3),_i)},Dn.floor=wc,Dn.forEach=yr,Dn.forEachRight=br,Dn.forIn=function(e,t){return null==e?e:bi(e,ls(t,3),Lo)},Dn.forInRight=function(e,t){return null==e?e:xi(e,ls(t,3),Lo)},Dn.forOwn=function(e,t){return e&&wi(e,ls(t,3))},Dn.forOwnRight=function(e,t){return e&&_i(e,ls(t,3))},Dn.get=Io,Dn.gt=Dr,Dn.gte=$r,Dn.has=function(e,t){return null!=e&&gs(e,t,Ri)},Dn.hasIn=Ro,Dn.head=Ks,Dn.identity=ac,Dn.includes=function(e,t,n,i){e=Kr(e)?e:Do(e),n=n&&!i?ho(n):0;var a=e.length;return n<0&&(n=bn(a+n,0)),oo(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&$t(e,t,n)>-1},Dn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:ho(n);return a<0&&(a=bn(i+a,0)),$t(e,t,a)},Dn.inRange=function(e,t,n){return t=fo(t),n===i?(n=t,t=0):n=fo(n),function(e,t,n){return e>=xn(t,n)&&e<bn(t,n)}(e=vo(e),t,n)},Dn.invoke=jo,Dn.isArguments=Br,Dn.isArray=Yr,Dn.isArrayBuffer=Vr,Dn.isArrayLike=Kr,Dn.isArrayLikeObject=Hr,Dn.isBoolean=function(e){return!0===e||!1===e||to(e)&&ki(e)==b},Dn.isBuffer=Wr,Dn.isDate=Gr,Dn.isElement=function(e){return to(e)&&1===e.nodeType&&!ao(e)},Dn.isEmpty=function(e){if(null==e)return!0;if(Kr(e)&&(Yr(e)||"string"==typeof e||"function"==typeof e.splice||Wr(e)||lo(e)||Br(e)))return!e.length;var t=hs(e);if(t==S||t==A)return!e.size;if(Ss(e))return!zi(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},Dn.isEqual=function(e,t){return Li(e,t)},Dn.isEqualWith=function(e,t,n){var a=(n="function"==typeof n?n:i)?n(e,t):i;return a===i?Li(e,t,i,n):!!a},Dn.isError=Jr,Dn.isFinite=function(e){return"number"==typeof e&&qt(e)},Dn.isFunction=Zr,Dn.isInteger=Qr,Dn.isLength=Xr,Dn.isMap=no,Dn.isMatch=function(e,t){return e===t||Fi(e,t,us(t))},Dn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Fi(e,t,us(t),n)},Dn.isNaN=function(e){return io(e)&&e!=+e},Dn.isNative=function(e){if(Es(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ui(e)},Dn.isNil=function(e){return null==e},Dn.isNull=function(e){return null===e},Dn.isNumber=io,Dn.isObject=eo,Dn.isObjectLike=to,Dn.isPlainObject=ao,Dn.isRegExp=so,Dn.isSafeInteger=function(e){return Qr(e)&&e>=-9007199254740991&&e<=m},Dn.isSet=ro,Dn.isString=oo,Dn.isSymbol=co,Dn.isTypedArray=lo,Dn.isUndefined=function(e){return e===i},Dn.isWeakMap=function(e){return to(e)&&hs(e)==C},Dn.isWeakSet=function(e){return to(e)&&"[object WeakSet]"==ki(e)},Dn.join=function(e,t){return null==e?"":Ht.call(e,t)},Dn.kebabCase=Vo,Dn.last=Js,Dn.lastIndexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var s=a;return n!==i&&(s=(s=ho(n))<0?bn(a+s,0):xn(s,a-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,s):Dt(e,Yt,s,!0)},Dn.lowerCase=Ko,Dn.lowerFirst=Ho,Dn.lt=po,Dn.lte=uo,Dn.max=function(e){return e&&e.length?gi(e,ac,Ii):i},Dn.maxBy=function(e,t){return e&&e.length?gi(e,ls(t,2),Ii):i},Dn.mean=function(e){return Vt(e,ac)},Dn.meanBy=function(e,t){return Vt(e,ls(t,2))},Dn.min=function(e){return e&&e.length?gi(e,ac,qi):i},Dn.minBy=function(e,t){return e&&e.length?gi(e,ls(t,2),qi):i},Dn.stubArray=gc,Dn.stubFalse=vc,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=Ec,Dn.nth=function(e,t){return e&&e.length?Yi(e,ho(t)):i},Dn.noConflict=function(){return ft._===this&&(ft._=De),this},Dn.noop=lc,Dn.now=kr,Dn.pad=function(e,t,n){e=bo(e);var i=(t=ho(t))?mn(e):0;if(!t||i>=t)return e;var a=(t-i)/2;return Va(gt(a),n)+e+Va(ht(a),n)},Dn.padEnd=function(e,t,n){e=bo(e);var i=(t=ho(t))?mn(e):0;return t&&i<t?e+Va(t-i,n):e},Dn.padStart=function(e,t,n){e=bo(e);var i=(t=ho(t))?mn(e):0;return t&&i<t?Va(t-i,n)+e:e},Dn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(bo(e).replace(se,""),t||0)},Dn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xs(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fo(e),t===i?(t=e,e=0):t=fo(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var s=En();return xn(e+s*(t-e+pt("1e-"+((s+"").length-1))),t)}return Gi(e,t)},Dn.reduce=function(e,t,n){var i=Yr(e)?Pt:Wt,a=arguments.length<3;return i(e,ls(t,4),n,a,mi)},Dn.reduceRight=function(e,t,n){var i=Yr(e)?zt:Wt,a=arguments.length<3;return i(e,ls(t,4),n,a,fi)},Dn.repeat=function(e,t,n){return t=(n?xs(e,t,n):t===i)?1:ho(t),Ji(bo(e),t)},Dn.replace=function(){var e=arguments,t=bo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(e,t,n){var a=-1,s=(t=xa(t,e)).length;for(s||(s=1,e=i);++a<s;){var r=null==e?i:e[zs(t[a])];r===i&&(a=s,r=n),e=Zr(r)?r.call(e):r}return e},Dn.round=Sc,Dn.runInContext=e,Dn.sample=function(e){return(Yr(e)?Qn:Qi)(e)},Dn.size=function(e){if(null==e)return 0;if(Kr(e))return oo(e)?mn(e):e.length;var t=hs(e);return t==S||t==A?e.size:zi(e).length},Dn.snakeCase=Wo,Dn.some=function(e,t,n){var a=Yr(e)?Nt:sa;return n&&xs(e,t,n)&&(t=i),a(e,ls(t,3))},Dn.sortedIndex=function(e,t){return ra(e,t)},Dn.sortedIndexBy=function(e,t,n){return oa(e,t,ls(n,2))},Dn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=ra(e,t);if(i<n&&Mr(e[i],t))return i}return-1},Dn.sortedLastIndex=function(e,t){return ra(e,t,!0)},Dn.sortedLastIndexBy=function(e,t,n){return oa(e,t,ls(n,2),!0)},Dn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ra(e,t,!0)-1;if(Mr(e[n],t))return n}return-1},Dn.startCase=Go,Dn.startsWith=function(e,t,n){return e=bo(e),n=null==n?0:ci(ho(n),0,e.length),t=pa(t),e.slice(n,n+t.length)==t},Dn.subtract=Tc,Dn.sum=function(e){return e&&e.length?Gt(e,ac):0},Dn.sumBy=function(e,t){return e&&e.length?Gt(e,ls(t,2)):0},Dn.template=function(e,t,n){var a=Dn.templateSettings;n&&xs(e,t,n)&&(t=i),e=bo(e),t=_o({},t,a,Xa);var s,r,o=_o({},t.imports,a.imports,Xa),c=Co(o),l=Xt(o,c),p=0,u=t.interpolate||we,d="__p += '",m=Re((t.escape||we).source+"|"+u.source+"|"+(u===X?me:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(m,(function(t,n,i,a,o,c){return i||(i=a),d+=e.slice(p,c).replace(_e,rn),n&&(s=!0,d+="' +\n__e("+n+") +\n'"),o&&(r=!0,d+="';\n"+o+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=c+t.length,t})),d+="';\n";var h=Pe.call(t,"variable")&&t.variable;if(h){if(ue.test(h))throw new Se("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(r?d.replace(Y,""):d).replace(V,"$1").replace(K,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Xo((function(){return Te(c,f+"return "+d).apply(i,l)}));if(g.source=d,Jr(g))throw g;return g},Dn.times=function(e,t){if((e=ho(e))<1||e>m)return[];var n=h,i=xn(e,h);t=ls(t),e-=h;for(var a=Jt(i,t);++n<e;)t(n);return a},Dn.toFinite=fo,Dn.toInteger=ho,Dn.toLength=go,Dn.toLower=function(e){return bo(e).toLowerCase()},Dn.toNumber=vo,Dn.toSafeInteger=function(e){return e?ci(ho(e),-9007199254740991,m):0===e?e:0},Dn.toString=bo,Dn.toUpper=function(e){return bo(e).toUpperCase()},Dn.trim=function(e,t,n){if((e=bo(e))&&(n||t===i))return Zt(e);if(!e||!(t=pa(t)))return e;var a=fn(e),s=fn(t);return _a(a,tn(a,s),nn(a,s)+1).join("")},Dn.trimEnd=function(e,t,n){if((e=bo(e))&&(n||t===i))return e.slice(0,hn(e)+1);if(!e||!(t=pa(t)))return e;var a=fn(e);return _a(a,0,nn(a,fn(t))+1).join("")},Dn.trimStart=function(e,t,n){if((e=bo(e))&&(n||t===i))return e.replace(se,"");if(!e||!(t=pa(t)))return e;var a=fn(e);return _a(a,tn(a,fn(t))).join("")},Dn.truncate=function(e,t){var n=30,a="...";if(eo(t)){var s="separator"in t?t.separator:s;n="length"in t?ho(t.length):n,a="omission"in t?pa(t.omission):a}var r=(e=bo(e)).length;if(on(e)){var o=fn(e);r=o.length}if(n>=r)return e;var c=n-mn(a);if(c<1)return a;var l=o?_a(o,0,c).join(""):e.slice(0,c);if(s===i)return l+a;if(o&&(c+=l.length-c),so(s)){if(e.slice(c).search(s)){var p,u=l;for(s.global||(s=Re(s.source,bo(fe.exec(s))+"g")),s.lastIndex=0;p=s.exec(u);)var d=p.index;l=l.slice(0,d===i?c:d)}}else if(e.indexOf(pa(s),c)!=c){var m=l.lastIndexOf(s);m>-1&&(l=l.slice(0,m))}return l+a},Dn.unescape=function(e){return(e=bo(e))&&G.test(e)?e.replace(H,gn):e},Dn.uniqueId=function(e){var t=++ze;return bo(e)+t},Dn.upperCase=Jo,Dn.upperFirst=Zo,Dn.each=yr,Dn.eachRight=br,Dn.first=Ks,cc(Dn,(_c={},wi(Dn,(function(e,t){Pe.call(Dn.prototype,t)||(_c[t]=e)})),_c),{chain:!1}),Dn.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dn[e].placeholder=Dn})),Rt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:bn(ho(n),0);var a=this.__filtered__&&!t?new Vn(this):this.clone();return a.__filtered__?a.__takeCount__=xn(n,a.__takeCount__):a.__views__.push({size:xn(n,h),type:e+(a.__dir__<0?"Right":"")}),a},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ls(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Rt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ac)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zi((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return ji(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ur(ls(e)))},Vn.prototype.slice=function(e,t){e=ho(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ho(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(h)},wi(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),s=Dn[a?"take"+("last"==t?"Right":""):t],r=a||/^find/.test(t);s&&(Dn.prototype[t]=function(){var t=this.__wrapped__,o=a?[1]:arguments,c=t instanceof Vn,l=o[0],p=c||Yr(t),u=function(e){var t=s.apply(Dn,Ut([e],o));return a&&d?t[0]:t};p&&n&&"function"==typeof l&&1!=l.length&&(c=p=!1);var d=this.__chain__,m=!!this.__actions__.length,f=r&&!d,h=c&&!m;if(!r&&p){t=h?t:new Vn(this);var g=e.apply(t,o);return g.__actions__.push({func:mr,args:[u],thisArg:i}),new Yn(g,d)}return f&&h?e.apply(this,o):(g=this.thru(u),f?a?g.value()[0]:g.value():g)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var a=this.value();return t.apply(Yr(a)?a:[],e)}return this[n]((function(n){return t.apply(Yr(n)?n:[],e)}))}})),wi(Vn.prototype,(function(e,t){var n=Dn[t];if(n){var i=n.name+"";Pe.call(Cn,i)||(Cn[i]=[]),Cn[i].push({name:t,func:n})}})),Cn[Da(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Oa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oa(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Yr(e),i=t<0,a=n?e.length:0,s=function(e,t,n){var i=-1,a=n.length;for(;++i<a;){var s=n[i],r=s.size;switch(s.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=xn(t,e+r);break;case"takeRight":e=bn(e,t-r)}}return{start:e,end:t}}(0,a,this.__views__),r=s.start,o=s.end,c=o-r,l=i?o:r-1,p=this.__iteratees__,u=p.length,d=0,m=xn(c,this.__takeCount__);if(!n||!i&&a==c&&m==c)return ha(e,this.__actions__);var f=[];e:for(;c--&&d<m;){for(var h=-1,g=e[l+=t];++h<u;){var v=p[h],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}f[d++]=g}return f},Dn.prototype.at=fr,Dn.prototype.chain=function(){return dr(this)},Dn.prototype.commit=function(){return new Yn(this.value(),this.__chain__)},Dn.prototype.next=function(){this.__values__===i&&(this.__values__=mo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Dn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var a=qs(n);a.__index__=0,a.__values__=i,t?s.__wrapped__=a:t=a;var s=a;n=n.__wrapped__}return s.__wrapped__=e,t},Dn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:mr,args:[er],thisArg:i}),new Yn(t,this.__chain__)}return this.thru(er)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return ha(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Qe&&(Dn.prototype[Qe]=function(){return this}),Dn}();gt?((gt.exports=vn)._=vn,ht._=vn):ft._=vn}).call(t)}($t,$t.exports);var Bt=$t.exports;const Yt={type:W,stimulus:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?sn.audio[Bt.camelCase("introductionNs")]:sn.audio[Bt.camelCase("introduction")],choices:"ALL_KEYS",prompt:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Fe.t("introduction.intro.text1")} </h3>\n <p> ${Fe.t("introduction.intro.text2")} </p> \n <p> ${Fe.t("introduction.intro.text3")} </p>\n </div>\n <div class="button"> ${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.continue")}`})} </div>\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${Fe.t("introduction.intro.text4")} </h3>\n <p> ${Fe.t("introduction.intro.text5")} </p> \n <p> ${Fe.t("introduction.intro.text6")} </p> \n <p> ${Fe.t("introduction.intro.text3")} </p>\n </div>\n <div class="button">${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.continue")}`})}</div>\n </div>\n `},Vt={timeline:[{type:W,stimulus:()=>sn.audio.postPracticeInstruction,prompt:`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${Fe.t("practice.postPracticeIntro.text1")}</h3>\n <p>${Fe.t("practice.postPracticeIntro.text2")}</p>\n <p>${Fe.t("practice.postPracticeIntro.text3")}</p>\n <p>${Fe.t("practice.postPracticeIntro.text4")}</p>\n <p>${Fe.t("practice.postPracticeIntro.text5")}</p>\n <div class="button">${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.continue")}`})}</div>\n </div>\n `},{type:W,stimulus:()=>sn.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>Remember!</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${Fe.t("practice.postPracticeReminder.text1")} </p>\n <img width="70%" src="${sn.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${Fe.t("practice.postPracticeReminder.text2")} </p>\n <img width="70%" src="${sn.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b> ${Fe.t("practice.postPracticeReminder.text3")} </b></p>\n <p><b> ${Fe.t("practice.postPracticeReminder.text4")} </b></p>\n <div class="button">${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.begin")}`})} </div>\n </div>`,on_finish:e=>{s.session.set("indexTracking",0)}}]},Kt={name:"html-keyboard-response",parameters:{stimulus:{type:u.HTML_STRING,pretty_name:"Stimulus",default:void 0},choices:{type:u.KEYS,pretty_name:"Choices",default:"ALL_KEYS"},prompt:{type:u.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:u.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:u.INT,pretty_name:"Trial duration",default:null},response_ends_trial:{type:u.BOOL,pretty_name:"Response ends trial",default:!0}}};class Ht{constructor(e){this.jsPsych=e}trial(e,t){var n='<div id="jspsych-html-keyboard-response-stimulus">'+t.stimulus+"</div>";null!==t.prompt&&(n+=t.prompt),e.innerHTML=n;var i={rt:null,key:null};const a=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==s&&this.jsPsych.pluginAPI.cancelKeyboardResponse(s);var n={rt:i.rt,stimulus:t.stimulus,response:i.key};e.innerHTML="",this.jsPsych.finishTrial(n)};if("NO_KEYS"!=t.choices)var s=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:n=>{e.querySelector("#jspsych-html-keyboard-response-stimulus").className+=" responded",null==i.key&&(i=n),t.response_ends_trial&&a()},valid_responses:t.choices,rt_method:"performance",persist:!1,allow_held_key:!1});null!==t.stimulus_duration&&this.jsPsych.pluginAPI.setTimeout((()=>{e.querySelector("#jspsych-html-keyboard-response-stimulus").style.visibility="hidden"}),t.stimulus_duration),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(a,t.trial_duration)}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){const n={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),response:this.jsPsych.pluginAPI.getValidKey(e.choices)},i=this.jsPsych.pluginAPI.mergeSimulationData(n,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,i),i}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.create_simulation_data(e,t),a=this.jsPsych.getDisplayElement();this.trial(a,e),n(),null!==i.rt&&this.jsPsych.pluginAPI.pressKey(i.response,i.rt)}}Ht.info=Kt;const Wt={type:W,stimulus:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?sn.audio[Bt.camelCase("halfwayNs")]:sn.audio[Bt.camelCase(`${s.session("character")}Halfway`)],prompt:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${i18next.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${i18next.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n <div class="button"> ${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.continue")}`})} </div>\n </div>\n `:`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${sn.images[Bt.camelCase(`${s.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle" id="halfway-position">\n <p> ${i18next.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${i18next.t("gameBreak.halfwayScreen.text3")}</p>\n </div>\n </div>\n </div>\n <div class="button"> ${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.continue")}`})} </div>\n </div>`,choices:"ALL_KEYS",on_finish:e=>{s.session.set("indexTracking",0)}},Gt={timeline:[{type:W,stimulus:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?sn.audio[Bt.camelCase("endNs")]:sn.audio[Bt.camelCase(`${s.session("character")}End`)],prompt:()=>"nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${i18next.t("gameBreak.endScreen.text1")} </h3>\n <p> ${i18next.t("gameBreak.endScreen.text2")} </p> \n </div>\n <div class="button">${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.save")}`})}</div>\n </div>\n `:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${sn.images.classroomBackground}" alt= "classroom" style="width:100%;"> \n </div>\n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3> ${i18next.t("gameBreak.endScreen.text3")} </h3>\n <p> ${s.session("character_name")} ${i18next.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${sn.images[Bt.camelCase(`${s.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n <div class="button">${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.save")}`})}</div>\n </div>\n `,choices:"ALL_KEYS",data:{save_trial:!1}},{timeline:[{type:Ht,stimulus:()=>`<div class="jspsych-content-modified">\n <div class="container">\n <img src="${sn.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${i18next.t("gameBreak.debrief.text1")}</h3>\n <p>${i18next.t("gameBreak.debrief.text2")}</p>\n </div>\n <div class="button">${i18next.t("navigation.continueButtonText",{action:`${i18next.t("terms.close")}`})}</div>\n </div>`}],conditional_function:()=>"demo"===s.session.get("config").userMode},{type:J,fullscreen_mode:!1,delay_after:0}]},Jt={1:{character:"dog",characterName:"Amy",characterActivity:"go to track practice"},2:{character:"cat",characterName:"Carson",characterActivity:"go to debate club"},3:{character:"bird",characterName:"Jaiden",characterActivity:"hang out with my friends"},4:{character:"deer",characterName:"Dylan",characterActivity:"volunteer at the soup kitchen"}},Zt=[1,2,3,4],Qt=["dog","cat","bird","deer"],Xt={timeline:[{type:W,stimulus:()=>sn.audio.studentSelect,prompt:()=>` <div class="jspsych-content-modified">\n <div class="class-container">\n <img src=${sn.images.classroomBackground} alt="background" style="width:100%;"> \n </div> \n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3>${Fe.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${Fe.t("characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n <div class="number">\n ${Zt.map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}\n </div>\n <div class="student">\n ${Qt.map((e=>`<img src=${sn.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${Fe.t("navigation.studentSelect")} \n </div>\n </div>\n `,choices:["1","2","3","4"],data:{save_trial:!1},on_finish:e=>{s.session.set("character",Jt[e.response].character),s.session.set("character_name",Jt[e.response].characterName),s.session.set("character_activity",Jt[e.response].characterActivity)}},{type:W,stimulus:()=>sn.audio[Bt.camelCase(`${s.session("character")}Intro`)],prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${sn.images[Bt.camelCase(`${s.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${Fe.t("characterSelect.studentIntro.paragraph1")} ${s.session("character_name")}. </p>\n <p> ${Fe.t("characterSelect.studentIntro.paragraph2")} ${s.session("character_activity")}. </p>\n <p> ${Fe.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n <div class="button">${Fe.t("navigation.continueButtonText",{action:`${Fe.t("terms.continue")}`})}</div>\n </div>`,choices:"ALL_KEYS"}],conditional_function:()=>!("nostory"===s.session.get("config").userMode||"default"===s.session.get("config").userMode&&s.session.get("config").userMetadata.grade>=6)},en=e=>({timeline:[{type:Ht,stimulus:()=>(0===s.session("indexTracking")&&(setTimeout((()=>s.session.set("timeOut",!0)),18e4),"lab"===e||"ai"===e?s.session.set("currentCorpus",qt[e]):s.session.set("currentCorpus",qt[s.session("tosrecCorpusId")])),`<div class = stimulus_div><p class = 'stimulus'>${s.session("currentCorpus")[s.session("indexTracking")].sentence}</p></div>`),prompt:`<div><img class="lower" src="${sn.images.roarSreKeyboard}" alt="arrow keys"></div>`,choices:["ArrowLeft","ArrowRight"],data:{assessment_stage:"test_response"},on_finish:t=>{"arrowleft"===t.response?s.session.set("keyResponse","left"):s.session.set("keyResponse","right"),t.correct=Ut.pluginAPI.compareKeys(s.session("keyResponse"),s.session("currentCorpus")[s.session("indexTracking")].direction),t.correct?s.session.set("dataCorrect",1):s.session.set("dataCorrect",0),Ut.data.addDataToLastTrial({save_trial:!s.session("timeOut"),pid:s.session.get("config").pid,blockId:e,corpusId:"lab"===e||"ai"==e?e:s.session("tosrecCorpusId"),trialNumBlock:s.session("indexTracking")+1,itemId:s.session("currentCorpus")[s.session("indexTracking")].itemId,item:s.session("currentCorpus")[s.session("indexTracking")].sentence,truefalse:s.session("currentCorpus")[s.session("indexTracking")].answer,correct:s.session("dataCorrect")})}},{type:W,stimulus:()=>sn.audio.neutralSoundSub,prompt:`<div><img class="lower" src="${sn.images.roarSreKeyboard}" alt="arrow keys"></div>`,choices:[],trial_duration:200,response_allowed_while_playing:!1,trial_ends_after_audio:!0}],loop_function:function(e){return s.session("indexTracking")===s.session("currentCorpus").length-1||s.session("timeOut")?(s.session.set("indexTracking",0),s.session.set("timeOut",!1),!1):(s.session.transact("indexTracking",(e=>e+1)),!0)}}),tn={type:W,stimulus:()=>sn.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${Fe.t("practice.intro.text1")}</h2>\n <p>${Fe.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="column_2_upper" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> \n ${Fe.t("practice.intro.text3")} \n </p>\n <img width="60%" src="${sn.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="column_2_upper" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> \n ${Fe.t("practice.intro.text4")} \n </p>\n <img width="60%" src="${sn.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${Fe.t("practice.intro.text5")}</b> </p> \n <div class="button">${Fe.t("practice.intro.text6")}</div>\n </div>\n `,choices:"ALL_KEYS",on_finish:e=>{s.session.set("indexTracking",-1)}},nn={type:Ht,stimulus:()=>(console.log("indexTracking: ",s.session("indexTracking")),s.session.transact("indexTracking",(e=>e+1)),console.log("indexTracking after: ",s.session("indexTracking")),console.log("practice corpus:",s.session("practiceCorpus")),`\n <div class = stimulus_div>\n <p class = 'stimulus'>${s.session("practiceCorpus")[s.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>`\n <div> \n <img class="lower" src="${sn.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,choices:["ArrowLeft","ArrowRight"],data:{assessment_stage:"practice_response",corpusId:"practice",save_trial:!0},on_finish:e=>{e.correct=Ut.pluginAPI.compareKeys(e.response,s.session("practiceCorpus")[s.session("indexTracking")].correct_response),s.session.set("arrowResponse",e.response),e.correct?(s.session.set("dataCorrect",1),s.session.set("feedbackResponse","Correct!")):(s.session.set("dataCorrect",0),s.session.set("feedbackResponse","That's not quite right."));const t="arrowleft"===e.response;s.session.set("responseLR",t?"left":"right"),s.session.set("answerRP",t?"false":"true"),s.session.set("responseColor",t?"orange":"blue");const n="arrowleft"===s.session("practiceCorpus")[s.session("indexTracking")].correct_response;s.session.set("correctLR",n?"left":"right"),s.session.set("correctRP",n?"false":"true"),s.session.set("answerColor",n?"orange":"blue"),Ut.data.addDataToLastTrial({pid:s.session.get("config").pid,blockId:"practice",corpusId:"practice",correct:s.session("dataCorrect"),trialNumBlock:s.session("indexTracking"),item:s.session("practiceCorpus")[s.session("indexTracking")].sentence,truefalse:s.session("practiceCorpus")[s.session("indexTracking")].answer})}},an={type:W,response_allowed_while_playing:()=>s.session.get("config").skipInstructions,stimulus:()=>1===s.session("dataCorrect")?sn.audio[Bt.camelCase(`feedback-${s.session("indexTracking")}-correct`)]:sn.audio[Bt.camelCase(`feedback-${s.session("indexTracking")}-incorrect`)],prompt:()=>`\n <div class = stimulus_div>\n <p class="feedback">\n <span class=${s.session("responseColor")}>${s.session("feedbackResponse")} ${Fe.t("practice.feedback.text1",{arrow:"left"===s.session("responseLR")?Fe.t("terms.left"):Fe.t("terms.right"),type:"true"==s.session("answerRP")?Fe.t("terms.true"):Fe.t("terms.false")})}</span>\n <br></br> \n "${s.session("practiceCorpus")[s.session("indexTracking")].sentence}"\n <span class=${s.session("answerColor")}> ${Fe.t("practice.feedback.text2",{arrow:"left"===s.session("correctLR")?Fe.t("terms.left"):Fe.t("terms.right"),type:"true"==s.session("correctRP")?Fe.t("terms.true"):Fe.t("terms.false")})}</span>\n </p>\n </div>\n <img class="lower" src= "${"false"===s.session("correctRP")?sn.images.falseFlashKey:sn.images.trueFlashKey}" alt="arrow keys">`,choices:()=>"false"===s.session("correctRP")?["ArrowLeft"]:["ArrowRight"]};let sn,rn;function on(e){const t="https://storage.googleapis.com/roar-sre";sn=function(e,t,n){var i={images:{},video:{},audio:{}},a=kt(n),s=It(),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=At(e),l=Tt.parse(e).name.replace(/^([A-Z])|[\s-_](\w)/g,(function(e,t,n,i){return n?n.toUpperCase():t.toLowerCase()})),p=Rt(t,e,a,s,n,r,o);i[c][l]=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=Ct(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=Ct(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=Ct(e,2);t[0];var n=t[1];o(n)})),e.default&&o(e.default,!0),i}(Dt,t),rn=Ft(Dt,t).default,Ic(e);const n=Rc(e),i=[rn,...n.timeline];return(()=>{s.session.set("timeOut",!1),s.session.set("practiceCorpus",qt.practice);const e={timeline:[nn,an],repetitions:4};i.push(Yt),i.push(Xt),i.push(tn),i.push(e),i.push(Vt),i.push(en("lab")),i.push(Wt),i.push(en("ai")),i.push(Gt)})(),{jsPsych:Ut,timeline:i}}const cn=[st,{timeline:[{type:$,questions:[{prompt:"Lab ID:",name:"labId",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{s.session.get("config").labId=e.response.labId;const t="yeatmanlab"===s.session.get("config").labId?["prod","roar-prod"]:["external",s.session.get("config").labId];roarConfig.rootDoc="production"===ROAR_DB_DOC?t:["dev","roar-sre"]}}],conditional_function:()=>{if("otherLabs"===s.session.get("config").taskVariant){if(null===s.session.get("config").labId)return!0;{const e="yeatmanlab"===s.session.get("config").labId?["prod","roar-prod"]:["external",s.session.get("config").labId];return roarConfig.rootDoc="production"===ROAR_DB_DOC?e:["dev","roar-sre"],!1}}return!1}},{timeline:[{type:$,questions:[{prompt:"Participant ID:",name:"pid",required:!0}],css_classes:["jspsych-content-modified"],on_finish:e=>{s.session.get("config").pid=e.response.pid}}],conditional_function:function(){return null===s.session.get("config").pid&&"demo"!==s.session.get("config").userMode}},{timeline:[{type:Y,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:()=>Boolean("demo"===s.session.get("config").userMode||"otherLabs"===s.session.get("config").taskVariant&&!0===s.session.get("config").consent)},{timeline:[{type:K,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=>{let t={};for(const n in e.response)""===e.response[n]?t[n]=null:t[n]="retake"===n||"ell"===n?parseInt(e.response[n]):e.response[n];t.grade=s.session.get("config").userMetadata.grade,s.session.get("config").userMetadata=t}}],conditional_function:()=>Boolean("demo"===s.session.get("config").userMode||"otherLabs"===s.session.get("config").taskVariant&&!0===s.session.get("config").consent)},{timeline:[{type:W,stimulus:()=>sn.audio.gradeSelect,prompt:()=>`\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="${sn.images.gradeKeyboard}" alt="grade keys">\n <div class="button">${Fe.t("introduction.gradeSelect.text4")}</div>\n </div>`,choices:["1","2","3","4","5","6","7","8"],on_finish:e=>{s.session.set("tosrecCorpusId","tosrec"+e.response),s.session.get("config").userMetadata.grade=e.response}}],conditional_function:()=>{const e=s.session.get("config").userMetadata.grade;return!(e&&e-Math.round(e)==0&&e<=8&&e>=1)||(s.session.set("tosrecCorpusId","tosrec"+e),!1)}}];var ln=function(){this.__data__=[],this.size=0};var pn=function(e,t){return e===t||e!=e&&t!=t},un=pn;var dn=function(e,t){for(var n=e.length;n--;)if(un(e[n][0],t))return n;return-1},mn=dn,fn=Array.prototype.splice;var hn=dn;var gn=dn;var vn=dn;var yn=ln,bn=function(e){var t=this.__data__,n=mn(t,e);return!(n<0)&&(n==t.length-1?t.pop():fn.call(t,n,1),--this.size,!0)},xn=function(e){var t=this.__data__,n=hn(t,e);return n<0?void 0:t[n][1]},wn=function(e){return gn(this.__data__,e)>-1},_n=function(e,t){var n=this.__data__,i=vn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function En(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])}}En.prototype.clear=yn,En.prototype.delete=bn,En.prototype.get=xn,En.prototype.has=wn,En.prototype.set=_n;var Sn=En,Tn=Sn;var kn=function(){this.__data__=new Tn,this.size=0};var In=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Rn=function(e){return this.__data__.get(e)};var An=function(e){return this.__data__.has(e)},On="object"==typeof t&&t&&t.Object===Object&&t,jn=On,Cn="object"==typeof self&&self&&self.Object===Object&&self,Ln=jn||Cn||Function("return this")(),Fn=Ln.Symbol,Un=Fn,Pn=Object.prototype,zn=Pn.hasOwnProperty,Nn=Pn.toString,qn=Un?Un.toStringTag:void 0;var Mn=function(e){var t=zn.call(e,qn),n=e[qn];try{e[qn]=void 0;var i=!0}catch(e){}var a=Nn.call(e);return i&&(t?e[qn]=n:delete e[qn]),a},Dn=Object.prototype.toString;var $n=Mn,Bn=function(e){return Dn.call(e)},Yn=Fn?Fn.toStringTag:void 0;var Vn=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Yn&&Yn in Object(e)?$n(e):Bn(e)};var Kn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Hn=Vn,Wn=Kn;var Gn,Jn=function(e){if(!Wn(e))return!1;var t=Hn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Zn=Ln["__core-js_shared__"],Qn=(Gn=/[^.]+$/.exec(Zn&&Zn.keys&&Zn.keys.IE_PROTO||""))?"Symbol(src)_1."+Gn:"";var Xn=function(e){return!!Qn&&Qn in e},ei=Function.prototype.toString;var ti=function(e){if(null!=e){try{return ei.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ni=Jn,ii=Xn,ai=Kn,si=ti,ri=/^\[object .+?Constructor\]$/,oi=Function.prototype,ci=Object.prototype,li=oi.toString,pi=ci.hasOwnProperty,ui=RegExp("^"+li.call(pi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var di=function(e){return!(!ai(e)||ii(e))&&(ni(e)?ui:ri).test(si(e))},mi=function(e,t){return null==e?void 0:e[t]};var fi=function(e,t){var n=mi(e,t);return di(n)?n:void 0},hi=fi(Ln,"Map"),gi=fi(Object,"create"),vi=gi;var yi=function(){this.__data__=vi?vi(null):{},this.size=0};var bi=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},xi=gi,wi=Object.prototype.hasOwnProperty;var _i=function(e){var t=this.__data__;if(xi){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return wi.call(t,e)?t[e]:void 0},Ei=gi,Si=Object.prototype.hasOwnProperty;var Ti=gi;var ki=yi,Ii=bi,Ri=_i,Ai=function(e){var t=this.__data__;return Ei?void 0!==t[e]:Si.call(t,e)},Oi=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ti&&void 0===t?"__lodash_hash_undefined__":t,this};function ji(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])}}ji.prototype.clear=ki,ji.prototype.delete=Ii,ji.prototype.get=Ri,ji.prototype.has=Ai,ji.prototype.set=Oi;var Ci=ji,Li=Sn,Fi=hi;var Ui=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Pi=function(e,t){var n=e.__data__;return Ui(t)?n["string"==typeof t?"string":"hash"]:n.map},zi=Pi;var Ni=Pi;var qi=Pi;var Mi=Pi;var Di=function(){this.size=0,this.__data__={hash:new Ci,map:new(Fi||Li),string:new Ci}},$i=function(e){var t=zi(this,e).delete(e);return this.size-=t?1:0,t},Bi=function(e){return Ni(this,e).get(e)},Yi=function(e){return qi(this,e).has(e)},Vi=function(e,t){var n=Mi(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Ki(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])}}Ki.prototype.clear=Di,Ki.prototype.delete=$i,Ki.prototype.get=Bi,Ki.prototype.has=Yi,Ki.prototype.set=Vi;var Hi=Ki,Wi=Sn,Gi=hi,Ji=Hi;var Zi=Sn,Qi=kn,Xi=In,ea=Rn,ta=An,na=function(e,t){var n=this.__data__;if(n instanceof Wi){var i=n.__data__;if(!Gi||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ji(i)}return n.set(e,t),this.size=n.size,this};function ia(e){var t=this.__data__=new Zi(e);this.size=t.size}ia.prototype.clear=Qi,ia.prototype.delete=Xi,ia.prototype.get=ea,ia.prototype.has=ta,ia.prototype.set=na;var aa=ia;var sa=Hi,ra=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oa=function(e){return this.__data__.has(e)};function ca(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new sa;++t<n;)this.add(e[t])}ca.prototype.add=ca.prototype.push=ra,ca.prototype.has=oa;var la=ca,pa=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},ua=function(e,t){return e.has(t)};var da=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),p=s.get(t);if(l&&p)return l==t&&p==e;var u=-1,d=!0,m=2&n?new la:void 0;for(s.set(e,t),s.set(t,e);++u<o;){var f=e[u],h=t[u];if(i)var g=r?i(h,f,u,t,e,s):i(f,h,u,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(m){if(!pa(t,(function(e,t){if(!ua(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};var ma=Ln.Uint8Array,fa=pn,ha=da,ga=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n},va=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},ya=Fn?Fn.prototype:void 0,ba=ya?ya.valueOf:void 0;var xa=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 ma(e),new ma(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return fa(+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=ga;case"[object Set]":var c=1&i;if(o||(o=va),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var p=ha(o(e),o(t),i,a,s,r);return r.delete(e),p;case"[object Symbol]":if(ba)return ba.call(e)==ba.call(t)}return!1};var wa=function(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e},_a=Array.isArray,Ea=wa,Sa=_a;var Ta=function(e,t,n){var i=t(e);return Sa(e)?i:Ea(i,n(e))};var ka=function(){return[]},Ia=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},Ra=ka,Aa=Object.prototype.propertyIsEnumerable,Oa=Object.getOwnPropertySymbols,ja=Oa?function(e){return null==e?[]:(e=Object(e),Ia(Oa(e),(function(t){return Aa.call(e,t)})))}:Ra;var Ca=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i};var La=function(e){return null!=e&&"object"==typeof e},Fa=Vn,Ua=La;var Pa=function(e){return Ua(e)&&"[object Arguments]"==Fa(e)},za=La,Na=Object.prototype,qa=Na.hasOwnProperty,Ma=Na.propertyIsEnumerable,Da=Pa(function(){return arguments}())?Pa:function(e){return za(e)&&qa.call(e,"callee")&&!Ma.call(e,"callee")},$a={exports:{}};var Ba=function(){return!1};!function(e,t){var n=Ln,i=Ba,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}($a,$a.exports);var Ya=$a.exports,Va=/^(?:0|[1-9]\d*)$/;var Ka=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Va.test(e))&&e>-1&&e%1==0&&e<t};var Ha=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Wa=Vn,Ga=Ha,Ja=La,Za={};Za["[object Float32Array]"]=Za["[object Float64Array]"]=Za["[object Int8Array]"]=Za["[object Int16Array]"]=Za["[object Int32Array]"]=Za["[object Uint8Array]"]=Za["[object Uint8ClampedArray]"]=Za["[object Uint16Array]"]=Za["[object Uint32Array]"]=!0,Za["[object Arguments]"]=Za["[object Array]"]=Za["[object ArrayBuffer]"]=Za["[object Boolean]"]=Za["[object DataView]"]=Za["[object Date]"]=Za["[object Error]"]=Za["[object Function]"]=Za["[object Map]"]=Za["[object Number]"]=Za["[object Object]"]=Za["[object RegExp]"]=Za["[object Set]"]=Za["[object String]"]=Za["[object WeakMap]"]=!1;var Qa=function(e){return Ja(e)&&Ga(e.length)&&!!Za[Wa(e)]};var Xa=function(e){return function(t){return e(t)}},es={exports:{}};!function(e,t){var n=On,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}(es,es.exports);var ts=es.exports,ns=Qa,is=Xa,as=ts&&ts.isTypedArray,ss=as?is(as):ns,rs=Ca,os=Da,cs=_a,ls=Ya,ps=Ka,us=ss,ds=Object.prototype.hasOwnProperty;var ms=function(e,t){var n=cs(e),i=!n&&os(e),a=!n&&!i&&ls(e),s=!n&&!i&&!a&&us(e),r=n||i||a||s,o=r?rs(e.length,String):[],c=o.length;for(var l in e)!t&&!ds.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ps(l,c))||o.push(l);return o},fs=Object.prototype;var hs=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||fs)};var gs=function(e,t){return function(n){return e(t(n))}},vs=gs(Object.keys,Object),ys=hs,bs=vs,xs=Object.prototype.hasOwnProperty;var ws=Jn,_s=Ha;var Es=function(e){return null!=e&&_s(e.length)&&!ws(e)},Ss=ms,Ts=function(e){if(!ys(e))return bs(e);var t=[];for(var n in Object(e))xs.call(e,n)&&"constructor"!=n&&t.push(n);return t},ks=Es;var Is=function(e){return ks(e)?Ss(e):Ts(e)},Rs=Ta,As=ja,Os=Is;var js=function(e){return Rs(e,Os,As)},Cs=Object.prototype.hasOwnProperty;var Ls=function(e,t,n,i,a,s){var r=1&n,o=js(e),c=o.length;if(c!=js(t).length&&!r)return!1;for(var l=c;l--;){var p=o[l];if(!(r?p in t:Cs.call(t,p)))return!1}var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var f=r;++l<c;){var h=e[p=o[l]],g=t[p];if(i)var v=r?i(g,h,p,t,e,s):i(h,g,p,e,t,s);if(!(void 0===v?h===g||a(h,g,n,i,s):v)){m=!1;break}f||(f="constructor"==p)}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},Fs=fi(Ln,"DataView"),Us=hi,Ps=fi(Ln,"Promise"),zs=fi(Ln,"Set"),Ns=fi(Ln,"WeakMap"),qs=Vn,Ms=ti,Ds="[object Map]",$s="[object Promise]",Bs="[object Set]",Ys="[object WeakMap]",Vs="[object DataView]",Ks=Ms(Fs),Hs=Ms(Us),Ws=Ms(Ps),Gs=Ms(zs),Js=Ms(Ns),Zs=qs;(Fs&&Zs(new Fs(new ArrayBuffer(1)))!=Vs||Us&&Zs(new Us)!=Ds||Ps&&Zs(Ps.resolve())!=$s||zs&&Zs(new zs)!=Bs||Ns&&Zs(new Ns)!=Ys)&&(Zs=function(e){var t=qs(e),n="[object Object]"==t?e.constructor:void 0,i=n?Ms(n):"";if(i)switch(i){case Ks:return Vs;case Hs:return Ds;case Ws:return $s;case Gs:return Bs;case Js:return Ys}return t});var Qs=aa,Xs=da,er=xa,tr=Ls,nr=Zs,ir=_a,ar=Ya,sr=ss,rr="[object Arguments]",or="[object Array]",cr="[object Object]",lr=Object.prototype.hasOwnProperty;var pr=function(e,t,n,i,a,s){var r=ir(e),o=ir(t),c=r?or:nr(e),l=o?or:nr(t),p=(c=c==rr?cr:c)==cr,u=(l=l==rr?cr:l)==cr,d=c==l;if(d&&ar(e)){if(!ar(t))return!1;r=!0,p=!1}if(d&&!p)return s||(s=new Qs),r||sr(e)?Xs(e,t,n,i,a,s):er(e,t,c,n,i,a,s);if(!(1&n)){var m=p&&lr.call(e,"__wrapped__"),f=u&&lr.call(t,"__wrapped__");if(m||f){var h=m?e.value():e,g=f?t.value():t;return s||(s=new Qs),a(h,g,n,i,s)}}return!!d&&(s||(s=new Qs),tr(e,t,n,i,a,s))},ur=La;var dr=function e(t,n,i,a,s){return t===n||(null==t||null==n||!ur(t)&&!ur(n)?t!=t&&n!=n:pr(t,n,i,a,e,s))},mr=aa,fr=dr;var hr=Kn;var gr=function(e){return e==e&&!hr(e)},vr=gr,yr=Is;var br=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},xr=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],p=o[1];if(r&&o[2]){if(void 0===l&&!(c in e))return!1}else{var u=new mr;if(i)var d=i(l,p,c,e,t,u);if(!(void 0===d?fr(p,l,3,i,u):d))return!1}}return!0},wr=function(e){for(var t=yr(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,vr(a)]}return t},_r=br;var Er=function(e){var t=wr(e);return 1==t.length&&t[0][2]?_r(t[0][0],t[0][1]):function(n){return n===e||xr(n,e,t)}},Sr=Vn,Tr=La;var kr=function(e){return"symbol"==typeof e||Tr(e)&&"[object Symbol]"==Sr(e)},Ir=_a,Rr=kr,Ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Or=/^\w*$/;var jr=function(e,t){if(Ir(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Rr(e))||(Or.test(e)||!Ar.test(e)||null!=t&&e in Object(t))},Cr=Hi;function Lr(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(Lr.Cache||Cr),n}Lr.Cache=Cr;var Fr=Lr;var Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pr=/\\(\\)?/g,zr=function(e){var t=Fr(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(Ur,(function(e,n,i,a){t.push(i?a.replace(Pr,"$1"):n||e)})),t}));var Nr=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},qr=Nr,Mr=_a,Dr=kr,$r=Fn?Fn.prototype:void 0,Br=$r?$r.toString:void 0;var Yr=function e(t){if("string"==typeof t)return t;if(Mr(t))return qr(t,e)+"";if(Dr(t))return Br?Br.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Vr=Yr;var Kr=_a,Hr=jr,Wr=zr,Gr=function(e){return null==e?"":Vr(e)};var Jr=function(e,t){return Kr(e)?e:Hr(e,t)?[e]:Wr(Gr(e))},Zr=kr;var Qr=function(e){if("string"==typeof e||Zr(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Xr=Jr,eo=Qr;var to=function(e,t){for(var n=0,i=(t=Xr(t,e)).length;null!=e&&n<i;)e=e[eo(t[n++])];return n&&n==i?e:void 0},no=to;var io=function(e,t,n){var i=null==e?void 0:no(e,t);return void 0===i?n:i};var ao=Jr,so=Da,ro=_a,oo=Ka,co=Ha,lo=Qr;var po=function(e,t,n){for(var i=-1,a=(t=ao(t,e)).length,s=!1;++i<a;){var r=lo(t[i]);if(!(s=null!=e&&n(e,r)))break;e=e[r]}return s||++i!=a?s:!!(a=null==e?0:e.length)&&co(a)&&oo(r,a)&&(ro(e)||so(e))},uo=function(e,t){return null!=e&&t in Object(e)},mo=po;var fo=function(e,t){return null!=e&&mo(e,t,uo)},ho=dr,go=io,vo=fo,yo=jr,bo=gr,xo=br,wo=Qr;var _o=function(e,t){return yo(e)&&bo(t)?xo(wo(e),t):function(n){var i=go(n,e);return void 0===i&&i===t?vo(n,e):ho(t,i,3)}};var Eo=to;var So=function(e){return function(t){return Eo(t,e)}},To=function(e){return function(t){return null==t?void 0:t[e]}},ko=So,Io=jr,Ro=Qr;var Ao=function(e){return Io(e)?To(Ro(e)):ko(e)},Oo=Er,jo=_o,Co=function(e){return e},Lo=_a,Fo=Ao;var Uo=function(e){return"function"==typeof e?e:null==e?Co:"object"==typeof e?Lo(e)?jo(e[0],e[1]):Oo(e):Fo(e)};var Po=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)}},zo=fi,No=function(){try{var e=zo(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var qo=function(e,t,n){"__proto__"==t&&No?No(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Mo=pn,Do=Object.prototype.hasOwnProperty;var $o=function(e,t,n){var i=e[t];Do.call(e,t)&&Mo(i,n)&&(void 0!==n||t in e)||qo(e,t,n)},Bo=Jr,Yo=Ka,Vo=Kn,Ko=Qr;var Ho=function(e,t,n,i){if(!Vo(e))return e;for(var a=-1,s=(t=Bo(t,e)).length,r=s-1,o=e;null!=o&&++a<s;){var c=Ko(t[a]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=r){var p=o[c];void 0===(l=i?i(p,c,o):void 0)&&(l=Vo(p)?p:Yo(t[a+1])?[]:{})}$o(o,c,l),o=o[c]}return e},Wo=to,Go=Ho,Jo=Jr;var Zo=function(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var r=t[i],o=Wo(e,r);n(o,r)&&Go(s,Jo(r,e),o)}return s},Qo=gs(Object.getPrototypeOf,Object),Xo=wa,ec=Qo,tc=ja,nc=ka,ic=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Xo(t,tc(e)),e=ec(e);return t}:nc;var ac=Kn,sc=hs,rc=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},oc=Object.prototype.hasOwnProperty;var cc=ms,lc=function(e){if(!ac(e))return rc(e);var t=sc(e),n=[];for(var i in e)("constructor"!=i||!t&&oc.call(e,i))&&n.push(i);return n},pc=Es;var uc=Ta,dc=ic,mc=function(e){return pc(e)?cc(e,!0):lc(e)};var fc=Nr,hc=Uo,gc=Zo,vc=function(e){return uc(e,mc,dc)};var yc=function(e,t){if(null==e)return{};var n=fc(vc(e),(function(e){return[e]}));return t=hc(t),gc(e,n,(function(e,n){return t(e,n[0])}))},bc=Uo,xc=Po,wc=yc;var _c=n((function(e,t){return wc(e,xc(bc(t)))}));var Ec=n((function(e){return null===e}));var Sc=n((function(e){return void 0===e}));const Tc=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,t.test?.thetaEstimate||null]))),kc=(e,t)=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,t]))),Ic=e=>{e.displayElement&&(Ut.opts.display_element=e.displayElement);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};Ut.opts.on_finish=t(Ut.opts.on_finish,(()=>{e.firekit.finishRun(),e.experimentFinished&&e.experimentFinished()})),Ut.opts.on_data_update=t(Ut.opts.on_data_update,(t=>{t.save_trial&&e.firekit.writeTrial(t,Tc,kc)})),window.addEventListener("error",(t=>{const{msg:n,url:i,lineNo:a,columnNo:s,error:r}=t;e.firekit?.writeTrial({assessment_stage:"error",lastTrial:Ut.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()})})),s.session.has("initialized")&&s.local("initialized")||(s.session.set("practiceIndex",0),s.session.set("currentBlockIndex",0),s.session.set("trialNumBlock",0),s.session.set("trialNumTotal",0),s.session.set("demoCounter",0),s.session.set("nextStimulus",null),s.session.set("response",""),s.session.set("dataCorrect",""),s.session.set("keyResponse",""),s.session.set("gradeKeyResponse",[]),s.session.set("currentCorpus",[]),s.session.set("currentTrialCorrect",!0),s.session.set("coinTrackingIndex",0),s.session.set("initialized",!0)),s.session},Rc=e=>({timeline:cn,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})}});class Ac{constructor(e,t,n,i){this.gameParams=t,this.userParams=n,this.firekit=e,this.displayElement=i}async init(){await this.firekit.startRun();const e=await(async(e,t,n)=>{const i=_c(_c(t,Ec),Sc),{userMode:a,pid:s,labId:r,taskVariant:o,userMetadata:c,urlParams:l,consent:p,language:u,skipInstructions:d,grade:m}=i;s&&s.split("-")[0];const f={pid:s,labId:r,userMode:a,taskVariant:o||"pilot",consent:p||!0,userMetadata:{grade:m},startTime:new Date,urlParams:l,firekit:e,language:u,skipInstructions:d||!0,displayElement:n||null};return null!==f.pid&&await f.firekit.updateUser({assessmentPid:f.pid,...c}),f})(this.firekit,{...this.gameParams,...this.userParams},this.displayElement);return s.session.set("config",e),on(e)}async run(){const{jsPsych:e,timeline:t}=await this.init();e.run(t),await(e=>{const t=n=>{e()?n():setTimeout((e=>t(n)),400)};return new Promise(t)})((()=>!0===this.firekit.run.completed))}}export{Ac as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bdelab/roar-sre",
3
3
  "description": "The ROAR hackathon version of the timed sentence reading efficiency",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "author": "Jasmine Tran <jasetran@stanford.edu>",
6
6
  "module": "lib/swr.esm.min.js",
7
7
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@babel/core": "^7.19.3",
38
38
  "@babel/preset-env": "^7.19.4",
39
- "@bdelab/roar-firekit": "^3.6.1",
39
+ "@bdelab/roar-firekit": "^3.6.2",
40
40
  "@bdelab/roar-utils": "^1.0.10",
41
41
  "@jspsych/plugin-audio-keyboard-response": "^1.1.2",
42
42
  "@jspsych/plugin-fullscreen": "^1.1.2",