@bdelab/roav-ran 1.0.7 → 1.0.9

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.
@@ -1,4 +1,4 @@
1
- ;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="685a4952-8283-4054-8657-139019814a83",e._sentryDebugIdIdentifier="sentry-dbid-685a4952-8283-4054-8657-139019814a83")}catch(e){}}();import e from"path";("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"63ab9708c5b2bb6b282399eeb6fd5f348a533b6e"};var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i,a={exports:{}};
1
+ ;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="dfefd604-eb94-4700-a74c-d17989fcd2c1",e._sentryDebugIdIdentifier="sentry-dbid-dfefd604-eb94-4700-a74c-d17989fcd2c1")}catch(e){}}();import e from"path";("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"37bfdb7e290573587df0936650b0dd3c9183f05a"};var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i,a={exports:{}};
2
2
  /*! store2 - v2.14.3 - 2024-02-14
3
3
  * Copyright (c) 2024 Nathan Bubna; Licensed MIT */i=a,function(e,n){var t={version:"2.14.3",areas:{},apis:{},nsdelim:".",inherit:function(e,n){for(var t in e)n.hasOwnProperty(t)||Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t));return n},stringify:function(e,n){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,n||t.replace)},parse:function(e,n){try{return JSON.parse(e,n||t.revive)}catch(n){return e}},fn:function(e,n){for(var i in t.storeAPI[e]=n,t.apis)t.apis[i][e]=n},get:function(e,n){return e.getItem(n)},set:function(e,n,t){e.setItem(n,t)},remove:function(e,n){e.removeItem(n)},key:function(e,n){return e.key(n)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,n,i){var a=t.inherit(t.storeAPI,(function(e,n,t){return 0===arguments.length?a.getAll():"function"==typeof n?a.transact(e,n,t):void 0!==n?a.set(e,n,t):"string"==typeof e||"number"==typeof e?a.get(e):"function"==typeof e?a.each(e):e?a.setAll(e,n):a.clear()}));a._id=e;try{var o="__store2_test";n.setItem(o,"ok"),a._area=n,n.removeItem(o)}catch(e){a._area=t.storage("fake")}return a._ns=i||"",t.areas[e]||(t.areas[e]=a._area),t.apis[a._ns+a._id]||(t.apis[a._ns+a._id]=a),a},storeAPI:{area:function(e,n){var i=this[e];return i&&i.area||(i=t.Store(e,n,this._ns),this[e]||(this[e]=i)),i},namespace:function(e,n,i){if(i=i||this._delim||t.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-i.length):"";var a=e,o=this[a];if(!(o&&o.namespace||((o=t.Store(this._id,this._area,this._ns+a+i))._delim=i,this[a]||(this[a]=o),n)))for(var r in t.areas)o.area(r,t.areas[r]);return o},isFake:function(e){return e?(this._real=this._area,this._area=t.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):!!(this._in(e)in this._area)},size:function(){return this.keys().length},each:function(e,n){for(var i=0,a=t.length(this._area);i<a;i++){var o=this._out(t.key(this._area,i));if(void 0!==o&&!1===e.call(this,o,this.get(o),n))break;a>t.length(this._area)&&(a--,i--)}return n||this},keys:function(e){return this.each((function(e,n,t){t.push(e)}),e||[])},get:function(e,n){var i,a=t.get(this._area,this._in(e));return"function"==typeof n&&(i=n,n=null),null!==a?t.parse(a,i):null!=n?n:a},getAll:function(e){return this.each((function(e,n,t){t[e]=n}),e||{})},transact:function(e,n,t){var i=this.get(e,t),a=n(i);return this.set(e,void 0===a?i:a),this},set:function(e,n,i){var a,o=this.get(e);return null!=o&&!1===i?n:("function"==typeof i&&(a=i,i=void 0),t.set(this._area,this._in(e),t.stringify(n,a),i)||o)},setAll:function(e,n){var t,i;for(var a in e)i=e[a],this.set(a,i,n)!==i&&(t=!0);return t},add:function(e,n,i){var a=this.get(e);if(a instanceof Array)n=a.concat(n);else if(null!==a){var o=typeof a;if(o===typeof n&&"object"===o){for(var r in n)a[r]=n[r];n=a}else n=a+n}return t.set(this._area,this._in(e),t.stringify(n,i)),n},remove:function(e,n){var i=this.get(e,n);return t.remove(this._area,this._in(e)),i},clear:function(){return this._ns?this.each((function(e){t.remove(this._area,this._in(e))}),1):t.clear(this._area),this},clearAll:function(){var e=this._area;for(var n in t.areas)t.areas.hasOwnProperty(n)&&(this._area=t.areas[n],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=t.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return t.inherit(t.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var n=0;for(var t in this.items)if(this.has(t)&&e===n++)return t},setItem:function(e,n){this.has(e)||this.length++,this.items[e]=n},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}},a=t.Store("local",function(){try{return localStorage}catch(e){}}());a.local=a,a._=t,a.area("session",function(){try{return sessionStorage}catch(e){}}()),a.area("page",t.storage("page")),"function"==typeof n&&void 0!==n.amd?n("store2",[],(function(){return a})):i.exports?i.exports=a:(e.store&&(t.conflict=e.store),e.store=a)}(n,n&&n.define);var o=t(a.exports);var r=function(){this.__data__=[],this.size=0};var s=function(e,n){return e===n||e!=e&&n!=n},c=s;var l=function(e,n){for(var t=e.length;t--;)if(c(e[t][0],n))return t;return-1},p=l,u=Array.prototype.splice;var d=l;var m=l;var f=l;var h=r,v=function(e){var n=this.__data__,t=p(n,e);return!(t<0)&&(t==n.length-1?n.pop():u.call(n,t,1),--this.size,!0)},g=function(e){var n=this.__data__,t=d(n,e);return t<0?void 0:n[t][1]},x=function(e){return m(this.__data__,e)>-1},b=function(e,n){var t=this.__data__,i=f(t,e);return i<0?(++this.size,t.push([e,n])):t[i][1]=n,this};function y(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}y.prototype.clear=h,y.prototype.delete=v,y.prototype.get=g,y.prototype.has=x,y.prototype.set=b;var w=y,_=w;var k=function(){this.__data__=new _,this.size=0};var j=function(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t};var O=function(e){return this.__data__.get(e)};var S=function(e){return this.__data__.has(e)},C="object"==typeof n&&n&&n.Object===Object&&n,T=C,P="object"==typeof self&&self&&self.Object===Object&&self,E=T||P||Function("return this")(),I=E.Symbol,A=I,L=Object.prototype,R=L.hasOwnProperty,z=L.toString,D=A?A.toStringTag:void 0;var N=function(e){var n=R.call(e,D),t=e[D];try{e[D]=void 0;var i=!0}catch(e){}var a=z.call(e);return i&&(n?e[D]=t:delete e[D]),a},M=Object.prototype.toString;var q=N,F=function(e){return M.call(e)},B=I?I.toStringTag:void 0;var U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?q(e):F(e)};var W=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)},V=U,H=W;var K,$=function(e){if(!H(e))return!1;var n=V(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n},Y=E["__core-js_shared__"],G=(K=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"";var J=function(e){return!!G&&G in e},X=Function.prototype.toString;var Z=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Q=$,ee=J,ne=W,te=Z,ie=/^\[object .+?Constructor\]$/,ae=Function.prototype,oe=Object.prototype,re=ae.toString,se=oe.hasOwnProperty,ce=RegExp("^"+re.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var le=function(e){return!(!ne(e)||ee(e))&&(Q(e)?ce:ie).test(te(e))},pe=function(e,n){return null==e?void 0:e[n]};var ue=function(e,n){var t=pe(e,n);return le(t)?t:void 0},de=ue(E,"Map"),me=ue(Object,"create"),fe=me;var he=function(){this.__data__=fe?fe(null):{},this.size=0};var ve=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n},ge=me,xe=Object.prototype.hasOwnProperty;var be=function(e){var n=this.__data__;if(ge){var t=n[e];return"__lodash_hash_undefined__"===t?void 0:t}return xe.call(n,e)?n[e]:void 0},ye=me,we=Object.prototype.hasOwnProperty;var _e=me;var ke=he,je=ve,Oe=be,Se=function(e){var n=this.__data__;return ye?void 0!==n[e]:we.call(n,e)},Ce=function(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=_e&&void 0===n?"__lodash_hash_undefined__":n,this};function Te(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}Te.prototype.clear=ke,Te.prototype.delete=je,Te.prototype.get=Oe,Te.prototype.has=Se,Te.prototype.set=Ce;var Pe=Te,Ee=w,Ie=de;var Ae=function(e){var n=typeof e;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e};var Le=function(e,n){var t=e.__data__;return Ae(n)?t["string"==typeof n?"string":"hash"]:t.map},Re=Le;var ze=Le;var De=Le;var Ne=Le;var Me=function(){this.size=0,this.__data__={hash:new Pe,map:new(Ie||Ee),string:new Pe}},qe=function(e){var n=Re(this,e).delete(e);return this.size-=n?1:0,n},Fe=function(e){return ze(this,e).get(e)},Be=function(e){return De(this,e).has(e)},Ue=function(e,n){var t=Ne(this,e),i=t.size;return t.set(e,n),this.size+=t.size==i?0:1,this};function We(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}We.prototype.clear=Me,We.prototype.delete=qe,We.prototype.get=Fe,We.prototype.has=Be,We.prototype.set=Ue;var Ve=We,He=w,Ke=de,$e=Ve;var Ye=w,Ge=k,Je=j,Xe=O,Ze=S,Qe=function(e,n){var t=this.__data__;if(t instanceof He){var i=t.__data__;if(!Ke||i.length<199)return i.push([e,n]),this.size=++t.size,this;t=this.__data__=new $e(i)}return t.set(e,n),this.size=t.size,this};function en(e){var n=this.__data__=new Ye(e);this.size=n.size}en.prototype.clear=Ge,en.prototype.delete=Je,en.prototype.get=Xe,en.prototype.has=Ze,en.prototype.set=Qe;var nn=en;var tn=Ve,an=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},on=function(e){return this.__data__.has(e)};function rn(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new tn;++n<t;)this.add(e[n])}rn.prototype.add=rn.prototype.push=an,rn.prototype.has=on;var sn=rn,cn=function(e,n){for(var t=-1,i=null==e?0:e.length;++t<i;)if(n(e[t],t,e))return!0;return!1},ln=function(e,n){return e.has(n)};var pn=function(e,n,t,i,a,o){var r=1&t,s=e.length,c=n.length;if(s!=c&&!(r&&c>s))return!1;var l=o.get(e),p=o.get(n);if(l&&p)return l==n&&p==e;var u=-1,d=!0,m=2&t?new sn:void 0;for(o.set(e,n),o.set(n,e);++u<s;){var f=e[u],h=n[u];if(i)var v=r?i(h,f,u,n,e,o):i(f,h,u,e,n,o);if(void 0!==v){if(v)continue;d=!1;break}if(m){if(!cn(n,(function(e,n){if(!ln(m,n)&&(f===e||a(f,e,t,i,o)))return m.push(n)}))){d=!1;break}}else if(f!==h&&!a(f,h,t,i,o)){d=!1;break}}return o.delete(e),o.delete(n),d};var un=E.Uint8Array,dn=s,mn=pn,fn=function(e){var n=-1,t=Array(e.size);return e.forEach((function(e,i){t[++n]=[i,e]})),t},hn=function(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t},vn=I?I.prototype:void 0,gn=vn?vn.valueOf:void 0;var xn=function(e,n,t,i,a,o,r){switch(t){case"[object DataView]":if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=n.byteLength||!o(new un(e),new un(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return dn(+e,+n);case"[object Error]":return e.name==n.name&&e.message==n.message;case"[object RegExp]":case"[object String]":return e==n+"";case"[object Map]":var s=fn;case"[object Set]":var c=1&i;if(s||(s=hn),e.size!=n.size&&!c)return!1;var l=r.get(e);if(l)return l==n;i|=2,r.set(e,n);var p=mn(s(e),s(n),i,a,o,r);return r.delete(e),p;case"[object Symbol]":if(gn)return gn.call(e)==gn.call(n)}return!1};var bn=function(e,n){for(var t=-1,i=n.length,a=e.length;++t<i;)e[a+t]=n[t];return e},yn=Array.isArray,wn=bn,_n=yn;var kn=function(e,n,t){var i=n(e);return _n(e)?i:wn(i,t(e))};var jn=function(){return[]},On=function(e,n){for(var t=-1,i=null==e?0:e.length,a=0,o=[];++t<i;){var r=e[t];n(r,t,e)&&(o[a++]=r)}return o},Sn=jn,Cn=Object.prototype.propertyIsEnumerable,Tn=Object.getOwnPropertySymbols,Pn=Tn?function(e){return null==e?[]:(e=Object(e),On(Tn(e),(function(n){return Cn.call(e,n)})))}:Sn;var En=function(e,n){for(var t=-1,i=Array(e);++t<e;)i[t]=n(t);return i};var In=function(e){return null!=e&&"object"==typeof e},An=U,Ln=In;var Rn=function(e){return Ln(e)&&"[object Arguments]"==An(e)},zn=In,Dn=Object.prototype,Nn=Dn.hasOwnProperty,Mn=Dn.propertyIsEnumerable,qn=Rn(function(){return arguments}())?Rn:function(e){return zn(e)&&Nn.call(e,"callee")&&!Mn.call(e,"callee")},Fn={exports:{}};var Bn=function(){return!1};!function(e,n){var t=E,i=Bn,a=n&&!n.nodeType&&n,o=a&&e&&!e.nodeType&&e,r=o&&o.exports===a?t.Buffer:void 0,s=(r?r.isBuffer:void 0)||i;e.exports=s}(Fn,Fn.exports);var Un=Fn.exports,Wn=/^(?:0|[1-9]\d*)$/;var Vn=function(e,n){var t=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==t||"symbol"!=t&&Wn.test(e))&&e>-1&&e%1==0&&e<n};var Hn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Kn=U,$n=Hn,Yn=In,Gn={};Gn["[object Float32Array]"]=Gn["[object Float64Array]"]=Gn["[object Int8Array]"]=Gn["[object Int16Array]"]=Gn["[object Int32Array]"]=Gn["[object Uint8Array]"]=Gn["[object Uint8ClampedArray]"]=Gn["[object Uint16Array]"]=Gn["[object Uint32Array]"]=!0,Gn["[object Arguments]"]=Gn["[object Array]"]=Gn["[object ArrayBuffer]"]=Gn["[object Boolean]"]=Gn["[object DataView]"]=Gn["[object Date]"]=Gn["[object Error]"]=Gn["[object Function]"]=Gn["[object Map]"]=Gn["[object Number]"]=Gn["[object Object]"]=Gn["[object RegExp]"]=Gn["[object Set]"]=Gn["[object String]"]=Gn["[object WeakMap]"]=!1;var Jn=function(e){return Yn(e)&&$n(e.length)&&!!Gn[Kn(e)]};var Xn=function(e){return function(n){return e(n)}},Zn={exports:{}};!function(e,n){var t=C,i=n&&!n.nodeType&&n,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&t.process,r=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=r}(Zn,Zn.exports);var Qn=Zn.exports,et=Jn,nt=Xn,tt=Qn&&Qn.isTypedArray,it=tt?nt(tt):et,at=En,ot=qn,rt=yn,st=Un,ct=Vn,lt=it,pt=Object.prototype.hasOwnProperty;var ut=function(e,n){var t=rt(e),i=!t&&ot(e),a=!t&&!i&&st(e),o=!t&&!i&&!a&&lt(e),r=t||i||a||o,s=r?at(e.length,String):[],c=s.length;for(var l in e)!n&&!pt.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ct(l,c))||s.push(l);return s},dt=Object.prototype;var mt=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||dt)};var ft=function(e,n){return function(t){return e(n(t))}},ht=ft(Object.keys,Object),vt=mt,gt=ht,xt=Object.prototype.hasOwnProperty;var bt=$,yt=Hn;var wt=function(e){return null!=e&&yt(e.length)&&!bt(e)},_t=ut,kt=function(e){if(!vt(e))return gt(e);var n=[];for(var t in Object(e))xt.call(e,t)&&"constructor"!=t&&n.push(t);return n},jt=wt;var Ot=function(e){return jt(e)?_t(e):kt(e)},St=kn,Ct=Pn,Tt=Ot;var Pt=function(e){return St(e,Tt,Ct)},Et=Object.prototype.hasOwnProperty;var It=function(e,n,t,i,a,o){var r=1&t,s=Pt(e),c=s.length;if(c!=Pt(n).length&&!r)return!1;for(var l=c;l--;){var p=s[l];if(!(r?p in n:Et.call(n,p)))return!1}var u=o.get(e),d=o.get(n);if(u&&d)return u==n&&d==e;var m=!0;o.set(e,n),o.set(n,e);for(var f=r;++l<c;){var h=e[p=s[l]],v=n[p];if(i)var g=r?i(v,h,p,n,e,o):i(h,v,p,e,n,o);if(!(void 0===g?h===v||a(h,v,t,i,o):g)){m=!1;break}f||(f="constructor"==p)}if(m&&!f){var x=e.constructor,b=n.constructor;x==b||!("constructor"in e)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b||(m=!1)}return o.delete(e),o.delete(n),m},At=ue(E,"DataView"),Lt=de,Rt=ue(E,"Promise"),zt=ue(E,"Set"),Dt=ue(E,"WeakMap"),Nt=U,Mt=Z,qt="[object Map]",Ft="[object Promise]",Bt="[object Set]",Ut="[object WeakMap]",Wt="[object DataView]",Vt=Mt(At),Ht=Mt(Lt),Kt=Mt(Rt),$t=Mt(zt),Yt=Mt(Dt),Gt=Nt;(At&&Gt(new At(new ArrayBuffer(1)))!=Wt||Lt&&Gt(new Lt)!=qt||Rt&&Gt(Rt.resolve())!=Ft||zt&&Gt(new zt)!=Bt||Dt&&Gt(new Dt)!=Ut)&&(Gt=function(e){var n=Nt(e),t="[object Object]"==n?e.constructor:void 0,i=t?Mt(t):"";if(i)switch(i){case Vt:return Wt;case Ht:return qt;case Kt:return Ft;case $t:return Bt;case Yt:return Ut}return n});var Jt=nn,Xt=pn,Zt=xn,Qt=It,ei=Gt,ni=yn,ti=Un,ii=it,ai="[object Arguments]",oi="[object Array]",ri="[object Object]",si=Object.prototype.hasOwnProperty;var ci=function(e,n,t,i,a,o){var r=ni(e),s=ni(n),c=r?oi:ei(e),l=s?oi:ei(n),p=(c=c==ai?ri:c)==ri,u=(l=l==ai?ri:l)==ri,d=c==l;if(d&&ti(e)){if(!ti(n))return!1;r=!0,p=!1}if(d&&!p)return o||(o=new Jt),r||ii(e)?Xt(e,n,t,i,a,o):Zt(e,n,c,t,i,a,o);if(!(1&t)){var m=p&&si.call(e,"__wrapped__"),f=u&&si.call(n,"__wrapped__");if(m||f){var h=m?e.value():e,v=f?n.value():n;return o||(o=new Jt),a(h,v,t,i,o)}}return!!d&&(o||(o=new Jt),Qt(e,n,t,i,a,o))},li=In;var pi=function e(n,t,i,a,o){return n===t||(null==n||null==t||!li(n)&&!li(t)?n!=n&&t!=t:ci(n,t,i,a,e,o))},ui=nn,di=pi;var mi=W;var fi=function(e){return e==e&&!mi(e)},hi=fi,vi=Ot;var gi=function(e,n){return function(t){return null!=t&&(t[e]===n&&(void 0!==n||e in Object(t)))}},xi=function(e,n,t,i){var a=t.length,o=a,r=!i;if(null==e)return!o;for(e=Object(e);a--;){var s=t[a];if(r&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){var c=(s=t[a])[0],l=e[c],p=s[1];if(r&&s[2]){if(void 0===l&&!(c in e))return!1}else{var u=new ui;if(i)var d=i(l,p,c,e,n,u);if(!(void 0===d?di(p,l,3,i,u):d))return!1}}return!0},bi=function(e){for(var n=vi(e),t=n.length;t--;){var i=n[t],a=e[i];n[t]=[i,a,hi(a)]}return n},yi=gi;var wi=function(e){var n=bi(e);return 1==n.length&&n[0][2]?yi(n[0][0],n[0][1]):function(t){return t===e||xi(t,e,n)}},_i=U,ki=In;var ji=function(e){return"symbol"==typeof e||ki(e)&&"[object Symbol]"==_i(e)},Oi=yn,Si=ji,Ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ti=/^\w*$/;var Pi=function(e,n){if(Oi(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!Si(e))||(Ti.test(e)||!Ci.test(e)||null!=n&&e in Object(n))},Ei=Ve;function Ii(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var t=function(){var i=arguments,a=n?n.apply(this,i):i[0],o=t.cache;if(o.has(a))return o.get(a);var r=e.apply(this,i);return t.cache=o.set(a,r)||o,r};return t.cache=new(Ii.Cache||Ei),t}Ii.Cache=Ei;var Ai=Ii;var Li=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/\\(\\)?/g,zi=function(e){var n=Ai(e,(function(e){return 500===t.size&&t.clear(),e})),t=n.cache;return n}((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(Li,(function(e,t,i,a){n.push(i?a.replace(Ri,"$1"):t||e)})),n}));var Di=function(e,n){for(var t=-1,i=null==e?0:e.length,a=Array(i);++t<i;)a[t]=n(e[t],t,e);return a},Ni=Di,Mi=yn,qi=ji,Fi=I?I.prototype:void 0,Bi=Fi?Fi.toString:void 0;var Ui=function e(n){if("string"==typeof n)return n;if(Mi(n))return Ni(n,e)+"";if(qi(n))return Bi?Bi.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t},Wi=Ui;var Vi=yn,Hi=Pi,Ki=zi,$i=function(e){return null==e?"":Wi(e)};var Yi=function(e,n){return Vi(e)?e:Hi(e,n)?[e]:Ki($i(e))},Gi=ji;var Ji=function(e){if("string"==typeof e||Gi(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Xi=Yi,Zi=Ji;var Qi=function(e,n){for(var t=0,i=(n=Xi(n,e)).length;null!=e&&t<i;)e=e[Zi(n[t++])];return t&&t==i?e:void 0},ea=Qi;var na=function(e,n,t){var i=null==e?void 0:ea(e,n);return void 0===i?t:i};var ta=Yi,ia=qn,aa=yn,oa=Vn,ra=Hn,sa=Ji;var ca=function(e,n,t){for(var i=-1,a=(n=ta(n,e)).length,o=!1;++i<a;){var r=sa(n[i]);if(!(o=null!=e&&t(e,r)))break;e=e[r]}return o||++i!=a?o:!!(a=null==e?0:e.length)&&ra(a)&&oa(r,a)&&(aa(e)||ia(e))},la=function(e,n){return null!=e&&n in Object(e)},pa=ca;var ua=function(e,n){return null!=e&&pa(e,n,la)},da=pi,ma=na,fa=ua,ha=Pi,va=fi,ga=gi,xa=Ji;var ba=function(e,n){return ha(e)&&va(n)?ga(xa(e),n):function(t){var i=ma(t,e);return void 0===i&&i===n?fa(t,e):da(n,i,3)}};var ya=Qi;var wa=function(e){return function(n){return ya(n,e)}},_a=function(e){return function(n){return null==n?void 0:n[e]}},ka=wa,ja=Pi,Oa=Ji;var Sa=function(e){return ja(e)?_a(Oa(e)):ka(e)},Ca=wi,Ta=ba,Pa=function(e){return e},Ea=yn,Ia=Sa;var Aa=function(e){return"function"==typeof e?e:null==e?Pa:"object"==typeof e?Ea(e)?Ta(e[0],e[1]):Ca(e):Ia(e)};var La=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}},Ra=ue,za=function(){try{var e=Ra(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Da=function(e,n,t){"__proto__"==n&&za?za(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t},Na=s,Ma=Object.prototype.hasOwnProperty;var qa=function(e,n,t){var i=e[n];Ma.call(e,n)&&Na(i,t)&&(void 0!==t||n in e)||Da(e,n,t)},Fa=Yi,Ba=Vn,Ua=W,Wa=Ji;var Va=function(e,n,t,i){if(!Ua(e))return e;for(var a=-1,o=(n=Fa(n,e)).length,r=o-1,s=e;null!=s&&++a<o;){var c=Wa(n[a]),l=t;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=r){var p=s[c];void 0===(l=i?i(p,c,s):void 0)&&(l=Ua(p)?p:Ba(n[a+1])?[]:{})}qa(s,c,l),s=s[c]}return e},Ha=Qi,Ka=Va,$a=Yi;var Ya=function(e,n,t){for(var i=-1,a=n.length,o={};++i<a;){var r=n[i],s=Ha(e,r);t(s,r)&&Ka(o,$a(r,e),s)}return o},Ga=ft(Object.getPrototypeOf,Object),Ja=bn,Xa=Ga,Za=Pn,Qa=jn,eo=Object.getOwnPropertySymbols?function(e){for(var n=[];e;)Ja(n,Za(e)),e=Xa(e);return n}:Qa;var no=W,to=mt,io=function(e){var n=[];if(null!=e)for(var t in Object(e))n.push(t);return n},ao=Object.prototype.hasOwnProperty;var oo=ut,ro=function(e){if(!no(e))return io(e);var n=to(e),t=[];for(var i in e)("constructor"!=i||!n&&ao.call(e,i))&&t.push(i);return t},so=wt;var co=kn,lo=eo,po=function(e){return so(e)?oo(e,!0):ro(e)};var uo=Di,mo=Aa,fo=Ya,ho=function(e){return co(e,po,lo)};var vo=function(e,n){if(null==e)return{};var t=uo(ho(e),(function(e){return[e]}));return n=mo(n),fo(e,t,(function(e,t){return n(e,t[0])}))},go=Aa,xo=La,bo=vo;var yo=t((function(e,n){return bo(e,xo(go(n)))}));var wo=t((function(e){return null===e}));var _o=t((function(e){return void 0===e}));function ko(e){return ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ko(e)}function jo(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Oo(e){var n=function(e,n){if("object"!=ko(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n||"default");if("object"!=ko(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==ko(n)?n:n+""}function So(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Oo(i.key),i)}}function Co(e,n,t){return n&&So(e.prototype,n),t&&So(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function To(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Po(e,n){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Po(e,n)}function Eo(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Po(e,n)}function Io(e,n){if(n&&("object"===ko(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return To(e)}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}function Lo(e,n,t){return(n=Oo(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ro(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function zo(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return Ro(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ro(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Do(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function No(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Do(Object(t),!0).forEach((function(n){Lo(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Do(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Mo={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},qo=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jo(this,e),this.init(n,t)}return Co(e,[{key:"init",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||Mo,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,t,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(t).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(n){return new e(this.logger,No(No({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return(n=n||this.options).prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Fo=new qo,Bo=function(){function e(){jo(this,e),this.observers={}}return Co(e,[{key:"on",value:function(e,n){var t=this;return e.split(" ").forEach((function(e){t.observers[e]=t.observers[e]||[],t.observers[e].push(n)})),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter((function(e){return e!==n})):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,t)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(n){n.apply(n,[e].concat(t))}))}}]),e}();function Uo(){var e,n,t=new Promise((function(t,i){e=t,n=i}));return t.resolve=e,t.reject=n,t}function Wo(e){return null==e?"":""+e}function Vo(e,n,t){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var o="string"!=typeof n?[].concat(n):n.split(".");o.length>1;){if(a())return{};var r=i(o.shift());!e[r]&&t&&(e[r]=new t),e=Object.prototype.hasOwnProperty.call(e,r)?e[r]:{}}return a()?{}:{obj:e,k:i(o.shift())}}function Ho(e,n,t){var i=Vo(e,n,Object);i.obj[i.k]=t}function Ko(e,n){var t=Vo(e,n),i=t.obj,a=t.k;if(i)return i[a]}function $o(e,n,t){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?t&&(e[i]=n[i]):$o(e[i],n[i],t):e[i]=n[i]);return e}function Yo(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Go={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Jo(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Go[e]})):e}var Xo="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Zo=[" ",",","?","!",";"];function Qo(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[n])return e[n];for(var i=n.split(t),a=e,o=0;o<i.length;++o){if(!a)return;if("string"==typeof a[i[o]]&&o+1<i.length)return;if(void 0===a[i[o]]){for(var r=2,s=i.slice(o,o+r).join(t),c=a[s];void 0===c&&i.length>o+r;)r++,c=a[s=i.slice(o,o+r).join(t)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(s)){if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s]}var l=i.slice(o+r).join(t);return l?Qo(c,l,t):void 0}a=a[i[o]]}return a}}function er(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function nr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?er(Object(t),!0).forEach((function(n){Lo(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):er(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function tr(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,i=Ao(e);if(n){var a=Ao(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return Io(this,t)}}var ir=function(e){Eo(t,Bo);var n=tr(t);function t(e){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return jo(this,t),i=n.call(this),Xo&&Bo.call(To(i)),i.data=e||{},i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),void 0===i.options.ignoreJSONStructure&&(i.options.ignoreJSONStructure=!0),i}return Co(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,r=[e,n];t&&"string"!=typeof t&&(r=r.concat(t)),t&&"string"==typeof t&&(r=r.concat(a?t.split(a):t)),e.indexOf(".")>-1&&(r=e.split("."));var s=Ko(this.data,r);return s||!o||"string"!=typeof t?s:Qo(this.data&&this.data[e]&&this.data[e][n],t,a)}},{key:"addResource",value:function(e,n,t,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,r=[e,n];t&&(r=r.concat(o?t.split(o):t)),e.indexOf(".")>-1&&(i=n,n=(r=e.split("."))[1]),this.addNamespaces(n),Ho(this.data,r,i),a.silent||this.emit("added",e,n,t,i)}},{key:"addResources",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in t)"string"!=typeof t[a]&&"[object Array]"!==Object.prototype.toString.apply(t[a])||this.addResource(e,n,a,t[a],{silent:!0});i.silent||this.emit("added",e,n,t)}},{key:"addResourceBundle",value:function(e,n,t,i,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},r=[e,n];e.indexOf(".")>-1&&(i=t,t=n,n=(r=e.split("."))[1]),this.addNamespaces(n);var s=Ko(this.data,r)||{};i?$o(s,t,a):s=nr(nr({},s),t),Ho(this.data,r,s),o.silent||this.emit("added",e,n,t)}},{key:"removeResourceBundle",value:function(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}},{key:"hasResourceBundle",value:function(e,n){return void 0!==this.getResource(e,n)}},{key:"getResourceBundle",value:function(e,n){return n||(n=this.options.defaultNS),"v1"===this.options.compatibilityAPI?nr(nr({},{}),this.getResource(e,n)):this.getResource(e,n)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find((function(e){return n[e]&&Object.keys(n[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),t}(),ar={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,t,i,a){var o=this;return e.forEach((function(e){o.processors[e]&&(n=o.processors[e].process(n,t,i,a))})),n}};function or(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function rr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?or(Object(t),!0).forEach((function(n){Lo(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):or(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function sr(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,i=Ao(e);if(n){var a=Ao(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return Io(this,t)}}var cr={},lr=function(e){Eo(t,Bo);var n=sr(t);function t(e){var i,a,o,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return jo(this,t),i=n.call(this),Xo&&Bo.call(To(i)),a=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=e,r=To(i),a.forEach((function(e){o[e]&&(r[e]=o[e])})),i.options=s,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=Fo.create("translator"),i}return Co(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var t=this.resolve(e,n);return t&&void 0!==t.res}},{key:"extractFromKey",value:function(e,n){var t=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],o=t&&e.indexOf(t)>-1,r=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||function(e,n,t){n=n||"",t=t||"";var i=Zo.filter((function(e){return n.indexOf(e)<0&&t.indexOf(e)<0}));if(0===i.length)return!0;var a=new RegExp("(".concat(i.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!a.test(e);if(!o){var r=e.indexOf(t);r>0&&!a.test(e.substring(0,r))&&(o=!0)}return o}(e,t,i));if(o&&!r){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:a};var c=e.split(t);(t!==i||t===i&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),e=c.join(i)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,n,i){var a=this;if("object"!==ko(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"===ko(n)&&(n=rr({},n)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=s.key,l=s.namespaces,p=l[l.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(d){var m=n.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(p).concat(m).concat(c),usedKey:c,exactUsedKey:c,usedLng:u,usedNS:p}:"".concat(p).concat(m).concat(c)}return o?{res:c,usedKey:c,exactUsedKey:c,usedLng:u,usedNS:p}:c}var f=this.resolve(e,n),h=f&&f.res,v=f&&f.usedKey||c,g=f&&f.exactUsedKey||c,x=Object.prototype.toString.apply(h),b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(y&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(x)<0&&("string"!=typeof b||"[object Array]"!==x)){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,h,rr(rr({},n),{},{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return o?(f.res=w,f):w}if(r){var _="[object Array]"===x,k=_?[]:{},j=_?g:v;for(var O in h)if(Object.prototype.hasOwnProperty.call(h,O)){var S="".concat(j).concat(r).concat(O);k[O]=this.translate(S,rr(rr({},n),{joinArrays:!1,ns:l})),k[O]===S&&(k[O]=h[O])}h=k}}else if(y&&"string"==typeof b&&"[object Array]"===x)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,i));else{var C=!1,T=!1,P=void 0!==n.count&&"string"!=typeof n.count,E=t.hasDefaultValue(n),I=P?this.pluralResolver.getSuffix(u,n.count,n):"",A=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(h)&&E&&(C=!0,h=A),this.isValidLookup(h)||(T=!0,h=c);var L=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:h,R=E&&A!==h&&this.options.updateMissing;if(T||C||R){if(this.logger.log(R?"updateKey":"missingKey",u,p,c,R?A:h),r){var z=this.resolve(c,rr(rr({},n),{},{keySeparator:!1}));z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var D=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var M=0;M<N.length;M++)D.push(N[M]);else"all"===this.options.saveMissingTo?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);var q=function(e,t,i){var o=E&&i!==h?i:L;a.options.missingKeyHandler?a.options.missingKeyHandler(e,p,t,o,R,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,p,t,o,R,n),a.emit("missingKey",e,p,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?D.forEach((function(e){a.pluralResolver.getSuffixes(e,n).forEach((function(t){q([e],c+t,n["defaultValue".concat(t)]||A)}))})):q(D,c,A))}h=this.extendTranslation(h,e,n,f,i),T&&h===c&&this.options.appendNamespaceToMissingKey&&(h="".concat(p,":").concat(c)),(T||C)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(c):c,C?h:void 0):this.options.parseMissingKeyHandler(h))}return o?(f.res=h,f):h}},{key:"extendTranslation",value:function(e,n,t,i,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,rr(rr({},this.options.interpolation.defaultVariables),t),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init(rr(rr({},t),{interpolation:rr(rr({},this.options.interpolation),t.interpolation)}));var r,s="string"==typeof e&&(t&&t.interpolation&&void 0!==t.interpolation.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var c=e.match(this.interpolator.nestingRegexp);r=c&&c.length}var l=t.replace&&"string"!=typeof t.replace?t.replace:t;if(this.options.interpolation.defaultVariables&&(l=rr(rr({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,t.lng||this.language,t),s){var p=e.match(this.interpolator.nestingRegexp);r<(p&&p.length)&&(t.nest=!1)}!t.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(t.lng=i.usedLng),!1!==t.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return a&&a[0]===i[0]&&!t.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(n[0])),null):o.translate.apply(o,i.concat([n]))}),t)),t.interpolation&&this.interpolator.reset()}var u=t.postProcess||this.options.postProcess,d="string"==typeof u?[u]:u;return null!=e&&d&&d.length&&!1!==t.applyPostProcessor&&(e=ar.handle(d,e,n,this.options&&this.options.postProcessPassResolved?rr({i18nResolved:i},t):t,this)),e}},{key:"resolve",value:function(e){var n,t,i,a,o,r=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!r.isValidLookup(n)){var c=r.extractFromKey(e,s),l=c.key;t=l;var p=c.namespaces;r.options.fallbackNS&&(p=p.concat(r.options.fallbackNS));var u=void 0!==s.count&&"string"!=typeof s.count,d=u&&!s.ordinal&&0===s.count&&r.pluralResolver.shouldUseIntlApi(),m=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:r.languageUtils.toResolveHierarchy(s.lng||r.language,s.fallbackLng);p.forEach((function(e){r.isValidLookup(n)||(o=e,!cr["".concat(f[0],"-").concat(e)]&&r.utils&&r.utils.hasLoadedNamespace&&!r.utils.hasLoadedNamespace(o)&&(cr["".concat(f[0],"-").concat(e)]=!0,r.logger.warn('key "'.concat(t,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(t){if(!r.isValidLookup(n)){a=t;var o,c=[l];if(r.i18nFormat&&r.i18nFormat.addLookupKeys)r.i18nFormat.addLookupKeys(c,l,t,e,s);else{var p;u&&(p=r.pluralResolver.getSuffix(t,s.count,s));var f="".concat(r.options.pluralSeparator,"zero");if(u&&(c.push(l+p),d&&c.push(l+f)),m){var h="".concat(l).concat(r.options.contextSeparator).concat(s.context);c.push(h),u&&(c.push(h+p),d&&c.push(h+f))}}for(;o=c.pop();)r.isValidLookup(n)||(i=o,n=r.getResource(t,e,o,s))}})))}))}})),{res:n,usedKey:t,exactUsedKey:i,usedLng:a,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,t,i):this.resourceStore.getResource(e,n,t,i)}}],[{key:"hasDefaultValue",value:function(e){var n="defaultValue";for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),t}();function pr(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ur=function(){function e(n){jo(this,e),this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fo.create("languageUtils")}return Co(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return 2===n.length?null:(n.pop(),"x"===n[n.length-1].toLowerCase()?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],t=e.split("-");return this.options.lowerCaseLng?t=t.map((function(e){return e.toLowerCase()})):2===t.length?(t[0]=t[0].toLowerCase(),t[1]=t[1].toUpperCase(),n.indexOf(t[1].toLowerCase())>-1&&(t[1]=pr(t[1].toLowerCase()))):3===t.length&&(t[0]=t[0].toLowerCase(),2===t[1].length&&(t[1]=t[1].toUpperCase()),"sgn"!==t[0]&&2===t[2].length&&(t[2]=t[2].toUpperCase()),n.indexOf(t[1].toLowerCase())>-1&&(t[1]=pr(t[1].toLowerCase())),n.indexOf(t[2].toLowerCase())>-1&&(t[2]=pr(t[2].toLowerCase()))),t.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,t=this;return e?(e.forEach((function(e){if(!n){var i=t.formatLanguageCode(e);t.options.supportedLngs&&!t.isSupportedCode(i)||(n=i)}})),!n&&this.options.supportedLngs&&e.forEach((function(e){if(!n){var i=t.getLanguagePartFromCode(e);if(t.isSupportedCode(i))return n=i;n=t.options.supportedLngs.find((function(e){return e===i?e:e.indexOf("-")<0&&i.indexOf("-")<0?void 0:0===e.indexOf(i)?e:void 0}))}})),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!n)return e.default||[];var t=e[n];return t||(t=e[this.getScriptPartFromCode(n)]),t||(t=e[this.formatLanguageCode(n)]),t||(t=e[this.getLanguagePartFromCode(n)]),t||(t=e.default),t||[]}},{key:"toResolveHierarchy",value:function(e,n){var t=this,i=this.getFallbackCodes(n||this.options.fallbackLng||[],e),a=[],o=function(e){e&&(t.isSupportedCode(e)?a.push(e):t.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach((function(e){a.indexOf(e)<0&&o(t.formatLanguageCode(e))})),a}}]),e}(),dr=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],mr={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},fr=["v1","v2","v3"],hr={zero:0,one:1,two:2,few:3,many:4,other:5};var vr=function(){function e(n){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jo(this,e),this.languageUtils=n,this.options=i,this.logger=Fo.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(t={},dr.forEach((function(e){e.lngs.forEach((function(n){t[n]={numbers:e.nr,plurals:mr[e.fc]}}))})),t)}return Co(e,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:n.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=this.getRule(e,n);return this.shouldUseIntlApi()?t&&t.resolvedOptions().pluralCategories.length>1:t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,t).map((function(e){return"".concat(n).concat(e)}))}},{key:"getSuffixes",value:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((function(e,n){return hr[e]-hr[n]})).map((function(e){return"".concat(n.options.prepend).concat(e)})):i.numbers.map((function(i){return n.getSuffix(e,i,t)})):[]}},{key:"getSuffix",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,t);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(n)):this.getSuffixRetroCompatible(i,n):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,n){var t=this,i=e.noAbs?e.plurals(n):e.plurals(Math.abs(n)),a=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===a?a="plural":1===a&&(a=""));var o=function(){return t.options.prepend&&a.toString()?t.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!fr.includes(this.options.compatibilityJSON)}}]),e}();function gr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function xr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?gr(Object(t),!0).forEach((function(n){Lo(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function br(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,n,t){var i=Ko(e,t);return void 0!==i?i:Ko(n,t)}(e,n,t);return!o&&a&&"string"==typeof t&&void 0===(o=Qo(e,t,i))&&(o=Qo(n,t,i)),o}var yr=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};jo(this,e),this.logger=Fo.create("interpolator"),this.options=n,this.format=n.interpolation&&n.interpolation.format||function(e){return e},this.init(n)}return Co(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=void 0!==n.escape?n.escape:Jo,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?Yo(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Yo(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Yo(n.nestingPrefix):n.nestingPrefixEscaped||Yo("$t("),this.nestingSuffix=n.nestingSuffix?Yo(n.nestingSuffix):n.nestingSuffixEscaped||Yo(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var t="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(t,"g")}},{key:"interpolate",value:function(e,n,t,i){var a,o,r,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var p=function(e){if(e.indexOf(s.formatSeparator)<0){var a=br(n,c,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(a,void 0,t,xr(xr(xr({},i),n),{},{interpolationkey:e})):a}var o=e.split(s.formatSeparator),r=o.shift().trim(),l=o.join(s.formatSeparator).trim();return s.format(br(n,c,r,s.options.keySeparator,s.options.ignoreJSONStructure),l,t,xr(xr(xr({},i),n),{},{interpolationkey:r}))};this.resetRegExp();var u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(n){for(r=0;a=n.regex.exec(e);){var t=a[1].trim();if(void 0===(o=p(t)))if("function"==typeof u){var c=u(e,a,i);o="string"==typeof c?c:""}else if(i&&Object.prototype.hasOwnProperty.call(i,t))o="";else{if(d){o=a[0];continue}s.logger.warn("missed to pass in variable ".concat(t," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=Wo(o));var l=n.safeValue(o);if(e=e.replace(a[0],l),d?(n.regex.lastIndex+=o.length,n.regex.lastIndex-=a[0].length):n.regex.lastIndex=0,++r>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,n){var t,i,a,o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,n){var t=this.nestingOptionsSeparator;if(e.indexOf(t)<0)return e;var i=e.split(new RegExp("".concat(t,"[ ]*{"))),o="{".concat(i[1]);e=i[0];var r=(o=this.interpolate(o,a)).match(/'/g),s=o.match(/"/g);(r&&r.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),n&&(a=xr(xr({},n),a))}catch(n){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),n),"".concat(e).concat(t).concat(o)}return delete a.defaultValue,e}for(;t=this.nestingRegexp.exec(e);){var c=[];(a=(a=xr({},r)).replace&&"string"!=typeof a.replace?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;var l=!1;if(-1!==t[0].indexOf(this.formatSeparator)&&!/{.*}/.test(t[1])){var p=t[1].split(this.formatSeparator).map((function(e){return e.trim()}));t[1]=p.shift(),c=p,l=!0}if((i=n(s.call(this,t[1].trim(),a),a))&&t[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=Wo(i)),i||(this.logger.warn("missed to resolve ".concat(t[1]," for nesting ").concat(e)),i=""),l&&(i=c.reduce((function(e,n){return o.format(e,n,r.lng,xr(xr({},r),{},{interpolationkey:t[1].trim()}))}),i.trim())),e=e.replace(t[0],i),this.regexp.lastIndex=0}return e}}]),e}();function wr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function _r(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?wr(Object(t),!0).forEach((function(n){Lo(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function kr(e){var n={};return function(t,i,a){var o=i+JSON.stringify(a),r=n[o];return r||(r=e(i,a),n[o]=r),r(t)}}var jr=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};jo(this,e),this.logger=Fo.create("formatter"),this.options=n,this.formats={number:kr((function(e,n){var t=new Intl.NumberFormat(e,_r({},n));return function(e){return t.format(e)}})),currency:kr((function(e,n){var t=new Intl.NumberFormat(e,_r(_r({},n),{},{style:"currency"}));return function(e){return t.format(e)}})),datetime:kr((function(e,n){var t=new Intl.DateTimeFormat(e,_r({},n));return function(e){return t.format(e)}})),relativetime:kr((function(e,n){var t=new Intl.RelativeTimeFormat(e,_r({},n));return function(e){return t.format(e,n.range||"day")}})),list:kr((function(e,n){var t=new Intl.ListFormat(e,_r({},n));return function(e){return t.format(e)}}))},this.init(n)}return Co(e,[{key:"init",value:function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,n){this.formats[e.toLowerCase().trim()]=n}},{key:"addCached",value:function(e,n){this.formats[e.toLowerCase().trim()]=kr(n)}},{key:"format",value:function(e,n,t){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n.split(this.formatSeparator).reduce((function(e,n){var o=function(e){var n=e.toLowerCase().trim(),t={};if(e.indexOf("(")>-1){var i=e.split("(");n=i[0].toLowerCase().trim();var a=i[1].substring(0,i[1].length-1);"currency"===n&&a.indexOf(":")<0?t.currency||(t.currency=a.trim()):"relativetime"===n&&a.indexOf(":")<0?t.range||(t.range=a.trim()):a.split(";").forEach((function(e){if(e){var n=zo(e.split(":")),i=n[0],a=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");t[i.trim()]||(t[i.trim()]=a),"false"===a&&(t[i.trim()]=!1),"true"===a&&(t[i.trim()]=!0),isNaN(a)||(t[i.trim()]=parseInt(a,10))}}))}return{formatName:n,formatOptions:t}}(n),r=o.formatName,s=o.formatOptions;if(i.formats[r]){var c=e;try{var l=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},p=l.locale||l.lng||a.locale||a.lng||t;c=i.formats[r](e,p,_r(_r(_r({},s),a),l))}catch(e){i.logger.warn(e)}return c}return i.logger.warn("there was no format function for ".concat(r)),e}),e)}}]),e}();function Or(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Sr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Or(Object(t),!0).forEach((function(n){Lo(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Or(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Cr(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,i=Ao(e);if(n){var a=Ao(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return Io(this,t)}}var Tr=function(e){Eo(t,Bo);var n=Cr(t);function t(e,i,a){var o,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return jo(this,t),o=n.call(this),Xo&&Bo.call(To(o)),o.backend=e,o.store=i,o.services=a,o.languageUtils=a.languageUtils,o.options=r,o.logger=Fo.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=r.maxParallelReads||10,o.readingCalls=0,o.maxRetries=r.maxRetries>=0?r.maxRetries:5,o.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,r.backend,r),o}return Co(t,[{key:"queueLoad",value:function(e,n,t,i){var a=this,o={},r={},s={},c={};return e.forEach((function(e){var i=!0;n.forEach((function(n){var s="".concat(e,"|").concat(n);!t.reload&&a.store.hasResourceBundle(e,n)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?void 0===r[s]&&(r[s]=!0):(a.state[s]=1,i=!1,void 0===r[s]&&(r[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===c[n]&&(c[n]=!0)))})),i||(s[e]=!0)})),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(e,n,t){var i=e.split("|"),a=i[0],o=i[1];n&&this.emit("failedLoading",a,o,n),t&&this.store.addResourceBundle(a,o,t),this.state[e]=n?-1:2;var r={};this.queue.forEach((function(t){!function(e,n,t,i){var a=Vo(e,n,Object),o=a.obj,r=a.k;o[r]=o[r]||[],i&&(o[r]=o[r].concat(t)),i||o[r].push(t)}(t.loaded,[a],o),function(e,n){void 0!==e.pending[n]&&(delete e.pending[n],e.pendingCount--)}(t,e),n&&t.errors.push(n),0!==t.pendingCount||t.done||(Object.keys(t.loaded).forEach((function(e){r[e]||(r[e]={});var n=t.loaded[e];n.length&&n.forEach((function(n){void 0===r[e][n]&&(r[e][n]=!0)}))})),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())})),this.emit("loaded",r),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,n,t){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:n,fcName:t,tried:a,wait:o,callback:r});else{this.readingCalls++;var s=function(s,c){if(i.readingCalls--,i.waitingReads.length>0){var l=i.waitingReads.shift();i.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}s&&c&&a<i.maxRetries?setTimeout((function(){i.read.call(i,e,n,t,a+1,2*o,r)}),o):r(s,c)},c=this.backend[t].bind(this.backend);if(2!==c.length)return c(e,n,s);try{var l=c(e,n);l&&"function"==typeof l.then?l.then((function(e){return s(null,e)})).catch(s):s(null,l)}catch(e){s(e)}}}},{key:"prepareLoading",value:function(e,n){var t=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof n&&(n=[n]);var o=this.queueLoad(e,n,i,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach((function(e){t.loadOne(e)}))}},{key:"load",value:function(e,n,t){this.prepareLoading(e,n,{},t)}},{key:"reload",value:function(e,n,t){this.prepareLoading(e,n,{reload:!0},t)}},{key:"loadOne",value:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),a=i[0],o=i[1];this.read(a,o,"read",void 0,void 0,(function(i,r){i&&n.logger.warn("".concat(t,"loading namespace ").concat(o," for language ").concat(a," failed"),i),!i&&r&&n.logger.log("".concat(t,"loaded namespace ").concat(o," for language ").concat(a),r),n.loaded(e,i,r)}))}},{key:"saveMissing",value:function(e,n,t,i,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n))this.logger.warn('did not save key "'.concat(t,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=t&&""!==t){if(this.backend&&this.backend.create){var s=Sr(Sr({},o),{},{isUpdate:a}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var l;(l=5===c.length?c(e,n,t,i,s):c(e,n,t,i))&&"function"==typeof l.then?l.then((function(e){return r(null,e)})).catch(r):r(null,l)}catch(e){r(e)}else c(e,n,t,i,r,s)}e&&e[0]&&this.store.addResource(e[0],n,t,i)}}}]),t}();function Pr(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if("object"===ko(e[1])&&(n=e[1]),"string"==typeof e[1]&&(n.defaultValue=e[1]),"string"==typeof e[2]&&(n.tDescription=e[2]),"object"===ko(e[2])||"object"===ko(e[3])){var t=e[3]||e[2];Object.keys(t).forEach((function(e){n[e]=t[e]}))}return n},interpolation:{escapeValue:!0,format:function(e,n,t,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Er(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ir(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Ar(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ir(Object(t),!0).forEach((function(n){Lo(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ir(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Lr(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,i=Ao(e);if(n){var a=Ao(this).constructor;t=Reflect.construct(i,arguments,a)}else t=i.apply(this,arguments);return Io(this,t)}}function Rr(){}var zr=function(e){Eo(t,Bo);var n=Lr(t);function t(){var e,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(jo(this,t),e=n.call(this),Xo&&Bo.call(To(e)),e.options=Er(a),e.services={},e.logger=Fo,e.modules={external:[]},i=To(e),Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach((function(e){"function"==typeof i[e]&&(i[e]=i[e].bind(i))})),o&&!e.isInitialized&&!a.isClone){if(!e.options.initImmediate)return e.init(a,o),Io(e,To(e));setTimeout((function(){e.init(a,o)}),0)}return e}return Co(t,[{key:"init",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;"function"==typeof n&&(t=n,n={}),!n.defaultNS&&!1!==n.defaultNS&&n.ns&&("string"==typeof n.ns?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));var i=Pr();function a(e){return e?"function"==typeof e?new e:e:null}if(this.options=Ar(Ar(Ar({},i),this.options),Er(n)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Ar(Ar({},i.interpolation),this.options.interpolation)),void 0!==n.keySeparator&&(this.options.userDefinedKeySeparator=n.keySeparator),void 0!==n.nsSeparator&&(this.options.userDefinedNsSeparator=n.nsSeparator),!this.options.isClone){var o;this.modules.logger?Fo.init(a(this.modules.logger),this.options):Fo.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=jr);var r=new ur(this.options);this.store=new ir(this.options.resources,this.options);var s=this.services;s.logger=Fo,s.resourceStore=this.store,s.languageUtils=r,s.pluralResolver=new vr(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(s.formatter=a(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new yr(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Tr(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(n){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];e.emit.apply(e,[n].concat(i))})),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new lr(this.services,this.options),this.translator.on("*",(function(n){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];e.emit.apply(e,[n].concat(i))})),this.modules.external.forEach((function(n){n.init&&n.init(e)}))}if(this.format=this.options.interpolation.format,t||(t=Rr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(n){e[n]=function(){var t;return(t=e.store)[n].apply(t,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(n){e[n]=function(){var t;return(t=e.store)[n].apply(t,arguments),e}}));var l=Uo(),p=function(){var n=function(n,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(i),t(n,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return n(null,e.t.bind(e));e.changeLanguage(e.options.lng,n)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),l}},{key:"loadResources",value:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rr,i="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return t();var a=[],o=function(e){e&&n.services.languageUtils.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(i)o(i);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return o(e)}));this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(a,this.options.ns,(function(e){e||n.resolvedLanguage||!n.language||n.setResolvedLanguage(n.language),t(e)}))}else t(null)}},{key:"reloadResources",value:function(e,n,t){var i=Uo();return e||(e=this.languages),n||(n=this.options.ns),t||(t=Rr),this.services.backendConnector.reload(e,n,(function(e){i.resolve(),t(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ar.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var n=0;n<this.languages.length;n++){var t=this.languages[n];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}},{key:"changeLanguage",value:function(e,n){var t=this;this.isLanguageChangingTo=e;var i=Uo();this.emit("languageChanging",e);var a=function(e){t.language=e,t.languages=t.services.languageUtils.toResolveHierarchy(e),t.resolvedLanguage=void 0,t.setResolvedLanguage(e)},o=function(o){e||o||!t.services.languageDetector||(o=[]);var r="string"==typeof o?o:t.services.languageUtils.getBestMatchFromCodes(o);r&&(t.language||a(r),t.translator.language||t.translator.changeLanguage(r),t.services.languageDetector&&t.services.languageDetector.cacheUserLanguage&&t.services.languageDetector.cacheUserLanguage(r)),t.loadResources(r,(function(e){!function(e,o){o?(a(o),t.translator.changeLanguage(o),t.isLanguageChangingTo=void 0,t.emit("languageChanged",o),t.logger.log("languageChanged",o)):t.isLanguageChangingTo=void 0,i.resolve((function(){return t.t.apply(t,arguments)})),n&&n(e,(function(){return t.t.apply(t,arguments)}))}(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,n,t){var i=this,a=function e(n,a){var o;if("object"!==ko(a)){for(var r=arguments.length,s=new Array(r>2?r-2:0),c=2;c<r;c++)s[c-2]=arguments[c];o=i.options.overloadTranslationOptionHandler([n,a].concat(s))}else o=Ar({},a);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,o.keyPrefix=o.keyPrefix||t||e.keyPrefix;var l,p=i.options.keySeparator||".";return l=o.keyPrefix&&Array.isArray(n)?n.map((function(e){return"".concat(o.keyPrefix).concat(p).concat(e)})):o.keyPrefix?"".concat(o.keyPrefix).concat(p).concat(n):n,i.t(l,o)};return"string"==typeof e?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=t,a}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=t.lng||this.resolvedLanguage||this.languages[0],a=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var r=function(e,t){var i=n.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===i||2===i};if(t.precheck){var s=t.precheck(this,r);if(void 0!==s)return s}return!!this.hasResourceBundle(i,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!r(i,e)||a&&!r(o,e)))}},{key:"loadNamespaces",value:function(e,n){var t=this,i=Uo();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){t.options.ns.indexOf(e)<0&&t.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),n&&n(e)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(e,n){var t=Uo();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],a=e.filter((function(e){return i.indexOf(e)<0}));return a.length?(this.options.preload=i.concat(a),this.loadResources((function(e){t.resolve(),n&&n(e)})),t):(n&&n(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var n=this.services&&this.services.languageUtils||new ur(Pr());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rr,a=Ar(Ar(Ar({},this.options),n),{isClone:!0}),o=new t(a);void 0===n.debug&&void 0===n.prefix||(o.logger=o.logger.clone(n));return["store","services","language"].forEach((function(n){o[n]=e[n]})),o.services=Ar({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new lr(o.services,o.options),o.translator.on("*",(function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];o.emit.apply(o,[e].concat(t))})),o.init(a,i),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),t}();Lo(zr,"createInstance",(function(){return new zr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var Dr=zr.createInstance();function Nr(e,n,t,i){return new(t||(t=Promise))((function(a,o){function r(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(r,s)}c((i=i.apply(e,n||[])).next())}))}Dr.createInstance=zr.createInstance,Dr.createInstance,Dr.dir,Dr.init,Dr.loadResources,Dr.reloadResources,Dr.use,Dr.changeLanguage,Dr.getFixedT,Dr.t,Dr.exists,Dr.setDefaultNamespace,Dr.hasLoadedNamespace,Dr.loadNamespaces,Dr.loadLanguages,"function"==typeof SuppressedError&&SuppressedError;var Mr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fr=qr(((e,{include:n,exclude:t}={})=>{const i=e=>{const i=n=>"string"==typeof n?e===n:n.test(e);return n?n.some(i):!t||!t.some(i)};for(const[n,t]of(e=>{const n=new Set;do{for(const t of Reflect.ownKeys(e))n.add([e,t])}while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return n})(e.constructor.prototype)){if("constructor"===t||!i(t))continue;const a=Reflect.getOwnPropertyDescriptor(n,t);a&&"function"==typeof a.value&&(e[t]=e[t].bind(e))}return e}));class Br extends Error{constructor(e="The global `jsPsych` variable is no longer available in jsPsych v7."){super(`${e} Please follow the migration guide at https://www.jspsych.org/7.0/support/migration-v7/ to update your experiment.`),this.name="MigrationError"}}function Ur(e){return[...new Set(e)]}function Wr(e){if(!e)return e;let n;if(Array.isArray(e)){n=[];for(const t of e)n.push(Wr(t));return n}if("object"==typeof e&&null!==e){n={};for(const t in e)e.hasOwnProperty(t)&&(n[t]=Wr(e[t]));return n}return e}window.jsPsych={get init(){throw new Br("`jsPsych.init()` was replaced by `initJsPsych()` in jsPsych v7.")},get data(){throw new Br},get randomization(){throw new Br},get turk(){throw new Br},get pluginAPI(){throw new Br},get ALL_KEYS(){throw new Br('jsPsych.ALL_KEYS was replaced by the "ALL_KEYS" string in jsPsych v7.')},get NO_KEYS(){throw new Br('jsPsych.NO_KEYS was replaced by the "NO_KEYS" string in jsPsych v7.')}};var Vr,Hr=Object.freeze({__proto__:null,deepCopy:Wr,deepMerge:function e(n,t){let i={};for(const a in n)n.hasOwnProperty(a)&&("object"==typeof n[a]&&t.hasOwnProperty(a)?i[a]=e(n[a],t[a]):i[a]=n[a]);for(const n in t)t.hasOwnProperty(n)&&(i.hasOwnProperty(n)&&"object"==typeof t[n]?i[n]=e(i[n],t[n]):i[n]=t[n]);return i},unique:Ur});class Kr{constructor(e=[]){this.values=e}sum(){let e=0;for(const n of this.values)e+=n;return e}mean(){return this.sum()/this.count()}median(){if(0===this.values.length)return;const e=this.values.slice(0).sort((function(e,n){return e-n})),n=Math.floor(e.length/2);return e.length%2==0?(e[n]+e[n-1])/2:e[n]}min(){return Math.min.apply(null,this.values)}max(){return Math.max.apply(null,this.values)}count(){return this.values.length}variance(){const e=this.mean();let n=0;for(const t of this.values)n+=Math.pow(t-e,2);return n/(this.values.length-1)}sd(){const e=this.variance();return Math.sqrt(e)}frequencies(){const e={};for(const n of this.values)void 0===e[n]?e[n]=1:e[n]++;return e}all(e){for(const n of this.values)if(!e(n))return!1;return!0}subset(e){const n=[];for(const t of this.values)e(t)&&n.push(t);return new Kr(n)}}class $r{constructor(e=[]){this.trials=e}push(e){return this.trials.push(e),this}join(e){return this.trials=this.trials.concat(e.values()),this}top(){return this.trials.length<=1?this:new $r([this.trials[this.trials.length-1]])}first(e=1){if(e<1)throw"You must query with a positive nonzero integer. Please use a\n different value for n.";return 0===this.trials.length?new $r:(e>this.trials.length&&(e=this.trials.length),new $r(this.trials.slice(0,e)))}last(e=1){if(e<1)throw"You must query with a positive nonzero integer. Please use a\n different value for n.";return 0===this.trials.length?new $r:(e>this.trials.length&&(e=this.trials.length),new $r(this.trials.slice(this.trials.length-e,this.trials.length)))}values(){return this.trials}count(){return this.trials.length}readOnly(){return new $r(Wr(this.trials))}addToAll(e){for(const n of this.trials)Object.assign(n,e);return this}addToLast(e){return 0!=this.trials.length&&Object.assign(this.trials[this.trials.length-1],e),this}filter(e){let n;n=Array.isArray(e)?Wr(e):Wr([e]);const t=[];for(const e of this.trials){let i=!1;for(const t of n){let n=!0;for(const i of Object.keys(t))void 0!==e[i]&&e[i]===t[i]||(n=!1);if(n){i=!0;break}}i&&t.push(e)}return new $r(t)}filterCustom(e){return new $r(this.trials.filter(e))}filterColumns(e){return new $r(this.trials.map((n=>Object.fromEntries(e.filter((e=>e in n)).map((e=>[e,n[e]]))))))}select(e){const n=[];for(const t of this.trials)void 0!==t[e]&&n.push(t[e]);return new Kr(n)}ignore(e){Array.isArray(e)||(e=[e]);const n=Wr(this.trials);for(const t of n)for(const n of e)delete t[n];return new $r(n)}uniqueNames(){const e=[];for(const n of this.trials)for(const t of Object.keys(n))e.includes(t)||e.push(t);return e}csv(){return function(e){const n="object"!=typeof e?JSON.parse(e):e;let t="",i="";const a=[];for(const e of n)for(const n in e){let e=n+"";e='"'+e.replace(/"/g,'""')+'",',a.includes(n)||(a.push(n),t+=e)}t=t.slice(0,-1),i+=t+"\r\n";for(const e of n){t="";for(const n of a){let i=void 0===e[n]?"":e[n];"object"==typeof i&&(i=JSON.stringify(i)),t+='"'+(i+"").replace(/"/g,'""')+'",'}t=t.slice(0,-1),i+=t+"\r\n"}return i}(this.trials)}json(e=!1){return e?JSON.stringify(this.trials,null,"\t"):JSON.stringify(this.trials)}localSave(e,n){let t;if("json"===(e=e.toLowerCase()))t=this.json();else{if("csv"!==e)throw new Error('Invalid format specified for localSave. Must be "json" or "csv".');t=this.csv()}!function(e,n){const t=new Blob([e],{type:"text/plain"});let i="";i=void 0!==window.webkitURL?window.webkitURL.createObjectURL(t):window.URL.createObjectURL(t);const a=document.createElement("a");a.id="jspsych-download-as-text-link",a.style.display="none",a.download=n,a.href=i,a.click()}(t,n)}}class Yr{constructor(e){this.jsPsych=e,this.dataProperties={},this.reset()}reset(){this.allData=new $r,this.interactionData=new $r}get(){return this.allData}getInteractionData(){return this.interactionData}write(e){const n=this.jsPsych.getProgress(),t=this.jsPsych.getCurrentTrial(),i={trial_type:t.type.info.name,trial_index:n.current_trial_global,time_elapsed:this.jsPsych.getTotalTime(),internal_node_id:this.jsPsych.getCurrentTimelineNodeID()};this.allData.push(Object.assign(Object.assign(Object.assign(Object.assign({},e),t.data),i),this.dataProperties))}addProperties(e){this.allData.addToAll(e),this.dataProperties=Object.assign({},this.dataProperties,e)}addDataToLastTrial(e){this.allData.addToLast(e)}getDataByTimelineNode(e){return this.allData.filterCustom((n=>n.internal_node_id.slice(0,e.length)===e))}getLastTrialData(){return this.allData.top()}getLastTimelineData(){const e=this.getLastTrialData().select("internal_node_id").values[0];if(void 0===e)return new $r;{const n=e.substr(0,e.lastIndexOf("-"));return this.getDataByTimelineNode(n)}}displayData(e="json"){"json"!=(e=e.toLowerCase())&&"csv"!=e&&(console.log("Invalid format declared for displayData function. Using json as default."),e="json");const n="json"===e?this.allData.json(!0):this.allData.csv();this.jsPsych.getDisplayElement().innerHTML='<pre id="jspsych-data-display"></pre>',document.getElementById("jspsych-data-display").textContent=n}urlVariables(){return void 0===this.query_string&&(this.query_string=function(){const e=window.location.search.substr(1).split("&"),n={};for(let t=0;t<e.length;++t){const i=e[t].split("=",2);1==i.length?n[i[0]]="":n[i[0]]=decodeURIComponent(i[1].replace(/\+/g," "))}return n}()),this.query_string}getURLVariable(e){return this.urlVariables()[e]}createInteractionListeners(){window.addEventListener("blur",(()=>{const e={event:"blur",trial:this.jsPsych.getProgress().current_trial_global,time:this.jsPsych.getTotalTime()};this.interactionData.push(e),this.jsPsych.getInitSettings().on_interaction_data_update(e)})),window.addEventListener("focus",(()=>{const e={event:"focus",trial:this.jsPsych.getProgress().current_trial_global,time:this.jsPsych.getTotalTime()};this.interactionData.push(e),this.jsPsych.getInitSettings().on_interaction_data_update(e)}));const e=()=>{const e={event:document.isFullScreen||document.webkitIsFullScreen||document.mozIsFullScreen||document.fullscreenElement?"fullscreenenter":"fullscreenexit",trial:this.jsPsych.getProgress().current_trial_global,time:this.jsPsych.getTotalTime()};this.interactionData.push(e),this.jsPsych.getInitSettings().on_interaction_data_update(e)};document.addEventListener("fullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("webkitfullscreenchange",e)}_customInsert(e){this.allData=new $r(e)}_fullreset(){this.reset(),this.dataProperties={}}}class Gr{constructor(){this.hardwareConnected=!1,document.addEventListener("jspsych-activate",(e=>{this.hardwareConnected=!0}))}hardware(e){const n=new CustomEvent("jspsych",{detail:e});document.dispatchEvent(n)}}class Jr{constructor(e,n=!1,t=0){this.getRootElement=e,this.areResponsesCaseSensitive=n,this.minimumValidRt=t,this.listeners=new Set,this.heldKeys=new Set,this.areRootListenersRegistered=!1,Fr(this),this.registerRootListeners()}registerRootListeners(){if(!this.areRootListenersRegistered){const e=this.getRootElement();e&&(e.addEventListener("keydown",this.rootKeydownListener),e.addEventListener("keyup",this.rootKeyupListener),this.areRootListenersRegistered=!0)}}rootKeydownListener(e){for(const n of Array.from(this.listeners))n(e);this.heldKeys.add(this.toLowerCaseIfInsensitive(e.key))}toLowerCaseIfInsensitive(e){return this.areResponsesCaseSensitive?e:e.toLowerCase()}rootKeyupListener(e){this.heldKeys.delete(this.toLowerCaseIfInsensitive(e.key))}isResponseValid(e,n,t){return!(!n&&this.heldKeys.has(t))&&("ALL_KEYS"===e||"NO_KEYS"!==e&&e.includes(t))}getKeyboardResponse({callback_function:e,valid_responses:n="ALL_KEYS",rt_method:t="performance",persist:i,audio_context:a,audio_context_start_time:o,allow_held_key:r=!1,minimum_valid_rt:s=this.minimumValidRt}){"performance"!==t&&"audio"!==t&&(console.log('Invalid RT method specified in getKeyboardResponse. Defaulting to "performance" method.'),t="performance");const c="performance"===t?performance.now():1e3*o;this.registerRootListeners(),this.areResponsesCaseSensitive||"string"==typeof n||(n=n.map((e=>e.toLowerCase())));const l=o=>{const p=Math.round(("performance"==t?performance.now():1e3*a.currentTime)-c);if(p<s)return;const u=this.toLowerCaseIfInsensitive(o.key);this.isResponseValid(n,r,u)&&(o.preventDefault(),i||this.cancelKeyboardResponse(l),e({key:u,rt:p}))};return this.listeners.add(l),l}cancelKeyboardResponse(e){this.listeners.delete(e)}cancelAllKeyboardResponses(){this.listeners.clear()}compareKeys(e,n){if(!("string"!=typeof e&&null!==e||"string"!=typeof n&&null!==n))return"string"==typeof e&&"string"==typeof n?this.areResponsesCaseSensitive?e===n:e.toLowerCase()===n.toLowerCase():null===e&&null===n;console.error("Error in jsPsych.pluginAPI.compareKeys: arguments must be key strings or null.")}}!function(e){e[e.BOOL=0]="BOOL",e[e.STRING=1]="STRING",e[e.INT=2]="INT",e[e.FLOAT=3]="FLOAT",e[e.FUNCTION=4]="FUNCTION",e[e.KEY=5]="KEY",e[e.KEYS=6]="KEYS",e[e.SELECT=7]="SELECT",e[e.HTML_STRING=8]="HTML_STRING",e[e.IMAGE=9]="IMAGE",e[e.AUDIO=10]="AUDIO",e[e.VIDEO=11]="VIDEO",e[e.OBJECT=12]="OBJECT",e[e.COMPLEX=13]="COMPLEX",e[e.TIMELINE=14]="TIMELINE"}(Vr||(Vr={}));const Xr={data:{type:Vr.OBJECT,pretty_name:"Data",default:{}},on_start:{type:Vr.FUNCTION,pretty_name:"On start",default:function(){}},on_finish:{type:Vr.FUNCTION,pretty_name:"On finish",default:function(){}},on_load:{type:Vr.FUNCTION,pretty_name:"On load",default:function(){}},post_trial_gap:{type:Vr.INT,pretty_name:"Post trial gap",default:null},css_classes:{type:Vr.STRING,pretty_name:"Custom CSS classes",default:null},simulation_options:{type:Vr.COMPLEX,default:null}},Zr=[Vr.AUDIO,Vr.IMAGE,Vr.VIDEO];class Qr{constructor(e,n){this.useWebaudio=e,this.webaudioContext=n,this.video_buffers={},this.context=null,this.audio_buffers=[],this.preload_requests=[],this.img_cache={},this.preloadMap=new Map,this.microphone_recorder=null,this.camera_stream=null,this.camera_recorder=null}getVideoBuffer(e){return e.startsWith("blob:")&&(this.video_buffers[e]=e),this.video_buffers[e]}initAudio(){this.context=this.useWebaudio?this.webaudioContext:null}audioContext(){return null!==this.context&&"running"!==this.context.state&&this.context.resume(),this.context}getAudioBuffer(e){return new Promise(((n,t)=>{void 0===this.audio_buffers[e]||"tmp"==this.audio_buffers[e]?this.preloadAudio([e],(()=>{n(this.audio_buffers[e])}),(()=>{}),(e=>{t(e.error)})):n(this.audio_buffers[e])}))}preloadAudio(e,n=(()=>{}),t=(e=>{}),i=(e=>{})){e=Ur(e.flat());let a=0;if(0==e.length)return void n();const o=(o,r=1)=>{const s=new XMLHttpRequest;s.open("GET",o,!0),s.responseType="arraybuffer",s.onload=()=>{this.context.decodeAudioData(s.response,(i=>{this.audio_buffers[o]=i,a++,t(o),a==e.length&&n()}),(e=>{i({source:o,error:e})}))},s.onerror=e=>{let n=e;404==s.status&&(n="404"),i({source:o,error:n})},s.onloadend=e=>{404==s.status&&i({source:o,error:"404"})},s.send(),this.preload_requests.push(s)},r=(o,r=1)=>{const s=new Audio,c=()=>{this.audio_buffers[o]=s,a++,t(o),a==e.length&&n(),s.removeEventListener("canplaythrough",c)};s.addEventListener("canplaythrough",c),s.addEventListener("error",(function e(n){i({source:s.src,error:n}),s.removeEventListener("error",e)})),s.addEventListener("abort",(function e(n){i({source:s.src,error:n}),s.removeEventListener("abort",e)})),s.src=o,this.preload_requests.push(s)};for(const i of e)void 0!==this.audio_buffers[i]?(a++,t(i),a==e.length&&n()):(this.audio_buffers[i]="tmp",null!==this.audioContext()?o(i):r(i))}preloadImages(e,n=(()=>{}),t=(e=>{}),i=(e=>{})){e=Ur(e.flat());var a=0;if(0!==e.length)for(let o=0;o<e.length;o++){const r=new Image,s=e[o];r.onload=()=>{a++,t(s),a===e.length&&n()},r.onerror=e=>{i({source:s,error:e})},r.src=s,this.img_cache[s]=r,this.preload_requests.push(r)}else n()}preloadVideo(e,n=(()=>{}),t=(e=>{}),i=(e=>{})){e=Ur(e.flat());let a=0;if(0!==e.length)for(const o of e){const r=this.video_buffers,s=new XMLHttpRequest;s.open("GET",o,!0),s.responseType="blob",s.onload=()=>{if(200===s.status||0===s.status){const i=s.response;r[o]=URL.createObjectURL(i),a++,t(o),a===e.length&&n()}},s.onerror=e=>{let n=e;404==s.status&&(n="404"),i({source:o,error:n})},s.onloadend=e=>{404==s.status&&i({source:o,error:"404"})},s.send(),this.preload_requests.push(s)}else n()}getAutoPreloadList(e){const n=Object.fromEntries(Zr.map((e=>[e,new Set]))),t=(e,i)=>{var a,o,r,s;if(void 0!==e.timeline)for(const n of e.timeline)t(n,null!==(a=e.type)&&void 0!==a?a:i);else if(null===(r=null!==(o=e.type)&&void 0!==o?o:i)||void 0===r?void 0:r.info){const{name:t,parameters:a}=(null!==(s=e.type)&&void 0!==s?s:i).info;this.preloadMap.has(t)||this.preloadMap.set(t,Object.fromEntries(Object.entries(a).filter((([e,{type:n,preload:t}])=>Zr.includes(n)&&(null==t||t))).map((([e,{type:n}])=>[e,n]))));for(const[i,a]of Object.entries(this.preloadMap.get(t))){const t=e[i],o=n[a];if("string"==typeof t)o.add(t);else if(Array.isArray(t))for(const e of t.flat())"string"==typeof e&&o.add(e)}}};return t({timeline:e}),{images:[...n[Vr.IMAGE]],audio:[...n[Vr.AUDIO]],video:[...n[Vr.VIDEO]]}}cancelPreloads(){for(const e of this.preload_requests)e.onload=()=>{},e.onerror=()=>{},e.oncanplaythrough=()=>{},e.onabort=()=>{};this.preload_requests=[]}initializeMicrophoneRecorder(e){const n=new MediaRecorder(e);this.microphone_recorder=n}getMicrophoneRecorder(){return this.microphone_recorder}initializeCameraRecorder(e,n){this.camera_stream=e;const t=new MediaRecorder(e,n);this.camera_recorder=t}getCameraStream(){return this.camera_stream}getCameraRecorder(){return this.camera_recorder}}class es{constructor(e,n){this.getDisplayContainerElement=e,this.setJsPsychTimeout=n}dispatchEvent(e){this.getDisplayContainerElement().dispatchEvent(e)}keyDown(e){this.dispatchEvent(new KeyboardEvent("keydown",{key:e}))}keyUp(e){this.dispatchEvent(new KeyboardEvent("keyup",{key:e}))}pressKey(e,n=0){n>0?this.setJsPsychTimeout((()=>{this.keyDown(e),this.keyUp(e)}),n):(this.keyDown(e),this.keyUp(e))}clickTarget(e,n=0){n>0?this.setJsPsychTimeout((()=>{e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0})),e.dispatchEvent(new MouseEvent("click",{bubbles:!0}))}),n):(e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0})),e.dispatchEvent(new MouseEvent("click",{bubbles:!0})))}fillTextInput(e,n,t=0){t>0?this.setJsPsychTimeout((()=>{e.value=n}),t):e.value=n}getValidKey(e){const n=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"," "];let t;if("NO_KEYS"==e)t=null;else if("ALL_KEYS"==e)t=n[Math.floor(Math.random()*n.length)];else{const n=e.flat();t=n[Math.floor(Math.random()*n.length)]}return t}mergeSimulationData(e,n){return Object.assign(Object.assign({},e),null==n?void 0:n.data)}ensureSimulationDataConsistency(e,n){if(n.rt&&(n.rt=Math.round(n.rt)),e.trial_duration&&n.rt&&n.rt>e.trial_duration&&(n.rt=null,n.response&&(n.response=null),n.correct&&(n.correct=!1)),e.choices&&"NO_KEYS"==e.choices&&(n.rt&&(n.rt=null),n.response&&(n.response=null)),e.allow_response_before_complete&&e.sequence_reps&&e.frame_time){const t=e.sequence_reps*e.frame_time*e.stimuli.length;n.rt<t&&(n.rt=null,n.response=null)}}}class ns{constructor(){this.timeout_handlers=[]}setTimeout(e,n){const t=window.setTimeout(e,n);return this.timeout_handlers.push(t),t}clearAllTimeouts(){for(const e of this.timeout_handlers)clearTimeout(e);this.timeout_handlers=[]}}var ts={exports:{}};!function(e,n,t){function i(e){var n=this,t=function(){var e=4022871197,n=function(n){n=String(n);for(var t=0;t<n.length;t++){var i=.02519603282416938*(e+=n.charCodeAt(t));i-=e=i>>>0,e=(i*=e)>>>0,e+=4294967296*(i-=e)}return 2.3283064365386963e-10*(e>>>0)};return n}();n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=t(" "),n.s1=t(" "),n.s2=t(" "),n.s0-=t(e),n.s0<0&&(n.s0+=1),n.s1-=t(e),n.s1<0&&(n.s1+=1),n.s2-=t(e),n.s2<0&&(n.s2+=1),t=null}function a(e,n){return n.c=e.c,n.s0=e.s0,n.s1=e.s1,n.s2=e.s2,n}function o(e,n){var t=new i(e),o=n&&n.state,r=t.next;return r.int32=function(){return 4294967296*t.next()|0},r.double=function(){return r()+11102230246251565e-32*(2097152*r()|0)},r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.alea=o}(0,ts,!1);var is=ts.exports,as=qr(is),os={exports:{}};!function(e,n,t){function i(e){var n=this,t="";n.x=0,n.y=0,n.z=0,n.w=0,n.next=function(){var e=n.x^n.x<<11;return n.x=n.y,n.y=n.z,n.z=n.w,n.w^=n.w>>>19^e^e>>>8},e===(0|e)?n.x=e:t+=e;for(var i=0;i<t.length+64;i++)n.x^=0|t.charCodeAt(i),n.next()}function a(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n}function o(e,n){var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xor128=o}(0,os,!1);var rs=os.exports,ss={exports:{}};!function(e,n,t){function i(e){var n=this,t="";n.next=function(){var e=n.x^n.x>>>2;return n.x=n.y,n.y=n.z,n.z=n.w,n.w=n.v,(n.d=n.d+362437|0)+(n.v=n.v^n.v<<4^e^e<<1)|0},n.x=0,n.y=0,n.z=0,n.w=0,n.v=0,e===(0|e)?n.x=e:t+=e;for(var i=0;i<t.length+64;i++)n.x^=0|t.charCodeAt(i),i==t.length&&(n.d=n.x<<10^n.x>>>4),n.next()}function a(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n.v=e.v,n.d=e.d,n}function o(e,n){var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xorwow=o}(0,ss,!1);var cs=ss.exports,ls={exports:{}};!function(e,n,t){function i(e){var n=this;n.next=function(){var e,t,i=n.x,a=n.i;return e=i[a],t=(e^=e>>>7)^e<<24,t^=(e=i[a+1&7])^e>>>10,t^=(e=i[a+3&7])^e>>>3,t^=(e=i[a+4&7])^e<<7,e=i[a+7&7],t^=(e^=e<<13)^e<<9,i[a]=t,n.i=a+1&7,t},function(e,n){var t,i=[];if(n===(0|n))i[0]=n;else for(n=""+n,t=0;t<n.length;++t)i[7&t]=i[7&t]<<15^n.charCodeAt(t)+i[t+1&7]<<13;for(;i.length<8;)i.push(0);for(t=0;t<8&&0===i[t];++t);for(8==t?i[7]=-1:i[t],e.x=i,e.i=0,t=256;t>0;--t)e.next()}(n,e)}function a(e,n){return n.x=e.x.slice(),n.i=e.i,n}function o(e,n){null==e&&(e=+new Date);var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&(o.x&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xorshift7=o}(0,ls,!1);var ps=ls.exports,us={exports:{}};!function(e,n,t){function i(e){var n=this;n.next=function(){var e,t,i=n.w,a=n.X,o=n.i;return n.w=i=i+1640531527|0,t=a[o+34&127],e=a[o=o+1&127],t^=t<<13,e^=e<<17,t^=t>>>15,e^=e>>>12,t=a[o]=t^e,n.i=o,t+(i^i>>>16)|0},function(e,n){var t,i,a,o,r,s=[],c=128;for(n===(0|n)?(i=n,n=null):(n+="\0",i=0,c=Math.max(c,n.length)),a=0,o=-32;o<c;++o)n&&(i^=n.charCodeAt((o+32)%n.length)),0===o&&(r=i),i^=i<<10,i^=i>>>15,i^=i<<4,i^=i>>>13,o>=0&&(r=r+1640531527|0,a=0==(t=s[127&o]^=i+r)?a+1:0);for(a>=128&&(s[127&(n&&n.length||0)]=-1),a=127,o=512;o>0;--o)i=s[a+34&127],t=s[a=a+1&127],i^=i<<13,t^=t<<17,i^=i>>>15,t^=t>>>12,s[a]=i^t;e.w=r,e.X=s,e.i=a}(n,e)}function a(e,n){return n.i=e.i,n.w=e.w,n.X=e.X.slice(),n}function o(e,n){null==e&&(e=+new Date);var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&(o.X&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xor4096=o}(0,us,!1);var ds=us.exports,ms={exports:{}};!function(e,n,t){function i(e){var n=this,t="";n.next=function(){var e=n.b,t=n.c,i=n.d,a=n.a;return e=e<<25^e>>>7^t,t=t-i|0,i=i<<24^i>>>8^a,a=a-e|0,n.b=e=e<<20^e>>>12^t,n.c=t=t-i|0,n.d=i<<16^t>>>16^a,n.a=a-e|0},n.a=0,n.b=0,n.c=-1640531527,n.d=1367130551,e===Math.floor(e)?(n.a=e/4294967296|0,n.b=0|e):t+=e;for(var i=0;i<t.length+20;i++)n.b^=0|t.charCodeAt(i),n.next()}function a(e,n){return n.a=e.a,n.b=e.b,n.c=e.c,n.d=e.d,n}function o(e,n){var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.tychei=o}(0,ms,!1);var fs=ms.exports,hs={exports:{}};!function(e){!function(n,t,i){var a,o=256,r="random",s=i.pow(o,6),c=i.pow(2,52),l=2*c,p=o-1;function u(e,p,u){var g=[],x=h(f((p=1==p?{entropy:!0}:p||{}).entropy?[e,v(t)]:null==e?function(){try{var e;return a&&(e=a.randomBytes)?e=e(o):(e=new Uint8Array(o),(n.crypto||n.msCrypto).getRandomValues(e)),v(e)}catch(e){var i=n.navigator,r=i&&i.plugins;return[+new Date,n,r,n.screen,v(t)]}}():e,3),g),b=new d(g),y=function(){for(var e=b.g(6),n=s,t=0;e<c;)e=(e+t)*o,n*=o,t=b.g(1);for(;e>=l;)e/=2,n/=2,t>>>=1;return(e+t)/n};return y.int32=function(){return 0|b.g(4)},y.quick=function(){return b.g(4)/4294967296},y.double=y,h(v(b.S),t),(p.pass||u||function(e,n,t,a){return a&&(a.S&&m(a,b),e.state=function(){return m(b,{})}),t?(i[r]=e,n):e})(y,x,"global"in p?p.global:this==i,p.state)}function d(e){var n,t=e.length,i=this,a=0,r=i.i=i.j=0,s=i.S=[];for(t||(e=[t++]);a<o;)s[a]=a++;for(a=0;a<o;a++)s[a]=s[r=p&r+e[a%t]+(n=s[a])],s[r]=n;(i.g=function(e){for(var n,t=0,a=i.i,r=i.j,s=i.S;e--;)n=s[a=p&a+1],t=t*o+s[p&(s[a]=s[r=p&r+n])+(s[r]=n)];return i.i=a,i.j=r,t})(o)}function m(e,n){return n.i=e.i,n.j=e.j,n.S=e.S.slice(),n}function f(e,n){var t,i=[],a=typeof e;if(n&&"object"==a)for(t in e)try{i.push(f(e[t],n-1))}catch(e){}return i.length?i:"string"==a?e:e+"\0"}function h(e,n){for(var t,i=e+"",a=0;a<i.length;)n[p&a]=p&(t^=19*n[p&a])+i.charCodeAt(a++);return v(n)}function v(e){return String.fromCharCode.apply(0,e)}if(h(i.random(),t),e.exports){e.exports=u;try{a=require("crypto")}catch(e){}}else i["seed"+r]=u}("undefined"!=typeof self?self:Mr,[],Math)}(hs);var vs=is,gs=rs,xs=cs,bs=ps,ys=ds,ws=fs,_s=hs.exports;_s.alea=vs,_s.xor128=gs,_s.xorwow=xs,_s.xorshift7=bs,_s.xor4096=ys,_s.tychei=ws;var ks=_s,js=["ability","able","aboard","about","above","accept","accident","according","account","accurate","acres","across","act","action","active","activity","actual","actually","add","addition","additional","adjective","adult","adventure","advice","affect","afraid","after","afternoon","again","against","age","ago","agree","ahead","aid","air","airplane","alike","alive","all","allow","almost","alone","along","aloud","alphabet","already","also","although","am","among","amount","ancient","angle","angry","animal","announced","another","answer","ants","any","anybody","anyone","anything","anyway","anywhere","apart","apartment","appearance","apple","applied","appropriate","are","area","arm","army","around","arrange","arrangement","arrive","arrow","art","article","as","aside","ask","asleep","at","ate","atmosphere","atom","atomic","attached","attack","attempt","attention","audience","author","automobile","available","average","avoid","aware","away","baby","back","bad","badly","bag","balance","ball","balloon","band","bank","bar","bare","bark","barn","base","baseball","basic","basis","basket","bat","battle","be","bean","bear","beat","beautiful","beauty","became","because","become","becoming","bee","been","before","began","beginning","begun","behavior","behind","being","believed","bell","belong","below","belt","bend","beneath","bent","beside","best","bet","better","between","beyond","bicycle","bigger","biggest","bill","birds","birth","birthday","bit","bite","black","blank","blanket","blew","blind","block","blood","blow","blue","board","boat","body","bone","book","border","born","both","bottle","bottom","bound","bow","bowl","box","boy","brain","branch","brass","brave","bread","break","breakfast","breath","breathe","breathing","breeze","brick","bridge","brief","bright","bring","broad","broke","broken","brother","brought","brown","brush","buffalo","build","building","built","buried","burn","burst","bus","bush","business","busy","but","butter","buy","by","cabin","cage","cake","call","calm","came","camera","camp","can","canal","cannot","cap","capital","captain","captured","car","carbon","card","care","careful","carefully","carried","carry","case","cast","castle","cat","catch","cattle","caught","cause","cave","cell","cent","center","central","century","certain","certainly","chain","chair","chamber","chance","change","changing","chapter","character","characteristic","charge","chart","check","cheese","chemical","chest","chicken","chief","child","children","choice","choose","chose","chosen","church","circle","circus","citizen","city","class","classroom","claws","clay","clean","clear","clearly","climate","climb","clock","close","closely","closer","cloth","clothes","clothing","cloud","club","coach","coal","coast","coat","coffee","cold","collect","college","colony","color","column","combination","combine","come","comfortable","coming","command","common","community","company","compare","compass","complete","completely","complex","composed","composition","compound","concerned","condition","congress","connected","consider","consist","consonant","constantly","construction","contain","continent","continued","contrast","control","conversation","cook","cookies","cool","copper","copy","corn","corner","correct","correctly","cost","cotton","could","count","country","couple","courage","course","court","cover","cow","cowboy","crack","cream","create","creature","crew","crop","cross","crowd","cry","cup","curious","current","curve","customs","cut","cutting","daily","damage","dance","danger","dangerous","dark","darkness","date","daughter","dawn","day","dead","deal","dear","death","decide","declared","deep","deeply","deer","definition","degree","depend","depth","describe","desert","design","desk","detail","determine","develop","development","diagram","diameter","did","die","differ","difference","different","difficult","difficulty","dig","dinner","direct","direction","directly","dirt","dirty","disappear","discover","discovery","discuss","discussion","disease","dish","distance","distant","divide","division","do","doctor","does","dog","doing","doll","dollar","done","donkey","door","dot","double","doubt","down","dozen","draw","drawn","dream","dress","drew","dried","drink","drive","driven","driver","driving","drop","dropped","drove","dry","duck","due","dug","dull","during","dust","duty","each","eager","ear","earlier","early","earn","earth","easier","easily","east","easy","eat","eaten","edge","education","effect","effort","egg","eight","either","electric","electricity","element","elephant","eleven","else","empty","end","enemy","energy","engine","engineer","enjoy","enough","enter","entire","entirely","environment","equal","equally","equator","equipment","escape","especially","essential","establish","even","evening","event","eventually","ever","every","everybody","everyone","everything","everywhere","evidence","exact","exactly","examine","example","excellent","except","exchange","excited","excitement","exciting","exclaimed","exercise","exist","expect","experience","experiment","explain","explanation","explore","express","expression","extra","eye","face","facing","fact","factor","factory","failed","fair","fairly","fall","fallen","familiar","family","famous","far","farm","farmer","farther","fast","fastened","faster","fat","father","favorite","fear","feathers","feature","fed","feed","feel","feet","fell","fellow","felt","fence","few","fewer","field","fierce","fifteen","fifth","fifty","fight","fighting","figure","fill","film","final","finally","find","fine","finest","finger","finish","fire","fireplace","firm","first","fish","five","fix","flag","flame","flat","flew","flies","flight","floating","floor","flow","flower","fly","fog","folks","follow","food","foot","football","for","force","foreign","forest","forget","forgot","forgotten","form","former","fort","forth","forty","forward","fought","found","four","fourth","fox","frame","free","freedom","frequently","fresh","friend","friendly","frighten","frog","from","front","frozen","fruit","fuel","full","fully","fun","function","funny","fur","furniture","further","future","gain","game","garage","garden","gas","gasoline","gate","gather","gave","general","generally","gentle","gently","get","getting","giant","gift","girl","give","given","giving","glad","glass","globe","go","goes","gold","golden","gone","good","goose","got","government","grabbed","grade","gradually","grain","grandfather","grandmother","graph","grass","gravity","gray","great","greater","greatest","greatly","green","grew","ground","group","grow","grown","growth","guard","guess","guide","gulf","gun","habit","had","hair","half","halfway","hall","hand","handle","handsome","hang","happen","happened","happily","happy","harbor","hard","harder","hardly","has","hat","have","having","hay","he","headed","heading","health","heard","hearing","heart","heat","heavy","height","held","hello","help","helpful","her","herd","here","herself","hidden","hide","high","higher","highest","highway","hill","him","himself","his","history","hit","hold","hole","hollow","home","honor","hope","horn","horse","hospital","hot","hour","house","how","however","huge","human","hundred","hung","hungry","hunt","hunter","hurried","hurry","hurt","husband","ice","idea","identity","if","ill","image","imagine","immediately","importance","important","impossible","improve","in","inch","include","including","income","increase","indeed","independent","indicate","individual","industrial","industry","influence","information","inside","instance","instant","instead","instrument","interest","interior","into","introduced","invented","involved","iron","is","island","it","its","itself","jack","jar","jet","job","join","joined","journey","joy","judge","jump","jungle","just","keep","kept","key","kids","kill","kind","kitchen","knew","knife","know","knowledge","known","label","labor","lack","lady","laid","lake","lamp","land","language","large","larger","largest","last","late","later","laugh","law","lay","layers","lead","leader","leaf","learn","least","leather","leave","leaving","led","left","leg","length","lesson","let","letter","level","library","lie","life","lift","light","like","likely","limited","line","lion","lips","liquid","list","listen","little","live","living","load","local","locate","location","log","lonely","long","longer","look","loose","lose","loss","lost","lot","loud","love","lovely","low","lower","luck","lucky","lunch","lungs","lying","machine","machinery","mad","made","magic","magnet","mail","main","mainly","major","make","making","man","managed","manner","manufacturing","many","map","mark","market","married","mass","massage","master","material","mathematics","matter","may","maybe","me","meal","mean","means","meant","measure","meat","medicine","meet","melted","member","memory","men","mental","merely","met","metal","method","mice","middle","might","mighty","mile","military","milk","mill","mind","mine","minerals","minute","mirror","missing","mission","mistake","mix","mixture","model","modern","molecular","moment","money","monkey","month","mood","moon","more","morning","most","mostly","mother","motion","motor","mountain","mouse","mouth","move","movement","movie","moving","mud","muscle","music","musical","must","my","myself","mysterious","nails","name","nation","national","native","natural","naturally","nature","near","nearby","nearer","nearest","nearly","necessary","neck","needed","needle","needs","negative","neighbor","neighborhood","nervous","nest","never","new","news","newspaper","next","nice","night","nine","no","nobody","nodded","noise","none","noon","nor","north","nose","not","note","noted","nothing","notice","noun","now","number","numeral","nuts","object","observe","obtain","occasionally","occur","ocean","of","off","offer","office","officer","official","oil","old","older","oldest","on","once","one","only","onto","open","operation","opinion","opportunity","opposite","or","orange","orbit","order","ordinary","organization","organized","origin","original","other","ought","our","ourselves","out","outer","outline","outside","over","own","owner","oxygen","pack","package","page","paid","pain","paint","pair","palace","pale","pan","paper","paragraph","parallel","parent","park","part","particles","particular","particularly","partly","parts","party","pass","passage","past","path","pattern","pay","peace","pen","pencil","people","per","percent","perfect","perfectly","perhaps","period","person","personal","pet","phrase","physical","piano","pick","picture","pictured","pie","piece","pig","pile","pilot","pine","pink","pipe","pitch","place","plain","plan","plane","planet","planned","planning","plant","plastic","plate","plates","play","pleasant","please","pleasure","plenty","plural","plus","pocket","poem","poet","poetry","point","pole","police","policeman","political","pond","pony","pool","poor","popular","population","porch","port","position","positive","possible","possibly","post","pot","potatoes","pound","pour","powder","power","powerful","practical","practice","prepare","present","president","press","pressure","pretty","prevent","previous","price","pride","primitive","principal","principle","printed","private","prize","probably","problem","process","produce","product","production","program","progress","promised","proper","properly","property","protection","proud","prove","provide","public","pull","pupil","pure","purple","purpose","push","put","putting","quarter","queen","question","quick","quickly","quiet","quietly","quite","rabbit","race","radio","railroad","rain","raise","ran","ranch","range","rapidly","rate","rather","raw","rays","reach","read","reader","ready","real","realize","rear","reason","recall","receive","recent","recently","recognize","record","red","refer","refused","region","regular","related","relationship","religious","remain","remarkable","remember","remove","repeat","replace","replied","report","represent","require","research","respect","rest","result","return","review","rhyme","rhythm","rice","rich","ride","riding","right","ring","rise","rising","river","road","roar","rock","rocket","rocky","rod","roll","roof","room","root","rope","rose","rough","round","route","row","rubbed","rubber","rule","ruler","run","running","rush","sad","saddle","safe","safety","said","sail","sale","salmon","salt","same","sand","sang","sat","satellites","satisfied","save","saved","saw","say","scale","scared","scene","school","science","scientific","scientist","score","screen","sea","search","season","seat","second","secret","section","see","seed","seeing","seems","seen","seldom","select","selection","sell","send","sense","sent","sentence","separate","series","serious","serve","service","sets","setting","settle","settlers","seven","several","shade","shadow","shake","shaking","shall","shallow","shape","share","sharp","she","sheep","sheet","shelf","shells","shelter","shine","shinning","ship","shirt","shoe","shoot","shop","shore","short","shorter","shot","should","shoulder","shout","show","shown","shut","sick","sides","sight","sign","signal","silence","silent","silk","silly","silver","similar","simple","simplest","simply","since","sing","single","sink","sister","sit","sitting","situation","six","size","skill","skin","sky","slabs","slave","sleep","slept","slide","slight","slightly","slip","slipped","slope","slow","slowly","small","smaller","smallest","smell","smile","smoke","smooth","snake","snow","so","soap","social","society","soft","softly","soil","solar","sold","soldier","solid","solution","solve","some","somebody","somehow","someone","something","sometime","somewhere","son","song","soon","sort","sound","source","south","southern","space","speak","special","species","specific","speech","speed","spell","spend","spent","spider","spin","spirit","spite","split","spoken","sport","spread","spring","square","stage","stairs","stand","standard","star","stared","start","state","statement","station","stay","steady","steam","steel","steep","stems","step","stepped","stick","stiff","still","stock","stomach","stone","stood","stop","stopped","store","storm","story","stove","straight","strange","stranger","straw","stream","street","strength","stretch","strike","string","strip","strong","stronger","struck","structure","struggle","stuck","student","studied","studying","subject","substance","success","successful","such","sudden","suddenly","sugar","suggest","suit","sum","summer","sun","sunlight","supper","supply","support","suppose","sure","surface","surprise","surrounded","swam","sweet","swept","swim","swimming","swing","swung","syllable","symbol","system","table","tail","take","taken","tales","talk","tall","tank","tape","task","taste","taught","tax","tea","teach","teacher","team","tears","teeth","telephone","television","tell","temperature","ten","tent","term","terrible","test","than","thank","that","thee","them","themselves","then","theory","there","therefore","these","they","thick","thin","thing","think","third","thirty","this","those","thou","though","thought","thousand","thread","three","threw","throat","through","throughout","throw","thrown","thumb","thus","thy","tide","tie","tight","tightly","till","time","tin","tiny","tip","tired","title","to","tobacco","today","together","told","tomorrow","tone","tongue","tonight","too","took","tool","top","topic","torn","total","touch","toward","tower","town","toy","trace","track","trade","traffic","trail","train","transportation","trap","travel","treated","tree","triangle","tribe","trick","tried","trip","troops","tropical","trouble","truck","trunk","truth","try","tube","tune","turn","twelve","twenty","twice","two","type","typical","uncle","under","underline","understanding","unhappy","union","unit","universe","unknown","unless","until","unusual","up","upon","upper","upward","us","use","useful","using","usual","usually","valley","valuable","value","vapor","variety","various","vast","vegetable","verb","vertical","very","vessels","victory","view","village","visit","visitor","voice","volume","vote","vowel","voyage","wagon","wait","walk","wall","want","war","warm","warn","was","wash","waste","watch","water","wave","way","we","weak","wealth","wear","weather","week","weigh","weight","welcome","well","went","were","west","western","wet","whale","what","whatever","wheat","wheel","when","whenever","where","wherever","whether","which","while","whispered","whistle","white","who","whole","whom","whose","why","wide","widely","wife","wild","will","willing","win","wind","window","wing","winter","wire","wise","wish","with","within","without","wolf","women","won","wonder","wonderful","wood","wooden","wool","word","wore","work","worker","world","worried","worry","worse","worth","would","wrapped","write","writer","writing","written","wrong","wrote","yard","year","yellow","yes","yesterday","yet","you","young","younger","your","yourself","youth","zero","zebra","zipper","zoo","zulu"];function Os(e){const n=e?.seed?new ks(e.seed):null;function t(){return e&&e.maxLength>1?function(){var n,t=!1;for(;!t;)(n=i()).length<=e.maxLength&&(t=!0);return n}():i()}function i(){return js[a(js.length)]}function a(e){const t=n?n():Math.random();return Math.floor(t*e)}if(void 0===e)return t();"number"==typeof e&&(e={exactly:e}),e.exactly&&(e.min=e.exactly,e.max=e.exactly),"number"!=typeof e.wordsPerString&&(e.wordsPerString=1),"function"!=typeof e.formatter&&(e.formatter=e=>e),"string"!=typeof e.separator&&(e.separator=" ");for(var o=e.min+a(e.max+1-e.min),r=[],s="",c=0,l=0;l<o*e.wordsPerString;l++)c===e.wordsPerString-1?s+=e.formatter(t(),c):s+=e.formatter(t(),c)+e.separator,c++,(l+1)%e.wordsPerString==0&&(r.push(s),s="",c=0);return"string"==typeof e.join&&(r=r.join(e.join)),r}var Ss=Os;Os.wordList=js;var Cs=qr(Ss);function Ts(e,n,t=!1){const i=Array.isArray(e),a=Array.isArray(n);if(i)if(a){if(e.length!=n.length)if(console.warn("Unclear parameters given to randomization.repeat. Items and repetitions are unequal lengths. Behavior may not be as expected."),n.length<e.length){let t=[];for(let i=0;i<e.length;i++)t.push(n);n=t}else n=n.slice(0,e.length)}else{let t=[];for(let i=0;i<e.length;i++)t.push(n);n=t}else a?(n=[n[0]],console.log("Unclear parameters given to randomization.repeat. Multiple set sizes specified, but only one item exists to sample. Proceeding using the first set size.")):(e=[e],n=[n]);let o=[];for(let t=0;t<e.length;t++)for(let i=0;i<n[t];i++)null==e[t]||"object"!=typeof e[t]?o.push(e[t]):o.push(Object.assign({},e[t]));let r=Ps(o);return t&&(r=function(e){const n={};for(const t of e)for(const e of Object.keys(t))void 0===n[e]&&(n[e]=[]),n[e].push(t[e]);return n}(r)),r}function Ps(e){Array.isArray(e)||console.error("Argument to shuffle() must be an array.");const n=e.slice(0);let t,i,a=n.length;for(;a;)i=Math.floor(Math.random()*a--),t=n[a],n[a]=n[i],n[i]=t;return n}function Es(e,n=!1){const t=e.length;if(1==t)return console.warn("shuffleAlternateGroups() was called with only one group. Defaulting to simple shuffle."),Ps(e[0]);let i=[];for(let e=0;e<t;e++)i.push(e);n&&(i=Ps(i));const a=[];let o=null;for(let n=0;n<t;n++)o=null===o?e[n].length:Math.min(o,e[n].length),a.push(Ps(e[n]));const r=[];for(let e=0;e<o;e++)for(let n=0;n<i.length;n++)r.push(a[i[n]][e]);return r}function Is(e,n){return Array.isArray(e)||console.error("First argument to sampleWithoutReplacement() must be an array"),n>e.length&&console.error("Cannot take a sample larger than the size of the set of items to sample."),Ps(e).slice(0,n)}function As(e,n,t){Array.isArray(e)||console.error("First argument to sampleWithReplacement() must be an array");const i=[];if(void 0!==t){t.length!==e.length&&console.error("The length of the weights array must equal the length of the array to be sampled from.");let n=0;for(const e of t)n+=e;for(const e of t)i.push(e/n)}else for(let n=0;n<e.length;n++)i.push(1/e.length);const a=[i[0]];for(let e=1;e<i.length;e++)a.push(i[e]+a[e-1]);const o=[];for(let t=0;t<n;t++){const n=Math.random();let t=0;for(;n>a[t];)t++;o.push(e[t])}return o}function Ls(e,n){return function(){var e=0,n=0;for(;0===e;)e=Math.random();for(;0===n;)n=Math.random();return Math.sqrt(-2*Math.log(e))*Math.cos(2*Math.PI*n)}()*n+e}function Rs(e){return-Math.log(Math.random())/e}var zs=Object.freeze({__proto__:null,factorial:function(e,n=1,t=!1){let i=[{}];for(const[n,t]of Object.entries(e)){const e=[];for(const a of t)for(const t of i)e.push(Object.assign(Object.assign({},t),{[n]:a}));i=e}return Ts(i,n,t)},randomID:function(e=32){let n="";const t="0123456789abcdefghjklmnopqrstuvwxyz";for(let i=0;i<e;i++)n+=t[Math.floor(35*Math.random())];return n},randomInt:function(e,n){if(n<e)throw new Error("Upper boundary must be less than or equal to lower boundary");return e+Math.floor(Math.random()*(n-e+1))},randomWords:function(e){return Cs(e)},repeat:Ts,sampleBernoulli:function(e){return Math.random()<=e?1:0},sampleExGaussian:function(e,n,t,i=!1){let a=Ls(e,n)+Rs(t);if(i)for(;a<=0;)a=Ls(e,n)+Rs(t);return a},sampleExponential:Rs,sampleNormal:Ls,sampleWithReplacement:As,sampleWithoutReplacement:Is,setSeed:function(e=Math.random().toString()){return Math.random=as(e),e},shuffle:Ps,shuffleAlternateGroups:Es,shuffleNoRepeats:function(e,n){Array.isArray(e)||console.error("First argument to shuffleNoRepeats() must be an array."),void 0!==n&&"function"!=typeof n&&console.error("Second argument to shuffleNoRepeats() must be a function."),void 0===n&&(n=function(e,n){return e===n});const t=Ps(e);for(let e=0;e<t.length-1;e++)if(n(t[e],t[e+1])){let i=Math.floor(Math.random()*(t.length-2))+1;for(;n(t[e+1],t[i])||n(t[e+1],t[i+1])||n(t[e+1],t[i-1])||n(t[e],t[i]);)i=Math.floor(Math.random()*(t.length-2))+1;const a=t[i];t[i]=t[e+1],t[e+1]=a}return t}});function Ds(){const e={previewMode:!1,outsideTurk:!1,hitId:"INVALID_URL_PARAMETER",assignmentId:"INVALID_URL_PARAMETER",workerId:"INVALID_URL_PARAMETER",turkSubmitTo:"INVALID_URL_PARAMETER"},n=function(e,n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const t=new RegExp("[\\?&]"+n+"=([^&#]*)").exec(e);return null==t?"":t[1]},t=n(window.location.href,"assignmentId")?window.location.href:document.referrer;return["assignmentId","hitId","workerId","turkSubmitTo"].map((function(i){e[i]=unescape(n(t,i))})),e.previewMode="ASSIGNMENT_ID_NOT_AVAILABLE"==e.assignmentId,e.outsideTurk=!e.previewMode&&""===e.hitId&&""==e.assignmentId&&""==e.workerId,e}var Ns=Object.freeze({__proto__:null,submitToTurk:function(e){const n=Ds(),t=n.assignmentId,i=n.turkSubmitTo;if(!t||!i)return;const a=document.createElement("form");a.method="POST",a.action=i+"/mturk/externalSubmit?assignmentId="+t;for(const n in e)if(e.hasOwnProperty(n)){const t=document.createElement("input");t.type="hidden",t.name=n,t.id=n,t.value=e[n],a.appendChild(t)}document.body.appendChild(a),a.submit()},turkInfo:Ds});class Ms{constructor(e,n,t,i){if(this.jsPsych=e,this.progress={current_location:-1,current_variable_set:0,current_repetition:0,current_iteration:0,done:!1},this.parent_node=t,this.relative_id=void 0===t?0:i,void 0!==n.timeline){this.timeline_parameters={timeline:[],loop_function:n.loop_function,conditional_function:n.conditional_function,sample:n.sample,randomize_order:void 0!==n.randomize_order&&n.randomize_order,repetitions:void 0===n.repetitions?1:n.repetitions,timeline_variables:void 0===n.timeline_variables?[{}]:n.timeline_variables,on_timeline_finish:n.on_timeline_finish,on_timeline_start:n.on_timeline_start},this.setTimelineVariablesOrder();var a=Object.assign({},n);delete a.timeline,delete a.conditional_function,delete a.loop_function,delete a.randomize_order,delete a.repetitions,delete a.timeline_variables,delete a.sample,delete a.on_timeline_start,delete a.on_timeline_finish,this.node_trial_data=a;for(var o=0;o<n.timeline.length;o++){var r=Object.assign({},a,n.timeline[o]);if("object"==typeof a.data&&"object"==typeof n.timeline[o].data){var s=Object.assign({},a.data,n.timeline[o].data);r.data=s}this.timeline_parameters.timeline.push(new Ms(this.jsPsych,r,this,o))}}else void 0===n.type&&console.error('Trial level node is missing the "type" parameter. The parameters for the node are: '+JSON.stringify(n)),this.trial_parameters=Object.assign({},n)}trial(){return void 0===this.timeline_parameters?Wr(this.trial_parameters):this.progress.current_location>=this.timeline_parameters.timeline.length?null:this.timeline_parameters.timeline[this.progress.current_location].trial()}markCurrentTrialComplete(){void 0===this.timeline_parameters?this.progress.done=!0:this.timeline_parameters.timeline[this.progress.current_location].markCurrentTrialComplete()}nextRepetiton(){this.setTimelineVariablesOrder(),this.progress.current_location=-1,this.progress.current_variable_set=0,this.progress.current_repetition++;for(var e=0;e<this.timeline_parameters.timeline.length;e++)this.timeline_parameters.timeline[e].reset()}setTimelineVariablesOrder(){const e=this.timeline_parameters;if(void 0!==e&&void 0!==e.timeline_variables){for(var n=[],t=0;t<e.timeline_variables.length;t++)n.push(t);void 0!==e.sample&&("custom"==e.sample.type?n=e.sample.fn(n):"with-replacement"==e.sample.type?n=As(n,e.sample.size,e.sample.weights):"without-replacement"==e.sample.type?n=Is(n,e.sample.size):"fixed-repetitions"==e.sample.type?n=Ts(n,e.sample.size,!1):"alternate-groups"==e.sample.type?n=Es(e.sample.groups,e.sample.randomize_group_order):console.error('Invalid type in timeline sample parameters. Valid options for type are "custom", "with-replacement", "without-replacement", "fixed-repetitions", and "alternate-groups"')),e.randomize_order&&(n=Ps(n)),this.progress.order=n}}nextSet(){this.progress.current_location=-1,this.progress.current_variable_set++;for(var e=0;e<this.timeline_parameters.timeline.length;e++)this.timeline_parameters.timeline[e].reset()}advance(){const e=this.progress,n=this.timeline_parameters,t=this.jsPsych.internal;if(e.done)return!0;if(-1==e.current_location){if(void 0!==n){if(void 0!==n.conditional_function&&0==e.current_repetition&&0==e.current_variable_set){t.call_immediate=!0;var i=n.conditional_function();if(t.call_immediate=!1,0==i)return e.done=!0,!0}void 0!==n.on_timeline_start&&0==e.current_variable_set&&n.on_timeline_start()}return e.current_location=0,this.advance()}if(void 0!==n){for(var a=!1;e.current_location<n.timeline.length&&0==a;){if(!n.timeline[e.current_location].advance())return a=!0,!1;e.current_location++}return e.current_variable_set<e.order.length-1?(this.nextSet(),this.advance()):e.current_repetition<n.repetitions-1?(this.nextRepetiton(),void 0!==n.on_timeline_finish&&n.on_timeline_finish(),this.advance()):(void 0!==n.on_timeline_finish&&n.on_timeline_finish(),void 0!==n.loop_function?(t.call_immediate=!0,n.loop_function(this.generatedData())?(this.reset(),t.call_immediate=!1,this.parent_node.advance()):(e.done=!0,t.call_immediate=!1,!0)):(e.done=!0,!0))}}isComplete(){return this.progress.done}getTimelineVariableValue(e){if(void 0!==this.timeline_parameters)return this.timeline_parameters.timeline_variables[this.progress.order[this.progress.current_variable_set]][e]}findTimelineVariable(e){var n=this.getTimelineVariableValue(e);return void 0===n?void 0!==this.parent_node?this.parent_node.findTimelineVariable(e):void 0:n}timelineVariable(e){if(void 0===this.timeline_parameters){const n=this.findTimelineVariable(e);return void 0===n&&console.warn("Timeline variable "+e+" not found."),n}{var n=Math.max(0,this.progress.current_location);n==this.timeline_parameters.timeline.length&&(n-=1);const t=this.timeline_parameters.timeline[n].timelineVariable(e);return void 0===t&&console.warn("Timeline variable "+e+" not found."),t}}allTimelineVariables(){for(var e=this.allTimelineVariablesNames(),n={},t=0;t<e.length;t++)n[e[t]]=this.timelineVariable(e[t]);return n}allTimelineVariablesNames(e=[]){if(void 0!==this.timeline_parameters){e=e.concat(Object.keys(this.timeline_parameters.timeline_variables[this.progress.order[this.progress.current_variable_set]]));var n=Math.max(0,this.progress.current_location);return n==this.timeline_parameters.timeline.length&&(n-=1),this.timeline_parameters.timeline[n].allTimelineVariablesNames(e)}if(void 0===this.timeline_parameters)return e}length(){var e=0;if(void 0===this.timeline_parameters)return 1;for(var n=0;n<this.timeline_parameters.timeline.length;n++)e+=this.timeline_parameters.timeline[n].length();return e}percentComplete(){for(var e=this.length(),n=0,t=0;t<this.timeline_parameters.timeline.length;t++)this.timeline_parameters.timeline[t].isComplete()&&(n+=this.timeline_parameters.timeline[t].length());return n/e*100}reset(){if(this.progress.current_location=-1,this.progress.current_repetition=0,this.progress.current_variable_set=0,this.progress.current_iteration++,this.progress.done=!1,this.setTimelineVariablesOrder(),void 0!==this.timeline_parameters)for(var e=0;e<this.timeline_parameters.timeline.length;e++)this.timeline_parameters.timeline[e].reset()}end(){this.progress.done=!0}endActiveNode(){void 0===this.timeline_parameters?(this.end(),this.parent_node.end()):this.timeline_parameters.timeline[this.progress.current_location].endActiveNode()}ID(){var e="";return void 0===this.parent_node?"0."+this.progress.current_iteration:(e+=this.parent_node.ID()+"-",e+=this.relative_id+"."+this.progress.current_iteration)}activeID(){return void 0===this.timeline_parameters?this.ID():this.timeline_parameters.timeline[this.progress.current_location].activeID()}generatedData(){return this.jsPsych.data.getDataByTimelineNode(this.ID())}trialsOfType(e){if(void 0===this.timeline_parameters)return this.trial_parameters.type==e?this.trial_parameters:[];for(var n=[],t=0;t<this.timeline_parameters.timeline.length;t++){var i=this.timeline_parameters.timeline[t].trialsOfType(e);n=n.concat(i)}return n}insert(e){void 0===this.timeline_parameters?console.error("Cannot add new trials to a trial-level node."):this.timeline_parameters.timeline.push(new Ms(this.jsPsych,Object.assign(Object.assign({},this.node_trial_data),e),this,this.timeline_parameters.timeline.length))}}function qs(e){return new Promise((n=>setTimeout(n,e)))}class Fs{version(){return"7.3.4"}constructor(e){this.extensions={},this.turk=Ns,this.randomization=zs,this.utils=Hr,this.opts={},this.global_trial_index=0,this.current_trial={},this.current_trial_finished=!1,this.paused=!1,this.waiting=!1,this.file_protocol=!1,this.simulation_mode=null,this.webaudio_context=null,this.internal={call_immediate:!1},this.progress_bar_amount=0,e=Object.assign({display_element:void 0,on_finish:()=>{},on_trial_start:()=>{},on_trial_finish:()=>{},on_data_update:()=>{},on_interaction_data_update:()=>{},on_close:()=>{},use_webaudio:!0,exclusions:{},show_progress_bar:!1,message_progress_bar:"Completion Progress",auto_update_progress_bar:!0,default_iti:0,minimum_valid_rt:0,experiment_width:null,override_safe_mode:!1,case_sensitive_responses:!1,extensions:[]},e),this.opts=e,Fr(this),this.webaudio_context="undefined"!=typeof window&&void 0!==window.AudioContext?new AudioContext:null,"file:"!=window.location.protocol||!1!==e.override_safe_mode&&void 0!==e.override_safe_mode||(e.use_webaudio=!1,this.file_protocol=!0,console.warn("jsPsych detected that it is running via the file:// protocol and not on a web server. To prevent issues with cross-origin requests, Web Audio and video preloading have been disabled. If you would like to override this setting, you can set 'override_safe_mode' to 'true' in initJsPsych. For more information, see: https://www.jspsych.org/overview/running-experiments")),this.data=new Yr(this),this.pluginAPI=function(e){const n=e.getInitSettings(),t=Fr(new Jr(e.getDisplayContainerElement,n.case_sensitive_responses,n.minimum_valid_rt)),i=Fr(new ns),a=Fr(new Qr(n.use_webaudio,e.webaudio_context)),o=Fr(new Gr),r=Fr(new es(e.getDisplayContainerElement,i.setTimeout));return Object.assign({},t,i,a,o,r)}(this);for(const n of e.extensions)this.extensions[n.type.info.name]=new n.type(this);this.pluginAPI.initAudio()}run(e){return Nr(this,void 0,void 0,(function*(){void 0===e&&console.error("No timeline declared in jsPsych.run. Cannot start experiment."),0===e.length&&console.error("No trials have been added to the timeline (the timeline is an empty array). Cannot start experiment."),this.timelineDescription=e,this.timeline=new Ms(this,{timeline:e}),yield this.prepareDom(),yield this.checkExclusions(this.opts.exclusions),yield this.loadExtensions(this.opts.extensions),document.documentElement.setAttribute("jspsych","present"),this.startExperiment(),yield this.finished}))}simulate(e,n="data-only",t={}){return Nr(this,void 0,void 0,(function*(){this.simulation_mode=n,this.simulation_options=t,yield this.run(e)}))}getProgress(){return{total_trials:void 0===this.timeline?void 0:this.timeline.length(),current_trial_global:this.global_trial_index,percent_complete:void 0===this.timeline?0:this.timeline.percentComplete()}}getStartTime(){return this.exp_start_time}getTotalTime(){return void 0===this.exp_start_time?0:(new Date).getTime()-this.exp_start_time.getTime()}getDisplayElement(){return this.DOM_target}getDisplayContainerElement(){return this.DOM_container}finishTrial(e={}){var n;if(this.current_trial_finished)return;this.current_trial_finished=!0,void 0!==this.current_trial.css_classes&&Array.isArray(this.current_trial.css_classes)&&this.DOM_target.classList.remove(...this.current_trial.css_classes),this.data.write(e);const t=this.data.getLastTrialData().values()[0],i=this.current_trial;if("object"==typeof i.save_trial_parameters)for(const e of Object.keys(i.save_trial_parameters)){const n=i.save_trial_parameters[e];!0===n&&(void 0===i[e]?console.warn(`Invalid parameter specified in save_trial_parameters. Trial has no property called "${e}".`):"function"==typeof i[e]?t[e]=i[e].toString():t[e]=i[e]),!1===n&&"internal_node_id"!==e&&"trial_index"!==e&&delete t[e]}const a=(null!==(n=i.extensions)&&void 0!==n?n:[]).map((e=>this.extensions[e.type.info.name].on_finish(e.params))),o=()=>{this.internal.call_immediate=!0,"function"==typeof i.on_finish&&i.on_finish(t),this.opts.on_trial_finish(t),this.opts.on_data_update(t),this.internal.call_immediate=!1,"data-only"===this.simulation_mode?this.nextTrial():null===typeof i.post_trial_gap||void 0===i.post_trial_gap?this.opts.default_iti>0?setTimeout(this.nextTrial,this.opts.default_iti):this.nextTrial():i.post_trial_gap>0?setTimeout(this.nextTrial,i.post_trial_gap):this.nextTrial()};if(a.some((e=>"function"==typeof e.then)))Promise.all(a.map((e=>Promise.resolve(e).then((e=>{Object.assign(t,e)}))))).then(o);else{for(const e of a)Object.assign(t,e);o()}}endExperiment(e="",n={}){this.timeline.end_message=e,this.timeline.end(),this.pluginAPI.cancelAllKeyboardResponses(),this.pluginAPI.clearAllTimeouts(),this.finishTrial(n)}endCurrentTimeline(){this.timeline.endActiveNode()}getCurrentTrial(){return this.current_trial}getInitSettings(){return this.opts}getCurrentTimelineNodeID(){return this.timeline.activeID()}timelineVariable(e,n=!1){return this.internal.call_immediate||!0===n?this.timeline.timelineVariable(e):{timelineVariablePlaceholder:!0,timelineVariableFunction:()=>this.timeline.timelineVariable(e)}}getAllTimelineVariables(){return this.timeline.allTimelineVariables()}addNodeToEndOfTimeline(e,n){this.timeline.insert(e)}pauseExperiment(){this.paused=!0}resumeExperiment(){this.paused=!1,this.waiting&&(this.waiting=!1,this.nextTrial())}loadFail(e){e=e||"<p>The experiment failed to load.</p>",this.DOM_target.innerHTML=e}getSafeModeStatus(){return this.file_protocol}getTimeline(){return this.timelineDescription}prepareDom(){return Nr(this,void 0,void 0,(function*(){"complete"!==document.readyState&&(yield new Promise((e=>{window.addEventListener("load",e)})));const e=this.opts;if(void 0===e.display_element){null===document.querySelector("body")&&document.documentElement.appendChild(document.createElement("body")),document.querySelector("html").style.height="100%",document.querySelector("body").style.margin="0px",document.querySelector("body").style.height="100%",document.querySelector("body").style.width="100%",e.display_element=document.querySelector("body")}else{const n=e.display_element instanceof Element?e.display_element:document.querySelector("#"+e.display_element);null===n?console.error("The display_element specified in initJsPsych() does not exist in the DOM."):e.display_element=n}e.display_element.innerHTML='<div class="jspsych-content-wrapper"><div id="jspsych-content"></div></div>',this.DOM_container=e.display_element,this.DOM_target=document.querySelector("#jspsych-content"),null!==e.experiment_width&&(this.DOM_target.style.width=e.experiment_width+"px"),e.display_element.tabIndex=0,-1===e.display_element.className.indexOf("jspsych-display-element")&&(e.display_element.className+=" jspsych-display-element"),this.DOM_target.className+="jspsych-content",this.data.createInteractionListeners(),window.addEventListener("beforeunload",e.on_close)}))}loadExtensions(e){return Nr(this,void 0,void 0,(function*(){try{yield Promise.all(e.map((e=>this.extensions[e.type.info.name].initialize(e.params||{}))))}catch(e){throw console.error(e),new Error(e)}}))}startExperiment(){this.finished=new Promise((e=>{this.resolveFinishedPromise=e})),!0===this.opts.show_progress_bar&&this.drawProgressBar(this.opts.message_progress_bar),this.exp_start_time=new Date,this.timeline.advance(),this.doTrial(this.timeline.trial())}finishExperiment(){const e=this.opts.on_finish(this.data.get()),n=()=>{void 0!==this.timeline.end_message&&(this.DOM_target.innerHTML=this.timeline.end_message),this.resolveFinishedPromise()};e?Promise.resolve(e).then(n):n()}nextTrial(){if(this.paused)return void(this.waiting=!0);this.global_trial_index++,this.timeline.markCurrentTrialComplete();const e=this.timeline.advance();!0===this.opts.show_progress_bar&&!0===this.opts.auto_update_progress_bar&&this.updateProgressBar(),e?this.finishExperiment():this.doTrial(this.timeline.trial())}doTrial(e){if(this.current_trial=e,this.current_trial_finished=!1,this.evaluateTimelineVariables(e),"string"==typeof e.type)throw new Br("A string was provided as the trial's `type` parameter. Since jsPsych v7, the `type` parameter needs to be a plugin object.");if(e.type=Object.assign(Object.assign({},Fr(new e.type(this))),{info:e.type.info}),this.evaluateFunctionParameters(e),this.setDefaultValues(e),this.internal.call_immediate=!0,this.opts.on_trial_start(e),"function"==typeof e.on_start&&e.on_start(e),Array.isArray(e.extensions))for(const n of e.extensions)this.extensions[n.type.info.name].on_start(n.params);this.DOM_container.focus(),this.DOM_target.scrollTop=0,void 0!==e.css_classes&&(Array.isArray(e.css_classes)||"string"!=typeof e.css_classes||(e.css_classes=[e.css_classes]),Array.isArray(e.css_classes)&&this.DOM_target.classList.add(...e.css_classes));const n=()=>{if("function"==typeof e.on_load&&e.on_load(),Array.isArray(e.extensions))for(const n of e.extensions)this.extensions[n.type.info.name].on_load(n.params)};let t,i,a;this.simulation_mode||(t=e.type.trial(this.DOM_target,e,n)),this.simulation_mode&&(e.type.simulate?(e.simulation_options||(i=this.simulation_options.default),e.simulation_options&&("string"==typeof e.simulation_options?this.simulation_options[e.simulation_options]?i=this.simulation_options[e.simulation_options]:this.simulation_options.default?(console.log(`No matching simulation options found for "${e.simulation_options}". Using "default" options.`),i=this.simulation_options.default):(console.log(`No matching simulation options found for "${e.simulation_options}" and no "default" options provided. Using the default values provided by the plugin.`),i={}):i=e.simulation_options),a=this.utils.deepMerge(this.simulation_options.default,i),a=this.utils.deepCopy(a),a=this.replaceFunctionsWithValues(a,null),t=!1===(null==a?void 0:a.simulate)?e.type.trial(this.DOM_target,e,n):e.type.simulate(e,(null==a?void 0:a.mode)||this.simulation_mode,a,n)):t=e.type.trial(this.DOM_target,e,n));t&&"function"==typeof t.then||this.simulation_mode&&(!this.simulation_mode||!1!==(null==a?void 0:a.simulate))||n(),this.internal.call_immediate=!1}evaluateTimelineVariables(e){for(const n of Object.keys(e))"object"==typeof e[n]&&null!==e[n]&&void 0!==e[n].timelineVariablePlaceholder&&(e[n]=e[n].timelineVariableFunction()),"object"==typeof e[n]&&null!==e[n]&&"timeline"!==n&&"timeline_variables"!==n&&this.evaluateTimelineVariables(e[n])}evaluateFunctionParameters(e){this.internal.call_immediate=!0;for(const n of Object.keys(e))"type"!==n&&(void 0!==Xr[n]&&Xr[n].type!==Vr.FUNCTION&&(e[n]=this.replaceFunctionsWithValues(e[n],null)),void 0!==e.type.info.parameters[n]&&e.type.info.parameters[n].type!==Vr.FUNCTION&&(e[n]=this.replaceFunctionsWithValues(e[n],e.type.info.parameters[n])));this.internal.call_immediate=!1}replaceFunctionsWithValues(e,n){if(null===e)return e;if(Array.isArray(e))for(let t=0;t<e.length;t++)e[t]=this.replaceFunctionsWithValues(e[t],n);else if("object"==typeof e)if(null!==n&&n.nested)for(const t of Object.keys(e))"object"==typeof n.nested[t]&&n.nested[t].type!==Vr.FUNCTION&&(e[t]=this.replaceFunctionsWithValues(e[t],n.nested[t]));else for(const n of Object.keys(e))"type"!==n&&"timeline"!==n&&"timeline_variables"!==n&&(e[n]=this.replaceFunctionsWithValues(e[n],null));else if("function"==typeof e)return e();return e}setDefaultValues(e){for(const n in e.type.info.parameters)e.type.info.parameters[n].type===Vr.COMPLEX?(void 0===e[n]&&e.type.info.parameters[n].default&&(e[n]=e.type.info.parameters[n].default),!0===e.type.info.parameters[n].array&&Array.isArray(e[n])&&e[n].forEach((function(t,i){for(const t in e.type.info.parameters[n].nested)void 0!==e[n][i][t]&&null!==e[n][i][t]||(void 0===e.type.info.parameters[n].nested[t].default?console.error(`You must specify a value for the ${t} parameter (nested in the ${n} parameter) in the ${e.type.info.name} plugin.`):e[n][i][t]=e.type.info.parameters[n].nested[t].default)}))):void 0!==e[n]&&null!==e[n]||(void 0===e.type.info.parameters[n].default?console.error(`You must specify a value for the ${n} parameter in the ${e.type.info.name} plugin.`):e[n]=e.type.info.parameters[n].default)}checkExclusions(e){return Nr(this,void 0,void 0,(function*(){if((e.min_width||e.min_height||e.audio)&&console.warn("The exclusions option in `initJsPsych()` is deprecated and will be removed in a future version. We recommend using the browser-check plugin instead. See https://www.jspsych.org/latest/plugins/browser-check/."),e.min_width||e.min_height){const n=e.min_width||0,t=e.min_height||0;if(window.innerWidth<n||window.innerHeight<t){for(this.getDisplayElement().innerHTML="<p>Your browser window is too small to complete this experiment. Please maximize the size of your browser window. If your browser window is already maximized, you will not be able to complete this experiment.</p><p>The minimum width is "+n+"px. Your current width is "+window.innerWidth+"px.</p><p>The minimum height is "+t+"px. Your current height is "+window.innerHeight+"px.</p>";window.innerWidth<n||window.innerHeight<t;)yield qs(100);this.getDisplayElement().innerHTML=""}}if(void 0!==e.audio&&e.audio&&!window.hasOwnProperty("AudioContext")&&!window.hasOwnProperty("webkitAudioContext"))throw this.getDisplayElement().innerHTML="<p>Your browser does not support the WebAudio API, which means that you will not be able to complete the experiment.</p><p>Browsers that support the WebAudio API include Chrome, Firefox, Safari, and Edge.</p>",new Error}))}drawProgressBar(e){document.querySelector(".jspsych-display-element").insertAdjacentHTML("afterbegin",'<div id="jspsych-progressbar-container"><span>'+e+'</span><div id="jspsych-progressbar-outer"><div id="jspsych-progressbar-inner"></div></div></div>')}updateProgressBar(){this.setProgressBar(this.getProgress().percent_complete/100)}setProgressBar(e){e=Math.max(Math.min(1,e),0),document.querySelector("#jspsych-progressbar-inner").style.width=100*e+"%",this.progress_bar_amount=e}getProgressBarCompleted(){return this.progress_bar_amount}}"undefined"!=typeof window&&window.hasOwnProperty("webkitAudioContext")&&!window.hasOwnProperty("AudioContext")&&(window.AudioContext=webkitAudioContext),Vr.BOOL,Vr.HTML_STRING,Vr.STRING,Vr.INT;var Bs=[],Us=Bs.forEach,Ws=Bs.slice;var Vs=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Hs=function(e,n,t,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};t&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+60*t*1e3)),i&&(a.domain=i),document.cookie=function(e,n,t){var i=t||{};i.path=i.path||"/";var a=encodeURIComponent(n),o="".concat(e,"=").concat(a);if(i.maxAge>0){var r=i.maxAge-0;if(Number.isNaN(r))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(r))}if(i.domain){if(!Vs.test(i.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(i.domain)}if(i.path){if(!Vs.test(i.path))throw new TypeError("option path is invalid");o+="; Path=".concat(i.path)}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o}(e,encodeURIComponent(n),a)},Ks=function(e){for(var n="".concat(e,"="),t=document.cookie.split(";"),i=0;i<t.length;i++){for(var a=t[i];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(n))return a.substring(n.length,a.length)}return null},$s={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&"undefined"!=typeof document){var t=Ks(e.lookupCookie);t&&(n=t)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&"undefined"!=typeof document&&Hs(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},Ys={name:"querystring",lookup:function(e){var n;if("undefined"!=typeof window){var t=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(t=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=t.substring(1).split("&"),a=0;a<i.length;a++){var o=i[a].indexOf("=");if(o>0)i[a].substring(0,o)===e.lookupQuerystring&&(n=i[a].substring(o+1))}}return n}},Gs=null,Js=function(){if(null!==Gs)return Gs;try{Gs="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){Gs=!1}return Gs},Xs={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&Js()){var t=window.localStorage.getItem(e.lookupLocalStorage);t&&(n=t)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&Js()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},Zs=null,Qs=function(){if(null!==Zs)return Zs;try{Zs="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){Zs=!1}return Zs},ec={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&Qs()){var t=window.sessionStorage.getItem(e.lookupSessionStorage);t&&(n=t)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&Qs()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},nc={name:"navigator",lookup:function(e){var n=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var t=0;t<navigator.languages.length;t++)n.push(navigator.languages[t]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},tc={name:"htmlTag",lookup:function(e){var n,t=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return t&&"function"==typeof t.getAttribute&&(n=t.getAttribute("lang")),n}},ic={name:"path",lookup:function(e){var n;if("undefined"!=typeof window){var t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(t instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof t[e.lookupFromPathIndex])return;n=t[e.lookupFromPathIndex].replace("/","")}else n=t[0].replace("/","")}return n}},ac={name:"subdomain",lookup:function(e){var n="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,t="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(t)return t[n]}};var oc=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jo(this,e),this.type="languageDetector",this.detectors={},this.init(n,t)}return Co(e,[{key:"init",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return Us.call(Ws.call(arguments,1),(function(n){if(n)for(var t in n)void 0===e[t]&&(e[t]=n[t])})),e}(n,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=t,this.addDetector($s),this.addDetector(Ys),this.addDetector(Xs),this.addDetector(ec),this.addDetector(nc),this.addDetector(tc),this.addDetector(ic),this.addDetector(ac)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var n=this;e||(e=this.options.order);var t=[];return e.forEach((function(e){if(n.detectors[e]){var i=n.detectors[e].lookup(n.options);i&&"string"==typeof i&&(i=[i]),i&&(t=t.concat(i))}})),t=t.map((function(e){return n.options.convertDetectedLanguage(e)})),this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}},{key:"cacheUserLanguage",value:function(e,n){var t=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach((function(n){t.detectors[n]&&t.detectors[n].cacheUserLanguage(e,t.options)})))}}]),e}();oc.type="languageDetector";var rc={progressBar:"Progress Complete",fullScreenTrial:{prompt:"Switching to full screen mode.",buttonText:"Go"},instructions:{intro:{header:"Welcome to ROAR Multichoice!",topText:"In this activity, you're going to help me complete some sentences.",bottomText:""},instructions:{header:"What word completes the sentence?",topText:"Choose the best option to fill in the blank.",bottomText:""},practice:{header:"Let's practice!",topText:"Remember, your job is to choose the right word that fills in the blank.",bottomText:""},postPractice:{header:"Great job!",topText:"Now you're ready to try on your own. Try your best to choose the word that completes the sentence.",bottomText:""},practiceCorrect:{header:"That's right!",topText:"",bottomText:""},break1:{header:"Keep up the good work!",topText:"",bottomText:""},break2:{header:"You are doing great!",topText:"",bottomText:""},break3:{header:"Let's keep going.",topText:"",bottomText:""},break4:{header:"You are an expert at this!",topText:"",bottomText:""},break5:{header:"You can do it!",topText:"",bottomText:""},ending:{header:"You're all done! Thank you for helping me find those words!",topText:"",bottomText:""}}};(new oc).addDetector({name:"defaultToEnglish",lookup:e=>"en"}),Dr.use(oc).init({debug:!1,load:"languageOnly",fallbackLng:"en",detection:{order:["defaultToEnglish","querystring"]},resources:{en:{translation:rc}}}),function(e){const n=new Fs(e);Object.defineProperties(n,Object.fromEntries(Object.entries({init:"`jsPsych.init()` was replaced by `initJsPsych()` in jsPsych v7.",ALL_KEYS:'jsPsych.ALL_KEYS was replaced by the "ALL_KEYS" string in jsPsych v7.',NO_KEYS:'jsPsych.NO_KEYS was replaced by the "NO_KEYS" string in jsPsych v7.',currentTimelineNodeID:"`currentTimelineNodeID()` was renamed to `getCurrentTimelineNodeID()` in jsPsych v7.",progress:"`progress()` was renamed to `getProgress()` in jsPsych v7.",startTime:"`startTime()` was renamed to `getStartTime()` in jsPsych v7.",totalTime:"`totalTime()` was renamed to `getTotalTime()` in jsPsych v7.",currentTrial:"`currentTrial()` was renamed to `getCurrentTrial()` in jsPsych v7.",initSettings:"`initSettings()` was renamed to `getInitSettings()` in jsPsych v7.",allTimelineVariables:"`allTimelineVariables()` was renamed to `getAllTimelineVariables()` in jsPsych v7."}).map((([e,n])=>[e,{get(){throw new Br(n)}}]))))}({show_progress_bar:!0,auto_update_progress_bar:!1,message_progress_bar:`${Dr.t("progressBar")}`});function sc(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function cc(e,n){for(var t,i="",a=0,o=-1,r=0,s=0;s<=e.length;++s){if(s<e.length)t=e.charCodeAt(s);else{if(47===t)break;t=47}if(47===t){if(o===s-1||1===r);else if(o!==s-1&&2===r){if(i.length<2||2!==a||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",a=0):a=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),o=s,r=0;continue}}else if(2===i.length||1===i.length){i="",a=0,o=s,r=0;continue}n&&(i.length>0?i+="/..":i="..",a=2)}else i.length>0?i+="/"+e.slice(o+1,s):i=e.slice(o+1,s),a=s-o-1;o=s,r=0}else 46===t&&-1!==r?++r:r=-1}return i}var lc={resolve:function(){for(var e,n="",t=!1,i=arguments.length-1;i>=-1&&!t;i--){var a;i>=0?a=arguments[i]:(void 0===e&&(e=process.cwd()),a=e),sc(a),0!==a.length&&(n=a+"/"+n,t=47===a.charCodeAt(0))}return n=cc(n,!t),t?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(sc(e),0===e.length)return".";var n=47===e.charCodeAt(0),t=47===e.charCodeAt(e.length-1);return 0!==(e=cc(e,!n)).length||n||(e="."),e.length>0&&t&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return sc(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var t=arguments[n];sc(t),t.length>0&&(void 0===e?e=t:e+="/"+t)}return void 0===e?".":lc.normalize(e)},relative:function(e,n){if(sc(e),sc(n),e===n)return"";if((e=lc.resolve(e))===(n=lc.resolve(n)))return"";for(var t=1;t<e.length&&47===e.charCodeAt(t);++t);for(var i=e.length,a=i-t,o=1;o<n.length&&47===n.charCodeAt(o);++o);for(var r=n.length-o,s=a<r?a:r,c=-1,l=0;l<=s;++l){if(l===s){if(r>s){if(47===n.charCodeAt(o+l))return n.slice(o+l+1);if(0===l)return n.slice(o+l)}else a>s&&(47===e.charCodeAt(t+l)?c=l:0===l&&(c=0));break}var p=e.charCodeAt(t+l);if(p!==n.charCodeAt(o+l))break;47===p&&(c=l)}var u="";for(l=t+c+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===u.length?u+="..":u+="/..");return u.length>0?u+n.slice(o+c):(o+=c,47===n.charCodeAt(o)&&++o,n.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(sc(e),0===e.length)return".";for(var n=e.charCodeAt(0),t=47===n,i=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');sc(e);var t,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var r=n.length-1,s=-1;for(t=e.length-1;t>=0;--t){var c=e.charCodeAt(t);if(47===c){if(!o){i=t+1;break}}else-1===s&&(o=!1,s=t+1),r>=0&&(c===n.charCodeAt(r)?-1==--r&&(a=t):(r=-1,a=s))}return i===a?a=s:-1===a&&(a=e.length),e.slice(i,a)}for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){i=t+1;break}}else-1===a&&(o=!1,a=t+1);return-1===a?"":e.slice(i,a)},extname:function(e){sc(e);for(var n=-1,t=0,i=-1,a=!0,o=0,r=e.length-1;r>=0;--r){var s=e.charCodeAt(r);if(47!==s)-1===i&&(a=!1,i=r+1),46===s?-1===n?n=r:1!==o&&(o=1):-1!==n&&(o=-1);else if(!a){t=r+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===t+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,n){var t=n.dir||n.root,i=n.base||(n.name||"")+(n.ext||"");return t?t===n.root?t+i:t+e+i:i}("/",e)},parse:function(e){sc(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var t,i=e.charCodeAt(0),a=47===i;a?(n.root="/",t=1):t=0;for(var o=-1,r=0,s=-1,c=!0,l=e.length-1,p=0;l>=t;--l)if(47!==(i=e.charCodeAt(l)))-1===s&&(c=!1,s=l+1),46===i?-1===o?o=l:1!==p&&(p=1):-1!==o&&(p=-1);else if(!c){r=l+1;break}return-1===o||-1===s||0===p||1===p&&o===s-1&&o===r+1?-1!==s&&(n.base=n.name=0===r&&a?e.slice(1,s):e.slice(r,s)):(0===r&&a?(n.name=e.slice(1,o),n.base=e.slice(1,s)):(n.name=e.slice(r,o),n.base=e.slice(r,s)),n.ext=e.slice(o,s)),r>0?n.dir=e.slice(0,r-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};lc.posix=lc;var pc=t(lc),uc={},dc={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};
4
4
  /*!
@@ -7,5 +7,5 @@
7
7
  * Copyright(c) 2015 Douglas Christopher Wilson
8
8
  * MIT Licensed
9
9
  */
10
- !function(n){var t,i,a,o=dc,r=e.extname,s=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var n=s.exec(e),t=n&&o[n[1].toLowerCase()];return t&&t.charset?t.charset:!(!n||!c.test(n[1]))&&"UTF-8"}n.charset=l,n.charsets={lookup:l},n.contentType=function(e){if(!e||"string"!=typeof e)return!1;var t=-1===e.indexOf("/")?n.lookup(e):e;if(!t)return!1;if(-1===t.indexOf("charset")){var i=n.charset(t);i&&(t+="; charset="+i.toLowerCase())}return t},n.extension=function(e){if(!e||"string"!=typeof e)return!1;var t=s.exec(e),i=t&&n.extensions[t[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},n.extensions=Object.create(null),n.lookup=function(e){if(!e||"string"!=typeof e)return!1;var t=r("x."+e).toLowerCase().substr(1);if(!t)return!1;return n.types[t]||!1},n.types=Object.create(null),t=n.extensions,i=n.types,a=["nginx","apache",void 0,"iana"],Object.keys(o).forEach((function(e){var n=o[e],r=n.extensions;if(r&&r.length){t[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(i[c]){var l=a.indexOf(o[i[c]].source),p=a.indexOf(n.source);if("application/octet-stream"!==i[c]&&(l>p||l===p&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))}(uc);var mc=t(uc),fc="undefined"!=typeof window?window:{screen:{},navigator:{}},hc=(fc.matchMedia||function(){return{matches:!1}}).bind(fc),vc={get passive(){return!0}},gc=function(){};fc.addEventListener&&fc.addEventListener("p",gc,vc),fc.removeEventListener&&fc.removeEventListener("p",gc,!1);var xc="ontouchstart"in fc,bc=xc||"TouchEvent"in fc&&hc("(any-pointer: coarse)").matches,yc=(fc.navigator.maxTouchPoints||0)>0||bc,wc=fc.navigator.userAgent||"",_c=hc("(pointer: coarse)").matches&&/iPad|Macintosh/.test(wc)&&Math.min(fc.screen.width||0,fc.screen.height||0)>=768,kc=(hc("(pointer: coarse)").matches||!hc("(pointer: fine)").matches&&xc)&&!/Windows.*Firefox/.test(wc),jc=hc("(any-pointer: fine)").matches||hc("(any-hover: hover)").matches||_c||!xc,Oc=!yc||!jc&&kc?yc?"touchOnly":"mouseOnly":"hybrid",Sc="mouseOnly"===Oc?"mouse":"touchOnly"===Oc||kc?"touch":"mouse";function Cc(e){return e||(new URLSearchParams(window.location.search).get("lng")||"en")}function Tc(){return"touchOnly"===Oc||"hybrid"===Oc&&"touch"===Sc?"mobile":"desktop"}function Pc(e,n,t,i,a,o,r){return r&&o&&"device"===a||o&&"device"===a?"".concat(e,"/").concat(t,"/").concat(i,"/").concat(n):r&&o&&"shared"===a||o&&"shared"===a?"".concat(e,"/").concat(t,"/shared/").concat(n):"device"===a?"".concat(e,"/").concat(i,"/").concat(n):"shared/device"===a?"".concat(e,"/shared/").concat(i,"/").concat(n):"languageSpecific"===a?"".concat(e,"/").concat(t,"/").concat(n):"default"===a?"".concat(e,"/").concat(n):"".concat(e,"/shared/").concat(n)}function Ec(e){var n=mc.lookup(e);if(!n)throw new Error("Unrecognized file extension in path: ".concat(e));if(n.startsWith("image/"))return"images";if(n.startsWith("audio/"))return"audio";if(n.startsWith("video/"))return"video";throw new Error("Unsupported MIME type for file: ".concat(e,". Only image, audio, and video files are supported."))}const Ic={name:"preload",parameters:{auto_preload:{type:Vr.BOOL,pretty_name:"Auto-preload",default:!1},trials:{type:Vr.TIMELINE,pretty_name:"Trials",default:[]},images:{type:Vr.STRING,pretty_name:"Images",default:[],array:!0},audio:{type:Vr.STRING,pretty_name:"Audio",default:[],array:!0},video:{type:Vr.STRING,pretty_name:"Video",default:[],array:!0},message:{type:Vr.HTML_STRING,pretty_name:"Message",default:null},show_progress_bar:{type:Vr.BOOL,pretty_name:"Show progress bar",default:!0},continue_after_error:{type:Vr.BOOL,pretty_name:"Continue after error",default:!1},error_message:{type:Vr.HTML_STRING,pretty_name:"Error message",default:"The experiment failed to load."},show_detailed_errors:{type:Vr.BOOL,pretty_name:"Show detailed errors",default:!1},max_load_time:{type:Vr.INT,pretty_name:"Max load time",default:null},on_error:{type:Vr.FUNCTION,pretty_name:"On error",default:null},on_success:{type:Vr.FUNCTION,pretty_name:"On success",default:null}}};class Ac{constructor(e){this.jsPsych=e}trial(e,n){var t=null,i=!1,a=[],o=[],r=[],s=[],c=this.jsPsych.getSafeModeStatus(),l=[],p=[],u=[];if(n.auto_preload){var d=this.jsPsych.getTimeline(),m=this.jsPsych.pluginAPI.getAutoPreloadList(d);l=l.concat(m.images),p=p.concat(m.audio),u=u.concat(m.video)}if(n.trials.length>0){var f=this.jsPsych.pluginAPI.getAutoPreloadList(n.trials);l=l.concat(f.images),p=p.concat(f.audio),u=u.concat(f.video)}l=l.concat(n.images),p=p.concat(n.audio),u=u.concat(n.video),l=this.jsPsych.utils.unique(l.flat()),p=this.jsPsych.utils.unique(p.flat()),u=this.jsPsych.utils.unique(u.flat()),c&&(u=[]);var h="";null!==n.message&&(h+=n.message),n.show_progress_bar&&(h+="\n <div id='jspsych-loading-progress-bar-container' style='height: 10px; width: 300px; background-color: #ddd; margin: auto;'>\n <div id='jspsych-loading-progress-bar' style='height: 10px; width: 0%; background-color: #777;'></div>\n </div>"),e.innerHTML=h;const v=()=>{if(_++,n.show_progress_bar){var t=_/w*100,i=e.querySelector("#jspsych-loading-progress-bar");null!==i&&(i.style.width=t+"%")}},g=()=>{void 0!==i&&!1===i&&(this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),t=!0,y())},x=()=>{this.jsPsych.pluginAPI.cancelPreloads(),void 0===t||!1!==t&&null!==t||(i=!0,k<w&&(t=!1),S("timeout"),s.push("<p><strong>Loading timed out.</strong><br>Consider compressing your stimuli files, loading your files in smaller batches,<br>and/or increasing the <i>max_load_time</i> parameter.</p>"),n.continue_after_error?y():b())},b=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),e.innerHTML=n.error_message,n.show_detailed_errors&&(e.innerHTML+="<p><strong>Error details:</strong></p>",s.forEach((n=>{e.innerHTML+=n})))},y=()=>{this.jsPsych.pluginAPI.clearAllTimeouts();var n={success:t,timeout:i,failed_images:a,failed_audio:o,failed_video:r};e.innerHTML="",this.jsPsych.finishTrial(n)};null!==n.max_load_time&&this.jsPsych.pluginAPI.setTimeout(x,n.max_load_time);var w=l.length+p.length+u.length,_=0,k=0;if(0==w)g();else{const e=e=>{this.jsPsych.pluginAPI.preloadVideo(u,e,O,j)},n=e=>{this.jsPsych.pluginAPI.preloadAudio(p,e,O,j)},t=e=>{this.jsPsych.pluginAPI.preloadImages(l,e,O,j)};u.length>0&&e((()=>{})),p.length>0&&n((()=>{})),l.length>0&&t((()=>{}))}function j(e){v(),null==t&&(t=!1);var i="unknown file";e.source&&(i=e.source),e.error&&e.error.path&&e.error.path.length>0&&("img"==e.error.path[0].localName?a.push(i):"audio"==e.error.path[0].localName?o.push(i):"video"==e.error.path[0].localName&&r.push(i));var c="<p><strong>Error loading file: "+i+"</strong><br>";e.error.statusText&&(c+="File request response status: "+e.error.statusText+"<br>"),"404"==e.error&&(c+="404 - file not found.<br>"),void 0!==e.error.loaded&&null!==e.error.loaded&&0!==e.error.loaded?c+=e.error.loaded+" bytes transferred.":c+="File did not begin loading. Check that file path is correct and reachable by the browser,<br>and that loading is not blocked by cross-origin resource sharing (CORS) errors.",c+="</p>",s.push(c),S(i),_==w&&(n.continue_after_error?y():b())}function O(e){v(),function(e){null!==n.on_success&&n.on_success(e)}(e),++k==w?g():_==w&&(n.continue_after_error?y():b())}function S(e){null!==n.on_error&&n.on_error(e)}}simulate(e,n,t,i){"data-only"==n&&(i(),this.simulate_data_only(e,t)),"visual"==n&&this.simulate_visual(e,t,i)}create_simulation_data(e,n){return this.jsPsych.pluginAPI.mergeSimulationData({success:!0,timeout:!1,failed_images:[],failed_audio:[],failed_video:[]},n)}simulate_data_only(e,n){const t=this.create_simulation_data(e,n);this.jsPsych.finishTrial(t)}simulate_visual(e,n,t){const i=this.jsPsych.getDisplayElement();this.trial(i,e),t()}}function Lc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,o,r,s=[],c=!0,l=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=o.call(t)).done)&&(s.push(i.value),s.length!==n);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(l)throw a}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Rc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rc(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}Ac.info=Ic;var zc={default:{languageSpecific:{device:[],shared:["tryAgain.mp3","thatsRight.mp3","clickButton.jpg","intro.mp3","ins.mp3","surveyPractice.mp3","surveyPostPractice.mp3","great-job-click.mp3","break1.mp3","break2.mp3","break3.mp3","break4.mp3","break5.mp3","ending.mp3"]},shared:["nullAudio.mp3","select.mp3","goButton.png","coin.mp3","countdown0.mp3","countdown1.mp3","countdown2.mp3","countdown3.mp3","fail.mp3","fairyCoin.mp3","coin_bag.gif","ROARLion.gif"]}},Dc={exports:{}};!function(e){function n(e,n){this.low=e,this.high=n,this.random_sample=function(){return Math.random()*(this.high-this.low)+this.low}}function t(e,n){this.low=e,this.high=n,this.random_sample=function(){var e=Math.random()*(this.high-this.low)+this.low;return Math.round(e)}}function i(e){this.categories=e,this.random_sample=function(){var e=this.categories.length,n=Math.round(Math.random()*(e-1));return this.categories[n]}}function a(e){this.dimensions=e,this.rsv=function(e){for(var n=[],t=0;t<e;t++){var i=[];for(var a of this.dimensions)i.push(a.random_sample());n.push(i)}return n}}function o(n){this.space=e.exports.to_space(n),this.X=[],this.Y=[],this.best_x=null,this.best_y=null,this.ask=function(e=null){return null==e?this.space.rsv(1)[0]:this.space.rsv(e)},this.tell=function(e,n){for(var t=0;t<e.length;t++)(null==this.best_y||n[t]<this.best_y)&&(this.best_y=n[t],this.best_x=e[t]);this.X=this.X.concat(e),this.Y=this.Y.concat(n)}}function r(a,o=13,r=.1){this.space=e.exports.to_space(a),this.n_random_starts=o,this.mutation_rate=r,this.n_random_starts_=o,this.X=[],this.Y=[],this.best_x=null,this.best_y=null,this.rnd=function(e=null){return null==e&&(e=this.mutation_rate),Math.random()<e},this.ask=function(){if(this.n_random_starts_>0)return this.space.rsv(1)[0];for(finished=!1;!finished;){for(var e=[],a=this.X[0],o=this.Y[0],r=1;r<this.Y.length;r++)this.Y[r]<o&&(a=this.X[r],o=this.Y[r]);for(r=0;r<this.space.dimensions.length;r++){var s=a[r],c=this.space.dimensions[r];if(c instanceof i&&this.rnd()){var l=Math.round(Math.random()*(c.categories.length-1));s=c.categories[l],finished=!0}if((c instanceof n||c instanceof t)&&this.rnd()){for(var p=c.low,u=c.high,d=-16;d<=1;d++)this.rnd()&&(finished=!0,this.rnd(.5)?diff=u-s:diff=p-s,s+=diff*Math.pow(2,d));s<p&&(s=p),s>u&&(s=u),c instanceof t&&(s=Math.round(s))}e.push(s)}}return e},this.tell=function(e,n){for(var t=0;t<e.length;t++)this.n_random_starts_-=1,(null==this.best_y||n[t]<this.best_y)&&(this.best_y=n[t],this.best_x=e[t]);this.n_random_starts_<0&&(this.n_random_starts_=0),this.X=this.X.concat(e),this.Y=this.Y.concat(n)}}function s(e){for(var n=[],t=0;t<e.length;t++)n.push(t);for(t=0;t<e.length;t++){var i=Math.floor(Math.random()*t),a=n[t];n[t]=n[i],n[i]=a}return n}function c(e,n){for(var t=0,i=0;i<e.length;i++)t+=e[i]*n[i];return t}function l(e,n){for(var t=new Array(e.length),i=0;i<e.length;i++)t[i]=e[i]-n[i];return t}function p(e,n,t){for(var i=0;i<e.length;i++)e[i]=e[i]+n*t[i];return e}function u(e,n){for(var t=0;t<e.length;t++)if(Math.abs(e[t])>=n)return!1;return!0}e.exports.Real=function(e,t){return new n(e,t)},e.exports.Integer=function(e,n){return new t(e,n)},e.exports.Categorical=function(e){return new i(e)},e.exports.Space=function(e){return new a(e)},e.exports.to_space=function(n){if(n instanceof Array)return e.exports.Space(n);if(n instanceof a)return n;throw"Unknown space definition"},e.exports.RandomOptimizer=function(e){return new o(e)},e.exports.OMGOptimizer=function(e,n=13,t=.1){return new r(e,n,t)},e.exports.dummy_minimize=function(n,t,i=64){for(var a=e.exports.RandomOptimizer(t),o=0;o<i;o++){var r=a.ask(),s=n(r);a.tell([r],[s])}return a},e.exports.rs_minimize=function(n,t,i=64,a=13,o=.1){for(var r=e.exports.OMGOptimizer(t,a,o),s=0;s<i;s++){var c=r.ask(),l=n(c);r.tell([c],[l])}return r},e.exports.minimize_Powell=function(e,n,t=.01,i=.001){for(var a=!1,o=n.slice(),r=Math.exp(10),c=e(o);!a;){var l=s(o);a=!0;for(var p=0;p<l.length;p++){o[l[p]]+=1e-6;var u=e(o);o[l[p]]-=1e-6;var d=(u-c)/1e-6;Math.abs(d)>t&&(a=!1),o[l[p]]=o[l[p]]-i*d,c=e(o)}i=r>c?1.1*i:.7*i,r=c}var m={};return m.argument=o,m.fncvalue=c,m},e.exports.minimize_GradientDescent=function(e,n,t){for(var i=t.slice(),a=!1,o=.01,r=e(i);!a;){var s=n(i);if(a=u(s,.001))break;for(var c=!0;c;){var l=i.slice();p(l,-o,s);var d=e(l);o=(c=r<d)?.7*o:1.1*o}i=l,r=d}var m={};return m.argument=i,m.fncvalue=d,m},e.exports.minimize_L_BFGS=function(e,n,t){for(var i=t.slice(),a=.001,o=e(i),r=[],s=[],d=n(i),m=d.slice();;){var f=i.slice();p(f,a,m);var h=e(f);a=o<h?.5*a:1.2*a;var v=n(f);if(u(v,1e-5))break;var g=l(f,i),x=l(v,d);r.unshift(g),s.unshift(x),c(g,x),r.length>5&&(r.pop(),s.pop());for(var b=d.slice(),y=new Array(r.length),w=0;w<r.length;w++){var _=1/c(r[w],s[w]);y[w]=_*c(r[w],b),p(b,-y[w],s[w])}var k=c(g,x)/c(x,x);for(w=0;w<b.length;w++)b[w]=b[w]*k;for(w=0;w<r.length;w++){var j=r.length-w-1,O=1/c(r[j],s[j])*c(s[j],b);p(b,y[j]-O,r[j])}m=b.slice();for(w=0;w<m.length;w++)m[w]=-m[w];o=h,i=f,d=v}var S={};return S.argument=i,S.fncvalue=h,S}}(Dc);var Nc=Dc.exports,Mc={exports:{}};!function(e,t){(function(){var i,a="Expected a function",o="__lodash_hash_undefined__",r="__lodash_placeholder__",s=16,c=32,l=64,p=128,u=256,d=1/0,m=9007199254740991,f=NaN,h=4294967295,v=[["ary",p],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",c],["partialRight",l],["rearg",u]],g="[object Arguments]",x="[object Array]",b="[object Boolean]",y="[object Date]",w="[object Error]",_="[object Function]",k="[object GeneratorFunction]",j="[object Map]",O="[object Number]",S="[object Object]",C="[object Promise]",T="[object RegExp]",P="[object Set]",E="[object String]",I="[object Symbol]",A="[object WeakMap]",L="[object ArrayBuffer]",R="[object DataView]",z="[object Float32Array]",D="[object Float64Array]",N="[object Int8Array]",M="[object Int16Array]",q="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",U="[object Uint16Array]",W="[object Uint32Array]",V=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp($.source),J=RegExp(Y.source),X=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),oe=/^\s+/,re=/\s/,se=/\{(?:\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,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,xe=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Pe="\\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",Ee="['’]",Ie="["+ke+"]",Ae="["+Pe+"]",Le="["+je+"]",Re="\\d+",ze="["+Oe+"]",De="["+Se+"]",Ne="[^"+ke+Pe+Re+Oe+Se+Ce+"]",Me="\\ud83c[\\udffb-\\udfff]",qe="[^"+ke+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Ce+"]",We="\\u200d",Ve="(?:"+De+"|"+Ne+")",He="(?:"+Ue+"|"+Ne+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Le+"|"+Me+")"+"?",Ge="["+Te+"]?",Je=Ge+Ye+("(?:"+We+"(?:"+[qe,Fe,Be].join("|")+")"+Ge+Ye+")*"),Xe="(?:"+[ze,Fe,Be].join("|")+")"+Je,Ze="(?:"+[qe+Le+"?",Le,Fe,Be,Ie].join("|")+")",Qe=RegExp(Ee,"g"),en=RegExp(Le,"g"),nn=RegExp(Me+"(?="+Me+")|"+Ze+Je,"g"),tn=RegExp([Ue+"?"+De+"+"+Ke+"(?="+[Ae,Ue,"$"].join("|")+")",He+"+"+$e+"(?="+[Ae,Ue+Ve,"$"].join("|")+")",Ue+"?"+Ve+"+"+Ke,Ue+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Xe].join("|"),"g"),an=RegExp("["+We+ke+je+Te+"]"),on=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rn=["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"],sn=-1,cn={};cn[z]=cn[D]=cn[N]=cn[M]=cn[q]=cn[F]=cn[B]=cn[U]=cn[W]=!0,cn[g]=cn[x]=cn[L]=cn[b]=cn[R]=cn[y]=cn[w]=cn[_]=cn[j]=cn[O]=cn[S]=cn[T]=cn[P]=cn[E]=cn[A]=!1;var ln={};ln[g]=ln[x]=ln[L]=ln[R]=ln[b]=ln[y]=ln[z]=ln[D]=ln[N]=ln[M]=ln[q]=ln[j]=ln[O]=ln[S]=ln[T]=ln[P]=ln[E]=ln[I]=ln[F]=ln[B]=ln[U]=ln[W]=!0,ln[w]=ln[_]=ln[A]=!1;var pn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},un=parseFloat,dn=parseInt,mn="object"==typeof n&&n&&n.Object===Object&&n,fn="object"==typeof self&&self&&self.Object===Object&&self,hn=mn||fn||Function("return this")(),vn=t&&!t.nodeType&&t,gn=vn&&e&&!e.nodeType&&e,xn=gn&&gn.exports===vn,bn=xn&&mn.process,yn=function(){try{var e=gn&&gn.require&&gn.require("util").types;return e||bn&&bn.binding&&bn.binding("util")}catch(e){}}(),wn=yn&&yn.isArrayBuffer,_n=yn&&yn.isDate,kn=yn&&yn.isMap,jn=yn&&yn.isRegExp,On=yn&&yn.isSet,Sn=yn&&yn.isTypedArray;function Cn(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function Tn(e,n,t,i){for(var a=-1,o=null==e?0:e.length;++a<o;){var r=e[a];n(i,r,t(r),e)}return i}function Pn(e,n){for(var t=-1,i=null==e?0:e.length;++t<i&&!1!==n(e[t],t,e););return e}function En(e,n){for(var t=null==e?0:e.length;t--&&!1!==n(e[t],t,e););return e}function In(e,n){for(var t=-1,i=null==e?0:e.length;++t<i;)if(!n(e[t],t,e))return!1;return!0}function An(e,n){for(var t=-1,i=null==e?0:e.length,a=0,o=[];++t<i;){var r=e[t];n(r,t,e)&&(o[a++]=r)}return o}function Ln(e,n){return!!(null==e?0:e.length)&&Wn(e,n,0)>-1}function Rn(e,n,t){for(var i=-1,a=null==e?0:e.length;++i<a;)if(t(n,e[i]))return!0;return!1}function zn(e,n){for(var t=-1,i=null==e?0:e.length,a=Array(i);++t<i;)a[t]=n(e[t],t,e);return a}function Dn(e,n){for(var t=-1,i=n.length,a=e.length;++t<i;)e[a+t]=n[t];return e}function Nn(e,n,t,i){var a=-1,o=null==e?0:e.length;for(i&&o&&(t=e[++a]);++a<o;)t=n(t,e[a],a,e);return t}function Mn(e,n,t,i){var a=null==e?0:e.length;for(i&&a&&(t=e[--a]);a--;)t=n(t,e[a],a,e);return t}function qn(e,n){for(var t=-1,i=null==e?0:e.length;++t<i;)if(n(e[t],t,e))return!0;return!1}var Fn=$n("length");function Bn(e,n,t){var i;return t(e,(function(e,t,a){if(n(e,t,a))return i=t,!1})),i}function Un(e,n,t,i){for(var a=e.length,o=t+(i?1:-1);i?o--:++o<a;)if(n(e[o],o,e))return o;return-1}function Wn(e,n,t){return n==n?function(e,n,t){var i=t-1,a=e.length;for(;++i<a;)if(e[i]===n)return i;return-1}(e,n,t):Un(e,Hn,t)}function Vn(e,n,t,i){for(var a=t-1,o=e.length;++a<o;)if(i(e[a],n))return a;return-1}function Hn(e){return e!=e}function Kn(e,n){var t=null==e?0:e.length;return t?Jn(e,n)/t:f}function $n(e){return function(n){return null==n?i:n[e]}}function Yn(e){return function(n){return null==e?i:e[n]}}function Gn(e,n,t,i,a){return a(e,(function(e,a,o){t=i?(i=!1,e):n(t,e,a,o)})),t}function Jn(e,n){for(var t,a=-1,o=e.length;++a<o;){var r=n(e[a]);r!==i&&(t=t===i?r:t+r)}return t}function Xn(e,n){for(var t=-1,i=Array(e);++t<e;)i[t]=n(t);return i}function Zn(e){return e?e.slice(0,ht(e)+1).replace(oe,""):e}function Qn(e){return function(n){return e(n)}}function et(e,n){return zn(n,(function(n){return e[n]}))}function nt(e,n){return e.has(n)}function tt(e,n){for(var t=-1,i=e.length;++t<i&&Wn(n,e[t],0)>-1;);return t}function it(e,n){for(var t=e.length;t--&&Wn(n,e[t],0)>-1;);return t}var at=Yn({"À":"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"}),ot=Yn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rt(e){return"\\"+pn[e]}function st(e){return an.test(e)}function ct(e){var n=-1,t=Array(e.size);return e.forEach((function(e,i){t[++n]=[i,e]})),t}function lt(e,n){return function(t){return e(n(t))}}function pt(e,n){for(var t=-1,i=e.length,a=0,o=[];++t<i;){var s=e[t];s!==n&&s!==r||(e[t]=r,o[a++]=t)}return o}function ut(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}function dt(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=[e,e]})),t}function mt(e){return st(e)?function(e){var n=nn.lastIndex=0;for(;nn.test(e);)++n;return n}(e):Fn(e)}function ft(e){return st(e)?function(e){return e.match(nn)||[]}(e):function(e){return e.split("")}(e)}function ht(e){for(var n=e.length;n--&&re.test(e.charAt(n)););return n}var vt=Yn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gt=function e(n){var t=(n=null==n?hn:gt.defaults(hn.Object(),n,gt.pick(hn,rn))).Array,re=n.Date,ke=n.Error,je=n.Function,Oe=n.Math,Se=n.Object,Ce=n.RegExp,Te=n.String,Pe=n.TypeError,Ee=t.prototype,Ie=je.prototype,Ae=Se.prototype,Le=n["__core-js_shared__"],Re=Ie.toString,ze=Ae.hasOwnProperty,De=0,Ne=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Me=Ae.toString,qe=Re.call(Se),Fe=hn._,Be=Ce("^"+Re.call(ze).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=xn?n.Buffer:i,We=n.Symbol,Ve=n.Uint8Array,He=Ue?Ue.allocUnsafe:i,Ke=lt(Se.getPrototypeOf,Se),$e=Se.create,Ye=Ae.propertyIsEnumerable,Ge=Ee.splice,Je=We?We.isConcatSpreadable:i,Xe=We?We.iterator:i,Ze=We?We.toStringTag:i,nn=function(){try{var e=uo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),an=n.clearTimeout!==hn.clearTimeout&&n.clearTimeout,pn=re&&re.now!==hn.Date.now&&re.now,mn=n.setTimeout!==hn.setTimeout&&n.setTimeout,fn=Oe.ceil,vn=Oe.floor,gn=Se.getOwnPropertySymbols,bn=Ue?Ue.isBuffer:i,yn=n.isFinite,Fn=Ee.join,Yn=lt(Se.keys,Se),xt=Oe.max,bt=Oe.min,yt=re.now,wt=n.parseInt,_t=Oe.random,kt=Ee.reverse,jt=uo(n,"DataView"),Ot=uo(n,"Map"),St=uo(n,"Promise"),Ct=uo(n,"Set"),Tt=uo(n,"WeakMap"),Pt=uo(Se,"create"),Et=Tt&&new Tt,It={},At=Mo(jt),Lt=Mo(Ot),Rt=Mo(St),zt=Mo(Ct),Dt=Mo(Tt),Nt=We?We.prototype:i,Mt=Nt?Nt.valueOf:i,qt=Nt?Nt.toString:i;function Ft(e){if(ns(e)&&!Vr(e)&&!(e instanceof Vt)){if(e instanceof Wt)return e;if(ze.call(e,"__wrapped__"))return qo(e)}return new Wt(e)}var Bt=function(){function e(){}return function(n){if(!es(n))return{};if($e)return $e(n);e.prototype=n;var t=new e;return e.prototype=i,t}}();function Ut(){}function Wt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}function Vt(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Ht(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function Kt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function $t(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function Yt(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new $t;++n<t;)this.add(e[n])}function Gt(e){var n=this.__data__=new Kt(e);this.size=n.size}function Jt(e,n){var t=Vr(e),i=!t&&Wr(e),a=!t&&!i&&Yr(e),o=!t&&!i&&!a&&ls(e),r=t||i||a||o,s=r?Xn(e.length,Te):[],c=s.length;for(var l in e)!n&&!ze.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bo(l,c))||s.push(l);return s}function Xt(e){var n=e.length;return n?e[Yi(0,n-1)]:i}function Zt(e,n){return zo(Pa(e),si(n,0,e.length))}function Qt(e){return zo(Pa(e))}function ei(e,n,t){(t!==i&&!Fr(e[n],t)||t===i&&!(n in e))&&oi(e,n,t)}function ni(e,n,t){var a=e[n];ze.call(e,n)&&Fr(a,t)&&(t!==i||n in e)||oi(e,n,t)}function ti(e,n){for(var t=e.length;t--;)if(Fr(e[t][0],n))return t;return-1}function ii(e,n,t,i){return di(e,(function(e,a,o){n(i,e,t(e),o)})),i}function ai(e,n){return e&&Ea(n,Is(n),e)}function oi(e,n,t){"__proto__"==n&&nn?nn(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function ri(e,n){for(var a=-1,o=n.length,r=t(o),s=null==e;++a<o;)r[a]=s?i:Ss(e,n[a]);return r}function si(e,n,t){return e==e&&(t!==i&&(e=e<=t?e:t),n!==i&&(e=e>=n?e:n)),e}function ci(e,n,t,a,o,r){var s,c=1&n,l=2&n,p=4&n;if(t&&(s=o?t(e,a,o,r):t(e)),s!==i)return s;if(!es(e))return e;var u=Vr(e);if(u){if(s=function(e){var n=e.length,t=new e.constructor(n);n&&"string"==typeof e[0]&&ze.call(e,"index")&&(t.index=e.index,t.input=e.input);return t}(e),!c)return Pa(e,s)}else{var d=ho(e),m=d==_||d==k;if(Yr(e))return ka(e,c);if(d==S||d==g||m&&!o){if(s=l||m?{}:go(e),!c)return l?function(e,n){return Ea(e,fo(e),n)}(e,function(e,n){return e&&Ea(n,As(n),e)}(s,e)):function(e,n){return Ea(e,mo(e),n)}(e,ai(s,e))}else{if(!ln[d])return o?e:{};s=function(e,n,t){var i=e.constructor;switch(n){case L:return ja(e);case b:case y:return new i(+e);case R:return function(e,n){var t=n?ja(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,t);case z:case D:case N:case M:case q:case F:case B:case U:case W:return Oa(e,t);case j:return new i;case O:case E:return new i(e);case T:return function(e){var n=new e.constructor(e.source,fe.exec(e));return n.lastIndex=e.lastIndex,n}(e);case P:return new i;case I:return a=e,Mt?Se(Mt.call(a)):{}}var a}(e,d,c)}}r||(r=new Gt);var f=r.get(e);if(f)return f;r.set(e,s),rs(e)?e.forEach((function(i){s.add(ci(i,n,t,i,e,r))})):ts(e)&&e.forEach((function(i,a){s.set(a,ci(i,n,t,a,e,r))}));var h=u?i:(p?l?ao:io:l?As:Is)(e);return Pn(h||e,(function(i,a){h&&(i=e[a=i]),ni(s,a,ci(i,n,t,a,e,r))})),s}function li(e,n,t){var a=t.length;if(null==e)return!a;for(e=Se(e);a--;){var o=t[a],r=n[o],s=e[o];if(s===i&&!(o in e)||!r(s))return!1}return!0}function pi(e,n,t){if("function"!=typeof e)throw new Pe(a);return Io((function(){e.apply(i,t)}),n)}function ui(e,n,t,i){var a=-1,o=Ln,r=!0,s=e.length,c=[],l=n.length;if(!s)return c;t&&(n=zn(n,Qn(t))),i?(o=Rn,r=!1):n.length>=200&&(o=nt,r=!1,n=new Yt(n));e:for(;++a<s;){var p=e[a],u=null==t?p:t(p);if(p=i||0!==p?p:0,r&&u==u){for(var d=l;d--;)if(n[d]===u)continue e;c.push(p)}else o(n,u,i)||c.push(p)}return c}Ft.templateSettings={escape:X,evaluate:Z,interpolate:Q,variable:"",imports:{_:Ft}},Ft.prototype=Ut.prototype,Ft.prototype.constructor=Ft,Wt.prototype=Bt(Ut.prototype),Wt.prototype.constructor=Wt,Vt.prototype=Bt(Ut.prototype),Vt.prototype.constructor=Vt,Ht.prototype.clear=function(){this.__data__=Pt?Pt(null):{},this.size=0},Ht.prototype.delete=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n},Ht.prototype.get=function(e){var n=this.__data__;if(Pt){var t=n[e];return t===o?i:t}return ze.call(n,e)?n[e]:i},Ht.prototype.has=function(e){var n=this.__data__;return Pt?n[e]!==i:ze.call(n,e)},Ht.prototype.set=function(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Pt&&n===i?o:n,this},Kt.prototype.clear=function(){this.__data__=[],this.size=0},Kt.prototype.delete=function(e){var n=this.__data__,t=ti(n,e);return!(t<0)&&(t==n.length-1?n.pop():Ge.call(n,t,1),--this.size,!0)},Kt.prototype.get=function(e){var n=this.__data__,t=ti(n,e);return t<0?i:n[t][1]},Kt.prototype.has=function(e){return ti(this.__data__,e)>-1},Kt.prototype.set=function(e,n){var t=this.__data__,i=ti(t,e);return i<0?(++this.size,t.push([e,n])):t[i][1]=n,this},$t.prototype.clear=function(){this.size=0,this.__data__={hash:new Ht,map:new(Ot||Kt),string:new Ht}},$t.prototype.delete=function(e){var n=lo(this,e).delete(e);return this.size-=n?1:0,n},$t.prototype.get=function(e){return lo(this,e).get(e)},$t.prototype.has=function(e){return lo(this,e).has(e)},$t.prototype.set=function(e,n){var t=lo(this,e),i=t.size;return t.set(e,n),this.size+=t.size==i?0:1,this},Yt.prototype.add=Yt.prototype.push=function(e){return this.__data__.set(e,o),this},Yt.prototype.has=function(e){return this.__data__.has(e)},Gt.prototype.clear=function(){this.__data__=new Kt,this.size=0},Gt.prototype.delete=function(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t},Gt.prototype.get=function(e){return this.__data__.get(e)},Gt.prototype.has=function(e){return this.__data__.has(e)},Gt.prototype.set=function(e,n){var t=this.__data__;if(t instanceof Kt){var i=t.__data__;if(!Ot||i.length<199)return i.push([e,n]),this.size=++t.size,this;t=this.__data__=new $t(i)}return t.set(e,n),this.size=t.size,this};var di=La(yi),mi=La(wi,!0);function fi(e,n){var t=!0;return di(e,(function(e,i,a){return t=!!n(e,i,a)})),t}function hi(e,n,t){for(var a=-1,o=e.length;++a<o;){var r=e[a],s=n(r);if(null!=s&&(c===i?s==s&&!cs(s):t(s,c)))var c=s,l=r}return l}function vi(e,n){var t=[];return di(e,(function(e,i,a){n(e,i,a)&&t.push(e)})),t}function gi(e,n,t,i,a){var o=-1,r=e.length;for(t||(t=xo),a||(a=[]);++o<r;){var s=e[o];n>0&&t(s)?n>1?gi(s,n-1,t,i,a):Dn(a,s):i||(a[a.length]=s)}return a}var xi=Ra(),bi=Ra(!0);function yi(e,n){return e&&xi(e,n,Is)}function wi(e,n){return e&&bi(e,n,Is)}function _i(e,n){return An(n,(function(n){return Xr(e[n])}))}function ki(e,n){for(var t=0,a=(n=ba(n,e)).length;null!=e&&t<a;)e=e[No(n[t++])];return t&&t==a?e:i}function ji(e,n,t){var i=n(e);return Vr(e)?i:Dn(i,t(e))}function Oi(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in Se(e)?function(e){var n=ze.call(e,Ze),t=e[Ze];try{e[Ze]=i;var a=!0}catch(e){}var o=Me.call(e);a&&(n?e[Ze]=t:delete e[Ze]);return o}(e):function(e){return Me.call(e)}(e)}function Si(e,n){return e>n}function Ci(e,n){return null!=e&&ze.call(e,n)}function Ti(e,n){return null!=e&&n in Se(e)}function Pi(e,n,a){for(var o=a?Rn:Ln,r=e[0].length,s=e.length,c=s,l=t(s),p=1/0,u=[];c--;){var d=e[c];c&&n&&(d=zn(d,Qn(n))),p=bt(d.length,p),l[c]=!a&&(n||r>=120&&d.length>=120)?new Yt(c&&d):i}d=e[0];var m=-1,f=l[0];e:for(;++m<r&&u.length<p;){var h=d[m],v=n?n(h):h;if(h=a||0!==h?h:0,!(f?nt(f,v):o(u,v,a))){for(c=s;--c;){var g=l[c];if(!(g?nt(g,v):o(e[c],v,a)))continue e}f&&f.push(v),u.push(h)}}return u}function Ei(e,n,t){var a=null==(e=To(e,n=ba(n,e)))?e:e[No(Jo(n))];return null==a?i:Cn(a,e,t)}function Ii(e){return ns(e)&&Oi(e)==g}function Ai(e,n,t,a,o){return e===n||(null==e||null==n||!ns(e)&&!ns(n)?e!=e&&n!=n:function(e,n,t,a,o,r){var s=Vr(e),c=Vr(n),l=s?x:ho(e),p=c?x:ho(n),u=(l=l==g?S:l)==S,d=(p=p==g?S:p)==S,m=l==p;if(m&&Yr(e)){if(!Yr(n))return!1;s=!0,u=!1}if(m&&!u)return r||(r=new Gt),s||ls(e)?no(e,n,t,a,o,r):function(e,n,t,i,a,o,r){switch(t){case R:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case L:return!(e.byteLength!=n.byteLength||!o(new Ve(e),new Ve(n)));case b:case y:case O:return Fr(+e,+n);case w:return e.name==n.name&&e.message==n.message;case T:case E:return e==n+"";case j:var s=ct;case P:var c=1&i;if(s||(s=ut),e.size!=n.size&&!c)return!1;var l=r.get(e);if(l)return l==n;i|=2,r.set(e,n);var p=no(s(e),s(n),i,a,o,r);return r.delete(e),p;case I:if(Mt)return Mt.call(e)==Mt.call(n)}return!1}(e,n,l,t,a,o,r);if(!(1&t)){var f=u&&ze.call(e,"__wrapped__"),h=d&&ze.call(n,"__wrapped__");if(f||h){var v=f?e.value():e,_=h?n.value():n;return r||(r=new Gt),o(v,_,t,a,r)}}if(!m)return!1;return r||(r=new Gt),function(e,n,t,a,o,r){var s=1&t,c=io(e),l=c.length,p=io(n),u=p.length;if(l!=u&&!s)return!1;var d=l;for(;d--;){var m=c[d];if(!(s?m in n:ze.call(n,m)))return!1}var f=r.get(e),h=r.get(n);if(f&&h)return f==n&&h==e;var v=!0;r.set(e,n),r.set(n,e);var g=s;for(;++d<l;){var x=e[m=c[d]],b=n[m];if(a)var y=s?a(b,x,m,n,e,r):a(x,b,m,e,n,r);if(!(y===i?x===b||o(x,b,t,a,r):y)){v=!1;break}g||(g="constructor"==m)}if(v&&!g){var w=e.constructor,_=n.constructor;w==_||!("constructor"in e)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(v=!1)}return r.delete(e),r.delete(n),v}(e,n,t,a,o,r)}(e,n,t,a,Ai,o))}function Li(e,n,t,a){var o=t.length,r=o,s=!a;if(null==e)return!r;for(e=Se(e);o--;){var c=t[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<r;){var l=(c=t[o])[0],p=e[l],u=c[1];if(s&&c[2]){if(p===i&&!(l in e))return!1}else{var d=new Gt;if(a)var m=a(p,u,l,e,n,d);if(!(m===i?Ai(u,p,3,a,d):m))return!1}}return!0}function Ri(e){return!(!es(e)||(n=e,Ne&&Ne in n))&&(Xr(e)?Be:ge).test(Mo(e));var n}function zi(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?Vr(e)?Bi(e[0],e[1]):Fi(e):dc(e)}function Di(e){if(!jo(e))return Yn(e);var n=[];for(var t in Se(e))ze.call(e,t)&&"constructor"!=t&&n.push(t);return n}function Ni(e){if(!es(e))return function(e){var n=[];if(null!=e)for(var t in Se(e))n.push(t);return n}(e);var n=jo(e),t=[];for(var i in e)("constructor"!=i||!n&&ze.call(e,i))&&t.push(i);return t}function Mi(e,n){return e<n}function qi(e,n){var i=-1,a=Kr(e)?t(e.length):[];return di(e,(function(e,t,o){a[++i]=n(e,t,o)})),a}function Fi(e){var n=po(e);return 1==n.length&&n[0][2]?So(n[0][0],n[0][1]):function(t){return t===e||Li(t,e,n)}}function Bi(e,n){return wo(e)&&Oo(n)?So(No(e),n):function(t){var a=Ss(t,e);return a===i&&a===n?Cs(t,e):Ai(n,a,3)}}function Ui(e,n,t,a,o){e!==n&&xi(n,(function(r,s){if(o||(o=new Gt),es(r))!function(e,n,t,a,o,r,s){var c=Po(e,t),l=Po(n,t),p=s.get(l);if(p)return void ei(e,t,p);var u=r?r(c,l,t+"",e,n,s):i,d=u===i;if(d){var m=Vr(l),f=!m&&Yr(l),h=!m&&!f&&ls(l);u=l,m||f||h?Vr(c)?u=c:$r(c)?u=Pa(c):f?(d=!1,u=ka(l,!0)):h?(d=!1,u=Oa(l,!0)):u=[]:as(l)||Wr(l)?(u=c,Wr(c)?u=gs(c):es(c)&&!Xr(c)||(u=go(l))):d=!1}d&&(s.set(l,u),o(u,l,a,r,s),s.delete(l));ei(e,t,u)}(e,n,s,t,Ui,a,o);else{var c=a?a(Po(e,s),r,s+"",e,n,o):i;c===i&&(c=r),ei(e,s,c)}}),As)}function Wi(e,n){var t=e.length;if(t)return bo(n+=n<0?t:0,t)?e[n]:i}function Vi(e,n,t){n=n.length?zn(n,(function(e){return Vr(e)?function(n){return ki(n,1===e.length?e[0]:e)}:e})):[ic];var i=-1;n=zn(n,Qn(co()));var a=qi(e,(function(e,t,a){var o=zn(n,(function(n){return n(e)}));return{criteria:o,index:++i,value:e}}));return function(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}(a,(function(e,n){return function(e,n,t){var i=-1,a=e.criteria,o=n.criteria,r=a.length,s=t.length;for(;++i<r;){var c=Sa(a[i],o[i]);if(c)return i>=s?c:c*("desc"==t[i]?-1:1)}return e.index-n.index}(e,n,t)}))}function Hi(e,n,t){for(var i=-1,a=n.length,o={};++i<a;){var r=n[i],s=ki(e,r);t(s,r)&&Qi(o,ba(r,e),s)}return o}function Ki(e,n,t,i){var a=i?Vn:Wn,o=-1,r=n.length,s=e;for(e===n&&(n=Pa(n)),t&&(s=zn(e,Qn(t)));++o<r;)for(var c=0,l=n[o],p=t?t(l):l;(c=a(s,p,c,i))>-1;)s!==e&&Ge.call(s,c,1),Ge.call(e,c,1);return e}function $i(e,n){for(var t=e?n.length:0,i=t-1;t--;){var a=n[t];if(t==i||a!==o){var o=a;bo(a)?Ge.call(e,a,1):ua(e,a)}}return e}function Yi(e,n){return e+vn(_t()*(n-e+1))}function Gi(e,n){var t="";if(!e||n<1||n>m)return t;do{n%2&&(t+=e),(n=vn(n/2))&&(e+=e)}while(n);return t}function Ji(e,n){return Ao(Co(e,n,ic),e+"")}function Xi(e){return Xt(Fs(e))}function Zi(e,n){var t=Fs(e);return zo(t,si(n,0,t.length))}function Qi(e,n,t,a){if(!es(e))return e;for(var o=-1,r=(n=ba(n,e)).length,s=r-1,c=e;null!=c&&++o<r;){var l=No(n[o]),p=t;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var u=c[l];(p=a?a(u,l,c):i)===i&&(p=es(u)?u:bo(n[o+1])?[]:{})}ni(c,l,p),c=c[l]}return e}var ea=Et?function(e,n){return Et.set(e,n),e}:ic,na=nn?function(e,n){return nn(e,"toString",{configurable:!0,enumerable:!1,value:ec(n),writable:!0})}:ic;function ta(e){return zo(Fs(e))}function ia(e,n,i){var a=-1,o=e.length;n<0&&(n=-n>o?0:o+n),(i=i>o?o:i)<0&&(i+=o),o=n>i?0:i-n>>>0,n>>>=0;for(var r=t(o);++a<o;)r[a]=e[a+n];return r}function aa(e,n){var t;return di(e,(function(e,i,a){return!(t=n(e,i,a))})),!!t}function oa(e,n,t){var i=0,a=null==e?i:e.length;if("number"==typeof n&&n==n&&a<=2147483647){for(;i<a;){var o=i+a>>>1,r=e[o];null!==r&&!cs(r)&&(t?r<=n:r<n)?i=o+1:a=o}return a}return ra(e,n,ic,t)}function ra(e,n,t,a){var o=0,r=null==e?0:e.length;if(0===r)return 0;for(var s=(n=t(n))!=n,c=null===n,l=cs(n),p=n===i;o<r;){var u=vn((o+r)/2),d=t(e[u]),m=d!==i,f=null===d,h=d==d,v=cs(d);if(s)var g=a||h;else g=p?h&&(a||m):c?h&&m&&(a||!f):l?h&&m&&!f&&(a||!v):!f&&!v&&(a?d<=n:d<n);g?o=u+1:r=u}return bt(r,4294967294)}function sa(e,n){for(var t=-1,i=e.length,a=0,o=[];++t<i;){var r=e[t],s=n?n(r):r;if(!t||!Fr(s,c)){var c=s;o[a++]=0===r?0:r}}return o}function ca(e){return"number"==typeof e?e:cs(e)?f:+e}function la(e){if("string"==typeof e)return e;if(Vr(e))return zn(e,la)+"";if(cs(e))return qt?qt.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function pa(e,n,t){var i=-1,a=Ln,o=e.length,r=!0,s=[],c=s;if(t)r=!1,a=Rn;else if(o>=200){var l=n?null:Ga(e);if(l)return ut(l);r=!1,a=nt,c=new Yt}else c=n?[]:s;e:for(;++i<o;){var p=e[i],u=n?n(p):p;if(p=t||0!==p?p:0,r&&u==u){for(var d=c.length;d--;)if(c[d]===u)continue e;n&&c.push(u),s.push(p)}else a(c,u,t)||(c!==s&&c.push(u),s.push(p))}return s}function ua(e,n){return null==(e=To(e,n=ba(n,e)))||delete e[No(Jo(n))]}function da(e,n,t,i){return Qi(e,n,t(ki(e,n)),i)}function ma(e,n,t,i){for(var a=e.length,o=i?a:-1;(i?o--:++o<a)&&n(e[o],o,e););return t?ia(e,i?0:o,i?o+1:a):ia(e,i?o+1:0,i?a:o)}function fa(e,n){var t=e;return t instanceof Vt&&(t=t.value()),Nn(n,(function(e,n){return n.func.apply(n.thisArg,Dn([e],n.args))}),t)}function ha(e,n,i){var a=e.length;if(a<2)return a?pa(e[0]):[];for(var o=-1,r=t(a);++o<a;)for(var s=e[o],c=-1;++c<a;)c!=o&&(r[o]=ui(r[o]||s,e[c],n,i));return pa(gi(r,1),n,i)}function va(e,n,t){for(var a=-1,o=e.length,r=n.length,s={};++a<o;){var c=a<r?n[a]:i;t(s,e[a],c)}return s}function ga(e){return $r(e)?e:[]}function xa(e){return"function"==typeof e?e:ic}function ba(e,n){return Vr(e)?e:wo(e,n)?[e]:Do(xs(e))}var ya=Ji;function wa(e,n,t){var a=e.length;return t=t===i?a:t,!n&&t>=a?e:ia(e,n,t)}var _a=an||function(e){return hn.clearTimeout(e)};function ka(e,n){if(n)return e.slice();var t=e.length,i=He?He(t):new e.constructor(t);return e.copy(i),i}function ja(e){var n=new e.constructor(e.byteLength);return new Ve(n).set(new Ve(e)),n}function Oa(e,n){var t=n?ja(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Sa(e,n){if(e!==n){var t=e!==i,a=null===e,o=e==e,r=cs(e),s=n!==i,c=null===n,l=n==n,p=cs(n);if(!c&&!p&&!r&&e>n||r&&s&&l&&!c&&!p||a&&s&&l||!t&&l||!o)return 1;if(!a&&!r&&!p&&e<n||p&&t&&o&&!a&&!r||c&&t&&o||!s&&o||!l)return-1}return 0}function Ca(e,n,i,a){for(var o=-1,r=e.length,s=i.length,c=-1,l=n.length,p=xt(r-s,0),u=t(l+p),d=!a;++c<l;)u[c]=n[c];for(;++o<s;)(d||o<r)&&(u[i[o]]=e[o]);for(;p--;)u[c++]=e[o++];return u}function Ta(e,n,i,a){for(var o=-1,r=e.length,s=-1,c=i.length,l=-1,p=n.length,u=xt(r-c,0),d=t(u+p),m=!a;++o<u;)d[o]=e[o];for(var f=o;++l<p;)d[f+l]=n[l];for(;++s<c;)(m||o<r)&&(d[f+i[s]]=e[o++]);return d}function Pa(e,n){var i=-1,a=e.length;for(n||(n=t(a));++i<a;)n[i]=e[i];return n}function Ea(e,n,t,a){var o=!t;t||(t={});for(var r=-1,s=n.length;++r<s;){var c=n[r],l=a?a(t[c],e[c],c,t,e):i;l===i&&(l=e[c]),o?oi(t,c,l):ni(t,c,l)}return t}function Ia(e,n){return function(t,i){var a=Vr(t)?Tn:ii,o=n?n():{};return a(t,e,co(i,2),o)}}function Aa(e){return Ji((function(n,t){var a=-1,o=t.length,r=o>1?t[o-1]:i,s=o>2?t[2]:i;for(r=e.length>3&&"function"==typeof r?(o--,r):i,s&&yo(t[0],t[1],s)&&(r=o<3?i:r,o=1),n=Se(n);++a<o;){var c=t[a];c&&e(n,c,a,r)}return n}))}function La(e,n){return function(t,i){if(null==t)return t;if(!Kr(t))return e(t,i);for(var a=t.length,o=n?a:-1,r=Se(t);(n?o--:++o<a)&&!1!==i(r[o],o,r););return t}}function Ra(e){return function(n,t,i){for(var a=-1,o=Se(n),r=i(n),s=r.length;s--;){var c=r[e?s:++a];if(!1===t(o[c],c,o))break}return n}}function za(e){return function(n){var t=st(n=xs(n))?ft(n):i,a=t?t[0]:n.charAt(0),o=t?wa(t,1).join(""):n.slice(1);return a[e]()+o}}function Da(e){return function(n){return Nn(Xs(Ws(n).replace(Qe,"")),e,"")}}function Na(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=Bt(e.prototype),i=e.apply(t,n);return es(i)?i:t}}function Ma(e){return function(n,t,a){var o=Se(n);if(!Kr(n)){var r=co(t,3);n=Is(n),t=function(e){return r(o[e],e,o)}}var s=e(n,t,a);return s>-1?o[r?n[s]:s]:i}}function qa(e){return to((function(n){var t=n.length,o=t,r=Wt.prototype.thru;for(e&&n.reverse();o--;){var s=n[o];if("function"!=typeof s)throw new Pe(a);if(r&&!c&&"wrapper"==ro(s))var c=new Wt([],!0)}for(o=c?o:t;++o<t;){var l=ro(s=n[o]),p="wrapper"==l?oo(s):i;c=p&&_o(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?c[ro(p[0])].apply(c,p[3]):1==s.length&&_o(s)?c[l]():c.thru(s)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&Vr(i))return c.plant(i).value();for(var a=0,o=t?n[a].apply(this,e):i;++a<t;)o=n[a].call(this,o);return o}}))}function Fa(e,n,a,o,r,s,c,l,u,d){var m=n&p,f=1&n,h=2&n,v=24&n,g=512&n,x=h?i:Na(e);return function p(){for(var b=arguments.length,y=t(b),w=b;w--;)y[w]=arguments[w];if(v)var _=so(p),k=function(e,n){for(var t=e.length,i=0;t--;)e[t]===n&&++i;return i}(y,_);if(o&&(y=Ca(y,o,r,v)),s&&(y=Ta(y,s,c,v)),b-=k,v&&b<d){var j=pt(y,_);return $a(e,n,Fa,p.placeholder,a,y,j,l,u,d-b)}var O=f?a:this,S=h?O[e]:e;return b=y.length,l?y=function(e,n){var t=e.length,a=bt(n.length,t),o=Pa(e);for(;a--;){var r=n[a];e[a]=bo(r,t)?o[r]:i}return e}(y,l):g&&b>1&&y.reverse(),m&&u<b&&(y.length=u),this&&this!==hn&&this instanceof p&&(S=x||Na(S)),S.apply(O,y)}}function Ba(e,n){return function(t,i){return function(e,n,t,i){return yi(e,(function(e,a,o){n(i,t(e),a,o)})),i}(t,e,n(i),{})}}function Ua(e,n){return function(t,a){var o;if(t===i&&a===i)return n;if(t!==i&&(o=t),a!==i){if(o===i)return a;"string"==typeof t||"string"==typeof a?(t=la(t),a=la(a)):(t=ca(t),a=ca(a)),o=e(t,a)}return o}}function Wa(e){return to((function(n){return n=zn(n,Qn(co())),Ji((function(t){var i=this;return e(n,(function(e){return Cn(e,i,t)}))}))}))}function Va(e,n){var t=(n=n===i?" ":la(n)).length;if(t<2)return t?Gi(n,e):n;var a=Gi(n,fn(e/mt(n)));return st(n)?wa(ft(a),0,e).join(""):a.slice(0,e)}function Ha(e){return function(n,a,o){return o&&"number"!=typeof o&&yo(n,a,o)&&(a=o=i),n=ms(n),a===i?(a=n,n=0):a=ms(a),function(e,n,i,a){for(var o=-1,r=xt(fn((n-e)/(i||1)),0),s=t(r);r--;)s[a?r:++o]=e,e+=i;return s}(n,a,o=o===i?n<a?1:-1:ms(o),e)}}function Ka(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=vs(n),t=vs(t)),e(n,t)}}function $a(e,n,t,a,o,r,s,p,u,d){var m=8&n;n|=m?c:l,4&(n&=~(m?l:c))||(n&=-4);var f=[e,n,o,m?r:i,m?s:i,m?i:r,m?i:s,p,u,d],h=t.apply(i,f);return _o(e)&&Eo(h,f),h.placeholder=a,Lo(h,e,n)}function Ya(e){var n=Oe[e];return function(e,t){if(e=vs(e),(t=null==t?0:bt(fs(t),292))&&yn(e)){var i=(xs(e)+"e").split("e");return+((i=(xs(n(i[0]+"e"+(+i[1]+t)))+"e").split("e"))[0]+"e"+(+i[1]-t))}return n(e)}}var Ga=Ct&&1/ut(new Ct([,-0]))[1]==d?function(e){return new Ct(e)}:cc;function Ja(e){return function(n){var t=ho(n);return t==j?ct(n):t==P?dt(n):function(e,n){return zn(n,(function(n){return[n,e[n]]}))}(n,e(n))}}function Xa(e,n,o,d,m,f,h,v){var g=2&n;if(!g&&"function"!=typeof e)throw new Pe(a);var x=d?d.length:0;if(x||(n&=-97,d=m=i),h=h===i?h:xt(fs(h),0),v=v===i?v:fs(v),x-=m?m.length:0,n&l){var b=d,y=m;d=m=i}var w=g?i:oo(e),_=[e,n,o,d,m,b,y,f,h,v];if(w&&function(e,n){var t=e[1],i=n[1],a=t|i,o=a<131,s=i==p&&8==t||i==p&&t==u&&e[7].length<=n[8]||384==i&&n[7].length<=n[8]&&8==t;if(!o&&!s)return e;1&i&&(e[2]=n[2],a|=1&t?0:4);var c=n[3];if(c){var l=e[3];e[3]=l?Ca(l,c,n[4]):c,e[4]=l?pt(e[3],r):n[4]}(c=n[5])&&(l=e[5],e[5]=l?Ta(l,c,n[6]):c,e[6]=l?pt(e[5],r):n[6]);(c=n[7])&&(e[7]=c);i&p&&(e[8]=null==e[8]?n[8]:bt(e[8],n[8]));null==e[9]&&(e[9]=n[9]);e[0]=n[0],e[1]=a}(_,w),e=_[0],n=_[1],o=_[2],d=_[3],m=_[4],!(v=_[9]=_[9]===i?g?0:e.length:xt(_[9]-x,0))&&24&n&&(n&=-25),n&&1!=n)k=8==n||n==s?function(e,n,a){var o=Na(e);return function r(){for(var s=arguments.length,c=t(s),l=s,p=so(r);l--;)c[l]=arguments[l];var u=s<3&&c[0]!==p&&c[s-1]!==p?[]:pt(c,p);return(s-=u.length)<a?$a(e,n,Fa,r.placeholder,i,c,u,i,i,a-s):Cn(this&&this!==hn&&this instanceof r?o:e,this,c)}}(e,n,v):n!=c&&33!=n||m.length?Fa.apply(i,_):function(e,n,i,a){var o=1&n,r=Na(e);return function n(){for(var s=-1,c=arguments.length,l=-1,p=a.length,u=t(p+c),d=this&&this!==hn&&this instanceof n?r:e;++l<p;)u[l]=a[l];for(;c--;)u[l++]=arguments[++s];return Cn(d,o?i:this,u)}}(e,n,o,d);else var k=function(e,n,t){var i=1&n,a=Na(e);return function n(){return(this&&this!==hn&&this instanceof n?a:e).apply(i?t:this,arguments)}}(e,n,o);return Lo((w?ea:Eo)(k,_),e,n)}function Za(e,n,t,a){return e===i||Fr(e,Ae[t])&&!ze.call(a,t)?n:e}function Qa(e,n,t,a,o,r){return es(e)&&es(n)&&(r.set(n,e),Ui(e,n,i,Qa,r),r.delete(n)),e}function eo(e){return as(e)?i:e}function no(e,n,t,a,o,r){var s=1&t,c=e.length,l=n.length;if(c!=l&&!(s&&l>c))return!1;var p=r.get(e),u=r.get(n);if(p&&u)return p==n&&u==e;var d=-1,m=!0,f=2&t?new Yt:i;for(r.set(e,n),r.set(n,e);++d<c;){var h=e[d],v=n[d];if(a)var g=s?a(v,h,d,n,e,r):a(h,v,d,e,n,r);if(g!==i){if(g)continue;m=!1;break}if(f){if(!qn(n,(function(e,n){if(!nt(f,n)&&(h===e||o(h,e,t,a,r)))return f.push(n)}))){m=!1;break}}else if(h!==v&&!o(h,v,t,a,r)){m=!1;break}}return r.delete(e),r.delete(n),m}function to(e){return Ao(Co(e,i,Ho),e+"")}function io(e){return ji(e,Is,mo)}function ao(e){return ji(e,As,fo)}var oo=Et?function(e){return Et.get(e)}:cc;function ro(e){for(var n=e.name+"",t=It[n],i=ze.call(It,n)?t.length:0;i--;){var a=t[i],o=a.func;if(null==o||o==e)return a.name}return n}function so(e){return(ze.call(Ft,"placeholder")?Ft:e).placeholder}function co(){var e=Ft.iteratee||ac;return e=e===ac?zi:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,n){var t,i,a=e.__data__;return("string"==(i=typeof(t=n))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==t:null===t)?a["string"==typeof n?"string":"hash"]:a.map}function po(e){for(var n=Is(e),t=n.length;t--;){var i=n[t],a=e[i];n[t]=[i,a,Oo(a)]}return n}function uo(e,n){var t=function(e,n){return null==e?i:e[n]}(e,n);return Ri(t)?t:i}var mo=gn?function(e){return null==e?[]:(e=Se(e),An(gn(e),(function(n){return Ye.call(e,n)})))}:hc,fo=gn?function(e){for(var n=[];e;)Dn(n,mo(e)),e=Ke(e);return n}:hc,ho=Oi;function vo(e,n,t){for(var i=-1,a=(n=ba(n,e)).length,o=!1;++i<a;){var r=No(n[i]);if(!(o=null!=e&&t(e,r)))break;e=e[r]}return o||++i!=a?o:!!(a=null==e?0:e.length)&&Qr(a)&&bo(r,a)&&(Vr(e)||Wr(e))}function go(e){return"function"!=typeof e.constructor||jo(e)?{}:Bt(Ke(e))}function xo(e){return Vr(e)||Wr(e)||!!(Je&&e&&e[Je])}function bo(e,n){var t=typeof e;return!!(n=null==n?m:n)&&("number"==t||"symbol"!=t&&be.test(e))&&e>-1&&e%1==0&&e<n}function yo(e,n,t){if(!es(t))return!1;var i=typeof n;return!!("number"==i?Kr(t)&&bo(n,t.length):"string"==i&&n in t)&&Fr(t[n],e)}function wo(e,n){if(Vr(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!cs(e))||(ne.test(e)||!ee.test(e)||null!=n&&e in Se(n))}function _o(e){var n=ro(e),t=Ft[n];if("function"!=typeof t||!(n in Vt.prototype))return!1;if(e===t)return!0;var i=oo(t);return!!i&&e===i[0]}(jt&&ho(new jt(new ArrayBuffer(1)))!=R||Ot&&ho(new Ot)!=j||St&&ho(St.resolve())!=C||Ct&&ho(new Ct)!=P||Tt&&ho(new Tt)!=A)&&(ho=function(e){var n=Oi(e),t=n==S?e.constructor:i,a=t?Mo(t):"";if(a)switch(a){case At:return R;case Lt:return j;case Rt:return C;case zt:return P;case Dt:return A}return n});var ko=Le?Xr:vc;function jo(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||Ae)}function Oo(e){return e==e&&!es(e)}function So(e,n){return function(t){return null!=t&&(t[e]===n&&(n!==i||e in Se(t)))}}function Co(e,n,a){return n=xt(n===i?e.length-1:n,0),function(){for(var i=arguments,o=-1,r=xt(i.length-n,0),s=t(r);++o<r;)s[o]=i[n+o];o=-1;for(var c=t(n+1);++o<n;)c[o]=i[o];return c[n]=a(s),Cn(e,this,c)}}function To(e,n){return n.length<2?e:ki(e,ia(n,0,-1))}function Po(e,n){if(("constructor"!==n||"function"!=typeof e[n])&&"__proto__"!=n)return e[n]}var Eo=Ro(ea),Io=mn||function(e,n){return hn.setTimeout(e,n)},Ao=Ro(na);function Lo(e,n,t){var i=n+"";return Ao(e,function(e,n){var t=n.length;if(!t)return e;var i=t-1;return n[i]=(t>1?"& ":"")+n[i],n=n.join(t>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+n+"] */\n")}(i,function(e,n){return Pn(v,(function(t){var i="_."+t[0];n&t[1]&&!Ln(e,i)&&e.push(i)})),e.sort()}(function(e){var n=e.match(ce);return n?n[1].split(le):[]}(i),t)))}function Ro(e){var n=0,t=0;return function(){var a=yt(),o=16-(a-t);if(t=a,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(i,arguments)}}function zo(e,n){var t=-1,a=e.length,o=a-1;for(n=n===i?a:n;++t<n;){var r=Yi(t,o),s=e[r];e[r]=e[t],e[t]=s}return e.length=n,e}var Do=function(e){var n=Rr(e,(function(e){return 500===t.size&&t.clear(),e})),t=n.cache;return n}((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(te,(function(e,t,i,a){n.push(i?a.replace(de,"$1"):t||e)})),n}));function No(e){if("string"==typeof e||cs(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function Mo(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function qo(e){if(e instanceof Vt)return e.clone();var n=new Wt(e.__wrapped__,e.__chain__);return n.__actions__=Pa(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}var Fo=Ji((function(e,n){return $r(e)?ui(e,gi(n,1,$r,!0)):[]})),Bo=Ji((function(e,n){var t=Jo(n);return $r(t)&&(t=i),$r(e)?ui(e,gi(n,1,$r,!0),co(t,2)):[]})),Uo=Ji((function(e,n){var t=Jo(n);return $r(t)&&(t=i),$r(e)?ui(e,gi(n,1,$r,!0),i,t):[]}));function Wo(e,n,t){var i=null==e?0:e.length;if(!i)return-1;var a=null==t?0:fs(t);return a<0&&(a=xt(i+a,0)),Un(e,co(n,3),a)}function Vo(e,n,t){var a=null==e?0:e.length;if(!a)return-1;var o=a-1;return t!==i&&(o=fs(t),o=t<0?xt(a+o,0):bt(o,a-1)),Un(e,co(n,3),o,!0)}function Ho(e){return(null==e?0:e.length)?gi(e,1):[]}function Ko(e){return e&&e.length?e[0]:i}var $o=Ji((function(e){var n=zn(e,ga);return n.length&&n[0]===e[0]?Pi(n):[]})),Yo=Ji((function(e){var n=Jo(e),t=zn(e,ga);return n===Jo(t)?n=i:t.pop(),t.length&&t[0]===e[0]?Pi(t,co(n,2)):[]})),Go=Ji((function(e){var n=Jo(e),t=zn(e,ga);return(n="function"==typeof n?n:i)&&t.pop(),t.length&&t[0]===e[0]?Pi(t,i,n):[]}));function Jo(e){var n=null==e?0:e.length;return n?e[n-1]:i}var Xo=Ji(Zo);function Zo(e,n){return e&&e.length&&n&&n.length?Ki(e,n):e}var Qo=to((function(e,n){var t=null==e?0:e.length,i=ri(e,n);return $i(e,zn(n,(function(e){return bo(e,t)?+e:e})).sort(Sa)),i}));function er(e){return null==e?e:kt.call(e)}var nr=Ji((function(e){return pa(gi(e,1,$r,!0))})),tr=Ji((function(e){var n=Jo(e);return $r(n)&&(n=i),pa(gi(e,1,$r,!0),co(n,2))})),ir=Ji((function(e){var n=Jo(e);return n="function"==typeof n?n:i,pa(gi(e,1,$r,!0),i,n)}));function ar(e){if(!e||!e.length)return[];var n=0;return e=An(e,(function(e){if($r(e))return n=xt(e.length,n),!0})),Xn(n,(function(n){return zn(e,$n(n))}))}function or(e,n){if(!e||!e.length)return[];var t=ar(e);return null==n?t:zn(t,(function(e){return Cn(n,i,e)}))}var rr=Ji((function(e,n){return $r(e)?ui(e,n):[]})),sr=Ji((function(e){return ha(An(e,$r))})),cr=Ji((function(e){var n=Jo(e);return $r(n)&&(n=i),ha(An(e,$r),co(n,2))})),lr=Ji((function(e){var n=Jo(e);return n="function"==typeof n?n:i,ha(An(e,$r),i,n)})),pr=Ji(ar);var ur=Ji((function(e){var n=e.length,t=n>1?e[n-1]:i;return t="function"==typeof t?(e.pop(),t):i,or(e,t)}));function dr(e){var n=Ft(e);return n.__chain__=!0,n}function mr(e,n){return n(e)}var fr=to((function(e){var n=e.length,t=n?e[0]:0,a=this.__wrapped__,o=function(n){return ri(n,e)};return!(n>1||this.__actions__.length)&&a instanceof Vt&&bo(t)?((a=a.slice(t,+t+(n?1:0))).__actions__.push({func:mr,args:[o],thisArg:i}),new Wt(a,this.__chain__).thru((function(e){return n&&!e.length&&e.push(i),e}))):this.thru(o)}));var hr=Ia((function(e,n,t){ze.call(e,t)?++e[t]:oi(e,t,1)}));var vr=Ma(Wo),gr=Ma(Vo);function xr(e,n){return(Vr(e)?Pn:di)(e,co(n,3))}function br(e,n){return(Vr(e)?En:mi)(e,co(n,3))}var yr=Ia((function(e,n,t){ze.call(e,t)?e[t].push(n):oi(e,t,[n])}));var wr=Ji((function(e,n,i){var a=-1,o="function"==typeof n,r=Kr(e)?t(e.length):[];return di(e,(function(e){r[++a]=o?Cn(n,e,i):Ei(e,n,i)})),r})),_r=Ia((function(e,n,t){oi(e,t,n)}));function kr(e,n){return(Vr(e)?zn:qi)(e,co(n,3))}var jr=Ia((function(e,n,t){e[t?0:1].push(n)}),(function(){return[[],[]]}));var Or=Ji((function(e,n){if(null==e)return[];var t=n.length;return t>1&&yo(e,n[0],n[1])?n=[]:t>2&&yo(n[0],n[1],n[2])&&(n=[n[0]]),Vi(e,gi(n,1),[])})),Sr=pn||function(){return hn.Date.now()};function Cr(e,n,t){return n=t?i:n,n=e&&null==n?e.length:n,Xa(e,p,i,i,i,i,n)}function Tr(e,n){var t;if("function"!=typeof n)throw new Pe(a);return e=fs(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=i),t}}var Pr=Ji((function(e,n,t){var i=1;if(t.length){var a=pt(t,so(Pr));i|=c}return Xa(e,i,n,t,a)})),Er=Ji((function(e,n,t){var i=3;if(t.length){var a=pt(t,so(Er));i|=c}return Xa(n,i,e,t,a)}));function Ir(e,n,t){var o,r,s,c,l,p,u=0,d=!1,m=!1,f=!0;if("function"!=typeof e)throw new Pe(a);function h(n){var t=o,a=r;return o=r=i,u=n,c=e.apply(a,t)}function v(e){var t=e-p;return p===i||t>=n||t<0||m&&e-u>=s}function g(){var e=Sr();if(v(e))return x(e);l=Io(g,function(e){var t=n-(e-p);return m?bt(t,s-(e-u)):t}(e))}function x(e){return l=i,f&&o?h(e):(o=r=i,c)}function b(){var e=Sr(),t=v(e);if(o=arguments,r=this,p=e,t){if(l===i)return function(e){return u=e,l=Io(g,n),d?h(e):c}(p);if(m)return _a(l),l=Io(g,n),h(p)}return l===i&&(l=Io(g,n)),c}return n=vs(n)||0,es(t)&&(d=!!t.leading,s=(m="maxWait"in t)?xt(vs(t.maxWait)||0,n):s,f="trailing"in t?!!t.trailing:f),b.cancel=function(){l!==i&&_a(l),u=0,o=p=r=l=i},b.flush=function(){return l===i?c:x(Sr())},b}var Ar=Ji((function(e,n){return pi(e,1,n)})),Lr=Ji((function(e,n,t){return pi(e,vs(n)||0,t)}));function Rr(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Pe(a);var t=function(){var i=arguments,a=n?n.apply(this,i):i[0],o=t.cache;if(o.has(a))return o.get(a);var r=e.apply(this,i);return t.cache=o.set(a,r)||o,r};return t.cache=new(Rr.Cache||$t),t}function zr(e){if("function"!=typeof e)throw new Pe(a);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}Rr.Cache=$t;var Dr=ya((function(e,n){var t=(n=1==n.length&&Vr(n[0])?zn(n[0],Qn(co())):zn(gi(n,1),Qn(co()))).length;return Ji((function(i){for(var a=-1,o=bt(i.length,t);++a<o;)i[a]=n[a].call(this,i[a]);return Cn(e,this,i)}))})),Nr=Ji((function(e,n){var t=pt(n,so(Nr));return Xa(e,c,i,n,t)})),Mr=Ji((function(e,n){var t=pt(n,so(Mr));return Xa(e,l,i,n,t)})),qr=to((function(e,n){return Xa(e,u,i,i,i,n)}));function Fr(e,n){return e===n||e!=e&&n!=n}var Br=Ka(Si),Ur=Ka((function(e,n){return e>=n})),Wr=Ii(function(){return arguments}())?Ii:function(e){return ns(e)&&ze.call(e,"callee")&&!Ye.call(e,"callee")},Vr=t.isArray,Hr=wn?Qn(wn):function(e){return ns(e)&&Oi(e)==L};function Kr(e){return null!=e&&Qr(e.length)&&!Xr(e)}function $r(e){return ns(e)&&Kr(e)}var Yr=bn||vc,Gr=_n?Qn(_n):function(e){return ns(e)&&Oi(e)==y};function Jr(e){if(!ns(e))return!1;var n=Oi(e);return n==w||"[object DOMException]"==n||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Xr(e){if(!es(e))return!1;var n=Oi(e);return n==_||n==k||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Zr(e){return"number"==typeof e&&e==fs(e)}function Qr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function es(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function ns(e){return null!=e&&"object"==typeof e}var ts=kn?Qn(kn):function(e){return ns(e)&&ho(e)==j};function is(e){return"number"==typeof e||ns(e)&&Oi(e)==O}function as(e){if(!ns(e)||Oi(e)!=S)return!1;var n=Ke(e);if(null===n)return!0;var t=ze.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&Re.call(t)==qe}var os=jn?Qn(jn):function(e){return ns(e)&&Oi(e)==T};var rs=On?Qn(On):function(e){return ns(e)&&ho(e)==P};function ss(e){return"string"==typeof e||!Vr(e)&&ns(e)&&Oi(e)==E}function cs(e){return"symbol"==typeof e||ns(e)&&Oi(e)==I}var ls=Sn?Qn(Sn):function(e){return ns(e)&&Qr(e.length)&&!!cn[Oi(e)]};var ps=Ka(Mi),us=Ka((function(e,n){return e<=n}));function ds(e){if(!e)return[];if(Kr(e))return ss(e)?ft(e):Pa(e);if(Xe&&e[Xe])return function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t}(e[Xe]());var n=ho(e);return(n==j?ct:n==P?ut:Fs)(e)}function ms(e){return e?(e=vs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var n=ms(e),t=n%1;return n==n?t?n-t:n:0}function hs(e){return e?si(fs(e),0,h):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return f;if(es(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=es(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=Zn(e);var t=ve.test(e);return t||xe.test(e)?dn(e.slice(2),t?2:8):he.test(e)?f:+e}function gs(e){return Ea(e,As(e))}function xs(e){return null==e?"":la(e)}var bs=Aa((function(e,n){if(jo(n)||Kr(n))Ea(n,Is(n),e);else for(var t in n)ze.call(n,t)&&ni(e,t,n[t])})),ys=Aa((function(e,n){Ea(n,As(n),e)})),ws=Aa((function(e,n,t,i){Ea(n,As(n),e,i)})),_s=Aa((function(e,n,t,i){Ea(n,Is(n),e,i)})),ks=to(ri);var js=Ji((function(e,n){e=Se(e);var t=-1,a=n.length,o=a>2?n[2]:i;for(o&&yo(n[0],n[1],o)&&(a=1);++t<a;)for(var r=n[t],s=As(r),c=-1,l=s.length;++c<l;){var p=s[c],u=e[p];(u===i||Fr(u,Ae[p])&&!ze.call(e,p))&&(e[p]=r[p])}return e})),Os=Ji((function(e){return e.push(i,Qa),Cn(Rs,i,e)}));function Ss(e,n,t){var a=null==e?i:ki(e,n);return a===i?t:a}function Cs(e,n){return null!=e&&vo(e,n,Ti)}var Ts=Ba((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Me.call(n)),e[n]=t}),ec(ic)),Ps=Ba((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Me.call(n)),ze.call(e,n)?e[n].push(t):e[n]=[t]}),co),Es=Ji(Ei);function Is(e){return Kr(e)?Jt(e):Di(e)}function As(e){return Kr(e)?Jt(e,!0):Ni(e)}var Ls=Aa((function(e,n,t){Ui(e,n,t)})),Rs=Aa((function(e,n,t,i){Ui(e,n,t,i)})),zs=to((function(e,n){var t={};if(null==e)return t;var i=!1;n=zn(n,(function(n){return n=ba(n,e),i||(i=n.length>1),n})),Ea(e,ao(e),t),i&&(t=ci(t,7,eo));for(var a=n.length;a--;)ua(t,n[a]);return t}));var Ds=to((function(e,n){return null==e?{}:function(e,n){return Hi(e,n,(function(n,t){return Cs(e,t)}))}(e,n)}));function Ns(e,n){if(null==e)return{};var t=zn(ao(e),(function(e){return[e]}));return n=co(n),Hi(e,t,(function(e,t){return n(e,t[0])}))}var Ms=Ja(Is),qs=Ja(As);function Fs(e){return null==e?[]:et(e,Is(e))}var Bs=Da((function(e,n,t){return n=n.toLowerCase(),e+(t?Us(n):n)}));function Us(e){return Js(xs(e).toLowerCase())}function Ws(e){return(e=xs(e))&&e.replace(ye,at).replace(en,"")}var Vs=Da((function(e,n,t){return e+(t?"-":"")+n.toLowerCase()})),Hs=Da((function(e,n,t){return e+(t?" ":"")+n.toLowerCase()})),Ks=za("toLowerCase");var $s=Da((function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}));var Ys=Da((function(e,n,t){return e+(t?" ":"")+Js(n)}));var Gs=Da((function(e,n,t){return e+(t?" ":"")+n.toUpperCase()})),Js=za("toUpperCase");function Xs(e,n,t){return e=xs(e),(n=t?i:n)===i?function(e){return on.test(e)}(e)?function(e){return e.match(tn)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(n)||[]}var Zs=Ji((function(e,n){try{return Cn(e,i,n)}catch(e){return Jr(e)?e:new ke(e)}})),Qs=to((function(e,n){return Pn(n,(function(n){n=No(n),oi(e,n,Pr(e[n],e))})),e}));function ec(e){return function(){return e}}var nc=qa(),tc=qa(!0);function ic(e){return e}function ac(e){return zi("function"==typeof e?e:ci(e,1))}var oc=Ji((function(e,n){return function(t){return Ei(t,e,n)}})),rc=Ji((function(e,n){return function(t){return Ei(e,t,n)}}));function sc(e,n,t){var i=Is(n),a=_i(n,i);null!=t||es(n)&&(a.length||!i.length)||(t=n,n=e,e=this,a=_i(n,Is(n)));var o=!(es(t)&&"chain"in t&&!t.chain),r=Xr(e);return Pn(a,(function(t){var i=n[t];e[t]=i,r&&(e.prototype[t]=function(){var n=this.__chain__;if(o||n){var t=e(this.__wrapped__);return(t.__actions__=Pa(this.__actions__)).push({func:i,args:arguments,thisArg:e}),t.__chain__=n,t}return i.apply(e,Dn([this.value()],arguments))})})),e}function cc(){}var lc=Wa(zn),pc=Wa(In),uc=Wa(qn);function dc(e){return wo(e)?$n(No(e)):function(e){return function(n){return ki(n,e)}}(e)}var mc=Ha(),fc=Ha(!0);function hc(){return[]}function vc(){return!1}var gc=Ua((function(e,n){return e+n}),0),xc=Ya("ceil"),bc=Ua((function(e,n){return e/n}),1),yc=Ya("floor");var wc,_c=Ua((function(e,n){return e*n}),1),kc=Ya("round"),jc=Ua((function(e,n){return e-n}),0);return Ft.after=function(e,n){if("function"!=typeof n)throw new Pe(a);return e=fs(e),function(){if(--e<1)return n.apply(this,arguments)}},Ft.ary=Cr,Ft.assign=bs,Ft.assignIn=ys,Ft.assignInWith=ws,Ft.assignWith=_s,Ft.at=ks,Ft.before=Tr,Ft.bind=Pr,Ft.bindAll=Qs,Ft.bindKey=Er,Ft.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Vr(e)?e:[e]},Ft.chain=dr,Ft.chunk=function(e,n,a){n=(a?yo(e,n,a):n===i)?1:xt(fs(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];for(var r=0,s=0,c=t(fn(o/n));r<o;)c[s++]=ia(e,r,r+=n);return c},Ft.compact=function(e){for(var n=-1,t=null==e?0:e.length,i=0,a=[];++n<t;){var o=e[n];o&&(a[i++]=o)}return a},Ft.concat=function(){var e=arguments.length;if(!e)return[];for(var n=t(e-1),i=arguments[0],a=e;a--;)n[a-1]=arguments[a];return Dn(Vr(i)?Pa(i):[i],gi(n,1))},Ft.cond=function(e){var n=null==e?0:e.length,t=co();return e=n?zn(e,(function(e){if("function"!=typeof e[1])throw new Pe(a);return[t(e[0]),e[1]]})):[],Ji((function(t){for(var i=-1;++i<n;){var a=e[i];if(Cn(a[0],this,t))return Cn(a[1],this,t)}}))},Ft.conforms=function(e){return function(e){var n=Is(e);return function(t){return li(t,e,n)}}(ci(e,1))},Ft.constant=ec,Ft.countBy=hr,Ft.create=function(e,n){var t=Bt(e);return null==n?t:ai(t,n)},Ft.curry=function e(n,t,a){var o=Xa(n,8,i,i,i,i,i,t=a?i:t);return o.placeholder=e.placeholder,o},Ft.curryRight=function e(n,t,a){var o=Xa(n,s,i,i,i,i,i,t=a?i:t);return o.placeholder=e.placeholder,o},Ft.debounce=Ir,Ft.defaults=js,Ft.defaultsDeep=Os,Ft.defer=Ar,Ft.delay=Lr,Ft.difference=Fo,Ft.differenceBy=Bo,Ft.differenceWith=Uo,Ft.drop=function(e,n,t){var a=null==e?0:e.length;return a?ia(e,(n=t||n===i?1:fs(n))<0?0:n,a):[]},Ft.dropRight=function(e,n,t){var a=null==e?0:e.length;return a?ia(e,0,(n=a-(n=t||n===i?1:fs(n)))<0?0:n):[]},Ft.dropRightWhile=function(e,n){return e&&e.length?ma(e,co(n,3),!0,!0):[]},Ft.dropWhile=function(e,n){return e&&e.length?ma(e,co(n,3),!0):[]},Ft.fill=function(e,n,t,a){var o=null==e?0:e.length;return o?(t&&"number"!=typeof t&&yo(e,n,t)&&(t=0,a=o),function(e,n,t,a){var o=e.length;for((t=fs(t))<0&&(t=-t>o?0:o+t),(a=a===i||a>o?o:fs(a))<0&&(a+=o),a=t>a?0:hs(a);t<a;)e[t++]=n;return e}(e,n,t,a)):[]},Ft.filter=function(e,n){return(Vr(e)?An:vi)(e,co(n,3))},Ft.flatMap=function(e,n){return gi(kr(e,n),1)},Ft.flatMapDeep=function(e,n){return gi(kr(e,n),d)},Ft.flatMapDepth=function(e,n,t){return t=t===i?1:fs(t),gi(kr(e,n),t)},Ft.flatten=Ho,Ft.flattenDeep=function(e){return(null==e?0:e.length)?gi(e,d):[]},Ft.flattenDepth=function(e,n){return(null==e?0:e.length)?gi(e,n=n===i?1:fs(n)):[]},Ft.flip=function(e){return Xa(e,512)},Ft.flow=nc,Ft.flowRight=tc,Ft.fromPairs=function(e){for(var n=-1,t=null==e?0:e.length,i={};++n<t;){var a=e[n];i[a[0]]=a[1]}return i},Ft.functions=function(e){return null==e?[]:_i(e,Is(e))},Ft.functionsIn=function(e){return null==e?[]:_i(e,As(e))},Ft.groupBy=yr,Ft.initial=function(e){return(null==e?0:e.length)?ia(e,0,-1):[]},Ft.intersection=$o,Ft.intersectionBy=Yo,Ft.intersectionWith=Go,Ft.invert=Ts,Ft.invertBy=Ps,Ft.invokeMap=wr,Ft.iteratee=ac,Ft.keyBy=_r,Ft.keys=Is,Ft.keysIn=As,Ft.map=kr,Ft.mapKeys=function(e,n){var t={};return n=co(n,3),yi(e,(function(e,i,a){oi(t,n(e,i,a),e)})),t},Ft.mapValues=function(e,n){var t={};return n=co(n,3),yi(e,(function(e,i,a){oi(t,i,n(e,i,a))})),t},Ft.matches=function(e){return Fi(ci(e,1))},Ft.matchesProperty=function(e,n){return Bi(e,ci(n,1))},Ft.memoize=Rr,Ft.merge=Ls,Ft.mergeWith=Rs,Ft.method=oc,Ft.methodOf=rc,Ft.mixin=sc,Ft.negate=zr,Ft.nthArg=function(e){return e=fs(e),Ji((function(n){return Wi(n,e)}))},Ft.omit=zs,Ft.omitBy=function(e,n){return Ns(e,zr(co(n)))},Ft.once=function(e){return Tr(2,e)},Ft.orderBy=function(e,n,t,a){return null==e?[]:(Vr(n)||(n=null==n?[]:[n]),Vr(t=a?i:t)||(t=null==t?[]:[t]),Vi(e,n,t))},Ft.over=lc,Ft.overArgs=Dr,Ft.overEvery=pc,Ft.overSome=uc,Ft.partial=Nr,Ft.partialRight=Mr,Ft.partition=jr,Ft.pick=Ds,Ft.pickBy=Ns,Ft.property=dc,Ft.propertyOf=function(e){return function(n){return null==e?i:ki(e,n)}},Ft.pull=Xo,Ft.pullAll=Zo,Ft.pullAllBy=function(e,n,t){return e&&e.length&&n&&n.length?Ki(e,n,co(t,2)):e},Ft.pullAllWith=function(e,n,t){return e&&e.length&&n&&n.length?Ki(e,n,i,t):e},Ft.pullAt=Qo,Ft.range=mc,Ft.rangeRight=fc,Ft.rearg=qr,Ft.reject=function(e,n){return(Vr(e)?An:vi)(e,zr(co(n,3)))},Ft.remove=function(e,n){var t=[];if(!e||!e.length)return t;var i=-1,a=[],o=e.length;for(n=co(n,3);++i<o;){var r=e[i];n(r,i,e)&&(t.push(r),a.push(i))}return $i(e,a),t},Ft.rest=function(e,n){if("function"!=typeof e)throw new Pe(a);return Ji(e,n=n===i?n:fs(n))},Ft.reverse=er,Ft.sampleSize=function(e,n,t){return n=(t?yo(e,n,t):n===i)?1:fs(n),(Vr(e)?Zt:Zi)(e,n)},Ft.set=function(e,n,t){return null==e?e:Qi(e,n,t)},Ft.setWith=function(e,n,t,a){return a="function"==typeof a?a:i,null==e?e:Qi(e,n,t,a)},Ft.shuffle=function(e){return(Vr(e)?Qt:ta)(e)},Ft.slice=function(e,n,t){var a=null==e?0:e.length;return a?(t&&"number"!=typeof t&&yo(e,n,t)?(n=0,t=a):(n=null==n?0:fs(n),t=t===i?a:fs(t)),ia(e,n,t)):[]},Ft.sortBy=Or,Ft.sortedUniq=function(e){return e&&e.length?sa(e):[]},Ft.sortedUniqBy=function(e,n){return e&&e.length?sa(e,co(n,2)):[]},Ft.split=function(e,n,t){return t&&"number"!=typeof t&&yo(e,n,t)&&(n=t=i),(t=t===i?h:t>>>0)?(e=xs(e))&&("string"==typeof n||null!=n&&!os(n))&&!(n=la(n))&&st(e)?wa(ft(e),0,t):e.split(n,t):[]},Ft.spread=function(e,n){if("function"!=typeof e)throw new Pe(a);return n=null==n?0:xt(fs(n),0),Ji((function(t){var i=t[n],a=wa(t,0,n);return i&&Dn(a,i),Cn(e,this,a)}))},Ft.tail=function(e){var n=null==e?0:e.length;return n?ia(e,1,n):[]},Ft.take=function(e,n,t){return e&&e.length?ia(e,0,(n=t||n===i?1:fs(n))<0?0:n):[]},Ft.takeRight=function(e,n,t){var a=null==e?0:e.length;return a?ia(e,(n=a-(n=t||n===i?1:fs(n)))<0?0:n,a):[]},Ft.takeRightWhile=function(e,n){return e&&e.length?ma(e,co(n,3),!1,!0):[]},Ft.takeWhile=function(e,n){return e&&e.length?ma(e,co(n,3)):[]},Ft.tap=function(e,n){return n(e),e},Ft.throttle=function(e,n,t){var i=!0,o=!0;if("function"!=typeof e)throw new Pe(a);return es(t)&&(i="leading"in t?!!t.leading:i,o="trailing"in t?!!t.trailing:o),Ir(e,n,{leading:i,maxWait:n,trailing:o})},Ft.thru=mr,Ft.toArray=ds,Ft.toPairs=Ms,Ft.toPairsIn=qs,Ft.toPath=function(e){return Vr(e)?zn(e,No):cs(e)?[e]:Pa(Do(xs(e)))},Ft.toPlainObject=gs,Ft.transform=function(e,n,t){var i=Vr(e),a=i||Yr(e)||ls(e);if(n=co(n,4),null==t){var o=e&&e.constructor;t=a?i?new o:[]:es(e)&&Xr(o)?Bt(Ke(e)):{}}return(a?Pn:yi)(e,(function(e,i,a){return n(t,e,i,a)})),t},Ft.unary=function(e){return Cr(e,1)},Ft.union=nr,Ft.unionBy=tr,Ft.unionWith=ir,Ft.uniq=function(e){return e&&e.length?pa(e):[]},Ft.uniqBy=function(e,n){return e&&e.length?pa(e,co(n,2)):[]},Ft.uniqWith=function(e,n){return n="function"==typeof n?n:i,e&&e.length?pa(e,i,n):[]},Ft.unset=function(e,n){return null==e||ua(e,n)},Ft.unzip=ar,Ft.unzipWith=or,Ft.update=function(e,n,t){return null==e?e:da(e,n,xa(t))},Ft.updateWith=function(e,n,t,a){return a="function"==typeof a?a:i,null==e?e:da(e,n,xa(t),a)},Ft.values=Fs,Ft.valuesIn=function(e){return null==e?[]:et(e,As(e))},Ft.without=rr,Ft.words=Xs,Ft.wrap=function(e,n){return Nr(xa(n),e)},Ft.xor=sr,Ft.xorBy=cr,Ft.xorWith=lr,Ft.zip=pr,Ft.zipObject=function(e,n){return va(e||[],n||[],ni)},Ft.zipObjectDeep=function(e,n){return va(e||[],n||[],Qi)},Ft.zipWith=ur,Ft.entries=Ms,Ft.entriesIn=qs,Ft.extend=ys,Ft.extendWith=ws,sc(Ft,Ft),Ft.add=gc,Ft.attempt=Zs,Ft.camelCase=Bs,Ft.capitalize=Us,Ft.ceil=xc,Ft.clamp=function(e,n,t){return t===i&&(t=n,n=i),t!==i&&(t=(t=vs(t))==t?t:0),n!==i&&(n=(n=vs(n))==n?n:0),si(vs(e),n,t)},Ft.clone=function(e){return ci(e,4)},Ft.cloneDeep=function(e){return ci(e,5)},Ft.cloneDeepWith=function(e,n){return ci(e,5,n="function"==typeof n?n:i)},Ft.cloneWith=function(e,n){return ci(e,4,n="function"==typeof n?n:i)},Ft.conformsTo=function(e,n){return null==n||li(e,n,Is(n))},Ft.deburr=Ws,Ft.defaultTo=function(e,n){return null==e||e!=e?n:e},Ft.divide=bc,Ft.endsWith=function(e,n,t){e=xs(e),n=la(n);var a=e.length,o=t=t===i?a:si(fs(t),0,a);return(t-=n.length)>=0&&e.slice(t,o)==n},Ft.eq=Fr,Ft.escape=function(e){return(e=xs(e))&&J.test(e)?e.replace(Y,ot):e},Ft.escapeRegExp=function(e){return(e=xs(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},Ft.every=function(e,n,t){var a=Vr(e)?In:fi;return t&&yo(e,n,t)&&(n=i),a(e,co(n,3))},Ft.find=vr,Ft.findIndex=Wo,Ft.findKey=function(e,n){return Bn(e,co(n,3),yi)},Ft.findLast=gr,Ft.findLastIndex=Vo,Ft.findLastKey=function(e,n){return Bn(e,co(n,3),wi)},Ft.floor=yc,Ft.forEach=xr,Ft.forEachRight=br,Ft.forIn=function(e,n){return null==e?e:xi(e,co(n,3),As)},Ft.forInRight=function(e,n){return null==e?e:bi(e,co(n,3),As)},Ft.forOwn=function(e,n){return e&&yi(e,co(n,3))},Ft.forOwnRight=function(e,n){return e&&wi(e,co(n,3))},Ft.get=Ss,Ft.gt=Br,Ft.gte=Ur,Ft.has=function(e,n){return null!=e&&vo(e,n,Ci)},Ft.hasIn=Cs,Ft.head=Ko,Ft.identity=ic,Ft.includes=function(e,n,t,i){e=Kr(e)?e:Fs(e),t=t&&!i?fs(t):0;var a=e.length;return t<0&&(t=xt(a+t,0)),ss(e)?t<=a&&e.indexOf(n,t)>-1:!!a&&Wn(e,n,t)>-1},Ft.indexOf=function(e,n,t){var i=null==e?0:e.length;if(!i)return-1;var a=null==t?0:fs(t);return a<0&&(a=xt(i+a,0)),Wn(e,n,a)},Ft.inRange=function(e,n,t){return n=ms(n),t===i?(t=n,n=0):t=ms(t),function(e,n,t){return e>=bt(n,t)&&e<xt(n,t)}(e=vs(e),n,t)},Ft.invoke=Es,Ft.isArguments=Wr,Ft.isArray=Vr,Ft.isArrayBuffer=Hr,Ft.isArrayLike=Kr,Ft.isArrayLikeObject=$r,Ft.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Oi(e)==b},Ft.isBuffer=Yr,Ft.isDate=Gr,Ft.isElement=function(e){return ns(e)&&1===e.nodeType&&!as(e)},Ft.isEmpty=function(e){if(null==e)return!0;if(Kr(e)&&(Vr(e)||"string"==typeof e||"function"==typeof e.splice||Yr(e)||ls(e)||Wr(e)))return!e.length;var n=ho(e);if(n==j||n==P)return!e.size;if(jo(e))return!Di(e).length;for(var t in e)if(ze.call(e,t))return!1;return!0},Ft.isEqual=function(e,n){return Ai(e,n)},Ft.isEqualWith=function(e,n,t){var a=(t="function"==typeof t?t:i)?t(e,n):i;return a===i?Ai(e,n,i,t):!!a},Ft.isError=Jr,Ft.isFinite=function(e){return"number"==typeof e&&yn(e)},Ft.isFunction=Xr,Ft.isInteger=Zr,Ft.isLength=Qr,Ft.isMap=ts,Ft.isMatch=function(e,n){return e===n||Li(e,n,po(n))},Ft.isMatchWith=function(e,n,t){return t="function"==typeof t?t:i,Li(e,n,po(n),t)},Ft.isNaN=function(e){return is(e)&&e!=+e},Ft.isNative=function(e){if(ko(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ri(e)},Ft.isNil=function(e){return null==e},Ft.isNull=function(e){return null===e},Ft.isNumber=is,Ft.isObject=es,Ft.isObjectLike=ns,Ft.isPlainObject=as,Ft.isRegExp=os,Ft.isSafeInteger=function(e){return Zr(e)&&e>=-9007199254740991&&e<=m},Ft.isSet=rs,Ft.isString=ss,Ft.isSymbol=cs,Ft.isTypedArray=ls,Ft.isUndefined=function(e){return e===i},Ft.isWeakMap=function(e){return ns(e)&&ho(e)==A},Ft.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Oi(e)},Ft.join=function(e,n){return null==e?"":Fn.call(e,n)},Ft.kebabCase=Vs,Ft.last=Jo,Ft.lastIndexOf=function(e,n,t){var a=null==e?0:e.length;if(!a)return-1;var o=a;return t!==i&&(o=(o=fs(t))<0?xt(a+o,0):bt(o,a-1)),n==n?function(e,n,t){for(var i=t+1;i--;)if(e[i]===n)return i;return i}(e,n,o):Un(e,Hn,o,!0)},Ft.lowerCase=Hs,Ft.lowerFirst=Ks,Ft.lt=ps,Ft.lte=us,Ft.max=function(e){return e&&e.length?hi(e,ic,Si):i},Ft.maxBy=function(e,n){return e&&e.length?hi(e,co(n,2),Si):i},Ft.mean=function(e){return Kn(e,ic)},Ft.meanBy=function(e,n){return Kn(e,co(n,2))},Ft.min=function(e){return e&&e.length?hi(e,ic,Mi):i},Ft.minBy=function(e,n){return e&&e.length?hi(e,co(n,2),Mi):i},Ft.stubArray=hc,Ft.stubFalse=vc,Ft.stubObject=function(){return{}},Ft.stubString=function(){return""},Ft.stubTrue=function(){return!0},Ft.multiply=_c,Ft.nth=function(e,n){return e&&e.length?Wi(e,fs(n)):i},Ft.noConflict=function(){return hn._===this&&(hn._=Fe),this},Ft.noop=cc,Ft.now=Sr,Ft.pad=function(e,n,t){e=xs(e);var i=(n=fs(n))?mt(e):0;if(!n||i>=n)return e;var a=(n-i)/2;return Va(vn(a),t)+e+Va(fn(a),t)},Ft.padEnd=function(e,n,t){e=xs(e);var i=(n=fs(n))?mt(e):0;return n&&i<n?e+Va(n-i,t):e},Ft.padStart=function(e,n,t){e=xs(e);var i=(n=fs(n))?mt(e):0;return n&&i<n?Va(n-i,t)+e:e},Ft.parseInt=function(e,n,t){return t||null==n?n=0:n&&(n=+n),wt(xs(e).replace(oe,""),n||0)},Ft.random=function(e,n,t){if(t&&"boolean"!=typeof t&&yo(e,n,t)&&(n=t=i),t===i&&("boolean"==typeof n?(t=n,n=i):"boolean"==typeof e&&(t=e,e=i)),e===i&&n===i?(e=0,n=1):(e=ms(e),n===i?(n=e,e=0):n=ms(n)),e>n){var a=e;e=n,n=a}if(t||e%1||n%1){var o=_t();return bt(e+o*(n-e+un("1e-"+((o+"").length-1))),n)}return Yi(e,n)},Ft.reduce=function(e,n,t){var i=Vr(e)?Nn:Gn,a=arguments.length<3;return i(e,co(n,4),t,a,di)},Ft.reduceRight=function(e,n,t){var i=Vr(e)?Mn:Gn,a=arguments.length<3;return i(e,co(n,4),t,a,mi)},Ft.repeat=function(e,n,t){return n=(t?yo(e,n,t):n===i)?1:fs(n),Gi(xs(e),n)},Ft.replace=function(){var e=arguments,n=xs(e[0]);return e.length<3?n:n.replace(e[1],e[2])},Ft.result=function(e,n,t){var a=-1,o=(n=ba(n,e)).length;for(o||(o=1,e=i);++a<o;){var r=null==e?i:e[No(n[a])];r===i&&(a=o,r=t),e=Xr(r)?r.call(e):r}return e},Ft.round=kc,Ft.runInContext=e,Ft.sample=function(e){return(Vr(e)?Xt:Xi)(e)},Ft.size=function(e){if(null==e)return 0;if(Kr(e))return ss(e)?mt(e):e.length;var n=ho(e);return n==j||n==P?e.size:Di(e).length},Ft.snakeCase=$s,Ft.some=function(e,n,t){var a=Vr(e)?qn:aa;return t&&yo(e,n,t)&&(n=i),a(e,co(n,3))},Ft.sortedIndex=function(e,n){return oa(e,n)},Ft.sortedIndexBy=function(e,n,t){return ra(e,n,co(t,2))},Ft.sortedIndexOf=function(e,n){var t=null==e?0:e.length;if(t){var i=oa(e,n);if(i<t&&Fr(e[i],n))return i}return-1},Ft.sortedLastIndex=function(e,n){return oa(e,n,!0)},Ft.sortedLastIndexBy=function(e,n,t){return ra(e,n,co(t,2),!0)},Ft.sortedLastIndexOf=function(e,n){if(null==e?0:e.length){var t=oa(e,n,!0)-1;if(Fr(e[t],n))return t}return-1},Ft.startCase=Ys,Ft.startsWith=function(e,n,t){return e=xs(e),t=null==t?0:si(fs(t),0,e.length),n=la(n),e.slice(t,t+n.length)==n},Ft.subtract=jc,Ft.sum=function(e){return e&&e.length?Jn(e,ic):0},Ft.sumBy=function(e,n){return e&&e.length?Jn(e,co(n,2)):0},Ft.template=function(e,n,t){var a=Ft.templateSettings;t&&yo(e,n,t)&&(n=i),e=xs(e),n=ws({},n,a,Za);var o,r,s=ws({},n.imports,a.imports,Za),c=Is(s),l=et(s,c),p=0,u=n.interpolate||we,d="__p += '",m=Ce((n.escape||we).source+"|"+u.source+"|"+(u===Q?me:we).source+"|"+(n.evaluate||we).source+"|$","g"),f="//# sourceURL="+(ze.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+"\n";e.replace(m,(function(n,t,i,a,s,c){return i||(i=a),d+=e.slice(p,c).replace(_e,rt),t&&(o=!0,d+="' +\n__e("+t+") +\n'"),s&&(r=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=c+n.length,n})),d+="';\n";var h=ze.call(n,"variable")&&n.variable;if(h){if(ue.test(h))throw new ke("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(r?d.replace(V,""):d).replace(H,"$1").replace(K,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Zs((function(){return je(c,f+"return "+d).apply(i,l)}));if(v.source=d,Jr(v))throw v;return v},Ft.times=function(e,n){if((e=fs(e))<1||e>m)return[];var t=h,i=bt(e,h);n=co(n),e-=h;for(var a=Xn(i,n);++t<e;)n(t);return a},Ft.toFinite=ms,Ft.toInteger=fs,Ft.toLength=hs,Ft.toLower=function(e){return xs(e).toLowerCase()},Ft.toNumber=vs,Ft.toSafeInteger=function(e){return e?si(fs(e),-9007199254740991,m):0===e?e:0},Ft.toString=xs,Ft.toUpper=function(e){return xs(e).toUpperCase()},Ft.trim=function(e,n,t){if((e=xs(e))&&(t||n===i))return Zn(e);if(!e||!(n=la(n)))return e;var a=ft(e),o=ft(n);return wa(a,tt(a,o),it(a,o)+1).join("")},Ft.trimEnd=function(e,n,t){if((e=xs(e))&&(t||n===i))return e.slice(0,ht(e)+1);if(!e||!(n=la(n)))return e;var a=ft(e);return wa(a,0,it(a,ft(n))+1).join("")},Ft.trimStart=function(e,n,t){if((e=xs(e))&&(t||n===i))return e.replace(oe,"");if(!e||!(n=la(n)))return e;var a=ft(e);return wa(a,tt(a,ft(n))).join("")},Ft.truncate=function(e,n){var t=30,a="...";if(es(n)){var o="separator"in n?n.separator:o;t="length"in n?fs(n.length):t,a="omission"in n?la(n.omission):a}var r=(e=xs(e)).length;if(st(e)){var s=ft(e);r=s.length}if(t>=r)return e;var c=t-mt(a);if(c<1)return a;var l=s?wa(s,0,c).join(""):e.slice(0,c);if(o===i)return l+a;if(s&&(c+=l.length-c),os(o)){if(e.slice(c).search(o)){var p,u=l;for(o.global||(o=Ce(o.source,xs(fe.exec(o))+"g")),o.lastIndex=0;p=o.exec(u);)var d=p.index;l=l.slice(0,d===i?c:d)}}else if(e.indexOf(la(o),c)!=c){var m=l.lastIndexOf(o);m>-1&&(l=l.slice(0,m))}return l+a},Ft.unescape=function(e){return(e=xs(e))&&G.test(e)?e.replace($,vt):e},Ft.uniqueId=function(e){var n=++De;return xs(e)+n},Ft.upperCase=Gs,Ft.upperFirst=Js,Ft.each=xr,Ft.eachRight=br,Ft.first=Ko,sc(Ft,(wc={},yi(Ft,(function(e,n){ze.call(Ft.prototype,n)||(wc[n]=e)})),wc),{chain:!1}),Ft.VERSION="4.17.21",Pn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ft[e].placeholder=Ft})),Pn(["drop","take"],(function(e,n){Vt.prototype[e]=function(t){t=t===i?1:xt(fs(t),0);var a=this.__filtered__&&!n?new Vt(this):this.clone();return a.__filtered__?a.__takeCount__=bt(t,a.__takeCount__):a.__views__.push({size:bt(t,h),type:e+(a.__dir__<0?"Right":"")}),a},Vt.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}})),Pn(["filter","map","takeWhile"],(function(e,n){var t=n+1,i=1==t||3==t;Vt.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:co(e,3),type:t}),n.__filtered__=n.__filtered__||i,n}})),Pn(["head","last"],(function(e,n){var t="take"+(n?"Right":"");Vt.prototype[e]=function(){return this[t](1).value()[0]}})),Pn(["initial","tail"],(function(e,n){var t="drop"+(n?"":"Right");Vt.prototype[e]=function(){return this.__filtered__?new Vt(this):this[t](1)}})),Vt.prototype.compact=function(){return this.filter(ic)},Vt.prototype.find=function(e){return this.filter(e).head()},Vt.prototype.findLast=function(e){return this.reverse().find(e)},Vt.prototype.invokeMap=Ji((function(e,n){return"function"==typeof e?new Vt(this):this.map((function(t){return Ei(t,e,n)}))})),Vt.prototype.reject=function(e){return this.filter(zr(co(e)))},Vt.prototype.slice=function(e,n){e=fs(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Vt(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==i&&(t=(n=fs(n))<0?t.dropRight(-n):t.take(n-e)),t)},Vt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vt.prototype.toArray=function(){return this.take(h)},yi(Vt.prototype,(function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),o=Ft[a?"take"+("last"==n?"Right":""):n],r=a||/^find/.test(n);o&&(Ft.prototype[n]=function(){var n=this.__wrapped__,s=a?[1]:arguments,c=n instanceof Vt,l=s[0],p=c||Vr(n),u=function(e){var n=o.apply(Ft,Dn([e],s));return a&&d?n[0]:n};p&&t&&"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){n=h?n:new Vt(this);var v=e.apply(n,s);return v.__actions__.push({func:mr,args:[u],thisArg:i}),new Wt(v,d)}return f&&h?e.apply(this,s):(v=this.thru(u),f?a?v.value()[0]:v.value():v)})})),Pn(["pop","push","shift","sort","splice","unshift"],(function(e){var n=Ee[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Ft.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var a=this.value();return n.apply(Vr(a)?a:[],e)}return this[t]((function(t){return n.apply(Vr(t)?t:[],e)}))}})),yi(Vt.prototype,(function(e,n){var t=Ft[n];if(t){var i=t.name+"";ze.call(It,i)||(It[i]=[]),It[i].push({name:n,func:t})}})),It[Fa(i,2).name]=[{name:"wrapper",func:i}],Vt.prototype.clone=function(){var e=new Vt(this.__wrapped__);return e.__actions__=Pa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pa(this.__views__),e},Vt.prototype.reverse=function(){if(this.__filtered__){var e=new Vt(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vt.prototype.value=function(){var e=this.__wrapped__.value(),n=this.__dir__,t=Vr(e),i=n<0,a=t?e.length:0,o=function(e,n,t){var i=-1,a=t.length;for(;++i<a;){var o=t[i],r=o.size;switch(o.type){case"drop":e+=r;break;case"dropRight":n-=r;break;case"take":n=bt(n,e+r);break;case"takeRight":e=xt(e,n-r)}}return{start:e,end:n}}(0,a,this.__views__),r=o.start,s=o.end,c=s-r,l=i?s:r-1,p=this.__iteratees__,u=p.length,d=0,m=bt(c,this.__takeCount__);if(!t||!i&&a==c&&m==c)return fa(e,this.__actions__);var f=[];e:for(;c--&&d<m;){for(var h=-1,v=e[l+=n];++h<u;){var g=p[h],x=g.iteratee,b=g.type,y=x(v);if(2==b)v=y;else if(!y){if(1==b)continue e;break e}}f[d++]=v}return f},Ft.prototype.at=fr,Ft.prototype.chain=function(){return dr(this)},Ft.prototype.commit=function(){return new Wt(this.value(),this.__chain__)},Ft.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Ft.prototype.plant=function(e){for(var n,t=this;t instanceof Ut;){var a=qo(t);a.__index__=0,a.__values__=i,n?o.__wrapped__=a:n=a;var o=a;t=t.__wrapped__}return o.__wrapped__=e,n},Ft.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vt){var n=e;return this.__actions__.length&&(n=new Vt(this)),(n=n.reverse()).__actions__.push({func:mr,args:[er],thisArg:i}),new Wt(n,this.__chain__)}return this.thru(er)},Ft.prototype.toJSON=Ft.prototype.valueOf=Ft.prototype.value=function(){return fa(this.__wrapped__,this.__actions__)},Ft.prototype.first=Ft.prototype.head,Xe&&(Ft.prototype[Xe]=function(){return this}),Ft}();gn?((gn.exports=gt)._=gt,vn._=gt):hn._=gt}).call(n)}(Mc,Mc.exports);var qc=Mc.exports,Fc={},Bc=function(e,n,t,i,a){var o,r;if(void 0===i)i=0;else if((i|=0)<0||i>=e.length)throw new RangeError("invalid lower bound");if(void 0===a)a=e.length-1;else if((a|=0)<i||a>=e.length)throw new RangeError("invalid upper bound");for(;i<=a;)if((r=+t(e[o=i+(a-i>>>1)],n,o,e))<0)i=o+1;else{if(!(r>0))return o;a=o-1}return~i};!function(e){var t=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.findClosest=e.normal=e.fisherInformation=e.itemResponseFunction=void 0;const i=t(Bc);e.itemResponseFunction=(e,n)=>n.c+(n.d-n.c)/(1+Math.exp(-n.a*(e-n.b)));e.fisherInformation=(n,t)=>{const i=(0,e.itemResponseFunction)(n,t),a=1-i;return Math.pow(t.a,2)*(a/i)*(Math.pow(i-t.c,2)/Math.pow(1-t.c,2))};e.normal=(e=0,n=1,t=-4,i=4,a=.1)=>{const o=[];for(let s=t;s<=i;s+=a)o.push([s,(r=s,1/(Math.sqrt(2*Math.PI)*n)*Math.exp(-Math.pow(r-e,2)/(2*Math.pow(n,2))))]);var r;return o};e.findClosest=(e,n)=>{if(n<=e[0].difficulty)return 0;if(n>=e[e.length-1].difficulty)return e.length-1;const t=(0,i.default)(e,n,((e,n)=>e.difficulty-n));if(t>=0)return t;{const i=-2-t,a=-1-t;return Math.abs(e[i].difficulty-n)<Math.abs(e[a].difficulty-n)?i:a}}}(Fc);var Uc={exports:{}};!function(e,n,t){function i(e){var n=this,t=function(){var e=4022871197,n=function(n){n=String(n);for(var t=0;t<n.length;t++){var i=.02519603282416938*(e+=n.charCodeAt(t));i-=e=i>>>0,e=(i*=e)>>>0,e+=4294967296*(i-=e)}return 2.3283064365386963e-10*(e>>>0)};return n}();n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=t(" "),n.s1=t(" "),n.s2=t(" "),n.s0-=t(e),n.s0<0&&(n.s0+=1),n.s1-=t(e),n.s1<0&&(n.s1+=1),n.s2-=t(e),n.s2<0&&(n.s2+=1),t=null}function a(e,n){return n.c=e.c,n.s0=e.s0,n.s1=e.s1,n.s2=e.s2,n}function o(e,n){var t=new i(e),o=n&&n.state,r=t.next;return r.int32=function(){return 4294967296*t.next()|0},r.double=function(){return r()+11102230246251565e-32*(2097152*r()|0)},r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.alea=o}(0,Uc,!1);var Wc=Uc.exports,Vc={exports:{}};!function(e,n,t){function i(e){var n=this,t="";n.x=0,n.y=0,n.z=0,n.w=0,n.next=function(){var e=n.x^n.x<<11;return n.x=n.y,n.y=n.z,n.z=n.w,n.w^=n.w>>>19^e^e>>>8},e===(0|e)?n.x=e:t+=e;for(var i=0;i<t.length+64;i++)n.x^=0|t.charCodeAt(i),n.next()}function a(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n}function o(e,n){var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xor128=o}(0,Vc,!1);var Hc=Vc.exports,Kc={exports:{}};!function(e,n,t){function i(e){var n=this,t="";n.next=function(){var e=n.x^n.x>>>2;return n.x=n.y,n.y=n.z,n.z=n.w,n.w=n.v,(n.d=n.d+362437|0)+(n.v=n.v^n.v<<4^e^e<<1)|0},n.x=0,n.y=0,n.z=0,n.w=0,n.v=0,e===(0|e)?n.x=e:t+=e;for(var i=0;i<t.length+64;i++)n.x^=0|t.charCodeAt(i),i==t.length&&(n.d=n.x<<10^n.x>>>4),n.next()}function a(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n.v=e.v,n.d=e.d,n}function o(e,n){var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xorwow=o}(0,Kc,!1);var $c=Kc.exports,Yc={exports:{}};!function(e,n,t){function i(e){var n=this;n.next=function(){var e,t,i=n.x,a=n.i;return e=i[a],t=(e^=e>>>7)^e<<24,t^=(e=i[a+1&7])^e>>>10,t^=(e=i[a+3&7])^e>>>3,t^=(e=i[a+4&7])^e<<7,e=i[a+7&7],t^=(e^=e<<13)^e<<9,i[a]=t,n.i=a+1&7,t},function(e,n){var t,i=[];if(n===(0|n))i[0]=n;else for(n=""+n,t=0;t<n.length;++t)i[7&t]=i[7&t]<<15^n.charCodeAt(t)+i[t+1&7]<<13;for(;i.length<8;)i.push(0);for(t=0;t<8&&0===i[t];++t);for(8==t?i[7]=-1:i[t],e.x=i,e.i=0,t=256;t>0;--t)e.next()}(n,e)}function a(e,n){return n.x=e.x.slice(),n.i=e.i,n}function o(e,n){null==e&&(e=+new Date);var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&(o.x&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xorshift7=o}(0,Yc,!1);var Gc=Yc.exports,Jc={exports:{}};!function(e,n,t){function i(e){var n=this;n.next=function(){var e,t,i=n.w,a=n.X,o=n.i;return n.w=i=i+1640531527|0,t=a[o+34&127],e=a[o=o+1&127],t^=t<<13,e^=e<<17,t^=t>>>15,e^=e>>>12,t=a[o]=t^e,n.i=o,t+(i^i>>>16)|0},function(e,n){var t,i,a,o,r,s=[],c=128;for(n===(0|n)?(i=n,n=null):(n+="\0",i=0,c=Math.max(c,n.length)),a=0,o=-32;o<c;++o)n&&(i^=n.charCodeAt((o+32)%n.length)),0===o&&(r=i),i^=i<<10,i^=i>>>15,i^=i<<4,i^=i>>>13,o>=0&&(r=r+1640531527|0,a=0==(t=s[127&o]^=i+r)?a+1:0);for(a>=128&&(s[127&(n&&n.length||0)]=-1),a=127,o=512;o>0;--o)i=s[a+34&127],t=s[a=a+1&127],i^=i<<13,t^=t<<17,i^=i>>>15,t^=t>>>12,s[a]=i^t;e.w=r,e.X=s,e.i=a}(n,e)}function a(e,n){return n.i=e.i,n.w=e.w,n.X=e.X.slice(),n}function o(e,n){null==e&&(e=+new Date);var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&(o.X&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xor4096=o}(0,Jc,!1);var Xc=Jc.exports,Zc={exports:{}};!function(e,n,t){function i(e){var n=this,t="";n.next=function(){var e=n.b,t=n.c,i=n.d,a=n.a;return e=e<<25^e>>>7^t,t=t-i|0,i=i<<24^i>>>8^a,a=a-e|0,n.b=e=e<<20^e>>>12^t,n.c=t=t-i|0,n.d=i<<16^t>>>16^a,n.a=a-e|0},n.a=0,n.b=0,n.c=-1640531527,n.d=1367130551,e===Math.floor(e)?(n.a=e/4294967296|0,n.b=0|e):t+=e;for(var i=0;i<t.length+20;i++)n.b^=0|t.charCodeAt(i),n.next()}function a(e,n){return n.a=e.a,n.b=e.b,n.c=e.c,n.d=e.d,n}function o(e,n){var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.tychei=o}(0,Zc,!1);var Qc=Zc.exports,el={exports:{}};!function(e){!function(n,t,i){var a,o=256,r="random",s=i.pow(o,6),c=i.pow(2,52),l=2*c,p=o-1;function u(e,p,u){var g=[],x=h(f((p=1==p?{entropy:!0}:p||{}).entropy?[e,v(t)]:null==e?function(){try{var e;return a&&(e=a.randomBytes)?e=e(o):(e=new Uint8Array(o),(n.crypto||n.msCrypto).getRandomValues(e)),v(e)}catch(e){var i=n.navigator,r=i&&i.plugins;return[+new Date,n,r,n.screen,v(t)]}}():e,3),g),b=new d(g),y=function(){for(var e=b.g(6),n=s,t=0;e<c;)e=(e+t)*o,n*=o,t=b.g(1);for(;e>=l;)e/=2,n/=2,t>>>=1;return(e+t)/n};return y.int32=function(){return 0|b.g(4)},y.quick=function(){return b.g(4)/4294967296},y.double=y,h(v(b.S),t),(p.pass||u||function(e,n,t,a){return a&&(a.S&&m(a,b),e.state=function(){return m(b,{})}),t?(i[r]=e,n):e})(y,x,"global"in p?p.global:this==i,p.state)}function d(e){var n,t=e.length,i=this,a=0,r=i.i=i.j=0,s=i.S=[];for(t||(e=[t++]);a<o;)s[a]=a++;for(a=0;a<o;a++)s[a]=s[r=p&r+e[a%t]+(n=s[a])],s[r]=n;(i.g=function(e){for(var n,t=0,a=i.i,r=i.j,s=i.S;e--;)n=s[a=p&a+1],t=t*o+s[p&(s[a]=s[r=p&r+n])+(s[r]=n)];return i.i=a,i.j=r,t})(o)}function m(e,n){return n.i=e.i,n.j=e.j,n.S=e.S.slice(),n}function f(e,n){var t,i=[],a=typeof e;if(n&&"object"==a)for(t in e)try{i.push(f(e[t],n-1))}catch(e){}return i.length?i:"string"==a?e:e+"\0"}function h(e,n){for(var t,i=e+"",a=0;a<i.length;)n[p&a]=p&(t^=19*n[p&a])+i.charCodeAt(a++);return v(n)}function v(e){return String.fromCharCode.apply(0,e)}if(h(i.random(),t),e.exports){e.exports=u;try{a=require("crypto")}catch(e){}}else i["seed"+r]=u}("undefined"!=typeof self?self:n,[],Math)}(el);var nl=Wc,tl=Hc,il=$c,al=Gc,ol=Xc,rl=Qc,sl=el.exports;sl.alea=nl,sl.xor128=tl,sl.xorwow=il,sl.xorshift7=al,sl.xor4096=ol,sl.tychei=rl;var cl=sl;!function(e){var t=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Cat=e.abilityPrior=void 0;const i=Nc,a=qc,o=Fc,r=t(cl);e.abilityPrior=(0,o.normal)();class s{constructor({method:n="MLE",itemSelect:t="MFI",nStartItems:i=0,startSelect:a="middle",theta:o=0,minTheta:c=-6,maxTheta:l=6,prior:p=e.abilityPrior,randomSeed:u=null}={}){this.method=s.validateMethod(n),this.itemSelect=s.validateItemSelect(t),this.startSelect=s.validateStartSelect(a),this.minTheta=c,this.maxTheta=l,this.prior=p,this._zetas=[],this._resps=[],this._theta=o,this._nItems=0,this._seMeasurement=Number.MAX_VALUE,this.nStartItems=i,this._rng=null===u?(0,r.default)():(0,r.default)(u)}get theta(){return this._theta}get seMeasurement(){return this._seMeasurement}get nItems(){return this._resps.length}get resps(){return this._resps}get zetas(){return this._zetas}static validateMethod(e){const n=e.toLowerCase();if(!["mle","eap"].includes(n))throw new Error("The abilityEstimator you provided is not in the list of valid methods");return n}static validateItemSelect(e){const n=e.toLowerCase();if(!["mfi","random","closest"].includes(n))throw new Error("The itemSelector you provided is not in the list of valid methods");return n}static validateStartSelect(e){const n=e.toLowerCase();if(!["random","middle"].includes(n))throw new Error("The startSelect you provided is not in the list of valid methods");return n}updateAbilityEstimate(e,n,t=this.method){if(t=s.validateMethod(t),e=Array.isArray(e)?e:[e],n=Array.isArray(n)?n:[n],e.length!==n.length)throw new Error("Unmatched length between answers and item params");this._zetas.push(...e),this._resps.push(...n),"eap"===t?this._theta=this.estimateAbilityEAP():"mle"===t&&(this._theta=this.estimateAbilityMLE()),this.calculateSE()}estimateAbilityEAP(){let e=0,n=0;return this.prior.forEach((([t,i])=>{const a=this.likelihood(t);e+=t*a*i,n+=a*i})),e/n}estimateAbilityMLE(){let e=(0,i.minimize_Powell)(this.negLikelihood.bind(this),[0]).argument[0];return e>this.maxTheta?e=this.maxTheta:e<this.minTheta&&(e=this.minTheta),e}negLikelihood(e){return-this.likelihood(e[0])}likelihood(e){return this._zetas.reduce(((n,t,i)=>{const a=(0,o.itemResponseFunction)(e,t);return 1===this._resps[i]?n+Math.log(a):n+Math.log(1-a)}),1)}calculateSE(){const e=this._zetas.reduce(((e,n)=>e+(0,o.fisherInformation)(this._theta,n)),0);this._seMeasurement=1/Math.sqrt(e)}findNextItem(e,n=this.itemSelect,t=!0){let i,o=s.validateItemSelect(n);return i=t?(0,a.cloneDeep)(e):e,this.nItems<this.nStartItems&&(o=this.startSelect),"mfi"!==o&&i.sort(((e,n)=>e.difficulty-n.difficulty)),"middle"===o?this.selectorMiddle(i):"closest"===o?this.selectorClosest(i):"random"===o?this.selectorRandom(i):this.selectorMFI(i)}selectorMFI(e){const n=e.map((e=>Object.assign({fisherInformation:(0,o.fisherInformation)(this._theta,{a:e.a||1,b:e.difficulty||0,c:e.c||0,d:e.d||1})},e)));return n.sort(((e,n)=>n.fisherInformation-e.fisherInformation)),n.forEach((e=>{delete e.fisherInformation})),{nextStimulus:n[0],remainingStimuli:n.slice(1).sort(((e,n)=>e.difficulty-n.difficulty))}}selectorMiddle(e){let n;n=e.length<this.nStartItems?Math.floor(e.length/2):Math.floor(e.length/2)+this.randomInteger(-Math.floor(this.nStartItems/2),Math.floor(this.nStartItems/2));const t=e[n];return e.splice(n,1),{nextStimulus:t,remainingStimuli:e}}selectorClosest(e){const n=(0,o.findClosest)(e,this._theta+.481),t=e[n];return e.splice(n,1),{nextStimulus:t,remainingStimuli:e}}selectorRandom(e){const n=Math.floor(this._rng()*e.length);return{nextStimulus:e.splice(n,1)[0],remainingStimuli:e}}randomInteger(e,n){return Math.floor(this._rng()*(n-e+1))+e}}e.Cat=s}({});const ll="https://storage.googleapis.com/egma-math";!function(e,n,t){var i={images:{},video:{},audio:{}},a=Cc(t),o=Tc(),r=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.forEach((function(e){var c=Ec(e),l=pc.parse(e).name,p=l.replace(/^([A-Z])|[\s-_](\w)/g,(function(e,n,t,i){return t?t.toUpperCase():n.toLowerCase()})),u=Pc(n,e,a,o,t,r,s);i[c][p]=u}))},s=function(e){var n,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"):function(e,n){Object.entries(e).forEach((function(e){var t=Lc(e,2),i=t[0],a=t[1];r(a,i,!0,n)}))}(e.languageSpecific,t)),e.device&&r(e.device,"device"),e.shared&&(n=e.shared,Array.isArray(n)?r(n,"shared"):Object.entries(n).forEach((function(e){var n=Lc(e,2),t=n[0],i=n[1];r(i,"device"===t?"shared/device":"shared")}))))};e.preload&&Object.entries(e.preload).forEach((function(e){var n=Lc(e,2)[1];s(n)})),e.default&&s(e.default,!0)}(zc,ll),function(e,n,t){var i={},a=Cc(t),o=Tc();function r(e,t,r){var s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e.forEach((function(e){var l=Ec(e),p=Pc(n,e,a,o,r,s,c);i[t]||(i[t]={type:Ac,message:"The experiment is loading",show_progress_bar:!0,continue_after_error:!1,error_message:"",show_detailed_errors:!0,max_load_time:null,on_error:null,on_success:null,images:[],audio:[],video:[]}),i[t][l].push(p)}))}function s(e,n,t){Array.isArray(n)?r(n,e,"languageSpecific"):function(e,n,t){Object.entries(n).forEach((function(n){var i=Lc(n,2),a=i[0];r(i[1],e,a,!0,t)}))}(e,n,t)}function c(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Array.isArray(n)?r(n,e,"default"):(n.languageSpecific&&s(e,n.languageSpecific,t),n.device&&r(n.device,e,"device"),n.shared&&function(e,n){Array.isArray(n)?r(n,e,"shared"):Object.entries(n).forEach((function(n){var t=Lc(n,2),i=t[0];r(t[1],e,"device"===i?"shared/device":"shared")}))}(e,n.shared))}return e.preload&&Object.entries(e.preload).forEach((function(e){var n=Lc(e,2);c(n[0],n[1])})),e.default&&c("default",e.default,!0),i}(zc,ll).default;async function pl(){const e=document.createElement("div");e.innerHTML='<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">\n\n\x3c!-- <h5 style="text-align:left;">\n Stanford University Research Consent Form\n <span style="float:right;">\n For IRB Use Only\n </span>\n</h5>\n\n<h5 style="text-align:left;">\n Protocol Director: Jason D. Yeatman, Ph.D.\n <span style="float:right;">\n Approval Date: October 31, 2023\n </span>\n</h5>\n\n<h5 style="text-align:left;">\n Protocol Title: Plasticity and Reading\n <span style="float:right;">\n Expiration Date: October 31, 2024\n </span>\n</h5> --\x3e\n\n<style>\n body {\n margin: 20px; /* Adjust the margin size as needed */\n }\n</style>\n\n<body>\n<h3 style="text-align: center;"> STANFORD UNIVERSITY CONSENT FORM </h3>\n\n<h4 style="text-align: center;"> Stanford University Reading &amp; Dyslexia Research Program: Behavioral Testing </h4>\n\n<blockquote>\n<h4 id="principal-investigator-">Principal Investigator:</h4>\n<p>Jason D. Yeatman </p>\n<p>Associate Professor</p>\n<p>Graduate School of Education</p>\n<p>School of Medicine, Division of Developmental Behavioral Pediatrics</p>\n<h4 id="contact-">Contact:</h4>\n<p>readingresearch@stanford.edu</p>\n<p><a href="https://dyslexia.stanford.edu/">https://dyslexia.stanford.edu/</a> </p>\n</blockquote>\n<h4 id="purpose-of-the-study">PURPOSE OF THE STUDY</h4>\n<p>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.</p>\n<h4 id="study-procedures">STUDY PROCEDURES</h4>\n<p>In this study, you or your child will be asked to complete computer tasks via a computer screen. An eye-tracking software will request access to your webcam and will be used to measure eye movements. You will be asked to provide verbal responses in which case the web browser will request access to your computer microphone. You or your child may be asked to complete multiple activities in one session depending on the study. </p>\n<h4 id="privacy-or-data-collection">PRIVACY OR DATA COLLECTION</h4>\n<p>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.</p>\n<p>We will collect mouse and click data, scrolling behavior, scores earned, button presses and their timestamps, time spent on each page, audio recordings, or other data that may be derived from your behavior on our page. This data will be stored on servers. The eye-tracking software will use your webcam to track your eyes. This software will record and save video data for future analysis. Once analysis has been completed, the video data will be deleted. 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.</p>\n<h4 id="compensation">COMPENSATION</h4>\n<p>We value [your/your child’s] participation. A Tango gift card will be sent through email upon completion of this study. Specific reward amounts will be indicated on the task card and/or study invitation, which you can view before launching the task or scheduling the appointment. If you or your child is completing these activities as part of another study, the compensation rate will remain consistent with the rate of the study you or your child is enrolled in. </p>\n<p>Please note that the gift card system we use to pay participants is not affiliated with Stanford and we will need to input your name and email into this system to send you the electronic gift card payment. If you feel uncomfortable with this process, please let us know before signing the consent form. Depending on the study, we may be able to look into other forms of payment for you.</p>\n<h4 id="risks-stress-or-discomfort">RISKS, STRESS, OR DISCOMFORT</h4>\n<p>If there is any reason to believe you are/your child is not safe to participate in any of the tasks, please contact us at readingresearch@stanford.edu. 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.</p>\n<h4 id="contact-information">CONTACT INFORMATION</h4>\n<p>If you have any additional questions or concerns about our research, feel free to email us at readingresearch@stanford.edu. We will be more than happy to help!</p>\n<p>For general information regarding questions or concerns about [your/your child’s] rights as a research participant, please call 1-866-680-2906 to reach the Administrative Panel on Human Subjects in Medical Research, Stanford University.</p>\n<form id="consentForm">\n <p>\n <input type="checkbox" id="webcamConsent" name="consent">\n I confirm that I have a webcam, and I agree to have my webcam track my eyes. I understand that the webcam will record or save video data and that it will be deleted once analysis is complete.\n </p>\n <p>\n <input type="checkbox" id="voiceConsent" name="consent">\n I agree to have my voice recorded. This data will only be used for data scoring purposes, will be stored securely, and will not be shared with others outside the lab.\n </p>\n <p>\n <input type="checkbox" id="participationConsent" name="consent">\n I agree to participate in this research. Participation in this research is voluntary, and I can stop at any time without penalty. 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 </p>\n <button id="confirmButton" disabled>Continue to test</button>\n</form>\n</body>\n\n<script>\n document.getElementById(\'consentForm\').addEventListener(\'change\', function() {\n var checkboxes = document.querySelectorAll(\'input[type="checkbox"][name="consent"]\');\n var allChecked = Array.from(checkboxes).every(checkbox => checkbox.checked);\n document.getElementById(\'confirmButton\').disabled = !allChecked;\n });\n<\/script>\n\n',document.body.appendChild(e),await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await ul(t.src)}}(e),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(e),await new Promise((n=>{const t=document.getElementById("confirmButton");t&&t.addEventListener("click",(()=>{document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),e.remove(),n()}))}))}function ul(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;async function dl(e){const n=document.createElement("div");n.innerHTML='\x3c!-- Scripts --\x3e\n<script data-dynamic src="https://cdn.jsdelivr.net/npm/remote-calibrator@latest"><\/script>\n<script data-dynamic src="./configureDevice.js"><\/script>\n<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">\n\n\x3c!-- CSS --\x3e\n<style>\n\nbody {\n margin: 0;\n}\n\n .column {\n float: left;\n padding: 10px;\n}\n\n.left, .right {\n width: 33%;\n}\n\n.middle {\n width: 33%;\n}\n\n.row:after {\n content: "";\n display: table;\n clear: both;\n}\n\n</style>\n\n\x3c!-- HTML --\x3e\n<body id="body">\n <div class="px-4 py-5 my-5 text-center" style="display: block;">\n <h1 class="display-5 fw-bold" id="title">Configure Device</h1>\n <h5> To get started, we will need to set up a few things. </h5>\n <h5> If you’re not sure what to do, ask an adult to help you with this part. </h5>\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/parent-help-icon.png" width="10%">\n <div class="col-lg-6 mx-auto" style="margin-top: -8vh;">\n <p class="lead mt-3 mb-5"></p>\n\n\n \x3c!-- Preconfigured Devices --\x3e\n <form>\n <b>First, check for your device in this preconfigured dropdown list:</b>\n <select id="deviceList" onchange="selectDevice()">\n </select>\n <br> If your device is <b></b>not in this list, please provide the following information: </br>\n </form>\n </br>\n\n\n <div class="d-grid gap-2 justify-content-center">\n\n\n \x3c!-- ROW 1: Full Screen | Get Screen Size --\x3e\n <div class="row gap-2" id="screenSize-collapsableCards">\n <div class="col" >\n <div class="card" style="width:20rem; height:11rem" id="card-fullscreen">\n <div class="card-body">\n <h5 class="card-title">(1) Full Screen</h5>\n <p class="card-text">Do not exit out of \'Full Screen\' mode for the remainder of this study.</p>\n <button type="button" class="btn btn-primary" id="fullscreen" onclick="openFullscreen()">Make Fullscreen</button>\n </div>\n </div>\n </div>\n <div class="col">\n <div class="card" style="width:20rem;height:11rem" id="card-screen-size">\n <div class="card-body">\n <h5 class="card-title">(2) Screen Size</h5>\n <p class="card-text">We need this to calibrate your device\'s screen size.</p>\n <button type="button" class="btn btn-primary" id="measureScreen" onclick="getScreenSize()">Measure Screen Size</button>\n </div>\n </div>\n </div>\n </div>\n\n\n \x3c!-- ROW 2: Webcam Centered | Height of Webcam --\x3e\n <div class="row gap-2" id="webcam-collapsableCards">\n <div class="col">\n <div class="card" style="width: 20rem;" id="card-webcam-center">\n <div class="card-body">\n <h5 class="card-title">(3) Is your webcam centred?</h5>\n <h6 class="card-subtitle mb-2 text-muted">It is expected that for laptops the webcam is already centred.</h6>\n <p class="card-text">If you are using a separate webcam, please centre this in the middle (as seen in the image below).</p>\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/webcamCentered.jpg" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <button type="button" class="btn btn-primary" id="measureDistanceFromScreeen" onclick="getwebcamCentered()">My Webcam is Centred</button>\n </div>\n </div>\n </div>\n <div class="col">\n <div class="card" style="width: 20rem;" id="card-height-camera">\n <div class="card-body">\n <h5 class="card-title">(4) Height of Webcam</h5>\n <p class="card-text">This is the distance between the centre of your webcam\'s lens and the top bezel of your screen (image provided for example)</p>\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/webcamPosition.PNG" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <label for="heightInput">Height in cm:</label>\n <input type="number" id="heightInput" name="heightInput" required\n minlength="1" maxlength="8" size="10" value="2">\n </br></br>\n <button type="button" class="btn btn-primary" id="getHeightbutton" onclick="getHeightWebcam()">Done</button>\n </div>\n </div>\n </div>\n </div>\n\n\n \x3c!-- ROW 3: Camera Access --\x3e\n <div class="row gap-2">\n <div class="col">\n <div class="card" style="width: 42rem;height:11rem" id="card-camera">\n <div class="card-body">\n <h5 class="card-title">(5) Camera Access</h5>\n <p class="card-text">Please provide access to your camera to record your eye movements.</p>\n <button type="button" class="btn btn-primary" id="start-camera">Provide Access</button>\n </div>\n </div>\n </div>\n </div>\n\n\n \x3c!-- ROW 4: Check Recording --\x3e\n <div class="row gap-2" style="padding-top:1rem;">\n <div class="col">\n <div class="card" style="width:42rem" id="card-final-check">\n <div class="card-body">\n <h5 class="card-title">(6) Final Checks</h5>\n <div class="column left">\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/badlighting.jpg" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <b>Bad Lighting</b> &#10060 </br>\n (Make sure eyes and face are clearly visible)\n </div>\n <div class="column middle">\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/glassesReflection.jpg" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <b>Glasses On</b> &#10060 </br>\n (Remove Glasses)\n </div>\n <div class="column middle">\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/goodPosition.jpg" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <b>Ideal View</b>&#10004 &#65039 </br>\n (Face close to camera and centered with clear view of eyes)\n </div>\n <div class="container">\n <video autoplay="true" id="videoElement" style="width:75%; background-color: darkgray;">\n </video>\n </div>\n\n </br>\n <button type="button" class="btn btn-primary" id="Final-Check" onclick="finalCheckComplete()" disabled >Yes I\'m Looking Good</button>\n </div>\n </div>\n </div> \n </div>\n \n\n \x3c!-- ROW 5: User Details --\x3e\n <div class="row gap-2" style="padding-top:1rem;">\n <div class="col">\n <div class="card" style="width:42rem" id="card-camera">\n <div class="card-body">\n <h5 class="card-title">(8) Ready to Start?</h5>\n <label for="idInput">Participant ID:</label>\n <input type="text" id="idInput" name="idInput" required\n minlength="1" maxlength="100" size="10">\n </br></br>\n <button type="button" class="btn btn-primary" id="confirmButton" disabled>Continue</button>\n </div>\n </div>\n </div> \n </div>\n </div>\n </div>\n </div>\n </body>\n\n<script data-dynamic>\nRemoteCalibrator.init()\n\nvar desktop = document.documentElement;\nvar finalCheckButton = document.getElementById("Final-Check")\nvar confirmButton = document.getElementById("confirmButton");\nvar cardFullscreen = document.getElementById("card-fullscreen");\nvar cardScreenSize = document.getElementById("card-screen-size");\nvar cardDistanceScreen = document.getElementById("card-distance-screen");\nvar cardcamera = document.getElementById("card-camera");\nvar cardwebcamCenter = document.getElementById("card-webcam-center");\nvar cardheightcamera = document.getElementById("card-height-camera")\nvar cardfinalcheck = document.getElementById("card-final-check");\nvar heightInput_textbox = document.getElementById("heightInput")\nvar idInput_textbox = document.getElementById("idInput")\nvar video = document.querySelector("#videoElement");\n\n\nvar fullScreen = false;\nvar screenSizeCalibrated = false;\nvar cameraStarted = false;\nvar HeightWebcamEntered = false;\nvar finalcheck = false;\nvar webcamCentered = false;\nvar prolificID;\nvar screenWidth=0;\nvar screenHeight=0;\nvar screenWidthPX=window.screen.width;\nvar screenHeightPX=window.screen.height;\nvar webcamHeight=0;\nvar distance = 0;\n\nfunction makeid(length) {\n var result = \'\';\n var characters = \'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\';\n var charactersLength = characters.length;\n for ( var i = 0; i < length; i++ ) {\n result += characters.charAt(Math.floor(Math.random() * \n charactersLength));\n }\n return result;\n}\n\n\nfunction openFullscreen() {\n if (desktop.requestFullscreen) {\n desktop.requestFullscreen();\n } else if (desktop.webkitRequestFullscreen) { /* Safari */\n desktop.webkitRequestFullscreen();\n } else if (desktop.msRequestFullscreen) { /* IE11 */\n desktop.msRequestFullscreen();\n }\n\n screenWidthPX = window.screen.width;\n screenHeightPX = window.screen.height;\n\n fullScreen = true\n cardFullscreen.style.backgroundColor = \'#bcf5bc\'\n\n checkAllComplete()\n}\n\nfunction getScreenSize(){\n RemoteCalibrator.screenSize({}, data => {\n console.log(`ScreenWidth: ${data.value.screenWidthCm}cm.`)\n console.log(`ScreenHeight: ${data.value.screenHeightCm}cm.`)\n\n screenWidth = data.value.screenWidthCm\n screenHeight = data.value.screenHeightCm\n\n if (screenWidth!=null && screenHeight!=null) {\n screenSizeCalibrated = true\n cardScreenSize.style.backgroundColor = \'#bcf5bc\'\n console.log(screenSizeCalibrated)\n }\n checkAllComplete()\n }) \n}\n\n\nfunction getwebcamCentered(){\n webcamCentered = true\n cardwebcamCenter.style.backgroundColor = \'#bcf5bc\'\n checkAllComplete()\n}\n\nfunction getHeightWebcam(){\n if (heightInput_textbox.value>0){\n HeightWebcamEntered = true\n webcamHeight = heightInput_textbox.value\n heightInput_textbox.disabled = true\n cardheightcamera.style.backgroundColor = \'#bcf5bc\'\n }\n checkAllComplete()\n}\n\nfunction finalCheckComplete(){\n finalcheck = true\n cardfinalcheck.style.backgroundColor = \'#bcf5bc\'\n checkAllComplete()\n}\n\n\ndocument.querySelector("#start-camera").addEventListener(\'click\', async () => {\n const cameraStream = await navigator.mediaDevices.getUserMedia({\n video: { width: { ideal: 1920 }, height: { ideal: 1080 }, frameRate: { ideal: 60, max: 60 } },\n audio: false\n });\n\n if (cameraStream.getVideoTracks().length > 0) {\n const { width, height } = cameraStream.getTracks()[0].getSettings();\n console.log(`${width}x${height}`); // 640x480\n\n if (height > 0) {\n cameraStarted = true;\n video.srcObject = cameraStream;\n cardcamera.style.backgroundColor = \'#bcf5bc\';\n finalCheckButton.disabled = false;\n checkAllComplete();\n } else {\n cardcamera.style.backgroundColor = \'#FA8072\';\n alert("Your webcam does not meet our resolution standards");\n }\n }\n});\n\n\nfunction checkAllComplete() {\n const hasCollapsedCards = Array.from(document.querySelectorAll(\'.card-title\')).some(card => \n card.closest(\'.card\').style.display === \'none\' || card.closest(\'.card\').offsetParent === null\n );\n\n const allConditionsMet = fullScreen && screenSizeCalibrated && cameraStarted && webcamCentered && HeightWebcamEntered && finalcheck;\n const minimalConditionsMet = cameraStarted && finalcheck;\n\n if ((hasCollapsedCards && minimalConditionsMet) || (!hasCollapsedCards && allConditionsMet)) {\n confirmButton.classList.remove(\'btn-secondary\')\n confirmButton.classList.add(\'btn-primary\')\n confirmButton.disabled = false;\n }\n}\n\n\n\n// function continueToTest(){\n// video.remove()\n// prolificID = idInput_textbox.value.trim() ? idInput_textbox.value : makeid(10);\n\n// localStorage.prolificID = prolificID\n// localStorage.screenHeight = screenHeight\n// localStorage.screenWidth = screenWidth\n// localStorage.webcamHeight = webcamHeight\n// localStorage.distance = distance\n// window.location.href = "criticalSpacingMenu_six.html";\n\n// }\n\n<\/script>',document.body.appendChild(n),await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await ml(t.src)}}(n),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(n),function(e){"simple"===e.firekit.task.variantParams.viewType&&collapseCards(!0);""!==e.firekit.user.assessmentPid&&inputParticipantName(e.firekit.user.assessmentPid)}(e),await new Promise((t=>{const i=document.getElementById("confirmButton");i&&i.addEventListener("click",(async()=>{try{var i=o.session.get("config").firekit.user.assessmentUid+"_"+(idInput_textbox.value.trim()?idInput_textbox.value:makeid(10));if(i!==e.firekit.user.assessmentPid&&e.firekit.updateUser({assessmentPid:i}),o.session.set("id",i),o.session.set("deviceConfig",{screenWidth:parseFloat(screenWidth),screenHeight:parseFloat(screenHeight),screenWidthPX:parseFloat(screenWidthPX),screenHeightPX:parseFloat(screenHeightPX),webcamHeight:parseFloat(webcamHeight)}),n.innerHTML='<!DOCTYPE html>\n<html lang="en">\n<head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">\n <style>\n body {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n margin: 0;\n background-color: #ffffff; /* White background */\n color: #000000; /* Black text */\n }\n\n .loading-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 20px;\n border-radius: 10px;\n background: rgba(0, 0, 0, 0.05); /* Slight gray tint to differentiate from the white background */\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */\n }\n\n .loading-spinner {\n border: 8px solid rgba(0, 0, 0, 0.1); /* Lighter border for the spinner */\n border-top: 8px solid #0d6efd; /* Blue color for active part of the spinner */\n border-radius: 50%;\n width: 80px;\n height: 80px;\n animation: spin 1s linear infinite;\n margin-bottom: 20px;\n }\n\n h2 {\n font-weight: 400;\n letter-spacing: 1px;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n </style>\n</head>\n<body>\n <div class="loading-container">\n <div class="loading-spinner"></div>\n <h2>Loading...</h2>\n </div>\n</body>\n</html>\n',"production"===ROAR_DB){const e=await async function(e){var n="openfolder.txt",t="text/plain";try{const i=await fetch(`https://us-central1-webapp-af756.cloudfunctions.net/getUploadUrlFunction?fileName=${n}&mimeType=${t}&parentDir=${e}`);if(!i.ok)throw new Error("Failed to fetch upload URL");return await i.text()}catch(e){throw window.console.log("Error fetching upload URL:",e),e}}(o.session.get("id"));window.console.log("Folder Created:",e)}else"development"==ROAR_DB&&window.console.log("Development");document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),n.remove(),t()}catch(e){window.console.log("Error:",e)}}))}))}function ml(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;async function fl(e){const n=document.createElement("div");n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="100%",n.style.height="100%",n.innerHTML='<!DOCTYPE html>\n<html lang="en">\n<head>\n <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>Image and Audio Recording</title>\n\n <script data-dynamic src="./voiceCalibration.js"><\/script>\n</head>\n\n<style>\n \n body {\n margin: 0;\n min-height: 100vh; /* Ensure body takes the full viewport height */\n display: flex; /* Enable Flexbox */\n justify-content: center; /* Center content horizontally */\n align-items: center; /* Center content vertically */\n font-family: sans-serif;\n }\n\n stim {\n position: absolute;\n height: auto;\n cursor: pointer;\n }\n \n #instruction {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n \n #confirmContainer {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n</style>\n\n\n<body>\n\n \x3c!-- Center Instructions Panel --\x3e\n <div id="calibrationContentArea"> \n <div class="row gap-2" id="instruction">\n <div class="col">\n <div class="card" style="width: 45rem; height:39rem">\n <div class="card-body" style="text-align: center;">\n <h3 class="card-title" id="calibrationTitle"> <b> Calibration Phase </b> </h3>\n <h4 class="card-text"> Now, we need to recalibrate the navigation system. </h4>\n <h4 class="card-text" id="calibrationDescription"></h4>\n <div style="text-align: center; margin-bottom: 3vh;">\n <img id="calibrationImage" src="https://eyetrackingdata.blob.core.windows.net/public/Images/squareAddition_white.png" width="350px">\n </div>\n <div class="btn-group" role="group" aria-label="Basic example">\n <button type="button" class="btn btn-primary" id="giveAccessButton" onclick="giveAccess()">Give Access to Mic/Camera</button>\n <br>\n <button type="button" class="btn btn-primary" id="startTestButton" onclick="startTest(displayNextStim)" disabled>Start</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n \x3c!-- <center> <img src="./img/letter-calibration-explanation.gif" width="350vh" style="margin-bottom: 3vh;"> </center> --\x3e\n\n\n \x3c!-- Confirm Button --\x3e\n <div class="row gap-2" id="confirmContainer" style="display: none;">\n <div class="card-body" style="text-align: center;">\n <h3> Calibration complete! </h3>\n <button type="button" class="btn btn-primary" id="confirmButton"> Continue </button>\n </div>\n </div>\n\n<script data-dynamic>\nvar desktop = document.documentElement;\nvar camera_stream;\nvar audioRecorder;\nvar videoRecorder;\nvar videoChunks = [];\n\nvar deviceConfig = store.session.get(\'deviceConfig\')\n// var deviceConfig = {screenWidth: 29, screenHeight: 16.2, screenWidthPX: 960, screenHeightPX: 540, webcamHeight: 0.5}\nvar testConfig = store.session.get(\'testConfig\')\n// var testConfig = {dir: "https://eyetrackingdata.blob.core.windows.net/public/assets/Letter",\n// stimulus : ["C.svg", "D.svg", "H.svg", "K.svg", "N.svg", "O.svg", "R.svg", "S.svg", "V.svg", "Z.svg"],\n// sizecm: 2}\n\nif (testConfig[\'testname\'] === \'Letter\') {\n var subtestText = [\'Letter\', \'letter\']\n} else {\n var subtestText = [\'Number\', \'number\']\n}\n\n// Getting the div element by its ID\n// const calibrationDiv = document.getElementById(\'calibrationContentArea\');\n\n// Text you want to edit with ${} variables \n// const calibrationDetails = `\n// <div class="row gap-2" id="instruction">\n// <div class="col">\n// <div class="card" style="width: 45rem; height:39rem">\n// <div class="card-body" style="text-align: center;">\n// <h3 class="card-title"> <b> ${subtestText[0]} Calibration Phase </b> </h3>\n// <h4 class="card-text"> Now, we need to recalibrate the navigation system. </h4>\n// <h4 class="card-text"> You will see ${subtestText[1]}s pop up on the screen. Say the ${subtestText[1]} out loud <b>first</b> and then click on the ${subtestText[1]} to go to the next one. </h4>\n// <center> <img src="./img/${subtestText[1]}-calibration-explanation.gif" width="350vh" style="margin-bottom: 3vh;"> </center>\n// <div class="btn-group" role="group" aria-label="Basic example">\n// <button type="button" class="btn btn-primary" id="giveAccessButton" onclick="giveAccess()">Give Access to Mic/Camera</button>\n// <br>\n// <button type="button" class="btn btn-primary" id="startTestButton" onclick="startTest(displayNextStim)" disabled>Start</button>\n// </div>\n// </div>\n// </div>\n// </div>\n// </div>\n// `;\n\n// // Inserting the HTML code into the div\n// calibrationDiv.innerHTML = calibrationDetails;\n\nvar gridCoordinates = generateGridCoordinates(deviceConfig)\nvar shuffledImages = generateStimulusOrder(testConfig)\n\nvar _gridCoordinates = [] \n// gridCoordinates;\nvar _shuffledImages = []\n// shuffledImages.map(filename => filename.split(\'.\')[0]).reverse();\nvar _parentDir = store.session.get("id")\nvar _videoURL = []\nvar _deviceConfig = deviceConfig\nvar _testConfig = testConfig\n\n\nasync function displayNextStim() {\n const position = gridCoordinates.pop();\n if (position) {\n await stopRecording();\n await startRecording();\n const cell = document.createElement(\'div\');\n cell.id = \'cell\'; \n cell.style.width = `${position.width}px`;\n cell.style.height = `${position.height}px`;\n cell.style.left = `${position.x}px`; // Adjust for half of the cell width\n cell.style.top = `${position.y}px`; // Adjust for half of the cell height\n cell.style.position = \'absolute\'; // Ensure the position is set to absolute\n cell.style.transform = \'translate(-50%, -50%)\'; // Center the content within the element\n cell.style.justifyContent = \'center\'; // Center horizontally\n cell.style.alignItems = \'center\'; // Center vertically\n\n const stim = document.createElement(\'img\');\n const randomStimulus = shuffledImages.pop();\n stim.id = \'stim\'; \n stim.src = `${testConfig[\'dir\']}/${randomStimulus}`;\n stim.style.width = \'50%\'; // Make the image fill the cell\n\n cell.appendChild(stim);\n\n // stim.style.width = `${0.50*position.width}px`;\n // stim.style.left = `${position.x}px`;\n // stim.style.top = `${position.y}px`;\n // stim.style.position = \'absolute\'; // Ensure the position is set to absolute\n // stim.style.transform = \'translate(-50%, -50%)\'; // Center the content within the element\n cell.addEventListener(\'click\', () => handleStimClick(randomStimulus,cell,stim));\n document.body.appendChild(cell);\n } else {\n document.getElementById("confirmContainer").style.display = "block"\n console.log(\'All positions used.\');\n }\n}\n\nasync function handleStimClick(randomStimulus,cell,stim) {\n console.log(\'Image clicked!\');\n const timestamp = new Date().getTime();\n document.getElementById(\'cell\').disabled = true\n // Remove the clicked image\n // delay everything underneat by 200ms\n setTimeout(async () => {\n await stopRecording(); // Stop recording when stimulus is clicked\n const stimPosition = stim.getBoundingClientRect();\n var filename = randomStimulus.slice(0, -4) + \'_\' + stimPosition.x + \'_\' + stimPosition.y + \'_\' + timestamp\n filename = filename.replace(/\\./g, \'deci\') + \'.webm\'\n saveRecordings(filename= filename ,parentDir=store.session.get("id")); // Save the recorded audio and video\n _videoURL.push(filename)\n\n const gridCoordinatesObject = {\n x: parseFloat(cell.style.left),\n y: parseFloat(cell.style.top),\n width: parseFloat(cell.style.width),\n height: parseFloat(cell.style.height),\n stim_x:stimPosition.x,\n stim_y:stimPosition.y,\n stim_width:stimPosition.width,\n stim_height:stimPosition.height,\n };\n\n _gridCoordinates.push(gridCoordinatesObject)\n _shuffledImages.push(randomStimulus.slice(0, -4))\n document.getElementById(\'cell\').remove();\n displayNextStim(); // Display the next image\n },250); // Delay everything here by 200ms\n}\n\n\n\n<\/script>\n\n</body>\n</html>\n',document.body.appendChild(n),await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await hl(t.src)}}(n),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(n),document.getElementById("calibrationTitle").innerHTML=`<b>${subtestText[0]} Calibration Phase</b>`,document.getElementById("calibrationDescription").innerHTML=`You will see ${subtestText[1]}s pop up on the screen. Say the ${subtestText[1]} out loud <b>first</b> and then click on the ${subtestText[1]} to go to the next one.`,document.getElementById("calibrationImage").src=`https://eyetrackingdata.blob.core.windows.net/public/Images/${subtestText[1]}-calibration-explanation.gif`,await new Promise((t=>{const i=document.getElementById("confirmButton");i&&i.addEventListener("click",(()=>{const i={assessment_type:testConfig.testname,assessment_stage:"Calibration",stimulusPosition:_gridCoordinates,stimulus:_shuffledImages,recordedVideo:_videoURL,parentDir:_parentDir,correct:1,deviceConfig:_deviceConfig,testConfig:_testConfig};e.firekit.writeTrial(i),n.remove(),document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),t()}))}))}function hl(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;async function vl(){const e=document.createElement("div");e.innerHTML="\x3c!-- Scripts --\x3e\n<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3\" crossorigin=\"anonymous\">\n\n\x3c!-- CSS --\x3e\n<style>\n\nbody {\n margin: 0;\n}\n\n .column {\n float: left;\n padding: 10px;\n}\n\n.left, .right {\n width: 33%;\n}\n\n.middle {\n width: 33%;\n}\n\n.row:after {\n content: \"\";\n display: table;\n clear: both;\n}\n\n</style>\n\n\x3c!-- HTML --\x3e\n<body id=\"body\">\n <div class=\"px-4 py-5 my-5 text-center\" style=\"display: block;\">\n <h1 class=\"display-5 fw-bold\" id=\"title\"> Activity Selection Menu </h1>\n <div class=\"col-lg-6 mx-auto\">\n <p class=\"lead mt-3 mb-5\"></p>\n <h4 class=\"card-text\"> Select an activity. Click on one of the options below to continue with the activity: </h4>\n <div class=\"row gap-2\" id=\"menuButtons\">\n </div>\n <div class=\"row gap-2\" id=\"confirmButtons\">\n <button id=\"confirmButton\">Next</button>\n </div>\n </div>\n </div>\n</body>\n\n\n<script data-dynamic>\n var jsonUrl = 'https://eyetrackingdata.blob.core.windows.net/public/config/tests.json';\n\n fetch(jsonUrl)\n .then(response => response.json())\n .then(data => {\n // Extract test names from the JSON data\n const testNames = Object.keys(data);\n // Create buttons dynamically based on test names\n const menuButtonsContainer = document.getElementById('menuButtons');\n const clickedTests = store.session.get('clickedTests') || [];\n testNames.forEach(testName => {\n console.log(testName)\n console.log(data[testName])\n\n const button = document.createElement('button');\n button.type = 'button';\n button.className = 'btn btn-primary';\n button.textContent = testName;\n\n if (clickedTests.includes(testName)) {\n button.classList.add('btn-secondary'); // Grayish color\n }\n\n button.addEventListener('click', () => {\n // Set the selected testType\n store.session.set('testConfig', data[testName]);\n console.log(`Stored testType: ${testName}`);\n \n // Highlight the clicked button and remove highlighting from others\n const buttons = menuButtonsContainer.getElementsByTagName('button');\n for (const otherButton of buttons) {\n otherButton.classList.remove('btn-success');\n }\n button.classList.add('btn-success');\n // Store the clicked test name in the array\n store.session.set('clickedTests', clickedTests);\n\n });\n menuButtonsContainer.appendChild(button);\n });\n if (store.session.get('clickedTests').length === document.getElementsByClassName('btn btn-primary').length){\n document.getElementById('confirmButton').textContent = 'Test Done. You Can Exit the Page!';\n document.getElementById('confirmButton').disabled = true;\n\n }\n })\n .catch(error => console.error('Error fetching JSON:', error));\n\n \n \n\n<\/script>\n ",document.body.appendChild(e),await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await gl(t.src)}}(e),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(e),await new Promise((n=>{const t=document.getElementById("confirmButton");t&&t.addEventListener("click",(()=>{document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),e.remove(),n()}))}))}function gl(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;async function xl(e,n){const t=document.createElement("div");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.innerHTML='<!DOCTYPE html>\n<html lang="en">\n<head>\n <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>Image and Audio Recording</title>\n\n <script data-dynamic src="./RAN.js"><\/script>\n</head>\n\n<style>\n \n body {\n margin: 0;\n min-height: 100vh; /* Ensure body takes the full viewport height */\n display: flex; /* Enable Flexbox */\n justify-content: center; /* Center content horizontally */\n align-items: center; /* Center content vertically */\n font-family: sans-serif;\n }\n\n stim {\n position: absolute;\n height: auto;\n cursor: pointer;\n }\n\n #instruction {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n \n #confirmContainer {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n</style>\n\n\n<body>\n\n <div id="grid-container" style="position: absolute; width: 100%; height: 100%; visibility: hidden;"></div>\n\n \x3c!-- Center Instructions Panel --\x3e\n <div id="instructionsContentArea">\n <div class="row gap-2" id="instruction">\n <div class="col">\n <div class="card" style="width:45rem; height:39rem">\n <div class="card-body" id="cardthing" style="text-align: center;">\n <h3 class="card-title" id="instructionTitle"></h3>\n <h4 class="card-text" id="instructionSubtitle"></h4>\n <h4 class="card-text" id="instructionDescription"></h4>\n <div style="text-align: center; margin-bottom: 3vh;">\n <img id="explanationGif" src="https://eyetrackingdata.blob.core.windows.net/public/Images/squareAddition_white.png" width="350px">\n </div>\n <div class="btn-group" role="group" aria-label="Basic example" style="margin-bottom: 2vh;">\n <button type="button" class="btn btn-primary" id="giveAccessButton" onclick="giveAccess()">Give Access to Mic/Camera</button>\n <br>\n <button type="button" class="btn btn-primary" id="startTestButton" onclick="startTest()" disabled>Start</button>\n </div>\n </div>\n </div>\n </div>\n </div> \n \n </div>\n \n \x3c!-- Confirm Button --\x3e\n <div class="row gap-2" id="confirmContainer" style="display: none;">\n <div class="card-body" style="text-align: center;">\n <h3> <span id="capName"></span> Test Complete </h3>\n <button type="button" class="btn btn-primary" id="confirmButton">Back to Menu</button>\n </div>\n </div>\n\n \x3c!-- Finish Button --\x3e\n <div id="finishButtonContainer" style="position: fixed; bottom: 10px; right: 10px; z-index: 1;">\n <button type="button" class="btn btn-primary" id="finishButton" onclick="finishTest()">Finish</button>\n </div>\n\n<script data-dynamic>\n\nvar desktop = document.documentElement;\nvar camera_stream;\nvar videoRecorder;\nvar audioChunks = [];\nvar videoChunks = [];\n\nvar deviceConfig = store.session.get(\'deviceConfig\')\n// var deviceConfig = {screenWidth: 29, screenHeight: 16.2, screenWidthPX: 960, screenHeightPX: 540, webcamHeight: 0.5}\nvar testConfig = store.session.get(\'testConfig\')\n// var testConfig = {dir: "https://eyetrackingdata.blob.core.windows.net/public/assets/Letter",\n// stimulus : ["C.svg", "D.svg", "H.svg", "K.svg", "N.svg", "O.svg", "R.svg", "S.svg", "V.svg", "Z.svg"],\n// sizecm: 2}\nvar clickedTests = store.session.get(\'clickedTests\') || [];\nclickedTests.push(testConfig[\'testname\'])\nstore.session.set(\'clickedTests\',clickedTests)\n\nvar gridCoordinates = generateGridCoordinates(deviceConfig)\nvar shuffledImages = generateStimulusOrder(testConfig)\n \nvar _gridCoordinates = []\n// gridCoordinates\nvar _shuffledImages = []\n// shuffledImages.map(filename => filename.split(\'.\')[0]);\nvar _parentDir = store.session.get("id")\nvar _videoURL = []\nvar _deviceConfig = deviceConfig\nvar _testConfig = testConfig\n\nif (testConfig[\'testname\'] === \'Letter\') {\n var subtestText = [\'Letter\', \'letter\']\n} else {\n var subtestText = [\'Number\', \'number\']\n}\n\n\nasync function finishTest() {\n console.log(\'Test Finished\');\n // Remove the clicked image\n await stopRecording(); // Stop recording when stimulus is clicked\n const timestamp = new Date().getTime();\n document.getElementById("finishButton").disabled=true\n \n var filename = \'RAN\' + \'_\' + testConfig[\'testname\'] + \'_\' + timestamp + \'.webm\'\n _videoURL.push(filename)\n\n document.getElementById("confirmContainer").style.display = "block"\n document.getElementById("grid-container").style.display = "none"\n document.getElementById("finishButtonContainer").style.display = "none"\n\n\n if (type!==\'Practice\') {\n try{\n await saveRecordings(filename= filename ,parentDir=store.session.get("id")); // Save the recorded audio and video\n } catch (error) {\n console.error(\'Error in saveRecordings:\', error);\n }\n }\n\n}\n\n\n<\/script>\n\n</body>\n</html>\n',document.body.appendChild(t),window.type=e,await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await bl(t.src)}}(t),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(t),function(e){if(document.getElementById("instructionTitle").innerHTML=`<b>${subtestText[0]} ${e} Phase</b>`,document.getElementById("explanationGif").src=`https://eyetrackingdata.blob.core.windows.net/public/Images/${subtestText[1]}-${e.toLowerCase()}-reading-order.gif`,"Practice"===e){document.getElementById("instructionSubtitle").innerHTML="Let's do some practice!",document.getElementById("instructionDescription").innerHTML=`You’re going to see a row of ${subtestText[1]}s. <span id="distance-span"> </span> </h4>\n Read them out loud as fast as you can without making mistakes. <span id="distance-span"> </span> </h4>\n Remember to read like you normally do by going from <b> left to right. </b> <span id="distance-span"> </span> </h4>`}else{document.getElementById("instructionSubtitle").innerHTML="Let’s start for real now.",document.getElementById("instructionDescription").innerHTML=`Read the ${subtestText[1]}s as fast as you can without making mistakes. Remember to read in the right direction: <span id="distance-span"> </span>`}}(e),await new Promise((e=>{const i=document.getElementById("confirmButton");i&&i.addEventListener("click",(()=>{const i={assessment_type:testConfig.testname,assessment_stage:"Test",stimulusPosition:_gridCoordinates,stimulus:_shuffledImages,recordedVideo:_videoURL,parentDir:_parentDir,correct:1,deviceConfig:_deviceConfig,testConfig:_testConfig};n.firekit.writeTrial(i),t.remove(),document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),e()}))}))}function bl(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;class yl{constructor(e,n,t,i){this.gameParams=n,this.userParams=t,this.firekit=e,this.displayElement=i}async init(){console.log(this.gameParams);const e=new URLSearchParams(window.location.search);function n(n,t){const i=e.get(n);return null===i?t:i.toLowerCase()}o.session.set("consent",n("consent","false")),o.session.set("participantID",n("participantID","")),o.session.set("viewType",n("viewType","simple")),"true"===o.session.get("consent")&&await pl(),await this.firekit.startRun();const t=await(async(e,n,t,i)=>{const a=yo(yo({...n,...t},wo),_o),{userMetadata:o={},audioFeedback:r,language:s=Dr.language,skipInstructions:c,practiceCorpus:l,stimulusCorpus:p,sequentialPractice:u,sequentialStimulus:d,buttonLayout:m,numberOfTrials:f,storyCorpus:h,taskName:v,stimulusBlocks:g,numOfPracticeTrials:x,story:b,keyHelpers:y}=a;"en"!==s&&Dr.changeLanguage(s);const w={userMetadata:{...o},audioFeedback:r||"neutral",skipInstructions:c??!0,startTime:new Date,firekit:e,displayElement:i||null,practiceCorpus:l??"math-item-bank-practice-pz",stimulusCorpus:p??"math-item-bank-pz",sequentialPractice:u??!0,sequentialStimulus:d??!0,buttonLayout:m||"default",numberOfTrials:f??10,storyCorpus:h??"story-lion",task:v??"egma-math",stimulusBlocks:g??3,numOfPracticeTrials:x??2,story:b??!1,keyHelpers:y??!0},_=Object.fromEntries(Object.entries(n).map((([e,n])=>[e,w[e]??n])));return await w.firekit.updateTaskParams(_),null!==w.pid&&await w.firekit.updateUser({assessmentPid:w.pid,...o}),w})(this.firekit,this.gameParams,this.userParams,this.displayElement);o.session.set("config",t),await dl(t);for(;;)await vl(),await fl(t),await xl("Practice",t),await xl("Test",t)}async run(){console.log("Finished")}}export{yl as default};
11
- //# sourceMappingURL=index.3f1a8ace.js.map
10
+ !function(n){var t,i,a,o=dc,r=e.extname,s=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var n=s.exec(e),t=n&&o[n[1].toLowerCase()];return t&&t.charset?t.charset:!(!n||!c.test(n[1]))&&"UTF-8"}n.charset=l,n.charsets={lookup:l},n.contentType=function(e){if(!e||"string"!=typeof e)return!1;var t=-1===e.indexOf("/")?n.lookup(e):e;if(!t)return!1;if(-1===t.indexOf("charset")){var i=n.charset(t);i&&(t+="; charset="+i.toLowerCase())}return t},n.extension=function(e){if(!e||"string"!=typeof e)return!1;var t=s.exec(e),i=t&&n.extensions[t[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},n.extensions=Object.create(null),n.lookup=function(e){if(!e||"string"!=typeof e)return!1;var t=r("x."+e).toLowerCase().substr(1);if(!t)return!1;return n.types[t]||!1},n.types=Object.create(null),t=n.extensions,i=n.types,a=["nginx","apache",void 0,"iana"],Object.keys(o).forEach((function(e){var n=o[e],r=n.extensions;if(r&&r.length){t[e]=r;for(var s=0;s<r.length;s++){var c=r[s];if(i[c]){var l=a.indexOf(o[i[c]].source),p=a.indexOf(n.source);if("application/octet-stream"!==i[c]&&(l>p||l===p&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))}(uc);var mc=t(uc),fc="undefined"!=typeof window?window:{screen:{},navigator:{}},hc=(fc.matchMedia||function(){return{matches:!1}}).bind(fc),vc={get passive(){return!0}},gc=function(){};fc.addEventListener&&fc.addEventListener("p",gc,vc),fc.removeEventListener&&fc.removeEventListener("p",gc,!1);var xc="ontouchstart"in fc,bc=xc||"TouchEvent"in fc&&hc("(any-pointer: coarse)").matches,yc=(fc.navigator.maxTouchPoints||0)>0||bc,wc=fc.navigator.userAgent||"",_c=hc("(pointer: coarse)").matches&&/iPad|Macintosh/.test(wc)&&Math.min(fc.screen.width||0,fc.screen.height||0)>=768,kc=(hc("(pointer: coarse)").matches||!hc("(pointer: fine)").matches&&xc)&&!/Windows.*Firefox/.test(wc),jc=hc("(any-pointer: fine)").matches||hc("(any-hover: hover)").matches||_c||!xc,Oc=!yc||!jc&&kc?yc?"touchOnly":"mouseOnly":"hybrid",Sc="mouseOnly"===Oc?"mouse":"touchOnly"===Oc||kc?"touch":"mouse";function Cc(e){return e||(new URLSearchParams(window.location.search).get("lng")||"en")}function Tc(){return"touchOnly"===Oc||"hybrid"===Oc&&"touch"===Sc?"mobile":"desktop"}function Pc(e,n,t,i,a,o,r){return r&&o&&"device"===a||o&&"device"===a?"".concat(e,"/").concat(t,"/").concat(i,"/").concat(n):r&&o&&"shared"===a||o&&"shared"===a?"".concat(e,"/").concat(t,"/shared/").concat(n):"device"===a?"".concat(e,"/").concat(i,"/").concat(n):"shared/device"===a?"".concat(e,"/shared/").concat(i,"/").concat(n):"languageSpecific"===a?"".concat(e,"/").concat(t,"/").concat(n):"default"===a?"".concat(e,"/").concat(n):"".concat(e,"/shared/").concat(n)}function Ec(e){var n=mc.lookup(e);if(!n)throw new Error("Unrecognized file extension in path: ".concat(e));if(n.startsWith("image/"))return"images";if(n.startsWith("audio/"))return"audio";if(n.startsWith("video/"))return"video";throw new Error("Unsupported MIME type for file: ".concat(e,". Only image, audio, and video files are supported."))}const Ic={name:"preload",parameters:{auto_preload:{type:Vr.BOOL,pretty_name:"Auto-preload",default:!1},trials:{type:Vr.TIMELINE,pretty_name:"Trials",default:[]},images:{type:Vr.STRING,pretty_name:"Images",default:[],array:!0},audio:{type:Vr.STRING,pretty_name:"Audio",default:[],array:!0},video:{type:Vr.STRING,pretty_name:"Video",default:[],array:!0},message:{type:Vr.HTML_STRING,pretty_name:"Message",default:null},show_progress_bar:{type:Vr.BOOL,pretty_name:"Show progress bar",default:!0},continue_after_error:{type:Vr.BOOL,pretty_name:"Continue after error",default:!1},error_message:{type:Vr.HTML_STRING,pretty_name:"Error message",default:"The experiment failed to load."},show_detailed_errors:{type:Vr.BOOL,pretty_name:"Show detailed errors",default:!1},max_load_time:{type:Vr.INT,pretty_name:"Max load time",default:null},on_error:{type:Vr.FUNCTION,pretty_name:"On error",default:null},on_success:{type:Vr.FUNCTION,pretty_name:"On success",default:null}}};class Ac{constructor(e){this.jsPsych=e}trial(e,n){var t=null,i=!1,a=[],o=[],r=[],s=[],c=this.jsPsych.getSafeModeStatus(),l=[],p=[],u=[];if(n.auto_preload){var d=this.jsPsych.getTimeline(),m=this.jsPsych.pluginAPI.getAutoPreloadList(d);l=l.concat(m.images),p=p.concat(m.audio),u=u.concat(m.video)}if(n.trials.length>0){var f=this.jsPsych.pluginAPI.getAutoPreloadList(n.trials);l=l.concat(f.images),p=p.concat(f.audio),u=u.concat(f.video)}l=l.concat(n.images),p=p.concat(n.audio),u=u.concat(n.video),l=this.jsPsych.utils.unique(l.flat()),p=this.jsPsych.utils.unique(p.flat()),u=this.jsPsych.utils.unique(u.flat()),c&&(u=[]);var h="";null!==n.message&&(h+=n.message),n.show_progress_bar&&(h+="\n <div id='jspsych-loading-progress-bar-container' style='height: 10px; width: 300px; background-color: #ddd; margin: auto;'>\n <div id='jspsych-loading-progress-bar' style='height: 10px; width: 0%; background-color: #777;'></div>\n </div>"),e.innerHTML=h;const v=()=>{if(_++,n.show_progress_bar){var t=_/w*100,i=e.querySelector("#jspsych-loading-progress-bar");null!==i&&(i.style.width=t+"%")}},g=()=>{void 0!==i&&!1===i&&(this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),t=!0,y())},x=()=>{this.jsPsych.pluginAPI.cancelPreloads(),void 0===t||!1!==t&&null!==t||(i=!0,k<w&&(t=!1),S("timeout"),s.push("<p><strong>Loading timed out.</strong><br>Consider compressing your stimuli files, loading your files in smaller batches,<br>and/or increasing the <i>max_load_time</i> parameter.</p>"),n.continue_after_error?y():b())},b=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),e.innerHTML=n.error_message,n.show_detailed_errors&&(e.innerHTML+="<p><strong>Error details:</strong></p>",s.forEach((n=>{e.innerHTML+=n})))},y=()=>{this.jsPsych.pluginAPI.clearAllTimeouts();var n={success:t,timeout:i,failed_images:a,failed_audio:o,failed_video:r};e.innerHTML="",this.jsPsych.finishTrial(n)};null!==n.max_load_time&&this.jsPsych.pluginAPI.setTimeout(x,n.max_load_time);var w=l.length+p.length+u.length,_=0,k=0;if(0==w)g();else{const e=e=>{this.jsPsych.pluginAPI.preloadVideo(u,e,O,j)},n=e=>{this.jsPsych.pluginAPI.preloadAudio(p,e,O,j)},t=e=>{this.jsPsych.pluginAPI.preloadImages(l,e,O,j)};u.length>0&&e((()=>{})),p.length>0&&n((()=>{})),l.length>0&&t((()=>{}))}function j(e){v(),null==t&&(t=!1);var i="unknown file";e.source&&(i=e.source),e.error&&e.error.path&&e.error.path.length>0&&("img"==e.error.path[0].localName?a.push(i):"audio"==e.error.path[0].localName?o.push(i):"video"==e.error.path[0].localName&&r.push(i));var c="<p><strong>Error loading file: "+i+"</strong><br>";e.error.statusText&&(c+="File request response status: "+e.error.statusText+"<br>"),"404"==e.error&&(c+="404 - file not found.<br>"),void 0!==e.error.loaded&&null!==e.error.loaded&&0!==e.error.loaded?c+=e.error.loaded+" bytes transferred.":c+="File did not begin loading. Check that file path is correct and reachable by the browser,<br>and that loading is not blocked by cross-origin resource sharing (CORS) errors.",c+="</p>",s.push(c),S(i),_==w&&(n.continue_after_error?y():b())}function O(e){v(),function(e){null!==n.on_success&&n.on_success(e)}(e),++k==w?g():_==w&&(n.continue_after_error?y():b())}function S(e){null!==n.on_error&&n.on_error(e)}}simulate(e,n,t,i){"data-only"==n&&(i(),this.simulate_data_only(e,t)),"visual"==n&&this.simulate_visual(e,t,i)}create_simulation_data(e,n){return this.jsPsych.pluginAPI.mergeSimulationData({success:!0,timeout:!1,failed_images:[],failed_audio:[],failed_video:[]},n)}simulate_data_only(e,n){const t=this.create_simulation_data(e,n);this.jsPsych.finishTrial(t)}simulate_visual(e,n,t){const i=this.jsPsych.getDisplayElement();this.trial(i,e),t()}}function Lc(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,o,r,s=[],c=!0,l=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=o.call(t)).done)&&(s.push(i.value),s.length!==n);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(l)throw a}}return s}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return Rc(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rc(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rc(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}Ac.info=Ic;var zc={default:{languageSpecific:{device:[],shared:["tryAgain.mp3","thatsRight.mp3","clickButton.jpg","intro.mp3","ins.mp3","surveyPractice.mp3","surveyPostPractice.mp3","great-job-click.mp3","break1.mp3","break2.mp3","break3.mp3","break4.mp3","break5.mp3","ending.mp3"]},shared:["nullAudio.mp3","select.mp3","goButton.png","coin.mp3","countdown0.mp3","countdown1.mp3","countdown2.mp3","countdown3.mp3","fail.mp3","fairyCoin.mp3","coin_bag.gif","ROARLion.gif"]}},Dc={exports:{}};!function(e){function n(e,n){this.low=e,this.high=n,this.random_sample=function(){return Math.random()*(this.high-this.low)+this.low}}function t(e,n){this.low=e,this.high=n,this.random_sample=function(){var e=Math.random()*(this.high-this.low)+this.low;return Math.round(e)}}function i(e){this.categories=e,this.random_sample=function(){var e=this.categories.length,n=Math.round(Math.random()*(e-1));return this.categories[n]}}function a(e){this.dimensions=e,this.rsv=function(e){for(var n=[],t=0;t<e;t++){var i=[];for(var a of this.dimensions)i.push(a.random_sample());n.push(i)}return n}}function o(n){this.space=e.exports.to_space(n),this.X=[],this.Y=[],this.best_x=null,this.best_y=null,this.ask=function(e=null){return null==e?this.space.rsv(1)[0]:this.space.rsv(e)},this.tell=function(e,n){for(var t=0;t<e.length;t++)(null==this.best_y||n[t]<this.best_y)&&(this.best_y=n[t],this.best_x=e[t]);this.X=this.X.concat(e),this.Y=this.Y.concat(n)}}function r(a,o=13,r=.1){this.space=e.exports.to_space(a),this.n_random_starts=o,this.mutation_rate=r,this.n_random_starts_=o,this.X=[],this.Y=[],this.best_x=null,this.best_y=null,this.rnd=function(e=null){return null==e&&(e=this.mutation_rate),Math.random()<e},this.ask=function(){if(this.n_random_starts_>0)return this.space.rsv(1)[0];for(finished=!1;!finished;){for(var e=[],a=this.X[0],o=this.Y[0],r=1;r<this.Y.length;r++)this.Y[r]<o&&(a=this.X[r],o=this.Y[r]);for(r=0;r<this.space.dimensions.length;r++){var s=a[r],c=this.space.dimensions[r];if(c instanceof i&&this.rnd()){var l=Math.round(Math.random()*(c.categories.length-1));s=c.categories[l],finished=!0}if((c instanceof n||c instanceof t)&&this.rnd()){for(var p=c.low,u=c.high,d=-16;d<=1;d++)this.rnd()&&(finished=!0,this.rnd(.5)?diff=u-s:diff=p-s,s+=diff*Math.pow(2,d));s<p&&(s=p),s>u&&(s=u),c instanceof t&&(s=Math.round(s))}e.push(s)}}return e},this.tell=function(e,n){for(var t=0;t<e.length;t++)this.n_random_starts_-=1,(null==this.best_y||n[t]<this.best_y)&&(this.best_y=n[t],this.best_x=e[t]);this.n_random_starts_<0&&(this.n_random_starts_=0),this.X=this.X.concat(e),this.Y=this.Y.concat(n)}}function s(e){for(var n=[],t=0;t<e.length;t++)n.push(t);for(t=0;t<e.length;t++){var i=Math.floor(Math.random()*t),a=n[t];n[t]=n[i],n[i]=a}return n}function c(e,n){for(var t=0,i=0;i<e.length;i++)t+=e[i]*n[i];return t}function l(e,n){for(var t=new Array(e.length),i=0;i<e.length;i++)t[i]=e[i]-n[i];return t}function p(e,n,t){for(var i=0;i<e.length;i++)e[i]=e[i]+n*t[i];return e}function u(e,n){for(var t=0;t<e.length;t++)if(Math.abs(e[t])>=n)return!1;return!0}e.exports.Real=function(e,t){return new n(e,t)},e.exports.Integer=function(e,n){return new t(e,n)},e.exports.Categorical=function(e){return new i(e)},e.exports.Space=function(e){return new a(e)},e.exports.to_space=function(n){if(n instanceof Array)return e.exports.Space(n);if(n instanceof a)return n;throw"Unknown space definition"},e.exports.RandomOptimizer=function(e){return new o(e)},e.exports.OMGOptimizer=function(e,n=13,t=.1){return new r(e,n,t)},e.exports.dummy_minimize=function(n,t,i=64){for(var a=e.exports.RandomOptimizer(t),o=0;o<i;o++){var r=a.ask(),s=n(r);a.tell([r],[s])}return a},e.exports.rs_minimize=function(n,t,i=64,a=13,o=.1){for(var r=e.exports.OMGOptimizer(t,a,o),s=0;s<i;s++){var c=r.ask(),l=n(c);r.tell([c],[l])}return r},e.exports.minimize_Powell=function(e,n,t=.01,i=.001){for(var a=!1,o=n.slice(),r=Math.exp(10),c=e(o);!a;){var l=s(o);a=!0;for(var p=0;p<l.length;p++){o[l[p]]+=1e-6;var u=e(o);o[l[p]]-=1e-6;var d=(u-c)/1e-6;Math.abs(d)>t&&(a=!1),o[l[p]]=o[l[p]]-i*d,c=e(o)}i=r>c?1.1*i:.7*i,r=c}var m={};return m.argument=o,m.fncvalue=c,m},e.exports.minimize_GradientDescent=function(e,n,t){for(var i=t.slice(),a=!1,o=.01,r=e(i);!a;){var s=n(i);if(a=u(s,.001))break;for(var c=!0;c;){var l=i.slice();p(l,-o,s);var d=e(l);o=(c=r<d)?.7*o:1.1*o}i=l,r=d}var m={};return m.argument=i,m.fncvalue=d,m},e.exports.minimize_L_BFGS=function(e,n,t){for(var i=t.slice(),a=.001,o=e(i),r=[],s=[],d=n(i),m=d.slice();;){var f=i.slice();p(f,a,m);var h=e(f);a=o<h?.5*a:1.2*a;var v=n(f);if(u(v,1e-5))break;var g=l(f,i),x=l(v,d);r.unshift(g),s.unshift(x),c(g,x),r.length>5&&(r.pop(),s.pop());for(var b=d.slice(),y=new Array(r.length),w=0;w<r.length;w++){var _=1/c(r[w],s[w]);y[w]=_*c(r[w],b),p(b,-y[w],s[w])}var k=c(g,x)/c(x,x);for(w=0;w<b.length;w++)b[w]=b[w]*k;for(w=0;w<r.length;w++){var j=r.length-w-1,O=1/c(r[j],s[j])*c(s[j],b);p(b,y[j]-O,r[j])}m=b.slice();for(w=0;w<m.length;w++)m[w]=-m[w];o=h,i=f,d=v}var S={};return S.argument=i,S.fncvalue=h,S}}(Dc);var Nc=Dc.exports,Mc={exports:{}};!function(e,t){(function(){var i,a="Expected a function",o="__lodash_hash_undefined__",r="__lodash_placeholder__",s=16,c=32,l=64,p=128,u=256,d=1/0,m=9007199254740991,f=NaN,h=4294967295,v=[["ary",p],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",c],["partialRight",l],["rearg",u]],g="[object Arguments]",x="[object Array]",b="[object Boolean]",y="[object Date]",w="[object Error]",_="[object Function]",k="[object GeneratorFunction]",j="[object Map]",O="[object Number]",S="[object Object]",C="[object Promise]",T="[object RegExp]",P="[object Set]",E="[object String]",I="[object Symbol]",A="[object WeakMap]",L="[object ArrayBuffer]",R="[object DataView]",z="[object Float32Array]",D="[object Float64Array]",N="[object Int8Array]",M="[object Int16Array]",q="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",U="[object Uint16Array]",W="[object Uint32Array]",V=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp($.source),J=RegExp(Y.source),X=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ie.source),oe=/^\s+/,re=/\s/,se=/\{(?:\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,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,xe=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Pe="\\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",Ee="['’]",Ie="["+ke+"]",Ae="["+Pe+"]",Le="["+je+"]",Re="\\d+",ze="["+Oe+"]",De="["+Se+"]",Ne="[^"+ke+Pe+Re+Oe+Se+Ce+"]",Me="\\ud83c[\\udffb-\\udfff]",qe="[^"+ke+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Ce+"]",We="\\u200d",Ve="(?:"+De+"|"+Ne+")",He="(?:"+Ue+"|"+Ne+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Le+"|"+Me+")"+"?",Ge="["+Te+"]?",Je=Ge+Ye+("(?:"+We+"(?:"+[qe,Fe,Be].join("|")+")"+Ge+Ye+")*"),Xe="(?:"+[ze,Fe,Be].join("|")+")"+Je,Ze="(?:"+[qe+Le+"?",Le,Fe,Be,Ie].join("|")+")",Qe=RegExp(Ee,"g"),en=RegExp(Le,"g"),nn=RegExp(Me+"(?="+Me+")|"+Ze+Je,"g"),tn=RegExp([Ue+"?"+De+"+"+Ke+"(?="+[Ae,Ue,"$"].join("|")+")",He+"+"+$e+"(?="+[Ae,Ue+Ve,"$"].join("|")+")",Ue+"?"+Ve+"+"+Ke,Ue+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Xe].join("|"),"g"),an=RegExp("["+We+ke+je+Te+"]"),on=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rn=["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"],sn=-1,cn={};cn[z]=cn[D]=cn[N]=cn[M]=cn[q]=cn[F]=cn[B]=cn[U]=cn[W]=!0,cn[g]=cn[x]=cn[L]=cn[b]=cn[R]=cn[y]=cn[w]=cn[_]=cn[j]=cn[O]=cn[S]=cn[T]=cn[P]=cn[E]=cn[A]=!1;var ln={};ln[g]=ln[x]=ln[L]=ln[R]=ln[b]=ln[y]=ln[z]=ln[D]=ln[N]=ln[M]=ln[q]=ln[j]=ln[O]=ln[S]=ln[T]=ln[P]=ln[E]=ln[I]=ln[F]=ln[B]=ln[U]=ln[W]=!0,ln[w]=ln[_]=ln[A]=!1;var pn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},un=parseFloat,dn=parseInt,mn="object"==typeof n&&n&&n.Object===Object&&n,fn="object"==typeof self&&self&&self.Object===Object&&self,hn=mn||fn||Function("return this")(),vn=t&&!t.nodeType&&t,gn=vn&&e&&!e.nodeType&&e,xn=gn&&gn.exports===vn,bn=xn&&mn.process,yn=function(){try{var e=gn&&gn.require&&gn.require("util").types;return e||bn&&bn.binding&&bn.binding("util")}catch(e){}}(),wn=yn&&yn.isArrayBuffer,_n=yn&&yn.isDate,kn=yn&&yn.isMap,jn=yn&&yn.isRegExp,On=yn&&yn.isSet,Sn=yn&&yn.isTypedArray;function Cn(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function Tn(e,n,t,i){for(var a=-1,o=null==e?0:e.length;++a<o;){var r=e[a];n(i,r,t(r),e)}return i}function Pn(e,n){for(var t=-1,i=null==e?0:e.length;++t<i&&!1!==n(e[t],t,e););return e}function En(e,n){for(var t=null==e?0:e.length;t--&&!1!==n(e[t],t,e););return e}function In(e,n){for(var t=-1,i=null==e?0:e.length;++t<i;)if(!n(e[t],t,e))return!1;return!0}function An(e,n){for(var t=-1,i=null==e?0:e.length,a=0,o=[];++t<i;){var r=e[t];n(r,t,e)&&(o[a++]=r)}return o}function Ln(e,n){return!!(null==e?0:e.length)&&Wn(e,n,0)>-1}function Rn(e,n,t){for(var i=-1,a=null==e?0:e.length;++i<a;)if(t(n,e[i]))return!0;return!1}function zn(e,n){for(var t=-1,i=null==e?0:e.length,a=Array(i);++t<i;)a[t]=n(e[t],t,e);return a}function Dn(e,n){for(var t=-1,i=n.length,a=e.length;++t<i;)e[a+t]=n[t];return e}function Nn(e,n,t,i){var a=-1,o=null==e?0:e.length;for(i&&o&&(t=e[++a]);++a<o;)t=n(t,e[a],a,e);return t}function Mn(e,n,t,i){var a=null==e?0:e.length;for(i&&a&&(t=e[--a]);a--;)t=n(t,e[a],a,e);return t}function qn(e,n){for(var t=-1,i=null==e?0:e.length;++t<i;)if(n(e[t],t,e))return!0;return!1}var Fn=$n("length");function Bn(e,n,t){var i;return t(e,(function(e,t,a){if(n(e,t,a))return i=t,!1})),i}function Un(e,n,t,i){for(var a=e.length,o=t+(i?1:-1);i?o--:++o<a;)if(n(e[o],o,e))return o;return-1}function Wn(e,n,t){return n==n?function(e,n,t){var i=t-1,a=e.length;for(;++i<a;)if(e[i]===n)return i;return-1}(e,n,t):Un(e,Hn,t)}function Vn(e,n,t,i){for(var a=t-1,o=e.length;++a<o;)if(i(e[a],n))return a;return-1}function Hn(e){return e!=e}function Kn(e,n){var t=null==e?0:e.length;return t?Jn(e,n)/t:f}function $n(e){return function(n){return null==n?i:n[e]}}function Yn(e){return function(n){return null==e?i:e[n]}}function Gn(e,n,t,i,a){return a(e,(function(e,a,o){t=i?(i=!1,e):n(t,e,a,o)})),t}function Jn(e,n){for(var t,a=-1,o=e.length;++a<o;){var r=n(e[a]);r!==i&&(t=t===i?r:t+r)}return t}function Xn(e,n){for(var t=-1,i=Array(e);++t<e;)i[t]=n(t);return i}function Zn(e){return e?e.slice(0,ht(e)+1).replace(oe,""):e}function Qn(e){return function(n){return e(n)}}function et(e,n){return zn(n,(function(n){return e[n]}))}function nt(e,n){return e.has(n)}function tt(e,n){for(var t=-1,i=e.length;++t<i&&Wn(n,e[t],0)>-1;);return t}function it(e,n){for(var t=e.length;t--&&Wn(n,e[t],0)>-1;);return t}var at=Yn({"À":"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"}),ot=Yn({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rt(e){return"\\"+pn[e]}function st(e){return an.test(e)}function ct(e){var n=-1,t=Array(e.size);return e.forEach((function(e,i){t[++n]=[i,e]})),t}function lt(e,n){return function(t){return e(n(t))}}function pt(e,n){for(var t=-1,i=e.length,a=0,o=[];++t<i;){var s=e[t];s!==n&&s!==r||(e[t]=r,o[a++]=t)}return o}function ut(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}function dt(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=[e,e]})),t}function mt(e){return st(e)?function(e){var n=nn.lastIndex=0;for(;nn.test(e);)++n;return n}(e):Fn(e)}function ft(e){return st(e)?function(e){return e.match(nn)||[]}(e):function(e){return e.split("")}(e)}function ht(e){for(var n=e.length;n--&&re.test(e.charAt(n)););return n}var vt=Yn({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gt=function e(n){var t=(n=null==n?hn:gt.defaults(hn.Object(),n,gt.pick(hn,rn))).Array,re=n.Date,ke=n.Error,je=n.Function,Oe=n.Math,Se=n.Object,Ce=n.RegExp,Te=n.String,Pe=n.TypeError,Ee=t.prototype,Ie=je.prototype,Ae=Se.prototype,Le=n["__core-js_shared__"],Re=Ie.toString,ze=Ae.hasOwnProperty,De=0,Ne=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Me=Ae.toString,qe=Re.call(Se),Fe=hn._,Be=Ce("^"+Re.call(ze).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=xn?n.Buffer:i,We=n.Symbol,Ve=n.Uint8Array,He=Ue?Ue.allocUnsafe:i,Ke=lt(Se.getPrototypeOf,Se),$e=Se.create,Ye=Ae.propertyIsEnumerable,Ge=Ee.splice,Je=We?We.isConcatSpreadable:i,Xe=We?We.iterator:i,Ze=We?We.toStringTag:i,nn=function(){try{var e=uo(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),an=n.clearTimeout!==hn.clearTimeout&&n.clearTimeout,pn=re&&re.now!==hn.Date.now&&re.now,mn=n.setTimeout!==hn.setTimeout&&n.setTimeout,fn=Oe.ceil,vn=Oe.floor,gn=Se.getOwnPropertySymbols,bn=Ue?Ue.isBuffer:i,yn=n.isFinite,Fn=Ee.join,Yn=lt(Se.keys,Se),xt=Oe.max,bt=Oe.min,yt=re.now,wt=n.parseInt,_t=Oe.random,kt=Ee.reverse,jt=uo(n,"DataView"),Ot=uo(n,"Map"),St=uo(n,"Promise"),Ct=uo(n,"Set"),Tt=uo(n,"WeakMap"),Pt=uo(Se,"create"),Et=Tt&&new Tt,It={},At=Mo(jt),Lt=Mo(Ot),Rt=Mo(St),zt=Mo(Ct),Dt=Mo(Tt),Nt=We?We.prototype:i,Mt=Nt?Nt.valueOf:i,qt=Nt?Nt.toString:i;function Ft(e){if(ns(e)&&!Vr(e)&&!(e instanceof Vt)){if(e instanceof Wt)return e;if(ze.call(e,"__wrapped__"))return qo(e)}return new Wt(e)}var Bt=function(){function e(){}return function(n){if(!es(n))return{};if($e)return $e(n);e.prototype=n;var t=new e;return e.prototype=i,t}}();function Ut(){}function Wt(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}function Vt(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Ht(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function Kt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function $t(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function Yt(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new $t;++n<t;)this.add(e[n])}function Gt(e){var n=this.__data__=new Kt(e);this.size=n.size}function Jt(e,n){var t=Vr(e),i=!t&&Wr(e),a=!t&&!i&&Yr(e),o=!t&&!i&&!a&&ls(e),r=t||i||a||o,s=r?Xn(e.length,Te):[],c=s.length;for(var l in e)!n&&!ze.call(e,l)||r&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bo(l,c))||s.push(l);return s}function Xt(e){var n=e.length;return n?e[Yi(0,n-1)]:i}function Zt(e,n){return zo(Pa(e),si(n,0,e.length))}function Qt(e){return zo(Pa(e))}function ei(e,n,t){(t!==i&&!Fr(e[n],t)||t===i&&!(n in e))&&oi(e,n,t)}function ni(e,n,t){var a=e[n];ze.call(e,n)&&Fr(a,t)&&(t!==i||n in e)||oi(e,n,t)}function ti(e,n){for(var t=e.length;t--;)if(Fr(e[t][0],n))return t;return-1}function ii(e,n,t,i){return di(e,(function(e,a,o){n(i,e,t(e),o)})),i}function ai(e,n){return e&&Ea(n,Is(n),e)}function oi(e,n,t){"__proto__"==n&&nn?nn(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function ri(e,n){for(var a=-1,o=n.length,r=t(o),s=null==e;++a<o;)r[a]=s?i:Ss(e,n[a]);return r}function si(e,n,t){return e==e&&(t!==i&&(e=e<=t?e:t),n!==i&&(e=e>=n?e:n)),e}function ci(e,n,t,a,o,r){var s,c=1&n,l=2&n,p=4&n;if(t&&(s=o?t(e,a,o,r):t(e)),s!==i)return s;if(!es(e))return e;var u=Vr(e);if(u){if(s=function(e){var n=e.length,t=new e.constructor(n);n&&"string"==typeof e[0]&&ze.call(e,"index")&&(t.index=e.index,t.input=e.input);return t}(e),!c)return Pa(e,s)}else{var d=ho(e),m=d==_||d==k;if(Yr(e))return ka(e,c);if(d==S||d==g||m&&!o){if(s=l||m?{}:go(e),!c)return l?function(e,n){return Ea(e,fo(e),n)}(e,function(e,n){return e&&Ea(n,As(n),e)}(s,e)):function(e,n){return Ea(e,mo(e),n)}(e,ai(s,e))}else{if(!ln[d])return o?e:{};s=function(e,n,t){var i=e.constructor;switch(n){case L:return ja(e);case b:case y:return new i(+e);case R:return function(e,n){var t=n?ja(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,t);case z:case D:case N:case M:case q:case F:case B:case U:case W:return Oa(e,t);case j:return new i;case O:case E:return new i(e);case T:return function(e){var n=new e.constructor(e.source,fe.exec(e));return n.lastIndex=e.lastIndex,n}(e);case P:return new i;case I:return a=e,Mt?Se(Mt.call(a)):{}}var a}(e,d,c)}}r||(r=new Gt);var f=r.get(e);if(f)return f;r.set(e,s),rs(e)?e.forEach((function(i){s.add(ci(i,n,t,i,e,r))})):ts(e)&&e.forEach((function(i,a){s.set(a,ci(i,n,t,a,e,r))}));var h=u?i:(p?l?ao:io:l?As:Is)(e);return Pn(h||e,(function(i,a){h&&(i=e[a=i]),ni(s,a,ci(i,n,t,a,e,r))})),s}function li(e,n,t){var a=t.length;if(null==e)return!a;for(e=Se(e);a--;){var o=t[a],r=n[o],s=e[o];if(s===i&&!(o in e)||!r(s))return!1}return!0}function pi(e,n,t){if("function"!=typeof e)throw new Pe(a);return Io((function(){e.apply(i,t)}),n)}function ui(e,n,t,i){var a=-1,o=Ln,r=!0,s=e.length,c=[],l=n.length;if(!s)return c;t&&(n=zn(n,Qn(t))),i?(o=Rn,r=!1):n.length>=200&&(o=nt,r=!1,n=new Yt(n));e:for(;++a<s;){var p=e[a],u=null==t?p:t(p);if(p=i||0!==p?p:0,r&&u==u){for(var d=l;d--;)if(n[d]===u)continue e;c.push(p)}else o(n,u,i)||c.push(p)}return c}Ft.templateSettings={escape:X,evaluate:Z,interpolate:Q,variable:"",imports:{_:Ft}},Ft.prototype=Ut.prototype,Ft.prototype.constructor=Ft,Wt.prototype=Bt(Ut.prototype),Wt.prototype.constructor=Wt,Vt.prototype=Bt(Ut.prototype),Vt.prototype.constructor=Vt,Ht.prototype.clear=function(){this.__data__=Pt?Pt(null):{},this.size=0},Ht.prototype.delete=function(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n},Ht.prototype.get=function(e){var n=this.__data__;if(Pt){var t=n[e];return t===o?i:t}return ze.call(n,e)?n[e]:i},Ht.prototype.has=function(e){var n=this.__data__;return Pt?n[e]!==i:ze.call(n,e)},Ht.prototype.set=function(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=Pt&&n===i?o:n,this},Kt.prototype.clear=function(){this.__data__=[],this.size=0},Kt.prototype.delete=function(e){var n=this.__data__,t=ti(n,e);return!(t<0)&&(t==n.length-1?n.pop():Ge.call(n,t,1),--this.size,!0)},Kt.prototype.get=function(e){var n=this.__data__,t=ti(n,e);return t<0?i:n[t][1]},Kt.prototype.has=function(e){return ti(this.__data__,e)>-1},Kt.prototype.set=function(e,n){var t=this.__data__,i=ti(t,e);return i<0?(++this.size,t.push([e,n])):t[i][1]=n,this},$t.prototype.clear=function(){this.size=0,this.__data__={hash:new Ht,map:new(Ot||Kt),string:new Ht}},$t.prototype.delete=function(e){var n=lo(this,e).delete(e);return this.size-=n?1:0,n},$t.prototype.get=function(e){return lo(this,e).get(e)},$t.prototype.has=function(e){return lo(this,e).has(e)},$t.prototype.set=function(e,n){var t=lo(this,e),i=t.size;return t.set(e,n),this.size+=t.size==i?0:1,this},Yt.prototype.add=Yt.prototype.push=function(e){return this.__data__.set(e,o),this},Yt.prototype.has=function(e){return this.__data__.has(e)},Gt.prototype.clear=function(){this.__data__=new Kt,this.size=0},Gt.prototype.delete=function(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t},Gt.prototype.get=function(e){return this.__data__.get(e)},Gt.prototype.has=function(e){return this.__data__.has(e)},Gt.prototype.set=function(e,n){var t=this.__data__;if(t instanceof Kt){var i=t.__data__;if(!Ot||i.length<199)return i.push([e,n]),this.size=++t.size,this;t=this.__data__=new $t(i)}return t.set(e,n),this.size=t.size,this};var di=La(yi),mi=La(wi,!0);function fi(e,n){var t=!0;return di(e,(function(e,i,a){return t=!!n(e,i,a)})),t}function hi(e,n,t){for(var a=-1,o=e.length;++a<o;){var r=e[a],s=n(r);if(null!=s&&(c===i?s==s&&!cs(s):t(s,c)))var c=s,l=r}return l}function vi(e,n){var t=[];return di(e,(function(e,i,a){n(e,i,a)&&t.push(e)})),t}function gi(e,n,t,i,a){var o=-1,r=e.length;for(t||(t=xo),a||(a=[]);++o<r;){var s=e[o];n>0&&t(s)?n>1?gi(s,n-1,t,i,a):Dn(a,s):i||(a[a.length]=s)}return a}var xi=Ra(),bi=Ra(!0);function yi(e,n){return e&&xi(e,n,Is)}function wi(e,n){return e&&bi(e,n,Is)}function _i(e,n){return An(n,(function(n){return Xr(e[n])}))}function ki(e,n){for(var t=0,a=(n=ba(n,e)).length;null!=e&&t<a;)e=e[No(n[t++])];return t&&t==a?e:i}function ji(e,n,t){var i=n(e);return Vr(e)?i:Dn(i,t(e))}function Oi(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in Se(e)?function(e){var n=ze.call(e,Ze),t=e[Ze];try{e[Ze]=i;var a=!0}catch(e){}var o=Me.call(e);a&&(n?e[Ze]=t:delete e[Ze]);return o}(e):function(e){return Me.call(e)}(e)}function Si(e,n){return e>n}function Ci(e,n){return null!=e&&ze.call(e,n)}function Ti(e,n){return null!=e&&n in Se(e)}function Pi(e,n,a){for(var o=a?Rn:Ln,r=e[0].length,s=e.length,c=s,l=t(s),p=1/0,u=[];c--;){var d=e[c];c&&n&&(d=zn(d,Qn(n))),p=bt(d.length,p),l[c]=!a&&(n||r>=120&&d.length>=120)?new Yt(c&&d):i}d=e[0];var m=-1,f=l[0];e:for(;++m<r&&u.length<p;){var h=d[m],v=n?n(h):h;if(h=a||0!==h?h:0,!(f?nt(f,v):o(u,v,a))){for(c=s;--c;){var g=l[c];if(!(g?nt(g,v):o(e[c],v,a)))continue e}f&&f.push(v),u.push(h)}}return u}function Ei(e,n,t){var a=null==(e=To(e,n=ba(n,e)))?e:e[No(Jo(n))];return null==a?i:Cn(a,e,t)}function Ii(e){return ns(e)&&Oi(e)==g}function Ai(e,n,t,a,o){return e===n||(null==e||null==n||!ns(e)&&!ns(n)?e!=e&&n!=n:function(e,n,t,a,o,r){var s=Vr(e),c=Vr(n),l=s?x:ho(e),p=c?x:ho(n),u=(l=l==g?S:l)==S,d=(p=p==g?S:p)==S,m=l==p;if(m&&Yr(e)){if(!Yr(n))return!1;s=!0,u=!1}if(m&&!u)return r||(r=new Gt),s||ls(e)?no(e,n,t,a,o,r):function(e,n,t,i,a,o,r){switch(t){case R:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case L:return!(e.byteLength!=n.byteLength||!o(new Ve(e),new Ve(n)));case b:case y:case O:return Fr(+e,+n);case w:return e.name==n.name&&e.message==n.message;case T:case E:return e==n+"";case j:var s=ct;case P:var c=1&i;if(s||(s=ut),e.size!=n.size&&!c)return!1;var l=r.get(e);if(l)return l==n;i|=2,r.set(e,n);var p=no(s(e),s(n),i,a,o,r);return r.delete(e),p;case I:if(Mt)return Mt.call(e)==Mt.call(n)}return!1}(e,n,l,t,a,o,r);if(!(1&t)){var f=u&&ze.call(e,"__wrapped__"),h=d&&ze.call(n,"__wrapped__");if(f||h){var v=f?e.value():e,_=h?n.value():n;return r||(r=new Gt),o(v,_,t,a,r)}}if(!m)return!1;return r||(r=new Gt),function(e,n,t,a,o,r){var s=1&t,c=io(e),l=c.length,p=io(n),u=p.length;if(l!=u&&!s)return!1;var d=l;for(;d--;){var m=c[d];if(!(s?m in n:ze.call(n,m)))return!1}var f=r.get(e),h=r.get(n);if(f&&h)return f==n&&h==e;var v=!0;r.set(e,n),r.set(n,e);var g=s;for(;++d<l;){var x=e[m=c[d]],b=n[m];if(a)var y=s?a(b,x,m,n,e,r):a(x,b,m,e,n,r);if(!(y===i?x===b||o(x,b,t,a,r):y)){v=!1;break}g||(g="constructor"==m)}if(v&&!g){var w=e.constructor,_=n.constructor;w==_||!("constructor"in e)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(v=!1)}return r.delete(e),r.delete(n),v}(e,n,t,a,o,r)}(e,n,t,a,Ai,o))}function Li(e,n,t,a){var o=t.length,r=o,s=!a;if(null==e)return!r;for(e=Se(e);o--;){var c=t[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<r;){var l=(c=t[o])[0],p=e[l],u=c[1];if(s&&c[2]){if(p===i&&!(l in e))return!1}else{var d=new Gt;if(a)var m=a(p,u,l,e,n,d);if(!(m===i?Ai(u,p,3,a,d):m))return!1}}return!0}function Ri(e){return!(!es(e)||(n=e,Ne&&Ne in n))&&(Xr(e)?Be:ge).test(Mo(e));var n}function zi(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?Vr(e)?Bi(e[0],e[1]):Fi(e):dc(e)}function Di(e){if(!jo(e))return Yn(e);var n=[];for(var t in Se(e))ze.call(e,t)&&"constructor"!=t&&n.push(t);return n}function Ni(e){if(!es(e))return function(e){var n=[];if(null!=e)for(var t in Se(e))n.push(t);return n}(e);var n=jo(e),t=[];for(var i in e)("constructor"!=i||!n&&ze.call(e,i))&&t.push(i);return t}function Mi(e,n){return e<n}function qi(e,n){var i=-1,a=Kr(e)?t(e.length):[];return di(e,(function(e,t,o){a[++i]=n(e,t,o)})),a}function Fi(e){var n=po(e);return 1==n.length&&n[0][2]?So(n[0][0],n[0][1]):function(t){return t===e||Li(t,e,n)}}function Bi(e,n){return wo(e)&&Oo(n)?So(No(e),n):function(t){var a=Ss(t,e);return a===i&&a===n?Cs(t,e):Ai(n,a,3)}}function Ui(e,n,t,a,o){e!==n&&xi(n,(function(r,s){if(o||(o=new Gt),es(r))!function(e,n,t,a,o,r,s){var c=Po(e,t),l=Po(n,t),p=s.get(l);if(p)return void ei(e,t,p);var u=r?r(c,l,t+"",e,n,s):i,d=u===i;if(d){var m=Vr(l),f=!m&&Yr(l),h=!m&&!f&&ls(l);u=l,m||f||h?Vr(c)?u=c:$r(c)?u=Pa(c):f?(d=!1,u=ka(l,!0)):h?(d=!1,u=Oa(l,!0)):u=[]:as(l)||Wr(l)?(u=c,Wr(c)?u=gs(c):es(c)&&!Xr(c)||(u=go(l))):d=!1}d&&(s.set(l,u),o(u,l,a,r,s),s.delete(l));ei(e,t,u)}(e,n,s,t,Ui,a,o);else{var c=a?a(Po(e,s),r,s+"",e,n,o):i;c===i&&(c=r),ei(e,s,c)}}),As)}function Wi(e,n){var t=e.length;if(t)return bo(n+=n<0?t:0,t)?e[n]:i}function Vi(e,n,t){n=n.length?zn(n,(function(e){return Vr(e)?function(n){return ki(n,1===e.length?e[0]:e)}:e})):[ic];var i=-1;n=zn(n,Qn(co()));var a=qi(e,(function(e,t,a){var o=zn(n,(function(n){return n(e)}));return{criteria:o,index:++i,value:e}}));return function(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}(a,(function(e,n){return function(e,n,t){var i=-1,a=e.criteria,o=n.criteria,r=a.length,s=t.length;for(;++i<r;){var c=Sa(a[i],o[i]);if(c)return i>=s?c:c*("desc"==t[i]?-1:1)}return e.index-n.index}(e,n,t)}))}function Hi(e,n,t){for(var i=-1,a=n.length,o={};++i<a;){var r=n[i],s=ki(e,r);t(s,r)&&Qi(o,ba(r,e),s)}return o}function Ki(e,n,t,i){var a=i?Vn:Wn,o=-1,r=n.length,s=e;for(e===n&&(n=Pa(n)),t&&(s=zn(e,Qn(t)));++o<r;)for(var c=0,l=n[o],p=t?t(l):l;(c=a(s,p,c,i))>-1;)s!==e&&Ge.call(s,c,1),Ge.call(e,c,1);return e}function $i(e,n){for(var t=e?n.length:0,i=t-1;t--;){var a=n[t];if(t==i||a!==o){var o=a;bo(a)?Ge.call(e,a,1):ua(e,a)}}return e}function Yi(e,n){return e+vn(_t()*(n-e+1))}function Gi(e,n){var t="";if(!e||n<1||n>m)return t;do{n%2&&(t+=e),(n=vn(n/2))&&(e+=e)}while(n);return t}function Ji(e,n){return Ao(Co(e,n,ic),e+"")}function Xi(e){return Xt(Fs(e))}function Zi(e,n){var t=Fs(e);return zo(t,si(n,0,t.length))}function Qi(e,n,t,a){if(!es(e))return e;for(var o=-1,r=(n=ba(n,e)).length,s=r-1,c=e;null!=c&&++o<r;){var l=No(n[o]),p=t;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=s){var u=c[l];(p=a?a(u,l,c):i)===i&&(p=es(u)?u:bo(n[o+1])?[]:{})}ni(c,l,p),c=c[l]}return e}var ea=Et?function(e,n){return Et.set(e,n),e}:ic,na=nn?function(e,n){return nn(e,"toString",{configurable:!0,enumerable:!1,value:ec(n),writable:!0})}:ic;function ta(e){return zo(Fs(e))}function ia(e,n,i){var a=-1,o=e.length;n<0&&(n=-n>o?0:o+n),(i=i>o?o:i)<0&&(i+=o),o=n>i?0:i-n>>>0,n>>>=0;for(var r=t(o);++a<o;)r[a]=e[a+n];return r}function aa(e,n){var t;return di(e,(function(e,i,a){return!(t=n(e,i,a))})),!!t}function oa(e,n,t){var i=0,a=null==e?i:e.length;if("number"==typeof n&&n==n&&a<=2147483647){for(;i<a;){var o=i+a>>>1,r=e[o];null!==r&&!cs(r)&&(t?r<=n:r<n)?i=o+1:a=o}return a}return ra(e,n,ic,t)}function ra(e,n,t,a){var o=0,r=null==e?0:e.length;if(0===r)return 0;for(var s=(n=t(n))!=n,c=null===n,l=cs(n),p=n===i;o<r;){var u=vn((o+r)/2),d=t(e[u]),m=d!==i,f=null===d,h=d==d,v=cs(d);if(s)var g=a||h;else g=p?h&&(a||m):c?h&&m&&(a||!f):l?h&&m&&!f&&(a||!v):!f&&!v&&(a?d<=n:d<n);g?o=u+1:r=u}return bt(r,4294967294)}function sa(e,n){for(var t=-1,i=e.length,a=0,o=[];++t<i;){var r=e[t],s=n?n(r):r;if(!t||!Fr(s,c)){var c=s;o[a++]=0===r?0:r}}return o}function ca(e){return"number"==typeof e?e:cs(e)?f:+e}function la(e){if("string"==typeof e)return e;if(Vr(e))return zn(e,la)+"";if(cs(e))return qt?qt.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function pa(e,n,t){var i=-1,a=Ln,o=e.length,r=!0,s=[],c=s;if(t)r=!1,a=Rn;else if(o>=200){var l=n?null:Ga(e);if(l)return ut(l);r=!1,a=nt,c=new Yt}else c=n?[]:s;e:for(;++i<o;){var p=e[i],u=n?n(p):p;if(p=t||0!==p?p:0,r&&u==u){for(var d=c.length;d--;)if(c[d]===u)continue e;n&&c.push(u),s.push(p)}else a(c,u,t)||(c!==s&&c.push(u),s.push(p))}return s}function ua(e,n){return null==(e=To(e,n=ba(n,e)))||delete e[No(Jo(n))]}function da(e,n,t,i){return Qi(e,n,t(ki(e,n)),i)}function ma(e,n,t,i){for(var a=e.length,o=i?a:-1;(i?o--:++o<a)&&n(e[o],o,e););return t?ia(e,i?0:o,i?o+1:a):ia(e,i?o+1:0,i?a:o)}function fa(e,n){var t=e;return t instanceof Vt&&(t=t.value()),Nn(n,(function(e,n){return n.func.apply(n.thisArg,Dn([e],n.args))}),t)}function ha(e,n,i){var a=e.length;if(a<2)return a?pa(e[0]):[];for(var o=-1,r=t(a);++o<a;)for(var s=e[o],c=-1;++c<a;)c!=o&&(r[o]=ui(r[o]||s,e[c],n,i));return pa(gi(r,1),n,i)}function va(e,n,t){for(var a=-1,o=e.length,r=n.length,s={};++a<o;){var c=a<r?n[a]:i;t(s,e[a],c)}return s}function ga(e){return $r(e)?e:[]}function xa(e){return"function"==typeof e?e:ic}function ba(e,n){return Vr(e)?e:wo(e,n)?[e]:Do(xs(e))}var ya=Ji;function wa(e,n,t){var a=e.length;return t=t===i?a:t,!n&&t>=a?e:ia(e,n,t)}var _a=an||function(e){return hn.clearTimeout(e)};function ka(e,n){if(n)return e.slice();var t=e.length,i=He?He(t):new e.constructor(t);return e.copy(i),i}function ja(e){var n=new e.constructor(e.byteLength);return new Ve(n).set(new Ve(e)),n}function Oa(e,n){var t=n?ja(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Sa(e,n){if(e!==n){var t=e!==i,a=null===e,o=e==e,r=cs(e),s=n!==i,c=null===n,l=n==n,p=cs(n);if(!c&&!p&&!r&&e>n||r&&s&&l&&!c&&!p||a&&s&&l||!t&&l||!o)return 1;if(!a&&!r&&!p&&e<n||p&&t&&o&&!a&&!r||c&&t&&o||!s&&o||!l)return-1}return 0}function Ca(e,n,i,a){for(var o=-1,r=e.length,s=i.length,c=-1,l=n.length,p=xt(r-s,0),u=t(l+p),d=!a;++c<l;)u[c]=n[c];for(;++o<s;)(d||o<r)&&(u[i[o]]=e[o]);for(;p--;)u[c++]=e[o++];return u}function Ta(e,n,i,a){for(var o=-1,r=e.length,s=-1,c=i.length,l=-1,p=n.length,u=xt(r-c,0),d=t(u+p),m=!a;++o<u;)d[o]=e[o];for(var f=o;++l<p;)d[f+l]=n[l];for(;++s<c;)(m||o<r)&&(d[f+i[s]]=e[o++]);return d}function Pa(e,n){var i=-1,a=e.length;for(n||(n=t(a));++i<a;)n[i]=e[i];return n}function Ea(e,n,t,a){var o=!t;t||(t={});for(var r=-1,s=n.length;++r<s;){var c=n[r],l=a?a(t[c],e[c],c,t,e):i;l===i&&(l=e[c]),o?oi(t,c,l):ni(t,c,l)}return t}function Ia(e,n){return function(t,i){var a=Vr(t)?Tn:ii,o=n?n():{};return a(t,e,co(i,2),o)}}function Aa(e){return Ji((function(n,t){var a=-1,o=t.length,r=o>1?t[o-1]:i,s=o>2?t[2]:i;for(r=e.length>3&&"function"==typeof r?(o--,r):i,s&&yo(t[0],t[1],s)&&(r=o<3?i:r,o=1),n=Se(n);++a<o;){var c=t[a];c&&e(n,c,a,r)}return n}))}function La(e,n){return function(t,i){if(null==t)return t;if(!Kr(t))return e(t,i);for(var a=t.length,o=n?a:-1,r=Se(t);(n?o--:++o<a)&&!1!==i(r[o],o,r););return t}}function Ra(e){return function(n,t,i){for(var a=-1,o=Se(n),r=i(n),s=r.length;s--;){var c=r[e?s:++a];if(!1===t(o[c],c,o))break}return n}}function za(e){return function(n){var t=st(n=xs(n))?ft(n):i,a=t?t[0]:n.charAt(0),o=t?wa(t,1).join(""):n.slice(1);return a[e]()+o}}function Da(e){return function(n){return Nn(Xs(Ws(n).replace(Qe,"")),e,"")}}function Na(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=Bt(e.prototype),i=e.apply(t,n);return es(i)?i:t}}function Ma(e){return function(n,t,a){var o=Se(n);if(!Kr(n)){var r=co(t,3);n=Is(n),t=function(e){return r(o[e],e,o)}}var s=e(n,t,a);return s>-1?o[r?n[s]:s]:i}}function qa(e){return to((function(n){var t=n.length,o=t,r=Wt.prototype.thru;for(e&&n.reverse();o--;){var s=n[o];if("function"!=typeof s)throw new Pe(a);if(r&&!c&&"wrapper"==ro(s))var c=new Wt([],!0)}for(o=c?o:t;++o<t;){var l=ro(s=n[o]),p="wrapper"==l?oo(s):i;c=p&&_o(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?c[ro(p[0])].apply(c,p[3]):1==s.length&&_o(s)?c[l]():c.thru(s)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&Vr(i))return c.plant(i).value();for(var a=0,o=t?n[a].apply(this,e):i;++a<t;)o=n[a].call(this,o);return o}}))}function Fa(e,n,a,o,r,s,c,l,u,d){var m=n&p,f=1&n,h=2&n,v=24&n,g=512&n,x=h?i:Na(e);return function p(){for(var b=arguments.length,y=t(b),w=b;w--;)y[w]=arguments[w];if(v)var _=so(p),k=function(e,n){for(var t=e.length,i=0;t--;)e[t]===n&&++i;return i}(y,_);if(o&&(y=Ca(y,o,r,v)),s&&(y=Ta(y,s,c,v)),b-=k,v&&b<d){var j=pt(y,_);return $a(e,n,Fa,p.placeholder,a,y,j,l,u,d-b)}var O=f?a:this,S=h?O[e]:e;return b=y.length,l?y=function(e,n){var t=e.length,a=bt(n.length,t),o=Pa(e);for(;a--;){var r=n[a];e[a]=bo(r,t)?o[r]:i}return e}(y,l):g&&b>1&&y.reverse(),m&&u<b&&(y.length=u),this&&this!==hn&&this instanceof p&&(S=x||Na(S)),S.apply(O,y)}}function Ba(e,n){return function(t,i){return function(e,n,t,i){return yi(e,(function(e,a,o){n(i,t(e),a,o)})),i}(t,e,n(i),{})}}function Ua(e,n){return function(t,a){var o;if(t===i&&a===i)return n;if(t!==i&&(o=t),a!==i){if(o===i)return a;"string"==typeof t||"string"==typeof a?(t=la(t),a=la(a)):(t=ca(t),a=ca(a)),o=e(t,a)}return o}}function Wa(e){return to((function(n){return n=zn(n,Qn(co())),Ji((function(t){var i=this;return e(n,(function(e){return Cn(e,i,t)}))}))}))}function Va(e,n){var t=(n=n===i?" ":la(n)).length;if(t<2)return t?Gi(n,e):n;var a=Gi(n,fn(e/mt(n)));return st(n)?wa(ft(a),0,e).join(""):a.slice(0,e)}function Ha(e){return function(n,a,o){return o&&"number"!=typeof o&&yo(n,a,o)&&(a=o=i),n=ms(n),a===i?(a=n,n=0):a=ms(a),function(e,n,i,a){for(var o=-1,r=xt(fn((n-e)/(i||1)),0),s=t(r);r--;)s[a?r:++o]=e,e+=i;return s}(n,a,o=o===i?n<a?1:-1:ms(o),e)}}function Ka(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=vs(n),t=vs(t)),e(n,t)}}function $a(e,n,t,a,o,r,s,p,u,d){var m=8&n;n|=m?c:l,4&(n&=~(m?l:c))||(n&=-4);var f=[e,n,o,m?r:i,m?s:i,m?i:r,m?i:s,p,u,d],h=t.apply(i,f);return _o(e)&&Eo(h,f),h.placeholder=a,Lo(h,e,n)}function Ya(e){var n=Oe[e];return function(e,t){if(e=vs(e),(t=null==t?0:bt(fs(t),292))&&yn(e)){var i=(xs(e)+"e").split("e");return+((i=(xs(n(i[0]+"e"+(+i[1]+t)))+"e").split("e"))[0]+"e"+(+i[1]-t))}return n(e)}}var Ga=Ct&&1/ut(new Ct([,-0]))[1]==d?function(e){return new Ct(e)}:cc;function Ja(e){return function(n){var t=ho(n);return t==j?ct(n):t==P?dt(n):function(e,n){return zn(n,(function(n){return[n,e[n]]}))}(n,e(n))}}function Xa(e,n,o,d,m,f,h,v){var g=2&n;if(!g&&"function"!=typeof e)throw new Pe(a);var x=d?d.length:0;if(x||(n&=-97,d=m=i),h=h===i?h:xt(fs(h),0),v=v===i?v:fs(v),x-=m?m.length:0,n&l){var b=d,y=m;d=m=i}var w=g?i:oo(e),_=[e,n,o,d,m,b,y,f,h,v];if(w&&function(e,n){var t=e[1],i=n[1],a=t|i,o=a<131,s=i==p&&8==t||i==p&&t==u&&e[7].length<=n[8]||384==i&&n[7].length<=n[8]&&8==t;if(!o&&!s)return e;1&i&&(e[2]=n[2],a|=1&t?0:4);var c=n[3];if(c){var l=e[3];e[3]=l?Ca(l,c,n[4]):c,e[4]=l?pt(e[3],r):n[4]}(c=n[5])&&(l=e[5],e[5]=l?Ta(l,c,n[6]):c,e[6]=l?pt(e[5],r):n[6]);(c=n[7])&&(e[7]=c);i&p&&(e[8]=null==e[8]?n[8]:bt(e[8],n[8]));null==e[9]&&(e[9]=n[9]);e[0]=n[0],e[1]=a}(_,w),e=_[0],n=_[1],o=_[2],d=_[3],m=_[4],!(v=_[9]=_[9]===i?g?0:e.length:xt(_[9]-x,0))&&24&n&&(n&=-25),n&&1!=n)k=8==n||n==s?function(e,n,a){var o=Na(e);return function r(){for(var s=arguments.length,c=t(s),l=s,p=so(r);l--;)c[l]=arguments[l];var u=s<3&&c[0]!==p&&c[s-1]!==p?[]:pt(c,p);return(s-=u.length)<a?$a(e,n,Fa,r.placeholder,i,c,u,i,i,a-s):Cn(this&&this!==hn&&this instanceof r?o:e,this,c)}}(e,n,v):n!=c&&33!=n||m.length?Fa.apply(i,_):function(e,n,i,a){var o=1&n,r=Na(e);return function n(){for(var s=-1,c=arguments.length,l=-1,p=a.length,u=t(p+c),d=this&&this!==hn&&this instanceof n?r:e;++l<p;)u[l]=a[l];for(;c--;)u[l++]=arguments[++s];return Cn(d,o?i:this,u)}}(e,n,o,d);else var k=function(e,n,t){var i=1&n,a=Na(e);return function n(){return(this&&this!==hn&&this instanceof n?a:e).apply(i?t:this,arguments)}}(e,n,o);return Lo((w?ea:Eo)(k,_),e,n)}function Za(e,n,t,a){return e===i||Fr(e,Ae[t])&&!ze.call(a,t)?n:e}function Qa(e,n,t,a,o,r){return es(e)&&es(n)&&(r.set(n,e),Ui(e,n,i,Qa,r),r.delete(n)),e}function eo(e){return as(e)?i:e}function no(e,n,t,a,o,r){var s=1&t,c=e.length,l=n.length;if(c!=l&&!(s&&l>c))return!1;var p=r.get(e),u=r.get(n);if(p&&u)return p==n&&u==e;var d=-1,m=!0,f=2&t?new Yt:i;for(r.set(e,n),r.set(n,e);++d<c;){var h=e[d],v=n[d];if(a)var g=s?a(v,h,d,n,e,r):a(h,v,d,e,n,r);if(g!==i){if(g)continue;m=!1;break}if(f){if(!qn(n,(function(e,n){if(!nt(f,n)&&(h===e||o(h,e,t,a,r)))return f.push(n)}))){m=!1;break}}else if(h!==v&&!o(h,v,t,a,r)){m=!1;break}}return r.delete(e),r.delete(n),m}function to(e){return Ao(Co(e,i,Ho),e+"")}function io(e){return ji(e,Is,mo)}function ao(e){return ji(e,As,fo)}var oo=Et?function(e){return Et.get(e)}:cc;function ro(e){for(var n=e.name+"",t=It[n],i=ze.call(It,n)?t.length:0;i--;){var a=t[i],o=a.func;if(null==o||o==e)return a.name}return n}function so(e){return(ze.call(Ft,"placeholder")?Ft:e).placeholder}function co(){var e=Ft.iteratee||ac;return e=e===ac?zi:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,n){var t,i,a=e.__data__;return("string"==(i=typeof(t=n))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==t:null===t)?a["string"==typeof n?"string":"hash"]:a.map}function po(e){for(var n=Is(e),t=n.length;t--;){var i=n[t],a=e[i];n[t]=[i,a,Oo(a)]}return n}function uo(e,n){var t=function(e,n){return null==e?i:e[n]}(e,n);return Ri(t)?t:i}var mo=gn?function(e){return null==e?[]:(e=Se(e),An(gn(e),(function(n){return Ye.call(e,n)})))}:hc,fo=gn?function(e){for(var n=[];e;)Dn(n,mo(e)),e=Ke(e);return n}:hc,ho=Oi;function vo(e,n,t){for(var i=-1,a=(n=ba(n,e)).length,o=!1;++i<a;){var r=No(n[i]);if(!(o=null!=e&&t(e,r)))break;e=e[r]}return o||++i!=a?o:!!(a=null==e?0:e.length)&&Qr(a)&&bo(r,a)&&(Vr(e)||Wr(e))}function go(e){return"function"!=typeof e.constructor||jo(e)?{}:Bt(Ke(e))}function xo(e){return Vr(e)||Wr(e)||!!(Je&&e&&e[Je])}function bo(e,n){var t=typeof e;return!!(n=null==n?m:n)&&("number"==t||"symbol"!=t&&be.test(e))&&e>-1&&e%1==0&&e<n}function yo(e,n,t){if(!es(t))return!1;var i=typeof n;return!!("number"==i?Kr(t)&&bo(n,t.length):"string"==i&&n in t)&&Fr(t[n],e)}function wo(e,n){if(Vr(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!cs(e))||(ne.test(e)||!ee.test(e)||null!=n&&e in Se(n))}function _o(e){var n=ro(e),t=Ft[n];if("function"!=typeof t||!(n in Vt.prototype))return!1;if(e===t)return!0;var i=oo(t);return!!i&&e===i[0]}(jt&&ho(new jt(new ArrayBuffer(1)))!=R||Ot&&ho(new Ot)!=j||St&&ho(St.resolve())!=C||Ct&&ho(new Ct)!=P||Tt&&ho(new Tt)!=A)&&(ho=function(e){var n=Oi(e),t=n==S?e.constructor:i,a=t?Mo(t):"";if(a)switch(a){case At:return R;case Lt:return j;case Rt:return C;case zt:return P;case Dt:return A}return n});var ko=Le?Xr:vc;function jo(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||Ae)}function Oo(e){return e==e&&!es(e)}function So(e,n){return function(t){return null!=t&&(t[e]===n&&(n!==i||e in Se(t)))}}function Co(e,n,a){return n=xt(n===i?e.length-1:n,0),function(){for(var i=arguments,o=-1,r=xt(i.length-n,0),s=t(r);++o<r;)s[o]=i[n+o];o=-1;for(var c=t(n+1);++o<n;)c[o]=i[o];return c[n]=a(s),Cn(e,this,c)}}function To(e,n){return n.length<2?e:ki(e,ia(n,0,-1))}function Po(e,n){if(("constructor"!==n||"function"!=typeof e[n])&&"__proto__"!=n)return e[n]}var Eo=Ro(ea),Io=mn||function(e,n){return hn.setTimeout(e,n)},Ao=Ro(na);function Lo(e,n,t){var i=n+"";return Ao(e,function(e,n){var t=n.length;if(!t)return e;var i=t-1;return n[i]=(t>1?"& ":"")+n[i],n=n.join(t>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+n+"] */\n")}(i,function(e,n){return Pn(v,(function(t){var i="_."+t[0];n&t[1]&&!Ln(e,i)&&e.push(i)})),e.sort()}(function(e){var n=e.match(ce);return n?n[1].split(le):[]}(i),t)))}function Ro(e){var n=0,t=0;return function(){var a=yt(),o=16-(a-t);if(t=a,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(i,arguments)}}function zo(e,n){var t=-1,a=e.length,o=a-1;for(n=n===i?a:n;++t<n;){var r=Yi(t,o),s=e[r];e[r]=e[t],e[t]=s}return e.length=n,e}var Do=function(e){var n=Rr(e,(function(e){return 500===t.size&&t.clear(),e})),t=n.cache;return n}((function(e){var n=[];return 46===e.charCodeAt(0)&&n.push(""),e.replace(te,(function(e,t,i,a){n.push(i?a.replace(de,"$1"):t||e)})),n}));function No(e){if("string"==typeof e||cs(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}function Mo(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function qo(e){if(e instanceof Vt)return e.clone();var n=new Wt(e.__wrapped__,e.__chain__);return n.__actions__=Pa(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}var Fo=Ji((function(e,n){return $r(e)?ui(e,gi(n,1,$r,!0)):[]})),Bo=Ji((function(e,n){var t=Jo(n);return $r(t)&&(t=i),$r(e)?ui(e,gi(n,1,$r,!0),co(t,2)):[]})),Uo=Ji((function(e,n){var t=Jo(n);return $r(t)&&(t=i),$r(e)?ui(e,gi(n,1,$r,!0),i,t):[]}));function Wo(e,n,t){var i=null==e?0:e.length;if(!i)return-1;var a=null==t?0:fs(t);return a<0&&(a=xt(i+a,0)),Un(e,co(n,3),a)}function Vo(e,n,t){var a=null==e?0:e.length;if(!a)return-1;var o=a-1;return t!==i&&(o=fs(t),o=t<0?xt(a+o,0):bt(o,a-1)),Un(e,co(n,3),o,!0)}function Ho(e){return(null==e?0:e.length)?gi(e,1):[]}function Ko(e){return e&&e.length?e[0]:i}var $o=Ji((function(e){var n=zn(e,ga);return n.length&&n[0]===e[0]?Pi(n):[]})),Yo=Ji((function(e){var n=Jo(e),t=zn(e,ga);return n===Jo(t)?n=i:t.pop(),t.length&&t[0]===e[0]?Pi(t,co(n,2)):[]})),Go=Ji((function(e){var n=Jo(e),t=zn(e,ga);return(n="function"==typeof n?n:i)&&t.pop(),t.length&&t[0]===e[0]?Pi(t,i,n):[]}));function Jo(e){var n=null==e?0:e.length;return n?e[n-1]:i}var Xo=Ji(Zo);function Zo(e,n){return e&&e.length&&n&&n.length?Ki(e,n):e}var Qo=to((function(e,n){var t=null==e?0:e.length,i=ri(e,n);return $i(e,zn(n,(function(e){return bo(e,t)?+e:e})).sort(Sa)),i}));function er(e){return null==e?e:kt.call(e)}var nr=Ji((function(e){return pa(gi(e,1,$r,!0))})),tr=Ji((function(e){var n=Jo(e);return $r(n)&&(n=i),pa(gi(e,1,$r,!0),co(n,2))})),ir=Ji((function(e){var n=Jo(e);return n="function"==typeof n?n:i,pa(gi(e,1,$r,!0),i,n)}));function ar(e){if(!e||!e.length)return[];var n=0;return e=An(e,(function(e){if($r(e))return n=xt(e.length,n),!0})),Xn(n,(function(n){return zn(e,$n(n))}))}function or(e,n){if(!e||!e.length)return[];var t=ar(e);return null==n?t:zn(t,(function(e){return Cn(n,i,e)}))}var rr=Ji((function(e,n){return $r(e)?ui(e,n):[]})),sr=Ji((function(e){return ha(An(e,$r))})),cr=Ji((function(e){var n=Jo(e);return $r(n)&&(n=i),ha(An(e,$r),co(n,2))})),lr=Ji((function(e){var n=Jo(e);return n="function"==typeof n?n:i,ha(An(e,$r),i,n)})),pr=Ji(ar);var ur=Ji((function(e){var n=e.length,t=n>1?e[n-1]:i;return t="function"==typeof t?(e.pop(),t):i,or(e,t)}));function dr(e){var n=Ft(e);return n.__chain__=!0,n}function mr(e,n){return n(e)}var fr=to((function(e){var n=e.length,t=n?e[0]:0,a=this.__wrapped__,o=function(n){return ri(n,e)};return!(n>1||this.__actions__.length)&&a instanceof Vt&&bo(t)?((a=a.slice(t,+t+(n?1:0))).__actions__.push({func:mr,args:[o],thisArg:i}),new Wt(a,this.__chain__).thru((function(e){return n&&!e.length&&e.push(i),e}))):this.thru(o)}));var hr=Ia((function(e,n,t){ze.call(e,t)?++e[t]:oi(e,t,1)}));var vr=Ma(Wo),gr=Ma(Vo);function xr(e,n){return(Vr(e)?Pn:di)(e,co(n,3))}function br(e,n){return(Vr(e)?En:mi)(e,co(n,3))}var yr=Ia((function(e,n,t){ze.call(e,t)?e[t].push(n):oi(e,t,[n])}));var wr=Ji((function(e,n,i){var a=-1,o="function"==typeof n,r=Kr(e)?t(e.length):[];return di(e,(function(e){r[++a]=o?Cn(n,e,i):Ei(e,n,i)})),r})),_r=Ia((function(e,n,t){oi(e,t,n)}));function kr(e,n){return(Vr(e)?zn:qi)(e,co(n,3))}var jr=Ia((function(e,n,t){e[t?0:1].push(n)}),(function(){return[[],[]]}));var Or=Ji((function(e,n){if(null==e)return[];var t=n.length;return t>1&&yo(e,n[0],n[1])?n=[]:t>2&&yo(n[0],n[1],n[2])&&(n=[n[0]]),Vi(e,gi(n,1),[])})),Sr=pn||function(){return hn.Date.now()};function Cr(e,n,t){return n=t?i:n,n=e&&null==n?e.length:n,Xa(e,p,i,i,i,i,n)}function Tr(e,n){var t;if("function"!=typeof n)throw new Pe(a);return e=fs(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=i),t}}var Pr=Ji((function(e,n,t){var i=1;if(t.length){var a=pt(t,so(Pr));i|=c}return Xa(e,i,n,t,a)})),Er=Ji((function(e,n,t){var i=3;if(t.length){var a=pt(t,so(Er));i|=c}return Xa(n,i,e,t,a)}));function Ir(e,n,t){var o,r,s,c,l,p,u=0,d=!1,m=!1,f=!0;if("function"!=typeof e)throw new Pe(a);function h(n){var t=o,a=r;return o=r=i,u=n,c=e.apply(a,t)}function v(e){var t=e-p;return p===i||t>=n||t<0||m&&e-u>=s}function g(){var e=Sr();if(v(e))return x(e);l=Io(g,function(e){var t=n-(e-p);return m?bt(t,s-(e-u)):t}(e))}function x(e){return l=i,f&&o?h(e):(o=r=i,c)}function b(){var e=Sr(),t=v(e);if(o=arguments,r=this,p=e,t){if(l===i)return function(e){return u=e,l=Io(g,n),d?h(e):c}(p);if(m)return _a(l),l=Io(g,n),h(p)}return l===i&&(l=Io(g,n)),c}return n=vs(n)||0,es(t)&&(d=!!t.leading,s=(m="maxWait"in t)?xt(vs(t.maxWait)||0,n):s,f="trailing"in t?!!t.trailing:f),b.cancel=function(){l!==i&&_a(l),u=0,o=p=r=l=i},b.flush=function(){return l===i?c:x(Sr())},b}var Ar=Ji((function(e,n){return pi(e,1,n)})),Lr=Ji((function(e,n,t){return pi(e,vs(n)||0,t)}));function Rr(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Pe(a);var t=function(){var i=arguments,a=n?n.apply(this,i):i[0],o=t.cache;if(o.has(a))return o.get(a);var r=e.apply(this,i);return t.cache=o.set(a,r)||o,r};return t.cache=new(Rr.Cache||$t),t}function zr(e){if("function"!=typeof e)throw new Pe(a);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}Rr.Cache=$t;var Dr=ya((function(e,n){var t=(n=1==n.length&&Vr(n[0])?zn(n[0],Qn(co())):zn(gi(n,1),Qn(co()))).length;return Ji((function(i){for(var a=-1,o=bt(i.length,t);++a<o;)i[a]=n[a].call(this,i[a]);return Cn(e,this,i)}))})),Nr=Ji((function(e,n){var t=pt(n,so(Nr));return Xa(e,c,i,n,t)})),Mr=Ji((function(e,n){var t=pt(n,so(Mr));return Xa(e,l,i,n,t)})),qr=to((function(e,n){return Xa(e,u,i,i,i,n)}));function Fr(e,n){return e===n||e!=e&&n!=n}var Br=Ka(Si),Ur=Ka((function(e,n){return e>=n})),Wr=Ii(function(){return arguments}())?Ii:function(e){return ns(e)&&ze.call(e,"callee")&&!Ye.call(e,"callee")},Vr=t.isArray,Hr=wn?Qn(wn):function(e){return ns(e)&&Oi(e)==L};function Kr(e){return null!=e&&Qr(e.length)&&!Xr(e)}function $r(e){return ns(e)&&Kr(e)}var Yr=bn||vc,Gr=_n?Qn(_n):function(e){return ns(e)&&Oi(e)==y};function Jr(e){if(!ns(e))return!1;var n=Oi(e);return n==w||"[object DOMException]"==n||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Xr(e){if(!es(e))return!1;var n=Oi(e);return n==_||n==k||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Zr(e){return"number"==typeof e&&e==fs(e)}function Qr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function es(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function ns(e){return null!=e&&"object"==typeof e}var ts=kn?Qn(kn):function(e){return ns(e)&&ho(e)==j};function is(e){return"number"==typeof e||ns(e)&&Oi(e)==O}function as(e){if(!ns(e)||Oi(e)!=S)return!1;var n=Ke(e);if(null===n)return!0;var t=ze.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&Re.call(t)==qe}var os=jn?Qn(jn):function(e){return ns(e)&&Oi(e)==T};var rs=On?Qn(On):function(e){return ns(e)&&ho(e)==P};function ss(e){return"string"==typeof e||!Vr(e)&&ns(e)&&Oi(e)==E}function cs(e){return"symbol"==typeof e||ns(e)&&Oi(e)==I}var ls=Sn?Qn(Sn):function(e){return ns(e)&&Qr(e.length)&&!!cn[Oi(e)]};var ps=Ka(Mi),us=Ka((function(e,n){return e<=n}));function ds(e){if(!e)return[];if(Kr(e))return ss(e)?ft(e):Pa(e);if(Xe&&e[Xe])return function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t}(e[Xe]());var n=ho(e);return(n==j?ct:n==P?ut:Fs)(e)}function ms(e){return e?(e=vs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var n=ms(e),t=n%1;return n==n?t?n-t:n:0}function hs(e){return e?si(fs(e),0,h):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return f;if(es(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=es(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=Zn(e);var t=ve.test(e);return t||xe.test(e)?dn(e.slice(2),t?2:8):he.test(e)?f:+e}function gs(e){return Ea(e,As(e))}function xs(e){return null==e?"":la(e)}var bs=Aa((function(e,n){if(jo(n)||Kr(n))Ea(n,Is(n),e);else for(var t in n)ze.call(n,t)&&ni(e,t,n[t])})),ys=Aa((function(e,n){Ea(n,As(n),e)})),ws=Aa((function(e,n,t,i){Ea(n,As(n),e,i)})),_s=Aa((function(e,n,t,i){Ea(n,Is(n),e,i)})),ks=to(ri);var js=Ji((function(e,n){e=Se(e);var t=-1,a=n.length,o=a>2?n[2]:i;for(o&&yo(n[0],n[1],o)&&(a=1);++t<a;)for(var r=n[t],s=As(r),c=-1,l=s.length;++c<l;){var p=s[c],u=e[p];(u===i||Fr(u,Ae[p])&&!ze.call(e,p))&&(e[p]=r[p])}return e})),Os=Ji((function(e){return e.push(i,Qa),Cn(Rs,i,e)}));function Ss(e,n,t){var a=null==e?i:ki(e,n);return a===i?t:a}function Cs(e,n){return null!=e&&vo(e,n,Ti)}var Ts=Ba((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Me.call(n)),e[n]=t}),ec(ic)),Ps=Ba((function(e,n,t){null!=n&&"function"!=typeof n.toString&&(n=Me.call(n)),ze.call(e,n)?e[n].push(t):e[n]=[t]}),co),Es=Ji(Ei);function Is(e){return Kr(e)?Jt(e):Di(e)}function As(e){return Kr(e)?Jt(e,!0):Ni(e)}var Ls=Aa((function(e,n,t){Ui(e,n,t)})),Rs=Aa((function(e,n,t,i){Ui(e,n,t,i)})),zs=to((function(e,n){var t={};if(null==e)return t;var i=!1;n=zn(n,(function(n){return n=ba(n,e),i||(i=n.length>1),n})),Ea(e,ao(e),t),i&&(t=ci(t,7,eo));for(var a=n.length;a--;)ua(t,n[a]);return t}));var Ds=to((function(e,n){return null==e?{}:function(e,n){return Hi(e,n,(function(n,t){return Cs(e,t)}))}(e,n)}));function Ns(e,n){if(null==e)return{};var t=zn(ao(e),(function(e){return[e]}));return n=co(n),Hi(e,t,(function(e,t){return n(e,t[0])}))}var Ms=Ja(Is),qs=Ja(As);function Fs(e){return null==e?[]:et(e,Is(e))}var Bs=Da((function(e,n,t){return n=n.toLowerCase(),e+(t?Us(n):n)}));function Us(e){return Js(xs(e).toLowerCase())}function Ws(e){return(e=xs(e))&&e.replace(ye,at).replace(en,"")}var Vs=Da((function(e,n,t){return e+(t?"-":"")+n.toLowerCase()})),Hs=Da((function(e,n,t){return e+(t?" ":"")+n.toLowerCase()})),Ks=za("toLowerCase");var $s=Da((function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}));var Ys=Da((function(e,n,t){return e+(t?" ":"")+Js(n)}));var Gs=Da((function(e,n,t){return e+(t?" ":"")+n.toUpperCase()})),Js=za("toUpperCase");function Xs(e,n,t){return e=xs(e),(n=t?i:n)===i?function(e){return on.test(e)}(e)?function(e){return e.match(tn)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(n)||[]}var Zs=Ji((function(e,n){try{return Cn(e,i,n)}catch(e){return Jr(e)?e:new ke(e)}})),Qs=to((function(e,n){return Pn(n,(function(n){n=No(n),oi(e,n,Pr(e[n],e))})),e}));function ec(e){return function(){return e}}var nc=qa(),tc=qa(!0);function ic(e){return e}function ac(e){return zi("function"==typeof e?e:ci(e,1))}var oc=Ji((function(e,n){return function(t){return Ei(t,e,n)}})),rc=Ji((function(e,n){return function(t){return Ei(e,t,n)}}));function sc(e,n,t){var i=Is(n),a=_i(n,i);null!=t||es(n)&&(a.length||!i.length)||(t=n,n=e,e=this,a=_i(n,Is(n)));var o=!(es(t)&&"chain"in t&&!t.chain),r=Xr(e);return Pn(a,(function(t){var i=n[t];e[t]=i,r&&(e.prototype[t]=function(){var n=this.__chain__;if(o||n){var t=e(this.__wrapped__);return(t.__actions__=Pa(this.__actions__)).push({func:i,args:arguments,thisArg:e}),t.__chain__=n,t}return i.apply(e,Dn([this.value()],arguments))})})),e}function cc(){}var lc=Wa(zn),pc=Wa(In),uc=Wa(qn);function dc(e){return wo(e)?$n(No(e)):function(e){return function(n){return ki(n,e)}}(e)}var mc=Ha(),fc=Ha(!0);function hc(){return[]}function vc(){return!1}var gc=Ua((function(e,n){return e+n}),0),xc=Ya("ceil"),bc=Ua((function(e,n){return e/n}),1),yc=Ya("floor");var wc,_c=Ua((function(e,n){return e*n}),1),kc=Ya("round"),jc=Ua((function(e,n){return e-n}),0);return Ft.after=function(e,n){if("function"!=typeof n)throw new Pe(a);return e=fs(e),function(){if(--e<1)return n.apply(this,arguments)}},Ft.ary=Cr,Ft.assign=bs,Ft.assignIn=ys,Ft.assignInWith=ws,Ft.assignWith=_s,Ft.at=ks,Ft.before=Tr,Ft.bind=Pr,Ft.bindAll=Qs,Ft.bindKey=Er,Ft.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Vr(e)?e:[e]},Ft.chain=dr,Ft.chunk=function(e,n,a){n=(a?yo(e,n,a):n===i)?1:xt(fs(n),0);var o=null==e?0:e.length;if(!o||n<1)return[];for(var r=0,s=0,c=t(fn(o/n));r<o;)c[s++]=ia(e,r,r+=n);return c},Ft.compact=function(e){for(var n=-1,t=null==e?0:e.length,i=0,a=[];++n<t;){var o=e[n];o&&(a[i++]=o)}return a},Ft.concat=function(){var e=arguments.length;if(!e)return[];for(var n=t(e-1),i=arguments[0],a=e;a--;)n[a-1]=arguments[a];return Dn(Vr(i)?Pa(i):[i],gi(n,1))},Ft.cond=function(e){var n=null==e?0:e.length,t=co();return e=n?zn(e,(function(e){if("function"!=typeof e[1])throw new Pe(a);return[t(e[0]),e[1]]})):[],Ji((function(t){for(var i=-1;++i<n;){var a=e[i];if(Cn(a[0],this,t))return Cn(a[1],this,t)}}))},Ft.conforms=function(e){return function(e){var n=Is(e);return function(t){return li(t,e,n)}}(ci(e,1))},Ft.constant=ec,Ft.countBy=hr,Ft.create=function(e,n){var t=Bt(e);return null==n?t:ai(t,n)},Ft.curry=function e(n,t,a){var o=Xa(n,8,i,i,i,i,i,t=a?i:t);return o.placeholder=e.placeholder,o},Ft.curryRight=function e(n,t,a){var o=Xa(n,s,i,i,i,i,i,t=a?i:t);return o.placeholder=e.placeholder,o},Ft.debounce=Ir,Ft.defaults=js,Ft.defaultsDeep=Os,Ft.defer=Ar,Ft.delay=Lr,Ft.difference=Fo,Ft.differenceBy=Bo,Ft.differenceWith=Uo,Ft.drop=function(e,n,t){var a=null==e?0:e.length;return a?ia(e,(n=t||n===i?1:fs(n))<0?0:n,a):[]},Ft.dropRight=function(e,n,t){var a=null==e?0:e.length;return a?ia(e,0,(n=a-(n=t||n===i?1:fs(n)))<0?0:n):[]},Ft.dropRightWhile=function(e,n){return e&&e.length?ma(e,co(n,3),!0,!0):[]},Ft.dropWhile=function(e,n){return e&&e.length?ma(e,co(n,3),!0):[]},Ft.fill=function(e,n,t,a){var o=null==e?0:e.length;return o?(t&&"number"!=typeof t&&yo(e,n,t)&&(t=0,a=o),function(e,n,t,a){var o=e.length;for((t=fs(t))<0&&(t=-t>o?0:o+t),(a=a===i||a>o?o:fs(a))<0&&(a+=o),a=t>a?0:hs(a);t<a;)e[t++]=n;return e}(e,n,t,a)):[]},Ft.filter=function(e,n){return(Vr(e)?An:vi)(e,co(n,3))},Ft.flatMap=function(e,n){return gi(kr(e,n),1)},Ft.flatMapDeep=function(e,n){return gi(kr(e,n),d)},Ft.flatMapDepth=function(e,n,t){return t=t===i?1:fs(t),gi(kr(e,n),t)},Ft.flatten=Ho,Ft.flattenDeep=function(e){return(null==e?0:e.length)?gi(e,d):[]},Ft.flattenDepth=function(e,n){return(null==e?0:e.length)?gi(e,n=n===i?1:fs(n)):[]},Ft.flip=function(e){return Xa(e,512)},Ft.flow=nc,Ft.flowRight=tc,Ft.fromPairs=function(e){for(var n=-1,t=null==e?0:e.length,i={};++n<t;){var a=e[n];i[a[0]]=a[1]}return i},Ft.functions=function(e){return null==e?[]:_i(e,Is(e))},Ft.functionsIn=function(e){return null==e?[]:_i(e,As(e))},Ft.groupBy=yr,Ft.initial=function(e){return(null==e?0:e.length)?ia(e,0,-1):[]},Ft.intersection=$o,Ft.intersectionBy=Yo,Ft.intersectionWith=Go,Ft.invert=Ts,Ft.invertBy=Ps,Ft.invokeMap=wr,Ft.iteratee=ac,Ft.keyBy=_r,Ft.keys=Is,Ft.keysIn=As,Ft.map=kr,Ft.mapKeys=function(e,n){var t={};return n=co(n,3),yi(e,(function(e,i,a){oi(t,n(e,i,a),e)})),t},Ft.mapValues=function(e,n){var t={};return n=co(n,3),yi(e,(function(e,i,a){oi(t,i,n(e,i,a))})),t},Ft.matches=function(e){return Fi(ci(e,1))},Ft.matchesProperty=function(e,n){return Bi(e,ci(n,1))},Ft.memoize=Rr,Ft.merge=Ls,Ft.mergeWith=Rs,Ft.method=oc,Ft.methodOf=rc,Ft.mixin=sc,Ft.negate=zr,Ft.nthArg=function(e){return e=fs(e),Ji((function(n){return Wi(n,e)}))},Ft.omit=zs,Ft.omitBy=function(e,n){return Ns(e,zr(co(n)))},Ft.once=function(e){return Tr(2,e)},Ft.orderBy=function(e,n,t,a){return null==e?[]:(Vr(n)||(n=null==n?[]:[n]),Vr(t=a?i:t)||(t=null==t?[]:[t]),Vi(e,n,t))},Ft.over=lc,Ft.overArgs=Dr,Ft.overEvery=pc,Ft.overSome=uc,Ft.partial=Nr,Ft.partialRight=Mr,Ft.partition=jr,Ft.pick=Ds,Ft.pickBy=Ns,Ft.property=dc,Ft.propertyOf=function(e){return function(n){return null==e?i:ki(e,n)}},Ft.pull=Xo,Ft.pullAll=Zo,Ft.pullAllBy=function(e,n,t){return e&&e.length&&n&&n.length?Ki(e,n,co(t,2)):e},Ft.pullAllWith=function(e,n,t){return e&&e.length&&n&&n.length?Ki(e,n,i,t):e},Ft.pullAt=Qo,Ft.range=mc,Ft.rangeRight=fc,Ft.rearg=qr,Ft.reject=function(e,n){return(Vr(e)?An:vi)(e,zr(co(n,3)))},Ft.remove=function(e,n){var t=[];if(!e||!e.length)return t;var i=-1,a=[],o=e.length;for(n=co(n,3);++i<o;){var r=e[i];n(r,i,e)&&(t.push(r),a.push(i))}return $i(e,a),t},Ft.rest=function(e,n){if("function"!=typeof e)throw new Pe(a);return Ji(e,n=n===i?n:fs(n))},Ft.reverse=er,Ft.sampleSize=function(e,n,t){return n=(t?yo(e,n,t):n===i)?1:fs(n),(Vr(e)?Zt:Zi)(e,n)},Ft.set=function(e,n,t){return null==e?e:Qi(e,n,t)},Ft.setWith=function(e,n,t,a){return a="function"==typeof a?a:i,null==e?e:Qi(e,n,t,a)},Ft.shuffle=function(e){return(Vr(e)?Qt:ta)(e)},Ft.slice=function(e,n,t){var a=null==e?0:e.length;return a?(t&&"number"!=typeof t&&yo(e,n,t)?(n=0,t=a):(n=null==n?0:fs(n),t=t===i?a:fs(t)),ia(e,n,t)):[]},Ft.sortBy=Or,Ft.sortedUniq=function(e){return e&&e.length?sa(e):[]},Ft.sortedUniqBy=function(e,n){return e&&e.length?sa(e,co(n,2)):[]},Ft.split=function(e,n,t){return t&&"number"!=typeof t&&yo(e,n,t)&&(n=t=i),(t=t===i?h:t>>>0)?(e=xs(e))&&("string"==typeof n||null!=n&&!os(n))&&!(n=la(n))&&st(e)?wa(ft(e),0,t):e.split(n,t):[]},Ft.spread=function(e,n){if("function"!=typeof e)throw new Pe(a);return n=null==n?0:xt(fs(n),0),Ji((function(t){var i=t[n],a=wa(t,0,n);return i&&Dn(a,i),Cn(e,this,a)}))},Ft.tail=function(e){var n=null==e?0:e.length;return n?ia(e,1,n):[]},Ft.take=function(e,n,t){return e&&e.length?ia(e,0,(n=t||n===i?1:fs(n))<0?0:n):[]},Ft.takeRight=function(e,n,t){var a=null==e?0:e.length;return a?ia(e,(n=a-(n=t||n===i?1:fs(n)))<0?0:n,a):[]},Ft.takeRightWhile=function(e,n){return e&&e.length?ma(e,co(n,3),!1,!0):[]},Ft.takeWhile=function(e,n){return e&&e.length?ma(e,co(n,3)):[]},Ft.tap=function(e,n){return n(e),e},Ft.throttle=function(e,n,t){var i=!0,o=!0;if("function"!=typeof e)throw new Pe(a);return es(t)&&(i="leading"in t?!!t.leading:i,o="trailing"in t?!!t.trailing:o),Ir(e,n,{leading:i,maxWait:n,trailing:o})},Ft.thru=mr,Ft.toArray=ds,Ft.toPairs=Ms,Ft.toPairsIn=qs,Ft.toPath=function(e){return Vr(e)?zn(e,No):cs(e)?[e]:Pa(Do(xs(e)))},Ft.toPlainObject=gs,Ft.transform=function(e,n,t){var i=Vr(e),a=i||Yr(e)||ls(e);if(n=co(n,4),null==t){var o=e&&e.constructor;t=a?i?new o:[]:es(e)&&Xr(o)?Bt(Ke(e)):{}}return(a?Pn:yi)(e,(function(e,i,a){return n(t,e,i,a)})),t},Ft.unary=function(e){return Cr(e,1)},Ft.union=nr,Ft.unionBy=tr,Ft.unionWith=ir,Ft.uniq=function(e){return e&&e.length?pa(e):[]},Ft.uniqBy=function(e,n){return e&&e.length?pa(e,co(n,2)):[]},Ft.uniqWith=function(e,n){return n="function"==typeof n?n:i,e&&e.length?pa(e,i,n):[]},Ft.unset=function(e,n){return null==e||ua(e,n)},Ft.unzip=ar,Ft.unzipWith=or,Ft.update=function(e,n,t){return null==e?e:da(e,n,xa(t))},Ft.updateWith=function(e,n,t,a){return a="function"==typeof a?a:i,null==e?e:da(e,n,xa(t),a)},Ft.values=Fs,Ft.valuesIn=function(e){return null==e?[]:et(e,As(e))},Ft.without=rr,Ft.words=Xs,Ft.wrap=function(e,n){return Nr(xa(n),e)},Ft.xor=sr,Ft.xorBy=cr,Ft.xorWith=lr,Ft.zip=pr,Ft.zipObject=function(e,n){return va(e||[],n||[],ni)},Ft.zipObjectDeep=function(e,n){return va(e||[],n||[],Qi)},Ft.zipWith=ur,Ft.entries=Ms,Ft.entriesIn=qs,Ft.extend=ys,Ft.extendWith=ws,sc(Ft,Ft),Ft.add=gc,Ft.attempt=Zs,Ft.camelCase=Bs,Ft.capitalize=Us,Ft.ceil=xc,Ft.clamp=function(e,n,t){return t===i&&(t=n,n=i),t!==i&&(t=(t=vs(t))==t?t:0),n!==i&&(n=(n=vs(n))==n?n:0),si(vs(e),n,t)},Ft.clone=function(e){return ci(e,4)},Ft.cloneDeep=function(e){return ci(e,5)},Ft.cloneDeepWith=function(e,n){return ci(e,5,n="function"==typeof n?n:i)},Ft.cloneWith=function(e,n){return ci(e,4,n="function"==typeof n?n:i)},Ft.conformsTo=function(e,n){return null==n||li(e,n,Is(n))},Ft.deburr=Ws,Ft.defaultTo=function(e,n){return null==e||e!=e?n:e},Ft.divide=bc,Ft.endsWith=function(e,n,t){e=xs(e),n=la(n);var a=e.length,o=t=t===i?a:si(fs(t),0,a);return(t-=n.length)>=0&&e.slice(t,o)==n},Ft.eq=Fr,Ft.escape=function(e){return(e=xs(e))&&J.test(e)?e.replace(Y,ot):e},Ft.escapeRegExp=function(e){return(e=xs(e))&&ae.test(e)?e.replace(ie,"\\$&"):e},Ft.every=function(e,n,t){var a=Vr(e)?In:fi;return t&&yo(e,n,t)&&(n=i),a(e,co(n,3))},Ft.find=vr,Ft.findIndex=Wo,Ft.findKey=function(e,n){return Bn(e,co(n,3),yi)},Ft.findLast=gr,Ft.findLastIndex=Vo,Ft.findLastKey=function(e,n){return Bn(e,co(n,3),wi)},Ft.floor=yc,Ft.forEach=xr,Ft.forEachRight=br,Ft.forIn=function(e,n){return null==e?e:xi(e,co(n,3),As)},Ft.forInRight=function(e,n){return null==e?e:bi(e,co(n,3),As)},Ft.forOwn=function(e,n){return e&&yi(e,co(n,3))},Ft.forOwnRight=function(e,n){return e&&wi(e,co(n,3))},Ft.get=Ss,Ft.gt=Br,Ft.gte=Ur,Ft.has=function(e,n){return null!=e&&vo(e,n,Ci)},Ft.hasIn=Cs,Ft.head=Ko,Ft.identity=ic,Ft.includes=function(e,n,t,i){e=Kr(e)?e:Fs(e),t=t&&!i?fs(t):0;var a=e.length;return t<0&&(t=xt(a+t,0)),ss(e)?t<=a&&e.indexOf(n,t)>-1:!!a&&Wn(e,n,t)>-1},Ft.indexOf=function(e,n,t){var i=null==e?0:e.length;if(!i)return-1;var a=null==t?0:fs(t);return a<0&&(a=xt(i+a,0)),Wn(e,n,a)},Ft.inRange=function(e,n,t){return n=ms(n),t===i?(t=n,n=0):t=ms(t),function(e,n,t){return e>=bt(n,t)&&e<xt(n,t)}(e=vs(e),n,t)},Ft.invoke=Es,Ft.isArguments=Wr,Ft.isArray=Vr,Ft.isArrayBuffer=Hr,Ft.isArrayLike=Kr,Ft.isArrayLikeObject=$r,Ft.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Oi(e)==b},Ft.isBuffer=Yr,Ft.isDate=Gr,Ft.isElement=function(e){return ns(e)&&1===e.nodeType&&!as(e)},Ft.isEmpty=function(e){if(null==e)return!0;if(Kr(e)&&(Vr(e)||"string"==typeof e||"function"==typeof e.splice||Yr(e)||ls(e)||Wr(e)))return!e.length;var n=ho(e);if(n==j||n==P)return!e.size;if(jo(e))return!Di(e).length;for(var t in e)if(ze.call(e,t))return!1;return!0},Ft.isEqual=function(e,n){return Ai(e,n)},Ft.isEqualWith=function(e,n,t){var a=(t="function"==typeof t?t:i)?t(e,n):i;return a===i?Ai(e,n,i,t):!!a},Ft.isError=Jr,Ft.isFinite=function(e){return"number"==typeof e&&yn(e)},Ft.isFunction=Xr,Ft.isInteger=Zr,Ft.isLength=Qr,Ft.isMap=ts,Ft.isMatch=function(e,n){return e===n||Li(e,n,po(n))},Ft.isMatchWith=function(e,n,t){return t="function"==typeof t?t:i,Li(e,n,po(n),t)},Ft.isNaN=function(e){return is(e)&&e!=+e},Ft.isNative=function(e){if(ko(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ri(e)},Ft.isNil=function(e){return null==e},Ft.isNull=function(e){return null===e},Ft.isNumber=is,Ft.isObject=es,Ft.isObjectLike=ns,Ft.isPlainObject=as,Ft.isRegExp=os,Ft.isSafeInteger=function(e){return Zr(e)&&e>=-9007199254740991&&e<=m},Ft.isSet=rs,Ft.isString=ss,Ft.isSymbol=cs,Ft.isTypedArray=ls,Ft.isUndefined=function(e){return e===i},Ft.isWeakMap=function(e){return ns(e)&&ho(e)==A},Ft.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Oi(e)},Ft.join=function(e,n){return null==e?"":Fn.call(e,n)},Ft.kebabCase=Vs,Ft.last=Jo,Ft.lastIndexOf=function(e,n,t){var a=null==e?0:e.length;if(!a)return-1;var o=a;return t!==i&&(o=(o=fs(t))<0?xt(a+o,0):bt(o,a-1)),n==n?function(e,n,t){for(var i=t+1;i--;)if(e[i]===n)return i;return i}(e,n,o):Un(e,Hn,o,!0)},Ft.lowerCase=Hs,Ft.lowerFirst=Ks,Ft.lt=ps,Ft.lte=us,Ft.max=function(e){return e&&e.length?hi(e,ic,Si):i},Ft.maxBy=function(e,n){return e&&e.length?hi(e,co(n,2),Si):i},Ft.mean=function(e){return Kn(e,ic)},Ft.meanBy=function(e,n){return Kn(e,co(n,2))},Ft.min=function(e){return e&&e.length?hi(e,ic,Mi):i},Ft.minBy=function(e,n){return e&&e.length?hi(e,co(n,2),Mi):i},Ft.stubArray=hc,Ft.stubFalse=vc,Ft.stubObject=function(){return{}},Ft.stubString=function(){return""},Ft.stubTrue=function(){return!0},Ft.multiply=_c,Ft.nth=function(e,n){return e&&e.length?Wi(e,fs(n)):i},Ft.noConflict=function(){return hn._===this&&(hn._=Fe),this},Ft.noop=cc,Ft.now=Sr,Ft.pad=function(e,n,t){e=xs(e);var i=(n=fs(n))?mt(e):0;if(!n||i>=n)return e;var a=(n-i)/2;return Va(vn(a),t)+e+Va(fn(a),t)},Ft.padEnd=function(e,n,t){e=xs(e);var i=(n=fs(n))?mt(e):0;return n&&i<n?e+Va(n-i,t):e},Ft.padStart=function(e,n,t){e=xs(e);var i=(n=fs(n))?mt(e):0;return n&&i<n?Va(n-i,t)+e:e},Ft.parseInt=function(e,n,t){return t||null==n?n=0:n&&(n=+n),wt(xs(e).replace(oe,""),n||0)},Ft.random=function(e,n,t){if(t&&"boolean"!=typeof t&&yo(e,n,t)&&(n=t=i),t===i&&("boolean"==typeof n?(t=n,n=i):"boolean"==typeof e&&(t=e,e=i)),e===i&&n===i?(e=0,n=1):(e=ms(e),n===i?(n=e,e=0):n=ms(n)),e>n){var a=e;e=n,n=a}if(t||e%1||n%1){var o=_t();return bt(e+o*(n-e+un("1e-"+((o+"").length-1))),n)}return Yi(e,n)},Ft.reduce=function(e,n,t){var i=Vr(e)?Nn:Gn,a=arguments.length<3;return i(e,co(n,4),t,a,di)},Ft.reduceRight=function(e,n,t){var i=Vr(e)?Mn:Gn,a=arguments.length<3;return i(e,co(n,4),t,a,mi)},Ft.repeat=function(e,n,t){return n=(t?yo(e,n,t):n===i)?1:fs(n),Gi(xs(e),n)},Ft.replace=function(){var e=arguments,n=xs(e[0]);return e.length<3?n:n.replace(e[1],e[2])},Ft.result=function(e,n,t){var a=-1,o=(n=ba(n,e)).length;for(o||(o=1,e=i);++a<o;){var r=null==e?i:e[No(n[a])];r===i&&(a=o,r=t),e=Xr(r)?r.call(e):r}return e},Ft.round=kc,Ft.runInContext=e,Ft.sample=function(e){return(Vr(e)?Xt:Xi)(e)},Ft.size=function(e){if(null==e)return 0;if(Kr(e))return ss(e)?mt(e):e.length;var n=ho(e);return n==j||n==P?e.size:Di(e).length},Ft.snakeCase=$s,Ft.some=function(e,n,t){var a=Vr(e)?qn:aa;return t&&yo(e,n,t)&&(n=i),a(e,co(n,3))},Ft.sortedIndex=function(e,n){return oa(e,n)},Ft.sortedIndexBy=function(e,n,t){return ra(e,n,co(t,2))},Ft.sortedIndexOf=function(e,n){var t=null==e?0:e.length;if(t){var i=oa(e,n);if(i<t&&Fr(e[i],n))return i}return-1},Ft.sortedLastIndex=function(e,n){return oa(e,n,!0)},Ft.sortedLastIndexBy=function(e,n,t){return ra(e,n,co(t,2),!0)},Ft.sortedLastIndexOf=function(e,n){if(null==e?0:e.length){var t=oa(e,n,!0)-1;if(Fr(e[t],n))return t}return-1},Ft.startCase=Ys,Ft.startsWith=function(e,n,t){return e=xs(e),t=null==t?0:si(fs(t),0,e.length),n=la(n),e.slice(t,t+n.length)==n},Ft.subtract=jc,Ft.sum=function(e){return e&&e.length?Jn(e,ic):0},Ft.sumBy=function(e,n){return e&&e.length?Jn(e,co(n,2)):0},Ft.template=function(e,n,t){var a=Ft.templateSettings;t&&yo(e,n,t)&&(n=i),e=xs(e),n=ws({},n,a,Za);var o,r,s=ws({},n.imports,a.imports,Za),c=Is(s),l=et(s,c),p=0,u=n.interpolate||we,d="__p += '",m=Ce((n.escape||we).source+"|"+u.source+"|"+(u===Q?me:we).source+"|"+(n.evaluate||we).source+"|$","g"),f="//# sourceURL="+(ze.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+"\n";e.replace(m,(function(n,t,i,a,s,c){return i||(i=a),d+=e.slice(p,c).replace(_e,rt),t&&(o=!0,d+="' +\n__e("+t+") +\n'"),s&&(r=!0,d+="';\n"+s+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=c+n.length,n})),d+="';\n";var h=ze.call(n,"variable")&&n.variable;if(h){if(ue.test(h))throw new ke("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(r?d.replace(V,""):d).replace(H,"$1").replace(K,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Zs((function(){return je(c,f+"return "+d).apply(i,l)}));if(v.source=d,Jr(v))throw v;return v},Ft.times=function(e,n){if((e=fs(e))<1||e>m)return[];var t=h,i=bt(e,h);n=co(n),e-=h;for(var a=Xn(i,n);++t<e;)n(t);return a},Ft.toFinite=ms,Ft.toInteger=fs,Ft.toLength=hs,Ft.toLower=function(e){return xs(e).toLowerCase()},Ft.toNumber=vs,Ft.toSafeInteger=function(e){return e?si(fs(e),-9007199254740991,m):0===e?e:0},Ft.toString=xs,Ft.toUpper=function(e){return xs(e).toUpperCase()},Ft.trim=function(e,n,t){if((e=xs(e))&&(t||n===i))return Zn(e);if(!e||!(n=la(n)))return e;var a=ft(e),o=ft(n);return wa(a,tt(a,o),it(a,o)+1).join("")},Ft.trimEnd=function(e,n,t){if((e=xs(e))&&(t||n===i))return e.slice(0,ht(e)+1);if(!e||!(n=la(n)))return e;var a=ft(e);return wa(a,0,it(a,ft(n))+1).join("")},Ft.trimStart=function(e,n,t){if((e=xs(e))&&(t||n===i))return e.replace(oe,"");if(!e||!(n=la(n)))return e;var a=ft(e);return wa(a,tt(a,ft(n))).join("")},Ft.truncate=function(e,n){var t=30,a="...";if(es(n)){var o="separator"in n?n.separator:o;t="length"in n?fs(n.length):t,a="omission"in n?la(n.omission):a}var r=(e=xs(e)).length;if(st(e)){var s=ft(e);r=s.length}if(t>=r)return e;var c=t-mt(a);if(c<1)return a;var l=s?wa(s,0,c).join(""):e.slice(0,c);if(o===i)return l+a;if(s&&(c+=l.length-c),os(o)){if(e.slice(c).search(o)){var p,u=l;for(o.global||(o=Ce(o.source,xs(fe.exec(o))+"g")),o.lastIndex=0;p=o.exec(u);)var d=p.index;l=l.slice(0,d===i?c:d)}}else if(e.indexOf(la(o),c)!=c){var m=l.lastIndexOf(o);m>-1&&(l=l.slice(0,m))}return l+a},Ft.unescape=function(e){return(e=xs(e))&&G.test(e)?e.replace($,vt):e},Ft.uniqueId=function(e){var n=++De;return xs(e)+n},Ft.upperCase=Gs,Ft.upperFirst=Js,Ft.each=xr,Ft.eachRight=br,Ft.first=Ko,sc(Ft,(wc={},yi(Ft,(function(e,n){ze.call(Ft.prototype,n)||(wc[n]=e)})),wc),{chain:!1}),Ft.VERSION="4.17.21",Pn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ft[e].placeholder=Ft})),Pn(["drop","take"],(function(e,n){Vt.prototype[e]=function(t){t=t===i?1:xt(fs(t),0);var a=this.__filtered__&&!n?new Vt(this):this.clone();return a.__filtered__?a.__takeCount__=bt(t,a.__takeCount__):a.__views__.push({size:bt(t,h),type:e+(a.__dir__<0?"Right":"")}),a},Vt.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}})),Pn(["filter","map","takeWhile"],(function(e,n){var t=n+1,i=1==t||3==t;Vt.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:co(e,3),type:t}),n.__filtered__=n.__filtered__||i,n}})),Pn(["head","last"],(function(e,n){var t="take"+(n?"Right":"");Vt.prototype[e]=function(){return this[t](1).value()[0]}})),Pn(["initial","tail"],(function(e,n){var t="drop"+(n?"":"Right");Vt.prototype[e]=function(){return this.__filtered__?new Vt(this):this[t](1)}})),Vt.prototype.compact=function(){return this.filter(ic)},Vt.prototype.find=function(e){return this.filter(e).head()},Vt.prototype.findLast=function(e){return this.reverse().find(e)},Vt.prototype.invokeMap=Ji((function(e,n){return"function"==typeof e?new Vt(this):this.map((function(t){return Ei(t,e,n)}))})),Vt.prototype.reject=function(e){return this.filter(zr(co(e)))},Vt.prototype.slice=function(e,n){e=fs(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Vt(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==i&&(t=(n=fs(n))<0?t.dropRight(-n):t.take(n-e)),t)},Vt.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vt.prototype.toArray=function(){return this.take(h)},yi(Vt.prototype,(function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),o=Ft[a?"take"+("last"==n?"Right":""):n],r=a||/^find/.test(n);o&&(Ft.prototype[n]=function(){var n=this.__wrapped__,s=a?[1]:arguments,c=n instanceof Vt,l=s[0],p=c||Vr(n),u=function(e){var n=o.apply(Ft,Dn([e],s));return a&&d?n[0]:n};p&&t&&"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){n=h?n:new Vt(this);var v=e.apply(n,s);return v.__actions__.push({func:mr,args:[u],thisArg:i}),new Wt(v,d)}return f&&h?e.apply(this,s):(v=this.thru(u),f?a?v.value()[0]:v.value():v)})})),Pn(["pop","push","shift","sort","splice","unshift"],(function(e){var n=Ee[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Ft.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var a=this.value();return n.apply(Vr(a)?a:[],e)}return this[t]((function(t){return n.apply(Vr(t)?t:[],e)}))}})),yi(Vt.prototype,(function(e,n){var t=Ft[n];if(t){var i=t.name+"";ze.call(It,i)||(It[i]=[]),It[i].push({name:n,func:t})}})),It[Fa(i,2).name]=[{name:"wrapper",func:i}],Vt.prototype.clone=function(){var e=new Vt(this.__wrapped__);return e.__actions__=Pa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pa(this.__views__),e},Vt.prototype.reverse=function(){if(this.__filtered__){var e=new Vt(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vt.prototype.value=function(){var e=this.__wrapped__.value(),n=this.__dir__,t=Vr(e),i=n<0,a=t?e.length:0,o=function(e,n,t){var i=-1,a=t.length;for(;++i<a;){var o=t[i],r=o.size;switch(o.type){case"drop":e+=r;break;case"dropRight":n-=r;break;case"take":n=bt(n,e+r);break;case"takeRight":e=xt(e,n-r)}}return{start:e,end:n}}(0,a,this.__views__),r=o.start,s=o.end,c=s-r,l=i?s:r-1,p=this.__iteratees__,u=p.length,d=0,m=bt(c,this.__takeCount__);if(!t||!i&&a==c&&m==c)return fa(e,this.__actions__);var f=[];e:for(;c--&&d<m;){for(var h=-1,v=e[l+=n];++h<u;){var g=p[h],x=g.iteratee,b=g.type,y=x(v);if(2==b)v=y;else if(!y){if(1==b)continue e;break e}}f[d++]=v}return f},Ft.prototype.at=fr,Ft.prototype.chain=function(){return dr(this)},Ft.prototype.commit=function(){return new Wt(this.value(),this.__chain__)},Ft.prototype.next=function(){this.__values__===i&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Ft.prototype.plant=function(e){for(var n,t=this;t instanceof Ut;){var a=qo(t);a.__index__=0,a.__values__=i,n?o.__wrapped__=a:n=a;var o=a;t=t.__wrapped__}return o.__wrapped__=e,n},Ft.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vt){var n=e;return this.__actions__.length&&(n=new Vt(this)),(n=n.reverse()).__actions__.push({func:mr,args:[er],thisArg:i}),new Wt(n,this.__chain__)}return this.thru(er)},Ft.prototype.toJSON=Ft.prototype.valueOf=Ft.prototype.value=function(){return fa(this.__wrapped__,this.__actions__)},Ft.prototype.first=Ft.prototype.head,Xe&&(Ft.prototype[Xe]=function(){return this}),Ft}();gn?((gn.exports=gt)._=gt,vn._=gt):hn._=gt}).call(n)}(Mc,Mc.exports);var qc=Mc.exports,Fc={},Bc=function(e,n,t,i,a){var o,r;if(void 0===i)i=0;else if((i|=0)<0||i>=e.length)throw new RangeError("invalid lower bound");if(void 0===a)a=e.length-1;else if((a|=0)<i||a>=e.length)throw new RangeError("invalid upper bound");for(;i<=a;)if((r=+t(e[o=i+(a-i>>>1)],n,o,e))<0)i=o+1;else{if(!(r>0))return o;a=o-1}return~i};!function(e){var t=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.findClosest=e.normal=e.fisherInformation=e.itemResponseFunction=void 0;const i=t(Bc);e.itemResponseFunction=(e,n)=>n.c+(n.d-n.c)/(1+Math.exp(-n.a*(e-n.b)));e.fisherInformation=(n,t)=>{const i=(0,e.itemResponseFunction)(n,t),a=1-i;return Math.pow(t.a,2)*(a/i)*(Math.pow(i-t.c,2)/Math.pow(1-t.c,2))};e.normal=(e=0,n=1,t=-4,i=4,a=.1)=>{const o=[];for(let s=t;s<=i;s+=a)o.push([s,(r=s,1/(Math.sqrt(2*Math.PI)*n)*Math.exp(-Math.pow(r-e,2)/(2*Math.pow(n,2))))]);var r;return o};e.findClosest=(e,n)=>{if(n<=e[0].difficulty)return 0;if(n>=e[e.length-1].difficulty)return e.length-1;const t=(0,i.default)(e,n,((e,n)=>e.difficulty-n));if(t>=0)return t;{const i=-2-t,a=-1-t;return Math.abs(e[i].difficulty-n)<Math.abs(e[a].difficulty-n)?i:a}}}(Fc);var Uc={exports:{}};!function(e,n,t){function i(e){var n=this,t=function(){var e=4022871197,n=function(n){n=String(n);for(var t=0;t<n.length;t++){var i=.02519603282416938*(e+=n.charCodeAt(t));i-=e=i>>>0,e=(i*=e)>>>0,e+=4294967296*(i-=e)}return 2.3283064365386963e-10*(e>>>0)};return n}();n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=t(" "),n.s1=t(" "),n.s2=t(" "),n.s0-=t(e),n.s0<0&&(n.s0+=1),n.s1-=t(e),n.s1<0&&(n.s1+=1),n.s2-=t(e),n.s2<0&&(n.s2+=1),t=null}function a(e,n){return n.c=e.c,n.s0=e.s0,n.s1=e.s1,n.s2=e.s2,n}function o(e,n){var t=new i(e),o=n&&n.state,r=t.next;return r.int32=function(){return 4294967296*t.next()|0},r.double=function(){return r()+11102230246251565e-32*(2097152*r()|0)},r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.alea=o}(0,Uc,!1);var Wc=Uc.exports,Vc={exports:{}};!function(e,n,t){function i(e){var n=this,t="";n.x=0,n.y=0,n.z=0,n.w=0,n.next=function(){var e=n.x^n.x<<11;return n.x=n.y,n.y=n.z,n.z=n.w,n.w^=n.w>>>19^e^e>>>8},e===(0|e)?n.x=e:t+=e;for(var i=0;i<t.length+64;i++)n.x^=0|t.charCodeAt(i),n.next()}function a(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n}function o(e,n){var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xor128=o}(0,Vc,!1);var Hc=Vc.exports,Kc={exports:{}};!function(e,n,t){function i(e){var n=this,t="";n.next=function(){var e=n.x^n.x>>>2;return n.x=n.y,n.y=n.z,n.z=n.w,n.w=n.v,(n.d=n.d+362437|0)+(n.v=n.v^n.v<<4^e^e<<1)|0},n.x=0,n.y=0,n.z=0,n.w=0,n.v=0,e===(0|e)?n.x=e:t+=e;for(var i=0;i<t.length+64;i++)n.x^=0|t.charCodeAt(i),i==t.length&&(n.d=n.x<<10^n.x>>>4),n.next()}function a(e,n){return n.x=e.x,n.y=e.y,n.z=e.z,n.w=e.w,n.v=e.v,n.d=e.d,n}function o(e,n){var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xorwow=o}(0,Kc,!1);var $c=Kc.exports,Yc={exports:{}};!function(e,n,t){function i(e){var n=this;n.next=function(){var e,t,i=n.x,a=n.i;return e=i[a],t=(e^=e>>>7)^e<<24,t^=(e=i[a+1&7])^e>>>10,t^=(e=i[a+3&7])^e>>>3,t^=(e=i[a+4&7])^e<<7,e=i[a+7&7],t^=(e^=e<<13)^e<<9,i[a]=t,n.i=a+1&7,t},function(e,n){var t,i=[];if(n===(0|n))i[0]=n;else for(n=""+n,t=0;t<n.length;++t)i[7&t]=i[7&t]<<15^n.charCodeAt(t)+i[t+1&7]<<13;for(;i.length<8;)i.push(0);for(t=0;t<8&&0===i[t];++t);for(8==t?i[7]=-1:i[t],e.x=i,e.i=0,t=256;t>0;--t)e.next()}(n,e)}function a(e,n){return n.x=e.x.slice(),n.i=e.i,n}function o(e,n){null==e&&(e=+new Date);var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&(o.x&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xorshift7=o}(0,Yc,!1);var Gc=Yc.exports,Jc={exports:{}};!function(e,n,t){function i(e){var n=this;n.next=function(){var e,t,i=n.w,a=n.X,o=n.i;return n.w=i=i+1640531527|0,t=a[o+34&127],e=a[o=o+1&127],t^=t<<13,e^=e<<17,t^=t>>>15,e^=e>>>12,t=a[o]=t^e,n.i=o,t+(i^i>>>16)|0},function(e,n){var t,i,a,o,r,s=[],c=128;for(n===(0|n)?(i=n,n=null):(n+="\0",i=0,c=Math.max(c,n.length)),a=0,o=-32;o<c;++o)n&&(i^=n.charCodeAt((o+32)%n.length)),0===o&&(r=i),i^=i<<10,i^=i>>>15,i^=i<<4,i^=i>>>13,o>=0&&(r=r+1640531527|0,a=0==(t=s[127&o]^=i+r)?a+1:0);for(a>=128&&(s[127&(n&&n.length||0)]=-1),a=127,o=512;o>0;--o)i=s[a+34&127],t=s[a=a+1&127],i^=i<<13,t^=t<<17,i^=i>>>15,t^=t>>>12,s[a]=i^t;e.w=r,e.X=s,e.i=a}(n,e)}function a(e,n){return n.i=e.i,n.w=e.w,n.X=e.X.slice(),n}function o(e,n){null==e&&(e=+new Date);var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&(o.X&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.xor4096=o}(0,Jc,!1);var Xc=Jc.exports,Zc={exports:{}};!function(e,n,t){function i(e){var n=this,t="";n.next=function(){var e=n.b,t=n.c,i=n.d,a=n.a;return e=e<<25^e>>>7^t,t=t-i|0,i=i<<24^i>>>8^a,a=a-e|0,n.b=e=e<<20^e>>>12^t,n.c=t=t-i|0,n.d=i<<16^t>>>16^a,n.a=a-e|0},n.a=0,n.b=0,n.c=-1640531527,n.d=1367130551,e===Math.floor(e)?(n.a=e/4294967296|0,n.b=0|e):t+=e;for(var i=0;i<t.length+20;i++)n.b^=0|t.charCodeAt(i),n.next()}function a(e,n){return n.a=e.a,n.b=e.b,n.c=e.c,n.d=e.d,n}function o(e,n){var t=new i(e),o=n&&n.state,r=function(){return(t.next()>>>0)/4294967296};return r.double=function(){do{var e=((t.next()>>>11)+(t.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},r.int32=t.next,r.quick=r,o&&("object"==typeof o&&a(o,t),r.state=function(){return a(t,{})}),r}n&&n.exports?n.exports=o:t&&t.amd?t((function(){return o})):this.tychei=o}(0,Zc,!1);var Qc=Zc.exports,el={exports:{}};!function(e){!function(n,t,i){var a,o=256,r="random",s=i.pow(o,6),c=i.pow(2,52),l=2*c,p=o-1;function u(e,p,u){var g=[],x=h(f((p=1==p?{entropy:!0}:p||{}).entropy?[e,v(t)]:null==e?function(){try{var e;return a&&(e=a.randomBytes)?e=e(o):(e=new Uint8Array(o),(n.crypto||n.msCrypto).getRandomValues(e)),v(e)}catch(e){var i=n.navigator,r=i&&i.plugins;return[+new Date,n,r,n.screen,v(t)]}}():e,3),g),b=new d(g),y=function(){for(var e=b.g(6),n=s,t=0;e<c;)e=(e+t)*o,n*=o,t=b.g(1);for(;e>=l;)e/=2,n/=2,t>>>=1;return(e+t)/n};return y.int32=function(){return 0|b.g(4)},y.quick=function(){return b.g(4)/4294967296},y.double=y,h(v(b.S),t),(p.pass||u||function(e,n,t,a){return a&&(a.S&&m(a,b),e.state=function(){return m(b,{})}),t?(i[r]=e,n):e})(y,x,"global"in p?p.global:this==i,p.state)}function d(e){var n,t=e.length,i=this,a=0,r=i.i=i.j=0,s=i.S=[];for(t||(e=[t++]);a<o;)s[a]=a++;for(a=0;a<o;a++)s[a]=s[r=p&r+e[a%t]+(n=s[a])],s[r]=n;(i.g=function(e){for(var n,t=0,a=i.i,r=i.j,s=i.S;e--;)n=s[a=p&a+1],t=t*o+s[p&(s[a]=s[r=p&r+n])+(s[r]=n)];return i.i=a,i.j=r,t})(o)}function m(e,n){return n.i=e.i,n.j=e.j,n.S=e.S.slice(),n}function f(e,n){var t,i=[],a=typeof e;if(n&&"object"==a)for(t in e)try{i.push(f(e[t],n-1))}catch(e){}return i.length?i:"string"==a?e:e+"\0"}function h(e,n){for(var t,i=e+"",a=0;a<i.length;)n[p&a]=p&(t^=19*n[p&a])+i.charCodeAt(a++);return v(n)}function v(e){return String.fromCharCode.apply(0,e)}if(h(i.random(),t),e.exports){e.exports=u;try{a=require("crypto")}catch(e){}}else i["seed"+r]=u}("undefined"!=typeof self?self:n,[],Math)}(el);var nl=Wc,tl=Hc,il=$c,al=Gc,ol=Xc,rl=Qc,sl=el.exports;sl.alea=nl,sl.xor128=tl,sl.xorwow=il,sl.xorshift7=al,sl.xor4096=ol,sl.tychei=rl;var cl=sl;!function(e){var t=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Cat=e.abilityPrior=void 0;const i=Nc,a=qc,o=Fc,r=t(cl);e.abilityPrior=(0,o.normal)();class s{constructor({method:n="MLE",itemSelect:t="MFI",nStartItems:i=0,startSelect:a="middle",theta:o=0,minTheta:c=-6,maxTheta:l=6,prior:p=e.abilityPrior,randomSeed:u=null}={}){this.method=s.validateMethod(n),this.itemSelect=s.validateItemSelect(t),this.startSelect=s.validateStartSelect(a),this.minTheta=c,this.maxTheta=l,this.prior=p,this._zetas=[],this._resps=[],this._theta=o,this._nItems=0,this._seMeasurement=Number.MAX_VALUE,this.nStartItems=i,this._rng=null===u?(0,r.default)():(0,r.default)(u)}get theta(){return this._theta}get seMeasurement(){return this._seMeasurement}get nItems(){return this._resps.length}get resps(){return this._resps}get zetas(){return this._zetas}static validateMethod(e){const n=e.toLowerCase();if(!["mle","eap"].includes(n))throw new Error("The abilityEstimator you provided is not in the list of valid methods");return n}static validateItemSelect(e){const n=e.toLowerCase();if(!["mfi","random","closest"].includes(n))throw new Error("The itemSelector you provided is not in the list of valid methods");return n}static validateStartSelect(e){const n=e.toLowerCase();if(!["random","middle"].includes(n))throw new Error("The startSelect you provided is not in the list of valid methods");return n}updateAbilityEstimate(e,n,t=this.method){if(t=s.validateMethod(t),e=Array.isArray(e)?e:[e],n=Array.isArray(n)?n:[n],e.length!==n.length)throw new Error("Unmatched length between answers and item params");this._zetas.push(...e),this._resps.push(...n),"eap"===t?this._theta=this.estimateAbilityEAP():"mle"===t&&(this._theta=this.estimateAbilityMLE()),this.calculateSE()}estimateAbilityEAP(){let e=0,n=0;return this.prior.forEach((([t,i])=>{const a=this.likelihood(t);e+=t*a*i,n+=a*i})),e/n}estimateAbilityMLE(){let e=(0,i.minimize_Powell)(this.negLikelihood.bind(this),[0]).argument[0];return e>this.maxTheta?e=this.maxTheta:e<this.minTheta&&(e=this.minTheta),e}negLikelihood(e){return-this.likelihood(e[0])}likelihood(e){return this._zetas.reduce(((n,t,i)=>{const a=(0,o.itemResponseFunction)(e,t);return 1===this._resps[i]?n+Math.log(a):n+Math.log(1-a)}),1)}calculateSE(){const e=this._zetas.reduce(((e,n)=>e+(0,o.fisherInformation)(this._theta,n)),0);this._seMeasurement=1/Math.sqrt(e)}findNextItem(e,n=this.itemSelect,t=!0){let i,o=s.validateItemSelect(n);return i=t?(0,a.cloneDeep)(e):e,this.nItems<this.nStartItems&&(o=this.startSelect),"mfi"!==o&&i.sort(((e,n)=>e.difficulty-n.difficulty)),"middle"===o?this.selectorMiddle(i):"closest"===o?this.selectorClosest(i):"random"===o?this.selectorRandom(i):this.selectorMFI(i)}selectorMFI(e){const n=e.map((e=>Object.assign({fisherInformation:(0,o.fisherInformation)(this._theta,{a:e.a||1,b:e.difficulty||0,c:e.c||0,d:e.d||1})},e)));return n.sort(((e,n)=>n.fisherInformation-e.fisherInformation)),n.forEach((e=>{delete e.fisherInformation})),{nextStimulus:n[0],remainingStimuli:n.slice(1).sort(((e,n)=>e.difficulty-n.difficulty))}}selectorMiddle(e){let n;n=e.length<this.nStartItems?Math.floor(e.length/2):Math.floor(e.length/2)+this.randomInteger(-Math.floor(this.nStartItems/2),Math.floor(this.nStartItems/2));const t=e[n];return e.splice(n,1),{nextStimulus:t,remainingStimuli:e}}selectorClosest(e){const n=(0,o.findClosest)(e,this._theta+.481),t=e[n];return e.splice(n,1),{nextStimulus:t,remainingStimuli:e}}selectorRandom(e){const n=Math.floor(this._rng()*e.length);return{nextStimulus:e.splice(n,1)[0],remainingStimuli:e}}randomInteger(e,n){return Math.floor(this._rng()*(n-e+1))+e}}e.Cat=s}({});const ll="https://storage.googleapis.com/egma-math";!function(e,n,t){var i={images:{},video:{},audio:{}},a=Cc(t),o=Tc(),r=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.forEach((function(e){var c=Ec(e),l=pc.parse(e).name,p=l.replace(/^([A-Z])|[\s-_](\w)/g,(function(e,n,t,i){return t?t.toUpperCase():n.toLowerCase()})),u=Pc(n,e,a,o,t,r,s);i[c][p]=u}))},s=function(e){var n,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"):function(e,n){Object.entries(e).forEach((function(e){var t=Lc(e,2),i=t[0],a=t[1];r(a,i,!0,n)}))}(e.languageSpecific,t)),e.device&&r(e.device,"device"),e.shared&&(n=e.shared,Array.isArray(n)?r(n,"shared"):Object.entries(n).forEach((function(e){var n=Lc(e,2),t=n[0],i=n[1];r(i,"device"===t?"shared/device":"shared")}))))};e.preload&&Object.entries(e.preload).forEach((function(e){var n=Lc(e,2)[1];s(n)})),e.default&&s(e.default,!0)}(zc,ll),function(e,n,t){var i={},a=Cc(t),o=Tc();function r(e,t,r){var s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]&&arguments[4];e.forEach((function(e){var l=Ec(e),p=Pc(n,e,a,o,r,s,c);i[t]||(i[t]={type:Ac,message:"The experiment is loading",show_progress_bar:!0,continue_after_error:!1,error_message:"",show_detailed_errors:!0,max_load_time:null,on_error:null,on_success:null,images:[],audio:[],video:[]}),i[t][l].push(p)}))}function s(e,n,t){Array.isArray(n)?r(n,e,"languageSpecific"):function(e,n,t){Object.entries(n).forEach((function(n){var i=Lc(n,2),a=i[0];r(i[1],e,a,!0,t)}))}(e,n,t)}function c(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Array.isArray(n)?r(n,e,"default"):(n.languageSpecific&&s(e,n.languageSpecific,t),n.device&&r(n.device,e,"device"),n.shared&&function(e,n){Array.isArray(n)?r(n,e,"shared"):Object.entries(n).forEach((function(n){var t=Lc(n,2),i=t[0];r(t[1],e,"device"===i?"shared/device":"shared")}))}(e,n.shared))}return e.preload&&Object.entries(e.preload).forEach((function(e){var n=Lc(e,2);c(n[0],n[1])})),e.default&&c("default",e.default,!0),i}(zc,ll).default;async function pl(){const e=document.createElement("div");e.innerHTML='<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">\n\n\x3c!-- <h5 style="text-align:left;">\n Stanford University Research Consent Form\n <span style="float:right;">\n For IRB Use Only\n </span>\n</h5>\n\n<h5 style="text-align:left;">\n Protocol Director: Jason D. Yeatman, Ph.D.\n <span style="float:right;">\n Approval Date: October 31, 2023\n </span>\n</h5>\n\n<h5 style="text-align:left;">\n Protocol Title: Plasticity and Reading\n <span style="float:right;">\n Expiration Date: October 31, 2024\n </span>\n</h5> --\x3e\n\n<style>\n body {\n margin: 20px; /* Adjust the margin size as needed */\n }\n</style>\n\n<body>\n<h3 style="text-align: center;"> STANFORD UNIVERSITY CONSENT FORM </h3>\n\n<h4 style="text-align: center;"> Stanford University Reading &amp; Dyslexia Research Program: Behavioral Testing </h4>\n\n<blockquote>\n<h4 id="principal-investigator-">Principal Investigator:</h4>\n<p>Jason D. Yeatman </p>\n<p>Associate Professor</p>\n<p>Graduate School of Education</p>\n<p>School of Medicine, Division of Developmental Behavioral Pediatrics</p>\n<h4 id="contact-">Contact:</h4>\n<p>readingresearch@stanford.edu</p>\n<p><a href="https://dyslexia.stanford.edu/">https://dyslexia.stanford.edu/</a> </p>\n</blockquote>\n<h4 id="purpose-of-the-study">PURPOSE OF THE STUDY</h4>\n<p>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.</p>\n<h4 id="study-procedures">STUDY PROCEDURES</h4>\n<p>In this study, you or your child will be asked to complete computer tasks via a computer screen. An eye-tracking software will request access to your webcam and will be used to measure eye movements. You will be asked to provide verbal responses in which case the web browser will request access to your computer microphone. You or your child may be asked to complete multiple activities in one session depending on the study. </p>\n<h4 id="privacy-or-data-collection">PRIVACY OR DATA COLLECTION</h4>\n<p>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.</p>\n<p>We will collect mouse and click data, scrolling behavior, scores earned, button presses and their timestamps, time spent on each page, audio recordings, or other data that may be derived from your behavior on our page. This data will be stored on servers. The eye-tracking software will use your webcam to track your eyes. This software will record and save video data for future analysis. Once analysis has been completed, the video data will be deleted. 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.</p>\n<h4 id="compensation">COMPENSATION</h4>\n<p>We value [your/your child’s] participation. A Tango gift card will be sent through email upon completion of this study. Specific reward amounts will be indicated on the task card and/or study invitation, which you can view before launching the task or scheduling the appointment. If you or your child is completing these activities as part of another study, the compensation rate will remain consistent with the rate of the study you or your child is enrolled in. </p>\n<p>Please note that the gift card system we use to pay participants is not affiliated with Stanford and we will need to input your name and email into this system to send you the electronic gift card payment. If you feel uncomfortable with this process, please let us know before signing the consent form. Depending on the study, we may be able to look into other forms of payment for you.</p>\n<h4 id="risks-stress-or-discomfort">RISKS, STRESS, OR DISCOMFORT</h4>\n<p>If there is any reason to believe you are/your child is not safe to participate in any of the tasks, please contact us at readingresearch@stanford.edu. 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.</p>\n<h4 id="contact-information">CONTACT INFORMATION</h4>\n<p>If you have any additional questions or concerns about our research, feel free to email us at readingresearch@stanford.edu. We will be more than happy to help!</p>\n<p>For general information regarding questions or concerns about [your/your child’s] rights as a research participant, please call 1-866-680-2906 to reach the Administrative Panel on Human Subjects in Medical Research, Stanford University.</p>\n<form id="consentForm">\n <p>\n <input type="checkbox" id="webcamConsent" name="consent">\n I confirm that I have a webcam, and I agree to have my webcam track my eyes. I understand that the webcam will record or save video data and that it will be deleted once analysis is complete.\n </p>\n <p>\n <input type="checkbox" id="voiceConsent" name="consent">\n I agree to have my voice recorded. This data will only be used for data scoring purposes, will be stored securely, and will not be shared with others outside the lab.\n </p>\n <p>\n <input type="checkbox" id="participationConsent" name="consent">\n I agree to participate in this research. Participation in this research is voluntary, and I can stop at any time without penalty. 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 </p>\n <button id="confirmButton" disabled>Continue to test</button>\n</form>\n</body>\n\n<script>\n document.getElementById(\'consentForm\').addEventListener(\'change\', function() {\n var checkboxes = document.querySelectorAll(\'input[type="checkbox"][name="consent"]\');\n var allChecked = Array.from(checkboxes).every(checkbox => checkbox.checked);\n document.getElementById(\'confirmButton\').disabled = !allChecked;\n });\n<\/script>\n\n',document.body.appendChild(e),await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await ul(t.src)}}(e),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(e),await new Promise((n=>{const t=document.getElementById("confirmButton");t&&t.addEventListener("click",(()=>{document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),e.remove(),n()}))}))}function ul(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;async function dl(e){const n=document.createElement("div");n.innerHTML='\x3c!-- Scripts --\x3e\n<script data-dynamic src="https://cdn.jsdelivr.net/npm/remote-calibrator@latest"><\/script>\n<script data-dynamic src="./configureDevice.js"><\/script>\n<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">\n\n\x3c!-- CSS --\x3e\n<style>\n\nbody {\n margin: 0;\n}\n\n .column {\n float: left;\n padding: 10px;\n}\n\n.left, .right {\n width: 33%;\n}\n\n.middle {\n width: 33%;\n}\n\n.row:after {\n content: "";\n display: table;\n clear: both;\n}\n\n</style>\n\n\x3c!-- HTML --\x3e\n<body id="body">\n <div class="px-4 py-5 my-5 text-center" style="display: block;">\n <h1 class="display-5 fw-bold" id="title">Configure Device</h1>\n <h5> To get started, we will need to set up a few things. </h5>\n <h5> If you’re not sure what to do, ask an adult to help you with this part. </h5>\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/parent-help-icon.png" width="10%">\n <div class="col-lg-6 mx-auto" style="margin-top: -8vh;">\n <p class="lead mt-3 mb-5"></p>\n\n\n \x3c!-- Preconfigured Devices --\x3e\n <form>\n <b>First, check for your device in this preconfigured dropdown list:</b>\n <select id="deviceList" onchange="selectDevice()">\n </select>\n <br> If your device is <b></b>not in this list, please provide the following information: </br>\n </form>\n </br>\n\n\n <div class="d-grid gap-2 justify-content-center">\n\n\n \x3c!-- ROW 1: Full Screen | Get Screen Size --\x3e\n <div class="row gap-2" id="screenSize-collapsableCards">\n <div class="col" >\n <div class="card" style="width:20rem; height:11rem" id="card-fullscreen">\n <div class="card-body">\n <h5 class="card-title">(1) Full Screen</h5>\n <p class="card-text">Do not exit out of \'Full Screen\' mode for the remainder of this study.</p>\n <button type="button" class="btn btn-primary" id="fullscreen" onclick="openFullscreen()">Make Fullscreen</button>\n </div>\n </div>\n </div>\n <div class="col">\n <div class="card" style="width:20rem;height:11rem" id="card-screen-size">\n <div class="card-body">\n <h5 class="card-title">(2) Screen Size</h5>\n <p class="card-text">We need this to calibrate your device\'s screen size.</p>\n <button type="button" class="btn btn-primary" id="measureScreen" onclick="getScreenSize()">Measure Screen Size</button>\n </div>\n </div>\n </div>\n </div>\n\n\n \x3c!-- ROW 2: Webcam Centered | Height of Webcam --\x3e\n <div class="row gap-2" id="webcam-collapsableCards">\n <div class="col">\n <div class="card" style="width: 20rem;" id="card-webcam-center">\n <div class="card-body">\n <h5 class="card-title">(3) Is your webcam centred?</h5>\n <h6 class="card-subtitle mb-2 text-muted">It is expected that for laptops the webcam is already centred.</h6>\n <p class="card-text">If you are using a separate webcam, please centre this in the middle (as seen in the image below).</p>\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/webcamCentered.jpg" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <button type="button" class="btn btn-primary" id="measureDistanceFromScreeen" onclick="getwebcamCentered()">My Webcam is Centred</button>\n </div>\n </div>\n </div>\n <div class="col">\n <div class="card" style="width: 20rem;" id="card-height-camera">\n <div class="card-body">\n <h5 class="card-title">(4) Height of Webcam</h5>\n <p class="card-text">This is the distance between the centre of your webcam\'s lens and the top bezel of your screen (image provided for example)</p>\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/webcamPosition.PNG" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <label for="heightInput">Height in cm:</label>\n <input type="number" id="heightInput" name="heightInput" required\n minlength="1" maxlength="8" size="10" value="2">\n </br></br>\n <button type="button" class="btn btn-primary" id="getHeightbutton" onclick="getHeightWebcam()">Done</button>\n </div>\n </div>\n </div>\n </div>\n\n\n \x3c!-- ROW 3: Camera Access --\x3e\n <div class="row gap-2">\n <div class="col">\n <div class="card" style="width: 42rem;height:11rem" id="card-camera">\n <div class="card-body">\n <h5 class="card-title">(5) Camera Access</h5>\n <p class="card-text">Please provide access to your camera to record your eye movements.</p>\n <button type="button" class="btn btn-primary" id="start-camera">Provide Access</button>\n </div>\n </div>\n </div>\n </div>\n\n\n \x3c!-- ROW 4: Check Recording --\x3e\n <div class="row gap-2" style="padding-top:1rem;">\n <div class="col">\n <div class="card" style="width:42rem" id="card-final-check">\n <div class="card-body">\n <h5 class="card-title">(6) Final Checks</h5>\n <div class="column left">\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/badlighting.jpg" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <b>Bad Lighting</b> &#10060 </br>\n (Make sure eyes and face are clearly visible)\n </div>\n <div class="column middle">\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/glassesReflection.jpg" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <b>Glasses On</b> &#10060 </br>\n (Remove Glasses)\n </div>\n <div class="column middle">\n <img src="https://eyetrackingdata.blob.core.windows.net/public/Images/goodPosition.jpg" alt="center webcam" width="100%" style="padding-bottom:10px;">\n <b>Ideal View</b>&#10004 &#65039 </br>\n (Face close to camera and centered with clear view of eyes)\n </div>\n <div class="container">\n <video autoplay="true" id="videoElement" style="width:75%; background-color: darkgray;">\n </video>\n </div>\n\n </br>\n <button type="button" class="btn btn-primary" id="Final-Check" onclick="finalCheckComplete()" disabled >Yes I\'m Looking Good</button>\n </div>\n </div>\n </div> \n </div>\n \n\n \x3c!-- ROW 5: User Details --\x3e\n <div class="row gap-2" style="padding-top:1rem;">\n <div class="col">\n <div class="card" style="width:42rem" id="card-camera">\n <div class="card-body">\n <h5 class="card-title">(8) Ready to Start?</h5>\n <label for="idInput">Participant ID:</label>\n <input type="text" id="idInput" name="idInput" required\n minlength="1" maxlength="100" size="10">\n </br></br>\n <button type="button" class="btn btn-primary" id="confirmButton" disabled>Continue</button>\n </div>\n </div>\n </div> \n </div>\n </div>\n </div>\n </div>\n </body>\n\n<script data-dynamic>\nRemoteCalibrator.init()\n\nvar desktop = document.documentElement;\nvar finalCheckButton = document.getElementById("Final-Check")\nvar confirmButton = document.getElementById("confirmButton");\nvar cardFullscreen = document.getElementById("card-fullscreen");\nvar cardScreenSize = document.getElementById("card-screen-size");\nvar cardDistanceScreen = document.getElementById("card-distance-screen");\nvar cardcamera = document.getElementById("card-camera");\nvar cardwebcamCenter = document.getElementById("card-webcam-center");\nvar cardheightcamera = document.getElementById("card-height-camera")\nvar cardfinalcheck = document.getElementById("card-final-check");\nvar heightInput_textbox = document.getElementById("heightInput")\nvar idInput_textbox = document.getElementById("idInput")\nvar video = document.querySelector("#videoElement");\n\n\nvar fullScreen = false;\nvar screenSizeCalibrated = false;\nvar cameraStarted = false;\nvar HeightWebcamEntered = false;\nvar finalcheck = false;\nvar webcamCentered = false;\nvar prolificID;\nvar screenWidth=0;\nvar screenHeight=0;\nvar screenWidthPX=window.screen.width;\nvar screenHeightPX=window.screen.height;\nvar webcamHeight=0;\nvar distance = 0;\n\nfunction makeid(length) {\n var result = \'\';\n var characters = \'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\';\n var charactersLength = characters.length;\n for ( var i = 0; i < length; i++ ) {\n result += characters.charAt(Math.floor(Math.random() * \n charactersLength));\n }\n return result;\n}\n\n\nfunction openFullscreen() {\n if (desktop.requestFullscreen) {\n desktop.requestFullscreen();\n } else if (desktop.webkitRequestFullscreen) { /* Safari */\n desktop.webkitRequestFullscreen();\n } else if (desktop.msRequestFullscreen) { /* IE11 */\n desktop.msRequestFullscreen();\n }\n\n screenWidthPX = window.screen.width;\n screenHeightPX = window.screen.height;\n\n fullScreen = true\n cardFullscreen.style.backgroundColor = \'#bcf5bc\'\n\n checkAllComplete()\n}\n\nfunction getScreenSize(){\n RemoteCalibrator.screenSize({}, data => {\n console.log(`ScreenWidth: ${data.value.screenWidthCm}cm.`)\n console.log(`ScreenHeight: ${data.value.screenHeightCm}cm.`)\n\n screenWidth = data.value.screenWidthCm\n screenHeight = data.value.screenHeightCm\n\n if (screenWidth!=null && screenHeight!=null) {\n screenSizeCalibrated = true\n cardScreenSize.style.backgroundColor = \'#bcf5bc\'\n console.log(screenSizeCalibrated)\n }\n checkAllComplete()\n }) \n}\n\n\nfunction getwebcamCentered(){\n webcamCentered = true\n cardwebcamCenter.style.backgroundColor = \'#bcf5bc\'\n checkAllComplete()\n}\n\nfunction getHeightWebcam(){\n if (heightInput_textbox.value>0){\n HeightWebcamEntered = true\n webcamHeight = heightInput_textbox.value\n heightInput_textbox.disabled = true\n cardheightcamera.style.backgroundColor = \'#bcf5bc\'\n }\n checkAllComplete()\n}\n\nfunction finalCheckComplete(){\n finalcheck = true\n cardfinalcheck.style.backgroundColor = \'#bcf5bc\'\n checkAllComplete()\n}\n\n\ndocument.querySelector("#start-camera").addEventListener(\'click\', async () => {\n const cameraStream = await navigator.mediaDevices.getUserMedia({\n video: { width: { ideal: 1920 }, height: { ideal: 1080 }, frameRate: { ideal: 60, max: 60 } },\n audio: false\n });\n\n if (cameraStream.getVideoTracks().length > 0) {\n const { width, height } = cameraStream.getTracks()[0].getSettings();\n console.log(`${width}x${height}`); // 640x480\n\n if (height > 0) {\n cameraStarted = true;\n video.srcObject = cameraStream;\n cardcamera.style.backgroundColor = \'#bcf5bc\';\n finalCheckButton.disabled = false;\n checkAllComplete();\n } else {\n cardcamera.style.backgroundColor = \'#FA8072\';\n alert("Your webcam does not meet our resolution standards");\n }\n }\n});\n\n\nfunction checkAllComplete() {\n const hasCollapsedCards = Array.from(document.querySelectorAll(\'.card-title\')).some(card => \n card.closest(\'.card\').style.display === \'none\' || card.closest(\'.card\').offsetParent === null\n );\n\n const allConditionsMet = fullScreen && screenSizeCalibrated && cameraStarted && webcamCentered && HeightWebcamEntered && finalcheck;\n const minimalConditionsMet = cameraStarted && finalcheck;\n\n if ((hasCollapsedCards && minimalConditionsMet) || (!hasCollapsedCards && allConditionsMet)) {\n confirmButton.classList.remove(\'btn-secondary\')\n confirmButton.classList.add(\'btn-primary\')\n confirmButton.disabled = false;\n }\n}\n\n\n\n// function continueToTest(){\n// video.remove()\n// prolificID = idInput_textbox.value.trim() ? idInput_textbox.value : makeid(10);\n\n// localStorage.prolificID = prolificID\n// localStorage.screenHeight = screenHeight\n// localStorage.screenWidth = screenWidth\n// localStorage.webcamHeight = webcamHeight\n// localStorage.distance = distance\n// window.location.href = "criticalSpacingMenu_six.html";\n\n// }\n\n<\/script>',document.body.appendChild(n),await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await ml(t.src)}}(n),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(n),function(e){"simple"===e.firekit.task.variantParams.viewType&&collapseCards(!0);""!==e.firekit.user.assessmentPid&&inputParticipantName(e.firekit.user.assessmentPid)}(e),await new Promise((t=>{const i=document.getElementById("confirmButton");i&&i.addEventListener("click",(async()=>{try{var i=o.session.get("config").firekit.user.assessmentUid+"_"+(idInput_textbox.value.trim()?idInput_textbox.value:makeid(10));if(i!==e.firekit.user.assessmentPid&&e.firekit.updateUser({assessmentPid:i}),o.session.set("id",i),o.session.set("deviceConfig",{screenWidth:parseFloat(screenWidth),screenHeight:parseFloat(screenHeight),screenWidthPX:parseFloat(screenWidthPX),screenHeightPX:parseFloat(screenHeightPX),webcamHeight:parseFloat(webcamHeight)}),n.innerHTML='<!DOCTYPE html>\n<html lang="en">\n<head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">\n <style>\n body {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n margin: 0;\n background-color: #ffffff; /* White background */\n color: #000000; /* Black text */\n }\n\n .loading-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 20px;\n border-radius: 10px;\n background: rgba(0, 0, 0, 0.05); /* Slight gray tint to differentiate from the white background */\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */\n }\n\n .loading-spinner {\n border: 8px solid rgba(0, 0, 0, 0.1); /* Lighter border for the spinner */\n border-top: 8px solid #0d6efd; /* Blue color for active part of the spinner */\n border-radius: 50%;\n width: 80px;\n height: 80px;\n animation: spin 1s linear infinite;\n margin-bottom: 20px;\n }\n\n h2 {\n font-weight: 400;\n letter-spacing: 1px;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n </style>\n</head>\n<body>\n <div class="loading-container">\n <div class="loading-spinner"></div>\n <h2>Loading...</h2>\n </div>\n</body>\n</html>\n',"production"===ROAR_DB){const e=await async function(e){var n="openfolder.txt",t="text/plain";try{const i=await fetch(`https://us-central1-webapp-af756.cloudfunctions.net/getUploadUrlFunction?fileName=${n}&mimeType=${t}&parentDir=${e}`);if(!i.ok)throw new Error("Failed to fetch upload URL");return await i.text()}catch(e){throw window.console.log("Error fetching upload URL:",e),e}}(o.session.get("id"));window.console.log("Folder Created:",e)}else"development"==ROAR_DB&&window.console.log("Development");document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),n.remove(),t()}catch(e){window.console.log("Error:",e)}}))}))}function ml(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;async function fl(e){const n=document.createElement("div");n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="100%",n.style.height="100%",n.innerHTML='<!DOCTYPE html>\n<html lang="en">\n<head>\n <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>Image and Audio Recording</title>\n\n <script data-dynamic src="./voiceCalibration.js"><\/script>\n</head>\n\n<style>\n \n body {\n margin: 0;\n min-height: 100vh; /* Ensure body takes the full viewport height */\n display: flex; /* Enable Flexbox */\n justify-content: center; /* Center content horizontally */\n align-items: center; /* Center content vertically */\n font-family: sans-serif;\n }\n\n stim {\n position: absolute;\n height: auto;\n cursor: pointer;\n }\n \n #instruction {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n \n #confirmContainer {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n</style>\n\n\n<body>\n\n \x3c!-- Center Instructions Panel --\x3e\n <div id="calibrationContentArea"> \n <div class="row gap-2" id="instruction">\n <div class="col">\n <div class="card" style="width: 45rem; height:39rem">\n <div class="card-body" style="text-align: center;">\n <h3 class="card-title" id="calibrationTitle"> <b> Calibration Phase </b> </h3>\n <h4 class="card-text"> Now, we need to recalibrate the navigation system. </h4>\n <h4 class="card-text" id="calibrationDescription"></h4>\n <div style="text-align: center; margin-bottom: 3vh;">\n <img id="calibrationImage" src="https://eyetrackingdata.blob.core.windows.net/public/Images/squareAddition_white.png" width="350px">\n </div>\n <div class="btn-group" role="group" aria-label="Basic example">\n <button type="button" class="btn btn-primary" id="giveAccessButton" onclick="giveAccess()">Give Access to Mic/Camera</button>\n <br>\n <button type="button" class="btn btn-primary" id="startTestButton" onclick="startTest(displayNextStim)" disabled>Start</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n \x3c!-- <center> <img src="./img/letter-calibration-explanation.gif" width="350vh" style="margin-bottom: 3vh;"> </center> --\x3e\n\n\n \x3c!-- Confirm Button --\x3e\n <div class="row gap-2" id="confirmContainer" style="display: none;">\n <div class="card-body" style="text-align: center;">\n <h3> Calibration complete! </h3>\n <button type="button" class="btn btn-primary" id="confirmButton"> Continue </button>\n </div>\n </div>\n\n<script data-dynamic>\nvar desktop = document.documentElement;\nvar camera_stream;\nvar audioRecorder;\nvar videoRecorder;\nvar videoChunks = [];\n\nvar deviceConfig = store.session.get(\'deviceConfig\')\n// var deviceConfig = {screenWidth: 29, screenHeight: 16.2, screenWidthPX: 960, screenHeightPX: 540, webcamHeight: 0.5}\nvar testConfig = store.session.get(\'testConfig\')\n// var testConfig = {dir: "https://eyetrackingdata.blob.core.windows.net/public/assets/Letter",\n// stimulus : ["C.svg", "D.svg", "H.svg", "K.svg", "N.svg", "O.svg", "R.svg", "S.svg", "V.svg", "Z.svg"],\n// sizecm: 2}\n\nif (testConfig[\'testname\'] === \'Letter\') {\n var subtestText = [\'Letter\', \'letter\']\n} else {\n var subtestText = [\'Number\', \'number\']\n}\n\n// Getting the div element by its ID\n// const calibrationDiv = document.getElementById(\'calibrationContentArea\');\n\n// Text you want to edit with ${} variables \n// const calibrationDetails = `\n// <div class="row gap-2" id="instruction">\n// <div class="col">\n// <div class="card" style="width: 45rem; height:39rem">\n// <div class="card-body" style="text-align: center;">\n// <h3 class="card-title"> <b> ${subtestText[0]} Calibration Phase </b> </h3>\n// <h4 class="card-text"> Now, we need to recalibrate the navigation system. </h4>\n// <h4 class="card-text"> You will see ${subtestText[1]}s pop up on the screen. Say the ${subtestText[1]} out loud <b>first</b> and then click on the ${subtestText[1]} to go to the next one. </h4>\n// <center> <img src="./img/${subtestText[1]}-calibration-explanation.gif" width="350vh" style="margin-bottom: 3vh;"> </center>\n// <div class="btn-group" role="group" aria-label="Basic example">\n// <button type="button" class="btn btn-primary" id="giveAccessButton" onclick="giveAccess()">Give Access to Mic/Camera</button>\n// <br>\n// <button type="button" class="btn btn-primary" id="startTestButton" onclick="startTest(displayNextStim)" disabled>Start</button>\n// </div>\n// </div>\n// </div>\n// </div>\n// </div>\n// `;\n\n// // Inserting the HTML code into the div\n// calibrationDiv.innerHTML = calibrationDetails;\n\nvar gridCoordinates = generateGridCoordinates(deviceConfig)\nvar shuffledImages = generateStimulusOrder(testConfig)\n\nvar _gridCoordinates = [] \n// gridCoordinates;\nvar _shuffledImages = []\n// shuffledImages.map(filename => filename.split(\'.\')[0]).reverse();\nvar _parentDir = store.session.get("id")\nvar _videoURL = []\nvar _deviceConfig = deviceConfig\nvar _testConfig = testConfig\n\n\nasync function displayNextStim() {\n const position = gridCoordinates.pop();\n if (position) {\n await stopRecording();\n await startRecording();\n const cell = document.createElement(\'div\');\n cell.id = \'cell\'; \n cell.style.width = `${position.width}px`;\n cell.style.height = `${position.height}px`;\n cell.style.left = `${position.x}px`; // Adjust for half of the cell width\n cell.style.top = `${position.y}px`; // Adjust for half of the cell height\n cell.style.position = \'absolute\'; // Ensure the position is set to absolute\n cell.style.transform = \'translate(-50%, -50%)\'; // Center the content within the element\n cell.style.justifyContent = \'center\'; // Center horizontally\n cell.style.alignItems = \'center\'; // Center vertically\n\n const stim = document.createElement(\'img\');\n const randomStimulus = shuffledImages.pop();\n stim.id = \'stim\'; \n stim.src = `${testConfig[\'dir\']}/${randomStimulus}`;\n stim.style.width = \'50%\'; // Make the image fill the cell\n\n cell.appendChild(stim);\n\n // stim.style.width = `${0.50*position.width}px`;\n // stim.style.left = `${position.x}px`;\n // stim.style.top = `${position.y}px`;\n // stim.style.position = \'absolute\'; // Ensure the position is set to absolute\n // stim.style.transform = \'translate(-50%, -50%)\'; // Center the content within the element\n cell.addEventListener(\'click\', () => handleStimClick(randomStimulus,cell,stim));\n document.body.appendChild(cell);\n } else {\n document.getElementById("confirmContainer").style.display = "block"\n console.log(\'All positions used.\');\n }\n}\n\nasync function handleStimClick(randomStimulus,cell,stim) {\n console.log(\'Image clicked!\');\n const timestamp = new Date().getTime();\n document.getElementById(\'cell\').disabled = true\n // Remove the clicked image\n // delay everything underneat by 200ms\n setTimeout(async () => {\n await stopRecording(); // Stop recording when stimulus is clicked\n const stimPosition = stim.getBoundingClientRect();\n var filename = randomStimulus.slice(0, -4) + \'_\' + stimPosition.x + \'_\' + stimPosition.y + \'_\' + timestamp\n filename = filename.replace(/\\./g, \'deci\') + \'.webm\'\n saveRecordings(filename= filename ,parentDir=store.session.get("id")); // Save the recorded audio and video\n _videoURL.push(filename)\n\n const gridCoordinatesObject = {\n x: parseFloat(cell.style.left),\n y: parseFloat(cell.style.top),\n width: parseFloat(cell.style.width),\n height: parseFloat(cell.style.height),\n stim_x:stimPosition.x,\n stim_y:stimPosition.y,\n stim_width:stimPosition.width,\n stim_height:stimPosition.height,\n };\n\n _gridCoordinates.push(gridCoordinatesObject)\n _shuffledImages.push(randomStimulus.slice(0, -4))\n document.getElementById(\'cell\').remove();\n displayNextStim(); // Display the next image\n },250); // Delay everything here by 200ms\n}\n\n\n\n<\/script>\n\n</body>\n</html>\n',document.body.appendChild(n),await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await hl(t.src)}}(n),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(n),document.getElementById("calibrationTitle").innerHTML=`<b>${subtestText[0]} Calibration Phase</b>`,document.getElementById("calibrationDescription").innerHTML=`You will see ${subtestText[1]}s pop up on the screen. Say the ${subtestText[1]} out loud <b>first</b> and then click on the ${subtestText[1]} to go to the next one.`,document.getElementById("calibrationImage").src=`https://eyetrackingdata.blob.core.windows.net/public/Images/${subtestText[1]}-calibration-explanation.gif`,await new Promise((t=>{const i=document.getElementById("confirmButton");i&&i.addEventListener("click",(()=>{const i={assessment_type:testConfig.testname,assessment_stage:"Calibration",stimulusPosition:_gridCoordinates,stimulus:_shuffledImages,recordedVideo:_videoURL,parentDir:_parentDir,correct:1,deviceConfig:_deviceConfig,testConfig:_testConfig};e.firekit.writeTrial(i),n.remove(),document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),t()}))}))}function hl(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;async function vl(){const e=document.createElement("div");e.innerHTML="\x3c!-- Scripts --\x3e\n<link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3\" crossorigin=\"anonymous\">\n\n\x3c!-- CSS --\x3e\n<style>\n\nbody {\n margin: 0;\n}\n\n .column {\n float: left;\n padding: 10px;\n}\n\n.left, .right {\n width: 33%;\n}\n\n.middle {\n width: 33%;\n}\n\n.row:after {\n content: \"\";\n display: table;\n clear: both;\n}\n\n</style>\n\n\x3c!-- HTML --\x3e\n<body id=\"body\">\n <div class=\"px-4 py-5 my-5 text-center\" style=\"display: block;\">\n <h1 class=\"display-5 fw-bold\" id=\"title\"> Activity Selection Menu </h1>\n <div class=\"col-lg-6 mx-auto\">\n <p class=\"lead mt-3 mb-5\"></p>\n <h4 class=\"card-text\"> Select an activity. Click on one of the options below to continue with the activity: </h4>\n <div class=\"row gap-2\" id=\"menuButtons\">\n </div>\n <div class=\"row gap-2\" id=\"confirmButtons\">\n <button id=\"confirmButton\">Next</button>\n </div>\n </div>\n </div>\n</body>\n\n\n<script data-dynamic>\n var jsonUrl = 'https://eyetrackingdata.blob.core.windows.net/public/config/tests.json';\n\n fetch(jsonUrl)\n .then(response => response.json())\n .then(data => {\n // Extract test names from the JSON data\n const testNames = Object.keys(data);\n // Create buttons dynamically based on test names\n const menuButtonsContainer = document.getElementById('menuButtons');\n const clickedTests = store.session.get('clickedTests') || [];\n testNames.forEach(testName => {\n console.log(testName)\n console.log(data[testName])\n\n const button = document.createElement('button');\n button.type = 'button';\n button.className = 'btn btn-primary';\n button.textContent = testName;\n\n if (clickedTests.includes(testName)) {\n button.classList.add('btn-secondary'); // Grayish color\n }\n\n button.addEventListener('click', () => {\n // Set the selected testType\n store.session.set('testConfig', data[testName]);\n console.log(`Stored testType: ${testName}`);\n \n // Highlight the clicked button and remove highlighting from others\n const buttons = menuButtonsContainer.getElementsByTagName('button');\n for (const otherButton of buttons) {\n otherButton.classList.remove('btn-success');\n }\n button.classList.add('btn-success');\n // Store the clicked test name in the array\n store.session.set('clickedTests', clickedTests);\n\n });\n menuButtonsContainer.appendChild(button);\n });\n if (store.session.get('clickedTests').length === document.getElementsByClassName('btn btn-primary').length){\n document.getElementById('confirmButton').textContent = 'Test Done. You Can Exit the Page!';\n document.getElementById('confirmButton').disabled = true;\n\n }\n })\n .catch(error => console.error('Error fetching JSON:', error));\n\n \n \n\n<\/script>\n ",document.body.appendChild(e),await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await gl(t.src)}}(e),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(e),await new Promise((n=>{const t=document.getElementById("confirmButton");t&&t.addEventListener("click",(()=>{document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),e.remove(),n()}))}))}function gl(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;async function xl(e,n){const t=document.createElement("div");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.innerHTML='<!DOCTYPE html>\n<html lang="en">\n<head>\n <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>Image and Audio Recording</title>\n\n <script data-dynamic src="./RAN.js"><\/script>\n</head>\n\n<style>\n \n body {\n margin: 0;\n min-height: 100vh; /* Ensure body takes the full viewport height */\n display: flex; /* Enable Flexbox */\n justify-content: center; /* Center content horizontally */\n align-items: center; /* Center content vertically */\n font-family: sans-serif;\n }\n\n stim {\n position: absolute;\n height: auto;\n cursor: pointer;\n }\n\n #instruction {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n \n #confirmContainer {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n</style>\n\n\n<body>\n\n <div id="grid-container" style="position: absolute; width: 100%; height: 100%; visibility: hidden;"></div>\n\n \x3c!-- Center Instructions Panel --\x3e\n <div id="instructionsContentArea">\n <div class="row gap-2" id="instruction">\n <div class="col">\n <div class="card" style="width:45rem; height:39rem">\n <div class="card-body" id="cardthing" style="text-align: center;">\n <h3 class="card-title" id="instructionTitle"></h3>\n <h4 class="card-text" id="instructionSubtitle"></h4>\n <h4 class="card-text" id="instructionDescription"></h4>\n <div style="text-align: center; margin-bottom: 3vh;">\n <img id="explanationGif" src="https://eyetrackingdata.blob.core.windows.net/public/Images/squareAddition_white.png" width="350px">\n </div>\n <div class="btn-group" role="group" aria-label="Basic example" style="margin-bottom: 2vh;">\n <button type="button" class="btn btn-primary" id="giveAccessButton" onclick="giveAccess()">Give Access to Mic/Camera</button>\n <br>\n <button type="button" class="btn btn-primary" id="startTestButton" onclick="startTest()" disabled>Start</button>\n </div>\n </div>\n </div>\n </div>\n </div> \n \n </div>\n \n \x3c!-- Confirm Button --\x3e\n <div class="row gap-2" id="confirmContainer" style="display: none;">\n <div class="card-body" style="text-align: center;">\n <h3> <span id="capName"></span> Test Complete </h3>\n <button type="button" class="btn btn-primary" id="confirmButton">Back to Menu</button>\n </div>\n </div>\n\n \x3c!-- Finish Button --\x3e\n <div id="finishButtonContainer" style="position: fixed; bottom: 10px; right: 10px; z-index: 1;">\n <button type="button" class="btn btn-primary" id="finishButton" onclick="finishTest()">Finish</button>\n </div>\n\n<script data-dynamic>\n\nvar desktop = document.documentElement;\nvar camera_stream;\nvar videoRecorder;\nvar audioChunks = [];\nvar videoChunks = [];\n\nvar deviceConfig = store.session.get(\'deviceConfig\')\n// var deviceConfig = {screenWidth: 29, screenHeight: 16.2, screenWidthPX: 960, screenHeightPX: 540, webcamHeight: 0.5}\nvar testConfig = store.session.get(\'testConfig\')\n// var testConfig = {dir: "https://eyetrackingdata.blob.core.windows.net/public/assets/Letter",\n// stimulus : ["C.svg", "D.svg", "H.svg", "K.svg", "N.svg", "O.svg", "R.svg", "S.svg", "V.svg", "Z.svg"],\n// sizecm: 2}\nvar clickedTests = store.session.get(\'clickedTests\') || [];\nclickedTests.push(testConfig[\'testname\'])\nstore.session.set(\'clickedTests\',clickedTests)\n\nvar gridCoordinates = generateGridCoordinates(deviceConfig)\nvar shuffledImages = generateStimulusOrder(testConfig)\n \nvar _gridCoordinates = []\n// gridCoordinates\nvar _shuffledImages = []\n// shuffledImages.map(filename => filename.split(\'.\')[0]);\nvar _parentDir = store.session.get("id")\nvar _videoURL = []\nvar _deviceConfig = deviceConfig\nvar _testConfig = testConfig\n\nif (testConfig[\'testname\'] === \'Letter\') {\n var subtestText = [\'Letter\', \'letter\']\n} else {\n var subtestText = [\'Number\', \'number\']\n}\n\n\nasync function finishTest() {\n console.log(\'Test Finished\');\n // Remove the clicked image\n await stopRecording(); // Stop recording when stimulus is clicked\n const timestamp = new Date().getTime();\n document.getElementById("finishButton").disabled=true\n \n var filename = \'RAN\' + \'_\' + testConfig[\'testname\'] + \'_\' + timestamp + \'.webm\'\n _videoURL.push(filename)\n\n document.getElementById("confirmContainer").style.display = "block"\n document.getElementById("grid-container").style.display = "none"\n document.getElementById("finishButtonContainer").style.display = "none"\n\n\n if (type!==\'Practice\') {\n try{\n await saveRecordings(filename= filename ,parentDir=store.session.get("id")); // Save the recorded audio and video\n } catch (error) {\n console.error(\'Error in saveRecordings:\', error);\n }\n }\n\n}\n\n\n<\/script>\n\n</body>\n</html>\n',document.body.appendChild(t),window.type=e,await async function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=n[e];t.src&&await bl(t.src)}}(t),function(e){const n=e.getElementsByTagName("script");for(let e=0;e<n.length;e++){const t=document.createElement("script");t.text=n[e].text,document.head.appendChild(t).parentNode.removeChild(t)}}(t),function(e){if(document.getElementById("instructionTitle").innerHTML=`<b>${subtestText[0]} ${e} Phase</b>`,document.getElementById("explanationGif").src=`https://eyetrackingdata.blob.core.windows.net/public/Images/${subtestText[1]}-${e.toLowerCase()}-reading-order.gif`,"Practice"===e){document.getElementById("instructionSubtitle").innerHTML="Let's do some practice!",document.getElementById("instructionDescription").innerHTML=`You’re going to see a row of ${subtestText[1]}s. <span id="distance-span"> </span> </h4>\n Read them out loud as fast as you can without making mistakes. <span id="distance-span"> </span> </h4>\n Remember to read like you normally do by going from <b> left to right. </b> <span id="distance-span"> </span> </h4>`}else{document.getElementById("instructionSubtitle").innerHTML="Let’s start for real now.",document.getElementById("instructionDescription").innerHTML=`Read the ${subtestText[1]}s as fast as you can without making mistakes. Remember to read in the right direction: <span id="distance-span"> </span>`}}(e),await new Promise((e=>{const i=document.getElementById("confirmButton");i&&i.addEventListener("click",(()=>{const i={assessment_type:testConfig.testname,assessment_stage:"Test",stimulusPosition:_gridCoordinates,stimulus:_shuffledImages,recordedVideo:_videoURL,parentDir:_parentDir,correct:1,deviceConfig:_deviceConfig,testConfig:_testConfig};n.firekit.writeTrial(i),t.remove(),document.querySelectorAll("script[data-dynamic]").forEach((e=>e.parentNode.removeChild(e))),e()}))}))}function bl(e){return new Promise(((n,t)=>{const i=document.createElement("script");i.src=e,i.onload=n,i.onerror=t,document.head.appendChild(i)}))}window.store=o;class yl{constructor(e,n,t,i){this.gameParams=n,this.userParams=t,this.firekit=e,this.displayElement=i}async init(){}async run(){const e=new URLSearchParams(window.location.search);function n(n,t){const i=e.get(n);return null===i?t:i.toLowerCase()}o.session.set("consent",n("consent","false")),o.session.set("participantID",n("participantID","")),o.session.set("viewType",n("viewType","simple")),"true"===o.session.get("consent")&&await pl(),await this.firekit.startRun();const t=await(async(e,n,t,i)=>{const a=yo(yo({...n,...t},wo),_o),{userMetadata:o={},audioFeedback:r,language:s=Dr.language,skipInstructions:c,practiceCorpus:l,stimulusCorpus:p,sequentialPractice:u,sequentialStimulus:d,buttonLayout:m,numberOfTrials:f,storyCorpus:h,taskName:v,stimulusBlocks:g,numOfPracticeTrials:x,story:b,keyHelpers:y}=a;"en"!==s&&Dr.changeLanguage(s);const w={userMetadata:{...o},audioFeedback:r||"neutral",skipInstructions:c??!0,startTime:new Date,firekit:e,displayElement:i||null,practiceCorpus:l??"math-item-bank-practice-pz",stimulusCorpus:p??"math-item-bank-pz",sequentialPractice:u??!0,sequentialStimulus:d??!0,buttonLayout:m||"default",numberOfTrials:f??10,storyCorpus:h??"story-lion",task:v??"egma-math",stimulusBlocks:g??3,numOfPracticeTrials:x??2,story:b??!1,keyHelpers:y??!0},_=Object.fromEntries(Object.entries(n).map((([e,n])=>[e,w[e]??n])));return await w.firekit.updateTaskParams(_),null!==w.pid&&await w.firekit.updateUser({assessmentPid:w.pid,...o}),w})(this.firekit,this.gameParams,this.userParams,this.displayElement);o.session.set("config",t),await dl(t);for(;;)await vl(),await fl(t),await xl("Practice",t),await xl("Test",t);console.log("Finished")}}export{yl as default};
11
+ //# sourceMappingURL=index.83dd36c1.js.map