@bdelab/roar-levante-tasks 0.1.0 → 0.2.0

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,17 +0,0 @@
1
- ;{try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b3ef01b5-1d6e-407f-bf56-e2bcae54deb9",e._sentryDebugIdIdentifier="sentry-dbid-b3ef01b5-1d6e-407f-bf56-e2bcae54deb9")}catch(e){}};import e from"stream";import t from"path";("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"09e4cfe84d9d942d6a142f1abf822d6c2d2d8e05"};var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r=function(){this.__data__=[],this.size=0};var s=function(e,t){return e===t||e!=e&&t!=t},o=s;var a=function(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1},c=a,l=Array.prototype.splice;var u=a;var p=a;var d=a;var m=r,h=function(e){var t=this.__data__,n=c(t,e);return!(n<0)&&(n==t.length-1?t.pop():l.call(t,n,1),--this.size,!0)},f=function(e){var t=this.__data__,n=u(t,e);return n<0?void 0:t[n][1]},g=function(e){return p(this.__data__,e)>-1},v=function(e,t){var n=this.__data__,i=d(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}y.prototype.clear=m,y.prototype.delete=h,y.prototype.get=f,y.prototype.has=g,y.prototype.set=v;var b=y,x=b;var _=function(){this.__data__=new x,this.size=0};var w=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var k=function(e){return this.__data__.get(e)};var S=function(e){return this.__data__.has(e)},T="object"==typeof n&&n&&n.Object===Object&&n,E=T,C="object"==typeof self&&self&&self.Object===Object&&self,I=E||C||Function("return this")(),j=I.Symbol,O=j,A=Object.prototype,L=A.hasOwnProperty,R=A.toString,P=O?O.toStringTag:void 0;var M=function(e){var t=L.call(e,P),n=e[P];try{e[P]=void 0;var i=!0}catch(e){}var r=R.call(e);return i&&(t?e[P]=n:delete e[P]),r},N=Object.prototype.toString;var D=M,F=function(e){return N.call(e)},z=j?j.toStringTag:void 0;var $=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?D(e):F(e)};var B=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},q=$,U=B;var H,W=function(e){if(!U(e))return!1;var t=q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},V=I["__core-js_shared__"],K=(H=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"";var Y=function(e){return!!K&&K in e},G=Function.prototype.toString;var J=function(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""},X=W,Z=Y,Q=B,ee=J,te=/^\[object .+?Constructor\]$/,ne=Function.prototype,ie=Object.prototype,re=ne.toString,se=ie.hasOwnProperty,oe=RegExp("^"+re.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ae=function(e){return!(!Q(e)||Z(e))&&(X(e)?oe:te).test(ee(e))},ce=function(e,t){return null==e?void 0:e[t]};var le=function(e,t){var n=ce(e,t);return ae(n)?n:void 0},ue=le(I,"Map"),pe=le(Object,"create"),de=pe;var me=function(){this.__data__=de?de(null):{},this.size=0};var he=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe=pe,ge=Object.prototype.hasOwnProperty;var ve=function(e){var t=this.__data__;if(fe){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ge.call(t,e)?t[e]:void 0},ye=pe,be=Object.prototype.hasOwnProperty;var xe=pe;var _e=me,we=he,ke=ve,Se=function(e){var t=this.__data__;return ye?void 0!==t[e]:be.call(t,e)},Te=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xe&&void 0===t?"__lodash_hash_undefined__":t,this};function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ee.prototype.clear=_e,Ee.prototype.delete=we,Ee.prototype.get=ke,Ee.prototype.has=Se,Ee.prototype.set=Te;var Ce=Ee,Ie=b,je=ue;var Oe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ae=function(e,t){var n=e.__data__;return Oe(t)?n["string"==typeof t?"string":"hash"]:n.map},Le=Ae;var Re=Ae;var Pe=Ae;var Me=Ae;var Ne=function(){this.size=0,this.__data__={hash:new Ce,map:new(je||Ie),string:new Ce}},De=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},Fe=function(e){return Re(this,e).get(e)},ze=function(e){return Pe(this,e).has(e)},$e=function(e,t){var n=Me(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Be.prototype.clear=Ne,Be.prototype.delete=De,Be.prototype.get=Fe,Be.prototype.has=ze,Be.prototype.set=$e;var qe=Be,Ue=b,He=ue,We=qe;var Ve=b,Ke=_,Ye=w,Ge=k,Je=S,Xe=function(e,t){var n=this.__data__;if(n instanceof Ue){var i=n.__data__;if(!He||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new We(i)}return n.set(e,t),this.size=n.size,this};function Ze(e){var t=this.__data__=new Ve(e);this.size=t.size}Ze.prototype.clear=Ke,Ze.prototype.delete=Ye,Ze.prototype.get=Ge,Ze.prototype.has=Je,Ze.prototype.set=Xe;var Qe=Ze;var et=qe,tt=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},nt=function(e){return this.__data__.has(e)};function it(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new et;++t<n;)this.add(e[t])}it.prototype.add=it.prototype.push=tt,it.prototype.has=nt;var rt=it,st=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},ot=function(e,t){return e.has(t)};var at=function(e,t,n,i,r,s){var o=1&n,a=e.length,c=t.length;if(a!=c&&!(o&&c>a))return!1;var l=s.get(e),u=s.get(t);if(l&&u)return l==t&&u==e;var p=-1,d=!0,m=2&n?new rt:void 0;for(s.set(e,t),s.set(t,e);++p<a;){var h=e[p],f=t[p];if(i)var g=o?i(f,h,p,t,e,s):i(h,f,p,e,t,s);if(void 0!==g){if(g)continue;d=!1;break}if(m){if(!st(t,function(e,t){if(!ot(m,t)&&(h===e||r(h,e,n,i,s)))return m.push(t)})){d=!1;break}}else if(h!==f&&!r(h,f,n,i,s)){d=!1;break}}return s.delete(e),s.delete(t),d},ct=I.Uint8Array;var lt=ct,ut=s,pt=at,dt=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n},mt=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n},ht=j?j.prototype:void 0,ft=ht?ht.valueOf:void 0;var gt=function(e,t,n,i,r,s,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new lt(e),new lt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ut(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=dt;case"[object Set]":var c=1&i;if(a||(a=mt),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;i|=2,o.set(e,t);var u=pt(a(e),a(t),i,r,s,o);return o.delete(e),u;case"[object Symbol]":if(ft)return ft.call(e)==ft.call(t)}return!1};var vt=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},yt=Array.isArray,bt=vt,xt=yt;var _t=function(e,t,n){var i=t(e);return xt(e)?i:bt(i,n(e))};var wt=function(){return[]},kt=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s},St=wt,Tt=Object.prototype.propertyIsEnumerable,Et=Object.getOwnPropertySymbols,Ct=Et?function(e){return null==e?[]:(e=Object(e),kt(Et(e),function(t){return Tt.call(e,t)}))}:St;var It=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i};var jt=function(e){return null!=e&&"object"==typeof e},Ot=$,At=jt;var Lt=function(e){return At(e)&&"[object Arguments]"==Ot(e)},Rt=jt,Pt=Object.prototype,Mt=Pt.hasOwnProperty,Nt=Pt.propertyIsEnumerable,Dt=Lt(function(){return arguments}())?Lt:function(e){return Rt(e)&&Mt.call(e,"callee")&&!Nt.call(e,"callee")},Ft={exports:{}};var zt=function(){return!1};!function(e,t){var n=I,i=zt,r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,o=s&&s.exports===r?n.Buffer:void 0,a=(o?o.isBuffer:void 0)||i;e.exports=a}(Ft,Ft.exports);var $t=Ft.exports,Bt=/^(?:0|[1-9]\d*)$/;var qt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Bt.test(e))&&e>-1&&e%1==0&&e<t};var Ut=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ht=$,Wt=Ut,Vt=jt,Kt={};Kt["[object Float32Array]"]=Kt["[object Float64Array]"]=Kt["[object Int8Array]"]=Kt["[object Int16Array]"]=Kt["[object Int32Array]"]=Kt["[object Uint8Array]"]=Kt["[object Uint8ClampedArray]"]=Kt["[object Uint16Array]"]=Kt["[object Uint32Array]"]=!0,Kt["[object Arguments]"]=Kt["[object Array]"]=Kt["[object ArrayBuffer]"]=Kt["[object Boolean]"]=Kt["[object DataView]"]=Kt["[object Date]"]=Kt["[object Error]"]=Kt["[object Function]"]=Kt["[object Map]"]=Kt["[object Number]"]=Kt["[object Object]"]=Kt["[object RegExp]"]=Kt["[object Set]"]=Kt["[object String]"]=Kt["[object WeakMap]"]=!1;var Yt=function(e){return Vt(e)&&Wt(e.length)&&!!Kt[Ht(e)]};var Gt=function(e){return function(t){return e(t)}},Jt={exports:{}};!function(e,t){var n=T,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,s=r&&r.exports===i&&n.process,o=function(){try{var e=r&&r.require&&r.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o}(Jt,Jt.exports);var Xt=Jt.exports,Zt=Yt,Qt=Gt,en=Xt&&Xt.isTypedArray,tn=en?Qt(en):Zt,nn=It,rn=Dt,sn=yt,on=$t,an=qt,cn=tn,ln=Object.prototype.hasOwnProperty;var un=function(e,t){var n=sn(e),i=!n&&rn(e),r=!n&&!i&&on(e),s=!n&&!i&&!r&&cn(e),o=n||i||r||s,a=o?nn(e.length,String):[],c=a.length;for(var l in e)!t&&!ln.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||an(l,c))||a.push(l);return a},pn=Object.prototype;var dn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||pn)};var mn=function(e,t){return function(n){return e(t(n))}},hn=mn(Object.keys,Object),fn=dn,gn=hn,vn=Object.prototype.hasOwnProperty;var yn=W,bn=Ut;var xn=function(e){return null!=e&&bn(e.length)&&!yn(e)},_n=un,wn=function(e){if(!fn(e))return gn(e);var t=[];for(var n in Object(e))vn.call(e,n)&&"constructor"!=n&&t.push(n);return t},kn=xn;var Sn=function(e){return kn(e)?_n(e):wn(e)},Tn=_t,En=Ct,Cn=Sn;var In=function(e){return Tn(e,Cn,En)},jn=In,On=Object.prototype.hasOwnProperty;var An=function(e,t,n,i,r,s){var o=1&n,a=jn(e),c=a.length;if(c!=jn(t).length&&!o)return!1;for(var l=c;l--;){var u=a[l];if(!(o?u in t:On.call(t,u)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var h=o;++l<c;){var f=e[u=a[l]],g=t[u];if(i)var v=o?i(g,f,u,t,e,s):i(f,g,u,e,t,s);if(!(void 0===v?f===g||r(f,g,n,i,s):v)){m=!1;break}h||(h="constructor"==u)}if(m&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(m=!1)}return s.delete(e),s.delete(t),m},Ln=le(I,"DataView"),Rn=ue,Pn=le(I,"Promise"),Mn=le(I,"Set"),Nn=le(I,"WeakMap"),Dn=$,Fn=J,zn="[object Map]",$n="[object Promise]",Bn="[object Set]",qn="[object WeakMap]",Un="[object DataView]",Hn=Fn(Ln),Wn=Fn(Rn),Vn=Fn(Pn),Kn=Fn(Mn),Yn=Fn(Nn),Gn=Dn;(Ln&&Gn(new Ln(new ArrayBuffer(1)))!=Un||Rn&&Gn(new Rn)!=zn||Pn&&Gn(Pn.resolve())!=$n||Mn&&Gn(new Mn)!=Bn||Nn&&Gn(new Nn)!=qn)&&(Gn=function(e){var t=Dn(e),n="[object Object]"==t?e.constructor:void 0,i=n?Fn(n):"";if(i)switch(i){case Hn:return Un;case Wn:return zn;case Vn:return $n;case Kn:return Bn;case Yn:return qn}return t});var Jn=Gn,Xn=Qe,Zn=at,Qn=gt,ei=An,ti=Jn,ni=yt,ii=$t,ri=tn,si="[object Arguments]",oi="[object Array]",ai="[object Object]",ci=Object.prototype.hasOwnProperty;var li=function(e,t,n,i,r,s){var o=ni(e),a=ni(t),c=o?oi:ti(e),l=a?oi:ti(t),u=(c=c==si?ai:c)==ai,p=(l=l==si?ai:l)==ai,d=c==l;if(d&&ii(e)){if(!ii(t))return!1;o=!0,u=!1}if(d&&!u)return s||(s=new Xn),o||ri(e)?Zn(e,t,n,i,r,s):Qn(e,t,c,n,i,r,s);if(!(1&n)){var m=u&&ci.call(e,"__wrapped__"),h=p&&ci.call(t,"__wrapped__");if(m||h){var f=m?e.value():e,g=h?t.value():t;return s||(s=new Xn),r(f,g,n,i,s)}}return!!d&&(s||(s=new Xn),ei(e,t,n,i,r,s))},ui=jt;var pi=function e(t,n,i,r,s){return t===n||(null==t||null==n||!ui(t)&&!ui(n)?t!=t&&n!=n:li(t,n,i,r,e,s))},di=Qe,mi=pi;var hi=B;var fi=function(e){return e==e&&!hi(e)},gi=fi,vi=Sn;var yi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},bi=function(e,t,n,i){var r=n.length,s=r,o=!i;if(null==e)return!s;for(e=Object(e);r--;){var a=n[r];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<s;){var c=(a=n[r])[0],l=e[c],u=a[1];if(o&&a[2]){if(void 0===l&&!(c in e))return!1}else{var p=new di;if(i)var d=i(l,u,c,e,t,p);if(!(void 0===d?mi(u,l,3,i,p):d))return!1}}return!0},xi=function(e){for(var t=vi(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,gi(r)]}return t},_i=yi;var wi=function(e){var t=xi(e);return 1==t.length&&t[0][2]?_i(t[0][0],t[0][1]):function(n){return n===e||bi(n,e,t)}},ki=$,Si=jt;var Ti=function(e){return"symbol"==typeof e||Si(e)&&"[object Symbol]"==ki(e)},Ei=yt,Ci=Ti,Ii=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ji=/^\w*$/;var Oi=function(e,t){if(Ei(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ci(e))||(ji.test(e)||!Ii.test(e)||null!=t&&e in Object(t))},Ai=qe;function Li(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(Li.Cache||Ai),n}Li.Cache=Ai;var Ri=Li;var Pi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mi=/\\(\\)?/g,Ni=function(e){var t=Ri(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Pi,function(e,n,i,r){t.push(i?r.replace(Mi,"$1"):n||e)}),t});var Di=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r},Fi=Di,zi=yt,$i=Ti,Bi=j?j.prototype:void 0,qi=Bi?Bi.toString:void 0;var Ui=function e(t){if("string"==typeof t)return t;if(zi(t))return Fi(t,e)+"";if($i(t))return qi?qi.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Hi=Ui;var Wi=yt,Vi=Oi,Ki=Ni,Yi=function(e){return null==e?"":Hi(e)};var Gi=function(e,t){return Wi(e)?e:Vi(e,t)?[e]:Ki(Yi(e))},Ji=Ti;var Xi=function(e){if("string"==typeof e||Ji(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Zi=Gi,Qi=Xi;var er=function(e,t){for(var n=0,i=(t=Zi(t,e)).length;null!=e&&n<i;)e=e[Qi(t[n++])];return n&&n==i?e:void 0},tr=er;var nr=function(e,t,n){var i=null==e?void 0:tr(e,t);return void 0===i?n:i};var ir=Gi,rr=Dt,sr=yt,or=qt,ar=Ut,cr=Xi;var lr=function(e,t,n){for(var i=-1,r=(t=ir(t,e)).length,s=!1;++i<r;){var o=cr(t[i]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&ar(r)&&or(o,r)&&(sr(e)||rr(e))},ur=function(e,t){return null!=e&&t in Object(e)},pr=lr;var dr=function(e,t){return null!=e&&pr(e,t,ur)},mr=pi,hr=nr,fr=dr,gr=Oi,vr=fi,yr=yi,br=Xi;var xr=function(e,t){return gr(e)&&vr(t)?yr(br(e),t):function(n){var i=hr(n,e);return void 0===i&&i===t?fr(n,e):mr(t,i,3)}};var _r=er;var wr=function(e){return function(t){return _r(t,e)}},kr=function(e){return function(t){return null==t?void 0:t[e]}},Sr=wr,Tr=Oi,Er=Xi;var Cr=function(e){return Tr(e)?kr(Er(e)):Sr(e)},Ir=wi,jr=xr,Or=function(e){return e},Ar=yt,Lr=Cr;var Rr=function(e){return"function"==typeof e?e:null==e?Or:"object"==typeof e?Ar(e)?jr(e[0],e[1]):Ir(e):Lr(e)};var Pr=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},Mr=le,Nr=function(){try{var e=Mr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Dr=function(e,t,n){"__proto__"==t&&Nr?Nr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Fr=Dr,zr=s,$r=Object.prototype.hasOwnProperty;var Br=function(e,t,n){var i=e[t];$r.call(e,t)&&zr(i,n)&&(void 0!==n||t in e)||Fr(e,t,n)},qr=Br,Ur=Gi,Hr=qt,Wr=B,Vr=Xi;var Kr=function(e,t,n,i){if(!Wr(e))return e;for(var r=-1,s=(t=Ur(t,e)).length,o=s-1,a=e;null!=a&&++r<s;){var c=Vr(t[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=o){var u=a[c];void 0===(l=i?i(u,c,a):void 0)&&(l=Wr(u)?u:Hr(t[r+1])?[]:{})}qr(a,c,l),a=a[c]}return e},Yr=er,Gr=Kr,Jr=Gi;var Xr=function(e,t,n){for(var i=-1,r=t.length,s={};++i<r;){var o=t[i],a=Yr(e,o);n(a,o)&&Gr(s,Jr(o,e),a)}return s},Zr=mn(Object.getPrototypeOf,Object),Qr=vt,es=Zr,ts=Ct,ns=wt,is=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Qr(t,ts(e)),e=es(e);return t}:ns;var rs=B,ss=dn,os=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},as=Object.prototype.hasOwnProperty;var cs=un,ls=function(e){if(!rs(e))return os(e);var t=ss(e),n=[];for(var i in e)("constructor"!=i||!t&&as.call(e,i))&&n.push(i);return n},us=xn;var ps=function(e){return us(e)?cs(e,!0):ls(e)},ds=_t,ms=is,hs=ps;var fs=function(e){return ds(e,hs,ms)},gs=Di,vs=Rr,ys=Xr,bs=fs;var xs=function(e,t){if(null==e)return{};var n=gs(bs(e),function(e){return[e]});return t=vs(t),ys(e,n,function(e,n){return t(e,n[0])})},_s=Rr,ws=Pr,ks=xs;var Ss=i(function(e,t){return ks(e,ws(_s(t)))});var Ts=i(function(e){return null===e});var Es=i(function(e){return void 0===e});function Cs(e){return Cs="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},Cs(e)}function Is(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function js(e){var t=function(e,t){if("object"!=Cs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Cs(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cs(t)?t:t+""}function Os(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,js(i.key),i)}}function As(e,t,n){return t&&Os(e.prototype,t),n&&Os(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ls(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rs(e,t){return Rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rs(e,t)}function Ps(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rs(e,t)}function Ms(e,t){if(t&&("object"==Cs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ls(e)}function Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ns(e)}function Ds(e,t,n){return(t=js(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function zs(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,t){if(e){if("string"==typeof e)return Fs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fs(e,t):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 $s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var qs={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,t){console&&console[e]&&console[e].apply(console,t)}},Us=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Is(this,e),this.init(t,n)}return As(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||qs,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,Bs(Bs({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),Hs=new Us,Ws=function(){function e(){Is(this,e),this.observers={}}return As(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)});this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function Vs(){var e,t,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}function Ks(e){return null==e?"":""+e}function Ys(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var s="string"!=typeof t?[].concat(t):t.split(".");s.length>1;){if(r())return{};var o=i(s.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return r()?{}:{obj:e,k:i(s.shift())}}function Gs(e,t,n){var i=Ys(e,t,Object);i.obj[i.k]=n}function Js(e,t){var n=Ys(e,t),i=n.obj,r=n.k;if(i)return i[r]}function Xs(e,t,n){for(var i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):Xs(e[i],t[i],n):e[i]=t[i]);return e}function Zs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Qs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function eo(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return Qs[e]}):e}var to="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,no=[" ",",","?","!",";"];function io(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,s=0;s<i.length;++s){if(!r)return;if("string"==typeof r[i[s]]&&s+1<i.length)return;if(void 0===r[i[s]]){for(var o=2,a=i.slice(s,s+o).join(n),c=r[a];void 0===c&&i.length>s+o;)o++,c=r[a=i.slice(s,s+o).join(n)];if(void 0===c)return;if(null===c)return null;if(t.endsWith(a)){if("string"==typeof c)return c;if(a&&"string"==typeof c[a])return c[a]}var l=i.slice(s+o).join(n);return l?io(c,l,n):void 0}r=r[i[s]]}return r}}function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function so(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oo(e){var t=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 n,i=Ns(e);if(t){var r=Ns(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Ms(this,n)}}var ao=function(){Ps(t,Ws);var e=oo(t);function t(n){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Is(this,t),i=e.call(this),to&&Ws.call(Ls(i)),i.data=n||{},i.options=r,void 0===i.options.keySeparator&&(i.options.keySeparator="."),void 0===i.options.ignoreJSONStructure&&(i.options.ignoreJSONStructure=!0),i}return As(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[e,t];n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(o=e.split("."));var a=Js(this.data,o);return a||!s||"string"!=typeof n?a:io(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];n&&(o=o.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(i=t,t=(o=e.split("."))[1]),this.addNamespaces(t),Gs(this.data,o,i),r.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(i=n,n=t,t=(o=e.split("."))[1]),this.addNamespaces(t);var a=Js(this.data,o)||{};i?Xs(a,n,r):a=so(so({},a),n),Gs(this.data,o,a),s.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?so(so({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),t}(),co={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,r){var s=this;return e.forEach(function(e){s.processors[e]&&(t=s.processors[e].process(t,n,i,r))}),t}};function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lo(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function po(e){var t=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 n,i=Ns(e);if(t){var r=Ns(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Ms(this,n)}}var mo={},ho=function(){Ps(t,Ws);var e=po(t);function t(n){var i,r,s,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Is(this,t),i=e.call(this),to&&Ws.call(Ls(i)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],s=n,o=Ls(i),r.forEach(function(e){s[e]&&(o[e]=s[e])}),i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=Hs.create("translator"),i}return As(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],s=n&&e.indexOf(n)>-1,o=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var i=no.filter(function(e){return t.indexOf(e)<0&&n.indexOf(e)<0});if(0===i.length)return!0;var r=new RegExp("(".concat(i.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),s=!r.test(e);if(!s){var o=e.indexOf(n);o>0&&!r.test(e.substring(0,o))&&(s=!0)}return s}(e,n,i));if(s&&!o){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:r};var c=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(c[0])>-1)&&(r=c.shift()),e=c.join(i)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,n,i){var r=this;if("object"!==Cs(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"===Cs(n)&&(n=uo({},n)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),c=a.key,l=a.namespaces,u=l[l.length-1],p=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(d){var m=n.nsSeparator||this.options.nsSeparator;return s?{res:"".concat(u).concat(m).concat(c),usedKey:c,exactUsedKey:c,usedLng:p,usedNS:u}:"".concat(u).concat(m).concat(c)}return s?{res:c,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:u}:c}var h=this.resolve(e,n),f=h&&h.res,g=h&&h.usedKey||c,v=h&&h.exactUsedKey||c,y=Object.prototype.toString.apply(f),b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&f&&("string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,f,uo(uo({},n),{},{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return s?(h.res=_,h):_}if(o){var w="[object Array]"===y,k=w?[]:{},S=w?v:g;for(var T in f)if(Object.prototype.hasOwnProperty.call(f,T)){var E="".concat(S).concat(o).concat(T);k[T]=this.translate(E,uo(uo({},n),{joinArrays:!1,ns:l})),k[T]===E&&(k[T]=f[T])}f=k}}else if(x&&"string"==typeof b&&"[object Array]"===y)(f=f.join(b))&&(f=this.extendTranslation(f,e,n,i));else{var C=!1,I=!1,j=void 0!==n.count&&"string"!=typeof n.count,O=t.hasDefaultValue(n),A=j?this.pluralResolver.getSuffix(p,n.count,n):"",L=n["defaultValue".concat(A)]||n.defaultValue;!this.isValidLookup(f)&&O&&(C=!0,f=L),this.isValidLookup(f)||(I=!0,f=c);var R=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:f,P=O&&L!==f&&this.options.updateMissing;if(I||C||P){if(this.logger.log(P?"updateKey":"missingKey",p,u,c,P?L:f),o){var M=this.resolve(c,uo(uo({},n),{},{keySeparator:!1}));M&&M.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 N=[],D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&D&&D[0])for(var F=0;F<D.length;F++)N.push(D[F]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(n.lng||this.language):N.push(n.lng||this.language);var z=function(e,t,i){var s=O&&i!==f?i:R;r.options.missingKeyHandler?r.options.missingKeyHandler(e,u,t,s,P,n):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,u,t,s,P,n),r.emit("missingKey",e,u,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?N.forEach(function(e){r.pluralResolver.getSuffixes(e,n).forEach(function(t){z([e],c+t,n["defaultValue".concat(t)]||L)})}):z(N,c,L))}f=this.extendTranslation(f,e,n,h,i),I&&f===c&&this.options.appendNamespaceToMissingKey&&(f="".concat(u,":").concat(c)),(I||C)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(c):c,C?f:void 0):this.options.parseMissingKeyHandler(f))}return s?(h.res=f,h):f}},{key:"extendTranslation",value:function(e,t,n,i,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,uo(uo({},this.options.interpolation.defaultVariables),n),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(uo(uo({},n),{interpolation:uo(uo({},this.options.interpolation),n.interpolation)}));var o,a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var c=e.match(this.interpolator.nestingRegexp);o=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=uo(uo({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),a){var u=e.match(this.interpolator.nestingRegexp);o<(u&&u.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!n.context?(s.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):s.translate.apply(s,i.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,d="string"==typeof p?[p]:p;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=co.handle(d,e,t,this.options&&this.options.postProcessPassResolved?uo({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,r,s,o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!o.isValidLookup(t)){var c=o.extractFromKey(e,a),l=c.key;n=l;var u=c.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var p=void 0!==a.count&&"string"!=typeof a.count,d=p&&!a.ordinal&&0===a.count&&o.pluralResolver.shouldUseIntlApi(),m=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);u.forEach(function(e){o.isValidLookup(t)||(s=e,!mo["".concat(h[0],"-").concat(e)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(s)&&(mo["".concat(h[0],"-").concat(e)]=!0,o.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(s,'" 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!!!")),h.forEach(function(n){if(!o.isValidLookup(t)){r=n;var s,c=[l];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(c,l,n,e,a);else{var u;p&&(u=o.pluralResolver.getSuffix(n,a.count,a));var h="".concat(o.options.pluralSeparator,"zero");if(p&&(c.push(l+u),d&&c.push(l+h)),m){var f="".concat(l).concat(o.options.contextSeparator).concat(a.context);c.push(f),p&&(c.push(f+u),d&&c.push(f+h))}}for(;s=c.pop();)o.isValidLookup(t)||(i=s,t=o.getResource(n,e,s,a))}}))})}}),{res:t,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:s}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),t}();function fo(e){return e.charAt(0).toUpperCase()+e.slice(1)}var go=function(){function e(t){Is(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Hs.create("languageUtils")}return As(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=fo(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=fo(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=fo(n[2].toLowerCase()))),n.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 t,n=this;return e?(e.forEach(function(e){if(!t){var i=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(i)||(t=i)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find(function(e){return e===i?e:e.indexOf("-")<0&&i.indexOf("-")<0?void 0:0===e.indexOf(i)?e:void 0})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],s=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):"string"==typeof e&&s(this.formatLanguageCode(e)),i.forEach(function(e){r.indexOf(e)<0&&s(n.formatLanguageCode(e))}),r}}]),e}(),vo=[{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}],yo={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)}},bo=["v1","v2","v3"],xo={zero:0,one:1,two:2,few:3,many:4,other:5};var _o=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Is(this,e),this.languageUtils=t,this.options=i,this.logger=Hs.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=(n={},vo.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:yo[e.fc]}})}),n)}return As(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(e,t){return xo[e]-xo[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):i.numbers.map(function(i){return t.getSuffix(e,i,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(t)):this.getSuffixRetroCompatible(i,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var s=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):s():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!bo.includes(this.options.compatibilityJSON)}}]),e}();function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function So(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=function(e,t,n){var i=Js(e,n);return void 0!==i?i:Js(t,n)}(e,t,n);return!s&&r&&"string"==typeof n&&void 0===(s=io(e,n,i))&&(s=io(t,n,i)),s}var To=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Is(this,e),this.logger=Hs.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return As(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:eo,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Zs(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Zs(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Zs(t.nestingPrefix):t.nestingPrefixEscaped||Zs("$t("),this.nestingSuffix=t.nestingSuffix?Zs(t.nestingSuffix):t.nestingSuffixEscaped||Zs(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.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 t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var r,s,o,a=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(a.formatSeparator)<0){var r=So(t,c,e,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(r,void 0,n,ko(ko(ko({},i),t),{},{interpolationkey:e})):r}var s=e.split(a.formatSeparator),o=s.shift().trim(),l=s.join(a.formatSeparator).trim();return a.format(So(t,c,o,a.options.keySeparator,a.options.ignoreJSONStructure),l,n,ko(ko(ko({},i),t),{},{interpolationkey:o}))};this.resetRegExp();var p=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 a.escapeValue?l(a.escape(e)):l(e)}}].forEach(function(t){for(o=0;r=t.regex.exec(e);){var n=r[1].trim();if(void 0===(s=u(n)))if("function"==typeof p){var c=p(e,r,i);s="string"==typeof c?c:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))s="";else{if(d){s=r[0];continue}a.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),s=""}else"string"==typeof s||a.useRawValueToEscape||(s=Ks(s));var l=t.safeValue(s);if(e=e.replace(r[0],l),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++o>=a.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,i,r,s=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),s="{".concat(i[1]);e=i[0];var o=(s=this.interpolate(s,r)).match(/'/g),a=s.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(s=s.replace(/'/g,'"'));try{r=JSON.parse(s),t&&(r=ko(ko({},t),r))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(s)}return delete r.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var c=[];(r=(r=ko({},o)).replace&&"string"!=typeof r.replace?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;var l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=u.shift(),c=u,l=!0}if((i=t(a.call(this,n[1].trim(),r),r))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=Ks(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),l&&(i=c.reduce(function(e,t){return s.format(e,t,o.lng,ko(ko({},o),{},{interpolationkey:n[1].trim()}))},i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}();function Eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eo(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Io(e){var t={};return function(n,i,r){var s=i+JSON.stringify(r),o=t[s];return o||(o=e(i,r),t[s]=o),o(n)}}var jo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Is(this,e),this.logger=Hs.create("formatter"),this.options=t,this.formats={number:Io(function(e,t){var n=new Intl.NumberFormat(e,Co({},t));return function(e){return n.format(e)}}),currency:Io(function(e,t){var n=new Intl.NumberFormat(e,Co(Co({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:Io(function(e,t){var n=new Intl.DateTimeFormat(e,Co({},t));return function(e){return n.format(e)}}),relativetime:Io(function(e,t){var n=new Intl.RelativeTimeFormat(e,Co({},t));return function(e){return n.format(e,t.range||"day")}}),list:Io(function(e,t){var n=new Intl.ListFormat(e,Co({},t));return function(e){return n.format(e)}})},this.init(t)}return As(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Io(t)}},{key:"format",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var s=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);"currency"===t&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===t&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(function(e){if(e){var t=zs(e.split(":")),i=t[0],r=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[i.trim()]||(n[i.trim()]=r),"false"===r&&(n[i.trim()]=!1),"true"===r&&(n[i.trim()]=!0),isNaN(r)||(n[i.trim()]=parseInt(r,10))}})}return{formatName:t,formatOptions:n}}(t),o=s.formatName,a=s.formatOptions;if(i.formats[o]){var c=e;try{var l=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},u=l.locale||l.lng||r.locale||r.lng||n;c=i.formats[o](e,u,Co(Co(Co({},a),r),l))}catch(e){i.logger.warn(e)}return c}return i.logger.warn("there was no format function for ".concat(o)),e},e)}}]),e}();function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oo(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lo(e){var t=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 n,i=Ns(e);if(t){var r=Ns(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Ms(this,n)}}var Ro=function(){Ps(t,Ws);var e=Lo(t);function t(n,i,r){var s,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Is(this,t),s=e.call(this),to&&Ws.call(Ls(s)),s.backend=n,s.store=i,s.services=r,s.languageUtils=r.languageUtils,s.options=o,s.logger=Hs.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=o.maxParallelReads||10,s.readingCalls=0,s.maxRetries=o.maxRetries>=0?o.maxRetries:5,s.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(r,o.backend,o),s}return As(t,[{key:"queueLoad",value:function(e,t,n,i){var r=this,s={},o={},a={},c={};return e.forEach(function(e){var i=!0;t.forEach(function(t){var a="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?void 0===o[a]&&(o[a]=!0):(r.state[a]=1,i=!1,void 0===o[a]&&(o[a]=!0),void 0===s[a]&&(s[a]=!0),void 0===c[t]&&(c[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),r=i[0],s=i[1];t&&this.emit("failedLoading",r,s,t),n&&this.store.addResourceBundle(r,s,n),this.state[e]=t?-1:2;var o={};this.queue.forEach(function(n){!function(e,t,n,i){var r=Ys(e,t,Object),s=r.obj,o=r.k;s[o]=s[o]||[],i&&(s[o]=s[o].concat(n)),i||s[o].push(n)}(n.loaded,[r],s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){o[e]||(o[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===o[e][t]&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:s,callback:o});else{this.readingCalls++;var a=function(a,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)}a&&c&&r<i.maxRetries?setTimeout(function(){i.read.call(i,e,t,n,r+1,2*s,o)},s):o(a,c)},c=this.backend[n].bind(this.backend);if(2!==c.length)return c(e,t,a);try{var l=c(e,t);l&&"function"==typeof l.then?l.then(function(e){return a(null,e)}).catch(a):a(null,l)}catch(e){a(e)}}}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var s=this.queueLoad(e,t,i,r);if(!s.toLoad.length)return s.pending.length||r(),null;s.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),r=i[0],s=i[1];this.read(r,s,"read",void 0,void 0,function(i,o){i&&t.logger.warn("".concat(n,"loading namespace ").concat(s," for language ").concat(r," failed"),i),!i&&o&&t.logger.log("".concat(n,"loaded namespace ").concat(s," for language ").concat(r),o),t.loaded(e,i,o)})}},{key:"saveMissing",value:function(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" 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!=n&&""!==n){if(this.backend&&this.backend.create){var a=Ao(Ao({},s),{},{isUpdate:r}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var l;(l=5===c.length?c(e,t,n,i,a):c(e,t,n,i))&&"function"==typeof l.then?l.then(function(e){return o(null,e)}).catch(o):o(null,l)}catch(e){o(e)}else c(e,t,n,i,o,a)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}}]),t}();function Po(){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 t={};if("object"===Cs(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Cs(e[2])||"object"===Cs(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Mo(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 No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fo(e){var t=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 n,i=Ns(e);if(t){var r=Ns(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Ms(this,n)}}function zo(){}var $o=function(){Ps(t,Ws);var e=Fo(t);function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(Is(this,t),n=e.call(this),to&&Ws.call(Ls(n)),n.options=Mo(r),n.services={},n.logger=Hs,n.modules={external:[]},i=Ls(n),Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(function(e){"function"==typeof i[e]&&(i[e]=i[e].bind(i))}),s&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,s),Ms(n,Ls(n));setTimeout(function(){n.init(r,s)},0)}return n}return As(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var i=Po();function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=Do(Do(Do({},i),this.options),Mo(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Do(Do({},i.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var s;this.modules.logger?Hs.init(r(this.modules.logger),this.options):Hs.init(null,this.options),this.modules.formatter?s=this.modules.formatter:"undefined"!=typeof Intl&&(s=jo);var o=new go(this.options);this.store=new ao(this.options.resources,this.options);var a=this.services;a.logger=Hs,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new _o(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!s||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(a.formatter=r(s),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new To(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Ro(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))}),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new ho(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=zo),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(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var l=Vs(),u=function(){var t=function(t,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),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zo,i="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return n();var r=[],s=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){r.indexOf(e)<0&&r.push(e)})};if(i)s(i);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return s(e)});this.options.preload&&this.options.preload.forEach(function(e){return s(e)}),this.services.backendConnector.load(r,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,n){var i=Vs();return e||(e=this.languages),t||(t=this.options.ns),n||(n=zo),this.services.backendConnector.reload(e,t,function(e){i.resolve(),n(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&&co.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 t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=Vs();this.emit("languageChanging",e);var r=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},s=function(s){e||s||!n.services.languageDetector||(s=[]);var o="string"==typeof s?s:n.services.languageUtils.getBestMatchFromCodes(s);o&&(n.language||r(o),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,function(e){!function(e,s){s?(r(s),n.translator.changeLanguage(s),n.isLanguageChangingTo=void 0,n.emit("languageChanged",s),n.logger.log("languageChanged",s)):n.isLanguageChangingTo=void 0,i.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})}(e,o)})};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(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,r=function e(t,r){var s;if("object"!==Cs(r)){for(var o=arguments.length,a=new Array(o>2?o-2:0),c=2;c<o;c++)a[c-2]=arguments[c];s=i.options.overloadTranslationOptionHandler([t,r].concat(a))}else s=Do({},r);s.lng=s.lng||e.lng,s.lngs=s.lngs||e.lngs,s.ns=s.ns||e.ns,s.keyPrefix=s.keyPrefix||n||e.keyPrefix;var l,u=i.options.keySeparator||".";return l=s.keyPrefix&&Array.isArray(t)?t.map(function(e){return"".concat(s.keyPrefix).concat(u).concat(e)}):s.keyPrefix?"".concat(s.keyPrefix).concat(u).concat(t):t,i.t(l,s)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}},{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 t=this,n=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=n.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var o=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===i||2===i};if(n.precheck){var a=n.precheck(this,o);if(void 0!==a)return a}return!!this.hasResourceBundle(i,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!o(i,e)||r&&!o(s,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=Vs();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Vs();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],r=e.filter(function(e){return i.indexOf(e)<0});return r.length?(this.options.preload=i.concat(r),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),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 t=this.services&&this.services.languageUtils||new go(Po());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(t.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]:zo,r=Do(Do(Do({},this.options),n),{isClone:!0}),s=new t(r);void 0===n.debug&&void 0===n.prefix||(s.logger=s.logger.clone(n));return["store","services","language"].forEach(function(t){s[t]=e[t]}),s.services=Do({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s.translator=new ho(s.services,s.options),s.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];s.emit.apply(s,[e].concat(n))}),s.init(r,i),s.translator.options=s.options,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),t}();Ds($o,"createInstance",function(){return new $o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var Bo=$o.createInstance();Bo.createInstance=$o.createInstance,Bo.createInstance,Bo.dir,Bo.init,Bo.loadResources,Bo.reloadResources,Bo.use,Bo.changeLanguage,Bo.getFixedT,Bo.t,Bo.exists,Bo.setDefaultNamespace,Bo.hasLoadedNamespace,Bo.loadNamespaces,Bo.loadLanguages;const qo=["gse-yeatmanlab","gse-roar-assessment","gse-roar-assessment-dev","gse-roar-admin","gse-roar-admin-dev"];function Uo(e){var t,n,i,r;const s=null!==(r=null===(i=null===(n=null===(t=null==e?void 0:e.firebaseProject)||void 0===t?void 0:t.firebaseApp)||void 0===n?void 0:n.options)||void 0===i?void 0:i.projectId)&&void 0!==r?r:"";return qo.includes(s)}function Ho(e){return e.replace(/^([A-Z])|[\s-_](\w)/g,function(e,t,n,i){return n?n.toUpperCase():t.toLowerCase()})}function Wo(e,t){const n=new Date,i=12*(n.getFullYear()-t)+(n.getMonth()+1-e);return Math.floor(i/12)}const Vo={playAudioOnLoad:!0,staggered:{enabled:!1,trialTypes:[]},classOverrides:{buttonContainerClassList:["lev-response-row","multi-4"],buttonClassList:["image"],promptClassList:["lev-row-container","instruction"],stimulusContainerClassList:["lev-stim-content-x-3"]},prompt:{enabled:!0,aboveStimulus:!0},equalSizeStim:!1,disableButtonsWhenAudioPlaying:!1,isPracticeTrial:!1,isInstructionTrial:!1,randomizeChoiceOrder:!1,isStaggered:!1,isImageButtonResponse:!1,showStimImage:!0,response:{target:"",displayValues:["OK"],values:["OK"],targetIndex:0},inCorrectTrialConfig:{onIncorrectTrial:"end"}},Ko={egmaMath:"math-item-bank",matrixReasoning:"matrix-reasoning-item-bank",mentalRotation:"mental-rotation-item-bank",sameDifferentSelection:"same-different-selection-item-bank-v5",trog:"trog-item-bank",theoryOfMind:"theory-of-mind-item-bank",vocab:"vocab-item-bank",roarInference:"type_inference-demo-2024-11-11v3",adultReasoning:"adult-reasoning-item-bank"},Yo=async(e,t,n)=>{const i=Ss(Ss({...t,...n},Ts),Es),{userMetadata:r={},birthMonth:s,birthYear:o,audioFeedback:a,language:c,skipInstructions:l,sequentialPractice:u,sequentialStimulus:p,corpus:d,buttonLayout:m,numberOfTrials:h,taskName:f,stimulusBlocks:g,numOfPracticeTrials:v,maxIncorrect:y,keyHelpers:b,age:x,maxTime:_,storeItemId:w,cat:k,heavyInstructions:S,inferenceNumStories:T,semThreshold:E,startingTheta:C}=i,I={userMetadata:{...r,age:Number(x)||Wo(Number(s),Number(o))},audioFeedback:a||"neutral",skipInstructions:!!l,startTime:new Date,firekit:e,sequentialPractice:null==u||u,sequentialStimulus:null==p||p,corpus:d,buttonLayout:m||"default",numberOfTrials:null!=h?h:300,task:null!=f?f:"egma-math",stimulusBlocks:Number(g)||3,numOfPracticeTrials:Number(v)||2,maxIncorrect:Number(y)||3,keyHelpers:!!b,language:null!=c?c:Bo.language,maxTime:Number(_)||100,storeItemId:!!w,isRoarApp:Uo(e),cat:!!k,heavyInstructions:!!S,inferenceNumStories:Number(T)||void 0,semThreshold:Number(E),startingTheta:Number(C)};I.corpus||(I.corpus=Ko[Ho(f)]);const j=Object.fromEntries(Object.entries(t).map(([e,t])=>{var n;return[e,null!==(n=I[e])&&void 0!==n?n:t]}));return await I.firekit.updateTaskParams(j),I};!function(e){var t=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var s=t&&t.prototype instanceof v?t:v,o=Object.create(s.prototype),a=new O(i||[]);return r(o,"_invoke",{value:E(e,n,a)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",m="suspendedYield",h="executing",f="completed",g={};function v(){}function y(){}function b(){}var x={};l(x,o,function(){return this});var _=Object.getPrototypeOf,w=_&&_(_(A([])));w&&w!==n&&i.call(w,o)&&(x=w);var k=b.prototype=v.prototype=Object.create(x);function S(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function T(e,t){function n(r,s,o,a){var c=p(e[r],e,s);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):t.resolve(u).then(function(e){l.value=e,o(l)},function(e){return n("throw",e,o,a)})}a(c.arg)}var s;r(this,"_invoke",{value:function(e,i){function r(){return new t(function(t,r){n(e,i,t,r)})}return s=s?s.then(r,r):r()}})}function E(e,t,n){var i=d;return function(r,s){if(i===h)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw s;return L()}for(n.method=r,n.arg=s;;){var o=n.delegate;if(o){var a=C(o,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var c=p(e,t,n);if("normal"===c.type){if(i=n.done?f:m,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=f,n.method="throw",n.arg=c.arg)}}}function C(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=p(r,e.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,g;var o=s.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,s=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:L}}function L(){return{value:t,done:!0}}return y.prototype=b,r(k,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},S(T.prototype),l(T.prototype,a,function(){return this}),e.AsyncIterator=T,e.async=function(t,n,i,r,s){void 0===s&&(s=Promise);var o=new T(u(t,n,i,r),s);return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},S(k),l(k,c,"Generator"),l(k,o,function(){return this}),l(k,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=A,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return a.type="throw",a.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=e,o.arg=t,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;j(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:A(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var Go=[],Jo=Go.forEach,Xo=Go.slice;var Zo=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Qo=function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+60*n*1e3)),i&&(r.domain=i),document.cookie=function(e,t,n){var i=n||{};i.path=i.path||"/";var r=encodeURIComponent(t),s="".concat(e,"=").concat(r);if(i.maxAge>0){var o=i.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(o))}if(i.domain){if(!Zo.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!Zo.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s}(e,encodeURIComponent(t),r)},ea=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},ta={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=ea(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&Qo(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},na={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=n.substring(1).split("&"),r=0;r<i.length;r++){var s=i[r].indexOf("=");if(s>0)i[r].substring(0,s)===e.lookupQuerystring&&(t=i[r].substring(s+1))}}return t}},ia=null,ra=function(){if(null!==ia)return ia;try{ia="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){ia=!1}return ia},sa={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&ra()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&ra()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},oa=null,aa=function(){if(null!==oa)return oa;try{oa="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){oa=!1}return oa},ca={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&aa()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&aa()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},la={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},ua={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},pa={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},da={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="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(n)return n[t]}},ma=!1;try{document.cookie,ma=!0}catch(e){}var ha=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];ma||ha.splice(1,1);var fa=function(){return As(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Is(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)},[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return Jo.call(Xo.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:ha,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=n,this.addDetector(ta),this.addDetector(na),this.addDetector(sa),this.addDetector(ca),this.addDetector(la),this.addDetector(ua),this.addDetector(pa),this.addDetector(da)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach(function(e){if(t.detectors[e]){var i=t.detectors[e].lookup(t.options);i&&"string"==typeof i&&(i=[i]),i&&(n=n.concat(i))}}),n=n.map(function(e){return t.options.convertDetectedLanguage(e)}),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)}))}}])}();fa.type="languageDetector";(new fa).addDetector({name:"defaultToEnglish",lookup:e=>"en"}),Bo.use(fa).init({debug:!1,fallbackLng:"en",detection:{order:["defaultToEnglish","querystring"]},resources:{en:{translation:{}}}});var ga={exports:{}};
2
- /* @license
3
- Papa Parse
4
- v5.5.3
5
- https://github.com/mholt/PapaParse
6
- License: MIT
7
- */ga.exports=function t(){var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{};function i(){var e=n.URL||n.webkitURL||null,i=t.toString();return c.BLOB_URL||(c.BLOB_URL=e.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"})))}var r=!n.document&&!!n.postMessage,s=n.IS_PAPA_WORKER||!1,o={},a=0,c={};if(c.parse=u,c.unparse=p,c.RECORD_SEP=String.fromCharCode(30),c.UNIT_SEP=String.fromCharCode(31),c.BYTE_ORDER_MARK="\ufeff",c.BAD_DELIMITERS=["\r","\n",'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!r&&!!n.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=x,c.ParserHandle=y,c.NetworkStreamer=m,c.FileStreamer=h,c.StringStreamer=f,c.ReadableStreamStreamer=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(c.DuplexStreamStreamer=v),n.jQuery){var l=n.jQuery;l.fn.parse=function(e){var t=e.config||{},i=[];return this.each(function(e){if("INPUT"!==l(this).prop("tagName").toUpperCase()||"file"!==l(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var r=0;r<this.files.length;r++)i.push({file:this.files[r],inputElem:this,instanceConfig:l.extend({},t)})}),r(),this;function r(){if(0!==i.length){var t=i[0];if(I(e.before)){var n=e.before(t.file,t.inputElem);if("object"==typeof n){if("abort"===n.action)return void s("AbortError",t.file,t.inputElem,n.reason);if("skip"===n.action)return void o();"object"==typeof n.config&&(t.instanceConfig=l.extend(t.instanceConfig,n.config))}else if("skip"===n)return void o()}var r=t.instanceConfig.complete;t.instanceConfig.complete=function(e){I(r)&&r(e,t.file,t.inputElem),o()},c.parse(t.file,t.instanceConfig)}else I(e.complete)&&e.complete()}function s(t,n,i,r){I(e.error)&&e.error({name:t},n,i,r)}function o(){i.splice(0,1),r()}}}function u(e,t){var i=(t=t||{}).dynamicTyping||!1;if(I(i)&&(t.dynamicTypingFunction=i,i={}),t.dynamicTyping=i,t.transform=!!I(t.transform)&&t.transform,t.worker&&c.WORKERS_SUPPORTED){var r=_();return r.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=I(t.step),t.chunk=I(t.chunk),t.complete=I(t.complete),t.error=I(t.error),delete t.worker,void r.postMessage({input:e,config:t,workerId:r.id})}var s=null;return e===c.NODE_STREAM_INPUT&&"undefined"==typeof PAPA_BROWSER_CONTEXT?(s=new v(t)).getStream():("string"==typeof e?(e=o(e),s=t.download?new m(t):new f(t)):!0===e.readable&&I(e.read)&&I(e.on)?s=new g(t):(n.File&&e instanceof File||e instanceof Object)&&(s=new h(t)),s.stream(e));function o(e){return 65279===e.charCodeAt(0)?e.slice(1):e}}function p(e,t){var n=!1,i=!0,r=",",s="\r\n",o='"',a=o+o,l=!1,u=null,p=!1;m();var d=new RegExp(b(o),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,l);if("object"==typeof e[0])return h(u||Object.keys(e[0]),e,l)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],l);throw new Error("Unable to serialize unrecognized input");function m(){if("object"==typeof t){if("string"!=typeof t.delimiter||c.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(r=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(l=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(i=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+o),t.escapeFormulae instanceof RegExp?p=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(p=/^[=+\-@\t\r].*$/)}}function h(e,t,n){var o="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var a=Array.isArray(e)&&e.length>0,c=!Array.isArray(t[0]);if(a&&i){for(var l=0;l<e.length;l++)l>0&&(o+=r),o+=f(e[l],l);t.length>0&&(o+=s)}for(var u=0;u<t.length;u++){var p=a?e.length:t[u].length,d=!1,m=a?0===Object.keys(t[u]).length:0===t[u].length;if(n&&!a&&(d="greedy"===n?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===n&&a){for(var h=[],g=0;g<p;g++){var v=c?e[g]:g;h.push(t[u][v])}d=""===h.join("").trim()}if(!d){for(var y=0;y<p;y++){y>0&&!m&&(o+=r);var b=a&&c?e[y]:y;o+=f(t[u][b],y)}u<t.length-1&&(!n||p>0&&!m)&&(o+=s)}}return o}function f(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var i=!1;p&&"string"==typeof e&&p.test(e)&&(e="'"+e,i=!0);var s=e.toString().replace(d,a);return(i=i||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||g(s,c.BAD_DELIMITERS)||s.indexOf(r)>-1||" "===s.charAt(0)||" "===s.charAt(s.length-1))?o+s+o:s}function g(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return!0;return!1}}function d(e){function t(e){var t=E(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new y(t),this._handle.streamer=this,this._config=t}this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},t.call(this,e),this.parseChunk=function(e,t){const i=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&i>0){let t=this._config.newline;if(!t){const n=this._config.quoteChar||'"';t=this._handle.guessLineEndings(e,n)}const n=e.split(t);e=[...n.slice(i)].join(t)}if(this.isFirstChunk&&I(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+e;this._partialLine="";var a=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var l=a.meta.cursor;this._finished||(this._partialLine=o.substring(l-this._baseIndex),this._baseIndex=l),a&&a.data&&(this._rowCount+=a.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(s)n.postMessage({results:a,workerId:c.WORKER_ID,finished:u});else if(I(this._config.chunk)&&!t){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!u||!I(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){I(this._config.error)?this._config.error(e):s&&this._config.error&&n.postMessage({workerId:c.WORKER_ID,error:e,finished:!1})}}function m(e){var t;function n(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(e=e||{}).chunkSize||(e.chunkSize=c.RemoteChunkSize),d.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=C(this._chunkLoaded,this),t.onerror=C(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||t.status>=400?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=n(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function h(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=c.LocalChunkSize),d.call(this,e);var i="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,i?((t=new FileReader).onload=C(this._chunkLoaded,this),t.onerror=C(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var r=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,r)}var s=t.readAsText(e,this._config.encoding);i||this._chunkLoaded({target:{result:s}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;e=e||{},d.call(this,e),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,n=this._config.chunkSize;return n?(e=t.substring(0,n),t=t.substring(n)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function g(e){e=e||{},d.call(this,e);var t=[],n=!0,i=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=C(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=C(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=C(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=C(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function v(t){var n=e.Duplex,i=E(t),r=!0,s=!1,o=[],a=null;this._onCsvData=function(e){var t=e.data;a.push(t)||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){a.push(null)},i.step=C(this._onCsvData,this),i.complete=C(this._onCsvComplete,this),d.call(this,i),this._nextChunk=function(){s&&1===o.length&&(this._finished=!0),o.length?o.shift()():r=!0},this._addToParseQueue=function(e,t){o.push(C(function(){if(this.parseChunk("string"==typeof e?e:e.toString(i.encoding)),I(t))return t()},this)),r&&(r=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,n){this._addToParseQueue(e,n)},this._onWriteComplete=function(){s=!0,this._addToParseQueue("")},this.getStream=function(){return a},(a=new n({readableObjectMode:!0,decodeStrings:!1,read:C(this._onRead,this),write:C(this._onWrite,this)})).once("finish",C(this._onWriteComplete,this))}function y(e){var t,n,i,r=Math.pow(2,53),s=-r,o=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,a=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,u=0,p=0,d=!1,m=!1,h=[],f={data:[],errors:[],meta:{}};if(I(e.step)){var g=e.step;e.step=function(t){if(f=t,w())_();else{if(_(),0===f.data.length)return;u+=t.data.length,e.preview&&u>e.preview?n.abort():(f.data=f.data[0],g(f,l))}}}function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function y(e){if(o.test(e)){var t=parseFloat(e);if(t>s&&t<r)return!0}return!1}function _(){return f&&i&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),i=!1),e.skipEmptyLines&&(f.data=f.data.filter(function(e){return!v(e)})),w()&&k(),C()}function w(){return e.header&&0===h.length}function k(){if(f)if(Array.isArray(f.data[0])){for(var t=0;w()&&t<f.data.length;t++)f.data[t].forEach(n);f.data.splice(0,1)}else f.data.forEach(n);function n(t,n){I(e.transformHeader)&&(t=e.transformHeader(t,n)),h.push(t)}}function S(t){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)}function T(e,t){return S(e)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(y(t)?parseFloat(t):a.test(t)?new Date(t):""===t?null:t):t}function C(){if(!f||!e.header&&!e.dynamicTyping&&!e.transform)return f;function t(t,n){var i,r=e.header?{}:[];for(i=0;i<t.length;i++){var s=i,o=t[i];e.header&&(s=i>=h.length?"__parsed_extra":h[i]),e.transform&&(o=e.transform(o,s)),o=T(s,o),"__parsed_extra"===s?(r[s]=r[s]||[],r[s].push(o)):r[s]=o}return e.header&&(i>h.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+i,p+n):i<h.length&&O("FieldMismatch","TooFewFields","Too few fields: expected "+h.length+" fields but parsed "+i,p+n)),r}var n=1;return!f.data.length||Array.isArray(f.data[0])?(f.data=f.data.map(t),n=f.data.length):f.data=t(f.data,0),e.header&&f.meta&&(f.meta.fields=h),p+=n,f}function j(t,n,i,r,s){var o,a,l,u;s=s||[",","\t","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var p=0;p<s.length;p++){var d=s[p],m=0,h=0,f=0;l=void 0;for(var g=new x({comments:r,delimiter:d,newline:n,preview:10}).parse(t),y=0;y<g.data.length;y++)if(i&&v(g.data[y]))f++;else{var b=g.data[y].length;h+=b,void 0!==l?b>0&&(m+=Math.abs(b-l),l=b):l=b}g.data.length>0&&(h/=g.data.length-f),(void 0===a||m<=a)&&(void 0===u||h>u)&&h>1.99&&(a=m,o=d,u=h)}return e.delimiter=o,{successful:!!o,bestDelimiter:o}}function O(e,t,n,i){var r={type:e,code:t,message:n};void 0!==i&&(r.row=i),f.errors.push(r)}this.parse=function(r,s,o){var a=e.quoteChar||'"';if(e.newline||(e.newline=this.guessLineEndings(r,a)),i=!1,e.delimiter)I(e.delimiter)&&(e.delimiter=e.delimiter(r),f.meta.delimiter=e.delimiter);else{var l=j(r,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);l.successful?e.delimiter=l.bestDelimiter:(i=!0,e.delimiter=c.DefaultDelimiter),f.meta.delimiter=e.delimiter}var u=E(e);return e.preview&&e.header&&u.preview++,t=r,n=new x(u),f=n.parse(t,s,o),_(),d?{meta:{paused:!0}}:f||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),t=I(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(d=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,n.abort(),f.meta.aborted=!0,I(e.complete)&&e.complete(f),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var n=new RegExp(b(t)+"([^]*?)"+b(t),"gm"),i=(e=e.replace(n,"")).split("\r"),r=e.split("\n"),s=r.length>1&&r[0].length<i[0].length;if(1===i.length||s)return"\n";for(var o=0,a=0;a<i.length;a++)"\n"===i[a][0]&&o++;return o>=i.length/2?"\r\n":"\r"}}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(e){var t,n=(e=e||{}).delimiter,i=e.newline,r=e.comments,s=e.step,o=e.preview,a=e.fastMode,l=null,u=!1,p=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(p=e.escapeChar),("string"!=typeof n||c.BAD_DELIMITERS.indexOf(n)>-1)&&(n=","),r===n)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||c.BAD_DELIMITERS.indexOf(r)>-1)&&(r=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var d=0,m=!1;this.parse=function(c,h,f){if("string"!=typeof c)throw new Error("Input must be a string");var g=c.length,v=n.length,y=i.length,x=r.length,_=I(s);d=0;var w=[],k=[],S=[],T=0;if(!c)return z();if(a||!1!==a&&-1===c.indexOf(t)){for(var E=c.split(i),C=0;C<E.length;C++){if(S=E[C],d+=S.length,C!==E.length-1)d+=i.length;else if(f)return z();if(!r||S.substring(0,x)!==r){if(_){if(w=[],M(S.split(n)),$(),m)return z()}else M(S.split(n));if(o&&C>=o)return w=w.slice(0,o),z(!0)}}return z()}for(var j=c.indexOf(n,d),O=c.indexOf(i,d),A=new RegExp(b(p)+b(t),"g"),L=c.indexOf(t,d);;)if(c[d]!==t)if(r&&0===S.length&&c.substring(d,d+x)===r){if(-1===O)return z();d=O+y,O=c.indexOf(i,d),j=c.indexOf(n,d)}else if(-1!==j&&(j<O||-1===O))S.push(c.substring(d,j)),d=j+v,j=c.indexOf(n,d);else{if(-1===O)break;if(S.push(c.substring(d,O)),F(O+y),_&&($(),m))return z();if(o&&w.length>=o)return z(!0)}else for(L=d,d++;;){if(-1===(L=c.indexOf(t,L+1)))return f||k.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:d}),D();if(L===g-1)return D(c.substring(d,L).replace(A,t));if(t!==p||c[L+1]!==p){if(t===p||0===L||c[L-1]!==p){-1!==j&&j<L+1&&(j=c.indexOf(n,L+1)),-1!==O&&O<L+1&&(O=c.indexOf(i,L+1));var R=N(-1===O?j:Math.min(j,O));if(c.substr(L+1+R,v)===n){S.push(c.substring(d,L).replace(A,t)),d=L+1+R+v,c[L+1+R+v]!==t&&(L=c.indexOf(t,d)),j=c.indexOf(n,d),O=c.indexOf(i,d);break}var P=N(O);if(c.substring(L+1+P,L+1+P+y)===i){if(S.push(c.substring(d,L).replace(A,t)),F(L+1+P+y),j=c.indexOf(n,d),L=c.indexOf(t,d),_&&($(),m))return z();if(o&&w.length>=o)return z(!0);break}k.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:d}),L++}}else L++}return D();function M(e){w.push(e),T=d}function N(e){var t=0;if(-1!==e){var n=c.substring(L+1,e);n&&""===n.trim()&&(t=n.length)}return t}function D(e){return f||(void 0===e&&(e=c.substring(d)),S.push(e),d=g,M(S),_&&$()),z()}function F(e){d=e,M(S),S=[],O=c.indexOf(i,d)}function z(t){if(e.header&&!h&&w.length&&!u){const t=w[0],n=Object.create(null),i=new Set(t);let r=!1;for(let s=0;s<t.length;s++){let o=t[s];if(I(e.transformHeader)&&(o=e.transformHeader(o,s)),n[o]){let e,a=n[o];do{e=`${o}_${a}`,a++}while(i.has(e));i.add(e),t[s]=e,n[o]++,r=!0,null===l&&(l={}),l[e]=o}else n[o]=1,t[s]=o;i.add(o)}r&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:w,errors:k,meta:{delimiter:n,linebreak:i,aborted:m,truncated:!!t,cursor:T+(h||0),renamedHeaders:l}}}function $(){s(z()),w=[],k=[]}},this.abort=function(){m=!0},this.getCharIndex=function(){return d}}function _(){if(!c.WORKERS_SUPPORTED)return!1;var e=i(),t=new n.Worker(e);return t.onmessage=w,t.id=a++,o[t.id]=t,t}function w(e){var t=e.data,n=o[t.workerId],i=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var r={abort:function(){i=!0,k(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:S,resume:S};if(I(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},r),!i);s++);delete t.results}else I(n.userChunk)&&(n.userChunk(t.results,r,t.file),delete t.results)}t.finished&&!i&&k(t.workerId,t.results)}function k(e,t){var n=o[e];I(n.userComplete)&&n.userComplete(t),n.terminate(),delete o[e]}function S(){throw new Error("Not implemented.")}function T(e){var t=e.data;if(void 0===c.WORKER_ID&&t&&(c.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:c.WORKER_ID,results:c.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var i=c.parse(t.input,t.config);i&&n.postMessage({workerId:c.WORKER_ID,results:i,finished:!0})}}function E(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=E(e[n]);return t}function C(e,t){return function(){e.apply(t,arguments)}}function I(e){return"function"==typeof e}return s&&(n.onmessage=T),m.prototype=Object.create(d.prototype),m.prototype.constructor=m,h.prototype=Object.create(d.prototype),h.prototype.constructor=h,f.prototype=Object.create(f.prototype),f.prototype.constructor=f,g.prototype=Object.create(d.prototype),g.prototype.constructor=g,"undefined"==typeof PAPA_BROWSER_CONTEXT&&(v.prototype=Object.create(d.prototype),v.prototype.constructor=v),c}();var va=i(ga.exports),ya=/\s/;var ba=function(e){for(var t=e.length;t--&&ya.test(e.charAt(t)););return t},xa=/^\s+/;var _a=function(e){return e?e.slice(0,ba(e)+1).replace(xa,""):e},wa=B,ka=Ti,Sa=/^[-+]0x[0-9a-f]+$/i,Ta=/^0b[01]+$/i,Ea=/^0o[0-7]+$/i,Ca=parseInt;var Ia=i(function(e){if("number"==typeof e)return e;if(ka(e))return NaN;if(wa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=wa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=_a(e);var n=Ta.test(e);return n||Ea.test(e)?Ca(e.slice(2),n?2:8):Sa.test(e)?NaN:+e});function ja(e){return e.replace(/-([a-z])/gi,(e,t)=>t.toUpperCase())}function Oa(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}var Aa=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},La=Math.floor,Ra=Math.random;var Pa=function(e,t){return e+La(Ra()*(t-e+1))};var Ma=function(e,t){var n=-1,i=e.length,r=i-1;for(t=void 0===t?i:t;++n<t;){var s=Pa(n,r),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e},Na=Aa,Da=Ma;var Fa=Di;var za=function(e,t){return Fa(t,function(t){return e[t]})},$a=Sn;var Ba=Ma,qa=function(e){return null==e?[]:za(e,$a(e))};var Ua=function(e){return Da(Na(e))},Ha=function(e){return Ba(qa(e))},Wa=yt;var Va=i(function(e){return(Wa(e)?Ua:Ha)(e)});var Ka,Ya={exports:{}};
8
- /*! store2 - v2.14.4 - 2024-12-26
9
- * Copyright (c) 2024 Nathan Bubna; Licensed MIT */Ka=Ya,function(e,t){var n={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var n in e)t.hasOwnProperty(n)||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||n.replace)},parse:function(e,t){try{return JSON.parse(e,t||n.revive)}catch(t){return e}},fn:function(e,t){for(var i in n.storeAPI[e]=t,n.apis)n.apis[i][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,n){e.setItem(t,n)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,i){var r=n.inherit(n.storeAPI,function(e,t,n){return 0===arguments.length?r.getAll():"function"==typeof t?r.transact(e,t,n):void 0!==t?r.set(e,t,n):"string"==typeof e||"number"==typeof e?r.get(e):"function"==typeof e?r.each(e):e?r.setAll(e,t):r.clear()});r._id=e;try{var s="__store2_test";t.setItem(s,"ok"),r._area=t,t.removeItem(s)}catch(e){r._area=n.storage("fake")}return r._ns=i||"",n.areas[e]||(n.areas[e]=r._area),n.apis[r._ns+r._id]||(n.apis[r._ns+r._id]=r),r},storeAPI:{area:function(e,t){var i=this[e];return i&&i.area||(i=n.Store(e,t,this._ns),this[e]||(this[e]=i)),i},namespace:function(e,t,i){if(i=i||this._delim||n.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-i.length):"";var r=e,s=this[r];if(!(s&&s.namespace||((s=n.Store(this._id,this._area,this._ns+r+i))._delim=i,this[r]||(this[r]=s),t)))for(var o in n.areas)s.area(o,n.areas[o]);return s},isFake:function(e){return e?(this._real=this._area,this._area=n.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,t){for(var i=0,r=n.length(this._area);i<r;i++){var s=this._out(n.key(this._area,i));if(void 0!==s&&!1===e.call(this,s,this.get(s),t))break;r>n.length(this._area)&&(r--,i--)}return t||this},keys:function(e){return this.each(function(e,t,n){n.push(e)},e||[])},get:function(e,t){var i,r=n.get(this._area,this._in(e));return"function"==typeof t&&(i=t,t=null),null!==r?n.parse(r,i):null!=t?t:r},getAll:function(e){return this.each(function(e,t,n){n[e]=t},e||{})},transact:function(e,t,n){var i=this.get(e,n),r=t(i);return this.set(e,void 0===r?i:r),this},set:function(e,t,i){var r,s=this.get(e);return null!=s&&!1===i?t:("function"==typeof i&&(r=i,i=void 0),n.set(this._area,this._in(e),n.stringify(t,r),i)||s)},setAll:function(e,t){var n,i;for(var r in e)i=e[r],this.set(r,i,t)!==i&&(n=!0);return n},add:function(e,t,i){var r=this.get(e);if(r instanceof Array)t=r.concat(t);else if(null!==r){var s=typeof r;if(s===typeof t&&"object"===s){for(var o in t)r[o]=t[o];t=r}else t=r+t}return n.set(this._area,this._in(e),n.stringify(t,i)),t},remove:function(e,t){var i=this.get(e,t);return n.remove(this._area,this._in(e)),i},clear:function(){return this._ns?this.each(function(e){n.remove(this._area,this._in(e))},1):n.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in n.areas)n.areas.hasOwnProperty(t)&&(this._area=n.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=n.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 n.inherit(n.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var n in this.items)if(this.has(n)&&e===t++)return n},setItem:function(e,t){this.has(e)||this.length++,this.items[e]=t},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)}}},i=n.Store("local",function(){try{return localStorage}catch(e){}}());i.local=i,i._=n,i.area("session",function(){try{return sessionStorage}catch(e){}}()),i.area("page",n.storage("page")),"function"==typeof t&&void 0!==t.amd?t("store2",[],function(){return i}):Ka.exports?Ka.exports=i:(e.store&&(n.conflict=e.store),e.store=i)}(n,n&&n.define);var Ga=i(Ya.exports);const Ja=Ga.page.namespace("taskStore");let Xa=0,Za=[];function Qa(e){if("math"===e.task&&e.trial_type.includes("Number Line")){return e.item.split(",").map(e=>Ia(e))}return e.item}const ec=(e,t,n,i)=>{let r="",s=0;if(e.forEach(e=>{var n;const i={source:e.source,block_index:e.block_index,task:e.task,prompt:e.prompt,item:Qa(e),origItemNum:e.orig_item_num,trialType:e.trial_type,image:(null===(n=null==e?void 0:e.image)||void 0===n?void 0:n.includes(","))?e.image.split(","):null==e?void 0:e.image,timeLimit:e.time_limit,answer:Ia(e.answer)||e.answer,assessmentStage:e.assessment_stage,chanceLevel:Ia(e.chance_level),itemId:e.item_id,itemUid:e.item_uid,distractors:"roar-inference"===e.task?e.response_alternatives.split(",").map(e=>e.replace(/"/g,"")):(o=e.response_alternatives,/[a-zA-Z\/]/.test(o)||"adult-reasoning"===e.task&&e.response_alternatives.includes(";")?e.response_alternatives.split(","):function(e){const t=e.trim();return""===t?[]:t.split(",").map(e=>parseFloat(e))}(e.response_alternatives)),audioFile:e.audio_file,difficulty:Ja().runCat||"instructions"===e.trial_type||"practice_response"===e.assessment_stage?parseFloat(e.d||e.difficulty):NaN,randomize:e.randomize,trialNumber:e.trial_num};var o;"Mental Rotation"===e.task&&(i.item=Ho(i.item),i.answer=Ho(i.answer),i.distractors=i.distractors.map(e=>Ho(e))),"same-different-selection"===e.task&&(i.requiredSelections=parseInt(e.required_selections),i.blockIndex=parseInt(e.block_index||""),1==i.blockIndex||2==i.blockIndex||3==i.blockIndex||4==i.blockIndex||i.blockIndex);let a=i.trialType;a!==r&&(r=a,s=0),"practice_response"===i.assessmentStage?s<t&&(s+=1,Za.push(i),Xa+=1):(Za.push(i),Xa+=1)}),"roar-inference"===i){const e=Ja().inferenceNumStories,t=Ja().stimulusBlocks;return void(Za=function(e,t,n,i,r){const s=[],o={};e.forEach(e=>{const t=e[n];t in o||i.includes(t)||(o[t]=!0)});const a=Object.keys(o),c=Va(a);for(let i=0;i<t;i+=1){const t=c[i],o=e.filter(e=>e[n]===t);if(1===r){const e=Va(o)[0];e&&s.push({...e,itemId:`${e.itemId}_1`})}else{const e=o.filter(e=>"literal"===e.trialType),t=o.filter(e=>"literal"!==e.trialType),n=[];e.length>0&&n.push(e[0]);const i=Va(t.concat(e.slice(1))),a=r-n.length;n.push(...i.slice(0,a));const c=Va(n);for(let e=0;e<r;e+=1)c[e]&&s.push({...c[e],itemId:`${c[e].itemId}_${e+1}`})}}return[...e.filter(e=>i.includes(e[n])),...s]}(Za,e,"item",["introduction","practice"],t))}n||(Za=function(e){const t={};for(const n of e)if("instructions"!==n.trialType&&"practice_response"!==n.assessmentStage){const e=n.trialType;t[e]||(t[e]=[]),t[e].push(n)}for(const e in t){const n=Oa(t[e]);t[e]=n}let n=0;for(const i of e){if("instructions"!==i.trialType&&"practice_response"!==i.assessmentStage){const r=i.trialType;e[n]=t[r].shift()}n++}return e}(Za))},tc=async e=>{const{corpus:t,task:n,sequentialStimulus:i,numOfPracticeTrials:r}=e,s={egmaMath:`https://storage.googleapis.com/${n}/shared/corpora/${t}.csv`,matrixReasoning:`https://storage.googleapis.com/${n}/shared/corpora/${t}.csv`,mentalRotation:`https://storage.googleapis.com/${n}/shared/corpora/${t}.csv`,sameDifferentSelection:`https://storage.googleapis.com/${n}/shared/corpora/${t}.csv`,trog:`https://storage.googleapis.com/roar-syntax/shared/corpora/${t}.csv`,theoryOfMind:`https://storage.googleapis.com/${n}/shared/corpora/${t}.csv`,vocab:`https://storage.googleapis.com/vocab-test/shared/corpora/${t}.csv`,roarInference:`https://storage.googleapis.com/roar-inference/en/corpora/${t}.csv`,adultReasoning:`https://storage.googleapis.com/egma-math/shared/corpora/${t}.csv`};async function o(e){const t=e.map((e,t)=>function(e){return new Promise((t,s)=>{va.parse(e,{download:!0,header:!0,skipEmptyLines:!0,complete:function(e){ec(e.data,r,i,n),t(e.data)},error:function(e){s(e)}})})}(e));return Promise.all(t)}await async function(){const e=[s[ja(n)]];try{await o(e),Ja("totalTrials",Xa)}catch(e){console.error("Error:",e)}}();Ja("corpora",{stimulus:Za})};let nc={};function ic(e,t){const n=t.split("-")[0].toLowerCase();e.forEach(e=>{nc[Ho(e.item_id)]=function(e,t,n){const i=e[t.toLowerCase()],r=Object.keys(e).find(e=>e.includes(n))||"";return i||e[n]||e[r]||e.en}(e,t,n)}),Ja("translations",nc)}const rc=async e=>{async function t(t){const n=t.map(t=>function(t){return new Promise((n,i)=>{va.parse(t,{download:!0,header:!0,skipEmptyLines:!0,complete:function(t){ic(t.data,e||""),n(t.data)},error:function(e){i(e)}})})}(t));return Promise.all(n)}e&&await async function(){const e=["https://storage.googleapis.com/road-dashboard/item-bank-translations.csv"];try{await t(e)}catch(e){console.error("Error:",e)}}()},sc=()=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<16;n+=1)e+=t.charAt(Math.floor(62*Math.random()));return e},oc=(e,t,n)=>{const i={timeline:[t],on_timeline_finish:async()=>{await e.firekit.updateUser({assessmentPid:e.pid||sc(),...e.userMetadata}),((e,t)=>{const n=6e4*Math.max(e,1),i=setTimeout(()=>{Ja("maxTimeReached",!0),t(),clearTimeout(i)},n)})(e.maxTime,n)}};return i};function ac(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function cc(e,t){for(var n,i="",r=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(i.length<2||2!==r||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="",r=0):r=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),s=a,o=0;continue}}else if(2===i.length||1===i.length){i="",r=0,s=a,o=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),r=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return i}var lc={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),ac(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=cc(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(ac(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=cc(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return ac(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];ac(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":lc.normalize(e)},relative:function(e,t){if(ac(e),ac(t),e===t)return"";if((e=lc.resolve(e))===(t=lc.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var i=e.length,r=i-n,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var o=t.length-s,a=r<o?r:o,c=-1,l=0;l<=a;++l){if(l===a){if(o>a){if(47===t.charCodeAt(s+l))return t.slice(s+l+1);if(0===l)return t.slice(s+l)}else r>a&&(47===e.charCodeAt(n+l)?c=l:0===l&&(c=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(s+l))break;47===u&&(c=l)}var p="";for(l=n+c+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(s+c):(s+=c,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(ac(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!r){i=s;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');ac(e);var n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(c===t.charCodeAt(o)?-1===--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){ac(e);for(var t=-1,n=0,i=-1,r=!0,s=0,o=e.length-1;o>=0;--o){var a=e.charCodeAt(o);if(47!==a)-1===i&&(r=!1,i=o+1),46===a?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,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,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){ac(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var s=-1,o=0,a=-1,c=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.charCodeAt(l)))-1===a&&(c=!1,a=l+1),46===i?-1===s?s=l:1!==u&&(u=1):-1!==s&&(u=-1);else if(!c){o=l+1;break}return-1===s||-1===a||0===u||1===u&&s===a-1&&s===o+1?-1!==a&&(t.base=t.name=0===o&&r?e.slice(1,a):e.slice(o,a)):(0===o&&r?(t.name=e.slice(1,s),t.base=e.slice(1,a)):(t.name=e.slice(o,s),t.base=e.slice(o,a)),t.ext=e.slice(s,a)),o>0?t.dir=e.slice(0,o-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};lc.posix=lc;var uc={"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}};
10
- /*!
11
- * mime-types
12
- * Copyright(c) 2014 Jonathan Ong
13
- * Copyright(c) 2015 Douglas Christopher Wilson
14
- * MIT Licensed
15
- */
16
- !function(e){var n,i,r,s=uc,o=t.extname,a=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var t=a.exec(e),n=t&&s[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!c.test(t[1]))&&"UTF-8"}e.charset=l,e.charsets={lookup:l},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var i=e.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=a.exec(t),i=n&&e.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=o("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),n=e.extensions,i=e.types,r=["nginx","apache",void 0,"iana"],Object.keys(s).forEach(function(e){var t=s[e],o=t.extensions;if(o&&o.length){n[e]=o;for(var a=0;a<o.length;a++){var c=o[a];if(i[c]){var l=r.indexOf(s[i[c]].source),u=r.indexOf(t.source);if("application/octet-stream"!==i[c]&&(l>u||l===u&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}})}({});var pc="undefined"!=typeof window?window:{screen:{},navigator:{}},dc=(pc.matchMedia||function(){return{matches:!1}}).bind(pc),mc={get passive(){return!0}},hc=function(){};pc.addEventListener&&pc.addEventListener("p",hc,mc),pc.removeEventListener&&pc.removeEventListener("p",hc,!1);var fc="ontouchstart"in pc,gc=fc||"TouchEvent"in pc&&dc("(any-pointer: coarse)").matches,vc=(pc.navigator.maxTouchPoints||0)>0||gc,yc=pc.navigator.userAgent||"",bc=dc("(pointer: coarse)").matches&&/iPad|Macintosh/.test(yc)&&Math.min(pc.screen.width||0,pc.screen.height||0)>=768,xc=(dc("(pointer: coarse)").matches||!dc("(pointer: fine)").matches&&fc)&&!/Windows.*Firefox/.test(yc),_c=dc("(any-pointer: fine)").matches||dc("(any-hover: hover)").matches||bc||!fc,wc=!vc||!_c&&xc?vc?"touchOnly":"mouseOnly":"hybrid",kc="mouseOnly"===wc?"mouse":"touchOnly"===wc||xc?"touch":"mouse";function Sc(e){return e.replace(/^([A-Z])|[\s-_](\w)/g,function(e,t,n,i){return n?n.toUpperCase():t.toLowerCase()})}function Tc(){return"touchOnly"===wc||"hybrid"===wc&&"touch"===kc?"mobile":"desktop"}function Ec(e,t,n,i){return new(n||(n=Promise))(function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,a)}c((i=i.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var Cc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jc=Ic((e,{include:t,exclude:n}={})=>{const i=e=>{const i=t=>"string"==typeof t?e===t:t.test(e);return t?t.some(i):!n||!n.some(i)};for(const[t,n]of(e=>{const t=new Set;do{for(const n of Reflect.ownKeys(e))t.add([e,n])}while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return t})(e.constructor.prototype)){if("constructor"===n||!i(n))continue;const r=Reflect.getOwnPropertyDescriptor(t,n);r&&"function"==typeof r.value&&(e[n]=e[n].bind(e))}return e});class Oc 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 Ac(e){return[...new Set(e)]}function Lc(e){if(!e)return e;let t;if(Array.isArray(e)){t=[];for(const n of e)t.push(Lc(n));return t}if("object"==typeof e&&null!==e){t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=Lc(e[n]));return t}return e}window.jsPsych={get init(){throw new Oc("`jsPsych.init()` was replaced by `initJsPsych()` in jsPsych v7.")},get data(){throw new Oc},get randomization(){throw new Oc},get turk(){throw new Oc},get pluginAPI(){throw new Oc},get ALL_KEYS(){throw new Oc('jsPsych.ALL_KEYS was replaced by the "ALL_KEYS" string in jsPsych v7.')},get NO_KEYS(){throw new Oc('jsPsych.NO_KEYS was replaced by the "NO_KEYS" string in jsPsych v7.')}};var Rc,Pc=Object.freeze({__proto__:null,deepCopy:Lc,deepMerge:function e(t,n){let i={};for(const r in t)t.hasOwnProperty(r)&&("object"==typeof t[r]&&n.hasOwnProperty(r)?i[r]=e(t[r],n[r]):i[r]=t[r]);for(const t in n)n.hasOwnProperty(t)&&(i.hasOwnProperty(t)&&"object"==typeof n[t]?i[t]=e(i[t],n[t]):i[t]=n[t]);return i},unique:Ac});class Mc{constructor(e=[]){this.values=e}sum(){let e=0;for(const t of this.values)e+=t;return e}mean(){return this.sum()/this.count()}median(){if(0===this.values.length)return;const e=this.values.slice(0).sort(function(e,t){return e-t}),t=Math.floor(e.length/2);return e.length%2==0?(e[t]+e[t-1])/2:e[t]}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 t=0;for(const n of this.values)t+=Math.pow(n-e,2);return t/(this.values.length-1)}sd(){const e=this.variance();return Math.sqrt(e)}frequencies(){const e={};for(const t of this.values)void 0===e[t]?e[t]=1:e[t]++;return e}all(e){for(const t of this.values)if(!e(t))return!1;return!0}subset(e){const t=[];for(const n of this.values)e(n)&&t.push(n);return new Mc(t)}}class Nc{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 Nc([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 Nc:(e>this.trials.length&&(e=this.trials.length),new Nc(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 Nc:(e>this.trials.length&&(e=this.trials.length),new Nc(this.trials.slice(this.trials.length-e,this.trials.length)))}values(){return this.trials}count(){return this.trials.length}readOnly(){return new Nc(Lc(this.trials))}addToAll(e){for(const t of this.trials)Object.assign(t,e);return this}addToLast(e){return 0!=this.trials.length&&Object.assign(this.trials[this.trials.length-1],e),this}filter(e){let t;t=Array.isArray(e)?Lc(e):Lc([e]);const n=[];for(const e of this.trials){let i=!1;for(const n of t){let t=!0;for(const i of Object.keys(n))void 0!==e[i]&&e[i]===n[i]||(t=!1);if(t){i=!0;break}}i&&n.push(e)}return new Nc(n)}filterCustom(e){return new Nc(this.trials.filter(e))}filterColumns(e){return new Nc(this.trials.map(t=>Object.fromEntries(e.filter(e=>e in t).map(e=>[e,t[e]]))))}select(e){const t=[];for(const n of this.trials)void 0!==n[e]&&t.push(n[e]);return new Mc(t)}ignore(e){Array.isArray(e)||(e=[e]);const t=Lc(this.trials);for(const n of t)for(const t of e)delete n[t];return new Nc(t)}uniqueNames(){const e=[];for(const t of this.trials)for(const n of Object.keys(t))e.includes(n)||e.push(n);return e}csv(){return function(e){const t="object"!=typeof e?JSON.parse(e):e;let n="",i="";const r=[];for(const e of t)for(const t in e){let e=t+"";e='"'+e.replace(/"/g,'""')+'",',r.includes(t)||(r.push(t),n+=e)}n=n.slice(0,-1),i+=n+"\r\n";for(const e of t){n="";for(const t of r){let i=void 0===e[t]?"":e[t];"object"==typeof i&&(i=JSON.stringify(i)),n+='"'+(i+"").replace(/"/g,'""')+'",'}n=n.slice(0,-1),i+=n+"\r\n"}return i}(this.trials)}json(e=!1){return e?JSON.stringify(this.trials,null,"\t"):JSON.stringify(this.trials)}localSave(e,t){let n;if("json"===(e=e.toLowerCase()))n=this.json();else{if("csv"!==e)throw new Error('Invalid format specified for localSave. Must be "json" or "csv".');n=this.csv()}!function(e,t){const n=new Blob([e],{type:"text/plain"});let i="";i=void 0!==window.webkitURL?window.webkitURL.createObjectURL(n):window.URL.createObjectURL(n);const r=document.createElement("a");r.id="jspsych-download-as-text-link",r.style.display="none",r.download=t,r.href=i,r.click()}(n,t)}}class Dc{constructor(e){this.jsPsych=e,this.dataProperties={},this.reset()}reset(){this.allData=new Nc,this.interactionData=new Nc}get(){return this.allData}getInteractionData(){return this.interactionData}write(e){const t=this.jsPsych.getProgress(),n=this.jsPsych.getCurrentTrial(),i={trial_type:n.type.info.name,trial_index:t.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),n.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(t=>t.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 Nc;{const t=e.substr(0,e.lastIndexOf("-"));return this.getDataByTimelineNode(t)}}displayData(e="json"){"json"!=(e=e.toLowerCase())&&"csv"!=e&&(console.log("Invalid format declared for displayData function. Using json as default."),e="json");const t="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=t}urlVariables(){return void 0===this.query_string&&(this.query_string=function(){const e=window.location.search.substr(1).split("&"),t={};for(let n=0;n<e.length;++n){const i=e[n].split("=",2);1==i.length?t[i[0]]="":t[i[0]]=decodeURIComponent(i[1].replace(/\+/g," "))}return t}()),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 Nc(e)}_fullreset(){this.reset(),this.dataProperties={}}}class Fc{constructor(){this.hardwareConnected=!1,document.addEventListener("jspsych-activate",e=>{this.hardwareConnected=!0})}hardware(e){const t=new CustomEvent("jspsych",{detail:e});document.dispatchEvent(t)}}class zc{constructor(e,t=!1,n=0){this.getRootElement=e,this.areResponsesCaseSensitive=t,this.minimumValidRt=n,this.listeners=new Set,this.heldKeys=new Set,this.areRootListenersRegistered=!1,jc(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 t of Array.from(this.listeners))t(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,t,n){return!(!t&&this.heldKeys.has(n))&&("ALL_KEYS"===e||"NO_KEYS"!==e&&e.includes(n))}getKeyboardResponse({callback_function:e,valid_responses:t="ALL_KEYS",rt_method:n="performance",persist:i,audio_context:r,audio_context_start_time:s,allow_held_key:o=!1,minimum_valid_rt:a=this.minimumValidRt}){"performance"!==n&&"audio"!==n&&(console.log('Invalid RT method specified in getKeyboardResponse. Defaulting to "performance" method.'),n="performance");const c="performance"===n?performance.now():1e3*s;this.registerRootListeners(),this.areResponsesCaseSensitive||"string"==typeof t||(t=t.map(e=>e.toLowerCase()));const l=s=>{const u=Math.round(("performance"==n?performance.now():1e3*r.currentTime)-c);if(u<a)return;const p=this.toLowerCaseIfInsensitive(s.key);this.isResponseValid(t,o,p)&&(s.preventDefault(),i||this.cancelKeyboardResponse(l),e({key:p,rt:u}))};return this.listeners.add(l),l}cancelKeyboardResponse(e){this.listeners.delete(e)}cancelAllKeyboardResponses(){this.listeners.clear()}compareKeys(e,t){if(!("string"!=typeof e&&null!==e||"string"!=typeof t&&null!==t))return"string"==typeof e&&"string"==typeof t?this.areResponsesCaseSensitive?e===t:e.toLowerCase()===t.toLowerCase():null===e&&null===t;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"}(Rc||(Rc={}));const $c={data:{type:Rc.OBJECT,pretty_name:"Data",default:{}},on_start:{type:Rc.FUNCTION,pretty_name:"On start",default:function(){}},on_finish:{type:Rc.FUNCTION,pretty_name:"On finish",default:function(){}},on_load:{type:Rc.FUNCTION,pretty_name:"On load",default:function(){}},post_trial_gap:{type:Rc.INT,pretty_name:"Post trial gap",default:null},css_classes:{type:Rc.STRING,pretty_name:"Custom CSS classes",default:null},simulation_options:{type:Rc.COMPLEX,default:null}},Bc=[Rc.AUDIO,Rc.IMAGE,Rc.VIDEO];class qc{constructor(e,t){this.useWebaudio=e,this.webaudioContext=t,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((t,n)=>{void 0===this.audio_buffers[e]||"tmp"==this.audio_buffers[e]?this.preloadAudio([e],()=>{t(this.audio_buffers[e])},()=>{},e=>{n(e.error)}):t(this.audio_buffers[e])})}preloadAudio(e,t=()=>{},n=e=>{},i=e=>{}){e=Ac(e.flat());let r=0;if(0==e.length)return void t();const s=(s,o=1)=>{const a=new XMLHttpRequest;a.open("GET",s,!0),a.responseType="arraybuffer",a.onload=()=>{this.context.decodeAudioData(a.response,i=>{this.audio_buffers[s]=i,r++,n(s),r==e.length&&t()},e=>{i({source:s,error:e})})},a.onerror=e=>{let t=e;404==a.status&&(t="404"),i({source:s,error:t})},a.onloadend=e=>{404==a.status&&i({source:s,error:"404"})},a.send(),this.preload_requests.push(a)},o=(s,o=1)=>{const a=new Audio,c=()=>{this.audio_buffers[s]=a,r++,n(s),r==e.length&&t(),a.removeEventListener("canplaythrough",c)};a.addEventListener("canplaythrough",c),a.addEventListener("error",function e(t){i({source:a.src,error:t}),a.removeEventListener("error",e)}),a.addEventListener("abort",function e(t){i({source:a.src,error:t}),a.removeEventListener("abort",e)}),a.src=s,this.preload_requests.push(a)};for(const i of e)void 0!==this.audio_buffers[i]?(r++,n(i),r==e.length&&t()):(this.audio_buffers[i]="tmp",null!==this.audioContext()?s(i):o(i))}preloadImages(e,t=()=>{},n=e=>{},i=e=>{}){e=Ac(e.flat());var r=0;if(0!==e.length)for(let s=0;s<e.length;s++){const o=new Image,a=e[s];o.onload=()=>{r++,n(a),r===e.length&&t()},o.onerror=e=>{i({source:a,error:e})},o.src=a,this.img_cache[a]=o,this.preload_requests.push(o)}else t()}preloadVideo(e,t=()=>{},n=e=>{},i=e=>{}){e=Ac(e.flat());let r=0;if(0!==e.length)for(const s of e){const o=this.video_buffers,a=new XMLHttpRequest;a.open("GET",s,!0),a.responseType="blob",a.onload=()=>{if(200===a.status||0===a.status){const i=a.response;o[s]=URL.createObjectURL(i),r++,n(s),r===e.length&&t()}},a.onerror=e=>{let t=e;404==a.status&&(t="404"),i({source:s,error:t})},a.onloadend=e=>{404==a.status&&i({source:s,error:"404"})},a.send(),this.preload_requests.push(a)}else t()}getAutoPreloadList(e){const t=Object.fromEntries(Bc.map(e=>[e,new Set])),n=(e,i)=>{var r,s,o,a;if(void 0!==e.timeline)for(const t of e.timeline)n(t,null!==(r=e.type)&&void 0!==r?r:i);else if(null===(o=null!==(s=e.type)&&void 0!==s?s:i)||void 0===o?void 0:o.info){const{name:n,parameters:r}=(null!==(a=e.type)&&void 0!==a?a:i).info;this.preloadMap.has(n)||this.preloadMap.set(n,Object.fromEntries(Object.entries(r).filter(([e,{type:t,preload:n}])=>Bc.includes(t)&&(null==n||n)).map(([e,{type:t}])=>[e,t])));for(const[i,r]of Object.entries(this.preloadMap.get(n))){const n=e[i],s=t[r];if("string"==typeof n)s.add(n);else if(Array.isArray(n))for(const e of n.flat())"string"==typeof e&&s.add(e)}}};return n({timeline:e}),{images:[...t[Rc.IMAGE]],audio:[...t[Rc.AUDIO]],video:[...t[Rc.VIDEO]]}}cancelPreloads(){for(const e of this.preload_requests)e.onload=()=>{},e.onerror=()=>{},e.oncanplaythrough=()=>{},e.onabort=()=>{};this.preload_requests=[]}initializeMicrophoneRecorder(e){const t=new MediaRecorder(e);this.microphone_recorder=t}getMicrophoneRecorder(){return this.microphone_recorder}initializeCameraRecorder(e,t){this.camera_stream=e;const n=new MediaRecorder(e,t);this.camera_recorder=n}getCameraStream(){return this.camera_stream}getCameraRecorder(){return this.camera_recorder}}class Uc{constructor(e,t){this.getDisplayContainerElement=e,this.setJsPsychTimeout=t}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,t=0){t>0?this.setJsPsychTimeout(()=>{this.keyDown(e),this.keyUp(e)},t):(this.keyDown(e),this.keyUp(e))}clickTarget(e,t=0){t>0?this.setJsPsychTimeout(()=>{e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0})),e.dispatchEvent(new MouseEvent("click",{bubbles:!0}))},t):(e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0})),e.dispatchEvent(new MouseEvent("click",{bubbles:!0})))}fillTextInput(e,t,n=0){n>0?this.setJsPsychTimeout(()=>{e.value=t},n):e.value=t}getValidKey(e){const t=["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 n;if("NO_KEYS"==e)n=null;else if("ALL_KEYS"==e)n=t[Math.floor(Math.random()*t.length)];else{const t=e.flat();n=t[Math.floor(Math.random()*t.length)]}return n}mergeSimulationData(e,t){return Object.assign(Object.assign({},e),null==t?void 0:t.data)}ensureSimulationDataConsistency(e,t){if(t.rt&&(t.rt=Math.round(t.rt)),e.trial_duration&&t.rt&&t.rt>e.trial_duration&&(t.rt=null,t.response&&(t.response=null),t.correct&&(t.correct=!1)),e.choices&&"NO_KEYS"==e.choices&&(t.rt&&(t.rt=null),t.response&&(t.response=null)),e.allow_response_before_complete&&e.sequence_reps&&e.frame_time){const n=e.sequence_reps*e.frame_time*e.stimuli.length;t.rt<n&&(t.rt=null,t.response=null)}}}class Hc{constructor(){this.timeout_handlers=[]}setTimeout(e,t){const n=window.setTimeout(e,t);return this.timeout_handlers.push(n),n}clearAllTimeouts(){for(const e of this.timeout_handlers)clearTimeout(e);this.timeout_handlers=[]}}var Wc={exports:{}};!function(e,t,n){function i(e){var t=this,n=function(){var e=4022871197,t=function(t){t=String(t);for(var n=0;n<t.length;n++){var i=.02519603282416938*(e+=t.charCodeAt(n));i-=e=i>>>0,e=(i*=e)>>>0,e+=4294967296*(i-=e)}return 2.3283064365386963e-10*(e>>>0)};return t}();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=n(" "),t.s1=n(" "),t.s2=n(" "),t.s0-=n(e),t.s0<0&&(t.s0+=1),t.s1-=n(e),t.s1<0&&(t.s1+=1),t.s2-=n(e),t.s2<0&&(t.s2+=1),n=null}function r(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function s(e,t){var n=new i(e),s=t&&t.state,o=n.next;return o.int32=function(){return 4294967296*n.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,s&&("object"==typeof s&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.alea=s}(0,Wc,!1);var Vc=Wc.exports,Kc=Ic(Vc),Yc={exports:{}};!function(e,t,n){function i(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var i=0;i<n.length+64;i++)t.x^=0|n.charCodeAt(i),t.next()}function r(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function s(e,t){var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&("object"==typeof s&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.xor128=s}(0,Yc,!1);var Gc=Yc.exports,Jc={exports:{}};!function(e,t,n){function i(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var i=0;i<n.length+64;i++)t.x^=0|n.charCodeAt(i),i==n.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function r(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function s(e,t){var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&("object"==typeof s&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.xorwow=s}(0,Jc,!1);var Xc=Jc.exports,Zc={exports:{}};!function(e,t,n){function i(e){var t=this;t.next=function(){var e,n,i=t.x,r=t.i;return e=i[r],n=(e^=e>>>7)^e<<24,n^=(e=i[r+1&7])^e>>>10,n^=(e=i[r+3&7])^e>>>3,n^=(e=i[r+4&7])^e<<7,e=i[r+7&7],n^=(e^=e<<13)^e<<9,i[r]=n,t.i=r+1&7,n},function(e,t){var n,i=[];if(t===(0|t))i[0]=t;else for(t=""+t,n=0;n<t.length;++n)i[7&n]=i[7&n]<<15^t.charCodeAt(n)+i[n+1&7]<<13;for(;i.length<8;)i.push(0);for(n=0;n<8&&0===i[n];++n);for(8==n?i[7]=-1:i[n],e.x=i,e.i=0,n=256;n>0;--n)e.next()}(t,e)}function r(e,t){return t.x=e.x.slice(),t.i=e.i,t}function s(e,t){null==e&&(e=+new Date);var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&(s.x&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.xorshift7=s}(0,Zc,!1);var Qc=Zc.exports,el={exports:{}};!function(e,t,n){function i(e){var t=this;t.next=function(){var e,n,i=t.w,r=t.X,s=t.i;return t.w=i=i+1640531527|0,n=r[s+34&127],e=r[s=s+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=r[s]=n^e,t.i=s,n+(i^i>>>16)|0},function(e,t){var n,i,r,s,o,a=[],c=128;for(t===(0|t)?(i=t,t=null):(t+="\0",i=0,c=Math.max(c,t.length)),r=0,s=-32;s<c;++s)t&&(i^=t.charCodeAt((s+32)%t.length)),0===s&&(o=i),i^=i<<10,i^=i>>>15,i^=i<<4,i^=i>>>13,s>=0&&(o=o+1640531527|0,r=0==(n=a[127&s]^=i+o)?r+1:0);for(r>=128&&(a[127&(t&&t.length||0)]=-1),r=127,s=512;s>0;--s)i=a[r+34&127],n=a[r=r+1&127],i^=i<<13,n^=n<<17,i^=i>>>15,n^=n>>>12,a[r]=i^n;e.w=o,e.X=a,e.i=r}(t,e)}function r(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function s(e,t){null==e&&(e=+new Date);var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&(s.X&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.xor4096=s}(0,el,!1);var tl=el.exports,nl={exports:{}};!function(e,t,n){function i(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,i=t.d,r=t.a;return e=e<<25^e>>>7^n,n=n-i|0,i=i<<24^i>>>8^r,r=r-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-i|0,t.d=i<<16^n>>>16^r,t.a=r-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var i=0;i<n.length+20;i++)t.b^=0|n.charCodeAt(i),t.next()}function r(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function s(e,t){var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&("object"==typeof s&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.tychei=s}(0,nl,!1);var il=nl.exports,rl={exports:{}};!function(e){!function(t,n,i){var r,s=256,o="random",a=i.pow(s,6),c=i.pow(2,52),l=2*c,u=255;function p(e,u,p){var v=[],y=f(h((u=1==u?{entropy:!0}:u||{}).entropy?[e,g(n)]:null==e?function(){try{var e;return r&&(e=r.randomBytes)?e=e(s):(e=new Uint8Array(s),(t.crypto||t.msCrypto).getRandomValues(e)),g(e)}catch(e){var i=t.navigator,o=i&&i.plugins;return[+new Date,t,o,t.screen,g(n)]}}():e,3),v),b=new d(v),x=function(){for(var e=b.g(6),t=a,n=0;e<c;)e=(e+n)*s,t*=s,n=b.g(1);for(;e>=l;)e/=2,t/=2,n>>>=1;return(e+n)/t};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,f(g(b.S),n),(u.pass||p||function(e,t,n,r){return r&&(r.S&&m(r,b),e.state=function(){return m(b,{})}),n?(i[o]=e,t):e})(x,y,"global"in u?u.global:this==i,u.state)}function d(e){var t,n=e.length,i=this,r=0,o=i.i=i.j=0,a=i.S=[];for(n||(e=[n++]);r<s;)a[r]=r++;for(r=0;r<s;r++)a[r]=a[o=u&o+e[r%n]+(t=a[r])],a[o]=t;(i.g=function(e){for(var t,n=0,r=i.i,o=i.j,a=i.S;e--;)t=a[r=u&r+1],n=n*s+a[u&(a[r]=a[o=u&o+t])+(a[o]=t)];return i.i=r,i.j=o,n})(s)}function m(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function h(e,t){var n,i=[],r=typeof e;if(t&&"object"==r)for(n in e)try{i.push(h(e[n],t-1))}catch(e){}return i.length?i:"string"==r?e:e+"\0"}function f(e,t){for(var n,i=e+"",r=0;r<i.length;)t[u&r]=u&(n^=19*t[u&r])+i.charCodeAt(r++);return g(t)}function g(e){return String.fromCharCode.apply(0,e)}if(f(i.random(),n),e.exports){e.exports=p;try{r=require("crypto")}catch(e){}}else i["seed"+o]=p}("undefined"!=typeof self?self:Cc,[],Math)}(rl);var sl=Vc,ol=Gc,al=Xc,cl=Qc,ll=tl,ul=il,pl=rl.exports;pl.alea=sl,pl.xor128=ol,pl.xorwow=al,pl.xorshift7=cl,pl.xor4096=ll,pl.tychei=ul;var dl=pl,ml=["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 hl(e){const t=e?.seed?new dl(e.seed):null;function n(){return e&&e.maxLength>1?function(){var t,n=!1;for(;!n;)(t=i()).length<=e.maxLength&&(n=!0);return t}():i()}function i(){return ml[r(ml.length)]}function r(e){const n=t?t():Math.random();return Math.floor(n*e)}if(void 0===e)return n();"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 s=e.min+r(e.max+1-e.min),o=[],a="",c=0,l=0;l<s*e.wordsPerString;l++)c===e.wordsPerString-1?a+=e.formatter(n(),c):a+=e.formatter(n(),c)+e.separator,c++,(l+1)%e.wordsPerString===0&&(o.push(a),a="",c=0);return"string"==typeof e.join&&(o=o.join(e.join)),o}var fl=hl;hl.wordList=ml;var gl=Ic(fl);function vl(e,t,n=!1){const i=Array.isArray(e),r=Array.isArray(t);if(i)if(r){if(e.length!=t.length)if(console.warn("Unclear parameters given to randomization.repeat. Items and repetitions are unequal lengths. Behavior may not be as expected."),t.length<e.length){let n=[];for(let i=0;i<e.length;i++)n.push(t);t=n}else t=t.slice(0,e.length)}else{let n=[];for(let i=0;i<e.length;i++)n.push(t);t=n}else r?(t=[t[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],t=[t]);let s=[];for(let n=0;n<e.length;n++)for(let i=0;i<t[n];i++)null==e[n]||"object"!=typeof e[n]?s.push(e[n]):s.push(Object.assign({},e[n]));let o=yl(s);return n&&(o=function(e){const t={};for(const n of e)for(const e of Object.keys(n))void 0===t[e]&&(t[e]=[]),t[e].push(n[e]);return t}(o)),o}function yl(e){Array.isArray(e)||console.error("Argument to shuffle() must be an array.");const t=e.slice(0);let n,i,r=t.length;for(;r;)i=Math.floor(Math.random()*r--),n=t[r],t[r]=t[i],t[i]=n;return t}function bl(e,t=!1){const n=e.length;if(1==n)return console.warn("shuffleAlternateGroups() was called with only one group. Defaulting to simple shuffle."),yl(e[0]);let i=[];for(let e=0;e<n;e++)i.push(e);t&&(i=yl(i));const r=[];let s=null;for(let t=0;t<n;t++)s=null===s?e[t].length:Math.min(s,e[t].length),r.push(yl(e[t]));const o=[];for(let e=0;e<s;e++)for(let t=0;t<i.length;t++)o.push(r[i[t]][e]);return o}function xl(e,t){return Array.isArray(e)||console.error("First argument to sampleWithoutReplacement() must be an array"),t>e.length&&console.error("Cannot take a sample larger than the size of the set of items to sample."),yl(e).slice(0,t)}function _l(e,t,n){Array.isArray(e)||console.error("First argument to sampleWithReplacement() must be an array");const i=[];if(void 0!==n){n.length!==e.length&&console.error("The length of the weights array must equal the length of the array to be sampled from.");let t=0;for(const e of n)t+=e;for(const e of n)i.push(e/t)}else for(let t=0;t<e.length;t++)i.push(1/e.length);const r=[i[0]];for(let e=1;e<i.length;e++)r.push(i[e]+r[e-1]);const s=[];for(let n=0;n<t;n++){const t=Math.random();let n=0;for(;t>r[n];)n++;s.push(e[n])}return s}function wl(e,t){return function(){var e=0,t=0;for(;0===e;)e=Math.random();for(;0===t;)t=Math.random();return Math.sqrt(-2*Math.log(e))*Math.cos(2*Math.PI*t)}()*t+e}function kl(e){return-Math.log(Math.random())/e}var Sl=Object.freeze({__proto__:null,factorial:function(e,t=1,n=!1){let i=[{}];for(const[t,n]of Object.entries(e)){const e=[];for(const r of n)for(const n of i)e.push(Object.assign(Object.assign({},n),{[t]:r}));i=e}return vl(i,t,n)},randomID:function(e=32){let t="";const n="0123456789abcdefghjklmnopqrstuvwxyz";for(let i=0;i<e;i++)t+=n[Math.floor(35*Math.random())];return t},randomInt:function(e,t){if(t<e)throw new Error("Upper boundary must be less than or equal to lower boundary");return e+Math.floor(Math.random()*(t-e+1))},randomWords:function(e){return gl(e)},repeat:vl,sampleBernoulli:function(e){return Math.random()<=e?1:0},sampleExGaussian:function(e,t,n,i=!1){let r=wl(e,t)+kl(n);if(i)for(;r<=0;)r=wl(e,t)+kl(n);return r},sampleExponential:kl,sampleNormal:wl,sampleWithReplacement:_l,sampleWithoutReplacement:xl,setSeed:function(e=Math.random().toString()){return Math.random=Kc(e),e},shuffle:yl,shuffleAlternateGroups:bl,shuffleNoRepeats:function(e,t){Array.isArray(e)||console.error("First argument to shuffleNoRepeats() must be an array."),void 0!==t&&"function"!=typeof t&&console.error("Second argument to shuffleNoRepeats() must be a function."),void 0===t&&(t=function(e,t){return e===t});const n=yl(e);for(let e=0;e<n.length-1;e++)if(t(n[e],n[e+1])){let i=Math.floor(Math.random()*(n.length-2))+1;for(;t(n[e+1],n[i])||t(n[e+1],n[i+1])||t(n[e+1],n[i-1])||t(n[e],n[i]);)i=Math.floor(Math.random()*(n.length-2))+1;const r=n[i];n[i]=n[e+1],n[e+1]=r}return n}});function Tl(){const e={previewMode:!1,outsideTurk:!1,hitId:"INVALID_URL_PARAMETER",assignmentId:"INVALID_URL_PARAMETER",workerId:"INVALID_URL_PARAMETER",turkSubmitTo:"INVALID_URL_PARAMETER"},t=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return null==n?"":n[1]},n=t(window.location.href,"assignmentId")?window.location.href:document.referrer;return["assignmentId","hitId","workerId","turkSubmitTo"].map(function(i){e[i]=unescape(t(n,i))}),e.previewMode="ASSIGNMENT_ID_NOT_AVAILABLE"==e.assignmentId,e.outsideTurk=!e.previewMode&&""===e.hitId&&""==e.assignmentId&&""==e.workerId,e}var El=Object.freeze({__proto__:null,submitToTurk:function(e){const t=Tl(),n=t.assignmentId,i=t.turkSubmitTo;if(!n||!i)return;const r=document.createElement("form");r.method="POST",r.action=i+"/mturk/externalSubmit?assignmentId="+n;for(const t in e)if(e.hasOwnProperty(t)){const n=document.createElement("input");n.type="hidden",n.name=t,n.id=t,n.value=e[t],r.appendChild(n)}document.body.appendChild(r),r.submit()},turkInfo:Tl});class Cl{constructor(e,t,n,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=n,this.relative_id=void 0===n?0:i,void 0!==t.timeline){this.timeline_parameters={timeline:[],loop_function:t.loop_function,conditional_function:t.conditional_function,sample:t.sample,randomize_order:void 0!==t.randomize_order&&t.randomize_order,repetitions:void 0===t.repetitions?1:t.repetitions,timeline_variables:void 0===t.timeline_variables?[{}]:t.timeline_variables,on_timeline_finish:t.on_timeline_finish,on_timeline_start:t.on_timeline_start},this.setTimelineVariablesOrder();var r=Object.assign({},t);delete r.timeline,delete r.conditional_function,delete r.loop_function,delete r.randomize_order,delete r.repetitions,delete r.timeline_variables,delete r.sample,delete r.on_timeline_start,delete r.on_timeline_finish,this.node_trial_data=r;for(var s=0;s<t.timeline.length;s++){var o=Object.assign({},r,t.timeline[s]);if("object"==typeof r.data&&"object"==typeof t.timeline[s].data){var a=Object.assign({},r.data,t.timeline[s].data);o.data=a}this.timeline_parameters.timeline.push(new Cl(this.jsPsych,o,this,s))}}else void 0===t.type&&console.error('Trial level node is missing the "type" parameter. The parameters for the node are: '+JSON.stringify(t)),this.trial_parameters=Object.assign({},t)}trial(){return void 0===this.timeline_parameters?Lc(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 t=[],n=0;n<e.timeline_variables.length;n++)t.push(n);void 0!==e.sample&&("custom"==e.sample.type?t=e.sample.fn(t):"with-replacement"==e.sample.type?t=_l(t,e.sample.size,e.sample.weights):"without-replacement"==e.sample.type?t=xl(t,e.sample.size):"fixed-repetitions"==e.sample.type?t=vl(t,e.sample.size,!1):"alternate-groups"==e.sample.type?t=bl(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&&(t=yl(t)),this.progress.order=t}}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,t=this.timeline_parameters,n=this.jsPsych.internal;if(e.done)return!0;if(-1==e.current_location){if(void 0!==t){if(void 0!==t.conditional_function&&0==e.current_repetition&&0==e.current_variable_set){n.call_immediate=!0;var i=t.conditional_function();if(n.call_immediate=!1,0==i)return e.done=!0,!0}void 0!==t.on_timeline_start&&0==e.current_variable_set&&t.on_timeline_start()}return e.current_location=0,this.advance()}if(void 0!==t){for(var r=!1;e.current_location<t.timeline.length&&0==r;){if(!t.timeline[e.current_location].advance())return r=!0,!1;e.current_location++}return e.current_variable_set<e.order.length-1?(this.nextSet(),this.advance()):e.current_repetition<t.repetitions-1?(this.nextRepetiton(),void 0!==t.on_timeline_finish&&t.on_timeline_finish(),this.advance()):(void 0!==t.on_timeline_finish&&t.on_timeline_finish(),void 0!==t.loop_function?(n.call_immediate=!0,t.loop_function(this.generatedData())?(this.reset(),n.call_immediate=!1,this.parent_node.advance()):(e.done=!0,n.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 t=this.getTimelineVariableValue(e);return void 0===t?void 0!==this.parent_node?this.parent_node.findTimelineVariable(e):void 0:t}timelineVariable(e){if(void 0===this.timeline_parameters){const t=this.findTimelineVariable(e);return void 0===t&&console.warn("Timeline variable "+e+" not found."),t}{var t=Math.max(0,this.progress.current_location);t==this.timeline_parameters.timeline.length&&(t-=1);const n=this.timeline_parameters.timeline[t].timelineVariable(e);return void 0===n&&console.warn("Timeline variable "+e+" not found."),n}}allTimelineVariables(){for(var e=this.allTimelineVariablesNames(),t={},n=0;n<e.length;n++)t[e[n]]=this.timelineVariable(e[n]);return t}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 t=Math.max(0,this.progress.current_location);return t==this.timeline_parameters.timeline.length&&(t-=1),this.timeline_parameters.timeline[t].allTimelineVariablesNames(e)}if(void 0===this.timeline_parameters)return e}length(){var e=0;if(void 0===this.timeline_parameters)return 1;for(var t=0;t<this.timeline_parameters.timeline.length;t++)e+=this.timeline_parameters.timeline[t].length();return e}percentComplete(){for(var e=this.length(),t=0,n=0;n<this.timeline_parameters.timeline.length;n++)this.timeline_parameters.timeline[n].isComplete()&&(t+=this.timeline_parameters.timeline[n].length());return t/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 t=[],n=0;n<this.timeline_parameters.timeline.length;n++){var i=this.timeline_parameters.timeline[n].trialsOfType(e);t=t.concat(i)}return t}insert(e){void 0===this.timeline_parameters?console.error("Cannot add new trials to a trial-level node."):this.timeline_parameters.timeline.push(new Cl(this.jsPsych,Object.assign(Object.assign({},this.node_trial_data),e),this,this.timeline_parameters.timeline.length))}}function Il(e){return new Promise(t=>setTimeout(t,e))}class jl{version(){return"7.3.4"}constructor(e){this.extensions={},this.turk=El,this.randomization=Sl,this.utils=Pc,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,jc(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 Dc(this),this.pluginAPI=function(e){const t=e.getInitSettings(),n=jc(new zc(e.getDisplayContainerElement,t.case_sensitive_responses,t.minimum_valid_rt)),i=jc(new Hc),r=jc(new qc(t.use_webaudio,e.webaudio_context)),s=jc(new Fc),o=jc(new Uc(e.getDisplayContainerElement,i.setTimeout));return Object.assign({},n,i,r,s,o)}(this);for(const t of e.extensions)this.extensions[t.type.info.name]=new t.type(this);this.pluginAPI.initAudio()}run(e){return Ec(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 Cl(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,t="data-only",n={}){return Ec(this,void 0,void 0,function*(){this.simulation_mode=t,this.simulation_options=n,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 t;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 n=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 t=i.save_trial_parameters[e];!0===t&&(void 0===i[e]?console.warn(`Invalid parameter specified in save_trial_parameters. Trial has no property called "${e}".`):"function"==typeof i[e]?n[e]=i[e].toString():n[e]=i[e]),!1===t&&"internal_node_id"!==e&&"trial_index"!==e&&delete n[e]}const r=(null!==(t=i.extensions)&&void 0!==t?t:[]).map(e=>this.extensions[e.type.info.name].on_finish(e.params)),s=()=>{this.internal.call_immediate=!0,"function"==typeof i.on_finish&&i.on_finish(n),this.opts.on_trial_finish(n),this.opts.on_data_update(n),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(r.some(e=>"function"==typeof e.then))Promise.all(r.map(e=>Promise.resolve(e).then(e=>{Object.assign(n,e)}))).then(s);else{for(const e of r)Object.assign(n,e);s()}}endExperiment(e="",t={}){this.timeline.end_message=e,this.timeline.end(),this.pluginAPI.cancelAllKeyboardResponses(),this.pluginAPI.clearAllTimeouts(),this.finishTrial(t)}endCurrentTimeline(){this.timeline.endActiveNode()}getCurrentTrial(){return this.current_trial}getInitSettings(){return this.opts}getCurrentTimelineNodeID(){return this.timeline.activeID()}timelineVariable(e,t=!1){return this.internal.call_immediate||!0===t?this.timeline.timelineVariable(e):{timelineVariablePlaceholder:!0,timelineVariableFunction:()=>this.timeline.timelineVariable(e)}}getAllTimelineVariables(){return this.timeline.allTimelineVariables()}addNodeToEndOfTimeline(e,t){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 Ec(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 t=e.display_element instanceof Element?e.display_element:document.querySelector("#"+e.display_element);null===t?console.error("The display_element specified in initJsPsych() does not exist in the DOM."):e.display_element=t}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 Ec(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()),t=()=>{void 0!==this.timeline.end_message&&(this.DOM_target.innerHTML=this.timeline.end_message),this.resolveFinishedPromise()};e?Promise.resolve(e).then(t):t()}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 Oc("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({},jc(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 t of e.extensions)this.extensions[t.type.info.name].on_start(t.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 t=()=>{if("function"==typeof e.on_load&&e.on_load(),Array.isArray(e.extensions))for(const t of e.extensions)this.extensions[t.type.info.name].on_load(t.params)};let n,i,r;this.simulation_mode||(n=e.type.trial(this.DOM_target,e,t)),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),r=this.utils.deepMerge(this.simulation_options.default,i),r=this.utils.deepCopy(r),r=this.replaceFunctionsWithValues(r,null),n=!1===(null==r?void 0:r.simulate)?e.type.trial(this.DOM_target,e,t):e.type.simulate(e,(null==r?void 0:r.mode)||this.simulation_mode,r,t)):n=e.type.trial(this.DOM_target,e,t));n&&"function"==typeof n.then||this.simulation_mode&&(!this.simulation_mode||!1!==(null==r?void 0:r.simulate))||t(),this.internal.call_immediate=!1}evaluateTimelineVariables(e){for(const t of Object.keys(e))"object"==typeof e[t]&&null!==e[t]&&void 0!==e[t].timelineVariablePlaceholder&&(e[t]=e[t].timelineVariableFunction()),"object"==typeof e[t]&&null!==e[t]&&"timeline"!==t&&"timeline_variables"!==t&&this.evaluateTimelineVariables(e[t])}evaluateFunctionParameters(e){this.internal.call_immediate=!0;for(const t of Object.keys(e))"type"!==t&&(void 0!==$c[t]&&$c[t].type!==Rc.FUNCTION&&(e[t]=this.replaceFunctionsWithValues(e[t],null)),void 0!==e.type.info.parameters[t]&&e.type.info.parameters[t].type!==Rc.FUNCTION&&(e[t]=this.replaceFunctionsWithValues(e[t],e.type.info.parameters[t])));this.internal.call_immediate=!1}replaceFunctionsWithValues(e,t){if(null===e)return e;if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=this.replaceFunctionsWithValues(e[n],t);else if("object"==typeof e)if(null!==t&&t.nested)for(const n of Object.keys(e))"object"==typeof t.nested[n]&&t.nested[n].type!==Rc.FUNCTION&&(e[n]=this.replaceFunctionsWithValues(e[n],t.nested[n]));else for(const t of Object.keys(e))"type"!==t&&"timeline"!==t&&"timeline_variables"!==t&&(e[t]=this.replaceFunctionsWithValues(e[t],null));else if("function"==typeof e)return e();return e}setDefaultValues(e){for(const t in e.type.info.parameters)e.type.info.parameters[t].type===Rc.COMPLEX?(void 0===e[t]&&e.type.info.parameters[t].default&&(e[t]=e.type.info.parameters[t].default),!0===e.type.info.parameters[t].array&&Array.isArray(e[t])&&e[t].forEach(function(n,i){for(const n in e.type.info.parameters[t].nested)void 0!==e[t][i][n]&&null!==e[t][i][n]||(void 0===e.type.info.parameters[t].nested[n].default?console.error(`You must specify a value for the ${n} parameter (nested in the ${t} parameter) in the ${e.type.info.name} plugin.`):e[t][i][n]=e.type.info.parameters[t].nested[n].default)})):void 0!==e[t]&&null!==e[t]||(void 0===e.type.info.parameters[t].default?console.error(`You must specify a value for the ${t} parameter in the ${e.type.info.name} plugin.`):e[t]=e.type.info.parameters[t].default)}checkExclusions(e){return Ec(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 t=e.min_width||0,n=e.min_height||0;if(window.innerWidth<t||window.innerHeight<n){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 "+t+"px. Your current width is "+window.innerWidth+"px.</p><p>The minimum height is "+n+"px. Your current height is "+window.innerHeight+"px.</p>";window.innerWidth<t||window.innerHeight<n;)yield Il(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);const Ol={name:"preload",parameters:{auto_preload:{type:Rc.BOOL,pretty_name:"Auto-preload",default:!1},trials:{type:Rc.TIMELINE,pretty_name:"Trials",default:[]},images:{type:Rc.STRING,pretty_name:"Images",default:[],array:!0},audio:{type:Rc.STRING,pretty_name:"Audio",default:[],array:!0},video:{type:Rc.STRING,pretty_name:"Video",default:[],array:!0},message:{type:Rc.HTML_STRING,pretty_name:"Message",default:null},show_progress_bar:{type:Rc.BOOL,pretty_name:"Show progress bar",default:!0},continue_after_error:{type:Rc.BOOL,pretty_name:"Continue after error",default:!1},error_message:{type:Rc.HTML_STRING,pretty_name:"Error message",default:"The experiment failed to load."},show_detailed_errors:{type:Rc.BOOL,pretty_name:"Show detailed errors",default:!1},max_load_time:{type:Rc.INT,pretty_name:"Max load time",default:null},on_error:{type:Rc.FUNCTION,pretty_name:"On error",default:null},on_success:{type:Rc.FUNCTION,pretty_name:"On success",default:null}}};class Al{constructor(e){this.jsPsych=e}trial(e,t){var n=null,i=!1,r=[],s=[],o=[],a=[],c=this.jsPsych.getSafeModeStatus(),l=[],u=[],p=[];if(t.auto_preload){var d=this.jsPsych.getTimeline(),m=this.jsPsych.pluginAPI.getAutoPreloadList(d);l=l.concat(m.images),u=u.concat(m.audio),p=p.concat(m.video)}if(t.trials.length>0){var h=this.jsPsych.pluginAPI.getAutoPreloadList(t.trials);l=l.concat(h.images),u=u.concat(h.audio),p=p.concat(h.video)}l=l.concat(t.images),u=u.concat(t.audio),p=p.concat(t.video),l=this.jsPsych.utils.unique(l.flat()),u=this.jsPsych.utils.unique(u.flat()),p=this.jsPsych.utils.unique(p.flat()),c&&(p=[]);var f="";null!==t.message&&(f+=t.message),t.show_progress_bar&&(f+="\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=f;const g=()=>{if(w++,t.show_progress_bar){var n=w/_*100,i=e.querySelector("#jspsych-loading-progress-bar");null!==i&&(i.style.width=n+"%")}},v=()=>{void 0!==i&&!1===i&&(this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),n=!0,x())},y=()=>{this.jsPsych.pluginAPI.cancelPreloads(),void 0===n||!1!==n&&null!==n||(i=!0,k<_&&(n=!1),E("timeout"),a.push("<p><strong>Loading timed out.</strong><br>Consider compressing your stimuli files, loading your files in smaller batches,<br>and/or increasing the <i>max_load_time</i> parameter.</p>"),t.continue_after_error?x():b())},b=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),this.jsPsych.pluginAPI.cancelPreloads(),e.innerHTML=t.error_message,t.show_detailed_errors&&(e.innerHTML+="<p><strong>Error details:</strong></p>",a.forEach(t=>{e.innerHTML+=t}))},x=()=>{this.jsPsych.pluginAPI.clearAllTimeouts();var t={success:n,timeout:i,failed_images:r,failed_audio:s,failed_video:o};e.innerHTML="",this.jsPsych.finishTrial(t)};null!==t.max_load_time&&this.jsPsych.pluginAPI.setTimeout(y,t.max_load_time);var _=l.length+u.length+p.length,w=0,k=0;if(0==_)v();else{const e=e=>{this.jsPsych.pluginAPI.preloadVideo(p,e,T,S)},t=e=>{this.jsPsych.pluginAPI.preloadAudio(u,e,T,S)},n=e=>{this.jsPsych.pluginAPI.preloadImages(l,e,T,S)};p.length>0&&e(()=>{}),u.length>0&&t(()=>{}),l.length>0&&n(()=>{})}function S(e){g(),null==n&&(n=!1);var i="unknown file";e.source&&(i=e.source),e.error&&e.error.path&&e.error.path.length>0&&("img"==e.error.path[0].localName?r.push(i):"audio"==e.error.path[0].localName?s.push(i):"video"==e.error.path[0].localName&&o.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>",a.push(c),E(i),w==_&&(t.continue_after_error?x():b())}function T(e){g(),function(e){null!==t.on_success&&t.on_success(e)}(e),++k==_?v():w==_&&(t.continue_after_error?x():b())}function E(e){null!==t.on_error&&t.on_error(e)}}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){return this.jsPsych.pluginAPI.mergeSimulationData({success:!0,timeout:!1,failed_images:[],failed_audio:[],failed_video:[]},t)}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.jsPsych.getDisplayElement();this.trial(i,e),n()}}Al.info=Ol;var Ll={},Rl={exports:{}};!function(e){function t(e,t){this.low=e,this.high=t,this.random_sample=function(){return Math.random()*(this.high-this.low)+this.low}}function n(e,t){this.low=e,this.high=t,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,t=Math.round(Math.random()*(e-1));return this.categories[t]}}function r(e){this.dimensions=e,this.rsv=function(e){for(var t=[],n=0;n<e;n++){var i=[];for(var r of this.dimensions)i.push(r.random_sample());t.push(i)}return t}}function s(t){this.space=e.exports.to_space(t),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,t){for(var n=0;n<e.length;n++)(null==this.best_y||t[n]<this.best_y)&&(this.best_y=t[n],this.best_x=e[n]);this.X=this.X.concat(e),this.Y=this.Y.concat(t)}}function o(r,s=13,o=.1){this.space=e.exports.to_space(r),this.n_random_starts=s,this.mutation_rate=o,this.n_random_starts_=s,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=[],r=this.X[0],s=this.Y[0],o=1;o<this.Y.length;o++)this.Y[o]<s&&(r=this.X[o],s=this.Y[o]);for(o=0;o<this.space.dimensions.length;o++){var a=r[o],c=this.space.dimensions[o];if(c instanceof i&&this.rnd()){var l=Math.round(Math.random()*(c.categories.length-1));a=c.categories[l],finished=!0}if((c instanceof t||c instanceof n)&&this.rnd()){for(var u=c.low,p=c.high,d=-16;d<=1;d++)this.rnd()&&(finished=!0,this.rnd(.5)?diff=p-a:diff=u-a,a+=diff*Math.pow(2,d));a<u&&(a=u),a>p&&(a=p),c instanceof n&&(a=Math.round(a))}e.push(a)}}return e},this.tell=function(e,t){for(var n=0;n<e.length;n++)this.n_random_starts_-=1,(null==this.best_y||t[n]<this.best_y)&&(this.best_y=t[n],this.best_x=e[n]);this.n_random_starts_<0&&(this.n_random_starts_=0),this.X=this.X.concat(e),this.Y=this.Y.concat(t)}}function a(e){for(var t=[],n=0;n<e.length;n++)t.push(n);for(n=0;n<e.length;n++){var i=Math.floor(Math.random()*n),r=t[n];t[n]=t[i],t[i]=r}return t}function c(e,t){for(var n=0,i=0;i<e.length;i++)n+=e[i]*t[i];return n}function l(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)n[i]=e[i]-t[i];return n}function u(e,t,n){for(var i=0;i<e.length;i++)e[i]=e[i]+t*n[i];return e}function p(e,t){for(var n=0;n<e.length;n++)if(Math.abs(e[n])>=t)return!1;return!0}e.exports.Real=function(e,n){return new t(e,n)},e.exports.Integer=function(e,t){return new n(e,t)},e.exports.Categorical=function(e){return new i(e)},e.exports.Space=function(e){return new r(e)},e.exports.to_space=function(t){if(t instanceof Array)return e.exports.Space(t);if(t instanceof r)return t;throw"Unknown space definition"},e.exports.RandomOptimizer=function(e){return new s(e)},e.exports.OMGOptimizer=function(e,t=13,n=.1){return new o(e,t,n)},e.exports.dummy_minimize=function(t,n,i=64){for(var r=e.exports.RandomOptimizer(n),s=0;s<i;s++){var o=r.ask(),a=t(o);r.tell([o],[a])}return r},e.exports.rs_minimize=function(t,n,i=64,r=13,s=.1){for(var o=e.exports.OMGOptimizer(n,r,s),a=0;a<i;a++){var c=o.ask(),l=t(c);o.tell([c],[l])}return o},e.exports.minimize_Powell=function(e,t,n=.01,i=.001){for(var r=!1,s=t.slice(),o=Math.exp(10),c=e(s);!r;){var l=a(s);r=!0;for(var u=0;u<l.length;u++){s[l[u]]+=1e-6;var p=e(s);s[l[u]]-=1e-6;var d=(p-c)/1e-6;Math.abs(d)>n&&(r=!1),s[l[u]]=s[l[u]]-i*d,c=e(s)}i=o>c?1.1*i:.7*i,o=c}var m={};return m.argument=s,m.fncvalue=c,m},e.exports.minimize_GradientDescent=function(e,t,n){for(var i=n.slice(),r=!1,s=.01,o=e(i);!r;){var a=t(i);if(r=p(a,.001))break;for(var c=!0;c;){var l=i.slice();u(l,-s,a);var d=e(l);s=(c=o<d)?.7*s:1.1*s}i=l,o=d}var m={};return m.argument=i,m.fncvalue=d,m},e.exports.minimize_L_BFGS=function(e,t,n){for(var i=n.slice(),r=.001,s=e(i),o=[],a=[],d=t(i),m=d.slice();;){var h=i.slice();u(h,r,m);var f=e(h);r=s<f?.5*r:1.2*r;var g=t(h);if(p(g,1e-5))break;var v=l(h,i),y=l(g,d);o.unshift(v),a.unshift(y),c(v,y),o.length>5&&(o.pop(),a.pop());for(var b=d.slice(),x=new Array(o.length),_=0;_<o.length;_++){var w=1/c(o[_],a[_]);x[_]=w*c(o[_],b),u(b,-x[_],a[_])}var k=c(v,y)/c(y,y);for(_=0;_<b.length;_++)b[_]=b[_]*k;for(_=0;_<o.length;_++){var S=o.length-_-1,T=1/c(o[S],a[S])*c(a[S],b);u(b,x[S]-T,o[S])}m=b.slice();for(_=0;_<m.length;_++)m[_]=-m[_];s=f,i=h,d=g}var E={};return E.argument=i,E.fncvalue=f,E}}(Rl);var Pl=Rl.exports,Ml={exports:{}};!function(e,t){(function(){var i,r="Expected a function",s="__lodash_hash_undefined__",o="__lodash_placeholder__",a=16,c=32,l=64,u=128,p=256,d=1/0,m=9007199254740991,h=NaN,f=4294967295,g=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",c],["partialRight",l],["rearg",p]],v="[object Arguments]",y="[object Array]",b="[object Boolean]",x="[object Date]",_="[object Error]",w="[object Function]",k="[object GeneratorFunction]",S="[object Map]",T="[object Number]",E="[object Object]",C="[object Promise]",I="[object RegExp]",j="[object Set]",O="[object String]",A="[object Symbol]",L="[object WeakMap]",R="[object ArrayBuffer]",P="[object DataView]",M="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",F="[object Int16Array]",z="[object Int32Array]",$="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(K.source),J=RegExp(Y.source),X=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ie.source),se=/^\s+/,oe=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,we=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",Ae="["+ke+"]",Le="["+je+"]",Re="["+Se+"]",Pe="\\d+",Me="["+Te+"]",Ne="["+Ee+"]",De="[^"+ke+je+Pe+Te+Ee+Ce+"]",Fe="\\ud83c[\\udffb-\\udfff]",ze="[^"+ke+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+Ce+"]",Ue="\\u200d",He="(?:"+Ne+"|"+De+")",We="(?:"+qe+"|"+De+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Re+"|"+Fe+")"+"?",Ge="["+Ie+"]?",Je=Ge+Ye+("(?:"+Ue+"(?:"+[ze,$e,Be].join("|")+")"+Ge+Ye+")*"),Xe="(?:"+[Me,$e,Be].join("|")+")"+Je,Ze="(?:"+[ze+Re+"?",Re,$e,Be,Ae].join("|")+")",Qe=RegExp(Oe,"g"),et=RegExp(Re,"g"),tt=RegExp(Fe+"(?="+Fe+")|"+Ze+Je,"g"),nt=RegExp([qe+"?"+Ne+"+"+Ve+"(?="+[Le,qe,"$"].join("|")+")",We+"+"+Ke+"(?="+[Le,qe+He,"$"].join("|")+")",qe+"?"+He+"+"+Ve,qe+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Xe].join("|"),"g"),it=RegExp("["+Ue+ke+Se+Ie+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,at={};at[M]=at[N]=at[D]=at[F]=at[z]=at[$]=at[B]=at[q]=at[U]=!0,at[v]=at[y]=at[R]=at[b]=at[P]=at[x]=at[_]=at[w]=at[S]=at[T]=at[E]=at[I]=at[j]=at[O]=at[L]=!1;var ct={};ct[v]=ct[y]=ct[R]=ct[P]=ct[b]=ct[x]=ct[M]=ct[N]=ct[D]=ct[F]=ct[z]=ct[S]=ct[T]=ct[E]=ct[I]=ct[j]=ct[O]=ct[A]=ct[$]=ct[B]=ct[q]=ct[U]=!0,ct[_]=ct[w]=ct[L]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,pt=parseInt,dt="object"==typeof n&&n&&n.Object===Object&&n,mt="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||mt||Function("return this")(),ft=t&&!t.nodeType&&t,gt=ft&&e&&!e.nodeType&&e,vt=gt&&gt.exports===ft,yt=vt&&dt.process,bt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),xt=bt&&bt.isArrayBuffer,_t=bt&&bt.isDate,wt=bt&&bt.isMap,kt=bt&&bt.isRegExp,St=bt&&bt.isSet,Tt=bt&&bt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,i){for(var r=-1,s=null==e?0:e.length;++r<s;){var o=e[r];t(i,o,n(o),e)}return i}function It(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function jt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function At(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}function Lt(e,t){return!!(null==e?0:e.length)&&qt(e,t,0)>-1}function Rt(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function Pt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function Mt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Nt(e,t,n,i){var r=-1,s=null==e?0:e.length;for(i&&s&&(n=e[++r]);++r<s;)n=t(n,e[r],r,e);return n}function Dt(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Ft(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var zt=Vt("length");function $t(e,t,n){var i;return n(e,function(e,n,r){if(t(e,n,r))return i=n,!1}),i}function Bt(e,t,n,i){for(var r=e.length,s=n+(i?1:-1);i?s--:++s<r;)if(t(e[s],s,e))return s;return-1}function qt(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):Bt(e,Ht,n)}function Ut(e,t,n,i){for(var r=n-1,s=e.length;++r<s;)if(i(e[r],t))return r;return-1}function Ht(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:h}function Vt(e){return function(t){return null==t?i:t[e]}}function Kt(e){return function(t){return null==e?i:e[t]}}function Yt(e,t,n,i,r){return r(e,function(e,r,s){n=i?(i=!1,e):t(n,e,r,s)}),n}function Gt(e,t){for(var n,r=-1,s=e.length;++r<s;){var o=t(e[r]);o!==i&&(n=n===i?o:n+o)}return n}function Jt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Xt(e){return e?e.slice(0,fn(e)+1).replace(se,""):e}function Zt(e){return function(t){return e(t)}}function Qt(e,t){return Pt(t,function(t){return e[t]})}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&qt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var rn=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),sn=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function on(e){return"\\"+lt[e]}function an(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,i=e.length,r=0,s=[];++n<i;){var a=e[n];a!==t&&a!==o||(e[n]=o,s[r++]=n)}return s}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function mn(e){return an(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):zt(e)}function hn(e){return an(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var gn=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n=(t=null==t?ht:vn.defaults(ht.Object(),t,vn.pick(ht,st))).Array,oe=t.Date,ke=t.Error,Se=t.Function,Te=t.Math,Ee=t.Object,Ce=t.RegExp,Ie=t.String,je=t.TypeError,Oe=n.prototype,Ae=Se.prototype,Le=Ee.prototype,Re=t["__core-js_shared__"],Pe=Ae.toString,Me=Le.hasOwnProperty,Ne=0,De=function(){var e=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Le.toString,ze=Pe.call(Ee),$e=ht._,Be=Ce("^"+Pe.call(Me).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=vt?t.Buffer:i,Ue=t.Symbol,He=t.Uint8Array,We=qe?qe.allocUnsafe:i,Ve=ln(Ee.getPrototypeOf,Ee),Ke=Ee.create,Ye=Le.propertyIsEnumerable,Ge=Oe.splice,Je=Ue?Ue.isConcatSpreadable:i,Xe=Ue?Ue.iterator:i,Ze=Ue?Ue.toStringTag:i,tt=function(){try{var e=ps(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=oe&&oe.now!==ht.Date.now&&oe.now,dt=t.setTimeout!==ht.setTimeout&&t.setTimeout,mt=Te.ceil,ft=Te.floor,gt=Ee.getOwnPropertySymbols,yt=qe?qe.isBuffer:i,bt=t.isFinite,zt=Oe.join,Kt=ln(Ee.keys,Ee),yn=Te.max,bn=Te.min,xn=oe.now,_n=t.parseInt,wn=Te.random,kn=Oe.reverse,Sn=ps(t,"DataView"),Tn=ps(t,"Map"),En=ps(t,"Promise"),Cn=ps(t,"Set"),In=ps(t,"WeakMap"),jn=ps(Ee,"create"),On=In&&new In,An={},Ln=Ds(Sn),Rn=Ds(Tn),Pn=Ds(En),Mn=Ds(Cn),Nn=Ds(In),Dn=Ue?Ue.prototype:i,Fn=Dn?Dn.valueOf:i,zn=Dn?Dn.toString:i;function $n(e){if(ta(e)&&!Ho(e)&&!(e instanceof Hn)){if(e instanceof Un)return e;if(Me.call(e,"__wrapped__"))return Fs(e)}return new Un(e)}var Bn=function(){function e(){}return function(t){if(!ea(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function qn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Jn(e,t){var n=Ho(e),i=!n&&Uo(e),r=!n&&!i&&Yo(e),s=!n&&!i&&!r&&la(e),o=n||i||r||s,a=o?Jt(e.length,Ie):[],c=a.length;for(var l in e)!t&&!Me.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ys(l,c))||a.push(l);return a}function Xn(e){var t=e.length;return t?e[Yi(0,t-1)]:i}function Zn(e,t){return Ps(jr(e),ai(t,0,e.length))}function Qn(e){return Ps(jr(e))}function ei(e,t,n){(n!==i&&!$o(e[t],n)||n===i&&!(t in e))&&si(e,t,n)}function ti(e,t,n){var r=e[t];Me.call(e,t)&&$o(r,n)&&(n!==i||t in e)||si(e,t,n)}function ni(e,t){for(var n=e.length;n--;)if($o(e[n][0],t))return n;return-1}function ii(e,t,n,i){return di(e,function(e,r,s){t(i,e,n(e),s)}),i}function ri(e,t){return e&&Or(t,Aa(t),e)}function si(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function oi(e,t){for(var r=-1,s=t.length,o=n(s),a=null==e;++r<s;)o[r]=a?i:Ea(e,t[r]);return o}function ai(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ci(e,t,n,r,s,o){var a,c=1&t,l=2&t,u=4&t;if(n&&(a=s?n(e,r,s,o):n(e)),a!==i)return a;if(!ea(e))return e;var p=Ho(e);if(p){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return jr(e,a)}else{var d=hs(e),m=d==w||d==k;if(Yo(e))return kr(e,c);if(d==E||d==v||m&&!s){if(a=l||m?{}:gs(e),!c)return l?function(e,t){return Or(e,ms(e),t)}(e,function(e,t){return e&&Or(t,La(t),e)}(a,e)):function(e,t){return Or(e,ds(e),t)}(e,ri(a,e))}else{if(!ct[d])return s?e:{};a=function(e,t,n){var i=e.constructor;switch(t){case R:return Sr(e);case b:case x:return new i(+e);case P:return function(e,t){var n=t?Sr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case N:case D:case F:case z:case $:case B:case q:case U:return Tr(e,n);case S:return new i;case T:case O:return new i(e);case I:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case j:return new i;case A:return r=e,Fn?Ee(Fn.call(r)):{}}var r}(e,d,c)}}o||(o=new Gn);var h=o.get(e);if(h)return h;o.set(e,a),oa(e)?e.forEach(function(i){a.add(ci(i,t,n,i,e,o))}):na(e)&&e.forEach(function(i,r){a.set(r,ci(i,t,n,r,e,o))});var f=p?i:(u?l?rs:is:l?La:Aa)(e);return It(f||e,function(i,r){f&&(i=e[r=i]),ti(a,r,ci(i,t,n,r,e,o))}),a}function li(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var s=n[r],o=t[s],a=e[s];if(a===i&&!(s in e)||!o(a))return!1}return!0}function ui(e,t,n){if("function"!=typeof e)throw new je(r);return Os(function(){e.apply(i,n)},t)}function pi(e,t,n,i){var r=-1,s=Lt,o=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=Pt(t,Zt(n))),i?(s=Rt,o=!1):t.length>=200&&(s=en,o=!1,t=new Yn(t));e:for(;++r<a;){var u=e[r],p=null==n?u:n(u);if(u=i||0!==u?u:0,o&&p==p){for(var d=l;d--;)if(t[d]===p)continue e;c.push(u)}else s(t,p,i)||c.push(u)}return c}$n.templateSettings={escape:X,evaluate:Z,interpolate:Q,variable:"",imports:{_:$n}},$n.prototype=qn.prototype,$n.prototype.constructor=$n,Un.prototype=Bn(qn.prototype),Un.prototype.constructor=Un,Hn.prototype=Bn(qn.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=jn?jn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(jn){var n=t[e];return n===s?i:n}return Me.call(t,e)?t[e]:i},Wn.prototype.has=function(e){var t=this.__data__;return jn?t[e]!==i:Me.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jn&&t===i?s:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=ni(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,!0)},Vn.prototype.get=function(e){var t=this.__data__,n=ni(t,e);return n<0?i:t[n][1]},Vn.prototype.has=function(e){return ni(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,i=ni(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Tn||Vn),string:new Wn}},Kn.prototype.delete=function(e){var t=ls(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return ls(this,e).get(e)},Kn.prototype.has=function(e){return ls(this,e).has(e)},Kn.prototype.set=function(e,t){var n=ls(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,s),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var i=n.__data__;if(!Tn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(i)}return n.set(e,t),this.size=n.size,this};var di=Rr(xi),mi=Rr(_i,!0);function hi(e,t){var n=!0;return di(e,function(e,i,r){return n=!!t(e,i,r)}),n}function fi(e,t,n){for(var r=-1,s=e.length;++r<s;){var o=e[r],a=t(o);if(null!=a&&(c===i?a==a&&!ca(a):n(a,c)))var c=a,l=o}return l}function gi(e,t){var n=[];return di(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}function vi(e,t,n,i,r){var s=-1,o=e.length;for(n||(n=vs),r||(r=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?vi(a,t-1,n,i,r):Mt(r,a):i||(r[r.length]=a)}return r}var yi=Pr(),bi=Pr(!0);function xi(e,t){return e&&yi(e,t,Aa)}function _i(e,t){return e&&bi(e,t,Aa)}function wi(e,t){return At(t,function(t){return Xo(e[t])})}function ki(e,t){for(var n=0,r=(t=br(t,e)).length;null!=e&&n<r;)e=e[Ns(t[n++])];return n&&n==r?e:i}function Si(e,t,n){var i=t(e);return Ho(e)?i:Mt(i,n(e))}function Ti(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in Ee(e)?function(e){var t=Me.call(e,Ze),n=e[Ze];try{e[Ze]=i;var r=!0}catch(e){}var s=Fe.call(e);r&&(t?e[Ze]=n:delete e[Ze]);return s}(e):function(e){return Fe.call(e)}(e)}function Ei(e,t){return e>t}function Ci(e,t){return null!=e&&Me.call(e,t)}function Ii(e,t){return null!=e&&t in Ee(e)}function ji(e,t,r){for(var s=r?Rt:Lt,o=e[0].length,a=e.length,c=a,l=n(a),u=1/0,p=[];c--;){var d=e[c];c&&t&&(d=Pt(d,Zt(t))),u=bn(d.length,u),l[c]=!r&&(t||o>=120&&d.length>=120)?new Yn(c&&d):i}d=e[0];var m=-1,h=l[0];e:for(;++m<o&&p.length<u;){var f=d[m],g=t?t(f):f;if(f=r||0!==f?f:0,!(h?en(h,g):s(p,g,r))){for(c=a;--c;){var v=l[c];if(!(v?en(v,g):s(e[c],g,r)))continue e}h&&h.push(g),p.push(f)}}return p}function Oi(e,t,n){var r=null==(e=Cs(e,t=br(t,e)))?e:e[Ns(Gs(t))];return null==r?i:Et(r,e,n)}function Ai(e){return ta(e)&&Ti(e)==v}function Li(e,t,n,r,s){return e===t||(null==e||null==t||!ta(e)&&!ta(t)?e!=e&&t!=t:function(e,t,n,r,s,o){var a=Ho(e),c=Ho(t),l=a?y:hs(e),u=c?y:hs(t),p=(l=l==v?E:l)==E,d=(u=u==v?E:u)==E,m=l==u;if(m&&Yo(e)){if(!Yo(t))return!1;a=!0,p=!1}if(m&&!p)return o||(o=new Gn),a||la(e)?ts(e,t,n,r,s,o):function(e,t,n,i,r,s,o){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!s(new He(e),new He(t)));case b:case x:case T:return $o(+e,+t);case _:return e.name==t.name&&e.message==t.message;case I:case O:return e==t+"";case S:var a=cn;case j:var c=1&i;if(a||(a=pn),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;i|=2,o.set(e,t);var u=ts(a(e),a(t),i,r,s,o);return o.delete(e),u;case A:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,l,n,r,s,o);if(!(1&n)){var h=p&&Me.call(e,"__wrapped__"),f=d&&Me.call(t,"__wrapped__");if(h||f){var g=h?e.value():e,w=f?t.value():t;return o||(o=new Gn),s(g,w,n,r,o)}}if(!m)return!1;return o||(o=new Gn),function(e,t,n,r,s,o){var a=1&n,c=is(e),l=c.length,u=is(t),p=u.length;if(l!=p&&!a)return!1;var d=l;for(;d--;){var m=c[d];if(!(a?m in t:Me.call(t,m)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var g=!0;o.set(e,t),o.set(t,e);var v=a;for(;++d<l;){var y=e[m=c[d]],b=t[m];if(r)var x=a?r(b,y,m,t,e,o):r(y,b,m,e,t,o);if(!(x===i?y===b||s(y,b,n,r,o):x)){g=!1;break}v||(v="constructor"==m)}if(g&&!v){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return o.delete(e),o.delete(t),g}(e,t,n,r,s,o)}(e,t,n,r,Li,s))}function Ri(e,t,n,r){var s=n.length,o=s,a=!r;if(null==e)return!o;for(e=Ee(e);s--;){var c=n[s];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<o;){var l=(c=n[s])[0],u=e[l],p=c[1];if(a&&c[2]){if(u===i&&!(l in e))return!1}else{var d=new Gn;if(r)var m=r(u,p,l,e,t,d);if(!(m===i?Li(p,u,3,r,d):m))return!1}}return!0}function Pi(e){return!(!ea(e)||(t=e,De&&De in t))&&(Xo(e)?Be:ve).test(Ds(e));var t}function Mi(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?Ho(e)?Bi(e[0],e[1]):$i(e):dc(e)}function Ni(e){if(!ks(e))return Kt(e);var t=[];for(var n in Ee(e))Me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Di(e){if(!ea(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=ks(e),n=[];for(var i in e)("constructor"!=i||!t&&Me.call(e,i))&&n.push(i);return n}function Fi(e,t){return e<t}function zi(e,t){var i=-1,r=Vo(e)?n(e.length):[];return di(e,function(e,n,s){r[++i]=t(e,n,s)}),r}function $i(e){var t=us(e);return 1==t.length&&t[0][2]?Ts(t[0][0],t[0][1]):function(n){return n===e||Ri(n,e,t)}}function Bi(e,t){return xs(e)&&Ss(t)?Ts(Ns(e),t):function(n){var r=Ea(n,e);return r===i&&r===t?Ca(n,e):Li(t,r,3)}}function qi(e,t,n,r,s){e!==t&&yi(t,function(o,a){if(s||(s=new Gn),ea(o))!function(e,t,n,r,s,o,a){var c=Is(e,n),l=Is(t,n),u=a.get(l);if(u)return void ei(e,n,u);var p=o?o(c,l,n+"",e,t,a):i,d=p===i;if(d){var m=Ho(l),h=!m&&Yo(l),f=!m&&!h&&la(l);p=l,m||h||f?Ho(c)?p=c:Ko(c)?p=jr(c):h?(d=!1,p=kr(l,!0)):f?(d=!1,p=Tr(l,!0)):p=[]:ra(l)||Uo(l)?(p=c,Uo(c)?p=va(c):ea(c)&&!Xo(c)||(p=gs(l))):d=!1}d&&(a.set(l,p),s(p,l,r,o,a),a.delete(l));ei(e,n,p)}(e,t,a,n,qi,r,s);else{var c=r?r(Is(e,a),o,a+"",e,t,s):i;c===i&&(c=o),ei(e,a,c)}},La)}function Ui(e,t){var n=e.length;if(n)return ys(t+=t<0?n:0,n)?e[t]:i}function Hi(e,t,n){t=t.length?Pt(t,function(e){return Ho(e)?function(t){return ki(t,1===e.length?e[0]:e)}:e}):[ic];var i=-1;t=Pt(t,Zt(cs()));var r=zi(e,function(e,n,r){var s=Pt(t,function(t){return t(e)});return{criteria:s,index:++i,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,function(e,t){return function(e,t,n){var i=-1,r=e.criteria,s=t.criteria,o=r.length,a=n.length;for(;++i<o;){var c=Er(r[i],s[i]);if(c)return i>=a?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)})}function Wi(e,t,n){for(var i=-1,r=t.length,s={};++i<r;){var o=t[i],a=ki(e,o);n(a,o)&&Qi(s,br(o,e),a)}return s}function Vi(e,t,n,i){var r=i?Ut:qt,s=-1,o=t.length,a=e;for(e===t&&(t=jr(t)),n&&(a=Pt(e,Zt(n)));++s<o;)for(var c=0,l=t[s],u=n?n(l):l;(c=r(a,u,c,i))>-1;)a!==e&&Ge.call(a,c,1),Ge.call(e,c,1);return e}function Ki(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==s){var s=r;ys(r)?Ge.call(e,r,1):pr(e,r)}}return e}function Yi(e,t){return e+ft(wn()*(t-e+1))}function Gi(e,t){var n="";if(!e||t<1||t>m)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Ji(e,t){return As(Es(e,t,ic),e+"")}function Xi(e){return Xn($a(e))}function Zi(e,t){var n=$a(e);return Ps(n,ai(t,0,n.length))}function Qi(e,t,n,r){if(!ea(e))return e;for(var s=-1,o=(t=br(t,e)).length,a=o-1,c=e;null!=c&&++s<o;){var l=Ns(t[s]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(s!=a){var p=c[l];(u=r?r(p,l,c):i)===i&&(u=ea(p)?p:ys(t[s+1])?[]:{})}ti(c,l,u),c=c[l]}return e}var er=On?function(e,t){return On.set(e,t),e}:ic,tr=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:ic;function nr(e){return Ps($a(e))}function ir(e,t,i){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(i=i>s?s:i)<0&&(i+=s),s=t>i?0:i-t>>>0,t>>>=0;for(var o=n(s);++r<s;)o[r]=e[r+t];return o}function rr(e,t){var n;return di(e,function(e,i,r){return!(n=t(e,i,r))}),!!n}function sr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var s=i+r>>>1,o=e[s];null!==o&&!ca(o)&&(n?o<=t:o<t)?i=s+1:r=s}return r}return or(e,t,ic,n)}function or(e,t,n,r){var s=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,c=null===t,l=ca(t),u=t===i;s<o;){var p=ft((s+o)/2),d=n(e[p]),m=d!==i,h=null===d,f=d==d,g=ca(d);if(a)var v=r||f;else v=u?f&&(r||m):c?f&&m&&(r||!h):l?f&&m&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);v?s=p+1:o=p}return bn(o,4294967294)}function ar(e,t){for(var n=-1,i=e.length,r=0,s=[];++n<i;){var o=e[n],a=t?t(o):o;if(!n||!$o(a,c)){var c=a;s[r++]=0===o?0:o}}return s}function cr(e){return"number"==typeof e?e:ca(e)?h:+e}function lr(e){if("string"==typeof e)return e;if(Ho(e))return Pt(e,lr)+"";if(ca(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ur(e,t,n){var i=-1,r=Lt,s=e.length,o=!0,a=[],c=a;if(n)o=!1,r=Rt;else if(s>=200){var l=t?null:Gr(e);if(l)return pn(l);o=!1,r=en,c=new Yn}else c=t?[]:a;e:for(;++i<s;){var u=e[i],p=t?t(u):u;if(u=n||0!==u?u:0,o&&p==p){for(var d=c.length;d--;)if(c[d]===p)continue e;t&&c.push(p),a.push(u)}else r(c,p,n)||(c!==a&&c.push(p),a.push(u))}return a}function pr(e,t){return null==(e=Cs(e,t=br(t,e)))||delete e[Ns(Gs(t))]}function dr(e,t,n,i){return Qi(e,t,n(ki(e,t)),i)}function mr(e,t,n,i){for(var r=e.length,s=i?r:-1;(i?s--:++s<r)&&t(e[s],s,e););return n?ir(e,i?0:s,i?s+1:r):ir(e,i?s+1:0,i?r:s)}function hr(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Nt(t,function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))},n)}function fr(e,t,i){var r=e.length;if(r<2)return r?ur(e[0]):[];for(var s=-1,o=n(r);++s<r;)for(var a=e[s],c=-1;++c<r;)c!=s&&(o[s]=pi(o[s]||a,e[c],t,i));return ur(vi(o,1),t,i)}function gr(e,t,n){for(var r=-1,s=e.length,o=t.length,a={};++r<s;){var c=r<o?t[r]:i;n(a,e[r],c)}return a}function vr(e){return Ko(e)?e:[]}function yr(e){return"function"==typeof e?e:ic}function br(e,t){return Ho(e)?e:xs(e,t)?[e]:Ms(ya(e))}var xr=Ji;function _r(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ir(e,t,n)}var wr=it||function(e){return ht.clearTimeout(e)};function kr(e,t){if(t)return e.slice();var n=e.length,i=We?We(n):new e.constructor(n);return e.copy(i),i}function Sr(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Tr(e,t){var n=t?Sr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Er(e,t){if(e!==t){var n=e!==i,r=null===e,s=e==e,o=ca(e),a=t!==i,c=null===t,l=t==t,u=ca(t);if(!c&&!u&&!o&&e>t||o&&a&&l&&!c&&!u||r&&a&&l||!n&&l||!s)return 1;if(!r&&!o&&!u&&e<t||u&&n&&s&&!r&&!o||c&&n&&s||!a&&s||!l)return-1}return 0}function Cr(e,t,i,r){for(var s=-1,o=e.length,a=i.length,c=-1,l=t.length,u=yn(o-a,0),p=n(l+u),d=!r;++c<l;)p[c]=t[c];for(;++s<a;)(d||s<o)&&(p[i[s]]=e[s]);for(;u--;)p[c++]=e[s++];return p}function Ir(e,t,i,r){for(var s=-1,o=e.length,a=-1,c=i.length,l=-1,u=t.length,p=yn(o-c,0),d=n(p+u),m=!r;++s<p;)d[s]=e[s];for(var h=s;++l<u;)d[h+l]=t[l];for(;++a<c;)(m||s<o)&&(d[h+i[a]]=e[s++]);return d}function jr(e,t){var i=-1,r=e.length;for(t||(t=n(r));++i<r;)t[i]=e[i];return t}function Or(e,t,n,r){var s=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var c=t[o],l=r?r(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),s?si(n,c,l):ti(n,c,l)}return n}function Ar(e,t){return function(n,i){var r=Ho(n)?Ct:ii,s=t?t():{};return r(n,e,cs(i,2),s)}}function Lr(e){return Ji(function(t,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(s--,o):i,a&&bs(n[0],n[1],a)&&(o=s<3?i:o,s=1),t=Ee(t);++r<s;){var c=n[r];c&&e(t,c,r,o)}return t})}function Rr(e,t){return function(n,i){if(null==n)return n;if(!Vo(n))return e(n,i);for(var r=n.length,s=t?r:-1,o=Ee(n);(t?s--:++s<r)&&!1!==i(o[s],s,o););return n}}function Pr(e){return function(t,n,i){for(var r=-1,s=Ee(t),o=i(t),a=o.length;a--;){var c=o[e?a:++r];if(!1===n(s[c],c,s))break}return t}}function Mr(e){return function(t){var n=an(t=ya(t))?hn(t):i,r=n?n[0]:t.charAt(0),s=n?_r(n,1).join(""):t.slice(1);return r[e]()+s}}function Nr(e){return function(t){return Nt(Xa(Ua(t).replace(Qe,"")),e,"")}}function Dr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),i=e.apply(n,t);return ea(i)?i:n}}function Fr(e){return function(t,n,r){var s=Ee(t);if(!Vo(t)){var o=cs(n,3);t=Aa(t),n=function(e){return o(s[e],e,s)}}var a=e(t,n,r);return a>-1?s[o?t[a]:a]:i}}function zr(e){return ns(function(t){var n=t.length,s=n,o=Un.prototype.thru;for(e&&t.reverse();s--;){var a=t[s];if("function"!=typeof a)throw new je(r);if(o&&!c&&"wrapper"==os(a))var c=new Un([],!0)}for(s=c?s:n;++s<n;){var l=os(a=t[s]),u="wrapper"==l?ss(a):i;c=u&&_s(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[os(u[0])].apply(c,u[3]):1==a.length&&_s(a)?c[l]():c.thru(a)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&Ho(i))return c.plant(i).value();for(var r=0,s=n?t[r].apply(this,e):i;++r<n;)s=t[r].call(this,s);return s}})}function $r(e,t,r,s,o,a,c,l,p,d){var m=t&u,h=1&t,f=2&t,g=24&t,v=512&t,y=f?i:Dr(e);return function u(){for(var b=arguments.length,x=n(b),_=b;_--;)x[_]=arguments[_];if(g)var w=as(u),k=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(x,w);if(s&&(x=Cr(x,s,o,g)),a&&(x=Ir(x,a,c,g)),b-=k,g&&b<d){var S=un(x,w);return Kr(e,t,$r,u.placeholder,r,x,S,l,p,d-b)}var T=h?r:this,E=f?T[e]:e;return b=x.length,l?x=function(e,t){var n=e.length,r=bn(t.length,n),s=jr(e);for(;r--;){var o=t[r];e[r]=ys(o,n)?s[o]:i}return e}(x,l):v&&b>1&&x.reverse(),m&&p<b&&(x.length=p),this&&this!==ht&&this instanceof u&&(E=y||Dr(E)),E.apply(T,x)}}function Br(e,t){return function(n,i){return function(e,t,n,i){return xi(e,function(e,r,s){t(i,n(e),r,s)}),i}(n,e,t(i),{})}}function qr(e,t){return function(n,r){var s;if(n===i&&r===i)return t;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=lr(n),r=lr(r)):(n=cr(n),r=cr(r)),s=e(n,r)}return s}}function Ur(e){return ns(function(t){return t=Pt(t,Zt(cs())),Ji(function(n){var i=this;return e(t,function(e){return Et(e,i,n)})})})}function Hr(e,t){var n=(t=t===i?" ":lr(t)).length;if(n<2)return n?Gi(t,e):t;var r=Gi(t,mt(e/mn(t)));return an(t)?_r(hn(r),0,e).join(""):r.slice(0,e)}function Wr(e){return function(t,r,s){return s&&"number"!=typeof s&&bs(t,r,s)&&(r=s=i),t=ma(t),r===i?(r=t,t=0):r=ma(r),function(e,t,i,r){for(var s=-1,o=yn(mt((t-e)/(i||1)),0),a=n(o);o--;)a[r?o:++s]=e,e+=i;return a}(t,r,s=s===i?t<r?1:-1:ma(s),e)}}function Vr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ga(t),n=ga(n)),e(t,n)}}function Kr(e,t,n,r,s,o,a,u,p,d){var m=8&t;t|=m?c:l,4&(t&=~(m?l:c))||(t&=-4);var h=[e,t,s,m?o:i,m?a:i,m?i:o,m?i:a,u,p,d],f=n.apply(i,h);return _s(e)&&js(f,h),f.placeholder=r,Ls(f,e,t)}function Yr(e){var t=Te[e];return function(e,n){if(e=ga(e),(n=null==n?0:bn(ha(n),292))&&bt(e)){var i=(ya(e)+"e").split("e");return+((i=(ya(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Gr=Cn&&1/pn(new Cn([,-0]))[1]==d?function(e){return new Cn(e)}:cc;function Jr(e){return function(t){var n=hs(t);return n==S?cn(t):n==j?dn(t):function(e,t){return Pt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Xr(e,t,s,d,m,h,f,g){var v=2&t;if(!v&&"function"!=typeof e)throw new je(r);var y=d?d.length:0;if(y||(t&=-97,d=m=i),f=f===i?f:yn(ha(f),0),g=g===i?g:ha(g),y-=m?m.length:0,t&l){var b=d,x=m;d=m=i}var _=v?i:ss(e),w=[e,t,s,d,m,b,x,h,f,g];if(_&&function(e,t){var n=e[1],i=t[1],r=n|i,s=r<131,a=i==u&&8==n||i==u&&n==p&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!s&&!a)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Cr(l,c,t[4]):c,e[4]=l?un(e[3],o):t[4]}(c=t[5])&&(l=e[5],e[5]=l?Ir(l,c,t[6]):c,e[6]=l?un(e[5],o):t[6]);(c=t[7])&&(e[7]=c);i&u&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(w,_),e=w[0],t=w[1],s=w[2],d=w[3],m=w[4],!(g=w[9]=w[9]===i?v?0:e.length:yn(w[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==a?function(e,t,r){var s=Dr(e);return function o(){for(var a=arguments.length,c=n(a),l=a,u=as(o);l--;)c[l]=arguments[l];var p=a<3&&c[0]!==u&&c[a-1]!==u?[]:un(c,u);return(a-=p.length)<r?Kr(e,t,$r,o.placeholder,i,c,p,i,i,r-a):Et(this&&this!==ht&&this instanceof o?s:e,this,c)}}(e,t,g):t!=c&&33!=t||m.length?$r.apply(i,w):function(e,t,i,r){var s=1&t,o=Dr(e);return function t(){for(var a=-1,c=arguments.length,l=-1,u=r.length,p=n(u+c),d=this&&this!==ht&&this instanceof t?o:e;++l<u;)p[l]=r[l];for(;c--;)p[l++]=arguments[++a];return Et(d,s?i:this,p)}}(e,t,s,d);else var k=function(e,t,n){var i=1&t,r=Dr(e);return function t(){return(this&&this!==ht&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,s);return Ls((_?er:js)(k,w),e,t)}function Zr(e,t,n,r){return e===i||$o(e,Le[n])&&!Me.call(r,n)?t:e}function Qr(e,t,n,r,s,o){return ea(e)&&ea(t)&&(o.set(t,e),qi(e,t,i,Qr,o),o.delete(t)),e}function es(e){return ra(e)?i:e}function ts(e,t,n,r,s,o){var a=1&n,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var u=o.get(e),p=o.get(t);if(u&&p)return u==t&&p==e;var d=-1,m=!0,h=2&n?new Yn:i;for(o.set(e,t),o.set(t,e);++d<c;){var f=e[d],g=t[d];if(r)var v=a?r(g,f,d,t,e,o):r(f,g,d,e,t,o);if(v!==i){if(v)continue;m=!1;break}if(h){if(!Ft(t,function(e,t){if(!en(h,t)&&(f===e||s(f,e,n,r,o)))return h.push(t)})){m=!1;break}}else if(f!==g&&!s(f,g,n,r,o)){m=!1;break}}return o.delete(e),o.delete(t),m}function ns(e){return As(Es(e,i,Hs),e+"")}function is(e){return Si(e,Aa,ds)}function rs(e){return Si(e,La,ms)}var ss=On?function(e){return On.get(e)}:cc;function os(e){for(var t=e.name+"",n=An[t],i=Me.call(An,t)?n.length:0;i--;){var r=n[i],s=r.func;if(null==s||s==e)return r.name}return t}function as(e){return(Me.call($n,"placeholder")?$n:e).placeholder}function cs(){var e=$n.iteratee||rc;return e=e===rc?Mi:e,arguments.length?e(arguments[0],arguments[1]):e}function ls(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function us(e){for(var t=Aa(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,Ss(r)]}return t}function ps(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Pi(n)?n:i}var ds=gt?function(e){return null==e?[]:(e=Ee(e),At(gt(e),function(t){return Ye.call(e,t)}))}:fc,ms=gt?function(e){for(var t=[];e;)Mt(t,ds(e)),e=Ve(e);return t}:fc,hs=Ti;function fs(e,t,n){for(var i=-1,r=(t=br(t,e)).length,s=!1;++i<r;){var o=Ns(t[i]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++i!=r?s:!!(r=null==e?0:e.length)&&Qo(r)&&ys(o,r)&&(Ho(e)||Uo(e))}function gs(e){return"function"!=typeof e.constructor||ks(e)?{}:Bn(Ve(e))}function vs(e){return Ho(e)||Uo(e)||!!(Je&&e&&e[Je])}function ys(e,t){var n=typeof e;return!!(t=null==t?m:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function bs(e,t,n){if(!ea(n))return!1;var i=typeof t;return!!("number"==i?Vo(n)&&ys(t,n.length):"string"==i&&t in n)&&$o(n[t],e)}function xs(e,t){if(Ho(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ca(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ee(t))}function _s(e){var t=os(e),n=$n[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var i=ss(n);return!!i&&e===i[0]}(Sn&&hs(new Sn(new ArrayBuffer(1)))!=P||Tn&&hs(new Tn)!=S||En&&hs(En.resolve())!=C||Cn&&hs(new Cn)!=j||In&&hs(new In)!=L)&&(hs=function(e){var t=Ti(e),n=t==E?e.constructor:i,r=n?Ds(n):"";if(r)switch(r){case Ln:return P;case Rn:return S;case Pn:return C;case Mn:return j;case Nn:return L}return t});var ws=Re?Xo:gc;function ks(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Ss(e){return e==e&&!ea(e)}function Ts(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ee(n)))}}function Es(e,t,r){return t=yn(t===i?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=yn(i.length-t,0),a=n(o);++s<o;)a[s]=i[t+s];s=-1;for(var c=n(t+1);++s<t;)c[s]=i[s];return c[t]=r(a),Et(e,this,c)}}function Cs(e,t){return t.length<2?e:ki(e,ir(t,0,-1))}function Is(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var js=Rs(er),Os=dt||function(e,t){return ht.setTimeout(e,t)},As=Rs(tr);function Ls(e,t,n){var i=t+"";return As(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return It(g,function(n){var i="_."+n[0];t&n[1]&&!Lt(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(i),n)))}function Rs(e){var t=0,n=0;return function(){var r=xn(),s=16-(r-n);if(n=r,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ps(e,t){var n=-1,r=e.length,s=r-1;for(t=t===i?r:t;++n<t;){var o=Yi(n,s),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var Ms=function(e){var t=Po(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,function(e,n,i,r){t.push(i?r.replace(de,"$1"):n||e)}),t});function Ns(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ds(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fs(e){if(e instanceof Hn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=jr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zs=Ji(function(e,t){return Ko(e)?pi(e,vi(t,1,Ko,!0)):[]}),$s=Ji(function(e,t){var n=Gs(t);return Ko(n)&&(n=i),Ko(e)?pi(e,vi(t,1,Ko,!0),cs(n,2)):[]}),Bs=Ji(function(e,t){var n=Gs(t);return Ko(n)&&(n=i),Ko(e)?pi(e,vi(t,1,Ko,!0),i,n):[]});function qs(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ha(n);return r<0&&(r=yn(i+r,0)),Bt(e,cs(t,3),r)}function Us(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var s=r-1;return n!==i&&(s=ha(n),s=n<0?yn(r+s,0):bn(s,r-1)),Bt(e,cs(t,3),s,!0)}function Hs(e){return(null==e?0:e.length)?vi(e,1):[]}function Ws(e){return e&&e.length?e[0]:i}var Vs=Ji(function(e){var t=Pt(e,vr);return t.length&&t[0]===e[0]?ji(t):[]}),Ks=Ji(function(e){var t=Gs(e),n=Pt(e,vr);return t===Gs(n)?t=i:n.pop(),n.length&&n[0]===e[0]?ji(n,cs(t,2)):[]}),Ys=Ji(function(e){var t=Gs(e),n=Pt(e,vr);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?ji(n,i,t):[]});function Gs(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Js=Ji(Xs);function Xs(e,t){return e&&e.length&&t&&t.length?Vi(e,t):e}var Zs=ns(function(e,t){var n=null==e?0:e.length,i=oi(e,t);return Ki(e,Pt(t,function(e){return ys(e,n)?+e:e}).sort(Er)),i});function Qs(e){return null==e?e:kn.call(e)}var eo=Ji(function(e){return ur(vi(e,1,Ko,!0))}),to=Ji(function(e){var t=Gs(e);return Ko(t)&&(t=i),ur(vi(e,1,Ko,!0),cs(t,2))}),no=Ji(function(e){var t=Gs(e);return t="function"==typeof t?t:i,ur(vi(e,1,Ko,!0),i,t)});function io(e){if(!e||!e.length)return[];var t=0;return e=At(e,function(e){if(Ko(e))return t=yn(e.length,t),!0}),Jt(t,function(t){return Pt(e,Vt(t))})}function ro(e,t){if(!e||!e.length)return[];var n=io(e);return null==t?n:Pt(n,function(e){return Et(t,i,e)})}var so=Ji(function(e,t){return Ko(e)?pi(e,t):[]}),oo=Ji(function(e){return fr(At(e,Ko))}),ao=Ji(function(e){var t=Gs(e);return Ko(t)&&(t=i),fr(At(e,Ko),cs(t,2))}),co=Ji(function(e){var t=Gs(e);return t="function"==typeof t?t:i,fr(At(e,Ko),i,t)}),lo=Ji(io);var uo=Ji(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ro(e,n)});function po(e){var t=$n(e);return t.__chain__=!0,t}function mo(e,t){return t(e)}var ho=ns(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,s=function(t){return oi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&ys(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:mo,args:[s],thisArg:i}),new Un(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(s)});var fo=Ar(function(e,t,n){Me.call(e,n)?++e[n]:si(e,n,1)});var go=Fr(qs),vo=Fr(Us);function yo(e,t){return(Ho(e)?It:di)(e,cs(t,3))}function bo(e,t){return(Ho(e)?jt:mi)(e,cs(t,3))}var xo=Ar(function(e,t,n){Me.call(e,n)?e[n].push(t):si(e,n,[t])});var _o=Ji(function(e,t,i){var r=-1,s="function"==typeof t,o=Vo(e)?n(e.length):[];return di(e,function(e){o[++r]=s?Et(t,e,i):Oi(e,t,i)}),o}),wo=Ar(function(e,t,n){si(e,n,t)});function ko(e,t){return(Ho(e)?Pt:zi)(e,cs(t,3))}var So=Ar(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var To=Ji(function(e,t){if(null==e)return[];var n=t.length;return n>1&&bs(e,t[0],t[1])?t=[]:n>2&&bs(t[0],t[1],t[2])&&(t=[t[0]]),Hi(e,vi(t,1),[])}),Eo=lt||function(){return ht.Date.now()};function Co(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Xr(e,u,i,i,i,i,t)}function Io(e,t){var n;if("function"!=typeof t)throw new je(r);return e=ha(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var jo=Ji(function(e,t,n){var i=1;if(n.length){var r=un(n,as(jo));i|=c}return Xr(e,i,t,n,r)}),Oo=Ji(function(e,t,n){var i=3;if(n.length){var r=un(n,as(Oo));i|=c}return Xr(t,i,e,n,r)});function Ao(e,t,n){var s,o,a,c,l,u,p=0,d=!1,m=!1,h=!0;if("function"!=typeof e)throw new je(r);function f(t){var n=s,r=o;return s=o=i,p=t,c=e.apply(r,n)}function g(e){var n=e-u;return u===i||n>=t||n<0||m&&e-p>=a}function v(){var e=Eo();if(g(e))return y(e);l=Os(v,function(e){var n=t-(e-u);return m?bn(n,a-(e-p)):n}(e))}function y(e){return l=i,h&&s?f(e):(s=o=i,c)}function b(){var e=Eo(),n=g(e);if(s=arguments,o=this,u=e,n){if(l===i)return function(e){return p=e,l=Os(v,t),d?f(e):c}(u);if(m)return wr(l),l=Os(v,t),f(u)}return l===i&&(l=Os(v,t)),c}return t=ga(t)||0,ea(n)&&(d=!!n.leading,a=(m="maxWait"in n)?yn(ga(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==i&&wr(l),p=0,s=u=o=l=i},b.flush=function(){return l===i?c:y(Eo())},b}var Lo=Ji(function(e,t){return ui(e,1,t)}),Ro=Ji(function(e,t,n){return ui(e,ga(t)||0,n)});function Po(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new je(r);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(Po.Cache||Kn),n}function Mo(e){if("function"!=typeof e)throw new je(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Po.Cache=Kn;var No=xr(function(e,t){var n=(t=1==t.length&&Ho(t[0])?Pt(t[0],Zt(cs())):Pt(vi(t,1),Zt(cs()))).length;return Ji(function(i){for(var r=-1,s=bn(i.length,n);++r<s;)i[r]=t[r].call(this,i[r]);return Et(e,this,i)})}),Do=Ji(function(e,t){var n=un(t,as(Do));return Xr(e,c,i,t,n)}),Fo=Ji(function(e,t){var n=un(t,as(Fo));return Xr(e,l,i,t,n)}),zo=ns(function(e,t){return Xr(e,p,i,i,i,t)});function $o(e,t){return e===t||e!=e&&t!=t}var Bo=Vr(Ei),qo=Vr(function(e,t){return e>=t}),Uo=Ai(function(){return arguments}())?Ai:function(e){return ta(e)&&Me.call(e,"callee")&&!Ye.call(e,"callee")},Ho=n.isArray,Wo=xt?Zt(xt):function(e){return ta(e)&&Ti(e)==R};function Vo(e){return null!=e&&Qo(e.length)&&!Xo(e)}function Ko(e){return ta(e)&&Vo(e)}var Yo=yt||gc,Go=_t?Zt(_t):function(e){return ta(e)&&Ti(e)==x};function Jo(e){if(!ta(e))return!1;var t=Ti(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Xo(e){if(!ea(e))return!1;var t=Ti(e);return t==w||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zo(e){return"number"==typeof e&&e==ha(e)}function Qo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=m}function ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ta(e){return null!=e&&"object"==typeof e}var na=wt?Zt(wt):function(e){return ta(e)&&hs(e)==S};function ia(e){return"number"==typeof e||ta(e)&&Ti(e)==T}function ra(e){if(!ta(e)||Ti(e)!=E)return!1;var t=Ve(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==ze}var sa=kt?Zt(kt):function(e){return ta(e)&&Ti(e)==I};var oa=St?Zt(St):function(e){return ta(e)&&hs(e)==j};function aa(e){return"string"==typeof e||!Ho(e)&&ta(e)&&Ti(e)==O}function ca(e){return"symbol"==typeof e||ta(e)&&Ti(e)==A}var la=Tt?Zt(Tt):function(e){return ta(e)&&Qo(e.length)&&!!at[Ti(e)]};var ua=Vr(Fi),pa=Vr(function(e,t){return e<=t});function da(e){if(!e)return[];if(Vo(e))return aa(e)?hn(e):jr(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=hs(e);return(t==S?cn:t==j?pn:$a)(e)}function ma(e){return e?(e=ga(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ha(e){var t=ma(e),n=t%1;return t==t?n?t-n:t:0}function fa(e){return e?ai(ha(e),0,f):0}function ga(e){if("number"==typeof e)return e;if(ca(e))return h;if(ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ge.test(e);return n||ye.test(e)?pt(e.slice(2),n?2:8):fe.test(e)?h:+e}function va(e){return Or(e,La(e))}function ya(e){return null==e?"":lr(e)}var ba=Lr(function(e,t){if(ks(t)||Vo(t))Or(t,Aa(t),e);else for(var n in t)Me.call(t,n)&&ti(e,n,t[n])}),xa=Lr(function(e,t){Or(t,La(t),e)}),_a=Lr(function(e,t,n,i){Or(t,La(t),e,i)}),wa=Lr(function(e,t,n,i){Or(t,Aa(t),e,i)}),ka=ns(oi);var Sa=Ji(function(e,t){e=Ee(e);var n=-1,r=t.length,s=r>2?t[2]:i;for(s&&bs(t[0],t[1],s)&&(r=1);++n<r;)for(var o=t[n],a=La(o),c=-1,l=a.length;++c<l;){var u=a[c],p=e[u];(p===i||$o(p,Le[u])&&!Me.call(e,u))&&(e[u]=o[u])}return e}),Ta=Ji(function(e){return e.push(i,Qr),Et(Pa,i,e)});function Ea(e,t,n){var r=null==e?i:ki(e,t);return r===i?n:r}function Ca(e,t){return null!=e&&fs(e,t,Ii)}var Ia=Br(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n},ec(ic)),ja=Br(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Me.call(e,t)?e[t].push(n):e[t]=[n]},cs),Oa=Ji(Oi);function Aa(e){return Vo(e)?Jn(e):Ni(e)}function La(e){return Vo(e)?Jn(e,!0):Di(e)}var Ra=Lr(function(e,t,n){qi(e,t,n)}),Pa=Lr(function(e,t,n,i){qi(e,t,n,i)}),Ma=ns(function(e,t){var n={};if(null==e)return n;var i=!1;t=Pt(t,function(t){return t=br(t,e),i||(i=t.length>1),t}),Or(e,rs(e),n),i&&(n=ci(n,7,es));for(var r=t.length;r--;)pr(n,t[r]);return n});var Na=ns(function(e,t){return null==e?{}:function(e,t){return Wi(e,t,function(t,n){return Ca(e,n)})}(e,t)});function Da(e,t){if(null==e)return{};var n=Pt(rs(e),function(e){return[e]});return t=cs(t),Wi(e,n,function(e,n){return t(e,n[0])})}var Fa=Jr(Aa),za=Jr(La);function $a(e){return null==e?[]:Qt(e,Aa(e))}var Ba=Nr(function(e,t,n){return t=t.toLowerCase(),e+(n?qa(t):t)});function qa(e){return Ja(ya(e).toLowerCase())}function Ua(e){return(e=ya(e))&&e.replace(xe,rn).replace(et,"")}var Ha=Nr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Wa=Nr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Va=Mr("toLowerCase");var Ka=Nr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Ya=Nr(function(e,t,n){return e+(n?" ":"")+Ja(t)});var Ga=Nr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ja=Mr("toUpperCase");function Xa(e,t,n){return e=ya(e),(t=n?i:t)===i?function(e){return rt.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Za=Ji(function(e,t){try{return Et(e,i,t)}catch(e){return Jo(e)?e:new ke(e)}}),Qa=ns(function(e,t){return It(t,function(t){t=Ns(t),si(e,t,jo(e[t],e))}),e});function ec(e){return function(){return e}}var tc=zr(),nc=zr(!0);function ic(e){return e}function rc(e){return Mi("function"==typeof e?e:ci(e,1))}var sc=Ji(function(e,t){return function(n){return Oi(n,e,t)}}),oc=Ji(function(e,t){return function(n){return Oi(e,n,t)}});function ac(e,t,n){var i=Aa(t),r=wi(t,i);null!=n||ea(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=wi(t,Aa(t)));var s=!(ea(n)&&"chain"in n&&!n.chain),o=Xo(e);return It(r,function(n){var i=t[n];e[n]=i,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__);return(n.__actions__=jr(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Mt([this.value()],arguments))})}),e}function cc(){}var lc=Ur(Pt),uc=Ur(Ot),pc=Ur(Ft);function dc(e){return xs(e)?Vt(Ns(e)):function(e){return function(t){return ki(t,e)}}(e)}var mc=Wr(),hc=Wr(!0);function fc(){return[]}function gc(){return!1}var vc=qr(function(e,t){return e+t},0),yc=Yr("ceil"),bc=qr(function(e,t){return e/t},1),xc=Yr("floor");var _c,wc=qr(function(e,t){return e*t},1),kc=Yr("round"),Sc=qr(function(e,t){return e-t},0);return $n.after=function(e,t){if("function"!=typeof t)throw new je(r);return e=ha(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=Co,$n.assign=ba,$n.assignIn=xa,$n.assignInWith=_a,$n.assignWith=wa,$n.at=ka,$n.before=Io,$n.bind=jo,$n.bindAll=Qa,$n.bindKey=Oo,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ho(e)?e:[e]},$n.chain=po,$n.chunk=function(e,t,r){t=(r?bs(e,t,r):t===i)?1:yn(ha(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,c=n(mt(s/t));o<s;)c[a++]=ir(e,o,o+=t);return c},$n.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var s=e[t];s&&(r[i++]=s)}return r},$n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Mt(Ho(i)?jr(i):[i],vi(t,1))},$n.cond=function(e){var t=null==e?0:e.length,n=cs();return e=t?Pt(e,function(e){if("function"!=typeof e[1])throw new je(r);return[n(e[0]),e[1]]}):[],Ji(function(n){for(var i=-1;++i<t;){var r=e[i];if(Et(r[0],this,n))return Et(r[1],this,n)}})},$n.conforms=function(e){return function(e){var t=Aa(e);return function(n){return li(n,e,t)}}(ci(e,1))},$n.constant=ec,$n.countBy=fo,$n.create=function(e,t){var n=Bn(e);return null==t?n:ri(n,t)},$n.curry=function e(t,n,r){var s=Xr(t,8,i,i,i,i,i,n=r?i:n);return s.placeholder=e.placeholder,s},$n.curryRight=function e(t,n,r){var s=Xr(t,a,i,i,i,i,i,n=r?i:n);return s.placeholder=e.placeholder,s},$n.debounce=Ao,$n.defaults=Sa,$n.defaultsDeep=Ta,$n.defer=Lo,$n.delay=Ro,$n.difference=zs,$n.differenceBy=$s,$n.differenceWith=Bs,$n.drop=function(e,t,n){var r=null==e?0:e.length;return r?ir(e,(t=n||t===i?1:ha(t))<0?0:t,r):[]},$n.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ir(e,0,(t=r-(t=n||t===i?1:ha(t)))<0?0:t):[]},$n.dropRightWhile=function(e,t){return e&&e.length?mr(e,cs(t,3),!0,!0):[]},$n.dropWhile=function(e,t){return e&&e.length?mr(e,cs(t,3),!0):[]},$n.fill=function(e,t,n,r){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&bs(e,t,n)&&(n=0,r=s),function(e,t,n,r){var s=e.length;for((n=ha(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:ha(r))<0&&(r+=s),r=n>r?0:fa(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},$n.filter=function(e,t){return(Ho(e)?At:gi)(e,cs(t,3))},$n.flatMap=function(e,t){return vi(ko(e,t),1)},$n.flatMapDeep=function(e,t){return vi(ko(e,t),d)},$n.flatMapDepth=function(e,t,n){return n=n===i?1:ha(n),vi(ko(e,t),n)},$n.flatten=Hs,$n.flattenDeep=function(e){return(null==e?0:e.length)?vi(e,d):[]},$n.flattenDepth=function(e,t){return(null==e?0:e.length)?vi(e,t=t===i?1:ha(t)):[]},$n.flip=function(e){return Xr(e,512)},$n.flow=tc,$n.flowRight=nc,$n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},$n.functions=function(e){return null==e?[]:wi(e,Aa(e))},$n.functionsIn=function(e){return null==e?[]:wi(e,La(e))},$n.groupBy=xo,$n.initial=function(e){return(null==e?0:e.length)?ir(e,0,-1):[]},$n.intersection=Vs,$n.intersectionBy=Ks,$n.intersectionWith=Ys,$n.invert=Ia,$n.invertBy=ja,$n.invokeMap=_o,$n.iteratee=rc,$n.keyBy=wo,$n.keys=Aa,$n.keysIn=La,$n.map=ko,$n.mapKeys=function(e,t){var n={};return t=cs(t,3),xi(e,function(e,i,r){si(n,t(e,i,r),e)}),n},$n.mapValues=function(e,t){var n={};return t=cs(t,3),xi(e,function(e,i,r){si(n,i,t(e,i,r))}),n},$n.matches=function(e){return $i(ci(e,1))},$n.matchesProperty=function(e,t){return Bi(e,ci(t,1))},$n.memoize=Po,$n.merge=Ra,$n.mergeWith=Pa,$n.method=sc,$n.methodOf=oc,$n.mixin=ac,$n.negate=Mo,$n.nthArg=function(e){return e=ha(e),Ji(function(t){return Ui(t,e)})},$n.omit=Ma,$n.omitBy=function(e,t){return Da(e,Mo(cs(t)))},$n.once=function(e){return Io(2,e)},$n.orderBy=function(e,t,n,r){return null==e?[]:(Ho(t)||(t=null==t?[]:[t]),Ho(n=r?i:n)||(n=null==n?[]:[n]),Hi(e,t,n))},$n.over=lc,$n.overArgs=No,$n.overEvery=uc,$n.overSome=pc,$n.partial=Do,$n.partialRight=Fo,$n.partition=So,$n.pick=Na,$n.pickBy=Da,$n.property=dc,$n.propertyOf=function(e){return function(t){return null==e?i:ki(e,t)}},$n.pull=Js,$n.pullAll=Xs,$n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vi(e,t,cs(n,2)):e},$n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vi(e,t,i,n):e},$n.pullAt=Zs,$n.range=mc,$n.rangeRight=hc,$n.rearg=zo,$n.reject=function(e,t){return(Ho(e)?At:gi)(e,Mo(cs(t,3)))},$n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],s=e.length;for(t=cs(t,3);++i<s;){var o=e[i];t(o,i,e)&&(n.push(o),r.push(i))}return Ki(e,r),n},$n.rest=function(e,t){if("function"!=typeof e)throw new je(r);return Ji(e,t=t===i?t:ha(t))},$n.reverse=Qs,$n.sampleSize=function(e,t,n){return t=(n?bs(e,t,n):t===i)?1:ha(t),(Ho(e)?Zn:Zi)(e,t)},$n.set=function(e,t,n){return null==e?e:Qi(e,t,n)},$n.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Qi(e,t,n,r)},$n.shuffle=function(e){return(Ho(e)?Qn:nr)(e)},$n.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bs(e,t,n)?(t=0,n=r):(t=null==t?0:ha(t),n=n===i?r:ha(n)),ir(e,t,n)):[]},$n.sortBy=To,$n.sortedUniq=function(e){return e&&e.length?ar(e):[]},$n.sortedUniqBy=function(e,t){return e&&e.length?ar(e,cs(t,2)):[]},$n.split=function(e,t,n){return n&&"number"!=typeof n&&bs(e,t,n)&&(t=n=i),(n=n===i?f:n>>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=lr(t))&&an(e)?_r(hn(e),0,n):e.split(t,n):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new je(r);return t=null==t?0:yn(ha(t),0),Ji(function(n){var i=n[t],r=_r(n,0,t);return i&&Mt(r,i),Et(e,this,r)})},$n.tail=function(e){var t=null==e?0:e.length;return t?ir(e,1,t):[]},$n.take=function(e,t,n){return e&&e.length?ir(e,0,(t=n||t===i?1:ha(t))<0?0:t):[]},$n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ir(e,(t=r-(t=n||t===i?1:ha(t)))<0?0:t,r):[]},$n.takeRightWhile=function(e,t){return e&&e.length?mr(e,cs(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?mr(e,cs(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new je(r);return ea(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),Ao(e,t,{leading:i,maxWait:t,trailing:s})},$n.thru=mo,$n.toArray=da,$n.toPairs=Fa,$n.toPairsIn=za,$n.toPath=function(e){return Ho(e)?Pt(e,Ns):ca(e)?[e]:jr(Ms(ya(e)))},$n.toPlainObject=va,$n.transform=function(e,t,n){var i=Ho(e),r=i||Yo(e)||la(e);if(t=cs(t,4),null==n){var s=e&&e.constructor;n=r?i?new s:[]:ea(e)&&Xo(s)?Bn(Ve(e)):{}}return(r?It:xi)(e,function(e,i,r){return t(n,e,i,r)}),n},$n.unary=function(e){return Co(e,1)},$n.union=eo,$n.unionBy=to,$n.unionWith=no,$n.uniq=function(e){return e&&e.length?ur(e):[]},$n.uniqBy=function(e,t){return e&&e.length?ur(e,cs(t,2)):[]},$n.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ur(e,i,t):[]},$n.unset=function(e,t){return null==e||pr(e,t)},$n.unzip=io,$n.unzipWith=ro,$n.update=function(e,t,n){return null==e?e:dr(e,t,yr(n))},$n.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:dr(e,t,yr(n),r)},$n.values=$a,$n.valuesIn=function(e){return null==e?[]:Qt(e,La(e))},$n.without=so,$n.words=Xa,$n.wrap=function(e,t){return Do(yr(t),e)},$n.xor=oo,$n.xorBy=ao,$n.xorWith=co,$n.zip=lo,$n.zipObject=function(e,t){return gr(e||[],t||[],ti)},$n.zipObjectDeep=function(e,t){return gr(e||[],t||[],Qi)},$n.zipWith=uo,$n.entries=Fa,$n.entriesIn=za,$n.extend=xa,$n.extendWith=_a,ac($n,$n),$n.add=vc,$n.attempt=Za,$n.camelCase=Ba,$n.capitalize=qa,$n.ceil=yc,$n.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ga(n))==n?n:0),t!==i&&(t=(t=ga(t))==t?t:0),ai(ga(e),t,n)},$n.clone=function(e){return ci(e,4)},$n.cloneDeep=function(e){return ci(e,5)},$n.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:i)},$n.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:i)},$n.conformsTo=function(e,t){return null==t||li(e,t,Aa(t))},$n.deburr=Ua,$n.defaultTo=function(e,t){return null==e||e!=e?t:e},$n.divide=bc,$n.endsWith=function(e,t,n){e=ya(e),t=lr(t);var r=e.length,s=n=n===i?r:ai(ha(n),0,r);return(n-=t.length)>=0&&e.slice(n,s)==t},$n.eq=$o,$n.escape=function(e){return(e=ya(e))&&J.test(e)?e.replace(Y,sn):e},$n.escapeRegExp=function(e){return(e=ya(e))&&re.test(e)?e.replace(ie,"\\$&"):e},$n.every=function(e,t,n){var r=Ho(e)?Ot:hi;return n&&bs(e,t,n)&&(t=i),r(e,cs(t,3))},$n.find=go,$n.findIndex=qs,$n.findKey=function(e,t){return $t(e,cs(t,3),xi)},$n.findLast=vo,$n.findLastIndex=Us,$n.findLastKey=function(e,t){return $t(e,cs(t,3),_i)},$n.floor=xc,$n.forEach=yo,$n.forEachRight=bo,$n.forIn=function(e,t){return null==e?e:yi(e,cs(t,3),La)},$n.forInRight=function(e,t){return null==e?e:bi(e,cs(t,3),La)},$n.forOwn=function(e,t){return e&&xi(e,cs(t,3))},$n.forOwnRight=function(e,t){return e&&_i(e,cs(t,3))},$n.get=Ea,$n.gt=Bo,$n.gte=qo,$n.has=function(e,t){return null!=e&&fs(e,t,Ci)},$n.hasIn=Ca,$n.head=Ws,$n.identity=ic,$n.includes=function(e,t,n,i){e=Vo(e)?e:$a(e),n=n&&!i?ha(n):0;var r=e.length;return n<0&&(n=yn(r+n,0)),aa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&qt(e,t,n)>-1},$n.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ha(n);return r<0&&(r=yn(i+r,0)),qt(e,t,r)},$n.inRange=function(e,t,n){return t=ma(t),n===i?(n=t,t=0):n=ma(n),function(e,t,n){return e>=bn(t,n)&&e<yn(t,n)}(e=ga(e),t,n)},$n.invoke=Oa,$n.isArguments=Uo,$n.isArray=Ho,$n.isArrayBuffer=Wo,$n.isArrayLike=Vo,$n.isArrayLikeObject=Ko,$n.isBoolean=function(e){return!0===e||!1===e||ta(e)&&Ti(e)==b},$n.isBuffer=Yo,$n.isDate=Go,$n.isElement=function(e){return ta(e)&&1===e.nodeType&&!ra(e)},$n.isEmpty=function(e){if(null==e)return!0;if(Vo(e)&&(Ho(e)||"string"==typeof e||"function"==typeof e.splice||Yo(e)||la(e)||Uo(e)))return!e.length;var t=hs(e);if(t==S||t==j)return!e.size;if(ks(e))return!Ni(e).length;for(var n in e)if(Me.call(e,n))return!1;return!0},$n.isEqual=function(e,t){return Li(e,t)},$n.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Li(e,t,i,n):!!r},$n.isError=Jo,$n.isFinite=function(e){return"number"==typeof e&&bt(e)},$n.isFunction=Xo,$n.isInteger=Zo,$n.isLength=Qo,$n.isMap=na,$n.isMatch=function(e,t){return e===t||Ri(e,t,us(t))},$n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Ri(e,t,us(t),n)},$n.isNaN=function(e){return ia(e)&&e!=+e},$n.isNative=function(e){if(ws(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pi(e)},$n.isNil=function(e){return null==e},$n.isNull=function(e){return null===e},$n.isNumber=ia,$n.isObject=ea,$n.isObjectLike=ta,$n.isPlainObject=ra,$n.isRegExp=sa,$n.isSafeInteger=function(e){return Zo(e)&&e>=-9007199254740991&&e<=m},$n.isSet=oa,$n.isString=aa,$n.isSymbol=ca,$n.isTypedArray=la,$n.isUndefined=function(e){return e===i},$n.isWeakMap=function(e){return ta(e)&&hs(e)==L},$n.isWeakSet=function(e){return ta(e)&&"[object WeakSet]"==Ti(e)},$n.join=function(e,t){return null==e?"":zt.call(e,t)},$n.kebabCase=Ha,$n.last=Gs,$n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=ha(n))<0?yn(r+s,0):bn(s,r-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,s):Bt(e,Ht,s,!0)},$n.lowerCase=Wa,$n.lowerFirst=Va,$n.lt=ua,$n.lte=pa,$n.max=function(e){return e&&e.length?fi(e,ic,Ei):i},$n.maxBy=function(e,t){return e&&e.length?fi(e,cs(t,2),Ei):i},$n.mean=function(e){return Wt(e,ic)},$n.meanBy=function(e,t){return Wt(e,cs(t,2))},$n.min=function(e){return e&&e.length?fi(e,ic,Fi):i},$n.minBy=function(e,t){return e&&e.length?fi(e,cs(t,2),Fi):i},$n.stubArray=fc,$n.stubFalse=gc,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=wc,$n.nth=function(e,t){return e&&e.length?Ui(e,ha(t)):i},$n.noConflict=function(){return ht._===this&&(ht._=$e),this},$n.noop=cc,$n.now=Eo,$n.pad=function(e,t,n){e=ya(e);var i=(t=ha(t))?mn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Hr(ft(r),n)+e+Hr(mt(r),n)},$n.padEnd=function(e,t,n){e=ya(e);var i=(t=ha(t))?mn(e):0;return t&&i<t?e+Hr(t-i,n):e},$n.padStart=function(e,t,n){e=ya(e);var i=(t=ha(t))?mn(e):0;return t&&i<t?Hr(t-i,n)+e:e},$n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(ya(e).replace(se,""),t||0)},$n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bs(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ma(e),t===i?(t=e,e=0):t=ma(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var s=wn();return bn(e+s*(t-e+ut("1e-"+((s+"").length-1))),t)}return Yi(e,t)},$n.reduce=function(e,t,n){var i=Ho(e)?Nt:Yt,r=arguments.length<3;return i(e,cs(t,4),n,r,di)},$n.reduceRight=function(e,t,n){var i=Ho(e)?Dt:Yt,r=arguments.length<3;return i(e,cs(t,4),n,r,mi)},$n.repeat=function(e,t,n){return t=(n?bs(e,t,n):t===i)?1:ha(t),Gi(ya(e),t)},$n.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(e,t,n){var r=-1,s=(t=br(t,e)).length;for(s||(s=1,e=i);++r<s;){var o=null==e?i:e[Ns(t[r])];o===i&&(r=s,o=n),e=Xo(o)?o.call(e):o}return e},$n.round=kc,$n.runInContext=e,$n.sample=function(e){return(Ho(e)?Xn:Xi)(e)},$n.size=function(e){if(null==e)return 0;if(Vo(e))return aa(e)?mn(e):e.length;var t=hs(e);return t==S||t==j?e.size:Ni(e).length},$n.snakeCase=Ka,$n.some=function(e,t,n){var r=Ho(e)?Ft:rr;return n&&bs(e,t,n)&&(t=i),r(e,cs(t,3))},$n.sortedIndex=function(e,t){return sr(e,t)},$n.sortedIndexBy=function(e,t,n){return or(e,t,cs(n,2))},$n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=sr(e,t);if(i<n&&$o(e[i],t))return i}return-1},$n.sortedLastIndex=function(e,t){return sr(e,t,!0)},$n.sortedLastIndexBy=function(e,t,n){return or(e,t,cs(n,2),!0)},$n.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=sr(e,t,!0)-1;if($o(e[n],t))return n}return-1},$n.startCase=Ya,$n.startsWith=function(e,t,n){return e=ya(e),n=null==n?0:ai(ha(n),0,e.length),t=lr(t),e.slice(n,n+t.length)==t},$n.subtract=Sc,$n.sum=function(e){return e&&e.length?Gt(e,ic):0},$n.sumBy=function(e,t){return e&&e.length?Gt(e,cs(t,2)):0},$n.template=function(e,t,n){var r=$n.templateSettings;n&&bs(e,t,n)&&(t=i),e=ya(e),t=_a({},t,r,Zr);var s,o,a=_a({},t.imports,r.imports,Zr),c=Aa(a),l=Qt(a,c),u=0,p=t.interpolate||_e,d="__p += '",m=Ce((t.escape||_e).source+"|"+p.source+"|"+(p===Q?me:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(m,function(t,n,i,r,a,c){return i||(i=r),d+=e.slice(u,c).replace(we,on),n&&(s=!0,d+="' +\n__e("+n+") +\n'"),a&&(o=!0,d+="';\n"+a+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=c+t.length,t}),d+="';\n";var f=Me.call(t,"variable")&&t.variable;if(f){if(pe.test(f))throw new ke("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(H,""):d).replace(W,"$1").replace(V,"$1;"),d="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Za(function(){return Se(c,h+"return "+d).apply(i,l)});if(g.source=d,Jo(g))throw g;return g},$n.times=function(e,t){if((e=ha(e))<1||e>m)return[];var n=f,i=bn(e,f);t=cs(t),e-=f;for(var r=Jt(i,t);++n<e;)t(n);return r},$n.toFinite=ma,$n.toInteger=ha,$n.toLength=fa,$n.toLower=function(e){return ya(e).toLowerCase()},$n.toNumber=ga,$n.toSafeInteger=function(e){return e?ai(ha(e),-9007199254740991,m):0===e?e:0},$n.toString=ya,$n.toUpper=function(e){return ya(e).toUpperCase()},$n.trim=function(e,t,n){if((e=ya(e))&&(n||t===i))return Xt(e);if(!e||!(t=lr(t)))return e;var r=hn(e),s=hn(t);return _r(r,tn(r,s),nn(r,s)+1).join("")},$n.trimEnd=function(e,t,n){if((e=ya(e))&&(n||t===i))return e.slice(0,fn(e)+1);if(!e||!(t=lr(t)))return e;var r=hn(e);return _r(r,0,nn(r,hn(t))+1).join("")},$n.trimStart=function(e,t,n){if((e=ya(e))&&(n||t===i))return e.replace(se,"");if(!e||!(t=lr(t)))return e;var r=hn(e);return _r(r,tn(r,hn(t))).join("")},$n.truncate=function(e,t){var n=30,r="...";if(ea(t)){var s="separator"in t?t.separator:s;n="length"in t?ha(t.length):n,r="omission"in t?lr(t.omission):r}var o=(e=ya(e)).length;if(an(e)){var a=hn(e);o=a.length}if(n>=o)return e;var c=n-mn(r);if(c<1)return r;var l=a?_r(a,0,c).join(""):e.slice(0,c);if(s===i)return l+r;if(a&&(c+=l.length-c),sa(s)){if(e.slice(c).search(s)){var u,p=l;for(s.global||(s=Ce(s.source,ya(he.exec(s))+"g")),s.lastIndex=0;u=s.exec(p);)var d=u.index;l=l.slice(0,d===i?c:d)}}else if(e.indexOf(lr(s),c)!=c){var m=l.lastIndexOf(s);m>-1&&(l=l.slice(0,m))}return l+r},$n.unescape=function(e){return(e=ya(e))&&G.test(e)?e.replace(K,gn):e},$n.uniqueId=function(e){var t=++Ne;return ya(e)+t},$n.upperCase=Ga,$n.upperFirst=Ja,$n.each=yo,$n.eachRight=bo,$n.first=Ws,ac($n,(_c={},xi($n,function(e,t){Me.call($n.prototype,t)||(_c[t]=e)}),_c),{chain:!1}),$n.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){$n[e].placeholder=$n}),It(["drop","take"],function(e,t){Hn.prototype[e]=function(n){n=n===i?1:yn(ha(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),It(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:cs(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),It(["head","last"],function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}}),It(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}}),Hn.prototype.compact=function(){return this.filter(ic)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Ji(function(e,t){return"function"==typeof e?new Hn(this):this.map(function(n){return Oi(n,e,t)})}),Hn.prototype.reject=function(e){return this.filter(Mo(cs(e)))},Hn.prototype.slice=function(e,t){e=ha(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ha(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(f)},xi(Hn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),s=$n[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);s&&($n.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Hn,l=a[0],u=c||Ho(t),p=function(e){var t=s.apply($n,Mt([e],a));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,m=!!this.__actions__.length,h=o&&!d,f=c&&!m;if(!o&&u){t=f?t:new Hn(this);var g=e.apply(t,a);return g.__actions__.push({func:mo,args:[p],thisArg:i}),new Un(g,d)}return h&&f?e.apply(this,a):(g=this.thru(p),h?r?g.value()[0]:g.value():g)})}),It(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Ho(r)?r:[],e)}return this[n](function(n){return t.apply(Ho(n)?n:[],e)})}}),xi(Hn.prototype,function(e,t){var n=$n[t];if(n){var i=n.name+"";Me.call(An,i)||(An[i]=[]),An[i].push({name:t,func:n})}}),An[$r(i,2).name]=[{name:"wrapper",func:i}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=jr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=jr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=jr(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ho(e),i=t<0,r=n?e.length:0,s=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var s=n[i],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=bn(t,e+o);break;case"takeRight":e=yn(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=s.start,a=s.end,c=a-o,l=i?a:o-1,u=this.__iteratees__,p=u.length,d=0,m=bn(c,this.__takeCount__);if(!n||!i&&r==c&&m==c)return hr(e,this.__actions__);var h=[];e:for(;c--&&d<m;){for(var f=-1,g=e[l+=t];++f<p;){var v=u[f],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}h[d++]=g}return h},$n.prototype.at=ho,$n.prototype.chain=function(){return po(this)},$n.prototype.commit=function(){return new Un(this.value(),this.__chain__)},$n.prototype.next=function(){this.__values__===i&&(this.__values__=da(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},$n.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Fs(n);r.__index__=0,r.__values__=i,t?s.__wrapped__=r:t=r;var s=r;n=n.__wrapped__}return s.__wrapped__=e,t},$n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:mo,args:[Qs],thisArg:i}),new Un(t,this.__chain__)}return this.thru(Qs)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return hr(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Xe&&($n.prototype[Xe]=function(){return this}),$n}();gt?((gt.exports=vn)._=vn,ft._=vn):ht._=vn}).call(n)}(Ml,Ml.exports);var Nl=Ml.exports,Dl={},Fl=function(e,t,n,i,r){var s,o;if(void 0===i)i=0;else if((i|=0)<0||i>=e.length)throw new RangeError("invalid lower bound");if(void 0===r)r=e.length-1;else if((r|=0)<i||r>=e.length)throw new RangeError("invalid upper bound");for(;i<=r;)if((o=+n(e[s=i+(r-i>>>1)],t,s,e))<0)i=s+1;else{if(!(o>0))return s;r=s-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(Fl);e.itemResponseFunction=(e,t)=>t.c+(t.d-t.c)/(1+Math.exp(-t.a*(e-t.b)));e.fisherInformation=(t,n)=>{const i=(0,e.itemResponseFunction)(t,n),r=1-i;return Math.pow(n.a,2)*(r/i)*(Math.pow(i-n.c,2)/Math.pow(1-n.c,2))};e.normal=(e=0,t=1,n=-4,i=4,r=.1)=>{const s=[];for(let e=n;e<=i;e+=r)s.push([e,o(e)]);return s;function o(n){return 1/(Math.sqrt(2*Math.PI)*t)*Math.exp(-Math.pow(n-e,2)/(2*Math.pow(t,2)))}};e.findClosest=(e,t)=>{if(t<=e[0].difficulty)return 0;if(t>=e[e.length-1].difficulty)return e.length-1;const n=(0,i.default)(e,t,(e,t)=>e.difficulty-t);if(n>=0)return n;{const i=-2-n,r=-1-n;return Math.abs(e[i].difficulty-t)<Math.abs(e[r].difficulty-t)?i:r}}}(Dl);var zl={exports:{}};!function(e,t,n){function i(e){var t=this,n=function(){var e=4022871197,t=function(t){t=String(t);for(var n=0;n<t.length;n++){var i=.02519603282416938*(e+=t.charCodeAt(n));i-=e=i>>>0,e=(i*=e)>>>0,e+=4294967296*(i-=e)}return 2.3283064365386963e-10*(e>>>0)};return t}();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=n(" "),t.s1=n(" "),t.s2=n(" "),t.s0-=n(e),t.s0<0&&(t.s0+=1),t.s1-=n(e),t.s1<0&&(t.s1+=1),t.s2-=n(e),t.s2<0&&(t.s2+=1),n=null}function r(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function s(e,t){var n=new i(e),s=t&&t.state,o=n.next;return o.int32=function(){return 4294967296*n.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,s&&("object"==typeof s&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.alea=s}(0,zl,!1);var $l=zl.exports,Bl={exports:{}};!function(e,t,n){function i(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var i=0;i<n.length+64;i++)t.x^=0|n.charCodeAt(i),t.next()}function r(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function s(e,t){var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&("object"==typeof s&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.xor128=s}(0,Bl,!1);var ql=Bl.exports,Ul={exports:{}};!function(e,t,n){function i(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var i=0;i<n.length+64;i++)t.x^=0|n.charCodeAt(i),i==n.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function r(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function s(e,t){var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&("object"==typeof s&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.xorwow=s}(0,Ul,!1);var Hl=Ul.exports,Wl={exports:{}};!function(e,t,n){function i(e){var t=this;t.next=function(){var e,n,i=t.x,r=t.i;return e=i[r],n=(e^=e>>>7)^e<<24,n^=(e=i[r+1&7])^e>>>10,n^=(e=i[r+3&7])^e>>>3,n^=(e=i[r+4&7])^e<<7,e=i[r+7&7],n^=(e^=e<<13)^e<<9,i[r]=n,t.i=r+1&7,n},function(e,t){var n,i=[];if(t===(0|t))i[0]=t;else for(t=""+t,n=0;n<t.length;++n)i[7&n]=i[7&n]<<15^t.charCodeAt(n)+i[n+1&7]<<13;for(;i.length<8;)i.push(0);for(n=0;n<8&&0===i[n];++n);for(8==n?i[7]=-1:i[n],e.x=i,e.i=0,n=256;n>0;--n)e.next()}(t,e)}function r(e,t){return t.x=e.x.slice(),t.i=e.i,t}function s(e,t){null==e&&(e=+new Date);var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&(s.x&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.xorshift7=s}(0,Wl,!1);var Vl=Wl.exports,Kl={exports:{}};!function(e,t,n){function i(e){var t=this;t.next=function(){var e,n,i=t.w,r=t.X,s=t.i;return t.w=i=i+1640531527|0,n=r[s+34&127],e=r[s=s+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=r[s]=n^e,t.i=s,n+(i^i>>>16)|0},function(e,t){var n,i,r,s,o,a=[],c=128;for(t===(0|t)?(i=t,t=null):(t+="\0",i=0,c=Math.max(c,t.length)),r=0,s=-32;s<c;++s)t&&(i^=t.charCodeAt((s+32)%t.length)),0===s&&(o=i),i^=i<<10,i^=i>>>15,i^=i<<4,i^=i>>>13,s>=0&&(o=o+1640531527|0,r=0==(n=a[127&s]^=i+o)?r+1:0);for(r>=128&&(a[127&(t&&t.length||0)]=-1),r=127,s=512;s>0;--s)i=a[r+34&127],n=a[r=r+1&127],i^=i<<13,n^=n<<17,i^=i>>>15,n^=n>>>12,a[r]=i^n;e.w=o,e.X=a,e.i=r}(t,e)}function r(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function s(e,t){null==e&&(e=+new Date);var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&(s.X&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.xor4096=s}(0,Kl,!1);var Yl=Kl.exports,Gl={exports:{}};!function(e,t,n){function i(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,i=t.d,r=t.a;return e=e<<25^e>>>7^n,n=n-i|0,i=i<<24^i>>>8^r,r=r-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-i|0,t.d=i<<16^n>>>16^r,t.a=r-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var i=0;i<n.length+20;i++)t.b^=0|n.charCodeAt(i),t.next()}function r(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function s(e,t){var n=new i(e),s=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,s&&("object"==typeof s&&r(s,n),o.state=function(){return r(n,{})}),o}t&&t.exports?t.exports=s:n&&n.amd?n(function(){return s}):this.tychei=s}(0,Gl,!1);var Jl=Gl.exports,Xl={exports:{}};!function(e){!function(t,n,i){var r,s=256,o="random",a=i.pow(s,6),c=i.pow(2,52),l=2*c,u=255;function p(e,u,p){var v=[],y=f(h((u=1==u?{entropy:!0}:u||{}).entropy?[e,g(n)]:null==e?function(){try{var e;return r&&(e=r.randomBytes)?e=e(s):(e=new Uint8Array(s),(t.crypto||t.msCrypto).getRandomValues(e)),g(e)}catch(e){var i=t.navigator,o=i&&i.plugins;return[+new Date,t,o,t.screen,g(n)]}}():e,3),v),b=new d(v),x=function(){for(var e=b.g(6),t=a,n=0;e<c;)e=(e+n)*s,t*=s,n=b.g(1);for(;e>=l;)e/=2,t/=2,n>>>=1;return(e+n)/t};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,f(g(b.S),n),(u.pass||p||function(e,t,n,r){return r&&(r.S&&m(r,b),e.state=function(){return m(b,{})}),n?(i[o]=e,t):e})(x,y,"global"in u?u.global:this==i,u.state)}function d(e){var t,n=e.length,i=this,r=0,o=i.i=i.j=0,a=i.S=[];for(n||(e=[n++]);r<s;)a[r]=r++;for(r=0;r<s;r++)a[r]=a[o=u&o+e[r%n]+(t=a[r])],a[o]=t;(i.g=function(e){for(var t,n=0,r=i.i,o=i.j,a=i.S;e--;)t=a[r=u&r+1],n=n*s+a[u&(a[r]=a[o=u&o+t])+(a[o]=t)];return i.i=r,i.j=o,n})(s)}function m(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function h(e,t){var n,i=[],r=typeof e;if(t&&"object"==r)for(n in e)try{i.push(h(e[n],t-1))}catch(e){}return i.length?i:"string"==r?e:e+"\0"}function f(e,t){for(var n,i=e+"",r=0;r<i.length;)t[u&r]=u&(n^=19*t[u&r])+i.charCodeAt(r++);return g(t)}function g(e){return String.fromCharCode.apply(0,e)}if(f(i.random(),n),e.exports){e.exports=p;try{r=require("crypto")}catch(e){}}else i["seed"+o]=p}("undefined"!=typeof self?self:n,[],Math)}(Xl);var Zl=$l,Ql=ql,eu=Hl,tu=Vl,nu=Yl,iu=Jl,ru=Xl.exports;ru.alea=Zl,ru.xor128=Ql,ru.xorwow=eu,ru.xorshift7=tu,ru.xor4096=nu,ru.tychei=iu;var su,ou,au,cu=ru;function lu(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function uu(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}!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=Pl,r=Nl,s=Dl,o=t(cu);e.abilityPrior=(0,s.normal)();class a{constructor({method:t="MLE",itemSelect:n="MFI",nStartItems:i=0,startSelect:r="middle",theta:s=0,minTheta:c=-6,maxTheta:l=6,prior:u=e.abilityPrior,randomSeed:p=null}={}){this.method=a.validateMethod(t),this.itemSelect=a.validateItemSelect(n),this.startSelect=a.validateStartSelect(r),this.minTheta=c,this.maxTheta=l,this.prior=u,this._zetas=[],this._resps=[],this._theta=s,this._nItems=0,this._seMeasurement=Number.MAX_VALUE,this.nStartItems=i,this._rng=null===p?(0,o.default)():(0,o.default)(p)}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 t=e.toLowerCase();if(!["mle","eap"].includes(t))throw new Error("The abilityEstimator you provided is not in the list of valid methods");return t}static validateItemSelect(e){const t=e.toLowerCase();if(!["mfi","random","closest"].includes(t))throw new Error("The itemSelector you provided is not in the list of valid methods");return t}static validateStartSelect(e){const t=e.toLowerCase();if(!["random","middle"].includes(t))throw new Error("The startSelect you provided is not in the list of valid methods");return t}updateAbilityEstimate(e,t,n=this.method){if(n=a.validateMethod(n),e=Array.isArray(e)?e:[e],t=Array.isArray(t)?t:[t],e.length!==t.length)throw new Error("Unmatched length between answers and item params");this._zetas.push(...e),this._resps.push(...t),"eap"===n?this._theta=this.estimateAbilityEAP():"mle"===n&&(this._theta=this.estimateAbilityMLE()),this.calculateSE()}estimateAbilityEAP(){let e=0,t=0;return this.prior.forEach(([n,i])=>{const r=this.likelihood(n);e+=n*r*i,t+=r*i}),e/t}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((t,n,i)=>{const r=(0,s.itemResponseFunction)(e,n);return 1===this._resps[i]?t+Math.log(r):t+Math.log(1-r)},1)}calculateSE(){const e=this._zetas.reduce((e,t)=>e+(0,s.fisherInformation)(this._theta,t),0);this._seMeasurement=1/Math.sqrt(e)}findNextItem(e,t=this.itemSelect,n=!0){let i,s=a.validateItemSelect(t);return i=n?(0,r.cloneDeep)(e):e,this.nItems<this.nStartItems&&(s=this.startSelect),"mfi"!==s&&i.sort((e,t)=>e.difficulty-t.difficulty),"middle"===s?this.selectorMiddle(i):"closest"===s?this.selectorClosest(i):"random"===s?this.selectorRandom(i):this.selectorMFI(i)}selectorMFI(e){const t=e.map(e=>Object.assign({fisherInformation:(0,s.fisherInformation)(this._theta,{a:1,b:e.difficulty,c:.5,d:1})},e));return t.sort((e,t)=>t.fisherInformation-e.fisherInformation),t.forEach(e=>{delete e.fisherInformation}),{nextStimulus:t[0],remainingStimuli:t.slice(1).sort((e,t)=>e.difficulty-t.difficulty)}}selectorMiddle(e){let t;t=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 n=e[t];return e.splice(t,1),{nextStimulus:n,remainingStimuli:e}}selectorClosest(e){const t=(0,s.findClosest)(e,this._theta+.481),n=e[t];return e.splice(t,1),{nextStimulus:n,remainingStimuli:e}}selectorRandom(e){const t=Math.floor(this._rng()*e.length);return{nextStimulus:e.splice(t,1)[0],remainingStimuli:e}}randomInteger(e,t){return Math.floor(this._rng()*(t-e+1))+e}}e.Cat=a}(Ll),"function"==typeof SuppressedError&&SuppressedError;class pu{constructor(e,t){su.set(this,void 0),ou.set(this,void 0),au.set(this,void 0),uu(this,su,t,"f"),this.warningDuration=e,this.rotateOverlayDiv=this.createRotateOverlayDiv(),this.smallDeviceOverlayDiv=this.createSmallDeviceOverlayDiv(),uu(this,ou,!1,"f")}init(){this.onOrientationChange(),window.matchMedia("(orientation: portrait)").addEventListener("change",()=>{this.onOrientationChange()})}createRotateOverlayDiv(){const e=document.createElement("div");e.classList.add("lev-overlay-default");const t=lu(this,su,"f").generalRotateDevice||"Please rotate your device for optimal experience",n=document.createElement("div");n.classList.add("lev-row-container","header");const i=document.createElement("p");i.textContent=t,n.appendChild(i);const r=document.createElement("div");return r.classList.add("turn"),r.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 600 600" xml:space="preserve" class="turn">\n <g style="transform: translate(-150px, -100px);fill:#1D4AB9;" >\n <path d="M357.22,409.315c0.327-0.932,0.655-0.176,1.379,0.574c1.532,1.586,2.687,3.721,3.841,5.587 c-0.458-0.765,1.404,1.962,1.297,1.819c0.823,1.095,1.69,2.157,2.576,3.202c2.055,2.424,4.251,4.709,6.578,6.874 c4.662,4.338,9.774,8.192,15.222,11.49c11.107,6.726,23.625,11.066,36.545,12.462c23.836,2.575,48.154-4.846,66.811-19.701 l-6.806-7.929l45.943-9.713l-15.89,44.727l-8.139-9.482c-15.9,13.961-36.485,22.197-57.685,22.932 c-21.342,0.74-42.546-6.622-59.298-19.776c-10.577-8.305-18.742-18.785-25.847-30.117c-1.597-2.547-3.09-5.222-4.432-7.913 C359.104,413.926,356.929,410.147,357.22,409.315z"/>\n <path d="M528.597,364.765c-0.327,0.932-0.655,0.176-1.379-0.574c-1.531-1.586-2.687-3.722-3.841-5.587 c0.458,0.765-1.404-1.962-1.297-1.819c-0.823-1.095-1.69-2.157-2.576-3.202c-2.055-2.424-4.251-4.709-6.578-6.874 c-4.662-4.338-9.774-8.192-15.222-11.49c-11.107-6.726-23.625-11.066-36.545-12.462c-23.836-2.575-48.154,4.846-66.811,19.701 l6.806,7.929l-45.943,9.713l15.89-44.727l8.139,9.482c15.9-13.96,36.485-22.197,57.685-22.932 c21.342-0.74,42.546,6.622,59.298,19.776c10.577,8.305,18.742,18.785,25.847,30.117c1.597,2.547,3.09,5.222,4.432,7.913 C526.713,360.154,528.888,363.934,528.597,364.765z"/>\n </g>\n </svg>\n',e.appendChild(n),e.appendChild(r),e}createSmallDeviceOverlayDiv(){const e=document.createElement("div");e.classList.add("lev-overlay-default");const t=lu(this,su,"f").generalDeviceType||"Please use a tablet or a desktop in landscape mode for optimal experience",n=document.createElement("div");n.classList.add("lev-row-container","header");const i=document.createElement("p");return i.textContent=t,n.appendChild(i),e.appendChild(n),e}hideOverlay(e){e.remove(),clearTimeout(lu(this,au,"f"))}showOverlay(e){lu(this,ou,"f")&&this.hideOverlay(e),document.body.appendChild(e),uu(this,au,window.setTimeout(()=>{this.hideOverlay(e)},this.warningDuration),"f")}onOrientationChange(){var e;const{screen:t}=window,n=(null===(e=null==t?void 0:t.orientation)||void 0===e?void 0:e.type)?t.orientation.type.includes("portrait"):t.availHeight>t.availWidth;(n?t.availWidth:t.availHeight)<500?this.showOverlay(this.smallDeviceOverlayDiv):t.availHeight>t.availWidth&&n&&this.showOverlay(this.rotateOverlayDiv)}}su=new WeakMap,ou=new WeakMap,au=new WeakMap;class du{constructor(e,t,n){this.levanteLogger=e,this.gameParams=t,this.userParams=n}static setInstance(e,t,n){if(du.instance)throw new Error("Logger instance already set");du.instance=new du(e,t,n)}static getInstance(){if(!du.instance)throw new Error("Logger instance not set");return du.instance}capture(e,t){var n,i;const r={gameParams:this.gameParams,userParams:this.userParams,context:t};null===(i=null===(n=this.levanteLogger)||void 0===n?void 0:n.capture)||void 0===i||i.call(n,e,r)}error(e,t){var n,i;const r={gameParams:this.gameParams,userParams:this.userParams,context:t};null===(i=null===(n=this.levanteLogger)||void 0===n?void 0:n.error)||void 0===i||i.call(n,e,r)}}const mu="mobile"===Tc();let hu;Ja();const fu=()=>{hu=new Ll.Cat({method:"MLE",minTheta:-6,maxTheta:6,theta:Ja().startingTheta||0,itemSelect:Ja().itemSelect})},gu=function(e){const t=new jl(e);return Object.defineProperties(t,Object.fromEntries(Object.entries({init:"`jsPsych.init()` was replaced by `initJsPsych()` in jsPsych v7.",ALL_KEYS:'jsPsych.ALL_KEYS was replaced by the "ALL_KEYS" string in jsPsych v7.',NO_KEYS:'jsPsych.NO_KEYS was replaced by the "NO_KEYS" string in jsPsych v7.',currentTimelineNodeID:"`currentTimelineNodeID()` was renamed to `getCurrentTimelineNodeID()` in jsPsych v7.",progress:"`progress()` was renamed to `getProgress()` in jsPsych v7.",startTime:"`startTime()` was renamed to `getStartTime()` in jsPsych v7.",totalTime:"`totalTime()` was renamed to `getTotalTime()` in jsPsych v7.",currentTrial:"`currentTrial()` was renamed to `getCurrentTrial()` in jsPsych v7.",initSettings:"`initSettings()` was renamed to `getInitSettings()` in jsPsych v7.",allTimelineVariables:"`allTimelineVariables()` was renamed to `getAllTimelineVariables()` in jsPsych v7."}).map(([e,t])=>[e,{get(){throw new Oc(t)}}]))),t}({on_data_update:function(e){const{stimulus:t,task:n,...i}=e,r=du.getInstance();"fixation"!==n&&r.capture("JsPsych Data Update",i)}});window.initJsPsych=gu;var vu=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},yu=Br,bu=Dr;var xu=function(e,t,n,i){var r=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],c=i?i(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?bu(n,a,c):yu(n,a,c)}return n},_u=xu,wu=Sn;var ku=function(e,t){return e&&_u(t,wu(t),e)},Su=xu,Tu=ps;var Eu=function(e,t){return e&&Su(t,Tu(t),e)},Cu={exports:{}};!function(e,t){var n=I,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,s=r&&r.exports===i?n.Buffer:void 0,o=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=o?o(n):new e.constructor(n);return e.copy(i),i}}(Cu,Cu.exports);var Iu=Cu.exports,ju=xu,Ou=Ct;var Au=function(e,t){return ju(e,Ou(e),t)},Lu=xu,Ru=is;var Pu=function(e,t){return Lu(e,Ru(e),t)},Mu=Object.prototype.hasOwnProperty;var Nu=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Mu.call(e,"index")&&(n.index=e.index,n.input=e.input),n},Du=ct;var Fu=function(e){var t=new e.constructor(e.byteLength);return new Du(t).set(new Du(e)),t},zu=Fu;var $u=function(e,t){var n=t?zu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Bu=/\w*$/;var qu=function(e){var t=new e.constructor(e.source,Bu.exec(e));return t.lastIndex=e.lastIndex,t},Uu=j?j.prototype:void 0,Hu=Uu?Uu.valueOf:void 0;var Wu=Fu;var Vu=Fu,Ku=$u,Yu=qu,Gu=function(e){return Hu?Object(Hu.call(e)):{}},Ju=function(e,t){var n=t?Wu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Xu=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return Vu(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return Ku(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ju(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return Yu(e);case"[object Symbol]":return Gu(e)}},Zu=B,Qu=Object.create,ep=function(){function e(){}return function(t){if(!Zu(t))return{};if(Qu)return Qu(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tp=Zr,np=dn;var ip=function(e){return"function"!=typeof e.constructor||np(e)?{}:ep(tp(e))},rp=Jn,sp=jt;var op=function(e){return sp(e)&&"[object Map]"==rp(e)},ap=Gt,cp=Xt&&Xt.isMap,lp=cp?ap(cp):op,up=Jn,pp=jt;var dp=function(e){return pp(e)&&"[object Set]"==up(e)},mp=Gt,hp=Xt&&Xt.isSet,fp=hp?mp(hp):dp,gp=Qe,vp=vu,yp=Br,bp=ku,xp=Eu,_p=Iu,wp=Aa,kp=Au,Sp=Pu,Tp=In,Ep=fs,Cp=Jn,Ip=Nu,jp=Xu,Op=ip,Ap=yt,Lp=$t,Rp=lp,Pp=B,Mp=fp,Np=Sn,Dp=ps,Fp="[object Arguments]",zp="[object Function]",$p="[object Object]",Bp={};Bp[Fp]=Bp["[object Array]"]=Bp["[object ArrayBuffer]"]=Bp["[object DataView]"]=Bp["[object Boolean]"]=Bp["[object Date]"]=Bp["[object Float32Array]"]=Bp["[object Float64Array]"]=Bp["[object Int8Array]"]=Bp["[object Int16Array]"]=Bp["[object Int32Array]"]=Bp["[object Map]"]=Bp["[object Number]"]=Bp[$p]=Bp["[object RegExp]"]=Bp["[object Set]"]=Bp["[object String]"]=Bp["[object Symbol]"]=Bp["[object Uint8Array]"]=Bp["[object Uint8ClampedArray]"]=Bp["[object Uint16Array]"]=Bp["[object Uint32Array]"]=!0,Bp["[object Error]"]=Bp[zp]=Bp["[object WeakMap]"]=!1;var qp=function e(t,n,i,r,s,o){var a,c=1&n,l=2&n,u=4&n;if(i&&(a=s?i(t,r,s,o):i(t)),void 0!==a)return a;if(!Pp(t))return t;var p=Ap(t);if(p){if(a=Ip(t),!c)return wp(t,a)}else{var d=Cp(t),m=d==zp||"[object GeneratorFunction]"==d;if(Lp(t))return _p(t,c);if(d==$p||d==Fp||m&&!s){if(a=l||m?{}:Op(t),!c)return l?Sp(t,xp(a,t)):kp(t,bp(a,t))}else{if(!Bp[d])return s?t:{};a=jp(t,d,c)}}o||(o=new gp);var h=o.get(t);if(h)return h;o.set(t,a),Mp(t)?t.forEach(function(r){a.add(e(r,n,i,r,t,o))}):Rp(t)&&t.forEach(function(r,s){a.set(s,e(r,n,i,s,t,o))});var f=p?void 0:(u?l?Ep:Tp:l?Dp:Np)(t);return vp(f||t,function(r,s){f&&(r=t[s=r]),yp(a,s,e(r,n,i,s,t,o))}),a},Up=qp;var Hp=i(function(e){return Up(e,5)});var Wp=function(e){return function(t,n,i){for(var r=-1,s=Object(t),o=i(t),a=o.length;a--;){var c=o[e?a:++r];if(!1===n(s[c],c,s))break}return t}}(),Vp=Sn;var Kp=Dr,Yp=function(e,t){return e&&Wp(e,t,Vp)},Gp=Rr;var Jp=i(function(e,t){var n={};return t=Gp(t),Yp(e,function(e,i,r){Kp(n,i,t(e,i,r))}),n});const Xp=e=>{var t,n,i,r,s,o;const a=Jp(e,e=>{var t,n;return{subScore:(null===(t=e.test)||void 0===t?void 0:t.numCorrect)||0,subPercentCorrect:(null===(n=e.test)||void 0===n?void 0:n.numCorrect)/e.numAttempted||0}}),{totalCorrect:c}=Ja();return a.composite={totalCorrect:c,totalNumAttempted:null===(n=null===(t=null==e?void 0:e.composite)||void 0===t?void 0:t.test)||void 0===n?void 0:n.numAttempted,totalPercentCorrect:(null===(r=null===(i=null==e?void 0:e.composite)||void 0===i?void 0:i.test)||void 0===r?void 0:r.numAttempted)>0?Math.round(c/(null===(o=null===(s=null==e?void 0:e.composite)||void 0===s?void 0:s.test)||void 0===o?void 0:o.numAttempted)*100):0},a},Zp=e=>{e.displayElement&&(gu.opts.display_element=e.display_element);const t=(e,t)=>function(){e.apply(e,arguments),t.apply(e,arguments)};gu.opts.on_finish=t(gu.opts.on_finish,()=>{e.firekit.finishRun()}),gu.opts.on_trial_finish=t(gu.opts.on_trial_finish,()=>{Ja().testTrialCount>=.8*Ja().totalTestTrials&&function(e){var t,n;(null===(n=null===(t=null==e?void 0:e.firekit)||void 0===t?void 0:t.run)||void 0===n?void 0:n.completed)||e.firekit.finishRun()}(e)}),gu.opts.on_data_update=t(gu.opts.on_data_update,t=>{if(t.save_trial){const n=Hp(t);delete n.save_trial,delete n.internal_node_id,delete n.button_response,delete n.keyboard_response,delete n.response_source,n.responseSource=t.response_source,delete n.trial_type,n.trialIndex=n.trial_index,delete n.trial_index,e.isRoarApp?e.firekit.writeTrial(n,Xp):e.firekit.writeTrial(n)}})};async function Qp(e,t={},n,i="",r={images:{},audio:{},video:{}}){const s=Tc();let o=`https://storage.googleapis.com/storage/v1/b/${e}/o`;i&&(o+=`?pageToken=${i}`);const a=await fetch(o),c=await a.json();return c.items.forEach(i=>{var o;if(function(e,t,n){const i=e.split("/");if("shared"===i[0])return!0;if(i[0]===t)return i.length>1&&(i[1]===n||"shared"===i[1]);return!1}(i.name,n,s)&&function(e,t){const n=e.split("/");for(const[e,i]of Object.entries(t)){const t=n.indexOf(e);if(-1!==t&&n.length>t+1){const e=n[t+1];return!!i.includes(e)}}return!0}(i.name,t)){const t=i.contentType,n=i.name,s=`https://storage.googleapis.com/${e}/${n}`,a=Ho((null===(o=n.split("/").pop())||void 0===o?void 0:o.split(".")[0])||"");t.startsWith("image/")?r.images[a]=s:t.startsWith("audio/")?r.audio[a]=s:t.startsWith("video/")&&(r.video[a]=s)}}),c.nextPageToken?Qp(e,t,n,c.nextPageToken,r):r}function ed(){return{type:Al,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:[]}}function td(e,t=[]){const n=t.length>0?t.reduce((e,t)=>(e[t]=ed(),e),{}):{default:ed()},i=(e,t)=>new URL(e).pathname.split("/").some(e=>e===t);return Object.entries(e).forEach(([e,r])=>{Object.entries(r).forEach(([r,s])=>{let o=!1;for(const r of t)if(i(s,r)){n[r][e].push(s),o=!0;break}o||0!==t.length||n.default[e].push(s)})}),n}const nd=(e,t)=>{let n,i;n=Ja().corpora,i=null!=t?hu.findNextItem(n[e][t]):hu.findNextItem(n[e]);const r=i.nextStimulus.audioFile;r&&!WC.audio[Ho(r)]&&(console.warn("Trial skipped. Audio file not found:",r),Ja("skipCurrentTrial",!0),gu.endCurrentTimeline()),Ja("nextStimulus",i.nextStimulus),"practice_response"===i.nextStimulus.assessmentStage&&Ja("testPhase",!1),null!=t?n[e][t]=i.remainingStimuli:n[e]=i.remainingStimuli,Ja("corpora",n)};function id(e){if("number"==typeof e||!e.includes("/"))return e;const t=e.includes("-")?"-":"+",n=e.split(t),i=n.map(e=>(e=>{const[t,n]=e.split("/");return`<mfrac><mrow><mn>${t}</mn></mrow><mrow><mn>${n}</mn></mrow></mfrac>`})(e.trim())),r=n.length>1?`<mo>${t}</mo>`:"";return`<math xmlns="http://www.w3.org/1998/Math/MathML">\n <mrow>\n ${i.join(r)}\n ${n.length>1?"<mo>=</mo>":""}\n </mrow>\n </math>`}const rd=(e,t,n,i)=>{let r;switch(r=!e||t.includes(e)?[...t]:[e,...t],JSON.stringify([...r].sort())===JSON.stringify(["yes","no"].sort())&&(r=["yes","no"]),n){case"yes":default:r=Va(r);break;case"no":break;case"at_block_level":const e=Ja().previousChoices;null!=e&&JSON.stringify([...r].sort())===JSON.stringify([...e].sort())?r=e:(r=Va(r),Ja("previousChoices",r))}const s=[...r];"Fraction"===i&&(Ja("nonFractionSelections",r),r=r.map(e=>id(e)));const o="Fraction"===i?Ja().nonFractionSelections.indexOf(e):r.indexOf(e);return Ja("target",e),Ja("correctResponseIdx",o),Ja("choices",r),{target:e,choices:r,originalChoices:s,correctResponseIdx:o}},sd='\n<svg xmlns="http://www.w3.org/2000/svg" width="44" height="38" viewBox="0 0 44 38" fill="none">\n <path d="M34.561 11.7551C34.2268 11.3413 33.7419 11.0773 33.2131 11.021C32.6842 10.9648 32.1547 11.1209 31.741 11.4551C31.3272 11.7892 31.0632 12.2741 31.0069 12.8029C30.9507 13.3318 31.1068 13.8613 31.441 14.2751C32.4514 15.6489 32.9964 17.3097 32.9964 19.0151C32.9964 20.7205 32.4514 22.3812 31.441 23.7551C31.2025 24.049 31.0524 24.4045 31.008 24.7804C30.9635 25.1562 31.0267 25.537 31.1901 25.8784C31.3534 26.2198 31.6103 26.5078 31.9309 26.709C32.2514 26.9102 32.6225 27.0164 33.001 27.0151C33.2997 27.0161 33.595 26.9501 33.8649 26.8221C34.1349 26.694 34.3727 26.5071 34.561 26.2751C36.1474 24.1872 37.0063 21.6372 37.0063 19.0151C37.0063 16.3929 36.1474 13.8429 34.561 11.7551Z" fill="#275BDD"/>\n <path d="M37.28 5.47428C37.0778 5.30619 36.8444 5.17957 36.5932 5.10167C36.3421 5.02376 36.078 4.99609 35.8162 5.02024C35.5543 5.04438 35.2997 5.11986 35.0671 5.24238C34.8344 5.36489 34.6281 5.53204 34.46 5.73428C34.2919 5.93651 34.1653 6.16988 34.0874 6.42104C34.0095 6.67221 33.9818 6.93626 34.006 7.19812C34.0301 7.45999 34.1056 7.71453 34.2281 7.94722C34.3506 8.17991 34.5178 8.38619 34.72 8.55428C36.3241 9.79402 37.6307 11.3767 38.5442 13.1865C39.4578 14.9963 39.9552 16.9875 40 19.0143C39.9552 21.0411 39.4578 23.0322 38.5442 24.8421C37.6307 26.6519 36.3241 28.2345 34.72 29.4743C34.5175 29.6422 34.3501 29.8484 34.2274 30.0811C34.1047 30.3138 34.0291 30.5684 34.0049 30.8303C33.9808 31.0923 34.0085 31.3564 34.0866 31.6076C34.1647 31.8588 34.2916 32.0922 34.46 32.2943C34.648 32.52 34.8835 32.7016 35.1497 32.826C35.4159 32.9505 35.7062 33.0148 36 33.0143C36.4673 33.0152 36.9202 32.8524 37.28 32.5543C39.3409 30.9431 41.0144 28.8905 42.1773 26.5473C43.3403 24.2041 43.9631 21.6299 44 19.0143C43.9631 16.3986 43.3403 13.8245 42.1773 11.4813C41.0144 9.1381 39.3409 7.08542 37.28 5.47428ZM26.94 1.25428C26.636 1.07874 26.2911 0.986328 25.94 0.986328C25.5889 0.986328 25.244 1.07874 24.94 1.25428L12 10.1543H2C1.46957 10.1543 0.960859 10.365 0.585786 10.7401C0.210714 11.1151 0 11.6238 0 12.1543V25.8743C0 26.4047 0.210714 26.9134 0.585786 27.2885C0.960859 27.6636 1.46957 27.8743 2 27.8743H12L24.82 36.6743C25.1712 36.9015 25.5817 37.0198 26 37.0143C26.5304 37.0143 27.0391 36.8036 27.4142 36.4285C27.7893 36.0534 28 35.5447 28 35.0143V3.01428C27.999 2.65247 27.8999 2.2977 27.7133 1.98776C27.5266 1.67782 27.2594 1.42433 26.94 1.25428Z" fill="#275BDD"/>\n</svg>\n',od=[["arrowup",'<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">\n <path d="M41.7238 27.1414L43.8051 25.0602C44.6863 24.1789 44.6863 22.7539 43.8051 21.882L25.5895 3.65703C24.7082 2.77578 23.2832 2.77578 22.4113 3.65703L4.18633 21.882C3.30508 22.7633 3.30508 24.1883 4.18633 25.0602L6.26758 27.1414C7.1582 28.032 8.61133 28.0133 9.4832 27.1039L20.2457 15.807L20.2457 42.7508C20.2457 43.9977 21.2488 45.0008 22.4957 45.0008H25.4957C26.7426 45.0008 27.7457 43.9977 27.7457 42.7508L27.7457 15.807L38.5082 27.1039C39.3801 28.0227 40.8332 28.0414 41.7238 27.1414Z" fill="#A0BBFF"/>\n </svg>\n '],["arrowleft",'<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">\n <path d="M27.1414 41.7277L25.0602 43.809C24.1789 44.6902 22.7539 44.6902 21.882 43.809L3.65703 25.5934C2.77578 24.7121 2.77578 23.2871 3.65703 22.4152L21.882 4.19023C22.7633 3.30898 24.1883 3.30898 25.0602 4.19023L27.1414 6.27148C28.032 7.16211 28.0133 8.61523 27.1039 9.48711L15.807 20.2496H42.7508C43.9977 20.2496 45.0008 21.2527 45.0008 22.4996V25.4996C45.0008 26.7465 43.9977 27.7496 42.7508 27.7496H15.807L27.1039 38.5121C28.0227 39.384 28.0414 40.8371 27.1414 41.7277Z" fill="#A0BBFF"/>\n </svg>'],["arrowright",'<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">\n <path d="M20.8586 6.27227L22.9398 4.19102C23.8211 3.30977 25.2461 3.30977 26.118 4.19102L44.343 22.4066C45.2242 23.2879 45.2242 24.7129 44.343 25.5848L26.118 43.8098C25.2367 44.691 23.8117 44.691 22.9398 43.8098L20.8586 41.7285C19.968 40.8379 19.9867 39.3848 20.8961 38.5129L32.193 27.7504H5.24921C4.00234 27.7504 2.99921 26.7473 2.99921 25.5004V22.5004C2.99921 21.2535 4.00234 20.2504 5.24921 20.2504H32.193L20.8961 9.48789C19.9773 8.61602 19.9586 7.16289 20.8586 6.27227Z" fill="#A0BBFF"/>\n </svg>'],["arrowdown",'<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none">\n <path d="M41.7238 20.8586L43.8051 22.9398C44.6863 23.8211 44.6863 25.2461 43.8051 26.118L25.5895 44.343C24.7082 45.2242 23.2832 45.2242 22.4113 44.343L4.18633 26.118C3.30508 25.2367 3.30508 23.8117 4.18633 22.9398L6.26758 20.8586C7.1582 19.968 8.61133 19.9867 9.4832 20.8961L20.2457 32.193L20.2457 5.24921C20.2457 4.00234 21.2488 2.99921 22.4957 2.99921H25.4957C26.7426 2.99921 27.7457 4.00234 27.7457 5.24921L27.7457 32.193L38.5082 20.8961C39.3801 19.9773 40.8332 19.9586 41.7238 20.8586Z" fill="#A0BBFF"/>\n </svg>']];class ad{constructor(){throw new Error("Cannot initialize the singleton static class PageAudioHandler")}static stopAndDisconnectNode(){ad.audioSource&&(ad.audioSource.stop(),ad.audioSource.disconnect(),ad.audioSource=void 0)}static async playAudio(e,t=this.defaultAudioConfig){const{enabled:n,maxRepetitions:i}=t.restrictRepetition,{onEnded:r}=t;ad.audioUri===e&&n?ad.replays++:ad.replays=0,ad.audioUri=e,ad.replays>=i&&(e=WC.audio.nullAudio);const s=gu.pluginAPI.audioContext(),o=await gu.pluginAPI.getAudioBuffer(e),a=s.createBufferSource();ad.audioSource=a,a.buffer=o,a.connect(s.destination),a.onended=()=>{r&&r()},a.start(0)}}async function cd(e){if(ad.replayPresses=0,e.replayBtn){if(e.playStimulusOnLoad){e.disableReplayBtn();const i=100,r=await e.getStimulusDurationMs();setTimeout(()=>{e.enableReplayBtn()},r+i)}const t={restrictRepetition:{enabled:!1,maxRepetitions:2},onEnded:()=>{e.enableReplayBtn()}};async function n(){ad.replayPresses++,e.disableReplayBtn(),ad.playAudio(e.audioUri,t)}e.replayBtn.addEventListener("click",n)}}ad.replays=0,ad.defaultAudioConfig={restrictRepetition:{enabled:!0,maxRepetitions:2}};const ld="levante-logo-loading";function ud(){const e=Ga.page.get("skipCurrentBlock");for(Ja("trialsSkipped",0);Ja().nextStimulus.trialType===e&&0!==Ja().corpora.stimulus.length;){nd("stimulus");const e=Ja().trialsSkipped;Ja("trialsSkipped",e+1)}}const pd=e=>{Ga.page.get("failedPrimaryTrials")&&Ja().numIncorrect>=1&&!Ja().heavyInstructions?(Ja("numIncorrect",0),Ga.page.set("skipCurrentBlock",e),ud()):Ja().numIncorrect>=Ja().maxIncorrect&&(Ja("numIncorrect",0),Ga.page.set("skipCurrentBlock",e),Ga.page.set("failedPrimaryTrials",!0),ud())};class dd{constructor(e,t){this.audioFile=e,this.audioUri=WC.audio[Sc(this.audioFile)]||WC.audio.nullAudio,this.getbuffer(),this.replayBtn=document.getElementById("replay-btn-revisited"),this.playStimulusOnLoad=void 0===t||t}async getbuffer(){return this.audioBuffer||(this.audioBuffer=await gu.pluginAPI.getAudioBuffer(this.audioUri)),this.audioBuffer}async getStimulusDurationMs(){return 1e3*(await this.getbuffer()).duration}isReplayBtnEnabled(){return this.replayBtn.hasAttribute("disabled")}enableReplayBtn(){this.replayBtn.disabled=!1}disableReplayBtn(){this.replayBtn.disabled=!0}}function md(e){const t=Ja().runCat;let n;const i=e.filter(e=>"instructions"===e.trialType||"practice_response"===e.assessmentStage),r={ipHeavy:i.filter(e=>Number(e.difficulty)<0),ipLight:i.filter(e=>Number(e.difficulty)>0||null==e.difficulty||isNaN(Number(e.difficulty))),test:e.filter(e=>!i.includes(e))},s=r.test.filter(e=>null==e.difficulty||isNaN(Number(e.difficulty))),o=r.test.filter(e=>!s.includes(e)),a=hd(o.filter(e=>"3D"!==e.trialType&&("egma-math"==Ja().task&&"0"==e.block_index||"egma-math"!==Ja().task)&&Number(e.difficulty)<=0),5),c="same-different-selection"===Ja().task?o:o.filter(e=>!a.includes(e));if(n={ipHeavy:r.ipHeavy,ipLight:r.ipLight,start:a,unnormed:s,cat:c},t){const e={practice:Ja().corpora.practice,stimulus:c};Ja("corpora",e)}else{const e={practice:Ja().corpora.practice,stimulus:r.test};Ja("corpora",e)}return n}function hd(e,t){const n=[],i=Va(e);for(let e=t;e>0;e--){const e=i.pop();void 0!==e&&n.push(e)}return n}function fd(e){const t=[];return e.forEach(e=>{const n=Number(e.block_index);null!=n&&(n>=t.length?t.push([e]):t[n].push(e))}),t}function gd(e,t){if(Ja().runCat){const n={a:1,b:e.difficulty,c:e.chanceLevel,d:1};if(!Number.isNaN(n.b)&&null!==n.b&&"practice_response"!==e.assessmentStage){const e=t?1:0;hu.updateAbilityEstimate(n,e)}}}const vd=e=>"string"==typeof e?e:e.join(", "),yd=(e,t,n,i)=>{const r=[];if(e.playAudioOnLoad)if(i.audioFile){const s=Ho(i.audioFile);t.audio[s]||r.push(`Missing audio asset: ${s}`),e.prompt.enabled&&!n[s]&&r.push(`Missing prompt for: ${s}`)}else r.push("Missing audioFile string");return e.isImageButtonResponse&&e.response.values.forEach(n=>{const i=Ho(n);i||r.push(`Missing image button string: ${i}`),t.images[i]||r.push(`Missing imageAsset: ${i}`),e.isStaggered&&!t.audio[i]&&r.push(`Missing audio for staggered button: ${i}`)}),r},bd=e=>e.map(e=>e.toString()),xd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,_d="8.55.0",wd=globalThis;function kd(e,t,n){const i=n||wd,r=i.__SENTRY__=i.__SENTRY__||{},s=r[_d]=r[_d]||{};return s[e]||(s[e]=t())}const Sd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Td=["debug","info","warn","error","log","assert","trace"],Ed={};function Cd(e){if(!("console"in wd))return e();const t=wd.console,n={},i=Object.keys(Ed);i.forEach(e=>{const i=Ed[e];n[e]=t[e],t[e]=i});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}const Id=kd("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Sd?Td.forEach(n=>{t[n]=(...t)=>{e&&Cd(()=>{wd.console[n](`Sentry Logger [${n}]:`,...t)})}}):Td.forEach(e=>{t[e]=()=>{}}),t}),jd="?",Od=/\(error: (.*)\)/,Ad=/captureMessage|captureException/;function Ld(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,i=0)=>{const r=[],s=e.split("\n");for(let e=n;e<s.length;e++){const n=s[e];if(n.length>1024)continue;const o=Od.test(n)?n.replace(Od,"$1"):n;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){r.push(t);break}}if(r.length>=50+i)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(Rd(t).function||"")&&t.pop();t.reverse(),Ad.test(Rd(t).function||"")&&(t.pop(),Ad.test(Rd(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||Rd(t).filename,function:e.function||jd}))}(r.slice(i))}}function Rd(e){return e[e.length-1]||{}}const Pd="<anonymous>";function Md(e){try{return e&&"function"==typeof e&&e.name||Pd}catch(e){return Pd}}function Nd(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){return}}}const Dd={},Fd={};function zd(e,t){Dd[e]=Dd[e]||[],Dd[e].push(t)}function $d(e,t){if(!Fd[e]){Fd[e]=!0;try{t()}catch(t){Sd&&Id.error(`Error while instrumenting ${e}`,t)}}}function Bd(e,t){const n=e&&Dd[e];if(n)for(const i of n)try{i(t)}catch(t){Sd&&Id.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Md(i)}\nError:`,t)}}let qd=null;function Ud(e){const t="error";zd(t,e),$d(t,Hd)}function Hd(){qd=wd.onerror,wd.onerror=function(e,t,n,i,r){return Bd("error",{column:i,error:r,line:n,msg:e,url:t}),!!qd&&qd.apply(this,arguments)},wd.onerror.__SENTRY_INSTRUMENTED__=!0}let Wd=null;function Vd(e){const t="unhandledrejection";zd(t,e),$d(t,Kd)}function Kd(){Wd=wd.onunhandledrejection,wd.onunhandledrejection=function(e){return Bd("unhandledrejection",e),!Wd||Wd.apply(this,arguments)},wd.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Yd(){return Gd(wd),wd}function Gd(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||_d,t[_d]=t[_d]||{}}const Jd=Object.prototype.toString;function Xd(e){switch(Jd.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return am(e,Error)}}function Zd(e,t){return Jd.call(e)===`[object ${t}]`}function Qd(e){return Zd(e,"ErrorEvent")}function em(e){return Zd(e,"DOMError")}function tm(e){return Zd(e,"String")}function nm(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function im(e){return null===e||nm(e)||"object"!=typeof e&&"function"!=typeof e}function rm(e){return Zd(e,"Object")}function sm(e){return"undefined"!=typeof Event&&am(e,Event)}function om(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function am(e,t){try{return e instanceof t}catch(e){return!1}}function cm(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const lm=wd;function um(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,r=[];let s=0,o=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<i&&(l=pm(n,u),!("html"===l||s>1&&o+r.length*c+l.length>=p));)r.push(l),o+=l.length,n=n.parentNode;return r.reverse().join(a)}catch(e){return"<unknown>"}}function pm(e,t){const n=e,i=[];if(!n||!n.tagName)return"";if(lm.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const r=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(r&&r.length)r.forEach(e=>{i.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const e=n.className;if(e&&tm(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}const s=["aria-label","type","name","title","alt"];for(const e of s){const t=n.getAttribute(e);t&&i.push(`[${e}="${t}"]`)}return i.join("")}function dm(){try{return lm.document.location.href}catch(e){return""}}function mm(e){if(!lm.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function hm(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function fm(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{cm(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function gm(e,t,n=!1){return!!tm(e)&&(Zd(t,"RegExp")?t.test(e):!!tm(t)&&(n?e===t:e.includes(t)))}function vm(e,t=[],n=!1){return t.some(t=>gm(e,t,n))}function ym(e,t,n){if(!(t in e))return;const i=e[t],r=n(i);"function"==typeof r&&xm(r,i);try{e[t]=r}catch(n){Sd&&Id.log(`Failed to replace method "${t}" in object`,e)}}function bm(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){Sd&&Id.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function xm(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,bm(e,"__sentry_original__",t)}catch(e){}}function _m(e){return e.__sentry_original__}function wm(e){if(Xd(e))return{message:e.message,name:e.name,stack:e.stack,...Sm(e)};if(sm(e)){const t={type:e.type,target:km(e.target),currentTarget:km(e.currentTarget),...Sm(e)};return"undefined"!=typeof CustomEvent&&am(e,CustomEvent)&&(t.detail=e.detail),t}return e}function km(e){try{return t=e,"undefined"!=typeof Element&&am(t,Element)?um(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function Sm(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Tm(e){return Em(e,new Map)}function Em(e,t){if(function(e){if(!rm(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.getOwnPropertyNames(e))void 0!==e[n]&&(i[n]=Em(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach(e=>{i.push(Em(e,t))}),i}return e}function Cm(){return Date.now()/1e3}const Im=function(){const{performance:e}=wd;if(!e||!e.now)return Cm;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),jm=(()=>{const{performance:e}=wd;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,s=r<t,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+n-i):t;return s||a<t?r<=a?e.timeOrigin:o:i})();function Om(){const e=wd,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function Am(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Lm(e){const{message:t,event_id:n}=e;if(t)return t;const i=Am(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function Rm(e,t,n){const i=e.exception=e.exception||{},r=i.values=i.values||[],s=r[0]=r[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function Pm(e,t){const n=Am(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}function Mm(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{bm(e,"__sentry_captured__",!0)}catch(e){}return!1}var Nm;function Dm(e){return new zm(t=>{t(e)})}function Fm(e){return new zm((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Nm||(Nm={}));let zm=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=Nm.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(e)}}then(t,n){return new e((e,i)=>{this._handlers.push([!1,n=>{if(t)try{e(t(n))}catch(e){i(e)}else e(n)},t=>{if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let i,r;return this.then(e=>{r=!1,i=e,t&&t()},e=>{r=!0,i=e,t&&t()}).then(()=>{r?n(i):e(i)})})}__init(){this._resolve=e=>{this._setResult(Nm.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Nm.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Nm.PENDING&&(om(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Nm.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===Nm.RESOLVED&&e[1](this._value),this._state===Nm.REJECTED&&e[2](this._value),e[0]=!0)})}}};function $m(e){const t=Im(),n={sid:Om(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Tm({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Bm(n,e),n}function Bm(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Im(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Om()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function qm(){return Om()}function Um(){return Om().substring(16)}function Hm(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const i={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=Hm(i[e],t[e],n-1));return i}const Wm="_sentrySpan";function Vm(e,t){t?bm(e,Wm,t):delete e[Wm]}function Km(e){return e[Wm]}class Ym{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:qm(),spanId:Um()}}clone(){const e=new Ym;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Vm(e,Km(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Bm(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,i]=t instanceof Gm?[t.getScopeData(),t.getRequestSession()]:rm(t)?[e,e.requestSession]:[],{tags:r,extra:s,user:o,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Vm(this,void 0),this._attachments=[],this.setPropagationContext({traceId:qm()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:Cm(),...e};return this._breadcrumbs.push(i),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Km(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Hm(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Um(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Om();if(!this._client)return Id.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n&&n.event_id?n.event_id:Om();if(!this._client)return Id.warn("No client configured on scope - will not capture message!"),i;const r=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:r,...n,event_id:i},this),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Om();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Id.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const Gm=Ym;class Jm{constructor(e,t){let n,i;n=e||new Gm,i=t||new Gm,this._stack=[{scope:n}],this._isolationScope=i}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return om(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Xm(){const e=Gd(Yd());return e.stack=e.stack||new Jm(kd("defaultCurrentScope",()=>new Gm),kd("defaultIsolationScope",()=>new Gm))}function Zm(e){return Xm().withScope(e)}function Qm(e,t){const n=Xm();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function eh(e){return Xm().withScope(()=>e(Xm().getIsolationScope()))}function th(e){const t=Gd(e);return t.acs?t.acs:{withIsolationScope:eh,withScope:Zm,withSetScope:Qm,withSetIsolationScope:(e,t)=>eh(t),getCurrentScope:()=>Xm().getScope(),getIsolationScope:()=>Xm().getIsolationScope()}}function nh(){return th(Yd()).getCurrentScope()}function ih(){return th(Yd()).getIsolationScope()}function rh(...e){const t=th(Yd());if(2===e.length){const[n,i]=e;return n?t.withSetScope(n,i):t.withScope(i)}return t.withScope(e[0])}function sh(){return nh().getClient()}function oh(e){const t=e.getPropagationContext(),{traceId:n,spanId:i,parentSpanId:r}=t;return Tm({trace_id:n,span_id:i,parent_span_id:r})}function ah(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[e,i]]of t){(n[e]||(n[e]=[])).push(Tm(i))}return n}const ch="sentry.source",lh="sentry.sample_rate",uh="sentry.op",ph="sentry.origin",dh="sentry.idle_span_finish_reason",mh="sentry.measurement_unit",hh="sentry.measurement_value",fh="sentry.custom_span_name",gh="sentry.exclusive_time";function vh(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}const yh="sentry-",bh=/^sentry-/;function xh(e){const t=function(e){if(!e||!tm(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce((e,t)=>{const n=wh(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{});return wh(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(bh)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function _h(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce((e,[t,n],i)=>{const r=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===i?r:`${e},${r}`;return s.length>8192?(Sd&&Id.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${yh}${t}`]=n),e),{}))}function wh(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}const kh=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Sh(e,t){const n=function(e){if(!e)return;const t=e.match(kh);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),i=xh(t);if(!n||!n.traceId)return{traceId:qm(),spanId:Um()};const{traceId:r,parentSpanId:s,parentSampled:o}=n;return{traceId:r,parentSpanId:s,spanId:Um(),sampled:o,dsc:i||{}}}function Th(e=qm(),t=Um(),n){let i="";return void 0!==n&&(i=n?"-1":"-0"),`${e}-${t}${i}`}let Eh=!1;function Ch(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:r,parent_span_id:s,status:o,origin:a}=Ah(e);return Tm({parent_span_id:s,span_id:t,trace_id:n,data:i,op:r,status:o,origin:a})}function Ih(e){const{spanId:t,traceId:n,isRemote:i}=e.spanContext();return Tm({parent_span_id:i?t:Ah(e).parent_span_id,span_id:i?Um():t,trace_id:n})}function jh(e){return"number"==typeof e?Oh(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Oh(e.getTime()):Im()}function Oh(e){return e>9999999999?e/1e3:e}function Ah(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:i,startTime:r,name:s,endTime:o,parentSpanId:a,status:c}=e;return Tm({span_id:t,trace_id:n,data:i,description:s,parent_span_id:a,start_timestamp:jh(r),timestamp:jh(o)||void 0,status:Rh(c),op:i[uh],origin:i[ph],_metrics_summary:ah(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function Lh(e){const{traceFlags:t}=e.spanContext();return 1===t}function Rh(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const Ph="_sentryChildSpans",Mh="_sentryRootSpan";function Nh(e,t){const n=e[Mh]||e;bm(t,Mh,n),e[Ph]?e[Ph].add(t):bm(e,Ph,new Set([t]))}function Dh(e){const t=new Set;return function e(n){if(!t.has(n)&&Lh(n)){t.add(n);const i=n[Ph]?Array.from(n[Ph]):[];for(const t of i)e(t)}}(e),Array.from(t)}function Fh(e){return e[Mh]||e}function zh(){const e=th(Yd());return e.getActiveSpan?e.getActiveSpan():Km(nh())}function $h(){Eh||(Cd(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),Eh=!0)}let Bh=!1;function qh(){const e=zh(),t=e&&Fh(e);if(t){const e="internal_error";xd&&Id.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}qh.tag="sentry_tracingErrorCallback";const Uh="_sentryScope",Hh="_sentryIsolationScope";function Wh(e){return{scope:e[Uh],isolationScope:e[Hh]}}function Vh(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=sh(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class Kh{constructor(e={}){this._traceId=e.traceId||qm(),this._spanId=e.spanId||Um()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}const Yh="production",Gh="_frozenDsc";function Jh(e,t){bm(e,Gh,t)}function Xh(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},r=Tm({environment:n.environment||Yh,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",r),r}function Zh(e,t){const n=t.getPropagationContext();return n.dsc||Xh(n.traceId,e)}function Qh(e){const t=sh();if(!t)return{};const n=Fh(e),i=n[Gh];if(i)return i;const r=n.spanContext().traceState,s=r&&r.get("sentry.dsc"),o=s&&xh(s);if(o)return o;const a=Xh(e.spanContext().traceId,t),c=Ah(n),l=c.data||{},u=l[lh];null!=u&&(a.sample_rate=`${u}`);const p=l[ch],d=c.description;return"url"!==p&&d&&(a.transaction=d),Vh()&&(a.sampled=String(Lh(n))),t.emit("createDsc",a,n),a}function ef(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;xd&&Id.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}const tf=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function nf(e,t=!1){const{host:n,path:i,pass:r,port:s,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&r?`:${r}`:""}@${n}${s?`:${s}`:""}/${i?`${i}/`:i}${o}`}function rf(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function sf(e){const t="string"==typeof e?function(e){const t=tf.exec(e);if(!t)return void Cd(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,i,r="",s="",o="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return rf({host:s,pass:r,path:c,projectId:l,port:o,protocol:n,publicKey:i})}(e):rf(e);if(t&&function(e){if(!Sd)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(Id.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(Id.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Id.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(Id.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function of(e,t=100,n=1/0){try{return cf("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function af(e,t=3,n=102400){const i=of(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?af(e,t-1,n):i;var r}function cf(e,t,n=1/0,i=1/0,r=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[s,o]=r;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(cm(t))return"[VueViewModel]";if(rm(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${Md(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const i=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(s(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return cf("",l.toJSON(),c-1,i,r)}catch(e){}const u=Array.isArray(t)?[]:{};let p=0;const d=wm(t);for(const e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(p>=i){u[e]="[MaxProperties ~]";break}const t=d[e];u[e]=cf(e,t,c-1,i,r),p++}return o(t),u}function lf(e,t=[]){return[e,t]}function uf(e,t){const[n,i]=e;return[n,[...i,t]]}function pf(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function df(e){return wd.__SENTRY__&&wd.__SENTRY__.encodePolyfill?wd.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function mf(e){const[t,n]=e;let i=JSON.stringify(t);function r(e){"string"==typeof i?i="string"==typeof e?i+e:[df(i),e]:i.push("string"==typeof e?df(e):e)}for(const e of n){const[t,n]=e;if(r(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)r(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(of(n))}r(e)}}return"string"==typeof i?i:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let i=0;for(const t of e)n.set(t,i),i+=t.length;return n}(i)}function hf(e){return[{type:"span"},e]}function ff(e){const t="string"==typeof e.data?df(e.data):e.data;return[Tm({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const gf={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function vf(e){return gf[e]}function yf(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function bf(e,t,n,i){const r=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:nf(i)},...r&&{trace:Tm({...r})}}}function xf(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const n=e.attributes||{},i=n[mh],r=n[hh];"string"==typeof i&&"number"==typeof r&&(t[e.name]={value:r,unit:i})}),t}class _f{constructor(e={}){this._traceId=e.traceId||qm(),this._spanId=e.spanId||Um(),this._startTime=e.startTimestamp||Im(),this._attributes={},this.setAttributes({[ph]:"manual",[uh]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=jh(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(ch,"custom"),this}end(e){this._endTime||(this._endTime=jh(e),function(e){if(!xd)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Ah(e),{spanId:i}=e.spanContext(),r=`[Tracing] Finishing "${n}" ${Fh(e)===e?"root ":""}span "${t}" with ID ${i}`;Id.log(r)}(this),this._onSpanEnded())}getSpanJSON(){return Tm({data:this._attributes,description:this._name,op:this._attributes[uh],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Rh(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ph],_metrics_summary:ah(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[gh],measurements:xf(this._events),is_segment:this._isStandaloneSpan&&Fh(this)===this||void 0,segment_id:this._isStandaloneSpan?Fh(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){xd&&Id.log("[Tracing] Adding an event to span:",e);const i=wf(t)?t:n||Im(),r=wf(t)?{}:t||{},s={name:e,time:jh(i),attributes:r};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=sh();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===Fh(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=sh();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){const n=Qh(e[0]),i=t&&t.getDsn(),r=t&&t.getOptions().tunnel,s={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!r&&i&&{dsn:nf(i)}},o=t&&t.getOptions().beforeSendSpan,a=o?e=>{const t=o(Ah(e));return t||$h(),t}:e=>Ah(e),c=[];for(const t of e){const e=a(t);e&&c.push(hf(e))}return lf(s,c)}([this],e)):(xd&&Id.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){(Wh(this).scope||nh()).captureEvent(t)}}_convertSpanToTransaction(){if(!kf(Ah(this)))return;this._name||(xd&&Id.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=Wh(this),n=(e||nh()).getClient()||sh();if(!0!==this._sampled)return xd&&Id.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const i=Dh(this).filter(e=>e!==this&&!function(e){return e instanceof _f&&e.isStandaloneSpan()}(e)).map(e=>Ah(e)).filter(kf),r=this._attributes[ch];delete this._attributes[fh],i.forEach(e=>{e.data&&delete e.data[fh]});const s={contexts:{trace:Ch(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...Tm({dynamicSamplingContext:Qh(this)})},_metrics_summary:ah(this),...r&&{transaction_info:{source:r}}},o=xf(this._events);return o&&Object.keys(o).length&&(xd&&Id.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),s.measurements=o),s}}function wf(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function kf(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const Sf="__SENTRY_SUPPRESS_TRACING__";function Tf(e){const t=Cf();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=function(e){const t=e.experimental||{},n={isStandalone:t.standalone,...e};if(e.startTime){const t={...n};return t.startTimestamp=jh(e.startTime),delete t.startTime,t}return n}(e),{forceTransaction:i,parentSpan:r}=e;return(e.scope?t=>rh(e.scope,t):void 0!==r?e=>Ef(r,e):e=>e())(()=>{const t=nh(),r=function(e){const t=Km(e);if(!t)return;const n=sh(),i=n?n.getOptions():{};if(i.parentSpanIsAlwaysRootSpan)return Fh(t);return t}(t);return e.onlyIfParent&&!r?new Kh:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:i}){if(!Vh())return new Kh;const r=ih();let s;if(e&&!n)s=function(e,t,n){const{spanId:i,traceId:r}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[Sf]&&Lh(e),o=s?new _f({...n,parentSpanId:i,traceId:r,sampled:s}):new Kh({traceId:r});Nh(e,o);const a=sh();a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o));return o}(e,i,t),Nh(e,s);else if(e){const n=Qh(e),{traceId:r,spanId:o}=e.spanContext(),a=Lh(e);s=If({traceId:r,parentSpanId:o,...t},i,a),Jh(s,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:a}={...r.getPropagationContext(),...i.getPropagationContext()};s=If({traceId:e,parentSpanId:o,...t},i,a),n&&Jh(s,n)}return function(e){if(!xd)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:i}=Ah(e),{spanId:r}=e.spanContext(),s=Lh(e),o=Fh(e),a=o===e,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${r}`];if(i&&l.push(`parent ID: ${i}`),!a){const{op:e,description:t}=Ah(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}Id.log(`${c}\n ${l.join("\n ")}`)}(s),function(e,t,n){e&&(bm(e,Hh,n),bm(e,Uh,t))}(s,i,r),s}({parentSpan:r,spanArguments:n,forceTransaction:i,scope:t})})}function Ef(e,t){const n=Cf();return n.withActiveSpan?n.withActiveSpan(e,t):rh(n=>(Vm(n,e||void 0),t(n)))}function Cf(){return th(Yd())}function If(e,t,n){const i=sh(),r=i&&i.getOptions()||{},{name:s="",attributes:o}=e,[a,c]=t.getScopeData().sdkProcessingMetadata[Sf]?[!1]:function(e,t){if(!Vh(e))return[!1];const n=ih().getScopeData().sdkProcessingMetadata.normalizedRequest,i={...t,normalizedRequest:t.normalizedRequest||n};let r;r="function"==typeof e.tracesSampler?e.tracesSampler(i):void 0!==i.parentSampled?i.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const s=ef(r);return void 0===s?(xd&&Id.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):s?Math.random()<s?[!0,s]:(xd&&Id.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[!1,s]):(xd&&Id.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,s])}(r,{name:s,parentSampled:n,attributes:o,transactionContext:{name:s,parentSampled:n}}),l=new _f({...e,attributes:{[ch]:"custom",...e.attributes},sampled:a});return void 0!==c&&l.setAttribute(lh,c),i&&i.emit("spanStart",l),l}const jf={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function Of(e,t={}){const n=new Map;let i,r=!1,s="externalFinish",o=!t.disableAutoFinish;const a=[],{idleTimeout:c=jf.idleTimeout,finalTimeout:l=jf.finalTimeout,childSpanTimeout:u=jf.childSpanTimeout,beforeSpanEnd:p}=t,d=sh();if(!d||!Vh())return new Kh;const m=nh(),h=zh(),f=function(e){const t=Tf(e);return Vm(nh(),t),xd&&Id.log("[Tracing] Started span is an idle span"),t}(e);function g(){i&&(clearTimeout(i),i=void 0)}function v(e){g(),i=setTimeout(()=>{!r&&0===n.size&&o&&(s="idleTimeout",f.end(e))},c)}function y(e){i=setTimeout(()=>{!r&&o&&(s="heartbeatFailed",f.end(e))},u)}function b(e){r=!0,n.clear(),a.forEach(e=>e()),Vm(m,h);const t=Ah(f),{start_timestamp:i}=t;if(!i)return;(t.data||{})[dh]||f.setAttribute(dh,s),Id.log(`[Tracing] Idle span "${t.op}" finished`);const o=Dh(f).filter(e=>e!==f);let u=0;o.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),xd&&Id.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=Ah(t),{timestamp:i=0,start_timestamp:r=0}=n,s=r<=e,o=i-r<=(l+c)/1e3;if(xd){const e=JSON.stringify(t,void 0,2);s?o||Id.log("[Tracing] Discarding span since it finished after idle span final timeout",e):Id.log("[Tracing] Discarding span since it happened after idle span was finished",e)}o&&s||(!function(e,t){e[Ph]&&e[Ph].delete(t)}(f,t),u++)}),u>0&&f.setAttribute("sentry.idle_span_discarded_spans",u)}return f.end=new Proxy(f.end,{apply(e,t,n){p&&p(f);const[i,...r]=n,s=jh(i||Im()),o=Dh(f).filter(e=>e!==f);if(!o.length)return b(s),Reflect.apply(e,t,[s,...r]);const a=o.map(e=>Ah(e).timestamp).filter(e=>!!e),c=a.length?Math.max(...a):void 0,u=Ah(f).start_timestamp,d=Math.min(u?u+l/1e3:1/0,Math.max(u||-1/0,Math.min(s,c||1/0)));return b(d),Reflect.apply(e,t,[d,...r])}}),a.push(d.on("spanStart",e=>{if(r||e===f||Ah(e).timestamp)return;var t;Dh(f).includes(e)&&(t=e.spanContext().spanId,g(),n.set(t,!0),y(Im()+u/1e3))})),a.push(d.on("spanEnd",e=>{var t;r||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&v(Im()+c/1e3))})),a.push(d.on("idleSpanEnableAutoFinish",e=>{e===f&&(o=!0,v(),n.size&&y())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(f.setStatus({code:2,message:"deadline_exceeded"}),s="finalTimeout",f.end())},l),f}function Af(e,t,n,i=0){return new zm((r,s)=>{const o=e[i];if(null===t||"function"!=typeof o)r(t);else{const a=o({...t},n);xd&&o.id&&null===a&&Id.log(`Event processor "${o.id}" dropped event`),om(a)?a.then(t=>Af(e,t,n,i+1).then(r)).then(null,s):Af(e,a,n,i+1).then(r).then(null,s)}})}let Lf,Rf,Pf;function Mf(e,t){const{fingerprint:n,span:i,breadcrumbs:r,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:i,user:r,contexts:s,level:o,transactionName:a}=t,c=Tm(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Tm(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Tm(r);u&&Object.keys(u).length&&(e.user={...u,...e.user});const p=Tm(s);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts});o&&(e.level=o);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),i&&function(e,t){e.contexts={trace:Ih(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Qh(t),...e.sdkProcessingMetadata};const n=Fh(t),i=Ah(n).description;i&&!e.transaction&&"transaction"===e.type&&(e.transaction=i)}(e,i),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,r),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,s)}function Nf(e,t){const{extra:n,tags:i,user:r,contexts:s,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:p,propagationContext:d,transactionName:m,span:h}=t;Df(e,"extra",n),Df(e,"tags",i),Df(e,"user",r),Df(e,"contexts",s),e.sdkProcessingMetadata=Hm(e.sdkProcessingMetadata,a,2),o&&(e.level=o),m&&(e.transactionName=m),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...d}}function Df(e,t,n){e[t]=Hm(e[t],n,1)}function Ff(e,t,n,i,r,s){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Om(),timestamp:t.timestamp||Cm()},l=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:i,dist:r,maxValueLength:s=250}=t;e.environment=e.environment||n||Yh,!e.release&&i&&(e.release=i);!e.dist&&r&&(e.dist=r);e.message&&(e.message=hm(e.message,s));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=hm(o.value,s));const a=e.request;a&&a.url&&(a.url=hm(a.url,s))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),r&&r.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=wd._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return Pf&&n.length===Rf||(Rf=n.length,Pf=n.reduce((n,i)=>{Lf||(Lf={});const r=Lf[i];if(r)n[r[0]]=r[1];else{const r=e(i);for(let e=r.length-1;e>=0;e--){const s=r[e],o=s&&s.filename,a=t[i];if(o&&a){n[o]=a,Lf[i]=[o,a];break}}}return n},{})),Pf}(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch(e){}}(c,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new Gm;return n.update(t),n}(i,n.captureContext);n.mechanism&&Pm(c,n.mechanism);const p=r?r.getEventProcessors():[],d=kd("globalScope",()=>new Gm).getScopeData();if(s){Nf(d,s.getScopeData())}if(u){Nf(d,u.getScopeData())}const m=[...n.attachments||[],...d.attachments];m.length&&(n.attachments=m),Mf(c,d);return Af([...p,...d.eventProcessors],c,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof o&&o>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:of(e.data,t,n)}}))},...e.user&&{user:of(e.user,t,n)},...e.contexts&&{contexts:of(e.contexts,t,n)},...e.extra&&{extra:of(e.extra,t,n)}};e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=of(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map(e=>({...e,...e.data&&{data:of(e.data,t,n)}})));e.contexts&&e.contexts.flags&&i.contexts&&(i.contexts.flags=of(e.contexts.flags,3,n));return i}(e,o,a):e))}function zf(e){if(e)return function(e){return e instanceof Gm||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>$f.includes(e))}(e)?{captureContext:e}:e}const $f=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Bf(e,t){return nh().captureException(e,zf(t))}function qf(e,t){return nh().captureEvent(e,t)}function Uf(e,t){ih().setContext(e,t)}function Hf(e){const t=sh(),n=ih(),i=nh(),{release:r,environment:s=Yh}=t&&t.getOptions()||{},{userAgent:o}=wd.navigator||{},a=$m({release:r,environment:s,user:i.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&"ok"===c.status&&Bm(c,{status:"exited"}),Wf(),n.setSession(a),i.setSession(a),a}function Wf(){const e=ih(),t=nh(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Bm(e,n)}(n),Vf(),e.setSession(),t.setSession()}function Vf(){const e=ih(),t=nh(),n=sh(),i=t.getSession()||e.getSession();i&&n&&n.captureSession(i)}function Kf(e=!1){e?Wf():Vf()}function Yf(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}const Gf=[];function Jf(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))i=[...t,...n];else if("function"==typeof n){const e=n(t);i=Array.isArray(e)?e:[e]}else i=t;const r=function(e){const t={};return e.forEach(e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(i),s=r.findIndex(e=>"Debug"===e.name);if(s>-1){const[e]=r.splice(s,1);r.push(e)}return r}function Xf(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Zf(e,t,n){if(n[t.name])xd&&Id.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Gf.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Gf.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,i)=>n(t,i,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),i=Object.assign((t,i)=>n(t,i,e),{id:t.name});e.addEventProcessor(i)}xd&&Id.log(`Integration installed: ${t.name}`)}}class Qf extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}const eg="Not capturing exception because it's already been captured.";class tg{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=sf(e.dsn):xd&&Id.warn("No DSN provided, client will not send events."),this._dsn){const t=Yf(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}const t=["enableTracing","tracesSampleRate","tracesSampler"].find(t=>t in e&&null==e[t]);t&&Cd(()=>{console.warn(`[Sentry] Deprecation warning: \`${t}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,t,n){const i=Om();if(Mm(e))return xd&&Id.log(eg),i;const r={event_id:i,...t};return this._process(this.eventFromException(e,r).then(e=>this._captureEvent(e,r,n))),r.event_id}captureMessage(e,t,n,i){const r={event_id:Om(),...n},s=nm(e)?e:String(e),o=im(e)?this.eventFromMessage(s,t,r):this.eventFromException(e,r);return this._process(o.then(e=>this._captureEvent(e,r,i))),r.event_id}captureEvent(e,t,n){const i=Om();if(t&&t.originalException&&Mm(t.originalException))return xd&&Id.log(eg),i;const r={event_id:i,...t},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,r,s||n)),r.event_id}captureSession(e){"string"!=typeof e.release?xd&&Id.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Bm(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):Dm(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Zf(this,e,this._integrations),t||Xf(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,i){const r=yf(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const o=bf(e,r,i,t);return delete e.sdkProcessingMetadata,lf(o,[[{type:s},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=uf(n,ff(e));const i=this.sendEnvelope(n);i&&i.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){const t=function(e,t,n,i){const r=yf(n);return lf({sent_at:(new Date).toISOString(),...r&&{sdk:r},...!!i&&t&&{dsn:nf(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const i="number"==typeof n?n:1,r=`${e}:${t}`;xd&&Id.log(`Recording outcome: "${r}"${i>1?` (${i} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+i}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(xd&&Id.error("Error while sending envelope:",e),e)):(xd&&Id.error("Transport disabled"),Dm({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&Zf(e,t,n)}),n}(this,e),Xf(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,i=!1;const r=t.exception&&t.exception.values;if(r){i=!0;for(const e of r){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Bm(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new zm(t=>{let n=0;const i=setInterval(()=>{0==this._numProcessing?(clearInterval(i),t(!0)):(n+=1,e&&n>=e&&(clearInterval(i),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n=nh(),i=ih()){const r=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),Ff(r,e,t,n,this,i).then(e=>{if(null===e)return e;e.contexts={trace:oh(n),...e.contexts};const t=Zh(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:t,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{xd&&(e instanceof Qf&&"log"===e.logLevel?Id.log(e.message):Id.warn(e))})}_processEvent(e,t,n){const i=this.getOptions(),{sampleRate:r}=i,s=ig(e),o=ng(e),a=e.type||"error",c=`before send for type \`${a}\``,l=void 0===r?void 0:ef(r);if(o&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),Fm(new Qf(`Discarding event because it's not included in the random sample (sampling rate = ${r})`,"log"));const u="replay_event"===a?"replay":a,p=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,p).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new Qf("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const r=function(e,t,n,i){const{beforeSend:r,beforeSendTransaction:s,beforeSendSpan:o}=t;if(ng(n)&&r)return r(n,i);if(ig(n)){if(n.spans&&o){const t=[];for(const i of n.spans){const n=o(i);n?t.push(n):($h(),e.recordDroppedEvent("before_send","span"))}n.spans=t}if(s){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(n,i)}}return n}(this,i,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(om(e))return e.then(e=>{if(!rm(e)&&null!==e)throw new Qf(n);return e},e=>{throw new Qf(`${t} rejected with ${e}`)});if(!rm(e)&&null!==e)throw new Qf(n);return e}(r,c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",u,e),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Qf(`${c} returned \`null\`, will not send event.`,"log")}const r=n&&n.getSession();if(!s&&r&&this._updateSessionFromEvent(r,i),s){const e=(i.sdkProcessingMetadata&&i.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const o=i.transaction_info;if(s&&o&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...o,source:e}}return this.sendEvent(i,t),i}).then(null,e=>{if(e instanceof Qf)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Qf(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,i]=e.split(":");return{reason:n,category:i,quantity:t}})}_flushOutcomes(){xd&&Id.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(xd&&Id.log("No outcomes to send"));if(!this._dsn)return void(xd&&Id.log("No dsn provided, will not send outcomes"));xd&&Id.log("Sending outcomes:",e);const t=(n=e,lf((i=this._options.tunnel&&nf(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:r||Cm(),discarded_events:n}]]));var n,i,r;this.sendEnvelope(t)}}function ng(e){return void 0===e.type}function ig(e){return"transaction"===e.type}function rg(e,t){!0===t.debug&&(xd?Id.enable():Cd(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));nh().update(t.initialScope);const n=new e(t);return function(e){nh().setClient(e)}(n),n.init(),n}function sg(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(i){if(!(void 0===e||t.length<e))return Fm(new Qf("Not adding Promise because buffer limit was reached."));const r=i();return-1===t.indexOf(r)&&t.push(r),r.then(()=>n(r)).then(null,()=>n(r).then(null,()=>{})),r},drain:function(e){return new zm((n,i)=>{let r=t.length;if(!r)return n(!0);const s=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{Dm(e).then(()=>{--r||(clearTimeout(s),n(!0))},i)})})}}}function og(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function ag(e,{statusCode:t,headers:n},i=Date.now()){const r={...e},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,s]=e.split(":",5),o=parseInt(t,10),a=1e3*(isNaN(o)?60:o);if(n)for(const e of n.split(";"))"metric_bucket"===e&&s&&!s.split(";").includes("custom")||(r[e]=i+a);else r.all=i+a}else o?r.all=i+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?6e4:i-t}(o,i):429===t&&(r.all=i+6e4);return r}function cg(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function lg(e,t){const n=t&&t.getDsn(),i=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return ug(e)===ug(t)}(e,i)}function ug(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function pg(e={}){const t=sh();if(!function(){const e=sh();return!!e&&!1!==e.getOptions().enabled&&!!e.getTransport()}()||!t)return{};const n=th(Yd());if(n.getTraceData)return n.getTraceData(e);const i=nh(),r=e.span||zh(),s=r?function(e){const{traceId:t,spanId:n}=e.spanContext();return Th(t,n,Lh(e))}(r):function(e){const{traceId:t,sampled:n,spanId:i}=e.getPropagationContext();return Th(t,i,n)}(i),o=_h(r?Qh(r):Zh(t,i));return kh.test(s)?{"sentry-trace":s,baggage:o}:(Id.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}const dg=100;function mg(e,t){const n=sh(),i=ih();if(!n)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:s=dg}=n.getOptions();if(s<=0)return;const o={timestamp:Cm(),...e},a=r?Cd(()=>r(o,t)):o;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),i.addBreadcrumb(a,s))}let hg;const fg=new WeakMap,gg=()=>({name:"FunctionToString",setupOnce(){hg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=_m(this),n=fg.has(sh())&&void 0!==t?t:this;return hg.apply(n,e)}}catch(e){}},setup(e){fg.set(e,!0)}}),vg=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],yg=(e={})=>({name:"InboundFilters",processEvent(t,n,i){const r=i.getOptions(),s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:vg],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return xd&&Id.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Lm(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some(e=>vm(e,t))}(e,t.ignoreErrors))return xd&&Id.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Lm(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return xd&&Id.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Lm(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&vm(n,t)}(e,t.ignoreTransactions))return xd&&Id.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Lm(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=bg(e);return!!n&&vm(n,t)}(e,t.denyUrls))return xd&&Id.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Lm(e)}.\nUrl: ${bg(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=bg(e);return!n||vm(n,t)}(e,t.allowUrls))return xd&&Id.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Lm(e)}.\nUrl: ${bg(e)}`),!0;return!1}(t,s)?null:t}});function bg(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return xd&&Id.error(`Cannot extract url for event ${Lm(e)}`),null}}function xg(e,t,n=250,i,r,s,o){if(!(s.exception&&s.exception.values&&o&&am(o.originalException,Error)))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,l;a&&(s.exception.values=(c=_g(e,t,r,o.originalException,i,s.exception.values,a,0),l=n,c.map(e=>(e.value&&(e.value=hm(e.value,l)),e))))}function _g(e,t,n,i,r,s,o,a){if(s.length>=n+1)return s;let c=[...s];if(am(i[r],Error)){wg(o,a);const s=e(t,i[r]),l=c.length;kg(s,r,l,a),c=_g(e,t,n,i[r],r,[s,...c],s,l)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if(am(i,Error)){wg(o,a);const l=e(t,i),u=c.length;kg(l,`errors[${s}]`,u,a),c=_g(e,t,n,i,r,[l,...c],l,u)}}),c}function wg(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function kg(e,t,n,i){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:i}}function Sg(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:i,relative:t[5]+n+i}}function Tg(){"console"in wd&&Td.forEach(function(e){e in wd.console&&ym(wd.console,e,function(t){return Ed[e]=t,function(...t){Bd("console",{args:t,level:e});const n=Ed[e];n&&n.apply(wd.console,t)}})})}function Eg(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Cg=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,i=t.message;if(!n&&!i)return!1;if(n&&!i||!n&&i)return!1;if(n!==i)return!1;if(!jg(e,t))return!1;if(!Ig(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=Og(t),i=Og(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!jg(e,t))return!1;if(!Ig(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return xd&&Id.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Ig(e,t){let n=Nd(e),i=Nd(t);if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;if(i.length!==n.length)return!1;for(let e=0;e<i.length;e++){const t=i[e],r=n[e];if(t.filename!==r.filename||t.lineno!==r.lineno||t.colno!==r.colno||t.function!==r.function)return!1}return!0}function jg(e,t){let n=e.fingerprint,i=t.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;try{return!(n.join("")!==i.join(""))}catch(e){return!1}}function Og(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ag(e,t,n,i,r="auto.http.browser"){if(!e.fetchData)return;const s=Vh()&&t(e.fetchData.url);if(e.endTimestamp&&s){const t=e.fetchData.__span;if(!t)return;const n=i[t];return void(n&&(!function(e,t){if(t.response){vh(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(n,e),delete i[t]))}const{method:o,url:a}=e.fetchData,c=function(e){try{return new URL(e).href}catch(e){return}}(a),l=c?Sg(c).host:void 0,u=!!zh(),p=s&&u?Tf({name:`${o} ${a}`,attributes:{url:a,type:"fetch","http.method":o,"http.url":c,"server.address":l,[ph]:r,[uh]:"http.client"}}):new Kh;if(e.fetchData.__span=p.spanContext().spanId,i[p.spanContext().spanId]=p,n(e.fetchData.url)){const t=e.args[0],n=e.args[1]||{},i=function(e,t,n){const i=pg({span:n}),r=i["sentry-trace"],s=i.baggage;if(!r)return;const o=t.headers||(function(e){return"undefined"!=typeof Request&&am(e,Request)}(e)?e.headers:void 0);if(o){if(function(e){return"undefined"!=typeof Headers&&am(e,Headers)}(o)){const e=new Headers(o);if(e.set("sentry-trace",r),s){const t=e.get("baggage");if(t){const n=Lg(t);e.set("baggage",n?`${n},${s}`:s)}else e.set("baggage",s)}return e}if(Array.isArray(o)){const e=[...o.filter(e=>!(Array.isArray(e)&&"sentry-trace"===e[0])).map(e=>{if(Array.isArray(e)&&"baggage"===e[0]&&"string"==typeof e[1]){const[t,n,...i]=e;return[t,Lg(n),...i]}return e}),["sentry-trace",r]];return s&&e.push(["baggage",s]),e}{const e="baggage"in o?o.baggage:void 0;let t=[];return Array.isArray(e)?t=e.map(e=>"string"==typeof e?Lg(e):e).filter(e=>""===e):e&&t.push(Lg(e)),s&&t.push(s),{...o,"sentry-trace":r,baggage:t.length>0?t.join(","):void 0}}}return{...i}}(t,n,Vh()&&u?p:void 0);i&&(e.args[1]=n,n.headers=i)}return p}function Lg(e){return e.split(",").filter(e=>!e.split("=")[0].startsWith(yh)).join(",")}function Rg(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const Pg=wd;function Mg(){if(!("fetch"in Pg))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function Ng(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Dg(e,t){const n="fetch";zd(n,e),$d(n,()=>Fg(void 0,t))}function Fg(e,t=!1){t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!Mg())return!1;if(Ng(Pg.fetch))return!0;let e=!1;const t=Pg.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Ng(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Sd&&Id.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||ym(wd,"fetch",function(t){return function(...n){const i=new Error,{method:r,url:s}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Bg(t),method:$g(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Bg(t),method:$g(t,"method")?String(t.method).toUpperCase():"GET"}}(n),o={args:n,fetchData:{method:r,url:s},startTimestamp:1e3*Im(),virtualError:i};return e||Bd("fetch",{...o}),t.apply(wd,n).then(async t=>(e?e(t):Bd("fetch",{...o,endTimestamp:1e3*Im(),response:t}),t),e=>{throw Bd("fetch",{...o,endTimestamp:1e3*Im(),error:e}),Xd(e)&&void 0===e.stack&&(e.stack=i.stack,bm(e,"framesToPop",1)),e})}})}function zg(e){let t;try{t=e.clone()}catch(e){return}!async function(e,t){if(e&&e.body){const n=e.body,i=n.getReader(),r=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4);let s=!0;for(;s;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:r}=await i.read();clearTimeout(e),r&&(t(),s=!1)}catch(e){s=!1}finally{clearTimeout(e)}}clearTimeout(r),i.releaseLock(),n.cancel().then(null,()=>{})}}(t,()=>{Bd("fetch-body-resolved",{endTimestamp:1e3*Im(),response:e})})}function $g(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Bg(e){return"string"==typeof e?e:e?$g(e,"url")?e.url:e.toString?e.toString():"":""}function qg(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Ug(){return"undefined"!=typeof window&&(!qg()||function(){const e=wd.process;return!!e&&"renderer"===e.type}())}const Hg=wd;function Wg(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],s=e[i+1];if(i+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=s(n)):"call"!==r&&"optionalCall"!==r||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}const Vg=wd;let Kg=0;function Yg(){return Kg>0}function Gg(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(_m(e))return e}catch(t){return e}const n=function(...n){try{const i=n.map(e=>Gg(e,t));return e.apply(this,i)}catch(e){throw Kg++,setTimeout(()=>{Kg--}),rh(i=>{i.addEventProcessor(e=>(t.mechanism&&(Rm(e,void 0,void 0),Pm(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Bf(e)}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(e){}xm(n,e),bm(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(e){}return n}const Jg="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Xg(e,t){const n=ev(e,t),i={type:iv(t),value:rv(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Zg(e,t,n,i){const r=sh(),s=r&&r.getOptions().normalizeDepth,o=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return}(t),a={__serialized__:af(t,s)};if(o)return{exception:{values:[Xg(e,o)]},extra:a};const c={exception:{values:[{type:sm(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:av(t,{isUnhandledRejection:i})}]},extra:a};if(n){const t=ev(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Qg(e,t){return{exception:{values:[Xg(e,t)]}}}function ev(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e&&tv.test(e.message))return 1;return 0}(t),r=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,i,r)}catch(e){}return[]}const tv=/Minified React error #\d+;/i;function nv(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function iv(e){const t=e&&e.name;if(!t&&nv(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function rv(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:nv(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function sv(e,t,n,i,r){let s;if(Qd(t)&&t.error){return Qg(e,t.error)}if(em(t)||Zd(t,"DOMException")){const r=t;if("stack"in t)s=Qg(e,t);else{const t=r.name||(em(r)?"DOMError":"DOMException"),o=r.message?`${t}: ${r.message}`:t;s=ov(e,o,n,i),Rm(s,o)}return"code"in r&&(s.tags={...s.tags,"DOMException.code":`${r.code}`}),s}if(Xd(t))return Qg(e,t);if(rm(t)||sm(t)){return s=Zg(e,t,n,r),Pm(s,{synthetic:!0}),s}return s=ov(e,t,n,i),Rm(s,`${t}`,void 0),Pm(s,{synthetic:!0}),s}function ov(e,t,n,i){const r={};if(i&&n){const i=ev(e,n);i.length&&(r.exception={values:[{value:t,stacktrace:{frames:i}}]}),Pm(r,{synthetic:!0})}if(nm(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return r.logentry={message:e,params:n},r}return r.message=t,r}function av(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(wm(e));n.sort();const i=n[0];if(!i)return"[object has no keys]";if(i.length>=t)return hm(i,t);for(let e=n.length;e>0;e--){const i=n.slice(0,e).join(", ");if(!(i.length>t))return e===n.length?i:hm(i,t)}return""}(e),i=t?"promise rejection":"exception";if(Qd(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(sm(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${i}`}return`Object captured as ${i} with keys: ${n}`}class cv extends tg{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};!function(e,t,n=[t],i="npm"){const r=e._metadata||{};r.sdk||(r.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${i}:@sentry/${e}`,version:_d})),version:_d}),e._metadata=r}(t,"browser",["browser"],Vg.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Vg.document&&Vg.document.addEventListener("visibilitychange",()=>{"hidden"===Vg.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,i){const r=sv(e,t,n&&n.syntheticException||void 0,i);return Pm(r),r.level="error",n&&n.event_id&&(r.event_id=n.event_id),Dm(r)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,r){const s=ov(e,t,i&&i.syntheticException||void 0,r);return s.level=n,i&&i.event_id&&(s.event_id=i.event_id),Dm(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Jg&&Id.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:i}){const r={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:nf(i)}},s=function(e){return[{type:"user_report"},e]}(e);return lf(r,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}const lv="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,uv=(e,t,n,i)=>{let r,s;return o=>{t.value>=0&&(o||i)&&(s=t.value-(r||0),(s||void 0===r)&&(r=t.value,t.delta=s,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},pv=wd,dv=(e=!0)=>{const t=pv.performance&&pv.performance.getEntriesByType&&pv.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},mv=()=>{const e=dv();return e&&e.activationStart||0},hv=(e,t)=>{const n=dv();let i="navigate";n&&(pv.document&&pv.document.prerendering||mv()>0?i="prerender":pv.document&&pv.document.wasDiscarded?i="restore":n.type&&(i=n.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},fv=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},gv=e=>{const t=t=>{("pagehide"===t.type||pv.document&&"hidden"===pv.document.visibilityState)&&e(t)};pv.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},vv=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let yv=-1;const bv=e=>{"hidden"===pv.document.visibilityState&&yv>-1&&(yv="visibilitychange"===e.type?e.timeStamp:0,xv())},xv=()=>{removeEventListener("visibilitychange",bv,!0),removeEventListener("prerenderingchange",bv,!0)},_v=()=>(pv.document&&yv<0&&(yv="hidden"!==pv.document.visibilityState||pv.document.prerendering?1/0:0,addEventListener("visibilitychange",bv,!0),addEventListener("prerenderingchange",bv,!0)),{get firstHiddenTime(){return yv}}),wv=e=>{pv.document&&pv.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},kv=[1800,3e3],Sv=[.1,.25],Tv=(e,t={})=>{((e,t={})=>{wv(()=>{const n=_v(),i=hv("FCP");let r;const s=fv("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime<n.firstHiddenTime&&(i.value=Math.max(e.startTime-mv(),0),i.entries.push(e),r(!0)))})});s&&(r=uv(e,i,kv,t.reportAllChanges))})})(vv(()=>{const n=hv("CLS",0);let i,r=0,s=[];const o=e=>{e.forEach(e=>{if(!e.hadRecentInput){const t=s[0],n=s[s.length-1];r&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,s.push(e)):(r=e.value,s=[e])}}),r>n.value&&(n.value=r,n.entries=s,i())},a=fv("layout-shift",o);a&&(i=uv(e,n,Sv,t.reportAllChanges),gv(()=>{o(a.takeRecords()),i(!0)}),setTimeout(i,0))}))},Ev=[100,300];let Cv=0,Iv=1/0,jv=0;const Ov=e=>{e.forEach(e=>{e.interactionId&&(Iv=Math.min(Iv,e.interactionId),jv=Math.max(jv,e.interactionId),Cv=jv?(jv-Iv)/7+1:0)})};let Av;const Lv=()=>{"interactionCount"in performance||Av||(Av=fv("event",Ov,{type:"event",buffered:!0,durationThreshold:0}))},Rv=[],Pv=new Map;const Mv=()=>(Av?Cv:performance.interactionCount||0)-0,Nv=[],Dv=e=>{if(Nv.forEach(t=>t(e)),!e.interactionId&&"first-input"!==e.entryType)return;const t=Rv[Rv.length-1],n=Pv.get(e.interactionId);if(n||Rv.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Pv.set(t.id,t),Rv.push(t)}Rv.sort((e,t)=>t.latency-e.latency),Rv.length>10&&Rv.splice(10).forEach(e=>Pv.delete(e.id))}},Fv=e=>{const t=pv.requestIdleCallback||pv.setTimeout;let n=-1;return e=vv(e),pv.document&&"hidden"===pv.document.visibilityState?e():(n=t(e),gv(e)),n},zv=[200,500],$v=(e,t={})=>{"PerformanceEventTiming"in pv&&"interactionId"in PerformanceEventTiming.prototype&&wv(()=>{Lv();const n=hv("INP");let i;const r=e=>{Fv(()=>{e.forEach(Dv);const t=(()=>{const e=Math.min(Rv.length-1,Math.floor(Mv()/50));return Rv[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,i())})},s=fv("event",r,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});i=uv(e,n,zv,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),gv(()=>{r(s.takeRecords()),i(!0)}))})},Bv=[2500,4e3],qv={},Uv=[800,1800],Hv=e=>{pv.document&&pv.document.prerendering?wv(()=>Hv(e)):pv.document&&"complete"!==pv.document.readyState?addEventListener("load",()=>Hv(e),!0):setTimeout(e,0)},Wv={},Vv={};let Kv,Yv,Gv,Jv,Xv;function Zv(e,t=!1){return ly("cls",e,ry,Kv,t)}function Qv(e,t=!1){return ly("lcp",e,oy,Gv,t)}function ey(e){return ly("fid",e,sy,Yv)}function ty(e){return ly("inp",e,cy,Xv)}function ny(e,t){return uy(e,t),Vv[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);fv(e,t=>{iy(e,{entries:t})},t)}(e),Vv[e]=!0),py(e,t)}function iy(e,t){const n=Wv[e];if(n&&n.length)for(const i of n)try{i(t)}catch(t){lv&&Id.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Md(i)}\nError:`,t)}}function ry(){return Tv(e=>{iy("cls",{metric:e}),Kv=e},{reportAllChanges:!0})}function sy(){return((e,t={})=>{wv(()=>{const n=_v(),i=hv("FID");let r;const s=e=>{e.startTime<n.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),r(!0))},o=e=>{e.forEach(s)},a=fv("first-input",o);r=uv(e,i,Ev,t.reportAllChanges),a&&gv(vv(()=>{o(a.takeRecords()),a.disconnect()}))})})(e=>{iy("fid",{metric:e}),Yv=e})}function oy(){return((e,t={})=>{wv(()=>{const n=_v(),i=hv("LCP");let r;const s=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach(e=>{e.startTime<n.firstHiddenTime&&(i.value=Math.max(e.startTime-mv(),0),i.entries=[e],r())})},o=fv("largest-contentful-paint",s);if(o){r=uv(e,i,Bv,t.reportAllChanges);const n=vv(()=>{qv[i.id]||(s(o.takeRecords()),o.disconnect(),qv[i.id]=!0,r(!0))});["keydown","click"].forEach(e=>{pv.document&&addEventListener(e,()=>Fv(n),{once:!0,capture:!0})}),gv(n)}})})(e=>{iy("lcp",{metric:e}),Gv=e},{reportAllChanges:!0})}function ay(){return((e,t={})=>{const n=hv("TTFB"),i=uv(e,n,Uv,t.reportAllChanges);Hv(()=>{const e=dv();e&&(n.value=Math.max(e.responseStart-mv(),0),n.entries=[e],i(!0))})})(e=>{iy("ttfb",{metric:e}),Jv=e})}function cy(){return $v(e=>{iy("inp",{metric:e}),Xv=e})}function ly(e,t,n,i,r=!1){let s;return uy(e,t),Vv[e]||(s=n(),Vv[e]=!0),i&&t({metric:i}),py(e,t,r?s:void 0)}function uy(e,t){Wv[e]=Wv[e]||[],Wv[e].push(t)}function py(e,t,n){return()=>{n&&n();const i=Wv[e];if(!i)return;const r=i.indexOf(t);-1!==r&&i.splice(r,1)}}function dy(e){return"number"==typeof e&&isFinite(e)}function my(e,t,n,{...i}){const r=Ah(e).start_timestamp;return r&&r>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),Ef(e,()=>{const e=Tf({startTime:t,...i});return e&&e.end(n),e})}function hy(e){const t=sh();if(!t)return;const{name:n,transaction:i,attributes:r,startTime:s}=e,{release:o,environment:a}=t.getOptions(),c=t.getIntegrationByName("Replay"),l=c&&c.getReplayId(),u=nh(),p=u.getUser(),d=void 0!==p?p.email||p.id||p.ip_address:void 0;let m;try{m=u.getScopeData().contexts.profile.profile_id}catch(e){}return Tf({name:n,attributes:{release:o,environment:a,user:d||void 0,profile_id:m||void 0,replay_id:l||void 0,transaction:i,"user_agent.original":pv.navigator&&pv.navigator.userAgent,...r},startTime:s,experimental:{standalone:!0}})}function fy(){return pv&&pv.addEventListener&&pv.performance}function gy(e){return e/1e3}function vy(e){let t="unknown",n="unknown",i="";for(const r of e){if("/"===r){[t,n]=e.split("/");break}if(!isNaN(Number(r))){t="h"===i?"http":i,n=e.split(i)[1];break}i+=r}return i===e&&(t=i),{name:t,version:n}}function yy(){let e,t,n=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){return!1}}())return;let i=!1;function r(){i||(i=!0,t&&function(e,t,n){lv&&Id.log(`Sending CLS span (${e})`);const i=gy((jm||0)+(t&&t.startTime||0)),r=nh().getScopeData().transactionName,s=t?um(t.sources[0]&&t.sources[0].node):"Layout shift",o=Tm({[ph]:"auto.http.browser.cls",[uh]:"ui.webvital.cls",[gh]:t&&t.duration||0,"sentry.pageload.span_id":n}),a=hy({name:s,transaction:r,attributes:o,startTime:i});a&&(a.addEvent("cls",{[mh]:"",[hh]:e}),a.end(i))}(n,e,t),s())}const s=Zv(({metric:t})=>{const i=t.entries[t.entries.length-1];i&&(n=t.value,e=i)},!0);gv(()=>{r()}),setTimeout(()=>{const e=sh();if(!e)return;const n=e.on("startNavigationSpan",()=>{r(),n&&n()}),i=zh(),s=i&&Fh(i),o=s&&Ah(s);o&&"pageload"===o.op&&(t=s.spanContext().spanId)},0)}let by,xy,_y=0,wy={};function ky({recordClsStandaloneSpans:e}){const t=fy();if(t&&jm){t.mark&&pv.performance.mark("sentry-tracing-init");const n=ey(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=gy(jm),i=gy(t.startTime);wy.fid={value:e.value,unit:"millisecond"},wy["mark.fid"]={value:n+i,unit:"second"}}),i=Qv(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(wy.lcp={value:e.value,unit:"millisecond"},by=t)},!0),r=ly("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(wy.ttfb={value:e.value,unit:"millisecond"})},ay,Jv),s=e?yy():Zv(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(wy.cls={value:e.value,unit:""},xy=t)},!0);return()=>{n(),i(),r(),s&&s()}}return()=>{}}function Sy(e,t){const n=fy();if(!n||!n.getEntries||!jm)return;const i=gy(jm),r=n.getEntries(),{op:s,start_timestamp:o}=Ah(e);if(r.slice(_y).forEach(t=>{const n=gy(t.startTime),r=gy(Math.max(0,t.duration));if(!("navigation"===s&&o&&i+n<o))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(i=>{Ty(e,t,i,n)}),Ty(e,t,"secureConnection",n,"TLS/SSL"),Ty(e,t,"fetch",n,"cache"),Ty(e,t,"domainLookup",n,"DNS"),function(e,t,n){const i=n+gy(t.requestStart),r=n+gy(t.responseEnd),s=n+gy(t.responseStart);t.responseEnd&&(my(e,i,r,{op:"browser.request",name:t.name,attributes:{[ph]:"auto.ui.browser.metrics"}}),my(e,s,r,{op:"browser.response",name:t.name,attributes:{[ph]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,i);break;case"mark":case"paint":case"measure":{!function(e,t,n,i,r){const s=dv(!1),o=gy(s?s.requestStart:0),a=r+Math.max(n,o),c=r+n,l=c+i,u={[ph]:"auto.resource.browser.metrics"};a!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=a);my(e,a,l,{name:t.name,op:t.entryType,attributes:u})}(e,t,n,r,i);const s=_v(),o=t.startTime<s.firstHiddenTime;"first-paint"===t.name&&o&&(wy.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(wy.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,i,r,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const o=Sg(n),a={[ph]:"auto.resource.browser.metrics"};Ey(a,t,"transferSize","http.response_transfer_size"),Ey(a,t,"encodedBodySize","http.response_content_length"),Ey(a,t,"decodedBodySize","http.decoded_response_content_length");const c=t.deliveryType;null!=c&&(a["http.response_delivery_type"]=c);const l=t.renderBlockingStatus;l&&(a["resource.render_blocking_status"]=l);o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop());o.host&&(a["server.address"]=o.host);a["url.same_origin"]=n.includes(pv.location.origin);const{name:u,version:p}=vy(t.nextHopProtocol);a["network.protocol.name"]=u,a["network.protocol.version"]=p;const d=s+i,m=d+r;my(e,d,m,{name:n.replace(pv.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}(e,t,t.name,n,r,i)}}),_y=Math.max(r.length-1,0),function(e){const t=pv.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),dy(n.rtt)&&(wy["connection.rtt"]={value:n.rtt,unit:"millisecond"}));dy(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);dy(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s){!function(e){const t=dv(!1);if(!t)return;const{responseStart:n,requestStart:i}=t;i<=n&&(e["ttfb.requestTime"]={value:n-i,unit:"millisecond"})}(wy);const n=wy["mark.fid"];n&&wy.fid&&(my(e,n.value,n.value+gy(wy.fid.value),{name:"first input delay",op:"ui.action",attributes:{[ph]:"auto.ui.browser.metrics"}}),delete wy["mark.fid"]),"fcp"in wy&&t.recordClsOnPageloadSpan||delete wy.cls,Object.entries(wy).forEach(([e,t])=>{!function(e,t,n,i=zh()){const r=i&&Fh(i);r&&(xd&&Id.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),r.addEvent(e,{[hh]:t,[mh]:n}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",mv()),function(e){by&&(by.element&&e.setAttribute("lcp.element",um(by.element)),by.id&&e.setAttribute("lcp.id",by.id),by.url&&e.setAttribute("lcp.url",by.url.trim().slice(0,200)),null!=by.loadTime&&e.setAttribute("lcp.loadTime",by.loadTime),null!=by.renderTime&&e.setAttribute("lcp.renderTime",by.renderTime),e.setAttribute("lcp.size",by.size));xy&&xy.sources&&xy.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,um(t.node)))}(e)}by=void 0,xy=void 0,wy={}}function Ty(e,t,n,i,r=n){const s=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(n),o=t[s],a=t[`${n}Start`];a&&o&&my(e,i+gy(a),i+gy(o),{op:`browser.${r}`,name:t.name,attributes:{[ph]:"auto.ui.browser.metrics"}})}function Ey(e,t,n,i){const r=t[n];null!=r&&r<2147483647&&(e[i]=r)}let Cy,Iy,jy,Oy;function Ay(e){zd("dom",e),$d("dom",Ly)}function Ly(){if(!pv.document)return;const e=Bd.bind(null,"dom"),t=Ry(e,!0);pv.document.addEventListener("click",t,!1),pv.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=pv[t],i=n&&n.prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(ym(i,"addEventListener",function(t){return function(n,i,r){if("click"===n||"keypress"==n)try{const i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=i[n]=i[n]||{refCount:0};if(!s.handler){const i=Ry(e);s.handler=i,t.call(this,n,i,r)}s.refCount++}catch(e){}return t.call(this,n,i,r)}}),ym(i,"removeEventListener",function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},r=n[t];r&&(r.refCount--,r.refCount<=0&&(e.call(this,t,r.handler,i),r.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}}))})}function Ry(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const i=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,i))return;bm(n,"_sentryCaptured",!0),i&&!i._sentryId&&bm(i,"_sentryId",Om());const r="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Iy)return!1;try{if(!e.target||e.target._sentryId!==jy)return!1}catch(e){}return!0}(n)){e({event:n,name:r,global:t}),Iy=n.type,jy=i?i._sentryId:void 0}clearTimeout(Cy),Cy=pv.setTimeout(()=>{jy=void 0,Iy=void 0},1e3)}}function Py(e){const t="history";zd(t,e),$d(t,My)}function My(){if(!function(){const e=Hg.chrome,t=e&&e.app&&e.app.runtime,n="history"in Hg&&!!Hg.history.pushState&&!!Hg.history.replaceState;return!t&&n}())return;const e=pv.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Oy,t=String(n);Oy=t;Bd("history",{from:e,to:t})}return e.apply(this,t)}}pv.onpopstate=function(...t){const n=pv.location.href,i=Oy;Oy=n;if(Bd("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},ym(pv.history,"pushState",t),ym(pv.history,"replaceState",t)}const Ny={};function Dy(e){const t=Ny[e];if(t)return t;let n=pv[e];if(Ng(n))return Ny[e]=n.bind(pv);const i=pv.document;if(i&&"function"==typeof i.createElement)try{const t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);const r=t.contentWindow;r&&r[e]&&(n=r[e]),i.head.removeChild(t)}catch(t){lv&&Id.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?Ny[e]=n.bind(pv):n}function Fy(e){Ny[e]=void 0}function zy(...e){return Dy("setTimeout")(...e)}const $y="__sentry_xhr_v3__";function By(e){zd("xhr",e),$d("xhr",qy)}function qy(){if(!pv.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const i=new Error,r=1e3*Im(),s=tm(n[0])?n[0].toUpperCase():void 0,o=function(e){if(tm(e))return e;try{return e.toString()}catch(e){}return}(n[1]);if(!s||!o)return e.apply(t,n);t[$y]={method:s,url:o,request_headers:{}},"POST"===s&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[$y];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}Bd("xhr",{endTimestamp:1e3*Im(),startTimestamp:r,xhr:t,virtualError:i})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[i,r]=n,s=t[$y];return s&&tm(i)&&tm(r)&&(s.request_headers[i.toLowerCase()]=r),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const i=t[$y];if(!i)return e.apply(t,n);void 0!==n[0]&&(i.body=n[0]);return Bd("xhr",{startTimestamp:1e3*Im(),xhr:t}),e.apply(t,n)}})}const Uy=[],Hy=new Map;function Wy(){if(fy()&&jm){const e=ty(({metric:e})=>{if(null==e.value)return;const t=e.entries.find(t=>t.duration===e.value&&Vy[t.name]);if(!t)return;const{interactionId:n}=t,i=Vy[t.name],r=gy(jm+t.startTime),s=gy(e.value),o=zh(),a=o?Fh(o):void 0,c=(null!=n?Hy.get(n):void 0)||a,l=c?Ah(c).description:nh().getScopeData().transactionName,u=hy({name:um(t.target),transaction:l,attributes:Tm({[ph]:"auto.http.browser.inp",[uh]:`ui.interaction.${i}`,[gh]:t.duration}),startTime:r});u&&(u.addEvent("inp",{[mh]:"millisecond",[hh]:e.value}),u.end(r+s))});return()=>{e()}}return()=>{}}const Vy={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Ky(e,t=Dy("fetch")){let n=0,i=0;return function(e,t,n=sg(e.bufferSize||64)){let i={};return{send:function(r){const s=[];if(pf(r,(t,n)=>{const r=vf(n);if(og(i,r)){const i=cg(t,n);e.recordDroppedEvent("ratelimit_backoff",r,i)}else s.push(t)}),0===s.length)return Dm({});const o=lf(r[0],s),a=t=>{pf(o,(n,i)=>{const r=cg(n,i);e.recordDroppedEvent(t,vf(i),r)})};return n.add(()=>t({body:mf(o)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&xd&&Id.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=ag(i,e),e),e=>{throw a("network_error"),e})).then(e=>e,e=>{if(e instanceof Qf)return xd&&Id.error("Skipped sending event because buffer is full."),a("queue_overflow"),Dm({});throw e})},flush:e=>n.drain(e)}}(e,function(r){const s=r.body.length;n+=s,i++;const o={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};if(!t)return Fy("fetch"),Fm("No fetch implementation available");try{return t(e.url,o).then(e=>(n-=s,i--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return Fy("fetch"),n-=s,i--,Fm(e)}})}function Yy(e,t,n,i){const r={filename:e,function:"<anonymous>"===t?jd:t,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==i&&(r.colno=i),r}const Gy=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Jy=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xy=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zy=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Qy=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,eb=Ld(...[[30,e=>{const t=Gy.exec(e);if(t){const[,e,n,i]=t;return Yy(e,jd,+n,+i)}const n=Jy.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=Xy.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=tb(n[1]||jd,n[2]);return Yy(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=Zy.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Qy.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||jd;return[n,e]=tb(n,e),Yy(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),tb=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:jd,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},nb=1024,ib=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&function(e){const t="console";zd(t,e),$d(t,Tg)}(function(e){return function(t){if(sh()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Eg(t.level),message:fm(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${fm(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}mg(n,{input:t.args,level:t.level})}}(e)),t.dom&&Ay(function(e,t){return function(n){if(sh()!==e)return;let i,r,s="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>nb&&(Jg&&Id.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=nb),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;i=um(t,{keyAttrs:s,maxStringLength:o}),r=mm(t)}catch(e){i="<unknown>"}if(0===i.length)return;const a={category:`ui.${n.name}`,message:i};r&&(a.data={"ui.component_name":r}),mg(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&By(function(e){return function(t){if(sh()!==e)return;const{startTimestamp:n,endTimestamp:i}=t,r=t.xhr[$y];if(!n||!i||!r)return;const{method:s,url:o,status_code:a,body:c}=r,l={method:s,url:o,status_code:a},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:i};mg({category:"xhr",data:l,type:"http",level:Rg(a)},u)}}(e)),t.fetch&&Dg(function(e){return function(t){if(sh()!==e)return;const{startTimestamp:n,endTimestamp:i}=t;if(i&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){mg({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:i})}else{const e=t.response,r={...t.fetchData,status_code:e&&e.status},s={input:t.args,response:e,startTimestamp:n,endTimestamp:i};mg({category:"fetch",data:r,type:"http",level:Rg(r.status_code)},s)}}}(e)),t.history&&Py(function(e){return function(t){if(sh()!==e)return;let n=t.from,i=t.to;const r=Sg(Vg.location.href);let s=n?Sg(n):void 0;const o=Sg(i);s&&s.path||(s=r),r.protocol===o.protocol&&r.host===o.host&&(i=o.relative),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),mg({category:"navigation",data:{from:n,to:i}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){sh()===e&&mg({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Lm(t)},{event:t})}}(e))}}};const rb=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],sb=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&ym(Vg,"setTimeout",ob),t.setInterval&&ym(Vg,"setInterval",ob),t.requestAnimationFrame&&ym(Vg,"requestAnimationFrame",ab),t.XMLHttpRequest&&"XMLHttpRequest"in Vg&&ym(XMLHttpRequest.prototype,"send",cb);const e=t.eventTarget;if(e){(Array.isArray(e)?e:rb).forEach(lb)}}}};function ob(e){return function(...t){const n=t[0];return t[0]=Gg(n,{mechanism:{data:{function:Md(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ab(e){return function(t){return e.apply(this,[Gg(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Md(e)},handled:!1,type:"instrument"}})])}}function cb(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&ym(n,e,function(t){const n={mechanism:{data:{function:e,handler:Md(t)},handled:!1,type:"instrument"}},i=_m(t);return i&&(n.mechanism.data.handler=Md(i)),Gg(t,n)})}),e.apply(this,t)}}function lb(e){const t=Vg[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ym(n,"addEventListener",function(t){return function(n,i,r){try{"function"==typeof i.handleEvent&&(i.handleEvent=Gg(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Md(i),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Gg(i,{mechanism:{data:{function:"addEventListener",handler:Md(i),target:e},handled:!1,type:"instrument"}}),r])}}),ym(n,"removeEventListener",function(e){return function(t,n,i){try{const r=n.__sentry_wrapped__;r&&e.call(this,t,r,i)}catch(e){}return e.call(this,t,n,i)}}))}const ub=()=>({name:"BrowserSession",setupOnce(){void 0!==Vg.document?(Hf({ignoreDuration:!0}),Kf(),Py(({from:e,to:t})=>{void 0!==e&&e!==t&&(Hf({ignoreDuration:!0}),Kf())})):Jg&&Id.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),pb=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){Ud(t=>{const{stackParser:n,attachStacktrace:i}=mb();if(sh()!==e||Yg())return;const{msg:r,url:s,line:o,column:a,error:c}=t,l=function(e,t,n,i){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],l=i,u=n,p=tm(t)&&t.length>0?t:dm();0===c.length&&c.push({colno:l,filename:p,function:jd,in_app:!0,lineno:u});return e}(sv(n,c||r,void 0,i,!1),s,o,a);l.level="error",qf(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}(e),db("onerror")),t.onunhandledrejection&&(!function(e){Vd(t=>{const{stackParser:n,attachStacktrace:i}=mb();if(sh()!==e||Yg())return;const r=function(e){if(im(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),s=im(r)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(r)}`}]}}:sv(n,r,void 0,i,!0);s.level="error",qf(s,{originalException:r,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(e),db("onunhandledrejection"))}}};function db(e){Jg&&Id.log(`Global Handler attached: ${e}`)}function mb(){const e=sh();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const hb=()=>({name:"HttpContext",preprocessEvent(e){if(!Vg.navigator&&!Vg.location&&!Vg.document)return;const t=e.request&&e.request.url||Vg.location&&Vg.location.href,{referrer:n}=Vg.document||{},{userAgent:i}=Vg.navigator||{},r={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},s={...e.request,...t&&{url:t},headers:r};e.request=s}}),fb=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,r){const s=r.getOptions();xg(Xg,s.stackParser,s.maxValueLength,n,t,e,i)}}};function gb(e){const t=[yg(),gg(),sb(),ib(),pb(),fb(),Cg(),hb()];return!1!==e.autoSessionTracking&&t.push(ub()),t}function vb(e={}){const t=function(e={}){const t={defaultIntegrations:gb(e),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Vg.SENTRY_RELEASE&&Vg.SENTRY_RELEASE.id?Vg.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(!t.skipBrowserExtensionCheck&&function(){const e=void 0!==Vg.window&&Vg;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,i=Vg.location&&Vg.location.href||"",r=!!n&&Vg===Vg.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),s=void 0!==e.nw;return!!n&&!r&&!s}())return void Cd(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});Jg&&(Mg()||Id.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:(i=t.stackParser||eb,Array.isArray(i)?Ld(...i):i),integrations:Jf(t),transport:t.transport||Ky};var i;return rg(cv,n)}const yb=wd,bb="sentryReplaySession",xb="Unable to send Replay",_b=15e4,wb=5e3,kb=2e7,Sb=36e5;function Tb(e,t){return null!=e?e:t()}function Eb(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],s=e[i+1];if(i+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=s(n)):"call"!==r&&"optionalCall"!==r||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}var Cb;function Ib(e){const t=Eb([e,"optionalAccess",e=>e.host]);return Boolean(Eb([t,"optionalAccess",e=>e.shadowRoot])===e)}function jb(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Ob(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,Ab).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function Ab(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Ob(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),i="string"==typeof e.style.all&&e.style.all;if(i&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style,r=i[n],s=i.getPropertyPriority(r);t+=`${r}:${i.getPropertyValue(r)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),n||i)return t}return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Cb||(Cb={}));class Lb{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return Tb(Eb([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),()=>-1)}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Rb({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Pb({isMasked:e,element:t,value:n,maskInputFn:i}){let r=n||"";return e?(i&&(r=i(r,t)),"*".repeat(r.length)):r}function Mb(e){return e.toLowerCase()}function Nb(e){return e.toUpperCase()}const Db="__rrweb_original__";function Fb(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Mb(t):null}function zb(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function $b(e,t){let n;try{n=new URL(e,Tb(t,()=>window.location.href))}catch(e){return null}return Tb(Eb([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),()=>null)}const Bb={};function qb(e){const t=Bb[e];if(t)return t;const n=window.document;let i=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const r=t.contentWindow;r&&r[e]&&(i=r[e]),n.head.removeChild(t)}catch(e){}return Bb[e]=i.bind(window)}function Ub(...e){return qb("setTimeout")(...e)}function Hb(...e){return qb("clearTimeout")(...e)}function Wb(e){try{return e.contentDocument}catch(e){}}let Vb=1;const Kb=new RegExp("[^a-z0-9-_:]");function Yb(){return Vb++}let Gb,Jb;const Xb=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zb=/^(?:[a-z+]+:)?\/\//i,Qb=/^www\..*/i,ex=/^(data:)([^,]*),(.*)/i;function tx(e,t){return(e||"").replace(Xb,(e,n,i,r,s,o)=>{const a=i||s||o,c=n||r||"";if(!a)return e;if(Zb.test(a)||Qb.test(a))return`url(${c}${a}${c})`;if(ex.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`})}const nx=/^[^ \t\n\r\u000c]+/,ix=/^[, \t\n\r\u000c]+/;const rx=new WeakMap;function sx(e,t){return t&&""!==t.trim()?ax(e,t):t}function ox(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function ax(e,t){let n=rx.get(e);if(n||(n=e.createElement("a"),rx.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function cx(e,t,n,i,r,s){return i?"src"===n||"href"===n&&("use"!==t||"#"!==i[0])||"xlink:href"===n&&"#"!==i[0]?sx(e,i):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function i(e){let i;const r=e.exec(t.substring(n));return r?(i=r[0],n+=i.length,i):""}const r=[];for(;i(ix),!(n>=t.length);){let s=i(nx);if(","===s.slice(-1))s=sx(e,s.substring(0,s.length-1)),r.push(s);else{let i="";s=sx(e,s);let o=!1;for(;;){const e=t.charAt(n);if(""===e){r.push((s+i).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){n+=1,r.push((s+i).trim());break}"("===e&&(o=!0)}i+=e,n+=1}}}return r.join(", ")}(e,i):"style"===n?tx(i,ax(e)):"object"===t&&"data"===n?sx(e,i):"function"==typeof s?s(n,i,r):i:sx(e,i):i}function lx(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ux(e,t,n=1/0,i=0){return e?e.nodeType!==e.ELEMENT_NODE||i>n?-1:t(e)?i:ux(e.parentNode,t,n,i+1):-1}function px(e,t){return n=>{const i=n;if(null===i)return!1;try{if(e)if("string"==typeof e){if(i.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}return!1}(i,e))return!0;return!(!t||!i.matches(t))}catch(e){return!1}}}function dx(e,t,n,i,r,s){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){const e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(s){if(c=ux(o,px(i,r)),c<0)return!0;a=ux(o,px(t,n),c>=0?c:1/0)}else{if(a=ux(o,px(t,n)),a<0)return!1;c=ux(o,px(i,r),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!s}catch(e){}return!!s}function mx(e,t){const{doc:n,mirror:i,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:d,inlineStylesheet:m,maskInputOptions:h={},maskTextFn:f,maskInputFn:g,dataURLOptions:v={},inlineImages:y,recordCanvas:b,keepIframeSrcFn:x,newlyAddedElement:_=!1}=t,w=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,i);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Cb.Document,childNodes:[],compatMode:e.compatMode}:{type:Cb.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Cb.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:i,blockSelector:r,unblockSelector:s,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:m,newlyAddedElement:h=!1,rootId:f,maskAllText:g,maskTextClass:v,unmaskTextClass:y,maskTextSelector:b,unmaskTextSelector:x}=t,_=function(e,t,n,i){try{if(i&&e.matches(i))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const i=e.classList[n];if(t.test(i))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,r,s),w=function(e){if(e instanceof HTMLFormElement)return"form";const t=Mb(e.tagName);return Kb.test(t)?"div":t}(e);let k={};const S=e.attributes.length;for(let t=0;t<S;t++){const i=e.attributes[t];i.name&&!lx(w,i.name,i.value)&&(k[i.name]=cx(n,w,Mb(i.name),i.value,e,c))}if("link"===w&&o){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let i=null;t&&(i=Ob(t)),i&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=tx(i,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Ob(e.sheet);t&&(k._cssText=tx(t,ax(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=Fb(t),i=zb(t,Nb(w),n),r=t.checked;if("submit"!==n&&"button"!==n&&i){const e=dx(t,v,b,y,x,Rb({type:n,tagName:Nb(w),maskInputOptions:a}));k.value=Pb({isMasked:e,element:t,value:i,maskInputFn:l})}r&&(k.checked=r)}"option"===w&&(e.selected&&!a.select?k.selected=!0:delete k.selected);if("canvas"===w&&d)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let i=0;i<e.height;i+=50){const r=t.getImageData,s=Db in r?r[Db]:r;if(new Uint32Array(s.call(t,n,i,Math.min(50,e.width-n),Math.min(50,e.height-i)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),i=n.createElement("canvas");i.width=e.width,i.height=e.height;t!==i.toDataURL(u.type,u.quality)&&(k.rr_dataURL=t)}if("img"===w&&p){Gb||(Gb=n.createElement("canvas"),Jb=Gb.getContext("2d"));const t=e,i=t.currentSrc||t.getAttribute("src")||"<unknown-src>",r=t.crossOrigin,s=()=>{t.removeEventListener("load",s);try{Gb.width=t.naturalWidth,Gb.height=t.naturalHeight,Jb.drawImage(t,0,0),k.rr_dataURL=Gb.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s));console.warn(`Cannot inline img src=${i}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(r?k.crossOrigin=r:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}"audio"!==w&&"video"!==w||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop));if(_){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==w||m(k.src)||(_||Wb(e)||(k.rr_src=k.src),delete k.src);let T;try{customElements.get(w)&&(T=!0)}catch(e){}return{type:Cb.Element,tagName:w,attributes:k,childNodes:[],isSVG:ox(e)||void 0,needBlock:_,rootId:f,isCustom:T}}(e,{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:v,inlineImages:y,recordCanvas:b,keepIframeSrcFn:x,newlyAddedElement:_,rootId:w,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:d});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:i,unmaskTextClass:r,maskTextSelector:s,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,p=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const m="STYLE"===p||void 0,h="SCRIPT"===p||void 0,f="TEXTAREA"===p||void 0;if(m&&d){try{e.nextSibling||e.previousSibling||Eb([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=Ob(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=tx(d,ax(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const g=dx(e,i,s,r,o,n);m||h||f||!d||!g||(d=a?a(d,e.parentElement):d.replace(/[\S]/g,"*"));f&&d&&(c.textarea||g)&&(d=l?l(d,e.parentNode):d.replace(/[\S]/g,"*"));if("OPTION"===p&&d){d=Pb({isMasked:dx(e,i,s,r,o,Rb({type:null,tagName:p,maskInputOptions:c})),element:e,value:d,maskInputFn:l})}return{type:Cb.Text,textContent:d||"",isStyle:m,rootId:u}}(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:p,unmaskTextSelector:d,maskTextFn:f,maskInputOptions:h,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:Cb.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Cb.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}function hx(e){return null==e?"":e.toLowerCase()}function fx(e,t){const{doc:n,mirror:i,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,skipChild:d=!1,inlineStylesheet:m=!0,maskInputOptions:h={},maskAttributeFn:f,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:b={},inlineImages:x=!1,recordCanvas:_=!1,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:S=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:E=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:j=!0}=t;const O=mx(e,{doc:n,mirror:i,blockClass:r,blockSelector:s,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:g,maskInputFn:v,dataURLOptions:b,inlineImages:x,recordCanvas:_,keepIframeSrcFn:C,newlyAddedElement:I});if(!O)return console.warn(e,"not serialized"),null;let A;A=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===Cb.Comment)return!0;if(e.type===Cb.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===$b(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(hx(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===hx(e.attributes.name)||"icon"===hx(e.attributes.rel)||"apple-touch-icon"===hx(e.attributes.rel)||"shortcut icon"===hx(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&hx(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(hx(e.attributes.property).match(/^(og|twitter|fb):/)||hx(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===hx(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===hx(e.attributes.name)||"googlebot"===hx(e.attributes.name)||"bingbot"===hx(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===hx(e.attributes.name)||"generator"===hx(e.attributes.name)||"framework"===hx(e.attributes.name)||"publisher"===hx(e.attributes.name)||"progid"===hx(e.attributes.name)||hx(e.attributes.property).match(/^article:/)||hx(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===hx(e.attributes.name)||"yandex-verification"===hx(e.attributes.name)||"csrf-token"===hx(e.attributes.name)||"p:domain_verify"===hx(e.attributes.name)||"verify-v1"===hx(e.attributes.name)||"verification"===hx(e.attributes.name)||"shopify-checkout-api-token"===hx(e.attributes.name)))return!0}}return!1}(O,y)&&(j||O.type!==Cb.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?Yb():-2;const L=Object.assign(O,{id:A});if(i.add(e,L),-2===A)return null;w&&w(e);let R=!d;if(L.type===Cb.Element){R=R&&!L.needBlock,delete L.needBlock;const t=e.shadowRoot;t&&jb(t)&&(L.isShadowHost=!0)}if((L.type===Cb.Document||L.type===Cb.Element)&&R){y.headWhitespace&&L.type===Cb.Element&&"head"===L.tagName&&(j=!1);const t={doc:n,mirror:i,blockClass:r,blockSelector:s,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,skipChild:d,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:b,inlineImages:x,recordCanvas:_,preserveWhiteSpace:j,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=fx(n,t);e&&L.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const i=fx(n,t);i&&(jb(e.shadowRoot)&&(i.isShadow=!0),L.childNodes.push(i))}}return e.parentNode&&Ib(e.parentNode)&&jb(e.parentNode)&&(L.isShadow=!0),L.type===Cb.Element&&"iframe"===L.tagName&&function(e,t,n){const i=e.contentWindow;if(!i)return;let r,s=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){const i=Ub(()=>{s||(t(),s=!0)},n);return void e.addEventListener("load",()=>{Hb(i),s=!0,t()})}const o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return Ub(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=Wb(e);if(t&&k){const n=fx(t,{doc:t,mirror:i,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:b,inlineImages:x,recordCanvas:_,preserveWhiteSpace:j,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:C});n&&k(e,n)}},S),L.type===Cb.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===$b(L.attributes.href))&&function(e,t,n){let i,r=!1;try{i=e.sheet}catch(e){return}if(i)return;const s=Ub(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{Hb(s),r=!0,t()})}(e,()=>{if(T){const t=fx(e,{doc:n,mirror:i,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:h,maskAttributeFn:f,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:b,inlineImages:x,recordCanvas:_,preserveWhiteSpace:j,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:S,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:C});t&&T(e,t)}},E),L}function gx(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],s=e[i+1];if(i+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=s(n)):"call"!==r&&"optionalCall"!==r||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function vx(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}const yx="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let bx={map:{},getId:()=>(console.error(yx),-1),getNode:()=>(console.error(yx),null),removeNodeFromMap(){console.error(yx)},has:()=>(console.error(yx),!1),reset(){console.error(yx)}};function xx(e,t,n={}){let i=null,r=0;return function(...s){const o=Date.now();r||!1!==n.leading||(r=o);const a=t-(o-r),c=this;a<=0||a>t?(i&&(!function(...e){$x("clearTimeout")(...e)}(i),i=null),r=o,e.apply(c,s)):i||!1===n.trailing||(i=Bx(()=>{r=!1===n.leading?0:Date.now(),i=null,e.apply(c,s)},a))}}function _x(e,t,n,i,r=window){const s=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){Bx(()=>{n.set.call(this,e)},0),s&&s.set&&s.set.call(this,e)}}),()=>_x(e,t,s||{},!0)}function wx(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],r=n(i);return"function"==typeof r&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=r,()=>{e[t]=i}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(bx=new Proxy(bx,{get:(e,t,n)=>("map"===t&&console.error(yx),Reflect.get(e,t,n))}));let kx=Date.now;function Sx(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:gx([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||gx([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||gx([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:gx([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||gx([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||gx([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Tx(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ex(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Cx(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function Ix(e,t,n,i,r){if(!e)return!1;const s=Cx(e);if(!s)return!1;const o=px(t,n);if(!r){const e=i&&s.matches(i);return o(s)&&!e}const a=ux(s,o);let c=-1;return!(a<0)&&(i&&(c=ux(s,px(null,i))),a>-1&&c<0||a<c)}function jx(e,t){return-2===t.getId(e)}function Ox(e,t){if(Ib(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ox(e.parentNode,t))}function Ax(e){return Boolean(e.changedTouches)}function Lx(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Rx(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Px(e){return Boolean(gx([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(kx=()=>(new Date).getTime());class Mx{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return t=this.styleIDMap.get(e),n=()=>-1,null!=t?t:n();var t,n}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Nx(e){let t=null;return gx([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Dx(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Nx(n);)n=t;return n}(e);return t.contains(n)}function Fx(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Dx(e))}const zx={};function $x(e){const t=zx[e];if(t)return t;const n=window.document;let i=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const r=t.contentWindow;r&&r[e]&&(i=r[e]),n.head.removeChild(t)}catch(e){}return zx[e]=i.bind(window)}function Bx(...e){return $x("setTimeout")(...e)}var qx,Ux,Hx=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Hx||{}),Wx=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Wx||{}),Vx=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Vx||{}),Kx=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Kx||{});function Yx(e){try{return e.contentDocument}catch(e){}}function Gx(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],s=e[i+1];if(i+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=s(n)):"call"!==r&&"optionalCall"!==r||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}function Jx(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(qx||(qx={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Ux||(Ux={}));class Xx{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=Gx([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Jx(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Jx(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Zx=(e,t)=>`${e}@${t}`;class Qx{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Xx,i=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},r=r=>{if(!r.parentNode||!Fx(r))return;const s=Ib(r.parentNode)?this.mirror.getId(Nx(r)):this.mirror.getId(r.parentNode),o=i(r);if(-1===s||-1===o)return n.addNode(r);const a=fx(r,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Lx(e,this.mirror)&&!Ix(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Rx(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Px(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Ix(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:s,nextId:o,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)t_(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||r(e);for(const e of this.addedSet)n_(this.droppedSet,e)||t_(this.removes,e,this.mirror)?n_(this.movedSet,e)?r(e):this.droppedSet.add(e):r(e);let s=null;for(;n.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),n=i(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===i(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const i=t.parentNode.host;if(-1!==this.mirror.getId(i)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),r(e.value)}const o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),i=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+i).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!jx(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Ix(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:dx(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Cx(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,i=e.target.getAttribute(n);if("value"===n){const n=Fb(t),r=t.tagName;i=zb(t,r,n);const s=Rb({maskInputOptions:this.maskInputOptions,tagName:r,type:n});i=Pb({isMasked:dx(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:i,maskInputFn:this.maskInputFn})}if(Ix(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===e.oldValue)return;let r=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(i)){if(Yx(t))return;n="rr_src"}if(r||(r={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(e.target,r)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!lx(t.tagName,n)&&(r.attributes[n]=cx(this.doc,Mb(t.tagName),Mb(n),i,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const i=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);i!==n.style.getPropertyValue(e)||s!==n.style.getPropertyPriority(e)?r.styleDiff[e]=""===s?i:[i,s]:r._unchangedStyles[e]=[i,s]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(r.styleDiff[e]=!1)}break}case"childList":if(Ix(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),i=Ib(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ix(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||jx(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(e_(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Ox(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Zx(n,i)]?e_(this.movedSet,t):this.removes.push({parentId:i,id:n,isShadow:!(!Ib(e.target)||!jb(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(jx(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Zx(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ix(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),Px(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function e_(e,t){e.delete(t),t.childNodes.forEach(t=>e_(e,t))}function t_(e,t,n){return 0!==e.length&&function(e,t,n){let i=t.parentNode;for(;i;){const t=n.getId(i);if(e.some(e=>e.id===t))return!0;i=i.parentNode}return!1}(e,t,n)}function n_(e,t){return 0!==e.size&&i_(e,t)}function i_(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||i_(e,n))}let r_;function s_(e){r_=e}function o_(){r_=void 0}const a_=e=>{if(!r_)return e;return(...t)=>{try{return e(...t)}catch(e){if(r_&&!0===r_(e))return()=>{};throw e}}};function c_(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],s=e[i+1];if(i+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=s(n)):"call"!==r&&"optionalCall"!==r||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}const l_=[];function u_(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function p_(e,t){const n=new Qx;l_.push(n),n.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const r=c_([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);r&&window[r]&&(i=window[r]);const s=new i(a_(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function d_({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,unblockSelector:s,sampling:o}){if(!1===o.mouseInteraction)return()=>{};const a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,c=[];let l=null;return Object.keys(Vx).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(o=>{let a=Mb(o);const u=(t=>o=>{const a=u_(o);if(Ix(a,i,r,s,!0))return;let c=null,u=t;if("pointerType"in o){switch(o.pointerType){case"mouse":c=Kx.Mouse;break;case"touch":c=Kx.Touch;break;case"pen":c=Kx.Pen}c===Kx.Touch?Vx[t]===Vx.MouseDown?u="TouchStart":Vx[t]===Vx.MouseUp&&(u="TouchEnd"):Kx.Pen}else Ax(o)&&(c=Kx.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Kx.Touch||u.startsWith("Mouse")&&c===Kx.Mouse)&&(c=null)):Vx[t]===Vx.Click&&(c=l,l=null);const p=Ax(o)?o.changedTouches[0]:o;if(!p)return;const d=n.getId(a),{clientX:m,clientY:h}=p;a_(e)({type:Vx[u],id:d,x:m,y:h,...null!==c&&{pointerType:c}})})(o);if(window.PointerEvent)switch(Vx[o]){case Vx.MouseDown:case Vx.MouseUp:a=a.replace("mouse","pointer");break;case Vx.TouchStart:case Vx.TouchEnd:return}c.push(vx(a,u,t))}),a_(()=>{c.forEach(e=>e())})}function m_({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,unblockSelector:s,sampling:o}){return vx("scroll",a_(xx(a_(o=>{const a=u_(o);if(!a||Ix(a,i,r,s,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=Sx(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),o.scroll||100)),t)}const h_=["INPUT","TEXTAREA","SELECT"],f_=new WeakMap;function g_({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:r,unblockSelector:s,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:p,maskTextClass:d,unmaskTextClass:m,maskTextSelector:h,unmaskTextSelector:f}){function g(e){let n=u_(e);const u=e.isTrusted,g=n&&Nb(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||h_.indexOf(g)<0||Ix(n,i,r,s,!0))return;const y=n;if(y.classList.contains(o)||a&&y.matches(a))return;const b=Fb(n);let x=zb(y,g,b),_=!1;const w=Rb({maskInputOptions:c,tagName:g,type:b}),k=dx(n,d,h,m,f,w);"radio"!==b&&"checkbox"!==b||(_=n.checked),x=Pb({isMasked:k,element:n,value:x,maskInputFn:l}),v(n,p?{text:x,isChecked:_,userTriggered:u}:{text:x,isChecked:_});const S=n.name;"radio"===b&&S&&_&&t.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach(e=>{if(e!==n){const t=Pb({isMasked:k,element:e,value:zb(e,g,b),maskInputFn:l});v(e,p?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}})}function v(t,i){const r=f_.get(t);if(!r||r.text!==i.text||r.isChecked!==i.isChecked){f_.set(t,i);const r=n.getId(t);a_(e)({...i,id:r})}}const y=("last"===u.input?["change"]:["input","change"]).map(e=>vx(e,a_(g),t)),b=t.defaultView;if(!b)return()=>{y.forEach(e=>e())};const x=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),_=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&y.push(..._.map(e=>_x(e[0],e[1],{set(){a_(g)({target:this,isTrusted:!1})}},!1,b))),a_(()=>{y.forEach(e=>e())})}function v_(e){return function(e,t){if(__("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||__("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||__("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||__("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function y_(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function b_({mirror:e,stylesheetManager:t},n){let i=null;i="#document"===n.nodeName?e.getId(n):e.getId(n.host);const r="#document"===n.nodeName?c_([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):c_([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=c_([r,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(c_([r,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&r&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return c_([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=c_([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==i&&-1!==i)try{t.adoptStyleSheets(e,i)}catch(e){}return n}}),a_(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function x_(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let i;e.recordDOM&&(i=p_(e,e.doc));const r=function({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};const r="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let o,a=[];const c=xx(a_(t=>{const n=Date.now()-o;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],o=null}),s),l=a_(xx(a_(e=>{const t=u_(e),{clientX:n,clientY:r}=Ax(e)?e.changedTouches[0]:e;o||(o=kx()),a.push({x:n,y:r,id:i.getId(t),timeOffset:kx()-o}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Wx.Drag:e instanceof MouseEvent?Wx.MouseMove:Wx.TouchMove)}),r,{trailing:!1})),u=[vx("mousemove",l,n),vx("touchmove",l,n),vx("drag",l,n)];return a_(()=>{u.forEach(e=>e())})}(e),s=d_(e),o=m_(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,i=-1;return vx("resize",a_(xx(a_(()=>{const t=Tx(),r=Ex();n===t&&i===r||(e({width:Number(r),height:Number(t)}),n=t,i=r)}),200)),t)}(e,{win:n}),c=g_(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:i,mirror:r,sampling:s,doc:o}){const a=a_(o=>xx(a_(s=>{const a=u_(s);if(!a||Ix(a,t,n,i,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:p}=a;e({type:o,id:r.getId(a),currentTime:c,volume:l,muted:u,playbackRate:p})}),s.media||500)),c=[vx("play",a(0),o),vx("pause",a(1),o),vx("seeked",a(2),o),vx("volumechange",a(3),o),vx("ratechange",a(4),o)];return a_(()=>{c.forEach(e=>e())})}(e);let u=()=>{},p=()=>{},d=()=>{},m=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const r=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:a_((i,r,s)=>{const[o,a]=s,{id:c,styleId:l}=y_(r,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:o,index:a}]}),i.apply(r,s)})});const s=i.CSSStyleSheet.prototype.deleteRule;let o,a;i.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:a_((i,r,s)=>{const[o]=s,{id:a,styleId:c}=y_(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:o}]}),i.apply(r,s)})}),i.CSSStyleSheet.prototype.replace&&(o=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:a_((i,r,s)=>{const[o]=s,{id:a,styleId:c}=y_(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:o}),i.apply(r,s)})})),i.CSSStyleSheet.prototype.replaceSync&&(a=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:a_((i,r,s)=>{const[o]=s,{id:a,styleId:c}=y_(r,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:o}),i.apply(r,s)})}));const c={};w_("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(w_("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),w_("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),w_("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));const l={};return Object.entries(c).forEach(([i,r])=>{l[i]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(l[i].insertRule,{apply:a_((i,r,s)=>{const[o,a]=s,{id:c,styleId:l}=y_(r.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:o,index:[...v_(r),a||0]}]}),i.apply(r,s)})}),r.prototype.deleteRule=new Proxy(l[i].deleteRule,{apply:a_((i,r,s)=>{const[o]=s,{id:a,styleId:c}=y_(r.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...v_(r),o]}]}),i.apply(r,s)})})}),a_(()=>{i.CSSStyleSheet.prototype.insertRule=r,i.CSSStyleSheet.prototype.deleteRule=s,o&&(i.CSSStyleSheet.prototype.replace=o),a&&(i.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}(e,{win:n}),p=b_(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:i},{win:r}){const s=r.CSSStyleDeclaration.prototype.setProperty;r.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:a_((r,o,a)=>{const[c,l,u]=a;if(n.has(c))return s.apply(o,[c,l,u]);const{id:p,styleId:d}=y_(c_([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,i.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:c,value:l,priority:u},index:v_(o.parentRule)}),r.apply(o,a)})});const o=r.CSSStyleDeclaration.prototype.removeProperty;return r.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:a_((r,s,a)=>{const[c]=a;if(n.has(c))return o.apply(s,[c]);const{id:l,styleId:u}=y_(c_([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,i.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:v_(s.parentRule)}),r.apply(s,a)})}),a_(()=>{r.CSSStyleDeclaration.prototype.setProperty=s,r.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:n}),e.collectFonts&&(m=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],r=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){const i=new s(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};const o=wx(t.fonts,"add",function(t){return function(n){return Bx(a_(()=>{const t=r.get(n);t&&(e(t),r.delete(n))}),0),t.apply(this,[n])}});return i.push(()=>{n.FontFace=s}),i.push(o),a_(()=>{i.forEach(e=>e())})}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:i,blockSelector:r,unblockSelector:s,selectionCb:o}=e;let a=!0;const c=a_(()=>{const e=t.getSelection();if(!e||a&&c_([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const o=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:u,endOffset:p}=o;Ix(a,i,r,s,!0)||Ix(u,i,r,s,!0)||c.push({start:n.getId(a),startOffset:l,end:n.getId(u),endOffset:p})}o({ranges:c})});return c(),vx("selectionchange",c)}(e),f=function({doc:e,customElementCb:t}){const n=e.defaultView;if(!n||!n.customElements)return()=>{};const i=wx(n.customElements,"define",function(e){return function(n,i,r){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,i,r])}});return i}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return a_(()=>{l_.forEach(e=>e.reset()),c_([i,"optionalAccess",e=>e.disconnect,"call",e=>e()]),r(),s(),o(),a(),c(),l(),u(),p(),d(),m(),h(),f(),g.forEach(e=>e())})}function __(e){return void 0!==window[e]}function w_(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class k_{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,i){const r=n||this.getIdToRemoteIdMap(e),s=i||this.getRemoteIdToIdMap(e);let o=r.get(t);return o||(o=this.generateIdFn(),r.set(t,o),s.set(o,t)),o}getIds(e,t){const n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,i))}getRemoteId(e,t,n){const i=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const r=i.get(t);return r||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function S_(e){let t,n=e[0],i=1;for(;i<e.length;){const r=e[i],s=e[i+1];if(i+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(t=n,n=s(n)):"call"!==r&&"optionalCall"!==r||(n=s((...e)=>n.call(t,...e)),t=void 0)}return n}class T_{constructor(){this.crossOriginIframeMirror=new k_(Yb),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class E_{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new k_(Yb),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new k_(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),S_([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);const n=Yx(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const i=this.transformCrossOriginEvent(n,t.data.event);i&&this.wrappedEmit(i,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Hx.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Hx.IncrementalSnapshot,data:{source:Wx.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Hx.Meta:case Hx.Load:case Hx.DomContentLoaded:return!1;case Hx.Plugin:return t;case Hx.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Hx.IncrementalSnapshot:switch(t.data.source){case Wx.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Wx.Drag:case Wx.TouchMove:case Wx.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Wx.ViewportResize:return!1;case Wx.MediaInteraction:case Wx.MouseInteraction:case Wx.Scroll:case Wx.CanvasMutation:case Wx.Input:return this.replaceIds(t.data,e,["id"]),t;case Wx.StyleSheetRule:case Wx.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Wx.Font:return t;case Wx.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Wx.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),S_([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,i){for(const r of i)(Array.isArray(t[r])||"number"==typeof t[r])&&(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===Cb.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class C_{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class I_{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!jb(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=p_({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(m_({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Bx(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(b_({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=Yx(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(wx(e.prototype,"attachShadow",function(e){return function(i){const r=e.call(this,i);return this.shadowRoot&&Fx(this)&&n.addShadowRoot(this.shadowRoot,t),r}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class j_{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class O_{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Mx,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},i=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),i.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:Ab(e),index:t}))})),n.styleIds.push(e)}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class A_{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){$x("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let L_,R_;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=Wg([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const P_=new Lb;function M_(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:p=null,maskTextSelector:d=null,unmaskTextSelector:m=null,inlineStylesheet:h=!0,maskAllInputs:f,maskInputOptions:g,slimDOMOptions:v,maskAttributeFn:y,maskInputFn:b,maskTextFn:x,maxCanvasSize:_=null,packFn:w,sampling:k={},dataURLOptions:S={},mousemoveWait:T,recordDOM:E=!0,recordCanvas:C=!1,recordCrossOriginIframes:I=!1,recordAfter:j=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:A=!1,inlineImages:L=!1,plugins:R,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:M=new Set([]),errorHandler:N,onMutation:D,getCanvasManager:F}=e;s_(N);const z=!I||window.parent===window;let $=!1;if(!z)try{window.parent.document&&($=!1)}catch(e){$=!0}if(z&&!t)throw new Error("emit function is required");if(!z&&!$)return()=>{};void 0!==T&&void 0===k.mousemove&&(k.mousemove=T),P_.reset();const B=!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},q=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};let U;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let H=0;const W=e=>{for(const t of R||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!$&&(e=w(e)),e};L_=(e,r)=>{const s=e;if(s.timestamp=kx(),!Wg([l_,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||s.type===Hx.FullSnapshot||s.type===Hx.IncrementalSnapshot&&s.data.source===Wx.Mutation||l_.forEach(e=>e.unfreeze()),z)Wg([t,"optionalCall",e=>e(W(s),r)]);else if($){const e={type:"rrweb",event:W(s),origin:window.location.origin,isCheckout:r};window.parent.postMessage(e,"*")}if(s.type===Hx.FullSnapshot)U=s,H=0;else if(s.type===Hx.IncrementalSnapshot){if(s.data.source===Wx.Mutation&&s.data.isAttachIframe)return;H++;const e=i&&H>=i,t=n&&U&&s.timestamp-U.timestamp>n;(e||t)&&ee(!0)}};const V=e=>{L_({type:Hx.IncrementalSnapshot,data:{source:Wx.Mutation,...e}})},K=e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.Scroll,...e}}),Y=e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.CanvasMutation,...e}}),G=new O_({mutationCb:V,adoptedStyleSheetCb:e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.AdoptedStyleSheet,...e}})}),J="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new T_:new E_({mirror:P_,mutationCb:V,stylesheetManager:G,recordCrossOriginIframes:I,wrappedEmit:L_});for(const e of R||[])e.getMirror&&e.getMirror({nodeMirror:P_,crossOriginIframeMirror:J.crossOriginIframeMirror,crossOriginIframeStyleMirror:J.crossOriginIframeStyleMirror});const X=new A_,Z=function(e,t){try{return e?e(t):new j_}catch(e){return console.warn("Unable to initialize CanvasManager"),new j_}}(F,{mirror:P_,win:window,mutationCb:e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.CanvasMutation,...e}}),recordCanvas:C,blockClass:r,blockSelector:s,unblockSelector:o,maxCanvasSize:_,sampling:k.canvas,dataURLOptions:S,errorHandler:N}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new C_:new I_({mutationCb:V,scrollCb:K,bypassOptions:{onMutation:D,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:m,inlineStylesheet:h,maskInputOptions:B,dataURLOptions:S,maskAttributeFn:y,maskTextFn:x,maskInputFn:b,recordCanvas:C,inlineImages:L,sampling:k,slimDOMOptions:q,iframeManager:J,stylesheetManager:G,canvasManager:Z,keepIframeSrcFn:P,processedNodeManager:X},mirror:P_}),ee=(e=!1)=>{if(!E)return;L_({type:Hx.Meta,data:{href:window.location.href,width:Ex(),height:Tx()}},e),G.reset(),Q.init(),l_.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new Lb,blockClass:i="rr-block",blockSelector:r=null,unblockSelector:s=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:p=!0,inlineImages:d=!1,recordCanvas:m=!1,maskAllInputs:h=!1,maskAttributeFn:f,maskTextFn:g,maskInputFn:v,slimDOM:y=!1,dataURLOptions:b,preserveWhiteSpace:x,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:S,stylesheetLoadTimeout:T,keepIframeSrcFn:E=()=>!1}=t||{};return fx(e,{doc:e,mirror:n,blockClass:i,blockSelector:r,unblockSelector:s,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:p,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:f,maskTextFn:g,maskInputFn:v,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:b,inlineImages:d,recordCanvas:m,preserveWhiteSpace:x,onSerialize:_,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:S,stylesheetLoadTimeout:T,keepIframeSrcFn:E,newlyAddedElement:!1})}(document,{mirror:P_,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:m,inlineStylesheet:h,maskAllInputs:B,maskAttributeFn:y,maskInputFn:b,maskTextFn:x,slimDOM:q,dataURLOptions:S,recordCanvas:C,inlineImages:L,onSerialize:e=>{Lx(e,P_)&&J.addIframe(e),Rx(e,P_)&&G.trackLinkElement(e),Px(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{J.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{G.attachLinkElement(e,t)},keepIframeSrcFn:P});if(!t)return console.warn("Failed to snapshot the document");L_({type:Hx.FullSnapshot,data:{node:t,initialOffset:Sx(window)}}),l_.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&G.adoptStyleSheets(document.adoptedStyleSheets,P_.getId(document))};R_=ee;try{const e=[],t=e=>a_(x_)({onMutation:D,mutationCb:V,mousemoveCb:(e,t)=>L_({type:Hx.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.ViewportResize,...e}}),inputCb:e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.Input,...e}}),mediaInteractionCb:e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.MediaInteraction,...e}}),styleSheetRuleCb:e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.StyleSheetRule,...e}}),styleDeclarationCb:e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.StyleDeclaration,...e}}),canvasMutationCb:Y,fontCb:e=>L_({type:Hx.IncrementalSnapshot,data:{source:Wx.Font,...e}}),selectionCb:e=>{L_({type:Hx.IncrementalSnapshot,data:{source:Wx.Selection,...e}})},customElementCb:e=>{L_({type:Hx.IncrementalSnapshot,data:{source:Wx.CustomElement,...e}})},blockClass:r,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:m,maskInputOptions:B,inlineStylesheet:h,sampling:k,recordDOM:E,recordCanvas:C,inlineImages:L,userTriggeredOnInput:O,collectFonts:A,doc:e,maskAttributeFn:y,maskInputFn:b,maskTextFn:x,keepIframeSrcFn:P,blockSelector:s,unblockSelector:o,slimDOMOptions:q,dataURLOptions:S,mirror:P_,iframeManager:J,stylesheetManager:G,shadowDomManager:Q,processedNodeManager:X,canvasManager:Z,ignoreCSSAttributes:M,plugins:Wg([R,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>L_({type:Hx.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});J.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(vx("DOMContentLoaded",()=>{L_({type:Hx.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&n()})),e.push(vx("load",()=>{L_({type:Hx.Load,data:{}}),"load"===j&&n()},window))),()=>{e.forEach(e=>e()),X.destroy(),R_=void 0,o_()}}catch(e){console.warn(e)}}M_.mirror=P_,M_.takeFullSnapshot=function(e){if(!R_)throw new Error("please take full snapshot after start recording");R_(e)};function N_(e){return e>9999999999?e:1e3*e}function D_(e){return e>9999999999?e/1e3:e}function F_(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Hx.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:of(t,10,1e3)}}),"console"===t.category)))}function z_(e){return e.closest("button,a")||e}function $_(e){const t=B_(e);return t&&t instanceof Element?z_(t):t}function B_(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let q_;function U_(e){return q_||(q_=[],ym(yb,"open",function(e){return function(...t){if(q_)try{q_.forEach(e=>e())}catch(e){}return e.apply(yb,t)}})),q_.push(e),()=>{const t=q_?q_.indexOf(e):-1;t>-1&&q_.splice(t,1)}}const H_=new Set([Wx.Mutation,Wx.StyleSheetRule,Wx.StyleDeclaration,Wx.AdoptedStyleSheet,Wx.CanvasMutation,Wx.Selection,Wx.MediaInteraction]);class W_{constructor(e,t,n=F_){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=U_(()=>{this._lastMutation=K_()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!V_.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:D_(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=D_(e)}registerScroll(e=Date.now()){this._lastScroll=D_(e)}registerClick(e){const t=z_(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=K_();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,r=!n&&!i,{clickCount:s,clickBreadcrumb:o}=e;if(r){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),i=n<1e3*this._timeout?"mutation":"timeout",r={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:yb.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:i,clickCount:s||1}};return void this._addBreadcrumbEvent(t,r)}if(s>1){const e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:yb.location.href,route:t.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=zy(()=>this._checkClicks(),1e3)}}const V_=["A","BUTTON","INPUT"];function K_(){return Date.now()/1e3}function Y_(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(H_.has(n)&&e.registerMutation(t.timestamp),n===Wx.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Wx.MouseInteraction}(t)){const{type:n,id:i}=t.data,r=M_.mirror.getNode(i);r instanceof HTMLElement&&n===Vx.Click&&e.registerClick(r)}}catch(e){}}function G_(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var J_;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(J_||(J_={}));const X_=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Z_(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(X_.has(n)){let i=n;"data-testid"!==n&&"data-test-id"!==n||(i="testId"),t[i]=e[n]}return t}const Q_=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,i=null;try{i=t?$_(e.event):B_(e.event),n=um(i,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:i,message:n}}(e);return G_({category:`ui.${e.name}`,...ew(t,n)})}(t);if(!n)return;const i="click"===t.name,r=i?t.event:void 0;var s,o,a;!(i&&e.clickDetector&&r&&r.target)||r.altKey||r.metaKey||r.ctrlKey||r.shiftKey||(s=e.clickDetector,o=n,a=$_(t.event),s.handleClick(o,a)),F_(e,n)};function ew(e,t){const n=M_.mirror.getId(e),i=n&&M_.mirror.getNode(n),r=i&&M_.mirror.getMeta(i),s=r&&function(e){return e.type===J_.Element}(r)?r:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===J_.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:Z_(s.attributes)}}:{}}}function tw(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:i,altKey:r,key:s,target:o}=e;if(!o||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(o)||!s)return null;const a=t||i||r,c=1===s.length;if(!a&&c)return null;const l=um(o,{maxStringLength:200})||"<unknown>",u=ew(o,l);return G_({category:"ui.keyDown",message:l,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:i,altKey:r,key:s}})}(t);n&&F_(e,n)}const nw={resource:function(e){const{entryType:t,initiatorType:n,name:i,responseEnd:r,startTime:s,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:sw(s),end:sw(r),name:i,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:i,startTime:r}=e,s=sw(r);return{type:n,name:i,start:s,end:s+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:i,duration:r,domComplete:s,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:p,redirectCount:d,startTime:m,transferSize:h,type:f}=e;if(0===r)return null;return{type:`${t}.${f}`,start:sw(m),end:sw(s),name:n,data:{size:h,decodedBodySize:i,encodedBodySize:o,duration:r,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:p,domComplete:s,redirectCount:d}}}};function iw(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function rw(e){const t=nw[e.entryType];return t?t(e):null}function sw(e){return((jm||yb.performance.timeOrigin)+e)/1e3}function ow(e){const t=e.entries[e.entries.length-1];return pw(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function aw(e){return void 0!==e.sources}function cw(e){const t=[],n=[];for(const i of e.entries)if(aw(i)){const e=[];for(const t of i.sources)if(t.node){n.push(t.node);const i=M_.mirror.getId(t.node);i&&e.push(i)}t.push({value:i.value,nodeIds:e.length?e:void 0})}return pw(e,"cumulative-layout-shift",n,t)}function lw(e){const t=e.entries[e.entries.length-1];return pw(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function uw(e){const t=e.entries[e.entries.length-1];return pw(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function pw(e,t,n,i){const r=e.value,s=e.rating,o=sw(r);return{type:"web-vital",name:t,start:o,end:o,data:{value:r,size:r,rating:s,nodeIds:n?n.map(e=>M_.mirror.getId(e)):void 0,attributions:i}}}const dw="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const mw=["info","warn","error","log"],hw="[Replay] ";function fw(e,t="info"){mg({category:"console",data:{logger:"replay"},level:t,message:`${hw}${e}`},{level:t})}const gw=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return dw?(mw.forEach(e=>{n[e]=(...n)=>{Id[e](hw,...n),t&&fw(n.join(""),Eg(e))}}),n.exception=(i,...r)=>{r.length&&n.error&&n.error(...r),Id.error(hw,i),e?Bf(i):t&&fw(i,"error")},n.infoTick=(...e)=>{Id.info(hw,...e),t&&setTimeout(()=>fw(e[0]),0)}):mw.forEach(e=>{n[e]=()=>{}}),n}();class vw extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class yw{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>kb)throw new vw;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(e=>e.timestamp).sort()[0];return e?N_(e):null}}class bw{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){dw&&gw.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((i,r)=>{const s=({data:t})=>{const o=t;if(o.method===e&&o.id===n){if(this._worker.removeEventListener("message",s),!o.success)return dw&&gw.error("Error in compression worker: ",o.response),void r(new Error("Error in compression worker"));i(o.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class xw{constructor(e){this._worker=new bw(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=N_(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>kb?Promise.reject(new vw):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{dw&&gw.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class _w{constructor(e){this._fallback=new yw,this._compression=new xw(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(dw&&gw.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,i=[];for(const t of e)i.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(e){dw&&gw.exception(e,"Failed to add events when switching buffers.")}}}function ww({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;dw&&gw.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new _w(n)}catch(e){dw&&gw.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return dw&&gw.info("Using simple buffer"),new yw}function kw(){try{return"sessionStorage"in yb&&!!yb.sessionStorage}catch(e){return!1}}function Sw(e){!function(){if(!kw())return;try{yb.sessionStorage.removeItem(bb)}catch(e){}}(),e.session=void 0}function Tw(e){return void 0!==e&&Math.random()<e}function Ew(e){const t=Date.now();return{id:e.id||Om(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Cw(e){if(kw())try{yb.sessionStorage.setItem(bb,JSON.stringify(e))}catch(e){}}function Iw({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:i}={}){const r=function(e,t){return Tw(e)?"session":!!t&&"buffer"}(e,t),s=Ew({sampled:r,previousSessionId:i});return n&&Cw(s),s}function jw(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Ow(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:i=Date.now()}){return jw(e.started,t,i)||jw(e.lastActivity,n,i)}function Aw(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Ow(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Lw({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},i){const r=i.stickySession&&function(){if(!kw())return null;try{const e=yb.sessionStorage.getItem(bb);if(!e)return null;const t=JSON.parse(e);return dw&&gw.infoTick("Loading existing session"),Ew(t)}catch(e){return null}}();return r?Aw(r,{sessionIdleExpire:e,maxReplayDuration:t})?(dw&&gw.infoTick("Session in sessionStorage is expired, creating new one..."),Iw(i,{previousSessionId:r.id})):r:(dw&&gw.infoTick("Creating new session"),Iw(i,{previousSessionId:n}))}function Rw(e,t,n){return!!Mw(e,t)&&(Pw(e,t,n),!0)}async function Pw(e,t,n){const{eventBuffer:i}=e;if(!i||i.waitForCheckout&&!n)return null;const r="buffer"===e.recordingMode;try{n&&r&&i.clear(),n&&(i.hasCheckout=!0,i.waitForCheckout=!1);const s=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Hx.Custom}(e))return t(e)}catch(e){return dw&&gw.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!s)return;return await i.addEvent(s)}catch(t){const n=t&&t instanceof vw,s=n?"addEventSizeExceeded":"addEvent";if(n&&r)return i.clear(),i.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:s});const o=sh();o&&o.recordDroppedEvent("internal_sdk_error","replay")}}function Mw(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=N_(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(dw&&gw.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function Nw(e){return!e.type}function Dw(e){return"transaction"===e.type}function Fw(e){return"feedback"===e.type}function zw(e){return(t,n)=>{if(!e.isEnabled()||!Nw(t)&&!Dw(t))return;const i=n&&n.statusCode;!i||i<200||i>=300||(Dw(t)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:i}=e.getOptions();if("function"==typeof i&&!i(t))return;zy(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}function $w(e){return t=>{e.isEnabled()&&Nw(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){F_(e,G_({category:"replay.hydrate-error",data:{url:dm()}}))}}(e,t)}}function Bw(e){const t=sh();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!qw(t))return;const n=function(e){if(!qw(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return G_(e);let n=!1;const i=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>wb?(n=!0,`${e.slice(0,wb)}…`):e;if("object"==typeof e)try{const t=of(e,7);return JSON.stringify(t).length>wb?(n=!0,`${JSON.stringify(t,null,2).slice(0,wb)}…`):t}catch(e){}return e});return G_({...e,data:{...e.data,arguments:i,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return G_(e)}(t);n&&F_(e,n)}(e,t))}function qw(e){return!!e.category}function Uw(){const e=nh().getPropagationContext().dsc;e&&delete e.replay_id;const t=zh();if(t){delete Qh(t).replay_id}}function Hw(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Nw(t)&&!Dw(t)&&!Fw(t))return t;if(!e.checkAndHandleExpiredSession())return Uw(),t;if(Fw(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:Hx.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return dw&&gw.log("Ignoring error from rrweb internals",t),null;const i=function(e,t){return"buffer"===e.recordingMode&&t.message!==xb&&!(!t.exception||t.type)&&Tw(e.getOptions().errorSampleRate)}(e,t);return(i||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t},{id:"Replay"})}function Ww(e,t){return t.map(({type:t,start:n,end:i,name:r,data:s})=>{const o=e.throttledAddEvent({type:Hx.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:r,startTimestamp:n,endTimestamp:i,data:s}}});return"string"==typeof o?Promise.resolve(null):o})}function Vw(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,i=Date.now()/1e3;return{type:"navigation.push",start:i,end:i,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Ww(e,[n]),!1)))}}function Kw(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!dw||!e.getOptions()._experiments.traceInternals)&&lg(t,sh())}(e,t.name)||e.addUpdate(()=>(Ww(e,[t]),!0)))}function Yw(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=nk(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Gw(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Jw(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[nk(e)];if(!e)return[void 0]}catch(t){return dw&&gw.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return dw&&gw.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Xw(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},i=n.warnings||[];return n.warnings=[...i,t],e._meta=n,e}function Zw(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:i,url:r,method:s,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:i/1e3,name:r,data:Tm({method:s,statusCode:o,request:a,response:c})}}function Qw(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ek(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const i={headers:e,size:t},{body:r,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>_b,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,_b);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return i.body=r,s&&s.length>0&&(i._meta={warnings:s}),i}function tk(e,t){return Object.entries(e).reduce((n,[i,r])=>{const s=i.toLowerCase();return t.includes(s)&&e[i]&&(n[s]=r),n},{})}function nk(e){return new URLSearchParams(e).toString()}function ik(e,t){const n=function(e,t=yb.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(yb.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const i=n.href;if(!e.endsWith("/")&&i.endsWith("/"))return i.slice(0,-1);return i}(e);return vm(n,t)}async function rk(e,t,n){try{const i=await async function(e,t,n){const i=Date.now(),{startTimestamp:r=i,endTimestamp:s=i}=t,{url:o,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,p=ik(o,n.networkDetailAllowUrls)&&!ik(o,n.networkDetailDenyUrls),d=p?function({networkCaptureBodies:e,networkRequestHeaders:t},n,i){const r=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return ak(e[0],t);if(2===e.length)return ak(e[1],t);return{}}(n,t):{};if(!e)return ek(r,i,void 0);const s=sk(n),[o,a]=Jw(s),c=ek(r,i,o);if(a)return Xw(c,a);return c}(n,t.input,l):Qw(l),m=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},i,r){if(!e&&void 0!==r)return Qw(r);const s=i?ok(i.headers,n):{};if(!i||!t&&void 0!==r)return ek(s,r,void 0);const[o,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){dw&&gw.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise((t,n)=>{const i=zy(()=>n(new Error("Timeout while trying to read response body")),500);(async function(e){return await e.text()})(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(i))})}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(dw&&gw.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(dw&&gw.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(i),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:i,headers:r}){try{const s=e&&e.length&&void 0===n?Yw(e):n;return i?ek(r,s,t?e:void 0):Qw(s)}catch(e){return dw&&gw.exception(e,"Failed to serialize response body"),ek(r,n,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:r,captureDetails:e,headers:s});if(a)return Xw(c,a);return c}(p,n,t.response,u);return{startTimestamp:r,endTimestamp:s,url:o,method:a,statusCode:c,request:d,response:m}}(e,t,n),r=Zw("resource.fetch",i);Kw(n.replay,r)}catch(e){dw&&gw.exception(e,"Failed to capture fetch breadcrumb")}}function sk(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function ok(e,t){const n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function ak(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?ok(n,t):Array.isArray(n)?{}:tk(n,t):{}}async function ck(e,t,n){try{const i=function(e,t,n){const i=Date.now(),{startTimestamp:r=i,endTimestamp:s=i,input:o,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:p,response_body_size:d}=e.data;if(!c)return null;if(!a||!ik(c,n.networkDetailAllowUrls)||ik(c,n.networkDetailDenyUrls)){return{startTimestamp:r,endTimestamp:s,url:c,method:l,statusCode:u,request:Qw(p),response:Qw(d)}}const m=a[$y],h=m?tk(m.request_headers,n.networkRequestHeaders):{},f=tk(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>{const[n,i]=t.split(": ");return i&&(e[n.toLowerCase()]=i),e},{})}(a),n.networkResponseHeaders),[g,v]=n.networkCaptureBodies?Jw(o):[void 0],[y,b]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return dw&&gw.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return dw&&gw.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return dw&&gw.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],x=ek(h,p,g),_=ek(f,d,y);return{startTimestamp:r,endTimestamp:s,url:c,method:l,statusCode:u,request:v?Xw(x,v):x,response:b?Xw(_,b):_}}(e,t,n),r=Zw("resource.xhr",i);Kw(n.replay,r)}catch(e){dw&&gw.exception(e,"Failed to capture xhr breadcrumb")}}function lk(e,t){const{xhr:n,input:i}=t;if(!n)return;const r=Yw(i),s=n.getResponseHeader("content-length")?Gw(n.getResponseHeader("content-length")):function(e,t){try{return Yw("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(e){return}}(n.response,n.responseType);void 0!==r&&(e.data.request_body_size=r),void 0!==s&&(e.data.response_body_size=s)}function uk(e){const t=sh();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:i,networkCaptureBodies:r,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:i,networkCaptureBodies:r,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(lk(t,n),ck(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t){const{input:n,response:i}=t,r=Yw(n?sk(n):void 0),s=i?Gw(i.headers.get("content-length")):void 0;void 0!==r&&(e.data.request_body_size=r),void 0!==s&&(e.data.response_body_size=s)}(t,n),rk(t,n,e))}catch(e){dw&&gw.exception(e,"Error when enriching network breadcrumb")}}(a,e,t))}catch(e){}}function pk(e){const t=sh();Ay(Q_(e)),Py(Vw(e)),Bw(e),uk(e);const n=Hw(e);var i;i=n,ih().addEventProcessor(i),t&&(t.on("beforeSendEvent",$w(e)),t.on("afterSendEvent",zw(e)),t.on("createDsc",t=>{const n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){e.checkAndHandleExpiredSession()&&(t.replay_id=n)}}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",(t,n)=>{const i=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&i&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=i)}))}function dk(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}=e,r=Date.now()/1e3;return{type:"memory",name:"memory",start:r,end:r,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}}}}const mk=wd.navigator;function hk(e){let t=!1;return(n,i)=>{if(!e.checkAndHandleExpiredSession())return void(dw&&gw.warn("Received replay event after session expired."));const r=i||!t;t=!0,e.clickDetector&&Y_(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&r&&e.setInitialState(),!Rw(e,n,r))return!0;if(!r)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Rw(e,function(e){const t=e.getOptions();return{type:Hx.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,r),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(dw&&gw.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Cw(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}async function fk({recordingData:e,replayId:t,segmentId:n,eventContext:i,timestamp:r,session:s}){const o=function({recordingData:e,headers:t}){let n;const i=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${i}${e}`;else{const t=(new TextEncoder).encode(i);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=i,p=sh(),d=nh(),m=p&&p.getTransport(),h=p&&p.getDsn();if(!(p&&m&&h&&s.sampled))return Dm({});const f={type:"replay_event",replay_start_timestamp:u/1e3,timestamp:r/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:s.sampled},g=await async function({client:e,scope:t,replayId:n,event:i}){const r={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",i,r);const s=await Ff(e.getOptions(),i,r,t,e,ih());if(!s)return null;s.platform=s.platform||"javascript";const o=e.getSdkMetadata(),{name:a,version:c}=o&&o.sdk||{};return s.sdk={...s.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},s}({scope:d,client:p,replayId:t,event:f});if(!g)return p.recordDroppedEvent("event_processor","replay",f),dw&&gw.info("An event processor returned `null`, will not send event."),Dm({});delete g.sdkProcessingMetadata;const v=function(e,t,n,i){return lf(bf(e,yf(e),i,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,o,h,p.getOptions().tunnel);let y;try{y=await m.send(v)}catch(e){const t=new Error(xb);try{t.cause=e}catch(e){}throw t}if("number"==typeof y.statusCode&&(y.statusCode<200||y.statusCode>=300))throw new gk(y.statusCode);const b=ag({},y);if(og(b,"replay"))throw new vk(b);return y}class gk extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class vk extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function yk(e,t={count:0,interval:5e3}){const{recordingData:n,onError:i}=e;if(n.length)try{return await fk(e),!0}catch(n){if(n instanceof gk||n instanceof vk)throw n;if(Uf("Replays",{_retryCount:t.count}),i&&i(n),t.count>=3){const e=new Error(`${xb} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,i)=>{zy(async()=>{try{await yk(e,t),n(!0)}catch(e){i(e)}},t.interval)})}}const bk="__THROTTLED";function xk(e,t,n){const i=new Map;let r=!1;return(...s)=>{const o=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;i.forEach((e,n)=>{n<t&&i.delete(n)})})(o),[...i.values()].reduce((e,t)=>e+t,0)>=t){const e=r;return r=!0,e?"__SKIPPED":bk}r=!1;const a=i.get(o)||0;return i.set(o,a+1),e(...s)}}class _k{constructor({options:e,recordingOptions:t}){_k.prototype.__init.call(this),_k.prototype.__init2.call(this),_k.prototype.__init3.call(this),_k.prototype.__init4.call(this),_k.prototype.__init5.call(this),_k.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let i,r,s;const o=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),i=e(),i}function c(){void 0!==r&&clearTimeout(r),void 0!==s&&clearTimeout(s),r=s=void 0}function l(){return r&&clearTimeout(r),r=zy(a,t),o&&void 0===s&&(s=zy(a,o)),i}return l.cancel=c,l.flush=function(){return void 0!==r||void 0!==s?a():i},l}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=xk((e,t)=>function(e,t,n){return Mw(e,t)?Pw(e,t,n):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),r=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;if(r&&(this.clickDetector=new W_(this,r)),dw){const t=e._experiments;gw.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){dw&&gw.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,i=t<=0&&n<=0;this._requiresManualStart=i,i||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",dw&&gw.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):dw&&gw.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(dw&&gw.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(dw&&gw.info("Buffering is in progress, call `flush()` to save the replay"));dw&&gw.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Lw({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(dw&&gw.info("Buffering is in progress, call `flush()` to save the replay"));dw&&gw.infoTick("Starting replay in buffer mode");const e=Lw({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=M_({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:hk(this),.../iPhone|iPad|iPod/i.test(mk&&mk.userAgent||"")||/Macintosh/i.test(mk&&mk.userAgent||"")&&mk&&mk.maxTouchPoints&&mk.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{dw&&gw.info("Stopping Replay"+(t?` triggered by ${t}`:"")),Uw(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Sw(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),dw&&gw.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),dw&&gw.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();dw&&gw.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&jw(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${yb.location.pathname}${yb.location.hash}${yb.location.search}`,t=`${yb.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===bk){const e=G_({category:"replay.throttled"});this.addUpdate(()=>!Rw(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastActiveSpan||zh(),t=e&&Fh(e),n=(t&&Ah(t).data||{})[ch];if(t&&n&&["route","custom"].includes(n))return Ah(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=ww({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Lw({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Aw(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{yb.document.addEventListener("visibilitychange",this._handleVisibilityChange),yb.addEventListener("blur",this._handleWindowBlur),yb.addEventListener("focus",this._handleWindowFocus),yb.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(pk(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const i=[];return["navigation","paint","resource"].forEach(e=>{i.push(ny(e,n))}),i.push(Qv(iw(ow,e)),Zv(iw(cw,e)),ey(iw(lw,e)),ty(iw(uw,e))),()=>{i.forEach(e=>e())}}(this)}_removeListeners(){try{yb.document.removeEventListener("visibilitychange",this._handleVisibilityChange),yb.removeEventListener("blur",this._handleWindowBlur),yb.removeEventListener("focus",this._handleWindowFocus),yb.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===yb.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=G_({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=G_({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{tw(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Ow(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):dw&&gw.info("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:Hx.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(rw).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(Ww(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(Ww(e,[dk(yb.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const r=await this.eventBuffer.finish();await yk({replayId:e,recordingData:r,segmentId:i,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=sh();if(t){const n=e instanceof vk?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else dw&&gw.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(dw&&gw.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const i=n<this._options.minReplayDuration,r=n>this._options.maxReplayDuration+5e3;if(i||r)return dw&&gw.info(`Session duration (${Math.floor(n/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),void(i&&this._debouncedFlush());const s=this.eventBuffer;s&&0===this.session.segmentId&&!s.hasCheckout&&dw&&gw.info("Flushing initial segment without checkout.");const o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Cw(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,i=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||i){const e=G_({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function wk(e,t){return[...e,...t].join(",")}const kk='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Sk=["content-length","content-type","accept"];let Tk=!1;const Ek=e=>new Ck(e);class Ck{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:i=36e5,stickySession:r=!0,useCompression:s=!0,workerUrl:o,_experiments:a={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:p=750,mutationLimit:d=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:f=[],networkDetailDenyUrls:g=[],networkCaptureBodies:v=!0,networkRequestHeaders:y=[],networkResponseHeaders:b=[],mask:x=[],maskAttributes:_=["title","placeholder"],unmask:w=[],block:k=[],unblock:S=[],ignore:T=[],maskFn:E,beforeAddRecordingEvent:C,beforeErrorSampling:I,onError:j}={}){this.name=Ck.id;const O=function({mask:e,unmask:t,block:n,unblock:i,ignore:r}){return{maskTextSelector:wk(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:wk(t,[]),blockSelector:wk(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:wk(i,[]),ignoreSelector:wk(r,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:x,unmask:w,block:k,unblock:S,ignore:T});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:i,privacyOptions:r,value:s}){return i?r.unmaskTextSelector&&e.matches(r.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s:s}({maskAttributes:_,maskAllText:c,privacyOptions:O,key:e,value:t,el:n}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(i,Sb),stickySession:r,useCompression:s,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:p,mutationLimit:d,slowClickTimeout:m,slowClickIgnoreSelectors:h,networkDetailAllowUrls:f,networkDetailDenyUrls:g,networkCaptureBodies:v,networkRequestHeaders:Ik(y),networkResponseHeaders:Ik(b),beforeAddRecordingEvent:C,beforeErrorSampling:I,onError:j,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${kk}`:kk),this._isInitialized&&Ug())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Tk}set _isInitialized(e){Tk=e}afterAllSetup(e){Ug()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay&&this._replay.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),i={sessionSampleRate:0,errorSampleRate:0,...Tm(e)},r=ef(n.replaysSessionSampleRate),s=ef(n.replaysOnErrorSampleRate);null==r&&null==s&&Cd(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")});null!=r&&(i.sessionSampleRate=r);null!=s&&(i.errorSampleRate=s);return i}(this._initialOptions,e);this._replay=new _k({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function Ik(e){return[...Sk,...e.map(e=>e.toLowerCase())]}Ck.__initStatic();const jk=new WeakMap,Ok=new Map,Ak={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Lk(e,t){const{traceFetch:n,traceXHR:i,trackFetchStreamPerformance:r,shouldCreateSpanForRequest:s,enableHTTPTimings:o,tracePropagationTargets:a}={traceFetch:Ak.traceFetch,traceXHR:Ak.traceXHR,trackFetchStreamPerformance:Ak.trackFetchStreamPerformance,...t},c="function"==typeof s?s:e=>!0,l=e=>function(e,t){const n=Vg.location&&Vg.location.href;if(n){let i,r;try{i=new URL(e,n),r=new URL(n).origin}catch(e){return!1}const s=i.origin===r;return t?vm(i.toString(),t)||s&&vm(i.pathname,t):s}{const n=!!e.match(/^\/(?!\/)/);return t?vm(e,t):n}}(e,a),u={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){const t=Ok.get(e.span_id);t&&(e.timestamp=t/1e3,Ok.delete(e.span_id))}}),e)),r&&function(e){const t="fetch-body-resolved";zd(t,e),$d(t,()=>Fg(zg))}(e=>{if(e.response){const t=jk.get(e.response);t&&e.endTimestamp&&Ok.set(t,e.endTimestamp)}}),Dg(e=>{const t=Ag(e,c,l,u);if(e.response&&e.fetchData.__span&&jk.set(e.response,e.fetchData.__span),t){const n=Mk(e.fetchData.url),i=n?Sg(n).host:void 0;t.setAttributes({"http.url":n,"server.address":i})}o&&t&&Rk(t)})),i&&By(e=>{const t=function(e,t,n,i){const r=e.xhr,s=r&&r[$y];if(!r||r.__sentry_own_request__||!s)return;const o=Vh()&&t(s.url);if(e.endTimestamp&&o){const e=r.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&void 0!==s.status_code&&(vh(t,s.status_code),t.end(),delete i[e]))}const a=Mk(s.url),c=a?Sg(a).host:void 0,l=!!zh(),u=o&&l?Tf({name:`${s.method} ${s.url}`,attributes:{type:"xhr","http.method":s.method,"http.url":a,url:s.url,"server.address":c,[ph]:"auto.http.browser",[uh]:"http.client"}}):new Kh;r.__sentry_xhr_span_id__=u.spanContext().spanId,i[r.__sentry_xhr_span_id__]=u,n(s.url)&&function(e,t){const{"sentry-trace":n,baggage:i}=pg({span:t});n&&function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader("baggage",n)}catch(e){}}(e,n,i)}(r,Vh()&&l?u:void 0);return u}(e,c,l,u);o&&t&&Rk(t)})}function Rk(e){const{url:t}=Ah(e).data||{};if(!t||"string"!=typeof t)return;const n=ny("resource",({entries:i})=>{i.forEach(i=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(i)&&i.name.endsWith(t)){const t=function(e){const{name:t,version:n}=vy(e.nextHopProtocol),i=[];if(i.push(["network.protocol.version",n],["network.protocol.name",t]),!jm)return i;return[...i,["http.request.redirect_start",Pk(e.redirectStart)],["http.request.fetch_start",Pk(e.fetchStart)],["http.request.domain_lookup_start",Pk(e.domainLookupStart)],["http.request.domain_lookup_end",Pk(e.domainLookupEnd)],["http.request.connect_start",Pk(e.connectStart)],["http.request.secure_connection_start",Pk(e.secureConnectionStart)],["http.request.connection_end",Pk(e.connectEnd)],["http.request.request_start",Pk(e.requestStart)],["http.request.response_start",Pk(e.responseStart)],["http.request.response_end",Pk(e.responseEnd)]]}(i);t.forEach(t=>e.setAttribute(...t)),setTimeout(n)}})})}function Pk(e=0){return((jm||performance.timeOrigin)+e)/1e3}function Mk(e){try{return new URL(e,Vg.location.origin).href}catch(e){return}}const Nk={...jf,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...Ak},Dk=(e={})=>{Bh||(Bh=!0,Ud(qh),Vd(qh));const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:i,_experiments:{enableInteractions:r,enableStandaloneClsSpans:s},beforeStartSpan:o,idleTimeout:a,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:p,traceXHR:d,trackFetchStreamPerformance:m,shouldCreateSpanForRequest:h,enableHTTPTimings:f,instrumentPageLoad:g,instrumentNavigation:v}={...Nk,...e},y=ky({recordClsStandaloneSpans:s||!1});t&&Wy(),i&&wd.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?function(){const e=new PerformanceObserver(e=>{const t=zh();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=gy(jm+n.startTime),{start_timestamp:i,op:r}=Ah(t);if("navigation"===r&&i&&e<i)continue;const s=gy(n.duration),o={[ph]:"auto.ui.browser.metrics"},a=n.scripts[0],{invoker:c,invokerType:l,sourceURL:u,sourceFunctionName:p,sourceCharPosition:d}=a;o["browser.script.invoker"]=c,o["browser.script.invoker_type"]=l,u&&(o["code.filepath"]=u),p&&(o["code.function"]=p),-1!==d&&(o["browser.script.source_char_position"]=d),my(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}});e.observe({type:"long-animation-frame",buffered:!0})}():n&&ny("longtask",({entries:e})=>{const t=zh();if(!t)return;const{op:n,start_timestamp:i}=Ah(t);for(const r of e){const e=gy(jm+r.startTime),s=gy(r.duration);"navigation"===n&&i&&e<i||my(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[ph]:"auto.ui.browser.metrics"}})}}),r&&ny("event",({entries:e})=>{const t=zh();if(t)for(const n of e)if("click"===n.name){const e=gy(jm+n.startTime),i=gy(n.duration),r={name:um(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[ph]:"auto.ui.browser.metrics"}},s=mm(n.target);s&&(r.attributes["ui.component_name"]=s),my(t,e,e+i,r)}});const b={name:void 0,source:void 0};function x(e,t){const n="pageload"===t.op,i=o?o(t):t,r=i.attributes||{};t.name!==i.name&&(r[ch]="custom",i.attributes=r),b.name=i.name,b.source=r[ch];const u=Of(i,{idleTimeout:a,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:n,beforeSpanEnd:e=>{y(),Sy(e,{recordClsOnPageloadSpan:!s})}});function p(){["interactive","complete"].includes(Vg.document.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}return n&&Vg.document&&(Vg.document.addEventListener("readystatechange",()=>{p()}),p()),u}return{name:"BrowserTracing",afterAllSetup(e){let n,i=Vg.location&&Vg.location.href;function s(){n&&!Ah(n).timestamp&&(Jg&&Id.log(`[Tracing] Finishing current active span with op: ${Ah(n).op}`),n.end())}e.on("startNavigationSpan",t=>{sh()===e&&(s(),n=x(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,i={})=>{if(sh()!==e)return;s();const r=Sh(i.sentryTrace||Fk("sentry-trace"),i.baggage||Fk("baggage"));nh().setPropagationContext(r),n=x(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{const t=Ah(e).op;if(e!==Fh(e)||"navigation"!==t&&"pageload"!==t)return;const n=nh(),i=n.getPropagationContext();n.setPropagationContext({...i,sampled:void 0!==i.sampled?i.sampled:Lh(e),dsc:i.dsc||Qh(e)})}),Vg.location&&(g&&function(e,t,n){e.emit("startPageLoadSpan",t,n),nh().setTransactionName(t.name);const i=zh();i&&Ah(i).op}(e,{name:Vg.location.pathname,startTime:jm?jm/1e3:void 0,attributes:{[ch]:"url",[ph]:"auto.pageload.browser"}}),v&&Py(({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,function(e,t){ih().setPropagationContext({traceId:qm()}),nh().setPropagationContext({traceId:qm()}),e.emit("startNavigationSpan",t),nh().setTransactionName(t.name);const n=zh();n&&Ah(n).op}(e,{name:Vg.location.pathname,attributes:{[ch]:"url",[ph]:"auto.navigation.browser"}}))})),u&&(Vg&&Vg.document?Vg.document.addEventListener("visibilitychange",()=>{const e=zh();if(!e)return;const t=Fh(e);if(Vg.document.hidden&&t){const e="cancelled",{op:n,status:i}=Ah(t);Jg&&Id.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),i||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Jg&&Id.warn("[Tracing] Could not set up background tab detection due to lack of global document")),r&&function(e,t,n,i){let r;const s=()=>{const s="ui.action.click",o=zh(),a=o&&Fh(o);if(a){const e=Ah(a).op;if(["navigation","pageload"].includes(e))return void(Jg&&Id.warn(`[Tracing] Did not create ${s} span because a pageload or navigation span is in progress.`))}r&&(r.setAttribute(dh,"interactionInterrupted"),r.end(),r=void 0),i.name?r=Of({name:i.name,op:s,attributes:{[ch]:i.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}):Jg&&Id.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`)};Vg.document&&addEventListener("click",s,{once:!1,capture:!0})}(a,c,l,b),t&&function(){const e=({entries:e})=>{const t=zh(),n=t&&Fh(t);e.forEach(e=>{if(!function(e){return"duration"in e}(e)||!n)return;const t=e.interactionId;if(null!=t&&!Hy.has(t)){if(Uy.length>10){const e=Uy.shift();Hy.delete(e)}Uy.push(t),Hy.set(t,n)}})};ny("event",e),ny("first-input",e)}(),Lk(e,{traceFetch:p,traceXHR:d,trackFetchStreamPerformance:m,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:h,enableHTTPTimings:f})}}};function Fk(e){const t=(n=`meta[name=${e}]`,lm.document&&lm.document.querySelector?lm.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}const zk=e=>{Uf("ROARContext",e)},$k=async(e,t,n)=>{const i=t,r=await e.getStimulusDurationMs(),s=r+300;setTimeout(()=>{e.disableReplayBtn()},r+110);for(const e of i.children)e.classList.add("lev-staggered-responses","lev-staggered-disabled","lev-staggered-grayscale","lev-staggered-opacity");setTimeout(()=>{Bk(0,Array.from(null==i?void 0:i.children),n,e)},s)},Bk=(e,t,n,i)=>{t[e].classList.remove("lev-staggered-grayscale","lev-staggered-opacity");let r=WC.audio[Ho(n[e])];r||(console.error("Audio Asset not available for:",n[e]),r=WC.audio.nullAudio);const s={restrictRepetition:{enabled:!1,maxRepetitions:2},onEnded:()=>{if(e+1===(null==t?void 0:t.length)){for(const e of t)e.classList.remove("lev-staggered-disabled");i.enableReplayBtn()}else Bk(e+1,t,n,i)}};ad.playAudio(r,s)};function qk(e,t,n){const i=document.querySelectorAll(".practice-btn");let r;if(i.forEach((t,r)=>t.addEventListener("click",async s=>{Uk(t,e,i,!1,r,n)})),!t)return r=t=>async function(e,t,n,i){const r=Hk(i),s=r.findIndex(t=>t.toLowerCase()===e.key.toLowerCase());if(r.includes(e.key)){const r=t[s];r&&Uk(r,n,t,!0,e.key.toLowerCase(),i)}}(t,i,e,n),document.addEventListener("keydown",r),r}function Uk(e,t,n,i,r,s){var o,a;const c=Array.prototype.indexOf.call(n,e),l=((null===(o=s.response)||void 0===o?void 0:o.values)||[])[c];let u;if((null==l?void 0:l.toString())===(null===(a=t.answer)||void 0===a?void 0:a.toString()))e.classList.add("success-shadow"),u=WC.audio.feedbackGoodJob,setTimeout(()=>gu.finishTrial({response:l,incorrectPracticeResponses:Ja().incorrectPracticeResponses,button_response:i?null:r,keyboard_response:i?r:null}),1e3);else{e.classList.add("error-shadow"),u=WC.audio.feedbackTryAgain,setTimeout(()=>{n.forEach(e=>e.disabled=!1)},500);let t=Ja().incorrectPracticeResponses;t.push(l),Ja("incorrectPracticeResponses",t)}ad.stopAndDisconnectNode(),ad.playAudio(u)}const Hk=e=>{const t=e.response.values.length;if(1===t)return["Enter"];if(2===t)return["ArrowLeft","ArrowRight"];if(3===t)return["ArrowUp","ArrowLeft","ArrowRight"];if(4===t)return["ArrowUp","ArrowLeft","ArrowRight","ArrowDown"];throw new Error("More than 4 buttons are not supported yet")};function Wk(e){return e.filter(e=>"test_response"===e.assessmentStage).length}const Vk={name:"html-slider-response",parameters:{stimulus:{type:Rc.HTML_STRING,pretty_name:"Stimulus",default:void 0},min:{type:Rc.INT,pretty_name:"Min slider",default:0},max:{type:Rc.INT,pretty_name:"Max slider",default:100},slider_start:{type:Rc.INT,pretty_name:"Slider starting value",default:50},step:{type:Rc.INT,pretty_name:"Step",default:1},labels:{type:Rc.HTML_STRING,pretty_name:"Labels",default:[],array:!0},slider_width:{type:Rc.INT,pretty_name:"Slider width",default:null},button_label:{type:Rc.STRING,pretty_name:"Button label",default:"Continue",array:!1},require_movement:{type:Rc.BOOL,pretty_name:"Require movement",default:!1},prompt:{type:Rc.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:Rc.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:Rc.INT,pretty_name:"Trial duration",default:null},response_ends_trial:{type:Rc.BOOL,pretty_name:"Response ends trial",default:!0}}};class Kk{constructor(e){this.jsPsych=e}trial(e,t){var n='<div id="jspsych-html-slider-response-wrapper" style="margin: 100px 0px;">';n+='<div id="jspsych-html-slider-response-stimulus">'+t.stimulus+"</div>",n+='<div class="jspsych-html-slider-response-container" style="position:relative; margin: 0 auto 3em auto; ',null!==t.slider_width?n+="width:"+t.slider_width+"px;":n+="width:auto;",n+='">',n+='<input type="range" class="jspsych-slider" value="'+t.slider_start+'" min="'+t.min+'" max="'+t.max+'" step="'+t.step+'" id="jspsych-html-slider-response-response"></input>',n+="<div>";for(var i=0;i<t.labels.length;i++){var r=100/(t.labels.length-1),s=i*(100/(t.labels.length-1));n+='<div style="border: 1px solid transparent; display: inline-block; position: absolute; left:calc('+s+"% - ("+r+"% / 2) - "+7.5*((s-50)/50*100)/100+"px); text-align: center; width: "+r+'%;">',n+='<span style="text-align: center; font-size: 80%;">'+t.labels[i]+"</span>",n+="</div>"}n+="</div>",n+="</div>",n+="</div>",null!==t.prompt&&(n+=t.prompt),n+='<button id="jspsych-html-slider-response-next" class="jspsych-btn" '+(t.require_movement?"disabled":"")+">"+t.button_label+"</button>",e.innerHTML=n;var o={rt:null,response:null};if(t.require_movement){const t=()=>{e.querySelector("#jspsych-html-slider-response-next").disabled=!1};e.querySelector("#jspsych-html-slider-response-response").addEventListener("mousedown",t),e.querySelector("#jspsych-html-slider-response-response").addEventListener("touchstart",t),e.querySelector("#jspsych-html-slider-response-response").addEventListener("change",t)}const a=()=>{this.jsPsych.pluginAPI.clearAllTimeouts();var n={rt:o.rt,stimulus:t.stimulus,slider_start:t.slider_start,response:o.response};e.innerHTML="",this.jsPsych.finishTrial(n)};e.querySelector("#jspsych-html-slider-response-next").addEventListener("click",()=>{var n=performance.now();o.rt=Math.round(n-c),o.response=e.querySelector("#jspsych-html-slider-response-response").valueAsNumber,t.response_ends_trial?a():e.querySelector("#jspsych-html-slider-response-next").disabled=!0}),null!==t.stimulus_duration&&this.jsPsych.pluginAPI.setTimeout(()=>{e.querySelector("#jspsych-html-slider-response-stimulus").style.visibility="hidden"},t.stimulus_duration),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(a,t.trial_duration);var c=performance.now()}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={stimulus:e.stimulus,slider_start:e.slider_start,response:this.jsPsych.randomization.randomInt(e.min,e.max),rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0)},i=this.jsPsych.pluginAPI.mergeSimulationData(n,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,i),i}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),r=this.jsPsych.getDisplayElement();if(this.trial(r,e),n(),null!==i.rt){const e=r.querySelector("input[type='range']");setTimeout(()=>{this.jsPsych.pluginAPI.clickTarget(e),e.valueAsNumber=i.response},i.rt/2),this.jsPsych.pluginAPI.clickTarget(r.querySelector("button"),i.rt)}}}let Yk,Gk,Jk;Kk.info=Vk;let Xk,Zk,Qk,eS={};function tS(e,t){const{keyHelpers:n}=Ja();if(n&&!mu){const n=document.createElement("div");n.classList.add("arrow-key-border");const i=document.createElement("p");i.innerHTML=od[t][1],i.style.textAlign="center",i.style.margin="0",n.appendChild(i),e.appendChild(n)}}function nS(e,t,n,i,r){Yk=(null==t?void 0:t.key)?Ia(eS[t.key.toLowerCase()]):Ia(r||(null==e?void 0:e.textContent)),Gk=n,i||gu.finishTrial()}function iS(e,t){const n=e.key?["ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].indexOf(e.key):-1;n>-1&&nS(null,e,n,t)}const rS=(e,t)=>({type:Kk,data:()=>({save_trial:!0,assessment_stage:(t||Ja().nextStimulus).assessmentStage,isPracticeTrial:"practice_response"===(t||Ja().nextStimulus).assessmentStage}),stimulus:()=>{const e=t||Ja().nextStimulus;let n=Ja().translations;const i="Number Line Slider"===e.trialType;return`\n <div class="lev-stimulus-container">\n <button id="replay-btn-revisited" class="replay">\n ${sd}\n </button>\n ${"Number Line Buttons"!==e.trialType?`<div class="lev-row-container instruction">\n <p>\n ${n[Sc(e.audioFile)]}\n ${i?"<br /> "+e.answer:""}\n </p> \n </div>`:""}\n </div>\n `},labels:()=>(t||Ja().nextStimulus).item,require_movement:()=>"Number Line Slider"===(t||Ja().nextStimulus).trialType,min:()=>(t||Ja().nextStimulus).item[0],max:()=>(t||Ja().nextStimulus).item[1],slider_start:()=>{const e=t||Ja().nextStimulus;if(e.trialType.includes("Slider")){const t=e.item[1];Jk=function(e,t,n=.1){const i=t/e;let r=Math.random();for(;Math.abs(r-i)<n;)r=Math.random();return r*e}(t,e.answer)}else Jk="Number Line 4afc"===e.trialType?e.answer:e.item[1];return Jk},step:"any",post_trial_gap:()=>"practice_response"===(t||Ja().nextStimulus).assessmentStage?350:0,on_load:()=>{Xk=performance.now();const n=t||Ja().nextStimulus,i=e[n.itemId];Ja("incorrectPracticeResponses",[]);const r=document.getElementById("jspsych-html-slider-response-response"),s=document.getElementsByTagName("span");Array.from(s).forEach((e,t)=>{e.style.fontSize="1.5rem"});const{buttonLayout:o,keyHelpers:a}=Ja(),c="practice_response"===n.assessmentStage,l=e[n.itemId].response,u=Ia(l.target);Ja("target",u),Ja("choices",l.values);const p=l.values;zk({itemId:n.itemId,taskName:n.task,pageContext:"sliderStimulus"});const d=document.getElementById("jspsych-html-slider-response-wrapper"),m=document.createElement("div");m.style.display="flex",m.style.justifyContent="center",m.style.alignItems="center";const h=document.createElement("div"),f=document.getElementsByClassName("jspsych-html-slider-response-container")[0];if("diamond"===o&&4===l.values.length?h.classList.add("lev-response-row-diamond-layout"):h.classList.add(...i.classOverrides.buttonContainerClassList),"Number Line 4afc"===n.trialType){const e=100*Number(r.value)/(Number(r.max)-Number(r.min));r.classList.add("number-line-4afc-slider"),r.disabled=!0,r.style.background=`linear-gradient(to right, #275BDD ${e}%, #edf0ed ${e}%)`,d.style.margin="0 0 2rem 0";const t=document.getElementById("jspsych-html-slider-response-next");t.disabled=!0,t.style.visibility="hidden";for(let e=0;e<p.length;e++){const t=document.createElement("div");t.style.margin="0px 8px";const i=document.createElement("button");i.textContent=p[e],window.Cypress&&Ia(i.textContent)==u&&i.setAttribute("aria-label","correct"),i.classList.add("secondary"),"practice_response"===n.assessmentStage&&i.classList.add("practice-btn"),i.addEventListener("click",t=>nS(i,t,e,c)),0===e&&(Qk=e=>iS(e,c),document.addEventListener("keydown",Qk));const r=2===p.length?e+1:e;t.appendChild(i),tS(t,r),h.appendChild(t)}}else if("Number Line Slider"===n.trialType){const e=document.getElementById("jspsych-html-slider-response-next");e&&e.classList.add("primary");const t=document.getElementById("jspsych-html-slider-response-response");t.addEventListener("input",()=>Yk=Number(t.value))}else{const e=document.getElementById("jspsych-html-slider-response-next");e.disabled=!0,e.style.visibility="hidden";const t=f.children[1].children;for(let e=0;e<t.length;e++)t[e].style.top="50px";const i=100*Number(r.value)/(Number(r.max)-Number(r.min));r.disabled=!0,r.style.background=`linear-gradient(to right, #275BDD ${i}%, #edf0ed ${i}%)`,r.classList.add("number-line-buttons"),p.forEach((e,t)=>{const i=document.createElement("button");"practice_response"===n.assessmentStage&&i.classList.add("practice-btn"),i.classList.add("slider"),i.style.position="absolute",i.style.top="-12px";const s=100/Number(r.max);i.style.left=`calc(${s*Number(e)}% - ${s/2}%)`,i.addEventListener("click",n=>nS(i,n,t,c,e)),f.appendChild(i)})}if(m.appendChild(h),d.appendChild(m),function(e){const t=WC.audio[Sc(e)]||"",n={restrictRepetition:{enabled:!0,maxRepetitions:2},onEnded:()=>{e&&cd(new dd(e,!0))}};ad.playAudio(t,n)}(n.audioFile),c){let t;t=qk(n,mu,null==e?void 0:e[n.itemId]),void 0!==t&&(Zk=t)}},on_finish:e=>{ad.stopAndDisconnectNode();const n=t||Ja().nextStimulus,i="practice_response"===n.assessmentStage;document.removeEventListener("keydown",Qk),i&&document.removeEventListener("keydown",Zk);const r=performance.now(),s=Ja().runCat;"Number Line 4afc"===n.trialType||"Number Line Buttons"===n.trialType?e.correct=i?0===Ja().incorrectPracticeResponses.length:Yk===Ja().target:e.correct=Math.abs(Yk-n.answer)/n.item[1]<.05,Ja("isCorrect",e.correct),i||(e.correct?(Ja("numIncorrect",0),Ja.transact("totalCorrect",e=>e+1)):Ja.transact("numIncorrect",e=>e+1),s&&gd(n,e.correct));const o=Yk,a=n.trialType.includes("Slider")?"slider":n.trialType.includes("4afc")?"button":"slider-button",c=n.answer;if(gu.data.addDataToLastTrial({item:n.item,answer:c,response:Ia(o),responseType:a,distractors:n.distractors,corpusTrialType:n.trialType,slider_start:Jk,audioButtonPresses:ad.replayPresses,itemUid:n.itemUid}),Ja().storeItemId&&gu.data.addDataToLastTrial({itemId:n.itemId}),"test_response"===n.assessmentStage&&Ja.transact("testTrialCount",e=>e+1),"button"===a||"slider-button"===a){const e=Math.round(r-Xk);gu.data.addDataToLastTrial({rt:e,responseLocation:Gk})}s||pd(n.trialType)}}),sS={name:"fullscreen",parameters:{fullscreen_mode:{type:Rc.BOOL,pretty_name:"Fullscreen mode",default:!0,array:!1},message:{type:Rc.HTML_STRING,pretty_name:"Message",default:"<p>The experiment will switch to full screen mode when you press the button below</p>",array:!1},button_label:{type:Rc.STRING,pretty_name:"Button label",default:"Continue",array:!1},delay_after:{type:Rc.INT,pretty_name:"Delay after",default:1e3,array:!1}}};class oS{constructor(e){this.jsPsych=e,this.rt=null,this.start_time=0}trial(e,t){"undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element?this.endTrial(e,!1,t):t.fullscreen_mode?this.showDisplay(e,t):(this.exitFullScreen(),this.endTrial(e,!0,t))}showDisplay(e,t){e.innerHTML=`\n ${t.message}\n <button id="jspsych-fullscreen-btn" class="jspsych-btn">${t.button_label}</button>\n `,e.querySelector("#jspsych-fullscreen-btn").addEventListener("click",()=>{this.rt=Math.round(performance.now()-this.start_time),this.enterFullScreen(),this.endTrial(e,!0,t)}),this.start_time=performance.now()}endTrial(e,t,n){e.innerHTML="",this.jsPsych.pluginAPI.setTimeout(()=>{var e={success:t,rt:this.rt};this.jsPsych.finishTrial(e)},n.delay_after)}enterFullScreen(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}exitFullScreen(){(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={success:!0,rt:this.jsPsych.randomization.sampleExGaussian(1e3,100,.005,!0)};return this.jsPsych.pluginAPI.mergeSimulationData(n,t)}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),r=this.jsPsych.getDisplayElement();!1===i.success?this.endTrial(r,!1,e):(this.trial(r,e),n(),this.jsPsych.pluginAPI.clickTarget(r.querySelector("#jspsych-fullscreen-btn"),i.rt))}}oS.info=sS;const aS={type:oS,fullscreen_mode:!0,message:()=>`<div class="lev-row-container header">\n <p>${Ja().translations.generalFullscreen||"Switch to full screen mode"}</p>\n </div>\n `,delay_after:0,button_label:()=>`${Ja().translations.continueButtonText||"Continue"}`,on_load:()=>{const e=document.getElementById("jspsych-fullscreen-btn");e&&(e.id="dummy",e.classList.add("primary"))},on_start:()=>{document.body.style.cursor="default"}},cS={type:oS,fullscreen_mode:!1,delay_after:0},lS={name:"html-multi-response",parameters:{stimulus:{type:Rc.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:Rc.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:Rc.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:Rc.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:Rc.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:Rc.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:Rc.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:Rc.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:Rc.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:Rc.BOOL,pretty_name:"Response ends trial",default:!0}}};class uS{constructor(e){this.jsPsych=e}trial(e,t){var n='<div id="jspsych-html-multi-response-stimulus">'+t.stimulus+"</div>",i=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?i=t.button_html:console.error("Error in html-multi-response plugin. The length of the button_html array does not equal the length of the button_choices array");else for(var r=0;r<t.button_choices.length;r++)i.push(t.button_html);n+='<div id="jspsych-html-multi-response-btngroup">';for(r=0;r<t.button_choices.length;r++){var s=i[r].replace(/%choice%/g,t.button_choices[r]);n+='<div class="jspsych-html-multi-response-button" style="display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-html-multi-response-button-'+r+'" data-choice="'+r+'">'+s+"</div>"}n+="</div>",null!==t.prompt&&(n+=t.prompt),e.innerHTML=n;if("NO_KEYS"!=t.keyboard_choices)var o=this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:function(n){e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded",null==c.key&&(c=Object.assign({source:"keyboard",button:null},n)),t.response_ends_trial&&l()},valid_responses:t.keyboard_choices,rt_method:"performance",persist:!1,allow_held_key:!1});var a=performance.now();for(r=0;r<t.button_choices.length;r++)e.querySelector("#jspsych-html-multi-response-button-"+r).addEventListener("click",e=>{u(e.currentTarget.getAttribute("data-choice"))});var c={rt:null,button:null,key:null,source:null};const l=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==o&&this.jsPsych.pluginAPI.cancelKeyboardResponse(o);var n={rt:c.rt,stimulus:t.stimulus,button_response:c.button,keyboard_response:c.key,response_source:c.source};e.innerHTML="",this.jsPsych.finishTrial(n)};function u(n){var i=performance.now(),r=Math.round(i-a);c.button=parseInt(n),c.rt=r,c.source="button",e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded";for(var s=document.querySelectorAll(".jspsych-html-multi-response-button button"),o=0;o<s.length;o++)s[o].setAttribute("disabled","disabled");t.response_ends_trial&&l()}null!==t.stimulus_duration&&this.jsPsych.pluginAPI.setTimeout(()=>{e.querySelector("#jspsych-html-multi-response-stimulus").style.visibility="hidden"},t.stimulus_duration),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(l,t.trial_duration)}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),keyboard_response:this.jsPsych.pluginAPI.getValidKey(e.keyboard_choices),button_response:null,response_source:"keyboard"},i={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),button_response:this.jsPsych.randomization.randomInt(0,e.button_choices.length-1),keyboard_response:null,response_source:"button"},r=Math.random()<.5?n:i,s=this.jsPsych.pluginAPI.mergeSimulationData(r,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,s),s}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),r=this.jsPsych.getDisplayElement();this.trial(r,e),n(),null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(r.querySelector(`div[data-choice="${i.button_response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))}}uS.info=lS;const pS=(e,t)=>({type:uS,stimulus:"<div id='lev-fixation-container'><p>+</p></div>",prompt:"",choices:"NO_KEYS",trial_duration:350,data:{task:"fixation"},on_finish:()=>{e&&(null!=t?nd(e,t):nd(e))}}),dS=pS("stimulus"),mS=e=>pS("stimulus",e),hS=pS(),fS={name:"audio-keyboard-response",parameters:{stimulus:{type:Rc.AUDIO,pretty_name:"Stimulus",default:void 0},choices:{type:Rc.KEYS,pretty_name:"Choices",default:"ALL_KEYS"},prompt:{type:Rc.HTML_STRING,pretty_name:"Prompt",default:null},trial_duration:{type:Rc.INT,pretty_name:"Trial duration",default:null},response_ends_trial:{type:Rc.BOOL,pretty_name:"Response ends trial",default:!0},trial_ends_after_audio:{type:Rc.BOOL,pretty_name:"Trial ends after audio",default:!1},response_allowed_while_playing:{type:Rc.BOOL,pretty_name:"Response allowed while playing",default:!0}}};class gS{constructor(e){this.jsPsych=e}trial(e,t,n){let i;var r,s=this.jsPsych.pluginAPI.audioContext(),o={rt:null,key:null};this.jsPsych.pluginAPI.getAudioBuffer(t.stimulus).then(e=>{null!==s?(this.audio=s.createBufferSource(),this.audio.buffer=e,this.audio.connect(s.destination)):(this.audio=e,this.audio.currentTime=0),a()}).catch(e=>{console.error(`Failed to load audio file "${t.stimulus}". Try checking the file path. We recommend using the preload plugin to load audio files.`),console.error(e)});const a=()=>{t.trial_ends_after_audio&&this.audio.addEventListener("ended",c),null!==t.prompt&&(e.innerHTML=t.prompt),null!==s?(r=s.currentTime,this.audio.start(r)):this.audio.play(),t.response_allowed_while_playing?u():t.trial_ends_after_audio||this.audio.addEventListener("ended",u),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(()=>{c()},t.trial_duration),n()},c=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),null!==s?this.audio.stop():this.audio.pause(),this.audio.removeEventListener("ended",c),this.audio.removeEventListener("ended",u),this.jsPsych.pluginAPI.cancelAllKeyboardResponses();var n={rt:o.rt,stimulus:t.stimulus,response:o.key};e.innerHTML="",this.jsPsych.finishTrial(n),i()};function l(e){null==o.key&&(o=e),t.response_ends_trial&&c()}const u=()=>{null!==s?this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:l,valid_responses:t.choices,rt_method:"audio",persist:!1,allow_held_key:!1,audio_context:s,audio_context_start_time:r}):this.jsPsych.pluginAPI.getKeyboardResponse({callback_function:l,valid_responses:t.choices,rt_method:"performance",persist:!1,allow_held_key:!1})};return new Promise(e=>{i=e})}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),r=this.jsPsych.getDisplayElement(),s=()=>{null!==i.rt&&this.jsPsych.pluginAPI.pressKey(i.response,i.rt)};this.trial(r,e,()=>{n(),e.response_allowed_while_playing?s():this.audio.addEventListener("ended",s)})}create_simulation_data(e,t){const n={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),response:this.jsPsych.pluginAPI.getValidKey(e.choices)},i=this.jsPsych.pluginAPI.mergeSimulationData(n,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,i),i}}function vS(e){return{type:gS,stimulus:()=>"binary"===Ja().audioFeedback&&Ja().isCorrect?e.audio.coin:"binary"!==Ja().audioFeedback||Ja().isCorrect?e.audio.select:e.audio.fail,choices:"NO_KEYS",trial_ends_after_audio:!0,post_trial_gap:500,prompt:""}}gS.info=fS;let yS,bS,xS=[];const _S=e=>{const t=e.response.values.length;if(1===t)return["Enter"];if(2===t)return["ArrowLeft","ArrowRight"];if(3===t)return["ArrowUp","ArrowLeft","ArrowRight"];if(4===t)return["ArrowUp","ArrowLeft","ArrowRight","ArrowDown"];throw new Error("More than 4 buttons are not supported yet")};function wS(e,t){const n=t||Ja().nextStimulus,i=Ja().translations,r=null==e?void 0:e[n.itemId];if(r){const{prompt:{enabled:e},classOverrides:{stimulusContainerClassList:t,promptClassList:s},equalSizeStim:o,showStimImage:a,stimText:c}=r,l=(null==c?void 0:c.value)?WC.images[Ho(c.value)]||WC.images.blank:null;return((e,t,n,i,r,s,o)=>{let a='<div class="lev-stimulus-container">';if(a+=`\n <button id="replay-btn-revisited" class="replay">\n ${sd}\n </button>\n `,e){let t="lev-row-container instruction";o&&(t=o.join(" ")),a+=`\n <div class="${t}">\n <p>${e}</p>\n </div>\n `}if(t||i){let e="";t&&(e+=`\n <img \n src=${t}\n alt=${n}\n />\n `),i&&(e+=`\n <p>${i}</p>\n `);let o=r?"lev-stim-content":"lev-stim-content-x-3";s&&(o=s.join(" ")),a+=`\n <div class=${o}>\n ${e}\n </div>\n `}return a+="</div>",a})(e?i[Ho(n.audioFile)]:null,a?l:null,(null==c?void 0:c.value)||"Stimulus",c?c.displayValue:null,o,t,s)}}function kS(e,t){const n=t||Ja().nextStimulus,i=null==e?void 0:e[n.itemId],{response:r}=i,s=r.target;if(i){const{isImageButtonResponse:e,response:{displayValues:t}}=i;return e?function(e,t){return e.map(e=>{const n=WC.images[Ho(e)]||"https://imgs.search.brave.com/w5KWc-ehwDScllwJRMDt7-gTJcykNTicRzUahn6-gHg/rs:fit:860:0:0/g:ce/aHR0cHM6Ly9yZW5k/ZXIuZmluZWFydGFt/ZXJpY2EuY29tL2lt/YWdlcy9pbWFnZXMt/cHJvZmlsZS1mbG93/LzQwMC9pbWFnZXMt/bWVkaXVtLWxhcmdl/LTUvZmF0aGVyLWFu/ZC1kYXVnaHRlci1p/bi10aGUtb3V0ZXIt/YmFua3MtY2hyaXMt/d2Vpci5qcGc";return window.Cypress&&e===t?`<img src=${n} alt=${e} class='correct'/>`:`<img src=${n} alt=${e} />`})}(t,s):t}}function SS(e,t){var n,i;ad.playAudio(function(e,t){const n=t||Ja().nextStimulus,i=null==e?void 0:e[n.itemId];if(i){const e=(null==i?void 0:i.playAudioOnLoad)?Ho(n.audioFile):"nullAudio";return WC.audio[e]}}(e,t)||""),yS=performance.now();Ja("incorrectPracticeResponses",[]);const r=t||Ja().nextStimulus,s=null==e?void 0:e[r.itemId],o=null==s?void 0:s.playAudioOnLoad,a=new dd(r.audioFile,o),c="practice_response"===r.assessmentStage,l="instructions"===r.trialType;if(s.isStaggered){const e=document.getElementById("jspsych-html-multi-response-btngroup"),t=Array.from(e.children);let i=[];for(let e=0;e<t.length;e++){const r=t[e].children[0].getElementsByTagName("img")[0],s=Ho(null!==(n=null==r?void 0:r.alt)&&void 0!==n?n:"");i.push(s)}$k(a,e,i)}const u=gu.getProgress().current_trial_global;let p=u-2;if(zk({itemId:r.itemId,taskName:r.task,pageContext:"afcStimulus"}),"math"===r.task&&(p=u-3,window.Cypress&&!l)){document.querySelectorAll(".secondary")[s.response.targetIndex].setAttribute("aria-label","correct")}const d=gu.data.get().filter({trial_index:p}).values();if(c){let t;t=qk(r,mu,null==e?void 0:e[r.itemId]),void 0!==t&&(bS=t)}if("math"===r.task&&null!=d&&(r.trialType,null===(i=d[0])||void 0===i||i.trialType),"instructions"!==r.trialType){const e=document.getElementById("jspsych-html-multi-response-btngroup"),t=e.children,n=t.length,{buttonLayout:i}=Ja();s&&("diamond"===i&&4===n?e.classList.add("lev-response-row-diamond-layout"):e.classList.add(...s.classOverrides.buttonContainerClassList)),Array.from(t).forEach((e,t)=>{!function(e,t){const{keyHelpers:n}=Ja();if(n&&!mu){const n=document.createElement("div");n.classList.add("arrow-key-border");const i=document.createElement("p");i.innerHTML=od[t][1],i.style.textAlign="center",i.style.margin="0",n.appendChild(i),e.appendChild(n)}}(e,2===n?t+1:t)}),Ja.transact("trialNumSubtask",e=>e+1)}cd(a)}const TS=({responseAllowed:e,promptAboveButtons:t,task:n,layoutConfigMap:i},r)=>({type:uS,response_allowed_while_playing:e,data:()=>{const e=r||Ja().nextStimulus;let t="practice_response"===e.assessmentStage;return{save_trial:!0,assessment_stage:e.assessmentStage,isPracticeTrial:t}},stimulus:()=>wS(i,r),prompt_above_buttons:t,keyboard_choices:()=>{const e=r||Ja().nextStimulus,t=i[e.itemId];return _S(t)},button_choices:()=>kS(i,r),button_html:()=>function(e,t){const n=t||Ja().nextStimulus,i="practice_response"===n.assessmentStage,r=null==e?void 0:e[n.itemId];if(r){const e=[...r.classOverrides.buttonClassList];return i&&e.push("practice-btn"),`\n <button class='${e.join(" ")}'>%choice%</button>\n `}}(i,r),on_load:()=>SS(i,r),on_finish:e=>function(e,t,n,i){ad.stopAndDisconnectNode();const r=i||Ja().nextStimulus,s=null==n?void 0:n[r.itemId],{runCat:o}=Ja();let a=null,c=null,l=null;if("instructions"!==r.trialType){if(s){const{response:t}=s;if(!t)throw new Error("Choices not defined in the config");const n=_S(s);l=e.keyboard_response?n.findIndex(t=>t.toLowerCase()===e.keyboard_response.toLowerCase()):e.button_response,a=t.values[l],c=t.target,e.correct=a===c}o&&gd(r,e.correct);const t=e.button_response?"mouse":"keyboard";if(e.correct?("practice_response"!==r.assessmentStage&&(Ja.transact("totalCorrect",e=>e+1),Ja("numIncorrect",0)),xS=[]):("practice_response"!==r.assessmentStage&&Ja.transact("numIncorrect",e=>e+1),xS.push(a)),gu.data.addDataToLastTrial({item:Ia(r.item)||r.item,answer:c,distractors:r.distractors,corpusTrialType:r.trialType,responseType:t,responseLocation:l,itemUid:r.itemUid}),Ja().storeItemId&&gu.data.addDataToLastTrial({corpusId:Ja().corpusId,corpus:Ja().corpus,itemId:r.itemId}),"practice_response"!==r.assessmentStage&&gu.data.addDataToLastTrial({response:a}),"keyboard"===t||"keyboard"===e.response_source||"practice_response"===r.assessmentStage){const e=performance.now(),t=Math.round(e-yS);gu.data.addDataToLastTrial({rt:t})}"practice_response"===r.assessmentStage&&document.removeEventListener("keydown",bS)}else Ja("numIncorrect",0),gu.data.addDataToLastTrial({correct:!1});gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses}),"test_response"===r.assessmentStage&&Ja.transact("testTrialCount",e=>e+1),"skip"!==s.inCorrectTrialConfig.onIncorrectTrial||o?Ja().numIncorrect>=Ja().maxIncorrect&&!o&&jS():pd(r.trialType)}(e,0,i,r),response_ends_trial:()=>"practice_response"!==(r||Ja().nextStimulus).assessmentStage});function ES(){Ja("taskComplete",!0),window.removeEventListener("click",ES),window.removeEventListener("keydown",ES)}const CS=(e="taskFinished")=>({type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>{const t=Ja().translations;return`\n <div class='lev-stimulus-container'>\n <div class='lev-row-container instruction'>\n <h1>${t[e]}</h1>\n </div>\n <footer>${t.generalFooter}</footer>\n </div>`},button_choices:["Continue"],keyboard_choices:"ALL_KEYS",button_html:'<button class="primary" style=margin-top:10%>Exit</button>',on_load:()=>{window.addEventListener("click",ES),window.addEventListener("keydown",ES),WC.audio[e]&&ad.playAudio(WC.audio[e])}}),IS=(e=!1,t,n,i=!1)=>({timeline:[{type:uS,stimulus:()=>{const e=Ja().translations,t=Ja().isCorrect,r=t?WC.images["smilingFace@2x"]:WC.images["sadFace@2x"];let s;switch(Ja().task){case"same-different-selection":s=e.sds2matchPrompt1;break;case"memory-game":s=n.toUpperCase().includes("BACKWARD")?e.memoryGameBackwardPrompt:e.memoryGameForwardPrompt;break;case"egma-math":s=e.numberLineSliderPrompt1;break;default:s=""}return`<div class="lev-stimulus-container">\n <div class="lev-row-container instruction">\n <p>${t?e.feedbackCorrect:e.feedbackNotQuiteRight}</p>\n </div>\n <div class="lev-stim-content">\n <img src=${r} alt='Instruction graphic'/>\n </div>\n \n ${t||!i?"":`<div class="lev-row-container instruction"'>\n <p>${s}</p>\n </div>`}\n </div>`},button_choices:["Continue"],keyboard_choices:"NO_KEYS",prompt_above_buttons:!0,button_html:()=>`<button class="primary">${Ja().translations.continueButtonText}</button>`,on_load:()=>{const e=Ja().isCorrect?WC.audio[t]:WC.audio[n];ad.playAudio(e||WC.audio.nullAudio,{restrictRepetition:{enabled:!1,maxRepetitions:2}})},on_finish:()=>{ad.stopAndDisconnectNode()}}],conditional_function:()=>{var t,n;return"practice"===(null===(t=Ja().nextStimulus)||void 0===t?void 0:t.notes)||"practice"===(null===(n=Ja().nextStimulus)||void 0===n?void 0:n.trialType)||e}});function jS(){const e=Ja().translations,t=e=>{var n;if("click"===e.type){"exit-button"===(null===(n=e.target)||void 0===n?void 0:n.id)&&(document.body.innerHTML="",Ja("taskComplete",!0),window.removeEventListener("click",t),window.removeEventListener("keydown",t))}else"keydown"===e.type&&(document.body.innerHTML="",Ja("taskComplete",!0),window.removeEventListener("keydown",t),window.removeEventListener("click",t))};window.addEventListener("click",t),window.addEventListener("keydown",t),gu.endExperiment(`<div class='lev-stimulus-container'>\n <div class='lev-row-container instruction'>\n <h1>${e.taskFinished}</h1>\n </div>\n <footer>${e.generalFooter}</footer>\n <button id="exit-button" class="primary" style=margin-top:5%>Exit</button>\n </div>`,ad.playAudio(WC.audio.taskFinished))}const OS={type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>{const e=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="replay-btn-revisited"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${e.generalRepeatInstructions}</p>\n </div>\n </div>`},prompt_above_buttons:!0,button_choices:["Continue"],button_html:()=>`<button class="primary">${Ja().translations.continueButtonText}</button>`,keyboard_choices:"NO_KEYS",on_load:()=>{ad.playAudio(WC.audio.generalRepeatInstructions);cd(new dd("generalRepeatInstructions",!0))},on_finish:()=>{ad.stopAndDisconnectNode()}},AS={timeline:[{type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>{const e=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="replay-btn-revisited"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${e.generalYourTurn}</p>\n </div>\n <div class="lev-stim-content-x-3">\n <img\n src=${WC.images.rocket}\n alt='Instruction graphic'\n />\n </div>\n </div>`},prompt_above_buttons:!0,button_choices:["Continue"],button_html:()=>`<button class="primary">${Ja().translations.continueButtonText}</button>`,keyboard_choices:"NO_KEYS",post_trial_gap:350,on_load:()=>{ad.playAudio(WC.audio.generalYourTurn);cd(new dd("generalYourTurn",!0))},on_finish:()=>{ad.stopAndDisconnectNode()}}],conditional_function:()=>{if(Ja().runCat)return!0;const e="instructions"!==Ja().nextStimulus.trialType&&"practice_response"!==Ja().nextStimulus.assessmentStage&&!Ja().testPhase;return e&&Ja("testPhase",!0),e}},LS=(e,t,n,i)=>{const{answer:r,distractors:s,trialType:o}=e,a=JSON.parse(JSON.stringify(Vo)),c=vd(e.item);if(a.isPracticeTrial="practice_response"===e.assessmentStage,a.isInstructionTrial="instructions"===e.trialType,a.showStimImage="instructions"===e.trialType||e.trialType.includes("Counting"),a.stimText={value:c,displayValue:void 0},a.inCorrectTrialConfig.onIncorrectTrial="skip",a.isInstructionTrial)a.classOverrides.buttonClassList=["primary"],"instructions"===e.trialType?a.classOverrides.stimulusContainerClassList=["lev-instructions-container"]:a.classOverrides.stimulusContainerClassList=["lev-row-container"];else{const t=bd(s),n=rd(r.toString(),t,"Counting"===o?"no":"yes",o);a.prompt.enabled=!1,a.isImageButtonResponse="Non-symbolic Number Identification"===o||"Non-symbolic Number Comparison"===o,a.classOverrides.buttonClassList="Non-symbolic Number Identification"===o||"Non-symbolic Number Comparison"===o?["image-medium"]:"Counting"===o?[]:["secondary"],a.response={target:n.target,displayValues:n.choices,values:n.originalChoices,targetIndex:n.correctResponseIdx},["Number Identification","Number Comparison","Counting","Counting AFC"].includes(e.trialType)||(a.stimText={value:c,displayValue:"Fraction"===e.trialType?id(c):c})}return{itemConfig:a,errorMessages:yd(a,n,t,e)}};const RS=[{prompt:"matrixReasoningInstruct1",image:"matrixExample",buttonText:"continueButtonText"}].map(e=>({type:uS,stimulus:()=>{const t=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="replay-btn-revisited"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction-small">\n <p>${t[e.prompt]}</p>\n </div>\n\n \n <img\n src=${WC.images[e.image]}\n alt='Instruction graphic'\n />\n </div>`},prompt_above_buttons:!0,button_choices:["Next"],button_html:()=>[`<button class="primary">\n ${Ja().translations[e.buttonText]}\n </button>`],keyboard_choices:()=>"NO_KEYS",on_load:()=>{ad.playAudio(WC.audio[e.prompt]);cd(new dd(e.prompt,!0))},on_finish:()=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses,assessment_stage:"instructions"})}})),PS=(e,t,n,i)=>{const{answer:r,distractors:s,trialType:o}=e,a=JSON.parse(JSON.stringify(Vo));if(a.isPracticeTrial="practice_response"===e.assessmentStage,a.isInstructionTrial="instructions"===e.trialType,a.stimText={value:vd(e.item),displayValue:void 0},a.classOverrides.promptClassList=["lev-row-container","instruction-small"],a.isInstructionTrial)a.classOverrides.buttonClassList=["primary"];else{const e=bd(s),t=rd(r.toString(),e,"yes",o);a.isImageButtonResponse=!0,a.response={target:t.target,displayValues:t.choices,values:t.originalChoices,targetIndex:t.correctResponseIdx}}return{itemConfig:a,errorMessages:yd(a,n,t,e)}};const MS="replay-btn-revisited";const NS={restrictRepetition:{enabled:!0,maxRepetitions:2},onEnded:function(){const e=document.querySelector(".primary");null!=e&&(e.disabled=!1)}},DS={type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>`\n <div class="lev-stimulus-container">\n <button id="${MS}" class="replay">\n ${sd}\n </button>\n <video class="instruction-video" autoplay>\n <source src=${WC.video.mentalRotationExampleFit} type="video/mp4"/>\n Your browser does not support the video tag.\n </video>\n </div>\n `,prompt_above_buttons:!0,button_choices:["Continue"],button_html:()=>`<button class="primary" disabled>${Ja().translations.continueButtonText}</button>`,keyboard_choices:"NO_KEYS",on_load:()=>{ad.playAudio(WC.audio.mentalRotationTrainingInstruct3,NS);cd(new dd("mental-rotation-training-instruct3",!0))},on_finish:()=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses})}},FS={type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>`\n <div class="lev-stimulus-container">\n <button id="${MS}" class="replay">\n ${sd}\n </button>\n <video class="instruction-video" autoplay>\n <source src=${WC.video.mentalRotationExampleMisfit} type="video/mp4"/>\n Your browser does not support the video tag.\n </video>\n </div>\n `,prompt_above_buttons:!0,button_choices:["Continue"],button_html:()=>`<button class="primary" id="ok-button" disabled>${Ja().translations.continueButtonText}</button>`,keyboard_choices:"NO_KEYS",on_load:()=>{ad.playAudio(WC.audio.mentalRotationTrainingInstruct2,NS);cd(new dd("mental-rotation-training-instruct2",!0))},on_finish:()=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses})}},zS={type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>`\n <div class="lev-stimulus-container">\n <button id="${MS}" class="replay">\n ${sd}\n </button>\n <img src=${WC.images.mentalRotationExample} class="instruction-video" />\n </div>\n `,prompt_above_buttons:!0,button_choices:["Continue"],button_html:()=>`<button class="primary" disabled>${Ja().translations.continueButtonText}</button>`,keyboard_choices:"NO_KEYS",on_load:()=>{ad.playAudio(WC.audio.mentalRotationInstruct1,NS);cd(new dd("mental-rotation-instruct1",!0))},on_finish:()=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses})}},$S={type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>`\n <div class="lev-stimulus-container">\n <div class="lev-row-container instruction">\n <p>${Ja().translations.mentalRotationInstruct3D}</p>\n </div>\n <button id="${MS}" class="replay">\n ${sd}\n </button>\n </div>\n `,prompt_above_buttons:!0,button_choices:["Continue"],post_trial_gap:350,button_html:()=>`<button class="primary">${Ja().translations.continueButtonText}</button>`,keyboard_choices:"NO_KEYS",trial_ends_after_audio:!1,response_allowed_while_playing:!1,on_load:()=>{ad.playAudio(WC.audio.mentalRotationInstruct3D);cd(new dd("mental-rotation-instruct-3D",!0))},on_finish:()=>{gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses})}},BS=(e,t,n)=>{const{answer:i,distractors:r,trialType:s}=e,o=JSON.parse(JSON.stringify(Vo));if(o.isPracticeTrial="practice_response"===e.assessmentStage,o.isInstructionTrial="instructions"===e.trialType,o.stimText={value:vd(e.item),displayValue:void 0},o.isInstructionTrial)o.classOverrides.buttonClassList=["primary"];else{const e=bd(r),t=rd(i.toString(),e,"no",s);o.isImageButtonResponse=!0,o.classOverrides.stimulusContainerClassList=["lev-stim-content"],o.classOverrides.buttonClassList=["image-large"],o.response={target:t.target,displayValues:t.choices,values:t.originalChoices,targetIndex:t.correctResponseIdx}}return{itemConfig:o,errorMessages:yd(o,n,t,e)}};const qS=Object.freeze({Heart:"heart",Flower:"flower"}),US=Object.freeze({Left:"left",Right:"right"}),HS=US,WS=Object.freeze({ArrowLeft:"arrowleft",ArrowRight:"arrowright",NoKeys:"NO_KEYS",AllKeys:"ALL_KEYS",SpaceBar:" ",Enter:"enter"}),VS=Object.freeze({HeartsPractice:"practice_response",FlowersPractice:"practice_response",HeartsStimulus:"test_response",FlowersStimulus:"test_response",HeartsAndFlowersPractice:"practice_response",HeartsAndFlowersStimulus:"test_response"}),KS=Object.freeze({HeartsPractice:"hearts",FlowersPractice:"flowers",HeartsStimulus:"hearts",FlowersStimulus:"flowers",HeartsAndFlowersPractice:"hearts and flowers",HeartsAndFlowersStimulus:"hearts and flowers"});function YS(e,t){if(e!==qS.Heart){if(e===qS.Flower){if(t===US.Left)return 1;if(t===US.Right)return 0;throw new Error("Invalid stimulus side")}throw new Error("Invalid stimulus")}return t===US.Left?0:t===US.Right?1:void console.error("Invalid stimulus side")}const GS=(e,t,n=void 0,i=void 0)=>{let r='<div class="haf-stimulus-holder">';return i&&(r+=`\n <button id='${i}' class="replay">\n ${sd}\n </button>\n `),n&&(r+=`\n <div class='lev-row-container instruction'>\n <p>\n ${n}\n </p>\n </div>\n `),r+=`\n <div class='haf-stimulus-container'>\n <div class='${t?"stimulus-left":"stimulus-right"}'>\n <img src='${e}' alt="heart or flower"/>\n </div>\n </div>\n </div>\n `,r};function JS(e){return{type:uS,stimulus:()=>"<div class='haf-fixation-container'>\n <span class='fixation'>+</span>\n </div>",on_load:()=>{document.getElementById("jspsych-html-multi-response-stimulus").classList.add("haf-parent-container"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("haf-parent-container"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("lev-response-row"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("linear-4")},button_choices:[US.Left,US.Right],keyboard_choice:WS.NoKeys,button_html:["\n <div class='response-container--small'>\n <button class='secondary--green'></button>\n </div>","<div class='response-container--small'>\n <button class='secondary--green'></button>\n </div>"],trial_duration:e,response_ends_trial:!1}}function XS(e,t,n,i,r=void 0){return{type:uS,data:()=>({save_trial:!0,assessment_stage:t,corpus_trial_type:n,isPracticeTrial:e}),stimulus:()=>GS(WC.images[gu.timelineVariable("stimulus")],gu.timelineVariable("position")<=.5),on_load:()=>{document.getElementById("jspsych-html-multi-response-stimulus").classList.add("haf-parent-container"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("haf-parent-container"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("lev-response-row"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("linear-4")},button_choices:[US.Left,US.Right],keyboard_choices:mu?WS.NoKeys:[WS.ArrowLeft,WS.ArrowRight],button_html:["\n <div class='response-container--small'>\n <button class='secondary--green'></button>\n </div>","<div class='response-container--small'>\n <button class='secondary--green'></button>\n </div>"],on_finish:t=>{const i=gu.timelineVariable("position"),s=gu.timelineVariable("stimulus");let o,a;if(0===t.button_response||1===t.button_response)o=t.button_response;else if(t.keyboard_response===WS.ArrowLeft||t.keyboard_response===WS.ArrowRight)o=t.keyboard_response===WS.ArrowLeft?0:1;else{const e=`Invalid response: ${t.button_response} or ${t.keyboard_response} in ${t}`;console.error(e)}if(0===i)a=US.Left;else if(1===i)a=US.Right;else{const e=`Invalid stimuluSide: ${t.button_response} or ${t.keyboard_response} in ${t}`;console.error(e)}const c=YS(s,a);t.correct=c===o,e||(t.correct?Ja("numIncorrect",0):Ja.transact("numIncorrect",e=>e+1));const l=Ja().maxIncorrect;Ja().numIncorrect==l&&jS(),Ja("isCorrect",t.correct),Ja("stimulus",s),Ja("stimulusSide",a);const u=`hf_${"hearts and flowers"===n?"heartsflowers":n}_`+s;gu.data.addDataToLastTrial({item:s,answer:0===c?HS.Left:HS.Right,response:0===o?HS.Left:HS.Right,responseLocation:o,itemUid:u}),Ja.transact("testTrialCount",e=>e+1),r&&r(t)}}}const ZS=()=>Math.round(Math.random());function QS(e,t){if(t!==qS.Heart&&t!==qS.Flower){const e=`Invalid stimulusType: ${t} for buildSubtimelineVariables()`;throw console.error(e),new Error(e)}const n=[],i=Math.floor(e/4);for(let e=0;e<i;e++)n.push({stimulus:t,position:0}),n.push({stimulus:t,position:1}),n.push({stimulus:t,position:ZS()}),n.push({stimulus:t,position:ZS()});const r=e%4;return r>=1&&n.push({stimulus:t,position:0}),r>=2&&n.push({stimulus:t,position:1}),r>=3&&n.push({stimulus:t,position:ZS()}),n}function eT(e){const t=[{stimulus:qS.Heart,position:0},{stimulus:qS.Heart,position:1},{stimulus:qS.Flower,position:0},{stimulus:qS.Flower,position:1}],n=[];let i=[];for(let r=0;r<e;r++)0===i.length&&(i=Va(t)),n.push(i.pop());return n}function tT(e,t,n,i,r){n||console.error("buildInstructionPracticeTrial: Missing prompt audio"),t||console.error("buildInstructionPracticeTrial: Missing prompt text");const s=YS(e,i);return{type:uS,stimulus:()=>GS(WC.images[e],i===US.Left,t,"replay-btn-revisited"),prompt_above_buttons:!0,on_start:()=>{Ja("stimulus",e),Ja("stimulusSide",i)},on_load:()=>{document.getElementById("jspsych-html-multi-response-stimulus").classList.add("haf-parent-container"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("haf-parent-container"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("lev-response-row"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("linear-4");const e=document.querySelectorAll(".secondary--green");2!==e.length&&console.error(`There are ${e.length} instead of 2 wrappers in the practice trials`),e[s].style.animation="pulse 2s infinite",ad.playAudio(n);cd(new dd(r))},button_choices:[US.Left,US.Right],keyboard_choices:mu?WS.NoKeys:[WS.ArrowLeft,WS.ArrowRight],button_html:["\n <div class='response-container--small'>\n <button class='secondary--green'></button>\n </div>","<div class='response-container--small'>\n <button class='secondary--green'></button>\n </div>"],on_finish:e=>{let t;if(ad.stopAndDisconnectNode(),0===e.button_response||1===e.button_response)t=e.button_response;else if(e.keyboard_response===WS.ArrowLeft||e.keyboard_response===WS.ArrowRight)t=e.keyboard_response===WS.ArrowLeft?0:1;else{const t=`Invalid response: ${e.button_response} or ${e.keyboard_response} in ${e}`;console.error(t)}Ja("isCorrect",t===s),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses,assessment_stage:"practice_response"})}}}function nT(e,t,n=void 0){return iT(e,t,e,t,n)}function iT(e,t,n,i,r){const s="valid-answer-btn",o={IncorrectHeart:Ja().translations[e],CorrectHeart:Ja().translations[t],IncorrectFlower:Ja().translations[n],CorrectFlower:Ja().translations[i]},a={IncorrectHeart:e,CorrectHeart:t,IncorrectFlower:n,CorrectFlower:i};Object.entries(o).forEach(([e,t])=>{t||console.error(`buildPracticeFeedback: Missing feedback text for ${e}`)}),Object.entries(a).forEach(([e,t])=>{t||console.error(`buildPracticeFeedback: Missing feedback audio for ${e}`)});const c={type:uS,stimulus:()=>{const e=Ja().stimulus;if(!(!1===Ja().isCorrect)){const e=qS.Heart?o.CorrectHeart:o.CorrectFlower;return`\n <div class='haf-cr-container'>\n <img src='${WC.images.smilingFace}' />\n <p class='lev-text h4 primary'>${e}</p>\n </div>\n `}const t=WC.images[e],n=e===qS.Heart?o.IncorrectHeart:o.IncorrectFlower;return GS(t,Ja().stimulusSide===US.Left,n,!1)},prompt_above_buttons:!0,on_load:()=>{document.getElementById("jspsych-html-multi-response-stimulus").classList.add("haf-parent-container"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("haf-parent-container"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("lev-response-row"),document.getElementById("jspsych-html-multi-response-btngroup").classList.add("linear-4");document.querySelectorAll(".secondary--green").forEach(e=>{e.disabled=!0,e.id===s&&(e.style.animation="pulse 2s infinite")});const e=function(){const e=Ja().stimulus===qS.Heart?"Heart":"Flower",t=!1===Ja().isCorrect?"Incorrect":"Correct";return a[`${t}${e}`]}(),t={restrictRepetition:{enabled:!0,maxRepetitions:2},onEnded:()=>{gu.finishTrial()}};ad.playAudio(WC.audio[e],t);cd(new dd(e))},button_choices:[US.Left,US.Right],keyboard_choices:"NO_KEYS",button_html:()=>{if(!1===Ja().isCorrect){return 0===YS(Ja().stimulus,Ja().stimulusSide)?[`\n <div class='response-container--small'>\n <button class='secondary--green' id='${s}'></button>\n </div>\n `,"\n <div class='response-container--small'>\n <button class='secondary--green'></button>\n </div>\n "]:["\n <div class='response-container--small'>\n <button class='secondary--green'></button>\n </div>\n ",`\n <div class='response-container--small'>\n <button class='secondary--green' id='${s}'></button>\n </div>\n `]}return"<button class='secondary--green' style='display: none;'></button>"},on_finish:e=>{ad.stopAndDisconnectNode(),r&&r(e)}};return c}function rT(){return lT(WC.images.animalBodySq,"heartsAndFlowersPracticeTime",Ja().translations.heartsAndFlowersPracticeTime,Ja().translations.continueButtonText)}function sT(){return lT(WC.images.keepupSq,"heartsAndFlowersInstruct1",Ja().translations.heartsAndFlowersInstruct1,Ja().translations.continueButtonText)}function oT(){return lT(WC.images.rocketSq,"heartsAndFlowersInstruct2",Ja().translations.heartsAndFlowersInstruct2,Ja().translations.continueButtonText)}function aT(){return lT(WC.images.animalBodySq,"heartsAndFlowersPlayTime",Ja().translations.heartsAndFlowersPlayTime,Ja().translations.continueButtonText)}function cT(){return lT(WC.images.animalBodySq,"heartsAndFlowersEnd",Ja().translations.heartsAndFlowersEnd,Ja().translations.continueButtonText)}function lT(e,t,n,i,r=void 0){e||console.error("buildInstructionTrial: Missing mascot image"),t||console.error("buildInstructionTrial: Missing prompt audio"),n||console.error("buildInstructionTrial: Missing prompt text");return{type:uS,stimulus:`\n <div class="lev-stimulus-container">\n <button id="replay-btn-revisited" class="replay">\n ${sd}\n </button>\n <div class="lev-row-container instruction-small">\n <p>${n}</p>\n </div>\n <div class="lev-stim-content-x-3">\n <img\n src=${e}\n alt='Instruction graphic'\n />\n </div>\n ${r?`<div class="lev-row-container header"><p>${r}</p></div>`:""}\n </div>\n `,prompt_above_buttons:!0,keyboard_choices:WS.NoKeys,button_choices:["Next"],button_html:[`<button class='primary'>\n ${i.trim()}\n </button>`],on_load:()=>{ad.playAudio(WC.audio[t]);cd(new dd(t))},on_finish:()=>{ad.stopAndDisconnectNode(),"heartsAndFlowersEnd"===t&&Ja("taskComplete",!0),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses,assessment_stage:"instructions"})}}}function uT(e,t){if(t!==qS.Heart&&t!==qS.Flower){const e=`Invalid type: ${t} for getHeartOrFlowerSubtimeline`;throw console.error(e),new Error(e)}const n=[];return n.push(...function(e,t){let n,i,r,s,o,a;if(WC.audio.heartInstruct1,t===qS.Heart)n=US.Left,i=Ja().translations.heartInstruct2,r=WC.audio.heartInstruct2,s=US.Right,o=Ja().translations.heartPracticeFeedback1,a=WC.audio.heartPracticeFeedback1;else{if(t!==qS.Flower){const e=`Invalid type: ${t} for getHeartOrFlowerInstructionsSection`;throw console.error(e),new Error(e)}n=US.Right,i=Ja().translations.flowerInstruct2,r=WC.audio.flowerInstruct2,s=US.Left,o=Ja().translations.flowerPracticeFeedback1,a=WC.audio.flowerPracticeFeedback1}const c=t===qS.Heart?lT(WC.images.animalBodySq,"heartInstruct1",Ja().translations.heartInstruct1,Ja().translations.continueButtonText):lT(WC.images.animalBodySq,"flowerInstruct1",Ja().translations.flowerInstruct1,Ja().translations.continueButtonText),l=nT("heartsAndFlowersTryAgain","feedbackGoodJob"),u=tT(t,i,r,n,"heartInstruct2"),p=tT(t,o,a,s,"heartPracticeFeedback1"),d=[];return d.push(c),d.push({timeline:[u,l],loop_function:()=>!1===Ja().isCorrect}),d.push({timeline:[p,l],loop_function:()=>!1===Ja().isCorrect}),d}(0,t)),n.push(...function(e,t){let n,i,r;if(t===qS.Heart)n=VS.HeartsPractice,i=KS.HeartsPractice,r="heartPracticeFeedback2";else{if(t!==qS.Flower){const e=`Invalid type: ${t} for getHeartOrFlowerPracticeSection`;throw console.error(e),new Error(e)}n=VS.FlowersPractice,i=KS.FlowersPractice,r="flowerPracticeFeedback2"}const s={timeline:[sT(),oT(),aT()]};let o=0;const a=e=>{o=e.correct?o+1:0},c=t=>{o>=e.correctPracticeTrial&&gu.endCurrentTimeline()},l=nT(r,"feedbackGoodJob",c),u=[];return u.push(rT()),u.push({timeline:[JS(e.interStimulusInterval),XS(!0,n,i,e.stimulusPresentationTime,a),l],timeline_variables:QS(e.practiceTrialCount,t),randomize_order:!1}),u.push(s),u}(e,t)),n.push(...function(e,t){let n,i;if(t===qS.Heart)n=VS.HeartsStimulus,i=KS.HeartsStimulus;else{if(t!==qS.Flower){const e=`Invalid type: ${t} for getHeartOrFlowerTestSection`;throw console.error(e),new Error(e)}n=VS.FlowersStimulus,i=KS.FlowersStimulus}const r=[];return r.push({timeline:[JS(e.interStimulusInterval),XS(!1,n,i,e.stimulusPresentationTime)],timeline_variables:QS(e.testTrialCount,t),randomize_order:!1}),r}(e,t)),n}function pT(e){const t=nT("heartsAndFlowersTryAgain","feedbackGoodJob"),n=tT(qS.Heart,Ja().translations.heartInstruct2,WC.audio.heartInstruct2,US.Left,"heartInstruct2"),i=tT(qS.Flower,Ja().translations.flowerInstruct2,WC.audio.flowerInstruct2,US.Right,"flowerInstruct2"),r=[];return r.push(lT(WC.images.animalBodySq,"heartsAndFlowersInstruct3",Ja().translations.heartsAndFlowersInstruct3,Ja().translations.continueButtonText)),r.push({timeline:[n,t],loop_function:e=>!1===Ja().isCorrect}),r.push({timeline:[i,t],loop_function:e=>!1===Ja().isCorrect}),r}function dT(e){return[{timeline:[JS(e.interStimulusInterval),XS(!1,VS.HeartsAndFlowersStimulus,KS.HeartsAndFlowersStimulus,e.stimulusPresentationTime)],timeline_variables:eT(e.testTrialCount),randomize_order:!1}]}const mT={name:"corsi-blocks",parameters:{sequence:{type:Rc.INT,default:void 0,array:!0},blocks:{type:Rc.COMPLEX,array:!0,default:[{y:80,x:45},{y:94,x:80},{y:70,x:20},{y:60,x:70},{y:50,x:35},{y:40,x:6},{y:45,x:94},{y:25,x:60},{y:6,x:47}],nested:{x:{type:Rc.INT,default:void 0},y:{type:Rc.INT,default:void 0}}},block_size:{type:Rc.INT,default:12},display_width:{type:Rc.STRING,default:"400px"},display_height:{type:Rc.STRING,default:"400px"},prompt:{type:Rc.STRING,default:null},mode:{type:Rc.STRING,default:"display",options:["display","input"]},sequence_gap_duration:{type:Rc.INT,default:250},sequence_block_duration:{type:Rc.INT,default:1e3},pre_stim_duration:{type:Rc.INT,default:500},response_animation_duration:{type:Rc.INT,default:500},block_color:{type:Rc.STRING,default:"#555"},highlight_color:{type:Rc.STRING,default:"#ff0000"},correct_color:{type:Rc.STRING,default:"#00ff00"},incorrect_color:{type:Rc.STRING,default:"#ff0000"}}};class hT{constructor(e){this.jsPsych=e}trial(e,t){let n=`<style id="jspsych-corsi-css">\n #jspsych-corsi-stimulus { \n position: relative; \n width:${t.display_width}; \n height:${t.display_height};\n }\n .jspsych-corsi-block { \n background-color: ${t.block_color}; \n position: absolute; \n width: ${t.block_size}%; \n height: ${t.block_size}%;\n transform: translate(-50%, -50%);\n }\n #jspsych-corsi-prompt { \n position: absolute; \n text-align: center; \n width: ${t.display_width}; \n top: 100%; \n }\n #jspsych-corsi-prompt p { \n font-size: 18px; \n }\n ${"input"==t.mode?".jspsych-corsi-block { cursor: pointer; }":""}\n </style>`;n+='<div id="jspsych-corsi-stimulus">';for(let e=0;e<t.blocks.length;e++)n+=`<div class="jspsych-corsi-block" data-id="${e}" style="top:${t.blocks[e].y}%; left:${t.blocks[e].x}%;"></div>`;null!=t.prompt&&(n+=`<div id="jspsych-corsi-prompt"><p>${t.prompt}</p></div>`),n+="</div>",e.innerHTML=n;const i=performance.now(),r={sequence:t.sequence,response:[],rt:[],blocks:t.blocks,correct:null},s=()=>{e.innerHTML="",this.jsPsych.finishTrial(r)},o=function(e,t){const n=performance.now(),i=(e,t,r)=>{performance.now()-r>=t?e():window.requestAnimationFrame(()=>i(e,t,n))};window.requestAnimationFrame(()=>i(e,t,n))};if("display"==t.mode){let n=0,i="pre-stim";const r=()=>{if("pre-stim"==i)o(r,t.pre_stim_duration),i="sequence";else if("sequence"==i){const a=e.querySelector(`.jspsych-corsi-block[data-id="${t.sequence[n]}"]`);n<t.sequence.length&&(a.style.backgroundColor=t.highlight_color,o(r,t.sequence_block_duration),i="iti"),n==t.sequence.length&&s()}else if("iti"==i){e.querySelector(`.jspsych-corsi-block[data-id="${t.sequence[n]}"]`).style.backgroundColor=t.block_color,n++,o(r,t.sequence_gap_duration),i="sequence"}};window.requestAnimationFrame(r)}if("input"==t.mode){const n=[{backgroundColor:t.block_color},{backgroundColor:t.correct_color,offset:.2},{backgroundColor:t.block_color}],o=[{backgroundColor:t.block_color},{backgroundColor:t.incorrect_color,offset:.2},{backgroundColor:t.block_color}],l={duration:t.response_animation_duration,iterations:1},u=a=>{if(null!==r.correct)return;const c=Math.round(performance.now()-i);r.response.push(parseInt(a)),r.rt.push(c);const u=parseInt(a)==t.sequence[r.response.length-1];u?e.querySelector(`.jspsych-corsi-block[data-id="${a}"]`).animate(n,l):e.querySelector(`.jspsych-corsi-block[data-id="${a}"]`).animate(o,l),r.response.length==t.sequence.length&&(r.correct=u,setTimeout(s,t.response_animation_duration))};for(var a=e.querySelectorAll(".jspsych-corsi-block"),c=0;c<a.length;c++)a[c].addEventListener("click",e=>{u(e.target.getAttribute("data-id"))})}}}function fT({numOfBlocks:e,sequenceLength:t,previousSequence:n=null}){const i=[];for(let r=0;r<t;r++){const t=Math.floor(Math.random()*e);0==r&&n&&n[n.length-1]===t?r--:i[i.length-1]!==t?i.push(t):r--}return i}hT.info=mT;var gT=pi;var vT=i(function(e,t){return gT(e,t)});const yT=(e,t,n)=>{let i;return i="input"===e?t?"backward":"forward":t?"backward-training":"forward-training",i+="-"+n,i};let bT,xT,_T=2,wT=[],kT=0;function ST({mode:e,reverse:t=!1,isPractice:n=!1,resetSeq:i=!1}){return{type:hT,sequence:()=>{if(!xT){const e=Number(Ja().numOfBlocks);xT=fT({numOfBlocks:e,sequenceLength:_T,previousSequence:null})}return"input"===e&&t?xT.reverse():xT},blocks:()=>{if(!bT){const{numOfBlocks:e,blockSize:t,gridSize:n}=Ja();bT=function({x:e,y:t,numOfBlocks:n,blockSize:i,gridSize:r,blockSpacing:s}){const o=[],a=r,c=n/r;for(let n=0;n<a;n++)for(let r=0;r<c;r++){const a=e+r*(i+s),c=t+n*(i+s);o.push({x:a,y:c})}return o}({x:20,y:20,numOfBlocks:e,blockSize:t,gridSize:n,blockSpacing:.5})}return bT},mode:e,block_size:()=>Ja().blockSize,block_color:"rgba(215, 215, 215, 0.93)",highlight_color:"#275BDD",correct_color:()=>"#8CAEDF",incorrect_color:()=>n?"#f00":"#8CAEDF",post_trial_gap:1e3,data:{save_trial:!0,assessment_stage:n?"practice_response":"test_response",isPracticeTrial:n,trialMode:e},on_load:()=>function(e,t,n){const i=document.getElementById("jspsych-corsi-stimulus");i.id="",i.classList.add("lev-corsi-override");const r=Ja().gridSize;i.style.gridTemplateColumns=`repeat(${r}, 1fr)`,i.style.gridTemplateRows=`repeat(${r}, 1fr)`;const s=Ja().translations;if(!t){const t=document.getElementById("lev-toast-default");if("input"===e&&!t){const e=document.createElement("div");e.id="lev-toast-default",e.classList.add("lev-toast-default"),e.textContent=s.generalEncourage,document.body.appendChild(e)}}const o=document.getElementsByClassName("jspsych-corsi-block");Array.from(o).forEach((n,i)=>{if(n.style.top="unset",n.style.left="unset",n.style.transform="none",n.style.position="unset",n.style.width="unset",n.style.height="unset",n.classList.add("lev-corsi-block-override"),"input"===e&&(n.addEventListener("click",e=>{if(wT.push([e.clientX,e.clientY]),!t){TT.length&&(TT.forEach(e=>clearTimeout(e)),TT=[]);const e=setTimeout(()=>{document.getElementById("lev-toast-default").classList.add("show")},1e4),t=setTimeout(()=>{document.getElementById("lev-toast-default").classList.remove("show")},13e3);TT.push(e),TT.push(t)}}),window.Cypress&&null!==xT)){const e={correctAnswer:xT};window.cypressData=e}});const a=document.getElementById("jspsych-content"),c=a.children[1],l=document.createElement("div");l.classList.add("lev-row-container","instruction");const u=document.createElement("p"),p=n?s.memoryGameBackwardPrompt:s.memoryGameInput;u.textContent="display"===e?s.memoryGameDisplay:p,l.appendChild(u),a.insertBefore(l,c),function(e,t,n,i){const r=document.createElement("button");r.innerHTML=sd,r.id="replay-btn-revisited",r.classList.add("replay"),r.disabled=!0,e.insertBefore(r,t);const s="display"===i?"memoryGameDisplay":n?"memoryGameBackwardPrompt":"memoryGameInput",o=WC.audio[s]||"",a={restrictRepetition:{enabled:!0,maxRepetitions:2},onEnded:()=>{s&&cd(new dd(s,!0))}};ad.playAudio(o,a)}(a,l,n,e)}(e,n,t),on_finish:r=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses}),i&&(_T=2);const s=Ja().gridSize,o="mg_"+(t?"backward_":"forward_")+s+"grid_len"+_T;if("input"===e){gu.data.addDataToLastTrial({correct:vT(r.response,r.sequence),selectedCoordinates:wT,corpusTrialType:yT(e,t,s),responseLocation:r.response,itemUid:o}),Ja("isCorrect",r.correct),r.correct&&!n&&(kT++,3===kT&&(_T++,kT=0)),r.correct||n||(Ja.transact("numIncorrect",e=>e+1),kT=0),Ja().numIncorrect===Ja().maxIncorrect&&(t?jS():(_T=2,Ja("testTrialCount",21))),wT=[];const i=Ja().numOfBlocks;let a=fT({numOfBlocks:i,sequenceLength:_T,previousSequence:xT});for(;vT(a,xT);)a=fT({numOfBlocks:i,sequenceLength:_T,previousSequence:xT});xT=a,n||(TT.forEach(e=>clearTimeout(e)),TT=[],Ja.transact("testTrialCount",e=>e+1))}}}}let TT=[];const ET=[{prompt:"memoryGameInstruct1",image:"catAvatar",buttonText:"continueButtonText"},{prompt:"memoryGameInstruct2",image:"highlightedBlock",buttonText:"continueButtonText"},{prompt:"memoryGameInstruct3",video:"selectSequence",buttonText:"continueButtonText"},{prompt:"memoryGameInstruct4",image:"catAvatar",buttonText:"continueButtonText"},{prompt:"memoryGameInstruct5",image:"catAvatar",buttonText:"continueButtonText"},{prompt:"memoryGameInstruct6",image:"catAvatar",buttonText:"continueButtonText"},{prompt:"memoryGameBackwardPrompt",video:"selectSequenceReverse",buttonText:"continueButtonText"}].map(e=>({type:uS,stimulus:()=>{const t=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="replay-btn-revisited"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${t[e.prompt]}</p>\n </div>\n <div class="lev-stim-content-x-3">\n ${e.video?`<video class='instruction-video-small' autoplay loop>\n <source src=${WC.video[e.video]} type='video/mp4'>\n </video>`:`<img\n src=${WC.images[e.image]}\n alt='Instruction graphic'\n />`}\n </div> \n </div>`},prompt_above_buttons:!0,button_choices:["Next"],button_html:()=>[`<button class="primary">\n ${Ja().translations[e.buttonText]}\n </button>`],keyboard_choices:"NO_KEYS",post_trial_gap:500,on_load:()=>{ad.playAudio(WC.audio[e.prompt]);cd(new dd(e.prompt,!0));const t=document.getElementById("lev-toast-default");t&&t.classList.remove("show")},on_finish:()=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses,assessment_stage:"instructions"}),"memoryGameBackwardPrompt"===e.prompt&&Ja("numIncorrect",0)}})),CT=ET.pop(),IT=ET.pop(),jT=ET.pop(),OT=(e,t,n)=>{const i=[ST({mode:"display",isPractice:!0,reverse:e}),ST({mode:"input",isPractice:!0,reverse:e}),IS(!0,"feedbackCorrect",t,!0)],r=[];for(let e=0;e<n;e+=1)r.push(...i);return r},AT=(e,t)=>({timeline:[...OT(e,t,2),ST({mode:"display",isPractice:!0,reverse:e}),ST({mode:"input",isPractice:!0,reverse:e}),{timeline:[IS(!0,"feedbackCorrect",t,!0)],conditional_function:()=>Ja().isCorrect}],conditional_function:()=>!Ja().isCorrect});Ja().translations;const LT=["dataQuestionnaireButtonText1","dataQuestionnaireButtonText2","dataQuestionnaireButtonText3"],RT={type:uS,data:()=>({assessment_stage:"assessor_questionaire"}),stimulus:'<div class="lev-row-container header">\n <p>Assessor Data Questionnaire</p>\n </div>\n <div class="lev-row-container instruction">\n <p>How would you rate the quality of the data for this task?</p>\n </div>\n <footer style="text-align: center; margin: 20px 0;">\n Note: This is NOT a question about how well the child performed. Instead, we want your impression of how well the child understood and actively participated in the task.\n </footer>',keyboard_choices:"NO_KEYS",button_choices:()=>LT,button_html:()=>{const e=Ja().translations;return LT.map(t=>`<button class="primary" style="font-size: 16px">${e[t]}</button>`)},on_load:()=>{document.getElementsByClassName("jspsych-content")[0].setAttribute("style","width: 80vw; max-width: 800px; padding: 20px; background-color: white");document.getElementById("jspsych-html-multi-response-btngroup").classList.add("lev-response-row","multi-stack")},on_finish:e=>{let t="";0===e.button_response?t="SERIOUS CONCERNS":1===e.button_response?t="OK":2===e.button_response&&(t="GOOD"),gu.data.addDataToLastTrial({dataQuality:t});document.getElementsByClassName("jspsych-content")[0].setAttribute("style",""),jS()}},PT={name:"audio-multi-response",parameters:{stimulus:{type:Rc.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:Rc.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:Rc.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:Rc.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:Rc.HTML_STRING,pretty_name:"Prompt",default:null},prompt_above_buttons:{type:Rc.BOOL,pretty_name:"Prompt above buttons",default:!1},trial_duration:{type:Rc.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:Rc.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:Rc.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:Rc.BOOL,pretty_name:"Response ends trial",default:!0},trial_ends_after_audio:{type:Rc.BOOL,pretty_name:"Trial ends after audio",default:!1},response_allowed_while_playing:{type:Rc.BOOL,pretty_name:"Response allowed while playing",default:!0}}};class MT{constructor(e){this.jsPsych=e}trial(e,t,n){let i;var r=this.jsPsych.pluginAPI.audioContext();let s={rt:null,key:null,button:null,source:null};var o;this.jsPsych.pluginAPI.getAudioBuffer(t.stimulus).then(e=>{null!==r?(this.audio=r.createBufferSource(),this.audio.buffer=e,this.audio.connect(r.destination)):(this.audio=e,this.audio.currentTime=0),a()}).catch(e=>{console.error(`Failed to load audio file "${t.stimulus}". Try checking the file path. We recommend using the preload plugin to load audio files.`),console.error(e)});const a=()=>{t.trial_ends_after_audio&&this.audio.addEventListener("ended",c),t.response_allowed_while_playing||t.trial_ends_after_audio||(this.audio.addEventListener("ended",m),this.audio.addEventListener("ended",p));var i=[];if(Array.isArray(t.button_html))t.button_html.length==t.button_choices.length?i=t.button_html:console.error("Error in audio-multi-response plugin. The length of the button_html array does not equal the length of the choices array");else for(var s=0;s<t.button_choices.length;s++)i.push(t.button_html);let a='<div id="jspsych-audio-multi-response-btngroup">';for(s=0;s<t.button_choices.length;s++){var l=i[s].replace(/%choice%/g,t.button_choices[s]);a+='<div class="jspsych-audio-multi-response-button" style="cursor: pointer; display: inline-block; margin:'+t.margin_vertical+" "+t.margin_horizontal+'" id="jspsych-audio-multi-response-button-'+s+'" data-choice="'+s+'">'+l+"</div>"}a+="</div>",null!==t.prompt&&(t.prompt_above_buttons?a='<div id="jspsych-audio-multi-response-prompt">'+t.prompt+"</div>"+a:a+='<div id="jspsych-audio-multi-response-prompt">'+t.prompt+"</div>"),e.innerHTML=a,t.response_allowed_while_playing?(p(),m()):u(),o=performance.now(),null!==r?(o=r.currentTime,this.audio.start(o)):this.audio.play(),null!==t.trial_duration&&this.jsPsych.pluginAPI.setTimeout(()=>{c()},t.trial_duration),n()},c=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),null!==r?this.audio.stop():this.audio.pause(),this.audio.removeEventListener("ended",c),this.audio.removeEventListener("ended",m),this.audio.removeEventListener("ended",p),this.jsPsych.pluginAPI.cancelAllKeyboardResponses();const n={rt:s.rt,stimulus:t.stimulus,keyboard_response:s.key,button_response:s.button,response_source:s.source};e.innerHTML="",this.jsPsych.finishTrial(n),i()};function l(e){!function(e){var n=performance.now(),i=Math.round(n-o);null!==r&&(n=r.currentTime,i=Math.round(1e3*(n-o)));s.button=parseInt(e),s.rt=i,s.source="button",u(),t.response_ends_trial&&c()}(e.currentTarget.getAttribute("data-choice"))}function u(){for(var e=document.querySelectorAll(".jspsych-audio-multi-response-button"),t=0;t<e.length;t++){var n=e[t].querySelector("button");n&&(n.disabled=!0),e[t].removeEventListener("click",l)}}function p(){for(var e=document.querySelectorAll(".jspsych-audio-multi-response-button"),t=0;t<e.length;t++){var n=e[t].querySelector("button");n&&(n.disabled=!1),e[t].addEventListener("click",l)}}const d=e=>{null==s.key&&(s=Object.assign({source:"keyboard",button:null},e)),t.response_ends_trial&&c()},m=()=>{if("NO_KEYS"!=t.keyboard_choices){let e;e=null!==r?{rt_method:"audio",audio_context:r,audio_context_start_time:o}:{rt_method:"performance"},this.jsPsych.pluginAPI.getKeyboardResponse(Object.assign({callback_function:d,valid_responses:t.keyboard_choices,persist:!1,allow_held_key:!1},e))}};return new Promise(e=>{i=e})}simulate(e,t,n,i){"data-only"==t&&(i(),this.simulate_data_only(e,n)),"visual"==t&&this.simulate_visual(e,n,i)}create_simulation_data(e,t){const n={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),keyboard_response:this.jsPsych.pluginAPI.getValidKey(e.keyboard_choices),button_response:null,response_source:"keyboard"},i={stimulus:e.stimulus,rt:this.jsPsych.randomization.sampleExGaussian(500,50,1/150,!0),button_response:this.jsPsych.randomization.randomInt(0,e.button_choices.length-1),keyboard_response:null,response_source:"button"},r=Math.random()<.5?n:i,s=this.jsPsych.pluginAPI.mergeSimulationData(r,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,s),s}simulate_data_only(e,t){const n=this.create_simulation_data(e,t);this.jsPsych.finishTrial(n)}simulate_visual(e,t,n){const i=this.create_simulation_data(e,t),r=this.jsPsych.getDisplayElement(),s=()=>{null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(r.querySelector(`div[data-choice="${i.response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))};this.trial(r,e,()=>{n(),e.response_allowed_while_playing?s():this.audio.addEventListener("ended",s)})}}MT.info=PT;let NT,DT=[],FT=[],zT=[];const $T="info-shadow";const BT={type:MT,data:()=>{const e=Ja().nextStimulus;let t="practice_response"===e.assessmentStage;return{save_trial:"instructions"!==e.trialType,assessment_stage:e.assessmentStage,isPracticeTrial:t}},stimulus:()=>WC.audio.nullAudio,prompt:()=>{const e=Ja().nextStimulus;let t=Ho(e.audioFile);Ja().heavyInstructions&&"practice_response"!==e.assessmentStage&&"instructions"!==e.trialType&&(t+="Heavy");const n=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="replay-btn-revisited"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${n[t]}</p>\n </div>\n </div>`},prompt_above_buttons:!0,button_choices:()=>{const e=Ja().nextStimulus;if("instructions"===e.assessmentStage)return["OK"];{const t=e.answser?"yes":"no",{choices:n}=rd(e.answer,e.distractors,t);return(e=>e.map(e=>`<img src=${WC.images[Ho(e)]} alt=${e} />`))(n)}},button_html:()=>`<button class="${"instructions"===Ja().nextStimulus.assessmentStage?"primary":"image-medium"}">%choice%</button>`,on_load:()=>{NT=performance.now();const e=Ja().nextStimulus;let t=e.audioFile;Ja().heavyInstructions&&"practice_response"!==e.assessmentStage&&"instructions"!==e.trialType&&(t+="-heavy");ad.playAudio(WC.audio[Ho(t)],{restrictRepetition:{enabled:!1,maxRepetitions:2}});cd(new dd(t,!0));const n=document.getElementById("jspsych-audio-multi-response-btngroup"),i=Array.from(n.children).map(e=>e.firstChild).filter(e=>!!e);5===i.length?n.classList.add("lev-response-row-inline","grid-3x2"):n.classList.add("lev-response-row","multi-4"),i.forEach((t,n)=>t.addEventListener("click",async r=>{var s;const o=null===(s=null==t?void 0:t.firstChild)||void 0===s?void 0:s.alt;if(t){if(t.classList.contains($T))t.classList.remove($T),DT.splice(DT.indexOf(o),1),FT.splice(FT.indexOf(n),1);else{t.classList.add($T),DT.push(o),FT.push(n);const i=e.requiredSelections;DT.length===i&&setTimeout(()=>gu.finishTrial(),500)}setTimeout(()=>{i.forEach(e=>e.removeAttribute("disabled"))},500)}}))},response_ends_trial:!1,on_finish:()=>{const e=Ja().nextStimulus,t=Ja().runCat,n=performance.now()-NT;function i(e){const t=["gray","striped","black"];return e.some(e=>t.includes(e))||e.push("white"),e.some(e=>!isNaN(Number(e)))||e.splice(3,0,"1"),e}ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({corpusTrialType:e.trialType,answer:e.answer||null,response:DT,distractors:e.distractors,item:e.item,rt:Math.round(n),audioButtonPresses:ad.replayPresses,responseLocation:FT,itemUid:e.itemUid}),Ja().storeItemId&&gu.data.addDataToLastTrial({itemId:e.itemId}),"prompt1"===e.audioFile.split("-")[2]&&(zT=[]);let r=[];"something-same-2"===e.trialType||"2-match"===e.trialType?r=["number","bgcolor"]:"3-match"!==e.trialType&&"4-match"!==e.trialType||(r=["size"]);const s=function(e,t,n){const r={size:0,color:1,shape:2,number:3,bgcolor:4},s=function(e,t){const n={};for(const[e,i]of Object.entries(r))t.includes(e)||(n[e]=new Set);for(const t of e){const e=i(t.split("-"));for(const[t,i]of Object.entries(n)){const n=r[t];void 0!==e[n]&&i.add(e[n])}}return Object.values(n).some(e=>1===e.size)}(e,n),o=function(e,t){if(!t||0===t.length)return!0;let n=!0;return t.forEach(t=>{(e[0]===t[0]&&e[1]===t[1]||e[1]===t[0]&&e[0]===t[1])&&(n=!1)}),n}(e,t);return s&&o}(DT,zT,r);if(Ja("isCorrect",s),!1===s?Ja.transact("numIncorrect",e=>e+1):Ja("numIncorrect",0),gu.data.addDataToLastTrial({correct:s}),zT.push(DT),DT=[],FT=[],"test_response"===e.assessmentStage&&Ja.transact("testTrialCount",e=>e+1),Ja().numIncorrect>=Ja().maxIncorrect&&!Ja().heavyInstructions&&!t&&jS(),t){gd(e,s);const t=Ja().sequentialTrials,n=t.filter(t=>t.trialNumber===e.trialNumber&&t.trialType===e.trialType);if(n.length>0){const e=n[0];Ja("nextStimulus",e);const i=t.filter(t=>t.itemId!==e.itemId);Ja("sequentialTrials",i)}}}};let qT,UT=[];const HT=e=>e.map(e=>`<img src=${WC.images[Ho(e)]} alt=${e} />`);function WT(e,t,n,i,r){var s;const o=(null===(s=null==e?void 0:e.parentElement)||void 0===s?void 0:s.id)||"",a=Ja().correctResponseIdx.toString(),c=o.includes(a);let l;c?(e.classList.add("success-shadow"),l=WC.audio[r]):(e.classList.add("error-shadow"),l=WC.audio.feedbackTryAgain,setTimeout(()=>{t.forEach(e=>e.removeAttribute("disabled"))},500),UT.push(o));const u={restrictRepetition:{enabled:!0,maxRepetitions:2},onEnded:function(){gu.finishTrial({response:o,incorrectPracticeResponses:UT,button_response:n?null:i,keyboard_response:n?i:null})}};ad.stopAndDisconnectNode(),c?ad.playAudio(l,u):ad.playAudio(l,{restrictRepetition:{enabled:!1,maxRepetitions:2}})}const VT=e=>({type:uS,data:()=>{const t=e||Ja().nextStimulus;let n="practice_response"===t.assessmentStage;return{save_trial:"instructions"!==t.assessmentStage,assessment_stage:t.assessmentStage,isPracticeTrial:n}},stimulus:()=>{const t=e||Ja().nextStimulus;let n=Ho(t.audioFile);Ja().heavyInstructions&&"practice_response"!==t.assessmentStage&&"instructions"!==t.trialType&&(n+="Heavy");const i=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="replay-btn-revisited"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${i[n]}</p>\n </div>\n\n ${t.image&&!Array.isArray(t.image)?`<button class='image-medium' disabled>\n <img \n src=${WC.images[Ho(t.image)]} \n alt=${t.image}\n />\n </div>`:""}\n \n ${t.image&&Array.isArray(t.image)?`<div class='lev-stim-content' style="flex-direction: column;">\n ${"something-same-1"===t.trialType?`\n <div style="visibility: hidden;">\n <button class='image no-pointer-events'>\n <img \n src=${WC.images[Ho(t.image[0])]} \n alt=${t.image[0]}\n class='top-image'\n />\n </button>\n </div>\n `:""}\n <div class='lev-response-row multi-4'>\n ${t.image.map(e=>`<button class='image-medium no-pointer-events' style='margin: 0 4px'>\n <img \n src=${WC.images[Ho(e)]} \n alt=${e} \n />\n </button>`).join("")}\n </div>\n </div>`:""}\n </div>`},prompt_above_buttons:!0,button_choices:()=>{const t=e||Ja().nextStimulus;if("instructions"===t.trialType||"something-same-1"==t.trialType)return["OK"];{const e=t.answer?"yes":"no",{choices:n}=rd(t.answer,t.distractors,e);return HT(n)}},button_html:()=>{const t=e||Ja().nextStimulus;return`<button class="${"instructions"===t.trialType||"something-same-1"===t.trialType?"primary":"image-medium"}">%choice%</button>`},response_ends_trial:()=>{const t=e||Ja().nextStimulus;return!("test-dimensions"===t.trialType||"practice_response"===t.assessmentStage&&"something-same-1"!==t.trialType)},on_load:()=>{qT=performance.now();const t=e||Ja().nextStimulus;let n=t.audioFile;Ja().heavyInstructions&&"practice_response"!==t.assessmentStage&&"instructions"!==t.trialType&&(n+="-heavy"),ad.playAudio(WC.audio[Ho(n)]);const i=new dd(n,!0);cd(i);const r=document.getElementById("jspsych-html-multi-response-btngroup");r.classList.add("lev-response-row"),r.classList.add("multi-4");const s=t.trialType,o=t.assessmentStage;if(window.Cypress&&"something-same-1"!==s){document.querySelectorAll(".image-medium").forEach(e=>{var t;(null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("alt"))===Ja().nextStimulus.answer&&e.classList.add("correct")})}if("something-same-2"===t.trialType&&Ja().heavyInstructions&&$k(i,r,["same-different-selection-highlight-1","same-different-selection-highlight-2"]),"test-dimensions"===s||"practice_response"===o&&"something-same-1"!==s){const e=Array.from(r.children).map(e=>e.firstChild).filter(e=>!!e);e.forEach((t,n)=>t.addEventListener("click",async i=>{WT(t,e,!1,n,"feedbackGoodJob")}))}},on_finish:t=>{const n=e||Ja().nextStimulus,i=Ja().choices,r=performance.now(),s=Ja().runCat;if(ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses}),"instructions"!==n.assessmentStage){let e;if(e="test-dimensions"===n.trialType||"practice_response"===n.assessmentStage?0===UT.length:t.button_response===Ja().correctResponseIdx,UT=[],Ja("isCorrect",e),!1===e?Ja.transact("numIncorrect",e=>e+1):Ja("numIncorrect",0),gu.data.addDataToLastTrial({item:n.item,answer:n.answer,correct:e,distractors:n.distractors,corpusTrialType:n.trialType,response:i[t.button_response],responseLocation:t.button_response,itemUid:n.itemUid}),Ja().storeItemId&&gu.data.addDataToLastTrial({itemId:n.itemId}),"test-dimensions"===n.trialType||"practice_response"===n.assessmentStage){const e=Math.round(r-qT);gu.data.addDataToLastTrial({rt:e})}"test_response"===n.assessmentStage&&Ja.transact("testTrialCount",e=>e+1),Ja().numIncorrect>=Ja().maxIncorrect&&!Ja().heavyInstructions&&jS(),"something-same-1"!==n.trialType&&"instructions"!==n.trialType&&gd(n,e),s&&"practice_response"!==n.assessmentStage&&function(e){const t=Ja().sequentialTrials,n=t.filter(t=>t.trialNumber===e.trialNumber&&t.block_index===e.block_index);if(n.length>0){const e=n[0];Ja("nextStimulus",e);const i=t.filter(t=>t.itemId!==e.itemId);Ja("sequentialTrials",i)}}(n)}if("test-dimensions"===n.trialType||"practice_response"===n.assessmentStage){const e=Math.round(r-qT);gu.data.addDataToLastTrial({rt:e})}"test_response"===n.assessmentStage&&Ja.transact("testTrialCount",e=>e+1)}});function KT(){const e=document.querySelector(".primary");null!=e&&(e.disabled=!1)}const YT="replay-btn-revisited",GT={type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>{const e=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="${YT}"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${e.sameDifferentSelectionBothYellowHeavy}</p>\n </div>\n <div class='lev-stim-content' style="flex-direction: column;">\n <div style="visibility: hidden";>\n <button class='image-medium no-pointer-events'>\n <img \n src=${WC.images[Ho("med-red-square")]}\n alt=med-red-square\n class=top-image\n />\n </button>\n </div>\n <div class='lev-response-row multi-4'>\n ${["lg-yellow-circle","sm-yellow-square"].map(e=>`<button class='image-medium no-pointer-events' style='margin: 0 4px'>\n <img \n src=${WC.images[Ho(e)]} \n alt=${e} \n />\n </button>`).join("")}\n </div>\n </div>\n </div>`},prompt_above_buttons:!0,button_choices:["OK"],button_html:()=>"<button disabled class='primary'>OK</button>",response_ends_trial:!0,post_trial_gap:350,on_load:()=>{const e="sameDifferentSelectionBothYellowHeavy",t={restrictRepetition:{enabled:!0,maxRepetitions:2},onEnded:KT};ad.playAudio(WC.audio[e],t);cd(new dd(e,!0));const n=document.getElementById("jspsych-html-multi-response-btngroup");n.classList.add("lev-response-row"),n.classList.add("multi-4")},on_finish:()=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses})}},JT={type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>{const e=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="${YT}"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${e.sdsPrompt3DemoHeavy}</p>\n </div>\n <div class='lev-stim-content' style="flex-direction: column;">\n <div>\n <button class='image-medium no-pointer-events'>\n <img \n src=${WC.images[Ho("med-red-square")]}\n alt="med-red-square"\n class='top-image'\n />\n </button>\n </div>\n <div class='lev-response-row multi-4'>\n ${["lg-yellow-circle","sm-yellow-square"].map(e=>`<button class='image-medium no-pointer-events' style='margin: 0 4px'>\n <img \n src=${WC.images[Ho(e)]} \n alt=${e} \n />\n </button>`).join("")}\n </div>\n </div>\n </div>`},prompt_above_buttons:!0,button_choices:["OK"],button_html:()=>"<button class='primary' disabled>OK</button>",response_ends_trial:!0,post_trial_gap:350,on_load:()=>{cd(new dd("sdsPrompt3DemoHeavy",!0));const e=document.getElementById("jspsych-html-multi-response-btngroup");e.classList.add("lev-response-row"),e.classList.add("multi-4");const t=document.getElementsByClassName("image-medium"),n=t[0],i=[t[1],t[2]];function r(){n.style.animation="pulse 2s 1s",setTimeout(()=>{KT()},2500)}const s={restrictRepetition:{enabled:!0,maxRepetitions:2},onEnded:function(){i.forEach(e=>e.style.animation="pulse 2s 1s");const e={restrictRepetition:{enabled:!0,maxRepetitions:2},onEnded:r};setTimeout(()=>{ad.playAudio(WC.audio.sdsPrompt3DemoHeavyPart2,e)},2500)}};ad.playAudio(WC.audio.sdsPrompt3DemoHeavyPart1,s)},on_finish:()=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses})}},XT=[{prompt:"sds-pick-square-demo-heavy",video:"somethingSameDemo"},{prompt:"sds-match-demo1-heavy",video:"sdsMatchDemo1"},{prompt:"sds-match-demo2-heavy",video:"sdsMatchDemo2"}].map(e=>({type:uS,data:()=>({assessment_stage:"instructions"}),stimulus:()=>{const t=Ja().translations;return`\n <div class="lev-stimulus-container">\n <button id="${YT}" class="replay">\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${t[Ho(e.prompt)]}</p>\n </div>\n <video class="instruction-video" autoplay loop>\n <source src=${WC.video[e.video]} type="video/mp4"/>\n Your browser does not support the video tag.\n </video>\n </div>\n `},prompt_above_buttons:!0,post_trial_gap:350,button_choices:["Continue"],button_html:()=>`<button class="primary" disabled>${Ja().translations.continueButtonText}</button>`,keyboard_choices:"NO_KEYS",on_load:()=>{const t={restrictRepetition:{enabled:!0,maxRepetitions:2},onEnded:KT};ad.playAudio(WC.audio[Ho(e.prompt)],t);cd(new dd(e.prompt,!0))},on_finish:()=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses})}})),ZT=XT.pop(),QT=XT.pop(),eE=XT.pop();let tE,nE=[];const iE=[{audioFile:"sameDifferentSelectionBothTrianglesHeavy",trialType:"something-same-1",image:["sm-blue-triangle","med-red-triangle"],answer:"",distractors:[],itemUid:"sds-something-same-1-instr-heavy",itemId:"sds-something-same-1-instr-heavy",correctAudio:""},{audioFile:"sdsPrompt3Heavy",trialType:"something-same-2",image:["lg-blue-circle"],answer:"sm-blue-triangle",distractors:["sm-blue-triangle","med-red-triangle"],itemUid:"sds_same_",itemId:"sds-something-same-1-test-heavy",correctAudio:"sdsFeedbackBothBlue"},{audioFile:"sameDifferentSelectionBothRedHeavy",trialType:"something-same-1",image:["lg-red-square","sm-red-triangle"],answer:"",distractors:[],itemUid:"sds-something-same-2-instr-heavy",itemId:"sds-something-same-2-instr-heavy",correctAudio:""},{audioFile:"sdsPrompt3Heavy",trialType:"something-same-2",image:"lg-yellow-circle",answer:"lg-red-square",distractors:["lg-red-square","sm-red-triangle"],itemUid:"sds_same_",correctAudio:"sdsFeedbackBothLarge"}].map(e=>({type:uS,data:()=>({save_trial:"something-same-1"===e.trialType,isPracticeTrial:!0,itemId:e.itemId,assessment_stage:"practice_response"}),stimulus:()=>{let t=e.audioFile;const n=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="${YT}"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${n[t]}</p>\n </div>\n\n ${e.image&&!Array.isArray(e.image)?`<button class='image-medium' disabled>\n <img \n src=${WC.images[Ho(e.image)]} \n alt=${e.image}\n />\n </div>`:""}\n \n ${e.image&&Array.isArray(e.image)?`<div class='lev-stim-content' style="flex-direction: column;">\n ${"something-same-1"===e.trialType?`\n <div style="visibility: hidden;">\n <button class='image-medium no-pointer-events'>\n <img \n src=${WC.images[Ho(e.image[0])]} \n alt=${e.image[0]}\n class='top-image'\n />\n </button>\n </div>\n `:""}\n <div class='lev-response-row multi-4'>\n ${e.image.map(e=>`<button class='image-medium no-pointer-events' style='margin: 0 4px'>\n <img \n src=${WC.images[Ho(e)]} \n alt=${e} \n />\n </button>`).join("")}\n </div>\n </div>`:""}\n </div>`},prompt_above_buttons:!0,post_trial_gap:350,button_choices:()=>{if("instructions"===e.trialType||"something-same-1"==e.trialType)return["OK"];{const t=e.answer?"yes":"no",{choices:n}=rd(e.answer,e.distractors,t);return HT(n)}},button_html:()=>`<button class="${"instructions"===e.trialType||"something-same-1"===e.trialType?"primary":"image-medium"}">%choice%</button>`,response_ends_trial:()=>!("test-dimensions"===e.trialType||"something-same-1"!==e.trialType),on_load:()=>{tE=performance.now();let t=e.audioFile;ad.playAudio(WC.audio[t]);const n=new dd(t,!0);cd(n);const i=document.getElementById("jspsych-html-multi-response-btngroup");i.classList.add("lev-response-row"),i.classList.add("multi-4");const r=e.trialType;if(window.Cypress&&"something-same-1"!==r){document.querySelectorAll(".image-medium").forEach(e=>{var t;(null===(t=e.querySelector("img"))||void 0===t?void 0:t.getAttribute("alt"))===Ja().nextStimulus.answer&&e.classList.add("correct")})}if("something-same-2"===e.trialType&&Ja().heavyInstructions&&$k(n,i,["same-different-selection-highlight-1","same-different-selection-highlight-2"]),"something-same-2"===r){const t=Array.from(i.children).map(e=>e.firstChild).filter(e=>!!e);t.forEach((n,i)=>n.addEventListener("click",async r=>{WT(n,t,!1,i,e.correctAudio)}))}},on_finish:e=>{const t=Ja().choices,n=performance.now();if(ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses}),"something-same-2"!==e.trialType){let i=0===nE.length;nE=[],Ja("isCorrect",i);const r=Math.round(n-tE);gu.data.addDataToLastTrial({item:e.item,answer:e.answer,correct:i,distractors:e.distractors,corpusTrialType:e.trialType,response:t[e.button_response],responseLocation:e.button_response,rt:r})}}}));function rE(e){const t=[];let n=!1;return e?Ja().corpora.stimulus.forEach(e=>{t.push(e.length)}):Ja().corpora.stimulus.forEach(e=>{let i;switch(e.trialType){case"test-dimensions":i=n?3:0;break;case"something-same-1":n=!0,i=1;break;case"something-same-2":i=1;break;case"2-match":i=2;break;case"3-match":i=4;break;case"4-match":i=5;break;default:i=NaN}Number.isNaN(i)||(t[i]=(t[i]||0)+1)}),t}function sE(e,t){const n=td(t).default,i=Ja().heavyInstructions,r=md(Ja().corpora.stimulus);Zp(e);const s=oc(e,aS,jS),o={timeline:[vS(t)],conditional_function:()=>{const e=Ja().nextStimulus.trialType,t=Ja().nextStimulus.assessmentStage;return!("something-same-2"!==e&&!e.includes("match")||"practice_response"===t)}},a=e=>({timeline:[{...hS,stimulus:""},VT(e)]}),c={timeline:[VT()]},l={timeline:[BT]},u={timeline:[RT],conditional_function:()=>Ja().numIncorrect>=Ja().maxIncorrect&&i},p=[n,s],d=i?r.ipHeavy:r.ipLight;const m=rE(!1),h=m.reduce((e,t)=>e+t,0);function f(){p.push({...dS,stimulus:""}),p.push(c)}function g(){p.push({...dS,stimulus:""}),p.push(l),p.push(o),p.push(u)}Ja("totalTestTrials",h);const v=[f,function(){p.push({...dS,stimulus:""}),p.push(c),p.push(o),p.push(u)},g,f,g,g];return m.forEach((e,t)=>{const n=(r=t,d.filter(e=>e.blockIndex==r));var r;if(1===t&&i){const e=n.shift();null!=e&&p.push(a(e)),p.push(GT),p.push(JT),p.push(eE),n.forEach(e=>{p.push(a(e))}),iE.forEach(e=>{p.push(e)}),p.push({...AS,conditional_function:()=>!0})}else n.forEach(e=>{p.push(a(e))});2===t&&i&&(p.push(QT),p.push(ZT));for(let n=0;n<e;n+=1)v[t]()}),fu(),i&&p.push(RT),p.push(CS()),p.push(cS),{jsPsych:gu,timeline:p}}function oE(e,t){const n=td(t).default,i=Ja().heavyInstructions,r=md(Ja().corpora.stimulus),s=function(e){const t=[],n=["second_response","third_response","fourth_response"],i=[];return e.forEach(e=>{"something-same-2"===e.trialType||n.includes(e.assessmentStage)?t.push(e):"test-dimensions"===e.trialType?(e.difficulty=NaN,i.push(e)):i.push(e)}),Ja("sequentialTrials",t),i}(Ja().corpora.stimulus),o=fd(s),a={practice:Ja().corpora.practice,stimulus:o};Ja("corpora",a),Zp(e);const c=oc(e,aS,jS),l={timeline:[vS(t)],conditional_function:()=>{const e=Ja().nextStimulus.trialType,t=Ja().nextStimulus.assessmentStage;return!("something-same-2"!==e&&!e.includes("match")||"practice_response"===t)}},u=e=>({timeline:[{...hS,stimulus:""},VT(e)]});function p(e,t){const n=[];for(let i=0;i<e;i++)"stimulus"===t?(n.push(VT()),n.push(l)):(n.push(BT),n.push(l)),i<e-1&&n.push({...hS,stimulus:""});return{timeline:n,conditional_function:()=>{const n=Ja().nextStimulus;return"stimulus"===t?"test-dimensions"===n.trialType&&1===e||n.trialType.includes("something-same")&&2===e:n.trialType===e+"-match"}}}const d=[n,c],m=i?r.ipHeavy:r.ipLight;const h=rE(!0),f=h.reduce((e,t)=>e+t,0);return Ja("totalTestTrials",f),h.forEach((e,t)=>{const n=(r=t,m.filter(e=>e.blockIndex==r));var r;if(1===t&&i){const e=n.shift();null!=e&&d.push(u(e)),d.push(GT),d.push(JT),d.push(eE)}n.forEach(e=>{d.push(u(e))}),2===t&&i&&(d.push(QT),d.push(ZT));const s=0===t?e:e/2;for(let e=0;e<s;e++)d.push({...mS(t),stimulus:""}),0===t&&d.push(p(1,"stimulus")),1===t&&d.push(p(2,"stimulus")),2===t&&(d.push(p(2,"afc")),d.push(p(3,"afc")),d.push(p(4,"afc")))}),fu(),i&&d.push(RT),d.push(CS()),d.push(cS),{jsPsych:gu,timeline:d}}const aE=(e,t,n)=>{const i=JSON.parse(JSON.stringify(Vo)),{answer:r,distractors:s,trialType:o}=e;if(i.isPracticeTrial="practice_response"===e.assessmentStage,i.isInstructionTrial="instructions"===e.trialType,i.showStimImage=!1,i.isInstructionTrial)i.classOverrides.buttonClassList=["primary"];else{const e=bd(s),t=rd(r.toString(),e,"yes",o);i.prompt={enabled:!1,aboveStimulus:!1},i.isImageButtonResponse=!0,i.classOverrides.buttonClassList=["image-medium"],i.classOverrides.buttonContainerClassList=["lev-response-row-inline","grid-2x2"],i.response={target:t.target,displayValues:t.choices,values:t.originalChoices,targetIndex:t.correctResponseIdx}}return{itemConfig:i,errorMessages:yd(i,n,t,e)}};const cE=(e,t,n)=>{const{answer:i,distractors:r,trialType:s}=e,o=JSON.parse(JSON.stringify(Vo));if(o.isPracticeTrial="practice_response"===e.assessmentStage,o.isInstructionTrial="instructions"===e.trialType,o.stimText={value:vd(e.item),displayValue:void 0},o.classOverrides.promptClassList=["lev-row-container","instruction-small"],o.isInstructionTrial)o.classOverrides.buttonClassList=["primary"];else{const t=bd(r),n=rd(i.toString(),t,e.randomize,s);o.isStaggered=!0,o.isImageButtonResponse=!0,o.response={target:n.target,displayValues:n.choices,values:n.originalChoices,targetIndex:n.correctResponseIdx}}return{itemConfig:o,errorMessages:yd(o,n,t,e)}};const lE=[{prompt:"generalIntro1",image:"avatarOwl",buttonText:"continueButtonText"},{prompt:"generalIntro4",image:"avatarOwl",buttonText:"continueButtonText"},{prompt:"generalIntro5",image:"avatarOwl",buttonText:"continueButtonText"}];mu||lE.push({prompt:"generalKeyboardInstructions",image:"avatarOwl",buttonText:"continueButtonText"});const uE=lE.map(e=>({type:uS,stimulus:()=>{const t=Ja().translations;return`\n <div class="lev-stimulus-container">\n <button id="replay-btn-revisited" class="replay">\n ${sd}\n </button>\n <div class="lev-row-container instruction-small">\n <p>${t[e.prompt]}</p>\n </div>\n <div class="lev-stim-content-x-3">\n <img\n src=${WC.images[e.image]}\n alt='Instruction graphic'\n />\n </div>\n </div>\n `},prompt_above_buttons:!0,button_choices:["Next"],button_html:()=>[`<button class="primary">\n ${Ja().translations[e.buttonText]}\n </button>`],keyboard_choices:()=>mu?"NO_KEYS":"ALL_KEYS",on_load:()=>{ad.playAudio(WC.audio[e.prompt]);cd(new dd(e.prompt,!0))},on_finish:()=>{ad.stopAndDisconnectNode(),gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses,assessment_stage:"instructions"}),ad.stopAndDisconnectNode()}}));const pE=(e,t,n)=>{const i=JSON.parse(JSON.stringify(Vo)),{answer:r,distractors:s,trialType:o}=e;if(i.isPracticeTrial="practice_response"===e.assessmentStage,i.isInstructionTrial="instructions"===e.trialType,i.showStimImage=!1,i.isInstructionTrial)i.classOverrides.buttonClassList=["primary"],e.item&&(i.showStimImage=!0,i.stimText={value:vd(e.item),displayValue:void 0});else{const e=bd(s),t=rd(r.toString(),e,"yes",o);i.prompt={enabled:!1,aboveStimulus:!1},i.isImageButtonResponse=!0,i.classOverrides.buttonClassList=["image-medium"],i.classOverrides.buttonContainerClassList=["lev-response-row-inline","grid-2x2"],i.response={target:t.target,displayValues:t.choices,values:t.originalChoices,targetIndex:t.correctResponseIdx}}return{itemConfig:i,errorMessages:yd(i,n,t,e)}};const dE=[{prompt:"inferenceInstructions2",buttonText:"Go"},{prompt:"inferenceInstructions",buttonText:"Continue"}].map(e=>({type:MT,stimulus:()=>WC.audio[e.prompt],prompt:()=>{const t=Ja().translations;return`<div class="lev-stimulus-container">\n <button\n id="replay-btn-revisited"\n class="replay"\n >\n ${sd}\n </button>\n <div class="lev-row-container instruction">\n <p>${t[e.prompt]}</p>\n </div>\n </div>`},prompt_above_buttons:!0,button_choices:["Next"],button_html:()=>(Ja().translations,[`<button class="primary">\n ${[e.buttonText]}\n </button>`]),keyboard_choices:()=>"NO_KEYS",on_load:()=>{cd(new dd(e.prompt,!0))},on_finish:()=>{gu.data.addDataToLastTrial({audioButtonPresses:ad.replayPresses,assessment_stage:"instructions"})}}));let mE,hE=[];const fE=[];async function gE(e,t,n,i){const r=(e=>{const t=e.response.values.length;if(1===t)return["Enter"];if(2===t)return["ArrowLeft","ArrowRight"];if(3===t)return["ArrowUp","ArrowLeft","ArrowRight"];if(4===t)return["ArrowUp","ArrowLeft","ArrowRight","ArrowDown"];throw new Error("More than 4 buttons are not supported yet")})(i),s=r.findIndex(t=>t.toLowerCase()===e.key.toLowerCase());if(r.includes(e.key)){const r=t[s];r&&vE(r,n,t,!0,e.key.toLowerCase(),i)}}function vE(e,t,n,i,r,s){var o,a;const c=Array.prototype.indexOf.call(n,e),l=((null===(o=s.response)||void 0===o?void 0:o.values)||[])[c];(null==l?void 0:l.toString())===(null===(a=t.answer)||void 0===a?void 0:a.toString())?(e.classList.add("success-shadow"),setTimeout(()=>gu.finishTrial({response:l,incorrectPracticeResponses:fE,button_response:i?null:r,keyboard_response:i?r:null}),1e3)):(e.classList.add("error-shadow"),setTimeout(()=>{n.forEach(e=>e.disabled=!1)},500),fE.push(l))}function yE(e){const t=Ja().nextStimulus,n=null==e?void 0:e[t.itemId],i=null==n?void 0:n.playAudioOnLoad,r=new dd(t.audioFile,i),s="practice_response"===t.assessmentStage;if(t.trialType,(async(e,t)=>{if(null==e?void 0:e.isStaggered){const e=document.getElementById("jspsych-html-multi-response-btngroup"),n=await t.getStimulusDurationMs();setTimeout(()=>{t.disableReplayBtn()},n+110);for(const t of e.children)t.classList.add("lev-staggered-responses","lev-staggered-disabled","lev-staggered-grayscale","lev-staggered-opacity")}})(n,r),zk({itemId:t.itemId,taskName:t.task,pageContext:"afcInference"}),s){const e=document.querySelectorAll(".practice-btn");e.forEach((i,r)=>i.addEventListener("click",async s=>{vE(i,t,e,!1,r,n)})),mu||(mE=i=>gE(i,e,t,n),document.addEventListener("keydown",mE))}if(null==n?void 0:n.classOverrides.stimulusContainerClassList.includes("inference-scroll")){const e=document.querySelector(".jspsych-content");null==e||e.classList.add("inference-scroll")}if("instructions"!==t.trialType){const e=document.getElementById("jspsych-html-multi-response-btngroup"),t=e.children,i=t.length,{buttonLayout:r}=Ja();n&&("diamond"===r?e.classList.add("lev-response-row-diamond-layout"):e.classList.add(...n.classOverrides.buttonContainerClassList)),Array.from(t).forEach((e,t)=>{!function(e,t){const{keyHelpers:n}=Ja();if(n&&!mu){const n=document.createElement("div");n.classList.add("arrow-key-border");const i=document.createElement("p");i.innerHTML=od[t][1],i.style.textAlign="center",i.style.margin="0",n.appendChild(i),e.appendChild(n)}}(e,2===i?t+1:t)}),Ja.transact("trialNumSubtask",e=>e+1),s&&Ja.transact("testTrialCount",e=>e+1)}}const bE=({responseAllowed:e,promptAboveButtons:t,task:n,layoutConfigMap:i})=>({type:uS,response_allowed_while_playing:e,data:()=>{const e=Ja().nextStimulus;let t="practice_response"===e.assessmentStage;return{save_trial:!0,assessment_stage:e.assessmentStage,isPracticeTrial:t}},stimulus:()=>function(e){var t;const n=Ja().nextStimulus;Ja().translations;let i=null==e?void 0:e[n.itemId];if(i){const{prompt:{enabled:e,useStimText:n},story:r,stimText:s}=i;let o="";return e&&n&&(o=null!==(t=null==s?void 0:s.value)&&void 0!==t?t:""),((e,t,n)=>{let i="";return e&&!n&&(i+=`\n <div class="lev-row-container instruction">\n <p>${e}</p>\n </div>\n `),e&&n&&(i+=`\n <div class="lev-row-container instruction-no-border">\n <p>${t}</p>\n </div>\n <div class="lev-row-container roar-instruction-question">\n <p>${e}</p>\n </div>\n `),i+="</div>",i})(o,r,n)}}(i),prompt_above_buttons:t,button_choices:()=>function(e){const t=Ja().nextStimulus,n=null==e?void 0:e[t.itemId];if(n){const{response:{values:e}}=n;return e}}(i),button_html:()=>function(e){const t=Ja().nextStimulus,n="practice_response"===t.assessmentStage,i=null==e?void 0:e[t.itemId];if(i){const e=[...i.classOverrides.buttonClassList];return n&&e.push("practice-btn"),`\n <button class='${e.join(" ")}'>%choice%</button>\n `}}(i),on_load:()=>yE(i),on_finish:e=>function(e,t,n){var i;const r=Ja().nextStimulus,s=null==n?void 0:n[r.itemId];let o=null,a=null,c=null;if("instructions"!==r.trialType){if(s){const{response:t}=s;if(!t)throw new Error("Choices not defined in the config");c=e.button_response,o=t.values[c],a=t.target,e.correct=o===a}const t="mouse";e.correct?("practice_response"!==r.assessmentStage&&(Ja.transact("totalCorrect",e=>e+1),Ja("numIncorrect",0)),hE=[]):("practice_response"!==r.assessmentStage&&Ja.transact("numIncorrect",e=>e+1),hE.push(o)),gu.data.addDataToLastTrial({item:Ia(r.item)||r.item,answer:a,distractors:r.distractors,corpusTrialType:r.trialType,responseType:t,responseLocation:c}),Ja().storeItemId&&gu.data.addDataToLastTrial({corpus:Ja().corpus,itemId:r.source+"-"+r.origItemNum}),"practice_response"!==r.assessmentStage&&gu.data.addDataToLastTrial({response:o}),"practice_response"===r.assessmentStage&&document.removeEventListener("keydown",mE)}else Ja("numIncorrect",0),gu.data.addDataToLastTrial({correct:!1});"skip"===s.inCorrectTrialConfig.onIncorrectTrial?pd(r.trialType):Ja().numIncorrect>=Ja().maxIncorrect&&jS(),null===(i=document.querySelector(".jspsych-content"))||void 0===i||i.classList.remove("inference-scroll")}(e,0,i),response_ends_trial:()=>"practice_response"!==Ja().nextStimulus.assessmentStage}),xE=(e,t,n,i)=>{const{answer:r,distractors:s,trialType:o}=e,a=JSON.parse(JSON.stringify(Vo));if(a.playAudioOnLoad=!1,a.isPracticeTrial="practice_response"===e.assessmentStage,a.classOverrides.buttonContainerClassList=["lev-response-row","multi-stack"],a.isInstructionTrial="instructions"===e.trialType,a.prompt.enabled=!0,a.prompt.useStimText=!0,a.stimText={value:e.prompt,displayValue:void 0},a.classOverrides.stimulusContainerClassList=["inference-scroll"],a.disableButtonsWhenAudioPlaying=!0,a.isInstructionTrial)a.classOverrides.buttonClassList=["primary"];else{const e=bd(s),t=rd(r.toString(),e,"yes",o);a.isImageButtonResponse=!1,a.classOverrides.buttonClassList=["roar-inference-btn"],a.response={target:t.target,displayValues:t.choices,values:t.originalChoices,targetIndex:t.correctResponseIdx}}return{itemConfig:a,errorMessages:yd(a,n,t,e)}};const _E=(e,t,n)=>{const{answer:i,distractors:r,trialType:s}=e,o=JSON.parse(JSON.stringify(Vo)),a=vd(e.item);if(o.isPracticeTrial="practice_response"===e.assessmentStage,o.isInstructionTrial="instructions"===e.trialType,o.showStimImage=!1,o.stimText={value:a,displayValue:void 0},o.inCorrectTrialConfig.onIncorrectTrial="skip",!o.isInstructionTrial){const e=bd(r),t=rd(i.toString(),e,"yes",s);o.prompt.enabled=!1,o.isImageButtonResponse=!1,o.classOverrides.buttonClassList=["secondary--wide"],o.response={target:t.target,displayValues:t.choices,values:t.originalChoices,targetIndex:t.correctResponseIdx},o.stimText={value:a,displayValue:a}}return{itemConfig:o,errorMessages:yd(o,n,t,e)}};var wE={egmaMath:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default;Zp(e);const i=oc(e,aS,jS),r=e=>({timeline:[vS(t)],conditional_function:()=>{const t=e||Ja().nextStimulus;if("practice_response"===t.assessmentStage||"instructions"===t.trialType)return!1;return!(Ja().trialsSkipped>0)}}),s=[n,i];let o=Ja().corpora.stimulus;const a=Ja().translations,c={},{runCat:l,heavyInstructions:u}=Ja();o=o.filter(e=>u?"3"===e.block_index:"3"!==e.block_index),Ja("totalTrials",o.length);const p={};for(const e of o){const{itemConfig:n,errorMessages:i}=LS(e,a,t);p[e.itemId]=n,i.length&&(c[e.itemId]=i.join("; "))}if(Object.keys(c).length)throw console.error("The following errors were found"),console.table(c),new Error("Something went wrong. Please look in the console for error details");const d={trialType:"audio",responseAllowed:!0,promptAboveButtons:!0,task:e.task,layoutConfigMap:p},m=e=>({timeline:[IS(!0,"feedbackCorrect","feedbackNotQuiteRight",!1)],conditional_function:()=>e?"Number Line Slider"===e.trialType:"practice_response"===Ja().nextStimulus.assessmentStage&&"Number Line Slider"===Ja().nextStimulus.trialType}),h={timeline:[{...dS,stimulus:""}],conditional_function:()=>{const e=Ja().trialsSkipped;return!(e>0)||(Ja("trialsSkipped",e-1),Ja.transact("testTrialCount",e=>e+1),!1)}},f={timeline:[{...hS,stimulus:"",post_trial_gap:350}],conditional_function:()=>1===Ja().trialsSkipped},g=e=>({timeline:[TS(d,e)],conditional_function:()=>{var t;return!(Ja().trialsSkipped>0)&&!(null===(t=(e||Ja().nextStimulus).trialType)||void 0===t?void 0:t.includes("Number Line"))}}),v=e=>({timeline:[rS(p,e),m(e)],conditional_function:()=>{var t;return!(Ja().trialsSkipped>0)&&(null===(t=(e||Ja().nextStimulus).trialType)||void 0===t?void 0:t.includes("Number Line"))}}),y=o.filter(e=>"Number Line Slider"===e.trialType&&"practice_response"===e.assessmentStage),b=()=>{let e=[];return y.forEach((t,n)=>{e.push(rS(p,t)),n<y.length-1&&e.push({...IS(!0,"feedbackCorrect","feedbackNotQuiteRight"),conditional_function:()=>!0,post_trial_gap:350})}),{timeline:[...e],conditional_function:()=>!Ja().isCorrect&&!Ja().testPhase&&("Number Line Slider"===Ja().nextStimulus.trialType||l)&&"test_response"===Ja().nextStimulus.assessmentStage}},x=e=>({timeline:[g(e),v(e),r(e)],conditional_function:()=>{if(Ja().skipCurrentTrial)return Ja("skipCurrentTrial",!1),!1;const t=e||Ja().nextStimulus,n=Ga.page.get("skipCurrentBlock");return!(t.trialType===n&&!l)}});if(l){const e=md(o),t=e.ipLight.concat(e.ipHeavy),n=t.filter(e=>"instructions"==e.trialType),i=t.filter(e=>"practice_response"==e.assessmentStage),r=fd(Ja().corpora.stimulus),a={practice:Ja().corpora.practice,stimulus:r};Ja("corpora",a),Ja("totalTestTrials",0);const c=r.length,l=[2,3,3];for(let t=0;t<c;t++){let o=[];n.filter(e=>{let n;switch(t){case 0:n=["math-instructions1","math-intro1"];break;case 1:n=["math-intro2"];break;case 2:n=["math-intro2","number-line-instruct1"];break;default:n=[]}const i=e.block_index===t.toString()&&n.includes(e.itemId)&&!o.includes(e.itemId);return i&&o.push(e.itemId),i}).forEach(e=>{s.push({...hS,stimulus:""}),s.push(TS(d,e))});i.filter(e=>e.block_index===t.toString()).forEach(e=>{s.push({...hS,stimulus:""}),s.push(x(e)),"Number Line Slider"===e.trialType&&s.push(m())}),2===t&&s.push(b()),s.push(AS),0===t&&e.start.forEach(e=>s.push(x(e)));const a=r[t].length/l[t];Ja.transact("numOfTrials",e=>e+a);for(let e=0;e<a;e++)s.push({...mS(t),stimulus:""}),s.push(x());e.unnormed.forEach(e=>{s.push({...hS,stimulus:""}),s.push(x(e))})}}else{Ja("totalTestTrials",Wk(o)),o.forEach(e=>e.difficulty=NaN);const e={practice:Ja().corpora.practice,stimulus:o};Ja("corpora",e);const t=Ja().totalTrials;for(let e=0;e<t;e++)s.push(h),s.push(b()),s.push(AS),s.push(f),s.push(x())}return fu(),s.push(CS()),s.push(cS),{jsPsych:gu,timeline:s}},variants:{egmaMathKids:{}}},matrixReasoning:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default;Zp(e);const i=oc(e,aS,jS),r={timeline:[vS(t)],conditional_function:()=>{const e=Ja().nextStimulus;return!!l||"practice_response"!==e.assessmentStage&&"instructions"!==e.trialType}},s=[n,i,...RS],o=Ja().corpora.stimulus,a=Ja().translations,c={},{runCat:l}=Ja(),{semThreshold:u}=Ja(),p={};for(const e of o){const{itemConfig:n,errorMessages:i}=PS(e,a,t);p[e.itemId]=n,i.length&&(c[e.itemId]=i.join("; "))}if(Object.keys(c).length)throw console.error("The following errors were found"),console.table(c),new Error("Something went wrong. Please look in the console for error details");const d={trialType:"audio",responseAllowed:!0,promptAboveButtons:!0,task:e.task,layoutConfigMap:p},m={timeline:[{...dS,stimulus:""},AS,TS(d),r],conditional_function:()=>Ja().skipCurrentTrial?(Ja("skipCurrentTrial",!1),!1):!(l&&hu._seMeasurement<u)},h={timeline:[OS,...RS],conditional_function:()=>Ja().numIncorrect>=2};if(l){const e=md(o);e.ipLight.forEach(e=>{s.push({...hS,stimulus:""}),s.push(TS(d,e))}),e.ipLight.filter(e=>"practice_response"===e.assessmentStage).length>0&&s.push(AS),e.start.forEach(e=>{s.push({...hS,stimulus:""}),s.push(TS(d,e)),s.push(r)});const t=e.cat.length;Ja("totalTestTrials",t);for(let e=0;e<t;e++)s.push({...dS,stimulus:""}),s.push(TS(d)),s.push(r);const n={timeline:hd(e.unnormed,5).map(e=>TS(d,e))};s.push(n)}else{const e=Ja().totalTrials;Ja("totalTestTrials",Wk(o));for(let t=0;t<e;t+=1)4===t&&s.push(h),s.push(m)}return fu(),s.push(CS()),s.push(cS),{jsPsych:gu,timeline:s}},variants:{}},mentalRotation:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default,{runCat:i}=Ja(),{semThreshold:r}=Ja();let s=!1;Zp(e);const o=oc(e,aS,jS),a={timeline:[vS(t)],conditional_function:()=>{const e=Ja().nextStimulus;return!!i||"practice_response"!==e.assessmentStage}},c=[n,o,zS,FS,DS],l=Ja().corpora.stimulus,u=Ja().translations,p={},d={};for(const e of l){const{itemConfig:n,errorMessages:i}=BS(e,u,t);d[e.itemId]=n,i.length&&(p[e.itemId]=i.join("; "))}if(Object.keys(p).length)throw console.error("The following errors were found"),console.table(p),new Error("Something went wrong. Please look in the console for error details");const m={trialType:"audio",responseAllowed:!0,promptAboveButtons:!0,task:e.task,layoutConfig:{showPrompt:!0},layoutConfigMap:d},h={timeline:[TS(m),a],conditional_function:()=>Ja().skipCurrentTrial?(Ja("skipCurrentTrial",!1),!1):!(i&&hu._seMeasurement<r)},f={timeline:[OS,zS,FS,DS],conditional_function:()=>Ja().numIncorrect>=2},g={timeline:[$S],conditional_function:()=>"3D"===Ja().nextStimulus.trialType&&!s&&(s=!0,!0)};if(i){const e=md(l);e.ipLight.forEach(e=>{c.push({...hS,stimulus:""}),c.push(TS(m,e))}),c.push(AS),e.start.forEach(e=>{c.push({...hS,stimulus:""}),c.push(TS(m,e)),c.push(a)});const t=e.cat.length;Ja("totalTestTrials",t);for(let e=0;e<t;e++)2===e&&c.push(f),c.push({...dS,stimulus:""}),c.push(g),c.push(h);const n={timeline:hd(e.unnormed,5).map(e=>TS(m,e))};c.push(n)}else{const e=Ja().totalTrials;Ja("totalTestTrials",Wk(l));for(let t=0;t<e;t++)4===t&&c.push(f),c.push({...dS,stimulus:""}),c.push(AS),c.push(g),c.push(h)}return fu(),c.push(CS()),c.push(cS),{jsPsych:gu,timeline:c}},variants:{}},heartsAndFlowers:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default;Zp(e);const i=oc(e,aS,jS),r={practiceTrialCount:6,correctPracticeTrial:2,testTrialCount:12,stimulusPresentationTime:1500,interStimulusInterval:500},s={practiceTrialCount:6,correctPracticeTrial:2,testTrialCount:16,stimulusPresentationTime:1500,interStimulusInterval:500},o={practiceTrialCount:6,correctPracticeTrial:3,testTrialCount:16,stimulusPresentationTime:2e3,interStimulusInterval:500},a={testTrialCount:16,stimulusPresentationTime:1500,interStimulusInterval:500},c=r.testTrialCount+s.testTrialCount+o.testTrialCount+a.testTrialCount;Ja("totalTestTrials",c);let l=[n,i];if(r&&l.push(...uT(r,qS.Heart)),s&&l.push(...uT(s,qS.Flower)),o){const e=o;l.push(...pT()),l.push(...function(e){let t=0;const n=e=>{t=e.correct?t+1:0},i=n=>{t>=e.correctPracticeTrial&&gu.endCurrentTimeline()},r=(a="heartPracticeFeedback2",c="feedbackGoodJob",l="flowerPracticeFeedback2",u="feedbackGoodJob",p=i,iT(a,c,l,u,p)),s={timeline:[JS(e.interStimulusInterval),XS(!0,VS.HeartsAndFlowersPractice,KS.HeartsAndFlowersPractice,e.stimulusPresentationTime,n),r],timeline_variables:eT(e.practiceTrialCount),randomize_order:!1},o={timeline:[sT(),oT(),aT()]};var a,c,l,u,p;return[rT(),s,o]}(e)),l.push(...dT(e))}return a&&l.push(...dT(a)),l.push(cT()),l.push(cS),{jsPsych:gu,timeline:l}},variants:{}},memoryGame:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e){Zp(e);const t=td(WC).default,n=oc(e,aS,jS),i={timeline:[...OT(!1,"memoryGameForwardTryAgain",3)]},r={timeline:[...OT(!0,"memoryGameBackwardTryAgain",3)]},s={timeline:[{timeline:[ST({mode:"display"}),ST({mode:"input"})],conditional_function:()=>Ja().numIncorrect<Ja().maxIncorrect}],repetitions:20},o={timeline:[ST({mode:"display"}),ST({mode:"input",resetSeq:!0})],conditional_function:()=>Ja().numIncorrect<Ja().maxIncorrect},a={timeline:[ST({mode:"display",reverse:!0}),ST({mode:"input",reverse:!0})],repetitions:21};Ja("totalTestTrials",s.repetitions+a.repetitions);const c=[t,n,...ET,i,AT(!1,"memoryGameForwardTryAgain"),jT,s,o,IT,CT,r,AT(!0,"memoryGameBackwardTryAgain"),jT,a,CS()];return fu(),c.push(cS),{jsPsych:gu,timeline:c}},variants:{}},sameDifferentSelection:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:(e,t)=>Ja().runCat?oE(e,t):sE(e,t),variants:{}},trog:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default;Zp(e);const i=[n,oc(e,aS,jS)],r=Ja().corpora.stimulus,s=Ja().translations,o={},{runCat:a}=Ja(),{semThreshold:c}=Ja(),l={};for(const e of r){const{itemConfig:n,errorMessages:i}=pE(e,s,t);l[e.itemId]=n,i.length&&(o[e.itemId]=i.join("; "))}if(Object.keys(o).length)throw console.error("The following errors were found"),console.table(o),new Error("Something went wrong. Please look in the console for error details");const u={trialType:"audio",responseAllowed:!0,promptAboveButtons:!0,task:e.task,layoutConfig:{showPrompt:!1},layoutConfigMap:l},p={timeline:[TS(u)],conditional_function:()=>Ja().skipCurrentTrial?(Ja("skipCurrentTrial",!1),!1):!(a&&hu._seMeasurement<c)};if(a){const e=md(r);e.ipLight.forEach(e=>{i.push({...hS,stimulus:""}),i.push(TS(u,e))}),e.ipLight.filter(e=>"practice_response"===e.assessmentStage).length>0&&i.push(AS),e.start.forEach(e=>{i.push({...hS,stimulus:""}),i.push(TS(u,e))});const t=e.cat.length;Ja("totalTestTrials",t);for(let e=0;e<t;e++)i.push({...dS,stimulus:""}),i.push(p);const n={timeline:hd(e.unnormed,5).map(e=>TS(u,e))};i.push(n)}else{const e=Ja().totalTrials;Ja("totalTestTrials",Wk(r));for(let t=0;t<e;t++)i.push({...dS,stimulus:""}),i.push(AS),i.push(p)}return fu(),i.push(CS()),i.push(cS),{jsPsych:gu,timeline:i}},variants:{}},vocab:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default;Zp(e);const i=oc(e,aS,jS),r=Ja().corpora.stimulus,s=Ja().translations,o={},{runCat:a}=Ja(),{semThreshold:c}=Ja(),l={};for(const e of r){const{itemConfig:n,errorMessages:i}=aE(e,s,t);l[e.itemId]=n,i.length&&(o[e.itemId]=i.join("; "))}if(Object.keys(o).length)throw console.error("The following errors were found"),console.table(o),new Error("Something went wrong. Please look in the console for error details");const u={trialType:"audio",responseAllowed:!0,promptAboveButtons:!0,task:e.task,layoutConfig:{showPrompt:!1},layoutConfigMap:l},p={timeline:[{...dS,stimulus:""},TS(u)],conditional_function:()=>Ja().skipCurrentTrial?(Ja("skipCurrentTrial",!1),!1):!(a&&hu._seMeasurement<c)},d=[n,i];if(a){const e=md(r);e.ipLight.forEach(e=>{d.push({...hS,stimulus:""}),d.push(TS(u,e))}),e.start.forEach(e=>{d.push({...hS,stimulus:""}),d.push(TS(u,e))});const t=e.cat.length;Ja("totalTestTrials",t);for(let e=0;e<t;e++)d.push(p);const n={timeline:hd(e.unnormed,5).map(e=>TS(u,e))};d.push(n)}else{const e=Ja().totalTrials;Ja("totalTestTrials",Wk(r));for(let t=0;t<e;t++)d.push(p)}return fu(),d.push(CS()),d.push(cS),{jsPsych:gu,timeline:d}}},theoryOfMind:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default;Zp(e);const i=[n,oc(e,aS,jS)],r=Ja().corpora.stimulus,s=Ja().translations,o={},a={};for(const e of r){const{itemConfig:n,errorMessages:i}=cE(e,s,t);a[e.itemId]=n,i.length&&(o[e.itemId]=i.join("; "))}if(Object.keys(o).length)throw console.error("The following errors were found"),console.table(o),new Error("Something went wrong. Please look in the console for error details");const c={trialType:"audio",responseAllowed:!0,promptAboveButtons:!0,task:e.task,layoutConfigMap:a},l={timeline:[TS(c)],conditional_function:()=>!Ja().skipCurrentTrial||(Ja("skipCurrentTrial",!1),!1)},u=Ja().totalTrials;Ja("totalTestTrials",Wk(r));for(let e=0;e<u;e++)i.push({...dS,stimulus:""}),i.push(l);return fu(),i.push(CS()),i.push(cS),{jsPsych:gu,timeline:i}},variants:{}},intro:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default;Zp(e);const i=[n,oc(e,aS,jS),...uE];return i.push(CS("introFinished")),i.push(cS),{jsPsych:gu,timeline:i}},variants:{}},roarInference:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default;Zp(e);const i=[n,oc(e,aS,jS),...dE],r=Ja().corpora.stimulus,s=Ja().translations,o={},a={};for(const e of r){const{itemConfig:n,errorMessages:i}=xE(e,s,t);a[e.itemId]=n,a[e.itemId].story=vd(e.item),a[e.itemId].storyId=e.itemId,i.length&&(o[e.itemId]=i.join("; "))}const c={responseAllowed:!0,promptAboveButtons:!0,task:e.task,layoutConfigMap:a},l=e=>({timeline:[bE(e)]}),u={timeline:[OS],conditional_function:()=>Ja().numIncorrect>=2},p={timeline:dE,conditional_function:()=>Ja().numIncorrect>=2},d=Ja().inferenceNumStories,m=Ja().stimulusBlocks,h=null==d||null==m?Ja().totalTrials:d*m;for(let e=0;e<h;e+=1)4===e&&(i.push(u),i.push(p)),i.push({...dS,stimulus:""}),i.push(l(c));return fu(),i.push(CS()),i.push(cS),{jsPsych:gu,timeline:i}},variants:{inferenceKids:{}}},adultReasoning:{setConfig:Yo,getCorpus:tc,getTranslations:rc,buildTaskTimeline:function(e,t){const n=td(t).default;Zp(e);const i=[n,oc(e,aS,jS)],r=Ja().corpora.stimulus,s=Ja().translations,o={};Ja("totalTestTrials",Wk(r));const a={};for(const e of r){const{itemConfig:n,errorMessages:i}=_E(e,s,t);a[e.itemId]=n,i.length&&(o[e.itemId]=i.join("; "))}if(Object.keys(o).length)throw console.error("The following errors were found"),console.table(o),new Error("Something went wrong. Please look in the console for error details");const c={trialType:"audio",responseAllowed:!0,promptAboveButtons:!0,task:e.task,layoutConfigMap:a},l={timeline:[TS(c)]},u=Ja().totalTrials;for(let e=0;e<u;e++)i.push({...dS,stimulus:""}),i.push(l);return fu(),i.push(CS()),i.push(cS),{jsPsych:gu,timeline:i}},variants:{}}};const kE=Object.prototype.toString;function SE(e){switch(kE.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return IE(e,Error)}}function TE(e,t){return kE.call(e)===`[object ${t}]`}function EE(e){return TE(e,"Object")}function CE(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function IE(e,t){try{return e instanceof t}catch(e){return!1}}function jE(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function OE(e,t){let n=e;const i=n.length;if(i<=150)return n;t>i&&(t=i);let r=Math.max(t-60,0);r<5&&(r=0);let s=Math.min(r+140,i);return s>i-5&&(s=i),s===i&&(r=Math.max(s-140,0)),n=n.slice(r,s),r>0&&(n=`'{snip} ${n}`),s<i&&(n+=" {snip}"),n}function AE(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{jE(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function LE(e){return e&&e.Math==Math?e:void 0}const RE="object"==typeof globalThis&&LE(globalThis)||"object"==typeof window&&LE(window)||"object"==typeof self&&LE(self)||"object"==typeof global&&LE(global)||function(){return this}()||{};function PE(e,t,n){const i=n||RE,r=i.__SENTRY__=i.__SENTRY__||{};return r[e]||(r[e]=t())}const ME=RE;function NE(e,t){const n=e,i=[];let r,s,o,a,c;if(!n||!n.tagName)return"";if(ME.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(l&&l.length)l.forEach(e=>{i.push(`[${e[0]}="${e[1]}"]`)});else if(n.id&&i.push(`#${n.id}`),r=n.className,r&&TE(r,"String"))for(s=r.split(/\s+/),c=0;c<s.length;c++)i.push(`.${s[c]}`);const u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)o=u[c],a=n.getAttribute(o),a&&i.push(`[${o}="${a}"]`);return i.join("")}const DE="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,FE=["debug","info","warn","error","log","assert","trace"],zE={};function $E(e){if(!("console"in RE))return e();const t=RE.console,n={},i=Object.keys(zE);i.forEach(e=>{const i=zE[e];n[e]=t[e],t[e]=i});try{return e()}finally{i.forEach(e=>{t[e]=n[e]})}}const BE=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return DE?FE.forEach(n=>{t[n]=(...t)=>{e&&$E(()=>{RE.console[n](`Sentry Logger [${n}]:`,...t)})}}):FE.forEach(e=>{t[e]=()=>{}}),t}();function qE(e,t,n){if(!(t in e))return;const i=e[t],r=n(i);"function"==typeof r&&function(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,UE(e,"__sentry_original__",t)}catch(e){}}(r,i),e[t]=r}function UE(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){DE&&BE.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function HE(e){if(SE(e))return{message:e.message,name:e.name,stack:e.stack,...VE(e)};if(t=e,"undefined"!=typeof Event&&IE(t,Event)){const t={type:e.type,target:WE(e.target),currentTarget:WE(e.currentTarget),...VE(e)};return"undefined"!=typeof CustomEvent&&IE(e,CustomEvent)&&(t.detail=e.detail),t}return e;var t}function WE(e){try{return t=e,"undefined"!=typeof Element&&IE(t,Element)?function(e,t={}){if(!e)return"<unknown>";try{let n=e;const i=5,r=[];let s=0,o=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<i&&(l=NE(n,u),!("html"===l||s>1&&o+r.length*c+l.length>=p));)r.push(l),o+=l.length,n=n.parentNode;return r.reverse().join(a)}catch(e){return"<unknown>"}}(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function VE(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function KE(e){return YE(e,new Map)}function YE(e,t){if(function(e){if(!EE(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const i={};t.set(e,i);for(const n of Object.keys(e))void 0!==e[n]&&(i[n]=YE(e[n],t));return i}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const i=[];return t.set(e,i),e.forEach(e=>{i.push(YE(e,t))}),i}return e}const GE="<anonymous>";function JE(e){try{return e&&"function"==typeof e&&e.name||GE}catch(e){return GE}}const XE={},ZE={};function QE(e){const t="console";!function(e,t){XE[e]=XE[e]||[],XE[e].push(t)}(t,e),function(e,t){ZE[e]||(t(),ZE[e]=!0)}(t,eC)}function eC(){"console"in RE&&FE.forEach(function(e){e in RE.console&&qE(RE.console,e,function(t){return zE[e]=t,function(...t){!function(e,t){const n=e&&XE[e];if(n)for(const i of n)try{i(t)}catch(t){DE&&BE.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${JE(i)}\nError:`,t)}}("console",{args:t,level:e});const n=zE[e];n&&n.apply(RE.console,t)}})})}function tC(){const e=RE,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function nC(e,t=100,n=1/0){try{return iC("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function iC(e,t,n=1/0,i=1/0,r=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[s,o]=r;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(a=t)||a==a))return t;var a;const c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(jE(t))return"[VueViewModel]";if(function(e){return EE(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${JE(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;const l="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===l)return c.replace("object ","");if(s(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return iC("",u.toJSON(),l-1,i,r)}catch(e){}const p=Array.isArray(t)?[]:{};let d=0;const m=HE(t);for(const e in m){if(!Object.prototype.hasOwnProperty.call(m,e))continue;if(d>=i){p[e]="[MaxProperties ~]";break}const t=m[e];p[e]=iC(e,t,l-1,i,r),d++}return o(t),p}var rC;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(rC||(rC={}));class sC{constructor(e){sC.prototype.__init.call(this),sC.prototype.__init2.call(this),sC.prototype.__init3.call(this),sC.prototype.__init4.call(this),this._state=rC.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new sC((n,i)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){i(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){i(e)}else i(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new sC((t,n)=>{let i,r;return this.then(t=>{r=!1,i=t,e&&e()},t=>{r=!0,i=t,e&&e()}).then(()=>{r?n(i):t(i)})})}__init(){this._resolve=e=>{this._setResult(rC.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(rC.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===rC.PENDING&&(CE(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===rC.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===rC.RESOLVED&&e[1](this._value),this._state===rC.REJECTED&&e[2](this._value),e[0]=!0)})}}}const oC=["fatal","error","warning","log","info","debug"];function aC(e){return"warn"===e?"warning":oC.includes(e)?e:"log"}function cC(){return Date.now()/1e3}const lC=function(){const{performance:e}=RE;if(!e||!e.now)return cC;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();(()=>{const{performance:e}=RE;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,s=r<t,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+n-i):t;(s||a<t)&&(r<=a&&e.timeOrigin)})();const uC="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,pC="production";function dC(e,t,n,i=0){return new sC((r,s)=>{const o=e[i];if(null===t||"function"!=typeof o)r(t);else{const a=o({...t},n);uC&&o.id&&null===a&&BE.log(`Event processor "${o.id}" dropped event`),CE(a)?a.then(t=>dC(e,t,n,i+1).then(r)).then(null,s):dC(e,a,n,i+1).then(r).then(null,s)}})}function mC(e){const t=lC(),n={sid:tC(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return KE({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&hC(n,e),n}function hC(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||lC(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:tC()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function fC(e){const{spanId:t,traceId:n}=e.spanContext(),{data:i,op:r,parent_span_id:s,status:o,tags:a,origin:c}=gC(e);return KE({data:i,op:r,parent_span_id:s,span_id:t,status:o,tags:a,trace_id:n,origin:c})}function gC(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function vC(e){if(e)return function(e){return e instanceof SC||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>yC.includes(e))}(e)?{captureContext:e}:e}const yC=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function bC(e,t){const n="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return AC().captureMessage(e,n,i)}function xC(){return AC().getClient()}function _C(e){return e.transaction}function wC(e){const t=xC();if(!t)return{};const n=function(e,t,n){const i=t.getOptions(),{publicKey:r}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},o=KE({environment:i.environment||pC,release:i.release,user_segment:s,public_key:r,trace_id:e});return t.emit&&t.emit("createDsc",o),o}(gC(e).trace_id||"",t,AC().getScope()),i=_C(e);if(!i)return n;const r=i&&i._frozenDynamicSamplingContext;if(r)return r;const{sampleRate:s,source:o}=i.metadata;null!=s&&(n.sample_rate=`${s}`);const a=gC(i);return o&&"url"!==o&&(n.transaction=a.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(1&t)}(i)),t.emit&&t.emit("createDsc",n),n}function kC(e,t){const{fingerprint:n,span:i,breadcrumbs:r,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:i,user:r,contexts:s,level:o,transactionName:a}=t,c=KE(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=KE(i);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=KE(r);u&&Object.keys(u).length&&(e.user={...u,...e.user});const p=KE(s);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts});o&&(e.level=o);a&&(e.transaction=a)}(e,t),i&&function(e,t){e.contexts={trace:fC(t),...e.contexts};const n=_C(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:wC(t),...e.sdkProcessingMetadata};const i=gC(n).description;i&&(e.tags={transaction:i,...e.tags})}}(e,i),function(e,t){e.fingerprint=e.fingerprint?function(e){return Array.isArray(e)?e:[e]}(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,r),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,s)}class SC{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=TC()}static clone(e){return e?e.clone():new SC}clone(){const e=new SC;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&hC(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof SC){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(EE(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=TC(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:cC(),...e},r=this._breadcrumbs;return r.push(i),this._breadcrumbs=r.length>n?r.slice(-n):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:i,_extra:r,_user:s,_level:o,_fingerprint:a,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:u,_transactionName:p,_span:d}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:i,extra:r,user:s,level:o,fingerprint:a||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:u,transactionName:p,span:d}}applyToEvent(e,t={},n=[]){kC(e,this.getScopeData());return dC([...n,...PE("globalEventProcessors",()=>[]),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:tC();if(!this._client)return BE.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n&&n.event_id?n.event_id:tC();if(!this._client)return BE.warn("No client configured on scope - will not capture message!"),i;const r=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:r,...n,event_id:i},this),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:tC();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(BE.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function TC(){return{traceId:tC(),spanId:tC().substring(16)}}const EC=parseFloat("7.114.0"),CC=100;class IC{constructor(e,t,n,i=EC){let r,s;this._version=i,t?r=t:(r=new SC,r.setClient(e)),n?s=n:(s=new SC,s.setClient(e)),this._stack=[{scope:r}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return CE(n)?n.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:tC(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...t,event_id:n}),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:tC(),r=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:r,...n,event_id:i}),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:tC();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:s=CC}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const o={timestamp:cC(),...e},a=r?$E(()=>r(o,t)):o;null!==a&&(i.emit&&i.emit("beforeAddBreadcrumb",a,t),n.addBreadcrumb(a,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=OC(this);try{e(this)}finally{OC(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return uC&&BE.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(uC&&!n){this.getClient()?BE.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):BE.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),hC(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:r=pC}=n&&n.getOptions()||{},{userAgent:s}=RE.navigator||{},o=mC({release:i,environment:r,user:t.getUser(),...s&&{userAgent:s},...e}),a=t.getSession&&t.getSession();return a&&"ok"===a.status&&hC(a,{status:"exited"}),this.endSession(),t.setSession(o),o}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=jC().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);uC&&BE.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function jC(){return RE.__SENTRY__=RE.__SENTRY__||{extensions:{},hub:void 0},RE}function OC(e){const t=jC(),n=LC(t);return RC(t,e),n}function AC(){const e=jC();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=jC()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!LC(e).isOlderThan(EC)||RC(e,new IC);var t;return LC(e)}(e)}function LC(e){return PE("hub",()=>new IC,e)}function RC(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function PC(e,t){return Object.assign(function(...e){return t(...e)},{id:e})}const MC="CaptureConsole",NC=(e={})=>{const t=e.levels||FE;return{name:MC,setupOnce(){},setup(e){"console"in RE&&QE(({args:n,level:i})=>{xC()===e&&t.includes(i)&&function(e,t){const n={level:aC(t),extra:{arguments:e}};!function(...e){const t=AC();if(2===e.length){const[n,i]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,i(n))):t.withScope(i)}t.withScope(e[0])}(i=>{if(i.addEventProcessor(e=>(e.logger="console",function(e,t){const n=function(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}(e);if(!n)return;const i=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...i,...t},t&&"data"in t){const e={...i&&i.data,...t.data};n.mechanism.data=e}}(e,{handled:!1,type:"console"}),e)),"assert"===t&&!1===e[0]){const t=`Assertion failed: ${AE(e.slice(1)," ")||"console.assert"}`;return i.setExtra("arguments",e.slice(1)),void bC(t,n)}const r=e.find(e=>e instanceof Error);if("error"===t&&r)return s=r,o=n,void AC().captureException(s,vC(o));var s,o;bC(AE(e," "),n)})}(n,i)})}}};PC(MC,NC);const DC="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,FC="ExtraErrorData",zC=(e={})=>{const t=e.depth||3,n=e.captureErrorCause||!1;return{name:FC,setupOnce(){},processEvent:(e,i)=>function(e,t={},n,i){if(!t.originalException||!SE(t.originalException))return e;const r=t.originalException.name||t.originalException.constructor.name,s=function(e,t){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const t of Object.keys(e)){if(-1!==n.indexOf(t))continue;const r=e[t];i[t]=SE(r)?r.toString():r}if(t&&void 0!==e.cause&&(i.cause=SE(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];i[e]=SE(n)?n.toString():n}}return i}catch(e){DC&&BE.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,i);if(s){const t={...e.contexts},i=nC(s,n);return EE(i)&&(UE(i,"__sentry_skip_normalization__",!0),t[r]=i),{...e,contexts:t}}return e}(e,i,t,n)}};PC(FC,zC);const $C=RE,BC="ContextLines",qC=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:BC,setupOnce(){},processEvent:e=>function(e,t){const n=$C.document,i=$C.location&&(r=$C.location.href,r.split(/[\?#]/,1)[0]);var r;if(!n||!i)return e;const s=e.exception&&e.exception.values;if(!s||!s.length)return e;const o=n.documentElement.innerHTML;if(!o)return e;const a=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];return s.forEach(e=>{const n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map(e=>function(e,t,n,i){if(e.filename!==n||!e.lineno||!t.length)return e;return function(e,t,n=5){if(void 0===t.lineno)return;const i=e.length,r=Math.max(Math.min(i-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,r-n),r).map(e=>OE(e,0)),t.context_line=OE(e[Math.min(i-1,r)],t.colno||0),t.post_context=e.slice(Math.min(r+1,i),r+1+n).map(e=>OE(e,0))}(t,e,i),e}(e,a,i,t)))}),e}(e,t)}};PC(BC,qC);const UC=new RegExp("^https:\\/\\/roar-levante-tasks--pr\\d+-\\w+\\.web\\.app\\/"),HC=new RegExp("^https:\\/\\/gse-roar-admin-staging\\.web\\.app\\/game\\/core-tasks|https:\\/\\/roar-staging--pr\\d+-\\w+\\.web\\.app\\/");let WC;class VC{constructor(e,t,n,i){this.gameParams=t,this.userParams=n,this.firekit=e,du.setInstance(i,t,n)}async init(){vb({dsn:"https://80b25aba46b9210279fa831982692c41@o4505913837420544.ingest.us.sentry.io/4509570973171713",integrations:[Ek({maskAllText:!0,maskAllInputs:!0}),Dk(),NC({levels:["error"]}),qC(),zC()],attachStacktrace:!0,tracesSampleRate:.2,tracePropagationTargets:[UC,HC,"https://roar.education/game/core-tasks","localhost"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,beforeSend:e=>e}),await this.firekit.startRun();const{taskName:e,language:t}=this.gameParams,{setConfig:n,getCorpus:i,buildTaskTimeline:r,getTranslations:s}=wE[ja(e)];try{WC="intro"===e?await Qp("intro-levante",{},t):"vocab"===e?await Qp("vocab-test",{},t):"memory-game"===e?await Qp("memory-game-levante",{},t):e.includes("roar-inference")?await Qp("roar-inference",{},t):"adult-reasoning"===e?await Qp("egma-math",{},t):"trog"===e?await Qp("roar-syntax",{},t):await Qp(e,{},t)}catch(e){throw new Error("Error fetching media assets: "+e)}const o=await n(this.firekit,this.gameParams,this.userParams);return(e=>{Ja({itemSelect:"mfi",trialNumSubtask:0,testTrialCount:0,numIncorrect:0,totalCorrect:0,correctItems:[],audioFeedback:e.audioFeedback,skipInstructions:e.skipInstructions,corpusId:e.corpusId,corpus:e.corpus,buttonLayout:e.buttonLayout,task:e.task,maxIncorrect:e.maxIncorrect,keyHelpers:e.keyHelpers,runCat:e.cat,heavyInstructions:e.heavyInstructions||e.userMetadata.age<6,semThreshold:e.semThreshold,startingTheta:e.startingTheta,storeItemId:e.storeItemId,isRoarApp:e.isRoarApp,numOfBlocks:e.userMetadata.age>4?9:4,blockSize:e.userMetadata.age>4?30:50,stimulusBlocks:e.stimulusBlocks,gridSize:e.userMetadata.age>4?3:2,maxTimeReached:!1,taskComplete:!1,stimulus:"heart",stimulusSide:"left",stimulusPosition:0,isCorrect:!1,inferenceNumStories:e.inferenceNumStories,testPhase:!1})})(o),"hearts-and-flowers"!==e&&"memory-game"!==e&&"intro"!==e&&await i(o),await s(o.language),r(o,WC)}async run(){(()=>{const e=document.createElement("div");e.style.height="100vh",e.style.width="100%",e.style.display="flex",e.style.justifyContent="center",e.style.alignItems="center";const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("id",ld),t.setAttribute("viewBox","0 0 620 620"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),t.innerHTML='\n<path d="M0 0 C24.09 0 48.18 0 73 0 C73.02578125 9.21035156 73.0515625 18.42070312 73.078125 27.91015625 C73.10330942 33.76629693 73.12949358 39.6224053 73.16015625 45.47851562 C73.20857611 54.76114635 73.25306661 64.0436696 73.27099609 73.32641602 C73.28407714 80.08918842 73.31120425 86.85174028 73.35461307 93.61438841 C73.37708434 97.18918321 73.39291942 100.76370749 73.39188385 104.33857918 C73.39256883 127.11586982 74.23570821 146.37753421 90.7109375 163.90234375 C107.7336873 179.50168956 126.19678116 180.0085557 149 181 C149 201.46 149 221.92 149 243 C137.3984375 243.0928125 137.3984375 243.0928125 125.5625 243.1875 C121.9574353 243.22846802 121.9574353 243.22846802 118.27954102 243.27026367 C89.84890928 243.45838537 62.7303181 237.3912908 41 218 C40.195625 217.33742187 39.39125 216.67484375 38.5625 215.9921875 C15.62349402 196.56571681 3.1542582 167.45107438 0 138 C-0.60820541 127.98024643 -0.48418408 117.93638697 -0.40557575 107.90311861 C-0.38014294 104.09424643 -0.37818782 100.28535391 -0.37347412 96.47640991 C-0.36116486 89.30174746 -0.32851125 82.1273361 -0.28807616 74.95278299 C-0.23450338 65.23091629 -0.21331532 55.50897828 -0.19006729 45.78700066 C-0.15273718 30.52447994 -0.07296807 15.26248845 0 0 Z "\nfill="#DB6D4D"\ntransform="translate(196,0)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="0s"\n/>\n</path>\n<path\nd="M0 0 C11.37841346 8.89805809 18.73092589 19.52930095 21 34 C22.1080213 50.42051238 18.52116018 63.60192587 8.25 76.6875 C-1.02678931 86.93062153 -13.86891708 91.96497271 -27.39453125 93.22265625 C-40.74614178 93.7187581 -53.20738631 89.38311632 -63.25 80.6875 C-74.02276382 70.48883331 -79.85558558 59.20121837 -81.25390625 44.29296875 C-81.58878931 30.11625272 -76.74215899 17.13488118 -67.4453125 6.47265625 C-49.54816026 -11.62462389 -20.98880433 -14.72964304 0 0 Z "\nfill="#DB6D4D"\ntransform="translate(366,74)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="0s"\n/>\n</path>\n<path d="M0 0 C12.51011518 36.24822591 12.51011518 36.24822591 18.3125 54.125 C18.69075928 55.27774414 19.06901855 56.43048828 19.45874023 57.61816406 C19.96836304 59.20322754 19.96836304 59.20322754 20.48828125 60.8203125 C20.92974487 62.18567139 20.92974487 62.18567139 21.38012695 63.57861328 C22 66 22 66 22 70 C12.96644407 72.96724191 3.93255713 75.93347463 -5.10151291 78.89915085 C-7.30484958 79.62248843 -9.5081552 80.34592052 -11.7114563 81.06936646 C-26.21102811 85.82998317 -40.71066204 90.59012886 -55.2265625 95.30078125 C-56.20511703 95.61847473 -57.18367157 95.93616821 -58.19187927 96.26348877 C-62.61363753 97.69852205 -67.03621701 99.13093815 -71.46020508 100.55908203 C-79.09042671 103.02746897 -86.70343688 105.54264752 -94.28125 108.16796875 C-94.97008774 108.40257309 -95.65892548 108.63717743 -96.36863708 108.87889099 C-110.54784019 113.85273609 -121.18811853 123.69114156 -128 137 C-136.99975018 158.53898413 -133.07868152 176.70799748 -126 198 C-132.88225468 200.84509207 -139.81998016 203.3616014 -146.8984375 205.671875 C-148.39451035 206.16279633 -148.39451035 206.16279633 -149.92080688 206.66363525 C-152.00930547 207.34762463 -154.09837388 208.02987634 -156.18798828 208.71044922 C-159.38929256 209.754662 -162.58724517 210.80872909 -165.78515625 211.86328125 C-167.82272058 212.52924609 -169.8604744 213.19463149 -171.8984375 213.859375 C-172.85261566 214.17493347 -173.80679382 214.49049194 -174.78988647 214.81561279 C-176.1224498 215.24671356 -176.1224498 215.24671356 -177.48193359 215.68652344 C-178.64914444 216.06813629 -178.64914444 216.06813629 -179.8399353 216.4574585 C-182 217 -182 217 -186 217 C-187.80586082 211.56279281 -189.60185987 206.12245568 -191.3894043 200.67919922 C-191.99683258 198.83394101 -192.60679082 196.98951338 -193.21948242 195.14599609 C-203.87785511 163.05758381 -207.6994984 131.07930289 -192.25 99.75 C-173.86339677 64.08112015 -142.60268168 45.20781506 -105.5 33.3125 C-103.67842985 32.71806925 -101.85723081 32.12250022 -100.03637695 31.52587891 C-96.25652937 30.28983576 -92.47437187 29.06129422 -88.68994141 27.83935547 C-83.12619954 26.04280109 -77.56841759 24.22835842 -72.01171875 22.41015625 C-63.98212309 19.78464066 -55.94801637 17.17331753 -47.91146851 14.56916809 C-42.55631958 12.83276545 -37.2044956 11.08653766 -31.8553009 9.33187866 C-28.39236749 8.19620294 -24.92837755 7.06377153 -21.46426392 5.93170166 C-19.83451375 5.3981865 -18.20525212 4.86317644 -16.57650757 4.32659912 C-14.34395845 3.59133454 -12.10971646 2.86145827 -9.875 2.1328125 C-9.21780472 1.91481995 -8.56060944 1.69682739 -7.88349915 1.472229 C-5.11661779 0.57530632 -2.93271586 0 0 0 Z "\nfill="#E2A1C1"\ntransform="translate(564,83)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="1s"\n/>\n</path>\n<path\nd="M0 0 C10.26936887 9.37737469 15.16600426 22.67108026 16.00390625 36.26953125 C16.00390625 51.32581634 11.0212786 63.27511318 1.00390625 74.4140625 C-11.45158925 85.69486306 -25.45429345 89.3003282 -41.83642578 88.59326172 C-54.48816802 87.5434789 -65.41276982 80.86599259 -73.9609375 71.8203125 C-84.21738579 59.6936865 -87.14147747 45.90900195 -86.17626953 30.39648438 C-85.11900523 18.76371184 -78.43860464 7.30488456 -69.99609375 -0.5859375 C-48.66002535 -18.14411857 -21.34509255 -16.95911463 0 0 Z "\nfill="#E2A1C1"\ntransform="translate(531.99609375,214.5859375)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="1s"\n/>\n</path>\n\n<path\nd="M0 0 C10.61057853 9.04046744 19.67440674 18.97280644 27.83154297 30.26245117 C28.31558594 30.92873535 28.79962891 31.59501953 29.29833984 32.28149414 C32.01271735 36.0201812 34.71451386 39.76770134 37.40966797 43.52026367 C40.84583511 48.29578643 44.33391073 53.03184415 47.83154297 57.76245117 C55.11141789 67.61619203 62.27985122 77.54820147 69.43603516 87.49194336 C71.04619787 89.72855236 72.65747913 91.96435157 74.26904297 94.19995117 C74.79481934 94.93052734 75.3205957 95.66110352 75.86230469 96.41381836 C78.77279119 100.44806868 81.7135334 104.45695544 84.69091797 108.44213867 C85.329729 109.2994458 85.96854004 110.15675293 86.62670898 111.04003906 C87.85936429 112.69126601 89.09661202 114.33907774 90.33911133 115.98291016 C93.04740313 119.61363934 95.47469374 122.87676431 96.83154297 127.26245117 C90.03551221 133.07503903 83.00099885 138.34687314 75.67138672 143.45556641 C70.01170659 147.40700461 64.43976784 151.4653244 58.89404297 155.57495117 C52.60349114 160.23412663 46.29414934 164.84329103 39.83154297 169.26245117 C36.55752085 167.87611776 34.90341049 166.41738405 32.83544922 163.54370117 C32.28373047 162.78573242 31.73201172 162.02776367 31.16357422 161.24682617 C30.28765625 160.01706055 30.28765625 160.01706055 29.39404297 158.76245117 C28.77787109 157.91166992 28.16169922 157.06088867 27.52685547 156.18432617 C25.62066917 153.54918929 23.7256113 150.90630657 21.83154297 148.26245117 C20.72688087 146.73061914 19.62145049 145.19934077 18.51513672 143.66870117 C16.91801219 141.45883719 15.32152834 139.24854324 13.72827148 137.03588867 C9.79993936 131.58359878 5.82537165 126.16690367 1.83154297 120.76245117 C-2.70596936 114.62228548 -7.20790785 108.45875203 -11.66845703 102.26245117 C-17.94196118 93.55581489 -24.25522548 84.87968255 -30.66894531 76.27563477 C-31.94427699 74.5634262 -33.21153392 72.84520796 -34.47705078 71.12573242 C-44.22747925 58.31480729 -57.65258442 50.1113869 -73.60595703 47.75463867 C-92.77426409 45.87774194 -108.70355195 52.03913547 -123.54345703 63.76245117 C-124.59360497 64.62622207 -125.64314324 65.49073505 -126.69189453 66.35620117 C-129.16845703 68.26245117 -129.16845703 68.26245117 -131.16845703 68.26245117 C-132.38256836 66.89575195 -132.38256836 66.89575195 -133.75048828 64.95776367 C-134.52042114 63.87833496 -134.52042114 63.87833496 -135.3059082 62.77709961 C-135.85867432 61.98851562 -136.41144043 61.19993164 -136.98095703 60.38745117 C-138.16045251 58.72846047 -139.34014555 57.06961021 -140.52001953 55.41088867 C-141.12491211 54.55591797 -141.72980469 53.70094727 -142.35302734 52.82006836 C-145.16054744 48.86477243 -148.00958788 44.93982775 -150.85595703 41.01245117 C-156.32248065 33.44976662 -161.75504638 25.86322189 -167.16845703 18.26245117 C-164.08975342 14.98296254 -160.72033888 12.38392245 -157.04345703 9.82495117 C-152.91785218 6.92926854 -148.81467865 4.01422035 -144.77392578 1.00073242 C-101.02996257 -31.5115448 -44.00783623 -35.93908897 0 0 Z "\nfill="#E79E42"\ntransform="translate(501.16845703125,331.737548828125)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="2s"\n/>\n</path>\n<path \nd="M0 0 C10.30912429 9.80184992 15.69012279 21.70190093 16.22045898 35.89086914 C16.39947804 50.94474432 11.95795025 63.51433034 1.5 74.5625 C-9.9061953 85.39455795 -22.9256596 89.28762376 -38.39453125 89.02734375 C-53.46712434 88.18743228 -65.01653075 80.74860667 -75.03515625 69.875 C-85.11075314 57.5059808 -86.35380342 43.08383611 -85.25 27.8125 C-82.99631187 15.30860383 -75.31234412 3.53773236 -64.97265625 -3.8046875 C-43.84512009 -17.22217492 -19.31081268 -16.28166559 0 0 Z "\nfill="#E79E42"\ntransform="translate(451.25,409.1875)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="2s"\n/>\n</path>\n<path\nd="M0 0 C4.88157637 1.57409756 8.44018064 4.40154619 12.4375 7.5 C17.0707642 11.04518137 21.7162226 14.53703151 26.51342773 17.85766602 C52.51478097 35.89740709 69.59229597 60.60519879 75.53051758 91.78564453 C77.99571018 108.6638171 77.15662352 127.75822746 72 144 C71.79632813 144.69125977 71.59265625 145.38251953 71.3828125 146.09472656 C65.96412958 164.34933275 55.98444025 179.62037717 44.67333984 194.75 C41.90695744 198.46972282 39.20681466 202.23683755 36.5 206 C35.41698764 207.50023176 34.33365416 209.00023176 33.25 210.5 C32.71375 211.2425 32.1775 211.985 31.625 212.75 C30 215 28.375 217.25 26.75 219.5 C26.21383057 220.24241943 25.67766113 220.98483887 25.12524414 221.74975586 C24.04121584 223.2506555 22.95706858 224.75146922 21.87280273 226.25219727 C19.17412345 229.98773967 16.47748688 233.72472254 13.78515625 237.46484375 C7.59265435 246.06204578 1.35700505 254.62457933 -4.95605469 263.13378906 C-7.68875219 266.82516555 -10.38855985 270.53020992 -13 274.30859375 C-13.45737549 274.96698242 -13.91475098 275.62537109 -14.38598633 276.30371094 C-15.23058877 277.52617434 -16.06690593 278.75441958 -16.89331055 279.98925781 C-18.01171875 281.60546875 -18.01171875 281.60546875 -20 284 C-23.38420514 284 -23.97116449 283.55796384 -26.59765625 281.61328125 C-27.30728516 281.09378906 -28.01691406 280.57429688 -28.74804688 280.0390625 C-29.89370117 279.18441406 -29.89370117 279.18441406 -31.0625 278.3125 C-32.69908188 277.11049071 -34.33580449 275.90867301 -35.97265625 274.70703125 C-36.80941895 274.08908691 -37.64618164 273.47114258 -38.50830078 272.83447266 C-42.31909972 270.02883448 -46.15978521 267.26515797 -50 264.5 C-51.48064993 263.43124055 -52.96111749 262.36222839 -54.44140625 261.29296875 C-55.18148926 260.75849121 -55.92157227 260.22401367 -56.68408203 259.67333984 C-59.13251265 257.90425451 -61.58000038 256.13387032 -64.02734375 254.36328125 C-64.84912109 253.76902344 -65.67089844 253.17476562 -66.51757812 252.5625 C-68.09602805 251.42102209 -69.67416785 250.27911518 -71.25195312 249.13671875 C-71.96158203 248.62367188 -72.67121094 248.110625 -73.40234375 247.58203125 C-74.33808228 246.90491089 -74.33808228 246.90491089 -75.29272461 246.21411133 C-76.84109387 245.11300446 -78.41912991 244.05391339 -80 243 C-79.39295849 239.90071349 -78.41654477 237.87660113 -76.55078125 235.33984375 C-76.03942627 234.63827148 -75.52807129 233.93669922 -75.0012207 233.21386719 C-74.44394287 232.46266602 -73.88666504 231.71146484 -73.3125 230.9375 C-72.7352417 230.14891602 -72.1579834 229.36033203 -71.56323242 228.54785156 C-69.71538603 226.02699796 -67.85853419 223.51298165 -66 221 C-64.7914256 219.3608548 -63.5830892 217.72153409 -62.375 216.08203125 C-60.59263206 213.66397319 -58.80976401 211.24629621 -57.02490234 208.83007812 C-52.80867222 203.11753884 -48.66011649 197.36112402 -44.546875 191.57421875 C-41.61457164 187.45110281 -38.65135832 183.35046443 -35.6875 179.25 C-34.8677771 178.11510132 -34.8677771 178.11510132 -34.03149414 176.95727539 C-31.24870703 173.1058459 -28.4615849 169.25764487 -25.66796875 165.4140625 C-22.95480242 161.67870044 -20.25465264 157.93427623 -17.56542969 154.18164062 C-16.52762647 152.73531974 -15.48664181 151.29127603 -14.44238281 149.84960938 C-3.55927908 134.78711565 4.04212266 119.83573302 1.5703125 100.66796875 C-1.61357925 81.58427191 -11.52777514 68.27881812 -27 57 C-29.96430385 54.9417 -32.95724033 52.94031052 -36 51 C-34.72757348 48.33851091 -33.34399338 45.92766173 -31.63671875 43.5234375 C-31.16854736 42.86174561 -30.70037598 42.20005371 -30.21801758 41.51831055 C-29.71294678 40.81101807 -29.20787598 40.10372559 -28.6875 39.375 C-28.15987061 38.6322583 -27.63224121 37.8895166 -27.08862305 37.12426758 C-25.39661001 34.74648502 -23.6993083 32.37257367 -22 30 C-21.4421582 29.22092285 -20.88431641 28.4418457 -20.30957031 27.63916016 C-13.64545716 18.34549741 -6.91310802 9.11029739 0 0 Z "\nfill="#F9DB57"\ntransform="translate(273,323)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="3s"\n/>\n</path>\n<path\nd="M0 0 C10.14825309 9.6488946 15.66164055 21.48455313 16.22070312 35.48193359 C16.41521963 50.95572131 11.59944137 63.75226253 0.9375 75.125 C-10.15044071 85.49211856 -23.65114495 89.60050792 -38.7109375 89.1328125 C-53.58537599 87.78656089 -65.30974123 80.87734477 -75.0703125 69.734375 C-84.99925677 57.06125016 -86.54781164 43.48357553 -85.25 27.8125 C-82.81625534 15.00768436 -75.45494151 3.71022834 -64.90234375 -3.875 C-43.80273976 -17.25034326 -19.2543351 -16.23404724 0 0 Z "\nfill="#F9DB57"\ntransform="translate(241.25,393.1875)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="3s"\n/>\n</path>\n<path d="M0 0 C7.10882683 1.45341757 13.91774477 3.45782092 20.81640625 5.6953125 C21.91347397 6.04761932 23.01054169 6.39992615 24.14085388 6.76290894 C27.61596225 7.8798367 31.08924411 9.00232657 34.5625 10.125 C36.93021972 10.88708802 39.29805711 11.64881055 41.66601562 12.41015625 C47.44537842 14.26921152 53.22325523 16.13282654 59 18 C58.42918066 24.06798254 57.10842941 29.42521287 55.15625 35.1875 C54.86826538 36.04827148 54.58028076 36.90904297 54.28356934 37.79589844 C53.67229886 39.61254534 53.05686574 41.42779634 52.4375 43.24169922 C51.51391584 45.95905699 50.61579725 48.68394273 49.71875 51.41015625 C44.51155973 66.92259458 37.83953817 80.58380173 27 93 C26.43410156 93.72058594 25.86820313 94.44117188 25.28515625 95.18359375 C8.05690097 116.33250231 -20.01616086 127.95307792 -46.56591797 130.7890625 C-65.12447693 132.39734685 -82.8328286 130.14353075 -100.5546875 124.55078125 C-101.66775269 124.20380692 -102.78081787 123.85683258 -103.9276123 123.49934387 C-118.09221883 119.06437005 -132.20916109 114.4786749 -146.32568359 109.89349365 C-150.637994 108.49330012 -154.9511399 107.09568156 -159.26437378 105.69833565 C-162.83420797 104.54160046 -166.40338845 103.38292664 -169.97119141 102.21994019 C-176.72226537 100.02128395 -183.47806904 97.84186339 -190.25389862 95.72051907 C-193.43668931 94.72327553 -196.61673466 93.71743489 -199.79664612 92.71105385 C-201.31938174 92.23193247 -202.84349802 91.75717565 -204.3690033 91.28694725 C-206.47547675 90.63737464 -208.57685429 89.97330993 -210.67773438 89.3059082 C-211.87732788 88.93198441 -213.07692139 88.55806061 -214.31286621 88.17280579 C-215.19962036 87.78577988 -216.08637451 87.39875397 -217 87 C-218.26191736 83.21424791 -217.53515889 81.8128261 -216.30932617 78.04736328 C-215.91529099 76.82244171 -215.5212558 75.59752014 -215.11528015 74.33547974 C-214.67474682 72.99701259 -214.23397034 71.65862544 -213.79296875 70.3203125 C-213.34719815 68.94675897 -212.90216548 67.57296576 -212.45783997 66.19894409 C-211.28453619 62.57819626 -210.10026943 58.96112195 -208.91400146 55.34460449 C-207.95031322 52.40034786 -206.99449784 49.45356548 -206.03910351 46.50660896 C-204.89729452 42.98528573 -203.75184539 39.46515101 -202.60546875 35.9453125 C-202.38782553 35.27666294 -202.1701823 34.60801338 -201.94594383 33.91910172 C-201.32551892 32.01591046 -200.70224512 30.11364864 -200.07885742 28.21142578 C-199.72498459 27.13015411 -199.37111176 26.04888245 -199.0065155 24.93484497 C-198.08568339 22.24983964 -197.08109797 19.62397708 -196 17 C-189.60904884 18.33168207 -183.46374859 20.01138745 -177.2578125 22.02734375 C-176.32020584 22.32833481 -175.38259918 22.62932587 -174.4165802 22.93943787 C-172.38316093 23.59287079 -170.35034843 24.24819434 -168.31808472 24.9052124 C-165.07075307 25.95503741 -161.82182228 26.99978038 -158.57250977 28.04345703 C-148.04334571 31.4279984 -137.51993842 34.83030417 -126.99833679 38.23826694 C-121.61591722 39.98160171 -116.2327416 41.72259008 -110.84918213 43.46240139 C-106.94066979 44.7258988 -103.03352324 45.99351244 -99.1273737 47.26429462 C-96.09506142 48.24969405 -93.06104777 49.22983271 -90.02734375 50.2109375 C-88.3991143 50.74272865 -88.3991143 50.74272865 -86.73799133 51.28526306 C-68.94792644 57.02101886 -52.17082265 58.64783248 -34.7109375 50.45703125 C-13.92197296 38.95731289 -6.79270886 21.69293485 0 0 Z "\nfill="#F5D7BB"\ntransform="translate(221,238)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="4s"\n/>\n</path>\n<path\nd="M0 0 C9.23330394 9.96751847 13.94129582 22.44842451 14.6875 35.9375 C13.9784103 49.76474924 9.15683775 62.8308106 -0.42578125 72.90625 C-13.0046043 84.20329315 -26.97026457 87.78323285 -43.41796875 87.11230469 C-55.95614884 86.14658428 -67.35285191 79.25379406 -75.83984375 70.2265625 C-86.05674223 57.56884049 -89.31962282 43.86294784 -87.6875 27.9375 C-84.90395416 13.32781588 -77.10766305 1.50198351 -64.91918945 -6.85742188 C-44.22034547 -20.48505256 -18.00176966 -16.12828232 0 0 Z "\nfill="#F5D7BB"\ntransform="translate(193.6875,190.0625)"\nopacity="0"\n>\n<animate\n attributeName="opacity"\n values="0;1;0" dur="5s"\n repeatCount="indefinite"\n begin="4s"\n/>\n</path>\n',e.appendChild(t),document.body.appendChild(e)})();const{jsPsych:e,timeline:t}=await this.init();document.getElementById(ld).remove(),e.run(t);const n=Ja().translations;new pu(4e3,n).init(),await(e=>{const t=n=>{e()?n():setTimeout(()=>t(n),400)};return new Promise(t)})(()=>{var e,t;return!0===(null===(t=null===(e=this.firekit)||void 0===e?void 0:e.run)||void 0===t?void 0:t.completed)&&Ja().taskComplete})}}export{VC as TaskLauncher,WC as mediaAssets};
17
- //# sourceMappingURL=index.16cfcaca.js.map